diff --git a/.gitignore b/.gitignore index 1051fb72c..0c3a597f3 100644 --- a/.gitignore +++ b/.gitignore @@ -41,4 +41,9 @@ lerna-debug.log* # Playwright /test-results/ /playwright-report/ -/playwright/.cache/ \ No newline at end of file +/playwright/.cache/ + +# Test temp directories +temp-test-components/ +temp-test-output/ +test-label-root/ \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 72e6a3034..75e0adc85 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,230 @@ # Changelog +## v0.6.0...v2-docs-playground + +[compare changes](https://github.com/kunai-consulting/qwik-design-system/compare/v0.6.0...v2-docs-playground) + +### 🚀 Enhancements + +- Init props playground ([76cf3abf](https://github.com/kunai-consulting/qwik-design-system/commit/76cf3abf)) +- Initial layout ([88d9efe7](https://github.com/kunai-consulting/qwik-design-system/commit/88d9efe7)) +- Initial automatic playground ([988ab13f](https://github.com/kunai-consulting/qwik-design-system/commit/988ab13f)) +- Add component metadata generation and debug logging to props playground ([d3c974b7](https://github.com/kunai-consulting/qwik-design-system/commit/d3c974b7)) +- Better modularity ([8491255d](https://github.com/kunai-consulting/qwik-design-system/commit/8491255d)) +- Implement piece selector and prop controls carousels ([a6dfcae0](https://github.com/kunai-consulting/qwik-design-system/commit/a6dfcae0)) +- Enhance props playground with unified carousel navigation ([991ba79e](https://github.com/kunai-consulting/qwik-design-system/commit/991ba79e)) +- Enhance component props handling and metadata extraction ([fcd5ac8d](https://github.com/kunai-consulting/qwik-design-system/commit/fcd5ac8d)) +- Enhance prop extraction and type resolution in component props handling ([f868b687](https://github.com/kunai-consulting/qwik-design-system/commit/f868b687)) +- Enhance component metadata extraction and prop handling ([64c75fa2](https://github.com/kunai-consulting/qwik-design-system/commit/64c75fa2)) + +### 🩹 Fixes + +- Improve debug logging for component props parsing ([32613c20](https://github.com/kunai-consulting/qwik-design-system/commit/32613c20)) + +### 💅 Refactors + +- Simplify findComponentDirs function to throw an error when no directories are found ([269e9db0](https://github.com/kunai-consulting/qwik-design-system/commit/269e9db0)) +- Improve component metadata generation and debugging ([1b3d28ad](https://github.com/kunai-consulting/qwik-design-system/commit/1b3d28ad)) +- Enhance component styling and exports in props playground ([2a4ef4b6](https://github.com/kunai-consulting/qwik-design-system/commit/2a4ef4b6)) +- Streamline debug logging and enhance prop extraction logic ([ad78d661](https://github.com/kunai-consulting/qwik-design-system/commit/ad78d661)) + +### ❤️ Contributors + +- Thejackshelton-kunaico + +## v0.6.0...v2-docs-playground + +[compare changes](https://github.com/kunai-consulting/qwik-design-system/compare/v0.6.0...v2-docs-playground) + +### 🚀 Enhancements + +- Init props playground ([76cf3abf](https://github.com/kunai-consulting/qwik-design-system/commit/76cf3abf)) +- Initial layout ([88d9efe7](https://github.com/kunai-consulting/qwik-design-system/commit/88d9efe7)) +- Initial automatic playground ([988ab13f](https://github.com/kunai-consulting/qwik-design-system/commit/988ab13f)) +- Add component metadata generation and debug logging to props playground ([d3c974b7](https://github.com/kunai-consulting/qwik-design-system/commit/d3c974b7)) +- Better modularity ([8491255d](https://github.com/kunai-consulting/qwik-design-system/commit/8491255d)) +- Implement piece selector and prop controls carousels ([a6dfcae0](https://github.com/kunai-consulting/qwik-design-system/commit/a6dfcae0)) +- Enhance props playground with unified carousel navigation ([991ba79e](https://github.com/kunai-consulting/qwik-design-system/commit/991ba79e)) +- Enhance component props handling and metadata extraction ([fcd5ac8d](https://github.com/kunai-consulting/qwik-design-system/commit/fcd5ac8d)) +- Enhance prop extraction and type resolution in component props handling ([f868b687](https://github.com/kunai-consulting/qwik-design-system/commit/f868b687)) +- Enhance component metadata extraction and prop handling ([64c75fa2](https://github.com/kunai-consulting/qwik-design-system/commit/64c75fa2)) + +### 🩹 Fixes + +- Improve debug logging for component props parsing ([32613c20](https://github.com/kunai-consulting/qwik-design-system/commit/32613c20)) + +### 💅 Refactors + +- Simplify findComponentDirs function to throw an error when no directories are found ([269e9db0](https://github.com/kunai-consulting/qwik-design-system/commit/269e9db0)) +- Improve component metadata generation and debugging ([1b3d28ad](https://github.com/kunai-consulting/qwik-design-system/commit/1b3d28ad)) +- Enhance component styling and exports in props playground ([2a4ef4b6](https://github.com/kunai-consulting/qwik-design-system/commit/2a4ef4b6)) +- Streamline debug logging and enhance prop extraction logic ([ad78d661](https://github.com/kunai-consulting/qwik-design-system/commit/ad78d661)) + +### ❤️ Contributors + +- Thejackshelton-kunaico + +## v0.6.0...v2-docs-playground + +[compare changes](https://github.com/kunai-consulting/qwik-design-system/compare/v0.6.0...v2-docs-playground) + +### 🚀 Enhancements + +- Init props playground ([76cf3abf](https://github.com/kunai-consulting/qwik-design-system/commit/76cf3abf)) +- Initial layout ([88d9efe7](https://github.com/kunai-consulting/qwik-design-system/commit/88d9efe7)) +- Initial automatic playground ([988ab13f](https://github.com/kunai-consulting/qwik-design-system/commit/988ab13f)) +- Add component metadata generation and debug logging to props playground ([d3c974b7](https://github.com/kunai-consulting/qwik-design-system/commit/d3c974b7)) +- Better modularity ([8491255d](https://github.com/kunai-consulting/qwik-design-system/commit/8491255d)) +- Implement piece selector and prop controls carousels ([a6dfcae0](https://github.com/kunai-consulting/qwik-design-system/commit/a6dfcae0)) +- Enhance props playground with unified carousel navigation ([991ba79e](https://github.com/kunai-consulting/qwik-design-system/commit/991ba79e)) +- Enhance component props handling and metadata extraction ([fcd5ac8d](https://github.com/kunai-consulting/qwik-design-system/commit/fcd5ac8d)) +- Enhance prop extraction and type resolution in component props handling ([f868b687](https://github.com/kunai-consulting/qwik-design-system/commit/f868b687)) +- Enhance component metadata extraction and prop handling ([64c75fa2](https://github.com/kunai-consulting/qwik-design-system/commit/64c75fa2)) + +### 🩹 Fixes + +- Improve debug logging for component props parsing ([32613c20](https://github.com/kunai-consulting/qwik-design-system/commit/32613c20)) + +### 💅 Refactors + +- Simplify findComponentDirs function to throw an error when no directories are found ([269e9db0](https://github.com/kunai-consulting/qwik-design-system/commit/269e9db0)) +- Improve component metadata generation and debugging ([1b3d28ad](https://github.com/kunai-consulting/qwik-design-system/commit/1b3d28ad)) +- Enhance component styling and exports in props playground ([2a4ef4b6](https://github.com/kunai-consulting/qwik-design-system/commit/2a4ef4b6)) +- Streamline debug logging and enhance prop extraction logic ([ad78d661](https://github.com/kunai-consulting/qwik-design-system/commit/ad78d661)) + +### ❤️ Contributors + +- Thejackshelton-kunaico + +## v0.6.0...v2-docs-playground + +[compare changes](https://github.com/kunai-consulting/qwik-design-system/compare/v0.6.0...v2-docs-playground) + +### 🚀 Enhancements + +- Init props playground ([76cf3abf](https://github.com/kunai-consulting/qwik-design-system/commit/76cf3abf)) +- Initial layout ([88d9efe7](https://github.com/kunai-consulting/qwik-design-system/commit/88d9efe7)) +- Initial automatic playground ([988ab13f](https://github.com/kunai-consulting/qwik-design-system/commit/988ab13f)) +- Add component metadata generation and debug logging to props playground ([d3c974b7](https://github.com/kunai-consulting/qwik-design-system/commit/d3c974b7)) +- Better modularity ([8491255d](https://github.com/kunai-consulting/qwik-design-system/commit/8491255d)) +- Implement piece selector and prop controls carousels ([a6dfcae0](https://github.com/kunai-consulting/qwik-design-system/commit/a6dfcae0)) +- Enhance props playground with unified carousel navigation ([991ba79e](https://github.com/kunai-consulting/qwik-design-system/commit/991ba79e)) +- Enhance component props handling and metadata extraction ([fcd5ac8d](https://github.com/kunai-consulting/qwik-design-system/commit/fcd5ac8d)) +- Enhance prop extraction and type resolution in component props handling ([f868b687](https://github.com/kunai-consulting/qwik-design-system/commit/f868b687)) +- Enhance component metadata extraction and prop handling ([64c75fa2](https://github.com/kunai-consulting/qwik-design-system/commit/64c75fa2)) + +### 🩹 Fixes + +- Improve debug logging for component props parsing ([32613c20](https://github.com/kunai-consulting/qwik-design-system/commit/32613c20)) + +### 💅 Refactors + +- Simplify findComponentDirs function to throw an error when no directories are found ([269e9db0](https://github.com/kunai-consulting/qwik-design-system/commit/269e9db0)) +- Improve component metadata generation and debugging ([1b3d28ad](https://github.com/kunai-consulting/qwik-design-system/commit/1b3d28ad)) +- Enhance component styling and exports in props playground ([2a4ef4b6](https://github.com/kunai-consulting/qwik-design-system/commit/2a4ef4b6)) +- Streamline debug logging and enhance prop extraction logic ([ad78d661](https://github.com/kunai-consulting/qwik-design-system/commit/ad78d661)) + +### ❤️ Contributors + +- Thejackshelton-kunaico + +## v0.6.0...v2-docs-playground + +[compare changes](https://github.com/kunai-consulting/qwik-design-system/compare/v0.6.0...v2-docs-playground) + +### 🚀 Enhancements + +- Init props playground ([76cf3abf](https://github.com/kunai-consulting/qwik-design-system/commit/76cf3abf)) +- Initial layout ([88d9efe7](https://github.com/kunai-consulting/qwik-design-system/commit/88d9efe7)) +- Initial automatic playground ([988ab13f](https://github.com/kunai-consulting/qwik-design-system/commit/988ab13f)) +- Add component metadata generation and debug logging to props playground ([d3c974b7](https://github.com/kunai-consulting/qwik-design-system/commit/d3c974b7)) +- Better modularity ([8491255d](https://github.com/kunai-consulting/qwik-design-system/commit/8491255d)) +- Implement piece selector and prop controls carousels ([a6dfcae0](https://github.com/kunai-consulting/qwik-design-system/commit/a6dfcae0)) +- Enhance props playground with unified carousel navigation ([991ba79e](https://github.com/kunai-consulting/qwik-design-system/commit/991ba79e)) +- Enhance component props handling and metadata extraction ([fcd5ac8d](https://github.com/kunai-consulting/qwik-design-system/commit/fcd5ac8d)) +- Enhance prop extraction and type resolution in component props handling ([f868b687](https://github.com/kunai-consulting/qwik-design-system/commit/f868b687)) +- Enhance component metadata extraction and prop handling ([64c75fa2](https://github.com/kunai-consulting/qwik-design-system/commit/64c75fa2)) + +### 🩹 Fixes + +- Improve debug logging for component props parsing ([32613c20](https://github.com/kunai-consulting/qwik-design-system/commit/32613c20)) + +### 💅 Refactors + +- Simplify findComponentDirs function to throw an error when no directories are found ([269e9db0](https://github.com/kunai-consulting/qwik-design-system/commit/269e9db0)) +- Improve component metadata generation and debugging ([1b3d28ad](https://github.com/kunai-consulting/qwik-design-system/commit/1b3d28ad)) +- Enhance component styling and exports in props playground ([2a4ef4b6](https://github.com/kunai-consulting/qwik-design-system/commit/2a4ef4b6)) +- Streamline debug logging and enhance prop extraction logic ([ad78d661](https://github.com/kunai-consulting/qwik-design-system/commit/ad78d661)) + +### ❤️ Contributors + +- Thejackshelton-kunaico + +## v0.6.0...v2-docs-playground + +[compare changes](https://github.com/kunai-consulting/qwik-design-system/compare/v0.6.0...v2-docs-playground) + +### 🚀 Enhancements + +- Init props playground ([76cf3abf](https://github.com/kunai-consulting/qwik-design-system/commit/76cf3abf)) +- Initial layout ([88d9efe7](https://github.com/kunai-consulting/qwik-design-system/commit/88d9efe7)) +- Initial automatic playground ([988ab13f](https://github.com/kunai-consulting/qwik-design-system/commit/988ab13f)) +- Add component metadata generation and debug logging to props playground ([d3c974b7](https://github.com/kunai-consulting/qwik-design-system/commit/d3c974b7)) +- Better modularity ([8491255d](https://github.com/kunai-consulting/qwik-design-system/commit/8491255d)) +- Implement piece selector and prop controls carousels ([a6dfcae0](https://github.com/kunai-consulting/qwik-design-system/commit/a6dfcae0)) +- Enhance props playground with unified carousel navigation ([991ba79e](https://github.com/kunai-consulting/qwik-design-system/commit/991ba79e)) +- Enhance component props handling and metadata extraction ([fcd5ac8d](https://github.com/kunai-consulting/qwik-design-system/commit/fcd5ac8d)) +- Enhance prop extraction and type resolution in component props handling ([f868b687](https://github.com/kunai-consulting/qwik-design-system/commit/f868b687)) +- Enhance component metadata extraction and prop handling ([64c75fa2](https://github.com/kunai-consulting/qwik-design-system/commit/64c75fa2)) + +### 🩹 Fixes + +- Improve debug logging for component props parsing ([32613c20](https://github.com/kunai-consulting/qwik-design-system/commit/32613c20)) + +### 💅 Refactors + +- Simplify findComponentDirs function to throw an error when no directories are found ([269e9db0](https://github.com/kunai-consulting/qwik-design-system/commit/269e9db0)) +- Improve component metadata generation and debugging ([1b3d28ad](https://github.com/kunai-consulting/qwik-design-system/commit/1b3d28ad)) +- Enhance component styling and exports in props playground ([2a4ef4b6](https://github.com/kunai-consulting/qwik-design-system/commit/2a4ef4b6)) +- Streamline debug logging and enhance prop extraction logic ([ad78d661](https://github.com/kunai-consulting/qwik-design-system/commit/ad78d661)) + +### ❤️ Contributors + +- Thejackshelton-kunaico + +## v0.6.0...v2-docs-playground + +[compare changes](https://github.com/kunai-consulting/qwik-design-system/compare/v0.6.0...v2-docs-playground) + +### 🚀 Enhancements + +- Init props playground ([76cf3abf](https://github.com/kunai-consulting/qwik-design-system/commit/76cf3abf)) +- Initial layout ([88d9efe7](https://github.com/kunai-consulting/qwik-design-system/commit/88d9efe7)) +- Initial automatic playground ([988ab13f](https://github.com/kunai-consulting/qwik-design-system/commit/988ab13f)) +- Add component metadata generation and debug logging to props playground ([d3c974b7](https://github.com/kunai-consulting/qwik-design-system/commit/d3c974b7)) +- Better modularity ([8491255d](https://github.com/kunai-consulting/qwik-design-system/commit/8491255d)) +- Implement piece selector and prop controls carousels ([a6dfcae0](https://github.com/kunai-consulting/qwik-design-system/commit/a6dfcae0)) +- Enhance props playground with unified carousel navigation ([991ba79e](https://github.com/kunai-consulting/qwik-design-system/commit/991ba79e)) +- Enhance component props handling and metadata extraction ([fcd5ac8d](https://github.com/kunai-consulting/qwik-design-system/commit/fcd5ac8d)) +- Enhance prop extraction and type resolution in component props handling ([f868b687](https://github.com/kunai-consulting/qwik-design-system/commit/f868b687)) +- Enhance component metadata extraction and prop handling ([64c75fa2](https://github.com/kunai-consulting/qwik-design-system/commit/64c75fa2)) + +### 🩹 Fixes + +- Improve debug logging for component props parsing ([32613c20](https://github.com/kunai-consulting/qwik-design-system/commit/32613c20)) + +### 💅 Refactors + +- Simplify findComponentDirs function to throw an error when no directories are found ([269e9db0](https://github.com/kunai-consulting/qwik-design-system/commit/269e9db0)) +- Improve component metadata generation and debugging ([1b3d28ad](https://github.com/kunai-consulting/qwik-design-system/commit/1b3d28ad)) +- Enhance component styling and exports in props playground ([2a4ef4b6](https://github.com/kunai-consulting/qwik-design-system/commit/2a4ef4b6)) +- Streamline debug logging and enhance prop extraction logic ([ad78d661](https://github.com/kunai-consulting/qwik-design-system/commit/ad78d661)) + +### ❤️ Contributors + +- Thejackshelton-kunaico + ## v0.5.14...v2-migration [compare changes](https://github.com/kunai-consulting/qwik-design-system/compare/v0.5.14...v2-migration) diff --git a/biome.json b/biome.json index 5f08a98a0..a2b0c5761 100644 --- a/biome.json +++ b/biome.json @@ -9,6 +9,7 @@ "!**/node_modules", "!**/server", "!**/docs/public/pagefind", + "!**/docs/public/component-metadata", "!**/lib-types", "!**/libs/components/lib/**/*", "!**/libs/components/node_modules", diff --git a/docs/package.json b/docs/package.json index 71bff3397..5835a07b5 100644 --- a/docs/package.json +++ b/docs/package.json @@ -39,8 +39,9 @@ "@types/node": "24.9.0", "ignore": "^7.0.5", "pagefind": "1.2.0", + "shiki": "^3.15.0", "tailwindcss": "^4.1.3", - "typescript": "5.4.5", + "typescript": "5.9.3", "unified": "^11.0.4", "vite": "^7", "vite-plugin-image-optimizer": "^1.1.8", @@ -50,7 +51,8 @@ "@stackblitz/sdk": "^1.11.0", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1", - "rehype-pretty-code": "^0.13.2", - "tailwind-merge": "^2.5.0" + "magic-regexp": "^0.10.0", + "tailwind-merge": "^2.5.0", + "@shikijs/twoslash": "^3.15.0" } } diff --git a/docs/public/component-metadata/calendar.json b/docs/public/component-metadata/calendar.json new file mode 100644 index 000000000..f331be489 --- /dev/null +++ b/docs/public/component-metadata/calendar.json @@ -0,0 +1,115 @@ +{ + "componentName": "calendar", + "pieces": [ + { + "name": "Root", + "props": [ + { + "name": "locale", + "type": "unknown", + "isBindable": false, + "comment": "The locale used for formatting dates and text" + }, + { + "name": "showWeekNumber", + "type": "boolean", + "isBindable": false, + "initialValue": false, + "comment": "The locale used for formatting dates and text" + }, + { + "name": "fullWeeks", + "type": "boolean", + "isBindable": false, + "initialValue": false, + "comment": "The locale used for formatting dates and text" + }, + { + "name": "showDaysOfWeek", + "type": "boolean", + "isBindable": false, + "initialValue": false, + "comment": "The locale used for formatting dates and text" + }, + { + "name": "onChange$", + "type": "function", + "isBindable": false, + "isFunction": true, + "comment": "The locale used for formatting dates and text" + }, + { + "name": "mode", + "type": "union", + "unionValues": [ + "inline", + "popover" + ], + "isBindable": false, + "comment": "The locale used for formatting dates and text" + }, + { + "name": "date", + "type": "unknown", + "isBindable": true, + "comment": "The locale used for formatting dates and text" + }, + { + "name": "disabled", + "type": "boolean", + "isBindable": true, + "initialValue": false, + "comment": "Whether to show the days of the week header" + }, + { + "name": "open", + "type": "boolean", + "isBindable": true, + "initialValue": false, + "comment": "Event handler called when a date is selected" + } + ] + }, + { + "name": "Field", + "props": [ + { + "name": "openCalendarOnClick", + "type": "boolean", + "isBindable": false, + "initialValue": false + } + ] + }, + { + "name": "Grid", + "props": [ + { + "name": "onDateChange$", + "type": "function", + "isBindable": false, + "isFunction": true, + "comment": "Event handler called when a date is selected" + } + ] + }, + { + "name": "GridDay", + "props": [ + { + "name": "showLeadingZeros", + "type": "boolean", + "isBindable": false, + "initialValue": false + }, + { + "name": "onDateChange$", + "type": "function", + "isBindable": false, + "isFunction": true, + "comment": "Event handler called when a date is selected" + } + ] + } + ] +} \ No newline at end of file diff --git a/docs/public/component-metadata/carousel.json b/docs/public/component-metadata/carousel.json new file mode 100644 index 000000000..8b3efba26 --- /dev/null +++ b/docs/public/component-metadata/carousel.json @@ -0,0 +1,119 @@ +{ + "componentName": "carousel", + "pieces": [ + { + "name": "Root", + "props": [ + { + "name": "gap", + "type": "number", + "isBindable": false, + "initialValue": 0, + "comment": "The gap between items" + }, + { + "name": "itemsPerView", + "type": "number", + "isBindable": false, + "initialValue": 0, + "comment": "The gap between items" + }, + { + "name": "draggable", + "type": "boolean", + "isBindable": false, + "initialValue": false, + "comment": "The gap between items" + }, + { + "name": "align", + "type": "union", + "unionValues": [ + "start", + "center", + "end" + ], + "isBindable": false, + "comment": "The gap between items" + }, + { + "name": "rewind", + "type": "boolean", + "isBindable": false, + "initialValue": false, + "comment": "The gap between items" + }, + { + "name": "autoplayInterval", + "type": "number", + "isBindable": false, + "initialValue": 0, + "comment": "The gap between items" + }, + { + "name": "sensitivity", + "type": "unknown", + "isBindable": false, + "comment": "Number of items to show at once" + }, + { + "name": "move", + "type": "number", + "isBindable": false, + "initialValue": 0, + "comment": "Alignment of items within the viewport" + }, + { + "name": "orientation", + "type": "union", + "unionValues": [ + "horizontal", + "vertical" + ], + "isBindable": false, + "comment": "Whether the carousel should rewind" + }, + { + "name": "mousewheel", + "type": "boolean", + "isBindable": false, + "initialValue": false, + "comment": "Time in milliseconds before the next item plays during autoplay. Defaults to 3000ms." + }, + { + "name": "onChange", + "type": "function", + "isBindable": false, + "isFunction": true, + "comment": "The sensitivity of the carousel dragging" + }, + { + "name": "value", + "type": "string", + "isBindable": true, + "initialValue": "", + "comment": "The sensitivity of the carousel dragging" + }, + { + "name": "autoplay", + "type": "boolean", + "isBindable": true, + "initialValue": false, + "comment": "The amount of items to move when hitting the next or previous button" + } + ] + }, + { + "name": "Item", + "props": [ + { + "name": "value", + "type": "string", + "isBindable": false, + "initialValue": "", + "comment": "The value for this carousel item. Defaults to string index if not provided." + } + ] + } + ] +} \ No newline at end of file diff --git a/docs/public/component-metadata/checkbox.json b/docs/public/component-metadata/checkbox.json new file mode 100644 index 000000000..f373acb4e --- /dev/null +++ b/docs/public/component-metadata/checkbox.json @@ -0,0 +1,56 @@ +{ + "componentName": "checkbox", + "pieces": [ + { + "name": "Root", + "props": [ + { + "name": "onChange$", + "type": "function", + "isBindable": false, + "isFunction": true, + "comment": "Event handler called when the checkbox state changes" + }, + { + "name": "name", + "type": "string", + "isBindable": false, + "initialValue": "", + "comment": "Event handler called when the checkbox state changes" + }, + { + "name": "required", + "type": "boolean", + "isBindable": false, + "initialValue": false, + "comment": "Event handler called when the checkbox state changes" + }, + { + "name": "value", + "type": "string", + "isBindable": false, + "initialValue": "", + "comment": "Event handler called when the checkbox state changes" + }, + { + "name": "checked", + "type": "union", + "unionValues": [ + "false", + "true", + "mixed" + ], + "isBindable": true, + "comment": "Event handler called when the checkbox state changes" + }, + { + "name": "disabled", + "type": "boolean", + "isBindable": true, + "initialValue": false, + "comment": "Name attribute for the hidden input element" + } + ] + } + ] +} \ No newline at end of file diff --git a/docs/public/component-metadata/checklist.json b/docs/public/component-metadata/checklist.json new file mode 100644 index 000000000..984022337 --- /dev/null +++ b/docs/public/component-metadata/checklist.json @@ -0,0 +1,28 @@ +{ + "componentName": "checklist", + "pieces": [ + { + "name": "HiddenInput", + "props": [ + { + "name": "name", + "type": "string", + "isBindable": false, + "initialValue": "" + }, + { + "name": "value", + "type": "string", + "isBindable": false, + "initialValue": "" + }, + { + "name": "required", + "type": "boolean", + "isBindable": false, + "initialValue": false + } + ] + } + ] +} \ No newline at end of file diff --git a/docs/public/component-metadata/collapsible.json b/docs/public/component-metadata/collapsible.json new file mode 100644 index 000000000..a4cd50e18 --- /dev/null +++ b/docs/public/component-metadata/collapsible.json @@ -0,0 +1,64 @@ +{ + "componentName": "collapsible", + "pieces": [ + { + "name": "Root", + "props": [ + { + "name": "id", + "type": "string", + "isBindable": false, + "initialValue": "" + }, + { + "name": "open", + "type": "union", + "unionValues": [ + "false", + "true" + ], + "isBindable": true, + "comment": "If true, collapsible will be hidden instead of hidden until found" + }, + { + "name": "onChange$", + "type": "function", + "isBindable": false, + "isFunction": true + }, + { + "name": "disabled", + "type": "boolean", + "isBindable": true, + "initialValue": false, + "comment": "If true, collapsible will be hidden instead of hidden until found" + }, + { + "name": "collapsible", + "type": "boolean", + "isBindable": true, + "initialValue": false, + "comment": "If true, collapsible will be hidden instead of hidden until found" + }, + { + "name": "disableUntilFound", + "type": "boolean", + "isBindable": false, + "initialValue": false, + "comment": "If true, collapsible will be hidden instead of hidden until found" + } + ] + }, + { + "name": "Content", + "props": [ + { + "name": "onBeforematch$", + "type": "function", + "isBindable": false, + "isFunction": true + } + ] + } + ] +} \ No newline at end of file diff --git a/docs/public/component-metadata/date-input.json b/docs/public/component-metadata/date-input.json new file mode 100644 index 000000000..d097a91f3 --- /dev/null +++ b/docs/public/component-metadata/date-input.json @@ -0,0 +1,63 @@ +{ + "componentName": "date-input", + "pieces": [ + { + "name": "Root", + "props": [ + { + "name": "onChange$", + "type": "function", + "isBindable": false, + "isFunction": true + } + ] + }, + { + "name": "Field", + "props": [ + { + "name": "onChange$", + "type": "function", + "isBindable": false, + "isFunction": true, + "comment": "Event handler called when a date is updated" + }, + { + "name": "separator", + "type": "unknown", + "isBindable": false, + "comment": "Event handler called when a date is updated" + }, + { + "name": "date", + "type": "unknown", + "isBindable": true, + "comment": "Event handler called when a date is updated" + }, + { + "name": "disabled", + "type": "boolean", + "isBindable": true, + "initialValue": false, + "comment": "Event handler called when a date is updated" + } + ] + }, + { + "name": "Segment", + "props": [ + { + "name": "segmentSig", + "type": "unknown", + "isBindable": false + }, + { + "name": "placeholder", + "type": "string", + "isBindable": false, + "initialValue": "" + } + ] + } + ] +} \ No newline at end of file diff --git a/docs/public/component-metadata/field.json b/docs/public/component-metadata/field.json new file mode 100644 index 000000000..2ef83543c --- /dev/null +++ b/docs/public/component-metadata/field.json @@ -0,0 +1,71 @@ +{ + "componentName": "field", + "pieces": [ + { + "name": "Root", + "props": [ + { + "name": "name", + "type": "string", + "isBindable": false, + "initialValue": "" + }, + { + "name": "onChange$", + "type": "function", + "isBindable": false, + "isFunction": true + }, + { + "name": "disabled", + "type": "boolean", + "isBindable": true, + "initialValue": false, + "comment": "Value can be given from either this Root component or a child component. Also value can be given from a custom control, which gets rootValue from the field context." + }, + { + "name": "required", + "type": "boolean", + "isBindable": true, + "initialValue": false, + "comment": "Value can be given from either this Root component or a child component. Also value can be given from a custom control, which gets rootValue from the field context." + }, + { + "name": "readOnly", + "type": "boolean", + "isBindable": true, + "initialValue": false, + "comment": "Value can be given from either this Root component or a child component. Also value can be given from a custom control, which gets rootValue from the field context." + }, + { + "name": "value", + "type": "unknown", + "isBindable": true, + "comment": "Value can be given from either this Root component or a child component. Also value can be given from a custom control, which gets rootValue from the field context." + } + ] + }, + { + "name": "Input", + "props": [ + { + "name": "value", + "type": "string", + "isBindable": true, + "initialValue": "" + } + ] + }, + { + "name": "Textarea", + "props": [ + { + "name": "value", + "type": "string", + "isBindable": true, + "initialValue": "" + } + ] + } + ] +} \ No newline at end of file diff --git a/docs/public/component-metadata/file-upload.json b/docs/public/component-metadata/file-upload.json new file mode 100644 index 000000000..91a3189fc --- /dev/null +++ b/docs/public/component-metadata/file-upload.json @@ -0,0 +1,4 @@ +{ + "componentName": "file-upload", + "pieces": [] +} \ No newline at end of file diff --git a/docs/public/component-metadata/label.json b/docs/public/component-metadata/label.json new file mode 100644 index 000000000..635099d0b --- /dev/null +++ b/docs/public/component-metadata/label.json @@ -0,0 +1,4 @@ +{ + "componentName": "label", + "pieces": [] +} \ No newline at end of file diff --git a/docs/public/component-metadata/menu.json b/docs/public/component-metadata/menu.json new file mode 100644 index 000000000..d9c1a5035 --- /dev/null +++ b/docs/public/component-metadata/menu.json @@ -0,0 +1,71 @@ +{ + "componentName": "menu", + "pieces": [ + { + "name": "Root", + "props": [ + { + "name": "onOpenChange$", + "type": "function", + "isBindable": false, + "isFunction": true, + "comment": "The direction to focus on when the menu is opened" + }, + { + "name": "onChange$", + "type": "function", + "isBindable": false, + "isFunction": true, + "comment": "The direction to focus on when the menu is opened" + }, + { + "name": "open", + "type": "boolean", + "isBindable": true, + "initialValue": false, + "comment": "The function to call when an item is selected" + }, + { + "name": "disabled", + "type": "boolean", + "isBindable": true, + "initialValue": false, + "comment": "The item refs of the menu" + } + ] + }, + { + "name": "Item", + "props": [ + { + "name": "onSelect$", + "type": "function", + "isBindable": false, + "isFunction": true, + "comment": "Event handler called when the item is selected" + }, + { + "name": "closeOnSelect", + "type": "boolean", + "isBindable": false, + "initialValue": false, + "comment": "Event handler called when the item is selected" + }, + { + "name": "value", + "type": "string", + "isBindable": true, + "initialValue": "", + "comment": "Event handler called when the item is selected" + }, + { + "name": "disabled", + "type": "boolean", + "isBindable": true, + "initialValue": false, + "comment": "Event handler called when the item is selected" + } + ] + } + ] +} \ No newline at end of file diff --git a/docs/public/component-metadata/modal.json b/docs/public/component-metadata/modal.json new file mode 100644 index 000000000..6ece0760c --- /dev/null +++ b/docs/public/component-metadata/modal.json @@ -0,0 +1,22 @@ +{ + "componentName": "modal", + "pieces": [ + { + "name": "Root", + "props": [ + { + "name": "closeOnOutsideClick", + "type": "boolean", + "isBindable": false, + "initialValue": false + }, + { + "name": "open", + "type": "boolean", + "isBindable": true, + "initialValue": false + } + ] + } + ] +} \ No newline at end of file diff --git a/docs/public/component-metadata/navbar.json b/docs/public/component-metadata/navbar.json new file mode 100644 index 000000000..cdab95896 --- /dev/null +++ b/docs/public/component-metadata/navbar.json @@ -0,0 +1,4 @@ +{ + "componentName": "navbar", + "pieces": [] +} \ No newline at end of file diff --git a/docs/public/component-metadata/otp.json b/docs/public/component-metadata/otp.json new file mode 100644 index 000000000..0a2b5fc4a --- /dev/null +++ b/docs/public/component-metadata/otp.json @@ -0,0 +1,55 @@ +{ + "componentName": "otp", + "pieces": [ + { + "name": "Root", + "props": [ + { + "name": "onComplete$", + "type": "function", + "isBindable": false, + "isFunction": true, + "comment": "Event handler for when all OTP items are filled" + }, + { + "name": "onChange$", + "type": "function", + "isBindable": false, + "isFunction": true, + "comment": "Event handler for when all OTP items are filled" + }, + { + "name": "shiftPWManagers", + "type": "boolean", + "isBindable": false, + "initialValue": false, + "comment": "Event handler for when all OTP items are filled" + }, + { + "name": "value", + "type": "string", + "isBindable": true, + "initialValue": "", + "comment": "Event handler for when all OTP items are filled" + }, + { + "name": "disabled", + "type": "boolean", + "isBindable": true, + "initialValue": false, + "comment": "Event handler for when all OTP items are filled" + } + ] + }, + { + "name": "HiddenInput", + "props": [ + { + "name": "pattern", + "type": "unknown", + "isBindable": false + } + ] + } + ] +} \ No newline at end of file diff --git a/docs/public/component-metadata/pagination.json b/docs/public/component-metadata/pagination.json new file mode 100644 index 000000000..2d9a9de35 --- /dev/null +++ b/docs/public/component-metadata/pagination.json @@ -0,0 +1,81 @@ +{ + "componentName": "pagination", + "pieces": [ + { + "name": "Root", + "props": [ + { + "name": "totalPages", + "type": "number", + "isBindable": false, + "initialValue": 0, + "comment": "The total number of pages to display" + }, + { + "name": "currentPage", + "type": "number", + "isBindable": false, + "initialValue": 0, + "comment": "The total number of pages to display" + }, + { + "name": "onPageChange$", + "type": "function", + "isBindable": false, + "isFunction": true, + "comment": "The total number of pages to display" + }, + { + "name": "disabled", + "type": "boolean", + "isBindable": false, + "initialValue": false, + "comment": "The total number of pages to display" + }, + { + "name": "pages", + "type": "unknown", + "isBindable": false, + "comment": "The total number of pages to display" + }, + { + "name": "ellipsis", + "type": "unknown", + "isBindable": false, + "comment": "The initial page number to display when component loads" + }, + { + "name": "siblingCount", + "type": "number", + "isBindable": false, + "initialValue": 0, + "comment": "Reactive value that can be controlled via signal. Sets the current active page number" + } + ] + }, + { + "name": "Next", + "props": [ + { + "name": "isLast", + "type": "boolean", + "isBindable": false, + "initialValue": false, + "comment": "Next page navigation button component" + } + ] + }, + { + "name": "Previous", + "props": [ + { + "name": "isFirst", + "type": "boolean", + "isBindable": false, + "initialValue": false, + "comment": "Previous page navigation button component" + } + ] + } + ] +} \ No newline at end of file diff --git a/docs/public/component-metadata/popover.json b/docs/public/component-metadata/popover.json new file mode 100644 index 000000000..74e73a420 --- /dev/null +++ b/docs/public/component-metadata/popover.json @@ -0,0 +1,40 @@ +{ + "componentName": "popover", + "pieces": [ + { + "name": "Root", + "props": [ + { + "name": "onChange$", + "type": "function", + "isBindable": false, + "isFunction": true + }, + { + "name": "hover", + "type": "boolean", + "isBindable": false, + "initialValue": false + }, + { + "name": "delay", + "type": "number", + "isBindable": false, + "initialValue": 0 + }, + { + "name": "closeDelay", + "type": "number", + "isBindable": false, + "initialValue": 0 + }, + { + "name": "open", + "type": "boolean", + "isBindable": true, + "initialValue": false + } + ] + } + ] +} \ No newline at end of file diff --git a/docs/public/component-metadata/progress.json b/docs/public/component-metadata/progress.json new file mode 100644 index 000000000..be56b207e --- /dev/null +++ b/docs/public/component-metadata/progress.json @@ -0,0 +1,30 @@ +{ + "componentName": "progress", + "pieces": [ + { + "name": "Root", + "props": [ + { + "name": "min", + "type": "number", + "isBindable": false, + "initialValue": 0, + "comment": "Callback to get the label for the current value." + }, + { + "name": "max", + "type": "number", + "isBindable": false, + "initialValue": 0, + "comment": "Maximum value of the progress bar." + }, + { + "name": "value", + "type": "unknown", + "isBindable": true, + "comment": "Maximum value of the progress bar." + } + ] + } + ] +} \ No newline at end of file diff --git a/docs/public/component-metadata/qr-code.json b/docs/public/component-metadata/qr-code.json new file mode 100644 index 000000000..f7eef6b6e --- /dev/null +++ b/docs/public/component-metadata/qr-code.json @@ -0,0 +1,29 @@ +{ + "componentName": "qr-code", + "pieces": [ + { + "name": "Root", + "props": [ + { + "name": "value", + "type": "string", + "isBindable": false, + "initialValue": "", + "comment": "The text value to encode in the QR code" + }, + { + "name": "level", + "type": "union", + "unionValues": [ + "L", + "M", + "Q", + "H" + ], + "isBindable": false, + "comment": "The text value to encode in the QR code" + } + ] + } + ] +} \ No newline at end of file diff --git a/docs/public/component-metadata/radio-group.json b/docs/public/component-metadata/radio-group.json new file mode 100644 index 000000000..5d542a482 --- /dev/null +++ b/docs/public/component-metadata/radio-group.json @@ -0,0 +1,66 @@ +{ + "componentName": "radio-group", + "pieces": [ + { + "name": "Root", + "props": [ + { + "name": "value", + "type": "string", + "isBindable": false, + "initialValue": "" + }, + { + "name": "onChange$", + "type": "function", + "isBindable": false, + "isFunction": true + }, + { + "name": "disabled", + "type": "boolean", + "isBindable": false, + "initialValue": false + }, + { + "name": "name", + "type": "string", + "isBindable": false, + "initialValue": "" + }, + { + "name": "required", + "type": "boolean", + "isBindable": false, + "initialValue": false + }, + { + "name": "orientation", + "type": "union", + "unionValues": [ + "horizontal", + "vertical" + ], + "isBindable": false + }, + { + "name": "isError", + "type": "boolean", + "isBindable": false, + "initialValue": false + } + ] + }, + { + "name": "Item", + "props": [ + { + "name": "value", + "type": "string", + "isBindable": false, + "initialValue": "" + } + ] + } + ] +} \ No newline at end of file diff --git a/docs/public/component-metadata/render.json b/docs/public/component-metadata/render.json new file mode 100644 index 000000000..55b47b7b2 --- /dev/null +++ b/docs/public/component-metadata/render.json @@ -0,0 +1,34 @@ +{ + "componentName": "render", + "pieces": [ + { + "name": "Render", + "props": [ + { + "name": "fallback", + "type": "unknown", + "isBindable": false, + "comment": "The default element and types if a render prop is not provided" + }, + { + "name": "internalRef", + "type": "unknown", + "isBindable": false, + "comment": "The default element and types if a render prop is not provided" + }, + { + "name": "jsxType", + "type": "unknown", + "isBindable": false, + "comment": "The default element and types if a render prop is not provided" + }, + { + "name": "movedProps", + "type": "unknown", + "isBindable": false, + "comment": "The default element and types if a render prop is not provided" + } + ] + } + ] +} \ No newline at end of file diff --git a/docs/public/component-metadata/resizable.json b/docs/public/component-metadata/resizable.json new file mode 100644 index 000000000..464416671 --- /dev/null +++ b/docs/public/component-metadata/resizable.json @@ -0,0 +1,27 @@ +{ + "componentName": "resizable", + "pieces": [ + { + "name": "Root", + "props": [ + { + "name": "orientation", + "type": "union", + "unionValues": [ + "horizontal", + "vertical" + ], + "isBindable": false, + "comment": "Direction in which the contents can be resized" + }, + { + "name": "disabled", + "type": "boolean", + "isBindable": true, + "initialValue": false, + "comment": "Direction in which the contents can be resized" + } + ] + } + ] +} \ No newline at end of file diff --git a/docs/public/component-metadata/scroll-area.json b/docs/public/component-metadata/scroll-area.json new file mode 100644 index 000000000..0e2b52d1b --- /dev/null +++ b/docs/public/component-metadata/scroll-area.json @@ -0,0 +1,95 @@ +{ + "componentName": "scroll-area", + "pieces": [ + { + "name": "Root", + "props": [ + { + "name": "type", + "type": "union", + "unionValues": [ + "hover", + "scroll", + "auto", + "always" + ], + "isBindable": false, + "comment": "Controls when the scrollbars are visible: 'hover', 'scroll', 'auto', or 'always'" + }, + { + "name": "hideDelay", + "type": "number", + "isBindable": false, + "initialValue": 0, + "comment": "Controls when the scrollbars are visible: 'hover', 'scroll', 'auto', or 'always'" + } + ] + }, + { + "name": "Scrollbar", + "props": [ + { + "name": "orientation", + "type": "union", + "unionValues": [ + "vertical", + "horizontal" + ], + "isBindable": false, + "comment": "The orientation of the scrollbar" + }, + { + "name": "onScroll$", + "type": "function", + "isBindable": false, + "isFunction": true, + "comment": "The orientation of the scrollbar" + } + ] + }, + { + "name": "Thumb", + "props": [ + { + "name": "ref", + "type": "unknown", + "isBindable": false, + "comment": "Reference to the thumb element" + }, + { + "name": "onDragStart$", + "type": "function", + "isBindable": false, + "isFunction": true, + "comment": "Reference to the thumb element" + }, + { + "name": "onDragMove$", + "type": "function", + "isBindable": false, + "isFunction": true, + "comment": "Reference to the thumb element" + }, + { + "name": "onDragEnd$", + "type": "function", + "isBindable": false, + "isFunction": true, + "comment": "Reference to the thumb element" + } + ] + }, + { + "name": "ViewPort", + "props": [ + { + "name": "onScroll$", + "type": "function", + "isBindable": false, + "isFunction": true, + "comment": "Event handler for scroll events" + } + ] + } + ] +} \ No newline at end of file diff --git a/docs/public/component-metadata/select.json b/docs/public/component-metadata/select.json new file mode 100644 index 000000000..eca68bd78 --- /dev/null +++ b/docs/public/component-metadata/select.json @@ -0,0 +1,4 @@ +{ + "componentName": "select", + "pieces": [] +} \ No newline at end of file diff --git a/docs/public/component-metadata/slider.json b/docs/public/component-metadata/slider.json new file mode 100644 index 000000000..0b44b1d58 --- /dev/null +++ b/docs/public/component-metadata/slider.json @@ -0,0 +1,44 @@ +{ + "componentName": "slider", + "pieces": [ + { + "name": "Root", + "props": [ + { + "name": "value", + "type": "unknown", + "isBindable": true, + "comment": "Root component that provides slider context and handles core slider functionality" + }, + { + "name": "disabled", + "type": "boolean", + "isBindable": true, + "initialValue": false, + "comment": "Root component that provides slider context and handles core slider functionality" + }, + { + "name": "min", + "type": "number", + "isBindable": true, + "initialValue": 0, + "comment": "Root component that provides slider context and handles core slider functionality" + }, + { + "name": "max", + "type": "number", + "isBindable": true, + "initialValue": 0, + "comment": "Root component that provides slider context and handles core slider functionality" + }, + { + "name": "step", + "type": "number", + "isBindable": true, + "initialValue": 0, + "comment": "Root component that provides slider context and handles core slider functionality" + } + ] + } + ] +} \ No newline at end of file diff --git a/docs/public/component-metadata/switch.json b/docs/public/component-metadata/switch.json new file mode 100644 index 000000000..451ea9b59 --- /dev/null +++ b/docs/public/component-metadata/switch.json @@ -0,0 +1,52 @@ +{ + "componentName": "switch", + "pieces": [ + { + "name": "Root", + "props": [ + { + "name": "onChange$", + "type": "function", + "isBindable": false, + "isFunction": true, + "comment": "Initial checked state of the switch" + }, + { + "name": "checked", + "type": "boolean", + "isBindable": true, + "initialValue": false, + "comment": "Initial checked state of the switch" + }, + { + "name": "disabled", + "type": "boolean", + "isBindable": true, + "initialValue": false, + "comment": "Initial checked state of the switch" + }, + { + "name": "required", + "type": "boolean", + "isBindable": true, + "initialValue": false, + "comment": "Initial checked state of the switch" + }, + { + "name": "name", + "type": "string", + "isBindable": true, + "initialValue": "", + "comment": "Initial checked state of the switch" + }, + { + "name": "value", + "type": "string", + "isBindable": true, + "initialValue": "", + "comment": "Initial checked state of the switch" + } + ] + } + ] +} \ No newline at end of file diff --git a/docs/public/component-metadata/table.json b/docs/public/component-metadata/table.json new file mode 100644 index 000000000..007cfa24a --- /dev/null +++ b/docs/public/component-metadata/table.json @@ -0,0 +1,4 @@ +{ + "componentName": "table", + "pieces": [] +} \ No newline at end of file diff --git a/docs/public/component-metadata/tabs.json b/docs/public/component-metadata/tabs.json new file mode 100644 index 000000000..514465aca --- /dev/null +++ b/docs/public/component-metadata/tabs.json @@ -0,0 +1,69 @@ +{ + "componentName": "tabs", + "pieces": [ + { + "name": "Root", + "props": [ + { + "name": "onChange$", + "type": "function", + "isBindable": false, + "isFunction": true + }, + { + "name": "selectOnFocus", + "type": "boolean", + "isBindable": false, + "initialValue": false, + "comment": "If the consumer does not pass a distinct value, then we set the value to the index as a string, to handle types and conditional logic easier" + }, + { + "name": "value", + "type": "string", + "isBindable": true, + "initialValue": "", + "comment": "If the consumer does not pass a distinct value, then we set the value to the index as a string, to handle types and conditional logic easier" + }, + { + "name": "orientation", + "type": "union", + "unionValues": [ + "horizontal", + "vertical" + ], + "isBindable": true, + "comment": "If the consumer does not pass a distinct value, then we set the value to the index as a string, to handle types and conditional logic easier" + }, + { + "name": "loop", + "type": "boolean", + "isBindable": true, + "initialValue": false, + "comment": "If the consumer does not pass a distinct value, then we set the value to the index as a string, to handle types and conditional logic easier" + } + ] + }, + { + "name": "Content", + "props": [ + { + "name": "value", + "type": "string", + "isBindable": false, + "initialValue": "" + } + ] + }, + { + "name": "Trigger", + "props": [ + { + "name": "value", + "type": "string", + "isBindable": false, + "initialValue": "" + } + ] + } + ] +} \ No newline at end of file diff --git a/docs/public/component-metadata/toggle.json b/docs/public/component-metadata/toggle.json new file mode 100644 index 000000000..f5df2e2d8 --- /dev/null +++ b/docs/public/component-metadata/toggle.json @@ -0,0 +1,38 @@ +{ + "componentName": "toggle", + "pieces": [ + { + "name": "Root", + "props": [ + { + "name": "onChange$", + "type": "function", + "isBindable": false, + "isFunction": true + }, + { + "name": "pressed", + "type": "boolean", + "isBindable": true, + "initialValue": false + }, + { + "name": "disabled", + "type": "boolean", + "isBindable": true, + "initialValue": false + } + ] + }, + { + "name": "Indicator", + "props": [ + { + "name": "fallback", + "type": "unknown", + "isBindable": false + } + ] + } + ] +} \ No newline at end of file diff --git a/docs/public/component-metadata/tree.json b/docs/public/component-metadata/tree.json new file mode 100644 index 000000000..f0a901363 --- /dev/null +++ b/docs/public/component-metadata/tree.json @@ -0,0 +1,4 @@ +{ + "componentName": "tree", + "pieces": [] +} \ No newline at end of file diff --git a/docs/public/component-metadata/visually-hidden.json b/docs/public/component-metadata/visually-hidden.json new file mode 100644 index 000000000..7455d95f8 --- /dev/null +++ b/docs/public/component-metadata/visually-hidden.json @@ -0,0 +1,4 @@ +{ + "componentName": "visually-hidden", + "pieces": [] +} \ No newline at end of file diff --git a/docs/src/docs-widgets/action/action.tsx b/docs/src/docs-widgets/action/action.tsx index 121f0d0a9..e80a17e79 100644 --- a/docs/src/docs-widgets/action/action.tsx +++ b/docs/src/docs-widgets/action/action.tsx @@ -2,7 +2,7 @@ import { type PropsOf, Slot, component$ } from "@qwik.dev/core"; import { type VariantProps, cva } from "class-variance-authority"; import { cn } from "../../utils/cn"; -const buttonVariants = cva( +export const buttonVariants = cva( "px-2 py-2.5 border-[1.6px] text-sm leading-[142.857%] flex items-center gap-2 z-2 relative transform hover:-translate-[2px] transition-transform duration-300", { variants: { @@ -18,7 +18,7 @@ const buttonVariants = cva( } ); -const shadowVariants = cva("absolute inset-0 z-1 translate-1", { +export const shadowVariants = cva("absolute inset-0 z-1 translate-1", { variants: { variant: { primary: "bg-[#6C2CC4]", diff --git a/docs/src/docs-widgets/header/header.tsx b/docs/src/docs-widgets/header/header.tsx index 583a8d52b..cdd626077 100644 --- a/docs/src/docs-widgets/header/header.tsx +++ b/docs/src/docs-widgets/header/header.tsx @@ -141,7 +141,7 @@ const DesktopNav = component$(() => { const restOfItems = navData.slice(1); return ( -