Skip to content
Open
Show file tree
Hide file tree
Changes from 35 commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
38289f8
feat: add mitosis plugins for showcases and storybook
nmerget Oct 28, 2025
be83b1f
chore: update examples structure
nmerget Oct 28, 2025
c5148c6
chore: add button examples for every framework
nmerget Oct 28, 2025
ae581fb
chore: update mitosis.config.cjs
nmerget Oct 28, 2025
b9be380
chore: update patternhub to use button showcase
nmerget Oct 29, 2025
8b091b0
fix: linting issues
nmerget Oct 29, 2025
2f18755
fix: linting issues
nmerget Oct 29, 2025
9f35296
fix: build issues
nmerget Oct 29, 2025
20c5dfc
Merge branch 'main' into feat-examples-plugins
nmerget Oct 29, 2025
e8a1d13
fix: build issues
nmerget Oct 29, 2025
017cf49
fix: issue with remaining slot code
nmerget Oct 30, 2025
843e5f9
chore: update button.showcase.lite.tsx
nmerget Oct 30, 2025
83dc632
fix: issue with version-switcher.tsx
nmerget Oct 30, 2025
8007ab7
Merge branch 'main' into feat-examples-plugins
nmerget Oct 30, 2025
4b453d0
auto update snapshots (#5395)
github-actions[bot] Oct 30, 2025
41bc489
chore: update timeouts for patternhub
nmerget Oct 30, 2025
6d6c8c0
chore: update button.showcase.lite.tsx
nmerget Oct 30, 2025
365daeb
fix: replace pages with +
nmerget Oct 30, 2025
c3a43bc
fix: replace pages with +
nmerget Oct 30, 2025
61b80d4
auto update snapshots (#5398)
github-actions[bot] Oct 30, 2025
81f1f8e
feat: add contract for examples and integrate it into config and butt…
michaelmkraus Nov 18, 2025
ba5636d
feat: add plugin for button showcase
michaelmkraus Nov 19, 2025
9e7a32e
chore: merge main to resolve conflicts
michaelmkraus Nov 19, 2025
a6523f8
feat: change meta from tsx to ts
michaelmkraus Nov 19, 2025
bd93f30
auto update snapshots (#5488)
github-actions[bot] Nov 19, 2025
6702f6f
Merge branch 'main' into feat-examples-plugins
michaelmkraus Nov 20, 2025
44976ad
fix: normalize url with spaces
michaelmkraus Nov 20, 2025
cc1ed5f
Merge remote-tracking branch 'origin/feat-examples-plugins' into feat…
michaelmkraus Nov 20, 2025
804a777
feat: use basepath for group in url for tests
michaelmkraus Nov 20, 2025
5c86107
feat: fix basepath for group in url for overview
michaelmkraus Nov 21, 2025
0a7f24e
Merge branch 'main' into feat-examples-plugins
michaelmkraus Nov 21, 2025
82fd6f5
feat: adapt screenreader test for button to tab into document
michaelmkraus Nov 24, 2025
b989038
Merge remote-tracking branch 'origin/feat-examples-plugins' into feat…
michaelmkraus Nov 24, 2025
fd8b7b5
feat: revert adapt screenreader test for button to tab into document
michaelmkraus Nov 24, 2025
903e352
Merge branch 'main' into feat-examples-plugins
michaelmkraus Nov 24, 2025
c6dad55
refactor: order
mfranzke Nov 28, 2025
ee0ef58
Update button.examples.meta.ts
mfranzke Nov 28, 2025
0502b3c
auto update snapshots (#5539)
github-actions[bot] Nov 28, 2025
e37030a
Merge branch 'main' into feat-examples-plugins
michaelmkraus Dec 1, 2025
e5082fe
feat: revert vertical center alignment of items
michaelmkraus Dec 2, 2025
b399f43
Merge branch 'main' into feat-examples-plugins
michaelmkraus Dec 2, 2025
c45938e
auto update snapshots (#5557)
github-actions[bot] Dec 2, 2025
f662b4a
Merge branch 'main' into feat-examples-plugins
mfranzke Dec 3, 2025
094ac0c
Update default.spec.ts
mfranzke Dec 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,30 @@
- button "Functional"
- button "(Default) Regular"
- button "Expressive"
- link "Variant"
- button "(Default) Outlined - Adaptive"
- button "Filled - Adaptive"
- button "Ghost - Adaptive"
- button "Brand"
- link "Disabled"
- button "(Default) False"
- button "True" [disabled]
- link "Size"
- button "(Default) Medium"
- button "Small"
- link "Show Icon Leading"
- link "Multi-line Text With Line Breaks"
- button "Multi-line Text With Automatic Line Breaks"
- button "Multi-line Text With Automatic Line Breaks and Icon"
- button "Button Small Multi-line Text With Automatic Line Breaks"
- link "No Text"
- button "(Default) False"
- button "True"
- link "Show Icon Trailing"
- link "Show Icon Leading"
- button "(Default) False"
- button "True"
- link "No Text"
- link "Show Icon Trailing"
- button "(Default) False"
- button "True"
- link "Size"
- button "(Default) Medium"
- button "Small"
- link "Variant"
- button "(Default) Outlined - Adaptive"
- button "Filled - Adaptive"
- button "Ghost - Adaptive"
- button "Brand"
- link "Width"
- button "(Default) Auto"
- button "Width"
- link "Multi-line Text With Line Breaks"
- button "Multi-line Text With Automatic Line Breaks"
- button "Multi-line Text With Automatic Line Breaks and Icon"
- button "Button Small Multi-line Text With Automatic Line Breaks"
- button "Width"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,30 @@
- button "Functional"
- button "(Default) Regular"
- button "Expressive"
- link "Variant"
- button "(Default) Outlined - Adaptive"
- button "Filled - Adaptive"
- button "Ghost - Adaptive"
- button "Brand"
- link "Disabled"
- button "(Default) False"
- button "True" [disabled]
- link "Size"
- button "(Default) Medium"
- button "Small"
- link "Show Icon Leading"
- link "Multi-line Text With Line Breaks"
- button "Multi-line Text With Automatic Line Breaks"
- button "Multi-line Text With Automatic Line Breaks and Icon"
- button "Button Small Multi-line Text With Automatic Line Breaks"
- link "No Text"
- button "(Default) False"
- button "True"
- link "Show Icon Trailing"
- link "Show Icon Leading"
- button "(Default) False"
- button "True"
- link "No Text"
- link "Show Icon Trailing"
- button "(Default) False"
- button "True"
- link "Size"
- button "(Default) Medium"
- button "Small"
- link "Variant"
- button "(Default) Outlined - Adaptive"
- button "Filled - Adaptive"
- button "Ghost - Adaptive"
- button "Brand"
- link "Width"
- button "(Default) Auto"
- button "Width"
- link "Multi-line Text With Line Breaks"
- button "Multi-line Text With Automatic Line Breaks"
- button "Multi-line Text With Automatic Line Breaks and Icon"
- button "Button Small Multi-line Text With Automatic Line Breaks"
- button "Width"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,30 @@
- button "Functional"
- button "(Default) Regular"
- button "Expressive"
- link "Variant"
- button "(Default) Outlined - Adaptive"
- button "Filled - Adaptive"
- button "Ghost - Adaptive"
- button "Brand"
- link "Disabled"
- button "(Default) False"
- button "True" [disabled]
- link "Size"
- button "(Default) Medium"
- button "Small"
- link "Show Icon Leading"
- link "Multi-line Text With Line Breaks"
- button "Multi-line Text With Automatic Line Breaks"
- button "Multi-line Text With Automatic Line Breaks and Icon"
- button "Button Small Multi-line Text With Automatic Line Breaks"
- link "No Text"
- button "(Default) False"
- button "True"
- link "Show Icon Trailing"
- link "Show Icon Leading"
- button "(Default) False"
- button "True"
- link "No Text"
- link "Show Icon Trailing"
- button "(Default) False"
- button "True"
- link "Size"
- button "(Default) Medium"
- button "Small"
- link "Variant"
- button "(Default) Outlined - Adaptive"
- button "Filled - Adaptive"
- button "Ghost - Adaptive"
- button "Brand"
- link "Width"
- button "(Default) Auto"
- button "Width"
- link "Multi-line Text With Line Breaks"
- button "Multi-line Text With Automatic Line Breaks"
- button "Multi-line Text With Automatic Line Breaks and Icon"
- button "Button Small Multi-line Text With Automatic Line Breaks"
- button "Width"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,30 @@
- button "Functional"
- button "(Default) Regular"
- button "Expressive"
- link "Variant"
- button "(Default) Outlined - Adaptive"
- button "Filled - Adaptive"
- button "Ghost - Adaptive"
- button "Brand"
- link "Disabled"
- button "(Default) False"
- button "True" [disabled]
- link "Size"
- button "(Default) Medium"
- button "Small"
- link "Show Icon Leading"
- link "Multi-line Text With Line Breaks"
- button "Multi-line Text With Automatic Line Breaks"
- button "Multi-line Text With Automatic Line Breaks and Icon"
- button "Button Small Multi-line Text With Automatic Line Breaks"
- link "No Text"
- button "(Default) False"
- button "True"
- link "Show Icon Trailing"
- link "Show Icon Leading"
- button "(Default) False"
- button "True"
- link "No Text"
- link "Show Icon Trailing"
- button "(Default) False"
- button "True"
- link "Size"
- button "(Default) Medium"
- button "Small"
- link "Variant"
- button "(Default) Outlined - Adaptive"
- button "Filled - Adaptive"
- button "Ghost - Adaptive"
- button "Brand"
- link "Width"
- button "(Default) Auto"
- button "Width"
- link "Multi-line Text With Line Breaks"
- button "Multi-line Text With Automatic Line Breaks"
- button "Multi-line Text With Automatic Line Breaks and Icon"
- button "Button Small Multi-line Text With Automatic Line Breaks"
- button "Width"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,30 @@
- button "Functional"
- button "(Default) Regular"
- button "Expressive"
- link "Variant"
- button "(Default) Outlined - Adaptive"
- button "Filled - Adaptive"
- button "Ghost - Adaptive"
- button "Brand"
- link "Disabled"
- button "(Default) False"
- button "True" [disabled]
- link "Size"
- button "(Default) Medium"
- button "Small"
- link "Show Icon Leading"
- link "Multi-line Text With Line Breaks"
- button "Multi-line Text With Automatic Line Breaks"
- button "Multi-line Text With Automatic Line Breaks and Icon"
- button "Button Small Multi-line Text With Automatic Line Breaks"
- link "No Text"
- button "(Default) False"
- button "True"
- link "Show Icon Trailing"
- link "Show Icon Leading"
- button "(Default) False"
- button "True"
- link "No Text"
- link "Show Icon Trailing"
- button "(Default) False"
- button "True"
- link "Size"
- button "(Default) Medium"
- button "Small"
- link "Variant"
- button "(Default) Outlined - Adaptive"
- button "Filled - Adaptive"
- button "Ghost - Adaptive"
- button "Brand"
- link "Width"
- button "(Default) Auto"
- button "Width"
- link "Multi-line Text With Line Breaks"
- button "Multi-line Text With Automatic Line Breaks"
- button "Multi-line Text With Automatic Line Breaks and Icon"
- button "Button Small Multi-line Text With Automatic Line Breaks"
- button "Width"
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,30 @@
- button "Functional"
- button "(Default) Regular"
- button "Expressive"
- link "Variant"
- button "(Default) Outlined - Adaptive"
- button "Filled - Adaptive"
- button "Ghost - Adaptive"
- button "Brand"
- link "Disabled"
- button "(Default) False"
- button "True" [disabled]
- link "Size"
- button "(Default) Medium"
- button "Small"
- link "Show Icon Leading"
- link "Multi-line Text With Line Breaks"
- button "Multi-line Text With Automatic Line Breaks"
- button "Multi-line Text With Automatic Line Breaks and Icon"
- button "Button Small Multi-line Text With Automatic Line Breaks"
- link "No Text"
- button "(Default) False"
- button "True"
- link "Show Icon Trailing"
- link "Show Icon Leading"
- button "(Default) False"
- button "True"
- link "No Text"
- link "Show Icon Trailing"
- button "(Default) False"
- button "True"
- link "Size"
- button "(Default) Medium"
- button "Small"
- link "Variant"
- button "(Default) Outlined - Adaptive"
- button "Filled - Adaptive"
- button "Ghost - Adaptive"
- button "Brand"
- link "Width"
- button "(Default) Auto"
- button "Width"
- link "Multi-line Text With Line Breaks"
- button "Multi-line Text With Automatic Line Breaks"
- button "Multi-line Text With Automatic Line Breaks and Icon"
- button "Button Small Multi-line Text With Automatic Line Breaks"
- button "Width"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@michaelmkraus these seem to be middle instead of bottom aligned so some elements are now positioned centered instead of block-end. Is this expected and should have happened like this with this PR ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, that change is not intentional.
The centered vs. block-end alignment in the snapshot looks like an unintended side effect, likely coming from a shared wrapper that DBInput also uses. I’ll double-check the affected CSS.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found the relevant CSS and reverted it.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@michaelmkraus these seem to be middle instead of top aligned so some elements are now positioned centered instead of block-start. Is this expected and should have happened like this with this PR ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found the relevant CSS and reverted it.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 12 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,16 @@ import ignoreFolders from './.config/ignores.js';
export default defineConfig([
xoConfig,
eslintConfigPrettier,
globalIgnores([...ignoreFolders])
globalIgnores([...ignoreFolders]),
{
files: ['**/*.ts', '**/*.tsx'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
ecmaFeatures: { jsx: true }
},
plugins: ['@typescript-eslint'],
extends: ['plugin:@typescript-eslint/recommended']
}
]);
2 changes: 1 addition & 1 deletion output/react/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"target": "es2015"
},
"include": ["src/**/*.ts", "src/**/*.tsx"],
"exclude": ["node_modules", "src/**/*.spec.tsx"],
"exclude": ["node_modules", "src/**/*.spec.tsx", "src/**/*.example.tsx", "src/**/*.showcase.tsx"],
"compileOnSave": false,
"buildOnSave": false
}
2 changes: 1 addition & 1 deletion output/vue/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"skipLibCheck": true
},
"include": ["src/**/*.ts", "src/**/*.vue"],
"exclude": ["node_modules", "src/**/*.scss", "src/**/*.spec.tsx"],
"exclude": ["node_modules", "src/**/*.scss", "src/**/*.spec.tsx", "src/**/*.example.vue", "src/**/*.showcase.vue"],
"compileOnSave": false,
"buildOnSave": false
}
22 changes: 22 additions & 0 deletions packages/components/configs/mitosis.showcase.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/**
* @type {import('@builder.io/mitosis').MitosisConfig}
*/
module.exports = {
files: [
'src/components/**/*.showcase.lite.tsx',
'src/components/**/*.example.lite.tsx'
],
targets: ['angular', 'vue', 'react', 'stencil'],
dest: '../../output',
options: {
angular: {
api: 'signals'
},
vue: {
api: 'composition'
}
},
commonOptions: {
typescript: true
}
};
1 change: 1 addition & 0 deletions packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"dev:stencil": "nodemon --watch src --watch scripts --ext tsx,ts --exec \"npm run compile:stencil\"",
"dev:vue": "nodemon --watch src --watch scripts --ext tsx,ts --exec \"npm run compile:vue\"",
"generate:agent": "mitosis build --config=configs/mitosis.agent.config.cjs",
"generate:showcase": "mitosis build --config=configs/mitosis.showcase.config.cjs",
"generate:component": "hygen mitosis new",
"generate:docs": "hygen update-docs new",
"prepack": "npm run copy-assets",
Expand Down
Loading
Loading