ui-lab-registry 0.3.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/component-dependencies.d.ts +0 -11
- package/dist/component-dependencies.d.ts.map +1 -1
- package/dist/component-dependencies.js +4 -4
- package/dist/component-dependencies.js.map +1 -1
- package/dist/component-order.js +3 -3
- package/dist/component-order.js.map +1 -1
- package/dist/components/Anchor/index.d.ts +1 -1
- package/dist/components/Anchor/index.d.ts.map +1 -1
- package/dist/components/Anchor/index.js.map +1 -1
- package/dist/components/Badge/index.d.ts +1 -1
- package/dist/components/Badge/index.d.ts.map +1 -1
- package/dist/components/Badge/index.js.map +1 -1
- package/dist/components/Banner/index.d.ts +1 -1
- package/dist/components/Banner/index.d.ts.map +1 -1
- package/dist/components/Banner/index.js.map +1 -1
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.js.map +1 -1
- package/dist/components/Card/index.d.ts +1 -1
- package/dist/components/Card/index.d.ts.map +1 -1
- package/dist/components/Card/index.js.map +1 -1
- package/dist/components/Checkbox/examples/index.d.ts +4 -4
- package/dist/components/Checkbox/examples/index.d.ts.map +1 -1
- package/dist/components/Checkbox/examples/index.js.map +1 -1
- package/dist/components/Checkbox/index.d.ts +1 -1
- package/dist/components/Checkbox/index.d.ts.map +1 -1
- package/dist/components/Checkbox/index.js.map +1 -1
- package/dist/components/Color/examples/03-format-switching.d.ts +0 -4
- package/dist/components/Color/examples/03-format-switching.d.ts.map +1 -1
- package/dist/components/Color/examples/03-format-switching.js +2 -2
- package/dist/components/Color/examples/03-format-switching.js.map +1 -1
- package/dist/components/Color/examples/index.d.ts +3 -3
- package/dist/components/Color/examples/index.d.ts.map +1 -1
- package/dist/components/Color/examples/index.js.map +1 -1
- package/dist/components/Color/examples.json +0 -5
- package/dist/components/Color/index.d.ts +1 -1
- package/dist/components/Color/index.d.ts.map +1 -1
- package/dist/components/Color/index.js.map +1 -1
- package/dist/components/Command/examples/01-basic-command.js +1 -1
- package/dist/components/Command/examples/01-basic-command.js.map +1 -1
- package/dist/components/Command/examples/index.d.ts +2 -2
- package/dist/components/Command/examples/index.d.ts.map +1 -1
- package/dist/components/Command/examples/index.js.map +1 -1
- package/dist/components/Command/examples.json +1 -1
- package/dist/components/Command/index.d.ts +1 -1
- package/dist/components/Command/index.d.ts.map +1 -1
- package/dist/components/Command/index.js +3 -3
- package/dist/components/Command/index.js.map +1 -1
- package/dist/components/Confirm/examples/index.d.ts +2 -2
- package/dist/components/Confirm/examples/index.d.ts.map +1 -1
- package/dist/components/Confirm/examples/index.js.map +1 -1
- package/dist/components/Confirm/index.d.ts +1 -1
- package/dist/components/Confirm/index.d.ts.map +1 -1
- package/dist/components/Confirm/index.js.map +1 -1
- package/dist/components/Date/index.js.map +1 -1
- package/dist/components/Divider/examples/02-pattern-variants.js +1 -1
- package/dist/components/Divider/examples.json +1 -1
- package/dist/components/Divider/index.d.ts +1 -1
- package/dist/components/Divider/index.d.ts.map +1 -1
- package/dist/components/Divider/index.js.map +1 -1
- package/dist/components/Expand/index.d.ts +1 -1
- package/dist/components/Expand/index.d.ts.map +1 -1
- package/dist/components/Expand/index.js.map +1 -1
- package/dist/components/Flex/index.d.ts +1 -1
- package/dist/components/Flex/index.d.ts.map +1 -1
- package/dist/components/Flex/index.js.map +1 -1
- package/dist/components/Frame/index.d.ts +1 -1
- package/dist/components/Frame/index.d.ts.map +1 -1
- package/dist/components/Frame/index.js.map +1 -1
- package/dist/components/Gallery/index.d.ts +1 -1
- package/dist/components/Gallery/index.d.ts.map +1 -1
- package/dist/components/Gallery/index.js.map +1 -1
- package/dist/components/Grid/examples/01-basic-grid.js +1 -1
- package/dist/components/Grid/examples/01-basic-grid.js.map +1 -1
- package/dist/components/Grid/examples.json +1 -1
- package/dist/components/Grid/index.d.ts +1 -1
- package/dist/components/Grid/index.d.ts.map +1 -1
- package/dist/components/Grid/index.js +2 -2
- package/dist/components/Grid/index.js.map +1 -1
- package/dist/components/Group/index.d.ts +1 -1
- package/dist/components/Group/index.d.ts.map +1 -1
- package/dist/components/Group/index.js.map +1 -1
- package/dist/components/Input/examples/02-validation.js +1 -1
- package/dist/components/Input/examples/02-validation.js.map +1 -1
- package/dist/components/Input/examples.json +1 -1
- package/dist/components/Input/index.d.ts +1 -1
- package/dist/components/Input/index.d.ts.map +1 -1
- package/dist/components/Input/index.js.map +1 -1
- package/dist/components/Label/index.d.ts +1 -1
- package/dist/components/Label/index.d.ts.map +1 -1
- package/dist/components/Label/index.js.map +1 -1
- package/dist/components/List/index.d.ts +1 -1
- package/dist/components/List/index.d.ts.map +1 -1
- package/dist/components/List/index.js.map +1 -1
- package/dist/components/Mask/index.d.ts +1 -1
- package/dist/components/Mask/index.d.ts.map +1 -1
- package/dist/components/Mask/index.js.map +1 -1
- package/dist/components/Menu/index.d.ts +1 -1
- package/dist/components/Menu/index.d.ts.map +1 -1
- package/dist/components/Menu/index.js.map +1 -1
- package/dist/components/Modal/index.d.ts +1 -1
- package/dist/components/Modal/index.d.ts.map +1 -1
- package/dist/components/Modal/index.js.map +1 -1
- package/dist/components/Path/examples.json +0 -5
- package/dist/components/Path/index.d.ts +1 -1
- package/dist/components/Path/index.d.ts.map +1 -1
- package/dist/components/Path/index.js.map +1 -1
- package/dist/components/Popover/index.d.ts +1 -1
- package/dist/components/Popover/index.d.ts.map +1 -1
- package/dist/components/Popover/index.js.map +1 -1
- package/dist/components/Progress/index.d.ts +1 -1
- package/dist/components/Progress/index.d.ts.map +1 -1
- package/dist/components/Progress/index.js.map +1 -1
- package/dist/components/Radio/index.d.ts +1 -1
- package/dist/components/Radio/index.d.ts.map +1 -1
- package/dist/components/Radio/index.js +1 -1
- package/dist/components/Radio/index.js.map +1 -1
- package/dist/components/Scroll/index.d.ts +1 -1
- package/dist/components/Scroll/index.d.ts.map +1 -1
- package/dist/components/Scroll/index.js.map +1 -1
- package/dist/components/Select/examples/02-searchable-select.js +1 -1
- package/dist/components/Select/examples/02-searchable-select.js.map +1 -1
- package/dist/components/Select/examples.json +1 -1
- package/dist/components/Select/index.d.ts +1 -1
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/Select/index.js.map +1 -1
- package/dist/components/Slider/index.d.ts +1 -1
- package/dist/components/Slider/index.d.ts.map +1 -1
- package/dist/components/Slider/index.js.map +1 -1
- package/dist/components/Switch/index.d.ts +1 -1
- package/dist/components/Switch/index.d.ts.map +1 -1
- package/dist/components/Switch/index.js.map +1 -1
- package/dist/components/Table/index.d.ts +1 -1
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Table/index.js.map +1 -1
- package/dist/components/Tabs/examples/01-basic-tabs.js +2 -2
- package/dist/components/Tabs/examples/01-basic-tabs.js.map +1 -1
- package/dist/components/Tabs/examples/02-vertical-tabs.js +2 -2
- package/dist/components/Tabs/examples/02-vertical-tabs.js.map +1 -1
- package/dist/components/Tabs/examples.json +2 -2
- package/dist/components/Tabs/index.d.ts +1 -1
- package/dist/components/Tabs/index.d.ts.map +1 -1
- package/dist/components/Tabs/index.js +11 -11
- package/dist/components/Tabs/index.js.map +1 -1
- package/dist/components/Textarea/index.d.ts +1 -1
- package/dist/components/Textarea/index.d.ts.map +1 -1
- package/dist/components/Textarea/index.js.map +1 -1
- package/dist/components/Toast/index.d.ts +1 -1
- package/dist/components/Toast/index.d.ts.map +1 -1
- package/dist/components/Toast/index.js.map +1 -1
- package/dist/components/Tooltip/index.d.ts +1 -1
- package/dist/components/Tooltip/index.d.ts.map +1 -1
- package/dist/components/Tooltip/index.js.map +1 -1
- package/dist/elements/AI/AIChatInput/index.d.ts +1 -1
- package/dist/elements/AI/AIChatInput/index.d.ts.map +1 -1
- package/dist/elements/AI/AIChatInput/index.js +1 -1
- package/dist/elements/AI/AIChatInput/variations/01-basic/index.js.map +1 -1
- package/dist/elements/AI/AIChatInput/variations/02-with-suggestions/index.js +1 -1
- package/dist/elements/AI/AIChatInput/variations/02-with-suggestions/index.js.map +1 -1
- package/dist/elements/AI/AIChatInput/variations/02-with-suggestions/layout/PromptInputWithSuggestions.js +1 -1
- package/dist/elements/AI/AIChatInput/variations.json +3 -3
- package/dist/elements/AI/ChainOfThought/index.d.ts +1 -1
- package/dist/elements/AI/ChainOfThought/index.d.ts.map +1 -1
- package/dist/elements/AI/ChainOfThought/index.js +1 -1
- package/dist/elements/AI/ChainOfThought/variations/01-basic/index.js.map +1 -1
- package/dist/elements/AI/ChainOfThought/variations/02-with-details/index.js.map +1 -1
- package/dist/elements/AI/ChainOfThought/variations.json +2 -2
- package/dist/elements/AI/Chat/index.d.ts +1 -1
- package/dist/elements/AI/Chat/index.d.ts.map +1 -1
- package/dist/elements/AI/Chat/index.js +1 -1
- package/dist/elements/AI/Chat/variations/01-basic/index.js.map +1 -1
- package/dist/elements/AI/Chat/variations/02-with-actions/index.js +1 -1
- package/dist/elements/AI/Chat/variations/02-with-actions/index.js.map +1 -1
- package/dist/elements/AI/Chat/variations.json +2 -2
- package/dist/elements/Documentation/CopyPage/index.d.ts +1 -1
- package/dist/elements/Documentation/CopyPage/index.d.ts.map +1 -1
- package/dist/elements/Documentation/CopyPage/index.js +1 -1
- package/dist/elements/Documentation/CopyPage/variations/01-basic/index.js.map +1 -1
- package/dist/elements/Documentation/CopyPage/variations/02-with-success/index.js.map +1 -1
- package/dist/elements/Documentation/CopyPage/variations.json +2 -2
- package/dist/elements/Documentation/NextArticle/index.d.ts +1 -1
- package/dist/elements/Documentation/NextArticle/index.d.ts.map +1 -1
- package/dist/elements/Documentation/NextArticle/index.js +1 -1
- package/dist/elements/Documentation/NextArticle/variations/01-basic/index.js.map +1 -1
- package/dist/elements/Documentation/NextArticle/variations/01-basic/layout/NextArticleCard.js +1 -1
- package/dist/elements/Documentation/NextArticle/variations/02-with-icon/index.js.map +1 -1
- package/dist/elements/Documentation/NextArticle/variations/02-with-icon/layout/NextArticleWithIconCard.js +1 -1
- package/dist/elements/Documentation/NextArticle/variations.json +4 -4
- package/dist/elements/Documentation/TOC/index.d.ts +1 -1
- package/dist/elements/Documentation/TOC/index.d.ts.map +1 -1
- package/dist/elements/Documentation/TOC/index.js +1 -1
- package/dist/elements/Documentation/TOC/variations/01-basic/index.js.map +1 -1
- package/dist/elements/Documentation/TOC/variations/02-expanded/index.js.map +1 -1
- package/dist/elements/Documentation/TOC/variations.json +2 -2
- package/dist/elements/Elements/Carousel/index.d.ts +1 -1
- package/dist/elements/Elements/Carousel/index.d.ts.map +1 -1
- package/dist/elements/Elements/Rating/index.d.ts +1 -1
- package/dist/elements/Elements/Rating/index.d.ts.map +1 -1
- package/dist/elements/Elements/Timeline/index.d.ts +1 -1
- package/dist/elements/Elements/Timeline/index.d.ts.map +1 -1
- package/dist/elements/Elements/TreeView/index.d.ts +1 -1
- package/dist/elements/Elements/TreeView/index.d.ts.map +1 -1
- package/dist/elements/categories.d.ts +1 -1
- package/dist/elements/categories.d.ts.map +1 -1
- package/dist/elements/foundation/Header/index.d.ts +1 -1
- package/dist/elements/foundation/Header/index.d.ts.map +1 -1
- package/dist/elements/foundation/Header/variations/01-basic/index.js.map +1 -1
- package/dist/elements/foundation/Header/variations.json +1 -1
- package/dist/elements/foundation/Page/index.d.ts +1 -1
- package/dist/elements/foundation/Page/index.d.ts.map +1 -1
- package/dist/elements/foundation/Page/variations/01-basic/index.js.map +1 -1
- package/dist/elements/foundation/Page/variations.json +1 -1
- package/dist/elements/foundation/Sidebar/index.d.ts +1 -1
- package/dist/elements/foundation/Sidebar/index.d.ts.map +1 -1
- package/dist/elements/foundation/Sidebar/variations/01-basic/index.js.map +1 -1
- package/dist/elements/foundation/Sidebar/variations.json +1 -1
- package/dist/generated-controls.d.ts +3 -0
- package/dist/generated-controls.d.ts.map +1 -0
- package/dist/generated-controls.js +161 -0
- package/dist/generated-controls.js.map +1 -0
- package/dist/generated-data.d.ts.map +1 -1
- package/dist/generated-data.js +214 -948
- package/dist/generated-data.js.map +1 -1
- package/dist/generated-styles.d.ts.map +1 -1
- package/dist/generated-styles.js +177 -69
- package/dist/generated-styles.js.map +1 -1
- package/dist/generated-styles.json +177 -69
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/patterns/data/data-table-row/metadata.json +3 -3
- package/dist/patterns/data/data-table-row/variations/expandable/index.js +1 -1
- package/dist/patterns/data/data-table-row/variations/main/index.js +1 -1
- package/dist/patterns/data/data-table-row/variations/selectable/index.js +1 -1
- package/dist/patterns/data/progress-metric/metadata.json +3 -3
- package/dist/patterns/data/progress-metric/variations/colored/index.js +1 -1
- package/dist/patterns/data/progress-metric/variations/main/index.js +1 -1
- package/dist/patterns/data/progress-metric/variations/stacked/index.js +1 -1
- package/dist/patterns/form/labeled-field/metadata.json +4 -4
- package/dist/patterns/form/labeled-field/variations/main/index.js +1 -1
- package/dist/patterns/form/labeled-field/variations/with-error/index.js +1 -1
- package/dist/patterns/form/labeled-field/variations/with-hint/index.js +1 -1
- package/dist/patterns/form/select-row/metadata.json +2 -2
- package/dist/patterns/form/select-row/variations/main/index.js +1 -1
- package/dist/patterns/form/select-row/variations/with-icon/index.js +1 -1
- package/dist/patterns/form/toggle-setting-row/metadata.json +2 -2
- package/dist/patterns/form/toggle-setting-row/variations/destructive/index.js +1 -1
- package/dist/patterns/form/toggle-setting-row/variations/main/index.js +1 -1
- package/dist/patterns/interaction/icon-action-bar/variations/compact/index.js +1 -1
- package/dist/patterns/layout/media-object/metadata.json +1 -1
- package/dist/patterns/layout/media-object/variations/sm/index.js +1 -1
- package/dist/patterns/layout/split-row/metadata.json +3 -3
- package/dist/patterns/layout/split-row/variations/actions/index.js +1 -1
- package/dist/patterns/layout/split-row/variations/main/index.js +1 -1
- package/dist/patterns/layout/split-row/variations/meta/index.js +1 -1
- package/dist/patterns/layout/stat-block/metadata.json +3 -3
- package/dist/patterns/layout/stat-block/variations/compact/index.js +1 -1
- package/dist/patterns/layout/stat-block/variations/main/index.js +1 -1
- package/dist/patterns/layout/stat-block/variations/with-icon/index.js +1 -1
- package/dist/providers/Theme/examples/01-provider-setup.d.ts +1 -1
- package/dist/providers/Theme/examples/index.d.ts +3 -3
- package/dist/providers/Theme/examples/index.d.ts.map +1 -1
- package/dist/providers/Theme/examples/index.js.map +1 -1
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +18 -28
- package/dist/registry.js.map +1 -1
- package/dist/sections/CTA/index.d.ts +1 -1
- package/dist/sections/CTA/index.d.ts.map +1 -1
- package/dist/sections/CTA/variations/02-split/index.js +1 -1
- package/dist/sections/CTA/variations.json +1 -1
- package/dist/sections/Features/index.d.ts +1 -1
- package/dist/sections/Features/index.d.ts.map +1 -1
- package/dist/sections/Hero/index.d.ts +1 -1
- package/dist/sections/Hero/index.d.ts.map +1 -1
- package/dist/sections/Pricing/index.d.ts +1 -1
- package/dist/sections/Pricing/index.d.ts.map +1 -1
- package/dist/sections/Pricing/variations/01-cards/index.js +1 -1
- package/dist/sections/Pricing/variations/02-comparison/index.js +1 -1
- package/dist/sections/Pricing/variations.json +2 -2
- package/dist/sections/Testimonials/index.d.ts +1 -1
- package/dist/sections/Testimonials/index.d.ts.map +1 -1
- package/dist/sections/categories.d.ts +0 -11
- package/dist/sections/categories.d.ts.map +1 -1
- package/dist/sections/categories.js +2 -2
- package/dist/sections/categories.js.map +1 -1
- package/dist/starters/Astro/index.d.ts +1 -1
- package/dist/starters/Astro/index.d.ts.map +1 -1
- package/dist/starters/Blog/index.d.ts +1 -1
- package/dist/starters/Blog/index.d.ts.map +1 -1
- package/dist/starters/CRM/index.d.ts +1 -1
- package/dist/starters/CRM/index.d.ts.map +1 -1
- package/dist/starters/Documentation/index.d.ts +1 -1
- package/dist/starters/Documentation/index.d.ts.map +1 -1
- package/dist/starters/NextJS/index.d.ts +1 -1
- package/dist/starters/NextJS/index.d.ts.map +1 -1
- package/dist/starters/NextJS/index.js +1 -1
- package/dist/starters/Productivity/index.d.ts +1 -1
- package/dist/starters/Productivity/index.d.ts.map +1 -1
- package/dist/starters/Tauri/index.d.ts +1 -1
- package/dist/starters/Tauri/index.d.ts.map +1 -1
- package/dist/starters/Vite/index.d.ts +1 -1
- package/dist/starters/Vite/index.d.ts.map +1 -1
- package/dist/types.d.ts +0 -6
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/get-category-icon.d.ts +1 -1
- package/dist/utils/get-category-icon.d.ts.map +1 -1
- package/dist/utils/load-component-examples.d.ts +3 -2
- package/dist/utils/load-component-examples.d.ts.map +1 -1
- package/package.json +3 -7
- package/src/component-dependencies.ts +4 -4
- package/src/component-order.ts +3 -3
- package/src/components/Anchor/index.tsx +2 -2
- package/src/components/Anchor/metadata.json +1 -1
- package/src/components/Badge/index.tsx +2 -2
- package/src/components/Banner/index.tsx +2 -2
- package/src/components/Banner/metadata.json +1 -1
- package/src/components/Button/index.tsx +2 -2
- package/src/components/Card/index.tsx +2 -2
- package/src/components/Card/metadata.json +1 -1
- package/src/components/Checkbox/examples/index.ts +4 -4
- package/src/components/Checkbox/index.tsx +2 -2
- package/src/components/Code/metadata.json +1 -1
- package/src/components/Color/examples/03-format-switching.tsx +3 -3
- package/src/components/Color/examples/index.ts +3 -3
- package/src/components/Color/examples.json +0 -5
- package/src/components/Color/index.tsx +2 -2
- package/src/components/Command/examples/01-basic-command.tsx +1 -1
- package/src/components/Command/examples/index.ts +2 -2
- package/src/components/Command/examples.json +1 -1
- package/src/components/Command/index.tsx +5 -5
- package/src/components/Confirm/examples/index.ts +2 -2
- package/src/components/Confirm/index.tsx +2 -2
- package/src/components/Date/index.tsx +1 -1
- package/src/components/Date/metadata.json +1 -1
- package/src/components/Divider/examples/02-pattern-variants.tsx +3 -3
- package/src/components/Divider/examples.json +1 -1
- package/src/components/Divider/index.tsx +2 -2
- package/src/components/Expand/index.tsx +2 -2
- package/src/components/Flex/index.tsx +2 -2
- package/src/components/Flex/metadata.json +1 -1
- package/src/components/Frame/index.tsx +2 -2
- package/src/components/Gallery/index.tsx +2 -2
- package/src/components/Gallery/metadata.json +1 -1
- package/src/components/Grid/examples/01-basic-grid.tsx +1 -1
- package/src/components/Grid/examples.json +1 -1
- package/src/components/Grid/index.tsx +5 -5
- package/src/components/Group/index.tsx +2 -2
- package/src/components/Group/metadata.json +1 -1
- package/src/components/Input/examples/02-validation.tsx +2 -2
- package/src/components/Input/examples.json +1 -1
- package/src/components/Input/index.tsx +2 -2
- package/src/components/Label/index.tsx +2 -2
- package/src/components/List/index.tsx +2 -2
- package/src/components/List/metadata.json +1 -1
- package/src/components/Mask/index.tsx +2 -2
- package/src/components/Menu/index.tsx +2 -2
- package/src/components/Modal/index.tsx +2 -2
- package/src/components/Page/metadata.json +1 -1
- package/src/components/Panel/metadata.json +2 -2
- package/src/components/Path/examples.json +0 -5
- package/src/components/Path/index.tsx +2 -2
- package/src/components/Popover/index.tsx +2 -2
- package/src/components/Progress/index.tsx +3 -3
- package/src/components/Radio/index.tsx +5 -5
- package/src/components/Scroll/index.tsx +2 -2
- package/src/components/Select/examples/02-searchable-select.tsx +1 -1
- package/src/components/Select/examples.json +1 -1
- package/src/components/Select/index.tsx +2 -2
- package/src/components/Slider/index.tsx +2 -2
- package/src/components/Switch/index.tsx +2 -2
- package/src/components/Table/index.tsx +2 -2
- package/src/components/Tabs/examples/01-basic-tabs.tsx +12 -12
- package/src/components/Tabs/examples/02-vertical-tabs.tsx +19 -19
- package/src/components/Tabs/examples.json +2 -2
- package/src/components/Tabs/index.tsx +47 -47
- package/src/components/Textarea/index.tsx +2 -2
- package/src/components/Toast/index.tsx +2 -2
- package/src/components/Tooltip/index.tsx +2 -2
- package/src/elements/AI/AIChatInput/index.tsx +3 -3
- package/src/elements/AI/AIChatInput/variations/01-basic/index.tsx +1 -1
- package/src/elements/AI/AIChatInput/variations/02-with-suggestions/index.tsx +2 -2
- package/src/elements/AI/AIChatInput/variations/02-with-suggestions/layout/PromptInputWithSuggestions.tsx +1 -1
- package/src/elements/AI/AIChatInput/variations.json +3 -3
- package/src/elements/AI/ChainOfThought/index.tsx +2 -2
- package/src/elements/AI/ChainOfThought/variations/01-basic/index.tsx +1 -1
- package/src/elements/AI/ChainOfThought/variations/02-with-details/index.tsx +1 -1
- package/src/elements/AI/ChainOfThought/variations.json +2 -2
- package/src/elements/AI/Chat/index.tsx +5 -5
- package/src/elements/AI/Chat/variations/01-basic/index.tsx +3 -3
- package/src/elements/AI/Chat/variations/02-with-actions/index.tsx +6 -6
- package/src/elements/AI/Chat/variations.json +2 -2
- package/src/elements/Documentation/CopyPage/index.tsx +2 -2
- package/src/elements/Documentation/CopyPage/variations/01-basic/index.tsx +1 -1
- package/src/elements/Documentation/CopyPage/variations/02-with-success/index.tsx +1 -1
- package/src/elements/Documentation/CopyPage/variations.json +2 -2
- package/src/elements/Documentation/NextArticle/index.tsx +2 -2
- package/src/elements/Documentation/NextArticle/variations/01-basic/index.tsx +1 -1
- package/src/elements/Documentation/NextArticle/variations/01-basic/layout/NextArticleCard.tsx +1 -1
- package/src/elements/Documentation/NextArticle/variations/02-with-icon/index.tsx +1 -1
- package/src/elements/Documentation/NextArticle/variations/02-with-icon/layout/NextArticleWithIconCard.tsx +1 -1
- package/src/elements/Documentation/NextArticle/variations.json +4 -4
- package/src/elements/Documentation/TOC/index.tsx +5 -5
- package/src/elements/Documentation/TOC/variations/01-basic/index.tsx +1 -1
- package/src/elements/Documentation/TOC/variations/02-expanded/index.tsx +1 -1
- package/src/elements/Documentation/TOC/variations.json +2 -2
- package/src/elements/Elements/Carousel/index.tsx +1 -1
- package/src/elements/Elements/Rating/index.tsx +1 -1
- package/src/elements/Elements/Timeline/index.tsx +1 -1
- package/src/elements/Elements/TreeView/index.tsx +1 -1
- package/src/elements/categories.ts +1 -1
- package/src/elements/foundation/Header/index.tsx +1 -1
- package/src/elements/foundation/Header/variations/01-basic/index.tsx +1 -1
- package/src/elements/foundation/Header/variations.json +1 -1
- package/src/elements/foundation/Page/index.tsx +1 -1
- package/src/elements/foundation/Page/variations/01-basic/index.tsx +1 -1
- package/src/elements/foundation/Page/variations.json +1 -1
- package/src/elements/foundation/Sidebar/index.tsx +1 -1
- package/src/elements/foundation/Sidebar/variations/01-basic/index.tsx +1 -1
- package/src/elements/foundation/Sidebar/variations.json +1 -1
- package/src/generated-controls.ts +194 -0
- package/src/generated-data.ts +214 -948
- package/src/generated-styles.ts +177 -69
- package/src/index.ts +1 -0
- package/src/patterns/data/data-table-row/metadata.json +4 -4
- package/src/patterns/data/data-table-row/variations/expandable/index.tsx +3 -3
- package/src/patterns/data/data-table-row/variations/main/index.tsx +2 -2
- package/src/patterns/data/data-table-row/variations/selectable/index.tsx +2 -2
- package/src/patterns/data/progress-metric/metadata.json +4 -4
- package/src/patterns/data/progress-metric/variations/colored/index.tsx +2 -2
- package/src/patterns/data/progress-metric/variations/main/index.tsx +2 -2
- package/src/patterns/data/progress-metric/variations/stacked/index.tsx +2 -2
- package/src/patterns/form/labeled-field/metadata.json +5 -5
- package/src/patterns/form/labeled-field/variations/main/index.tsx +1 -1
- package/src/patterns/form/labeled-field/variations/with-error/index.tsx +1 -1
- package/src/patterns/form/labeled-field/variations/with-hint/index.tsx +1 -1
- package/src/patterns/form/select-row/metadata.json +3 -3
- package/src/patterns/form/select-row/variations/main/index.tsx +1 -1
- package/src/patterns/form/select-row/variations/with-icon/index.tsx +1 -1
- package/src/patterns/form/toggle-setting-row/metadata.json +3 -3
- package/src/patterns/form/toggle-setting-row/variations/destructive/index.tsx +1 -1
- package/src/patterns/form/toggle-setting-row/variations/main/index.tsx +1 -1
- package/src/patterns/interaction/icon-action-bar/variations/compact/index.tsx +1 -1
- package/src/patterns/layout/media-object/metadata.json +2 -2
- package/src/patterns/layout/media-object/variations/sm/index.tsx +2 -2
- package/src/patterns/layout/split-row/metadata.json +4 -4
- package/src/patterns/layout/split-row/variations/actions/index.tsx +1 -1
- package/src/patterns/layout/split-row/variations/main/index.tsx +2 -2
- package/src/patterns/layout/split-row/variations/meta/index.tsx +3 -3
- package/src/patterns/layout/stat-block/metadata.json +4 -4
- package/src/patterns/layout/stat-block/variations/compact/index.tsx +1 -1
- package/src/patterns/layout/stat-block/variations/main/index.tsx +1 -1
- package/src/patterns/layout/stat-block/variations/with-icon/index.tsx +1 -1
- package/src/registry.ts +18 -28
- package/src/sections/CTA/index.tsx +1 -1
- package/src/sections/CTA/variations/02-split/index.tsx +1 -1
- package/src/sections/CTA/variations.json +1 -1
- package/src/sections/Features/index.tsx +1 -1
- package/src/sections/Hero/index.tsx +1 -1
- package/src/sections/Pricing/index.tsx +1 -1
- package/src/sections/Pricing/variations/01-cards/index.tsx +1 -1
- package/src/sections/Pricing/variations/02-comparison/index.tsx +1 -1
- package/src/sections/Pricing/variations.json +2 -2
- package/src/sections/Testimonials/index.tsx +1 -1
- package/src/sections/categories.ts +2 -2
- package/src/starters/Astro/index.tsx +1 -1
- package/src/starters/Blog/index.tsx +1 -1
- package/src/starters/CRM/index.tsx +1 -1
- package/src/starters/Documentation/index.tsx +1 -1
- package/src/starters/NextJS/index.tsx +3 -3
- package/src/starters/Productivity/index.tsx +1 -1
- package/src/starters/Tauri/index.tsx +1 -1
- package/src/starters/Vite/index.tsx +1 -1
- package/src/types.ts +1 -2
- package/src/utils/get-category-icon.tsx +1 -1
- package/src/utils/load-component-examples.ts +2 -2
- package/dist/components/Button/examples/02-joined-toggle-buttons.d.ts +0 -6
- package/dist/components/Button/examples/02-joined-toggle-buttons.d.ts.map +0 -1
- package/dist/components/Button/examples/02-joined-toggle-buttons.js +0 -15
- package/dist/components/Button/examples/02-joined-toggle-buttons.js.map +0 -1
- package/dist/components/Button/examples/03-split-action-button.d.ts +0 -6
- package/dist/components/Button/examples/03-split-action-button.d.ts.map +0 -1
- package/dist/components/Button/examples/03-split-action-button.js +0 -11
- package/dist/components/Button/examples/03-split-action-button.js.map +0 -1
- package/dist/components/Button/examples/04-toolbar-buttons.d.ts +0 -6
- package/dist/components/Button/examples/04-toolbar-buttons.d.ts.map +0 -1
- package/dist/components/Button/examples/04-toolbar-buttons.js +0 -11
- package/dist/components/Button/examples/04-toolbar-buttons.js.map +0 -1
- package/dist/components/Button/examples/05-pagination-controls.d.ts +0 -6
- package/dist/components/Button/examples/05-pagination-controls.d.ts.map +0 -1
- package/dist/components/Button/examples/05-pagination-controls.js +0 -16
- package/dist/components/Button/examples/05-pagination-controls.js.map +0 -1
- package/dist/components/Card/examples/02-user-profile-card.d.ts +0 -6
- package/dist/components/Card/examples/02-user-profile-card.d.ts.map +0 -1
- package/dist/components/Card/examples/02-user-profile-card.js +0 -12
- package/dist/components/Card/examples/02-user-profile-card.js.map +0 -1
- package/dist/components/Card/examples/03-settings-panel-card.d.ts +0 -6
- package/dist/components/Card/examples/03-settings-panel-card.d.ts.map +0 -1
- package/dist/components/Card/examples/03-settings-panel-card.js +0 -17
- package/dist/components/Card/examples/03-settings-panel-card.js.map +0 -1
- package/dist/components/Card/examples/04-task-progress-card.d.ts +0 -6
- package/dist/components/Card/examples/04-task-progress-card.d.ts.map +0 -1
- package/dist/components/Card/examples/04-task-progress-card.js +0 -12
- package/dist/components/Card/examples/04-task-progress-card.js.map +0 -1
- package/dist/components/Card/examples/05-data-summary-card.d.ts +0 -6
- package/dist/components/Card/examples/05-data-summary-card.d.ts.map +0 -1
- package/dist/components/Card/examples/05-data-summary-card.js +0 -12
- package/dist/components/Card/examples/05-data-summary-card.js.map +0 -1
- package/dist/components/CodeBlock/index.d.ts +0 -3
- package/dist/components/CodeBlock/index.d.ts.map +0 -1
- package/dist/components/CodeBlock/index.js +0 -58
- package/dist/components/CodeBlock/index.js.map +0 -1
- package/dist/components/Fold/examples/01-basic-fold.d.ts +0 -6
- package/dist/components/Fold/examples/01-basic-fold.d.ts.map +0 -1
- package/dist/components/Fold/examples/01-basic-fold.js +0 -11
- package/dist/components/Fold/examples/01-basic-fold.js.map +0 -1
- package/dist/components/Fold/examples/index.d.ts +0 -3
- package/dist/components/Fold/examples/index.d.ts.map +0 -1
- package/dist/components/Fold/examples/index.js +0 -4
- package/dist/components/Fold/examples/index.js.map +0 -1
- package/dist/components/Fold/examples.json +0 -7
- package/dist/components/Fold/index.d.ts +0 -6
- package/dist/components/Fold/index.d.ts.map +0 -1
- package/dist/components/Fold/index.js +0 -68
- package/dist/components/Fold/index.js.map +0 -1
- package/dist/components/Group/examples/02-active-buttons.d.ts +0 -6
- package/dist/components/Group/examples/02-active-buttons.d.ts.map +0 -1
- package/dist/components/Group/examples/02-active-buttons.js +0 -13
- package/dist/components/Group/examples/02-active-buttons.js.map +0 -1
- package/dist/components/Layout/index.d.ts +0 -5
- package/dist/components/Layout/index.d.ts.map +0 -1
- package/dist/components/Layout/index.js +0 -85
- package/dist/components/Layout/index.js.map +0 -1
- package/dist/components/Toast/examples/03-destructive-toast.d.ts +0 -6
- package/dist/components/Toast/examples/03-destructive-toast.d.ts.map +0 -1
- package/dist/components/Toast/examples/03-destructive-toast.js +0 -15
- package/dist/components/Toast/examples/03-destructive-toast.js.map +0 -1
- package/dist/patterns/content/feature-grid/example.d.ts +0 -6
- package/dist/patterns/content/feature-grid/example.d.ts.map +0 -1
- package/dist/patterns/content/feature-grid/example.js +0 -44
- package/dist/patterns/content/feature-grid/example.js.map +0 -1
- package/dist/patterns/content/feature-grid/metadata.json +0 -17
- package/dist/patterns/content/pricing-cards/example.d.ts +0 -6
- package/dist/patterns/content/pricing-cards/example.d.ts.map +0 -1
- package/dist/patterns/content/pricing-cards/example.js +0 -65
- package/dist/patterns/content/pricing-cards/example.js.map +0 -1
- package/dist/patterns/content/pricing-cards/metadata.json +0 -17
- package/dist/patterns/forms/settings-form-layout/example.d.ts +0 -6
- package/dist/patterns/forms/settings-form-layout/example.d.ts.map +0 -1
- package/dist/patterns/forms/settings-form-layout/example.js +0 -11
- package/dist/patterns/forms/settings-form-layout/example.js.map +0 -1
- package/dist/patterns/forms/settings-form-layout/metadata.json +0 -17
- package/dist/patterns/hero-landing/hero-with-cta/example.d.ts +0 -6
- package/dist/patterns/hero-landing/hero-with-cta/example.d.ts.map +0 -1
- package/dist/patterns/hero-landing/hero-with-cta/example.js +0 -11
- package/dist/patterns/hero-landing/hero-with-cta/example.js.map +0 -1
- package/dist/patterns/hero-landing/hero-with-cta/metadata.json +0 -17
- package/dist/patterns/navigation/sticky-header/example.d.ts +0 -6
- package/dist/patterns/navigation/sticky-header/example.d.ts.map +0 -1
- package/dist/patterns/navigation/sticky-header/example.js +0 -12
- package/dist/patterns/navigation/sticky-header/example.js.map +0 -1
- package/dist/patterns/navigation/sticky-header/metadata.json +0 -17
- package/dist/styles.css +0 -2042
- package/src/components/Path/examples/01-basic-breadcrumbs.tsx +0 -17
- package/src/providers/Theme/examples/01-provider-setup.tsx +0 -37
- package/src/providers/Theme/examples/02-toggle-component.tsx +0 -52
- package/src/providers/Theme/examples/03-advanced-patterns.tsx +0 -138
- package/src/providers/Theme/examples/index.ts +0 -3
- package/src/src/generated-styles.ts +0 -1359
|
@@ -4,7 +4,7 @@ import { ControlDef, ComponentDetail } from '@/types';
|
|
|
4
4
|
import Example1, { metadata as metadata1 } from './examples/01-basic-checkbox.js';
|
|
5
5
|
import Example2, { metadata as metadata2 } from './examples/02-checkbox-group-with-descriptions.js';
|
|
6
6
|
import examplesJson from './examples.json' with { type: 'json' };
|
|
7
|
-
import { loadComponentExamples } from '../../utils/load-component-examples';
|
|
7
|
+
import { loadComponentExamples } from '../../utils/load-component-examples.js';
|
|
8
8
|
import { FaCheck } from 'react-icons/fa6';
|
|
9
9
|
|
|
10
10
|
const examplesData = [
|
|
@@ -109,4 +109,4 @@ export const checkboxDetail: ComponentDetail = {
|
|
|
109
109
|
};
|
|
110
110
|
|
|
111
111
|
export { checkboxControls };
|
|
112
|
-
export * from './examples/index';
|
|
112
|
+
export * from './examples/index.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "code",
|
|
3
3
|
"name": "Code",
|
|
4
|
-
"description": "
|
|
4
|
+
"description": "Displays syntax-highlighted code with a built-in copy button.",
|
|
5
5
|
"category": "display",
|
|
6
6
|
"experimental": true,
|
|
7
7
|
"source": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import { Color } from 'ui-lab-components';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const metadata = {
|
|
5
5
|
title: 'Format Switching',
|
|
6
6
|
description: 'Color picker with format toggle between hex and RGB to copy colors in different formats.'
|
|
7
7
|
};
|
|
@@ -23,7 +23,7 @@ export default function Example() {
|
|
|
23
23
|
</p>
|
|
24
24
|
<button
|
|
25
25
|
onClick={handleFormatChange}
|
|
26
|
-
className="px-3 py-1 text-
|
|
26
|
+
className="px-3 py-1 text-sm bg-foreground-400 hover:bg-foreground-400 text-foreground-100 rounded transition-colors"
|
|
27
27
|
>
|
|
28
28
|
Format: {format.toUpperCase()}
|
|
29
29
|
</button>
|
|
@@ -36,7 +36,7 @@ export default function Example() {
|
|
|
36
36
|
/>
|
|
37
37
|
</div>
|
|
38
38
|
<div className="mt-4 p-3 bg-foreground-400 rounded border border-foreground-400">
|
|
39
|
-
<p className="text-
|
|
39
|
+
<p className="text-sm text-foreground-300">
|
|
40
40
|
<strong>Tip:</strong> Click the format button to switch between hex and RGB output formats.
|
|
41
41
|
This is useful when you need to copy colors in different formats for different contexts.
|
|
42
42
|
</p>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as BasicColor } from './01-basic-color';
|
|
2
|
-
export { default as OpacitySlider } from './02-opacity-slider';
|
|
3
|
-
export { default as FormatSwitching } from './03-format-switching';
|
|
1
|
+
export { default as BasicColor } from './01-basic-color.js';
|
|
2
|
+
export { default as OpacitySlider } from './02-opacity-slider.js';
|
|
3
|
+
export { default as FormatSwitching } from './03-format-switching.js';
|
|
@@ -8,10 +8,5 @@
|
|
|
8
8
|
"title": "Opacity Slider",
|
|
9
9
|
"description": "Color picker with opacity/alpha slider enabled for transparent color selection.",
|
|
10
10
|
"code": "import React, { useState } from 'react';\nimport { Color } from 'ui-lab-components';\n\nexport default function Example() {\n const [color, setColor] = useState('rgba(106, 90, 205, 0.75)');\n\n return (\n <div className=\"p-4 space-y-4\">\n <div>\n <p className=\"text-sm text-foreground-300 mb-3\">Selected color: <code className=\"text-accent-500 font-mono\">{color}</code></p>\n <Color\n value={color}\n onChange={setColor}\n showOpacity\n format=\"rgb\"\n defaultValue=\"rgba(106, 90, 205, 0.75)\"\n />\n </div>\n </div>\n );\n}"
|
|
11
|
-
},
|
|
12
|
-
"03-format-switching": {
|
|
13
|
-
"title": "Format Switching",
|
|
14
|
-
"description": "Color picker with format toggle between hex and RGB to copy colors in different formats.",
|
|
15
|
-
"code": "import React, { useState } from 'react';\nimport { Color } from 'ui-lab-components';\n\nexport default function Example() {\n const [color, setColor] = useState('#3B82F6');\n const [format, setFormat] = useState<'hex' | 'rgb'>('hex');\n\n const handleFormatChange = () => {\n setFormat(format === 'hex' ? 'rgb' : 'hex');\n };\n\n return (\n <div className=\"p-4 space-y-4\">\n <div>\n <div className=\"flex items-center justify-between mb-3\">\n <p className=\"text-sm text-foreground-300\">\n Selected color: <code className=\"text-accent-500 font-mono\">{color}</code>\n </p>\n <button\n onClick={handleFormatChange}\n className=\"px-3 py-1 text-xs bg-foreground-400 hover:bg-foreground-400 text-foreground-100 rounded transition-colors\"\n >\n Format: {format.toUpperCase()}\n </button>\n </div>\n <Color\n value={color}\n onChange={setColor}\n format={format}\n defaultValue=\"#3B82F6\"\n />\n </div>\n <div className=\"mt-4 p-3 bg-foreground-400 rounded border border-foreground-400\">\n <p className=\"text-xs text-foreground-300\">\n <strong>Tip:</strong> Click the format button to switch between hex and RGB output formats.\n This is useful when you need to copy colors in different formats for different contexts.\n </p>\n </div>\n </div>\n );\n}"
|
|
16
11
|
}
|
|
17
12
|
}
|
|
@@ -4,7 +4,7 @@ import { ControlDef, ComponentDetail } from '@/types';
|
|
|
4
4
|
import Example1, { metadata as metadata1 } from './examples/01-basic-color.js';
|
|
5
5
|
import Example2, { metadata as metadata2 } from './examples/02-opacity-slider.js';
|
|
6
6
|
import examplesJson from './examples.json' with { type: 'json' };
|
|
7
|
-
import { loadComponentExamples } from '../../utils/load-component-examples';
|
|
7
|
+
import { loadComponentExamples } from '../../utils/load-component-examples.js';
|
|
8
8
|
|
|
9
9
|
// Define examplesData locally
|
|
10
10
|
const examplesData = [
|
|
@@ -102,4 +102,4 @@ export const colorDetail: ComponentDetail = {
|
|
|
102
102
|
};
|
|
103
103
|
|
|
104
104
|
export { colorControls };
|
|
105
|
-
export * from './examples/index';
|
|
105
|
+
export * from './examples/index.js';
|
|
@@ -45,7 +45,7 @@ export default function Example() {
|
|
|
45
45
|
onOpenChange={setOpen}
|
|
46
46
|
items={commands}
|
|
47
47
|
>
|
|
48
|
-
<Command.
|
|
48
|
+
<Command.Input placeholder="Search commands..." />
|
|
49
49
|
<Command.List>
|
|
50
50
|
<Command.Groups
|
|
51
51
|
renderCategory={(category) =>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as Example1 } from './01-basic-command';
|
|
2
|
-
export { metadata as metadata1 } from './01-basic-command';
|
|
1
|
+
export { default as Example1 } from './01-basic-command.js';
|
|
2
|
+
export { metadata as metadata1 } from './01-basic-command.js';
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"01-basic-command": {
|
|
3
3
|
"title": "Basic Command Palette",
|
|
4
4
|
"description": "A searchable command palette with keyboard shortcuts. Use Cmd+K (or Ctrl+K) to open.",
|
|
5
|
-
"code": "'use client';\n\nimport React from 'react';\nimport { Command, Button, Badge } from 'ui-lab-components';\n\nexport default function Example() {\n const [open, setOpen] = React.useState(false);\n\n const commands = [\n {\n id: 'search',\n label: 'Search',\n description: 'Search documents',\n shortcut: '⌘F',\n action: () => console.log('Search'),\n },\n {\n id: 'create',\n label: 'Create new',\n description: 'Create a new document',\n shortcut: '⌘N',\n action: () => console.log('Create'),\n },\n {\n id: 'settings',\n label: 'Settings',\n description: 'Open application settings',\n shortcut: '⌘,',\n action: () => console.log('Settings'),\n },\n ];\n\n return (\n <>\n <Button onClick={() => setOpen(true)}>\n Open Palette (⌘K)\n </Button>\n <Command\n open={open}\n onOpenChange={setOpen}\n items={commands}\n >\n <Command.
|
|
5
|
+
"code": "'use client';\n\nimport React from 'react';\nimport { Command, Button, Badge } from 'ui-lab-components';\n\nexport default function Example() {\n const [open, setOpen] = React.useState(false);\n\n const commands = [\n {\n id: 'search',\n label: 'Search',\n description: 'Search documents',\n shortcut: '⌘F',\n action: () => console.log('Search'),\n },\n {\n id: 'create',\n label: 'Create new',\n description: 'Create a new document',\n shortcut: '⌘N',\n action: () => console.log('Create'),\n },\n {\n id: 'settings',\n label: 'Settings',\n description: 'Open application settings',\n shortcut: '⌘,',\n action: () => console.log('Settings'),\n },\n ];\n\n return (\n <>\n <Button onClick={() => setOpen(true)}>\n Open Palette (⌘K)\n </Button>\n <Command\n open={open}\n onOpenChange={setOpen}\n items={commands}\n >\n <Command.Input placeholder=\"Search commands...\" />\n <Command.List>\n <Command.Groups\n renderCategory={(category) =>\n category ? <Command.Category>{category}</Command.Category> : null\n }\n renderItem={(cmd) => (\n <Command.Item\n key={cmd.id}\n value={cmd.id}\n textValue={cmd.label}\n action={cmd.action}\n hint={cmd.shortcut}\n >\n <div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>\n <div>\n <div style={{ fontWeight: 500 }}>{cmd.label}</div>\n {cmd.description && (\n <div style={{ fontSize: '0.875em', opacity: 0.7 }}>\n {cmd.description}\n </div>\n )}\n </div>\n </div>\n </Command.Item>\n )}\n />\n </Command.List>\n </Command>\n </>\n );\n}"
|
|
6
6
|
}
|
|
7
7
|
}
|
|
@@ -3,7 +3,7 @@ import { Command, Button, type Command as CommandType } from 'ui-lab-components'
|
|
|
3
3
|
import { ControlDef, ComponentDetail } from '@/types';
|
|
4
4
|
import Example1, { metadata as metadata1 } from './examples/01-basic-command.js';
|
|
5
5
|
import examplesJson from './examples.json' with { type: 'json' };
|
|
6
|
-
import { loadComponentExamples } from '../../utils/load-component-examples';
|
|
6
|
+
import { loadComponentExamples } from '../../utils/load-component-examples.js';
|
|
7
7
|
|
|
8
8
|
const examplesData = [
|
|
9
9
|
{ id: '01-basic-command', Component: Example1, metadata: metadata1 },
|
|
@@ -51,7 +51,7 @@ export function Example() {
|
|
|
51
51
|
onOpenChange={setOpen}
|
|
52
52
|
items={commands}
|
|
53
53
|
>
|
|
54
|
-
<Command.
|
|
54
|
+
<Command.Input placeholder="Search..." />
|
|
55
55
|
<Command.List>
|
|
56
56
|
<Command.Groups
|
|
57
57
|
renderItem={(cmd) => (
|
|
@@ -95,7 +95,7 @@ const CommandPreview = () => {
|
|
|
95
95
|
<>
|
|
96
96
|
<Button onClick={() => setOpen(true)}>Open Palette</Button>
|
|
97
97
|
<Command open={open} onOpenChange={setOpen} items={commands}>
|
|
98
|
-
<Command.
|
|
98
|
+
<Command.Input placeholder="Search..." />
|
|
99
99
|
<Command.List>
|
|
100
100
|
<Command.Groups
|
|
101
101
|
renderItem={(cmd) => (
|
|
@@ -146,7 +146,7 @@ const CommandRenderPreview = (props: any) => {
|
|
|
146
146
|
}}
|
|
147
147
|
items={commands}
|
|
148
148
|
>
|
|
149
|
-
<Command.
|
|
149
|
+
<Command.Input placeholder="Search..." />
|
|
150
150
|
<Command.List>
|
|
151
151
|
<Command.Groups
|
|
152
152
|
renderItem={(cmd) => (
|
|
@@ -206,4 +206,4 @@ export const commandDetail: ComponentDetail = {
|
|
|
206
206
|
};
|
|
207
207
|
|
|
208
208
|
export { commandControls };
|
|
209
|
-
export * from './examples/index';
|
|
209
|
+
export * from './examples/index.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as Example1 } from './01-basic-confirm';
|
|
2
|
-
export { metadata as metadata1 } from './01-basic-confirm';
|
|
1
|
+
export { default as Example1 } from './01-basic-confirm.js';
|
|
2
|
+
export { metadata as metadata1 } from './01-basic-confirm.js';
|
|
@@ -3,7 +3,7 @@ import { Confirm } from 'ui-lab-components';
|
|
|
3
3
|
import { ControlDef, ComponentDetail } from '@/types';
|
|
4
4
|
import Example1, { metadata as metadata1 } from './examples/01-basic-confirm.js';
|
|
5
5
|
import examplesJson from './examples.json' with { type: 'json' };
|
|
6
|
-
import { loadComponentExamples } from '../../utils/load-component-examples';
|
|
6
|
+
import { loadComponentExamples } from '../../utils/load-component-examples.js';
|
|
7
7
|
import { FaCheck, FaX } from 'react-icons/fa6';
|
|
8
8
|
|
|
9
9
|
const examplesData = [
|
|
@@ -115,4 +115,4 @@ export const confirmDetail: ComponentDetail = {
|
|
|
115
115
|
};
|
|
116
116
|
|
|
117
117
|
export { confirmControls };
|
|
118
|
-
export * from './examples/index';
|
|
118
|
+
export * from './examples/index.js';
|
|
@@ -4,7 +4,7 @@ import { ControlDef, ComponentDetail } from '@/types'
|
|
|
4
4
|
import Example1, { metadata as metadata1 } from './examples/01-basic-date.js'
|
|
5
5
|
import Example2, { metadata as metadata2 } from './examples/02-with-disabled-dates.js'
|
|
6
6
|
import examplesJson from './examples.json' with { type: 'json' }
|
|
7
|
-
import { loadComponentExamples } from '../../utils/load-component-examples'
|
|
7
|
+
import { loadComponentExamples } from '../../utils/load-component-examples.js'
|
|
8
8
|
|
|
9
9
|
const examplesData = [
|
|
10
10
|
{ id: '01-basic-date', Component: Example1, metadata: metadata1 },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "date",
|
|
3
3
|
"name": "Date",
|
|
4
|
-
"description": "
|
|
4
|
+
"description": "Calendar date picker with keyboard navigation and accessibility.",
|
|
5
5
|
"category": "input",
|
|
6
6
|
"source": {
|
|
7
7
|
"packageName": "ui-lab-components",
|
|
@@ -9,15 +9,15 @@ export default function Example() {
|
|
|
9
9
|
return (
|
|
10
10
|
<div className="space-y-6 w-full">
|
|
11
11
|
<div className="space-y-2">
|
|
12
|
-
<span className="text-
|
|
12
|
+
<span className="text-sm text-foreground-400">Solid</span>
|
|
13
13
|
<Divider variant="solid" />
|
|
14
14
|
</div>
|
|
15
15
|
<div className="space-y-2">
|
|
16
|
-
<span className="text-
|
|
16
|
+
<span className="text-sm text-foreground-400">Dashed</span>
|
|
17
17
|
<Divider variant="dashed" />
|
|
18
18
|
</div>
|
|
19
19
|
<div className="space-y-2">
|
|
20
|
-
<span className="text-
|
|
20
|
+
<span className="text-sm text-foreground-400">Dotted</span>
|
|
21
21
|
<Divider variant="dotted" />
|
|
22
22
|
</div>
|
|
23
23
|
</div>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"02-pattern-variants": {
|
|
8
8
|
"title": "Pattern Variants",
|
|
9
9
|
"description": "Dividers support three distinct pattern styles: solid for continuous lines, dashed for rectangular segments, and dotted for circular dots.",
|
|
10
|
-
"code": "import { Divider } from 'ui-lab-components';\n\nexport default function Example() {\n return (\n <div className=\"space-y-6 w-full\">\n <div className=\"space-y-2\">\n <span className=\"text-
|
|
10
|
+
"code": "import { Divider } from 'ui-lab-components';\n\nexport default function Example() {\n return (\n <div className=\"space-y-6 w-full\">\n <div className=\"space-y-2\">\n <span className=\"text-sm text-foreground-400\">Solid</span>\n <Divider variant=\"solid\" />\n </div>\n <div className=\"space-y-2\">\n <span className=\"text-sm text-foreground-400\">Dashed</span>\n <Divider variant=\"dashed\" />\n </div>\n <div className=\"space-y-2\">\n <span className=\"text-sm text-foreground-400\">Dotted</span>\n <Divider variant=\"dotted\" />\n </div>\n </div>\n );\n}"
|
|
11
11
|
},
|
|
12
12
|
"03-vertical-divider": {
|
|
13
13
|
"title": "Vertical Orientation",
|
|
@@ -11,7 +11,7 @@ import Example3, {
|
|
|
11
11
|
metadata as metadata3,
|
|
12
12
|
} from "./examples/03-vertical-divider.js";
|
|
13
13
|
import examplesJson from "./examples.json";
|
|
14
|
-
import { loadComponentExamples } from "../../utils/load-component-examples";
|
|
14
|
+
import { loadComponentExamples } from "../../utils/load-component-examples.js";
|
|
15
15
|
|
|
16
16
|
// Define examplesData locally
|
|
17
17
|
const examplesData = [
|
|
@@ -107,4 +107,4 @@ export const dividerDetail: ComponentDetail = {
|
|
|
107
107
|
};
|
|
108
108
|
|
|
109
109
|
export { dividerControls };
|
|
110
|
-
export * from "./examples/index";
|
|
110
|
+
export * from "./examples/index.js";
|
|
@@ -3,7 +3,7 @@ import { Expand } from 'ui-lab-components';
|
|
|
3
3
|
import { ControlDef, ComponentDetail } from '@/types';
|
|
4
4
|
import Example1, { metadata as metadata1 } from './examples/01-basic-expand.js';
|
|
5
5
|
import examplesJson from './examples.json' with { type: 'json' };
|
|
6
|
-
import { loadComponentExamples } from '../../utils/load-component-examples';
|
|
6
|
+
import { loadComponentExamples } from '../../utils/load-component-examples.js';
|
|
7
7
|
import { FaChevronDown } from 'react-icons/fa6';
|
|
8
8
|
|
|
9
9
|
// Define examplesData locally
|
|
@@ -99,4 +99,4 @@ export const expandDetail: ComponentDetail = {
|
|
|
99
99
|
};
|
|
100
100
|
|
|
101
101
|
export { expandControls };
|
|
102
|
-
export * from './examples/index';
|
|
102
|
+
export * from './examples/index.js';
|
|
@@ -3,7 +3,7 @@ import { Flex } from 'ui-lab-components';
|
|
|
3
3
|
import { ControlDef, ComponentDetail } from '@/types';
|
|
4
4
|
import Example1, { metadata as metadata1 } from './examples/01-basic-flex.js';
|
|
5
5
|
import examplesJson from './examples.json' with { type: 'json' };
|
|
6
|
-
import { loadComponentExamples } from '../../utils/load-component-examples';
|
|
6
|
+
import { loadComponentExamples } from '../../utils/load-component-examples.js';
|
|
7
7
|
|
|
8
8
|
// Define examplesData locally
|
|
9
9
|
const examplesData = [
|
|
@@ -159,4 +159,4 @@ export const flexDetail: ComponentDetail = {
|
|
|
159
159
|
};
|
|
160
160
|
|
|
161
161
|
export { flexControls };
|
|
162
|
-
export * from './examples/index';
|
|
162
|
+
export * from './examples/index.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "flex",
|
|
3
3
|
"name": "Flex",
|
|
4
|
-
"description": "
|
|
4
|
+
"description": "Flexbox layout primitive with container query support for UIs.",
|
|
5
5
|
"category": "layout",
|
|
6
6
|
"source": {
|
|
7
7
|
"packageName": "ui-lab-components",
|
|
@@ -5,7 +5,7 @@ import Example1, { metadata as metadata1 } from './examples/01-default-frame.js'
|
|
|
5
5
|
import Example2, { metadata as metadata2 } from './examples/02-tooltip-example.js';
|
|
6
6
|
import Example3, { metadata as metadata3 } from './examples/03-sidebar-tab.js';
|
|
7
7
|
import examplesJson from './examples.json' with { type: 'json' };
|
|
8
|
-
import { loadComponentExamples } from '../../utils/load-component-examples';
|
|
8
|
+
import { loadComponentExamples } from '../../utils/load-component-examples.js';
|
|
9
9
|
|
|
10
10
|
const examplesData = [
|
|
11
11
|
{ id: '01-default-frame', Component: Example1, metadata: metadata1 },
|
|
@@ -88,4 +88,4 @@ export const frameDetail: ComponentDetail = {
|
|
|
88
88
|
};
|
|
89
89
|
|
|
90
90
|
export { frameControls };
|
|
91
|
-
export * from './examples/index';
|
|
91
|
+
export * from './examples/index.js';
|
|
@@ -4,7 +4,7 @@ import { ControlDef, ComponentDetail } from '@/types';
|
|
|
4
4
|
import { FaImage } from 'react-icons/fa6';
|
|
5
5
|
import Example1, { metadata as metadata1 } from './examples/01-basic-gallery.js';
|
|
6
6
|
import examplesJson from './examples.json' with { type: 'json' };
|
|
7
|
-
import { loadComponentExamples } from '../../utils/load-component-examples';
|
|
7
|
+
import { loadComponentExamples } from '../../utils/load-component-examples.js';
|
|
8
8
|
|
|
9
9
|
const examplesData = [
|
|
10
10
|
{ id: '01-basic-gallery', Component: Example1, metadata: metadata1 },
|
|
@@ -145,4 +145,4 @@ export const galleryDetail: ComponentDetail = {
|
|
|
145
145
|
};
|
|
146
146
|
|
|
147
147
|
export { galleryControls };
|
|
148
|
-
export * from './examples/index';
|
|
148
|
+
export * from './examples/index.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "gallery",
|
|
3
3
|
"name": "Gallery",
|
|
4
|
-
"description": "Responsive grid layout for displaying
|
|
4
|
+
"description": "Responsive grid layout for displaying images and media items.",
|
|
5
5
|
"category": "layout",
|
|
6
6
|
"source": {
|
|
7
7
|
"packageName": "ui-lab-components",
|
|
@@ -8,7 +8,7 @@ export const metadata = {
|
|
|
8
8
|
|
|
9
9
|
export default function Example() {
|
|
10
10
|
return (
|
|
11
|
-
<Grid columns=
|
|
11
|
+
<Grid columns={3} gap="md">
|
|
12
12
|
<div style={{ padding: '1rem', background: '#e0e0e0' }}>Cell 1</div>
|
|
13
13
|
<div style={{ padding: '1rem', background: '#d0d0d0' }}>Cell 2</div>
|
|
14
14
|
<div style={{ padding: '1rem', background: '#c0c0c0' }}>Cell 3</div>
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"01-basic-grid": {
|
|
3
3
|
"title": "Basic Grid",
|
|
4
4
|
"description": "A simple grid layout with multiple cells. Use this for organizing content in a responsive grid structure.",
|
|
5
|
-
"code": "import React from 'react';\nimport { Grid } from 'ui-lab-components';\n\nexport default function Example() {\n return (\n <Grid columns
|
|
5
|
+
"code": "import React from 'react';\nimport { Grid } from 'ui-lab-components';\n\nexport default function Example() {\n return (\n <Grid columns={3} gap=\"md\">\n <div style={{ padding: '1rem', background: '#e0e0e0' }}>Cell 1</div>\n <div style={{ padding: '1rem', background: '#d0d0d0' }}>Cell 2</div>\n <div style={{ padding: '1rem', background: '#c0c0c0' }}>Cell 3</div>\n <div style={{ padding: '1rem', background: '#b0b0b0' }}>Cell 4</div>\n <div style={{ padding: '1rem', background: '#a0a0a0' }}>Cell 5</div>\n <div style={{ padding: '1rem', background: '#909090' }}>Cell 6</div>\n </Grid>\n );\n}"
|
|
6
6
|
}
|
|
7
7
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Divider, Grid } from 'ui-lab-components';
|
|
3
3
|
import { ControlDef, ComponentDetail } from '@/types';
|
|
4
|
-
import Example1, { metadata as metadata1 } from './examples/01-basic-grid';
|
|
4
|
+
import Example1, { metadata as metadata1 } from './examples/01-basic-grid.js';
|
|
5
5
|
import examplesJson from './examples.json' with { type: 'json' };
|
|
6
|
-
import { loadComponentExamples } from '../../utils/load-component-examples';
|
|
6
|
+
import { loadComponentExamples } from '../../utils/load-component-examples.js';
|
|
7
7
|
|
|
8
8
|
const examplesData = [
|
|
9
9
|
{ id: '01-basic-grid', Component: Example1, metadata: metadata1 },
|
|
@@ -82,7 +82,7 @@ const gridBasicCode = `import { Grid } from "ui-lab-components";
|
|
|
82
82
|
|
|
83
83
|
export function Example() {
|
|
84
84
|
return (
|
|
85
|
-
<Grid columns=
|
|
85
|
+
<Grid columns={3} gap="md">
|
|
86
86
|
<div className="h-20 bg-accent-500/20 rounded border border-accent-500/50 flex items-center justify-center">1</div>
|
|
87
87
|
<div className="h-20 bg-accent-500/20 rounded border border-accent-500/50 flex items-center justify-center">2</div>
|
|
88
88
|
<div className="h-20 bg-accent-500/20 rounded border border-accent-500/50 flex items-center justify-center">3</div>
|
|
@@ -147,7 +147,7 @@ export const gridDetail: ComponentDetail = {
|
|
|
147
147
|
description: 'Standard grid with 3 columns and medium gap.',
|
|
148
148
|
code: gridBasicCode,
|
|
149
149
|
preview: (
|
|
150
|
-
<Grid columns=
|
|
150
|
+
<Grid columns={3} gap="md">
|
|
151
151
|
<div className="h-20 bg-accent-500/20 rounded border border-accent-500/50 flex items-center justify-center">1</div>
|
|
152
152
|
<div className="h-20 bg-accent-500/20 rounded border border-accent-500/50 flex items-center justify-center">2</div>
|
|
153
153
|
<div className="h-20 bg-accent-500/20 rounded border border-accent-500/50 flex items-center justify-center">3</div>
|
|
@@ -161,4 +161,4 @@ export const gridDetail: ComponentDetail = {
|
|
|
161
161
|
};
|
|
162
162
|
|
|
163
163
|
export { gridControls };
|
|
164
|
-
export * from './examples/index';
|
|
164
|
+
export * from './examples/index.js';
|
|
@@ -3,7 +3,7 @@ import { Divider, Group } from 'ui-lab-components';
|
|
|
3
3
|
import { ControlDef, ComponentDetail } from '@/types';
|
|
4
4
|
import Example1, { metadata as metadata1 } from './examples/01-basic-group.js';
|
|
5
5
|
import examplesJson from './examples.json' with { type: 'json' };
|
|
6
|
-
import { loadComponentExamples } from '../../utils/load-component-examples';
|
|
6
|
+
import { loadComponentExamples } from '../../utils/load-component-examples.js';
|
|
7
7
|
|
|
8
8
|
const examplesData = [
|
|
9
9
|
{ id: '01-basic-group', Component: Example1, metadata: metadata1 },
|
|
@@ -132,4 +132,4 @@ export const groupDetail: ComponentDetail = {
|
|
|
132
132
|
};
|
|
133
133
|
|
|
134
134
|
export { groupControls };
|
|
135
|
-
export * from './examples/index';
|
|
135
|
+
export * from './examples/index.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "group",
|
|
3
3
|
"name": "Group",
|
|
4
|
-
"description": "
|
|
4
|
+
"description": "Groups Button, Input, and Select with unified border styling.",
|
|
5
5
|
"category": "composition",
|
|
6
6
|
"experimental": true,
|
|
7
7
|
"source": {
|
|
@@ -20,7 +20,7 @@ export default function Example() {
|
|
|
20
20
|
placeholder="Enter your email"
|
|
21
21
|
error
|
|
22
22
|
defaultValue="invalid-email"
|
|
23
|
-
|
|
23
|
+
icon={{ suffix: <FaCircleExclamation className="text-danger-600" size={14} /> }}
|
|
24
24
|
/>
|
|
25
25
|
</div>
|
|
26
26
|
|
|
@@ -33,7 +33,7 @@ export default function Example() {
|
|
|
33
33
|
type="email"
|
|
34
34
|
placeholder="Enter your email"
|
|
35
35
|
defaultValue="user@example.com"
|
|
36
|
-
|
|
36
|
+
icon={{ suffix: <FaCircleCheck className="text-success-600" size={14} /> }}
|
|
37
37
|
className="border-success-600 focus:border-success-600"
|
|
38
38
|
/>
|
|
39
39
|
</div>
|
|
@@ -7,6 +7,6 @@
|
|
|
7
7
|
"02-validation": {
|
|
8
8
|
"title": "Validation States",
|
|
9
9
|
"description": "Input fields with error and success validation states, including helper text for user feedback.",
|
|
10
|
-
"code": "import React from 'react';\nimport { Input, Label } from 'ui-lab-components';\nimport { FaCircleExclamation, FaCircleCheck } from 'react-icons/fa6';\n\nexport default function Example() {\n return (\n <div className=\"flex flex-col gap-6 w-full max-w-sm\">\n {/* Error State */}\n <div className=\"flex flex-col gap-1.5\">\n <Label error helperText=\"Please enter a valid email address\" helperTextError>\n Email\n </Label>\n <Input\n type=\"email\"\n placeholder=\"Enter your email\"\n error\n defaultValue=\"invalid-email\"\n
|
|
10
|
+
"code": "import React from 'react';\nimport { Input, Label } from 'ui-lab-components';\nimport { FaCircleExclamation, FaCircleCheck } from 'react-icons/fa6';\n\nexport default function Example() {\n return (\n <div className=\"flex flex-col gap-6 w-full max-w-sm\">\n {/* Error State */}\n <div className=\"flex flex-col gap-1.5\">\n <Label error helperText=\"Please enter a valid email address\" helperTextError>\n Email\n </Label>\n <Input\n type=\"email\"\n placeholder=\"Enter your email\"\n error\n defaultValue=\"invalid-email\"\n icon={{ suffix: <FaCircleExclamation className=\"text-danger-600\" size={14} /> }}\n />\n </div>\n\n {/* Success State */}\n <div className=\"flex flex-col gap-1.5\">\n <Label helperText=\"Email address is available\">\n Email\n </Label>\n <Input\n type=\"email\"\n placeholder=\"Enter your email\"\n defaultValue=\"user@example.com\"\n icon={{ suffix: <FaCircleCheck className=\"text-success-600\" size={14} /> }}\n className=\"border-success-600 focus:border-success-600\"\n />\n </div>\n\n {/* Default State with Helper Text */}\n <div className=\"flex flex-col gap-1.5\">\n <Label required helperText=\"We'll never share your email with anyone else.\">\n Email\n </Label>\n <Input\n type=\"email\"\n placeholder=\"Enter your email\"\n />\n </div>\n </div>\n );\n}"
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -4,7 +4,7 @@ import { ControlDef, ComponentDetail } from '@/types';
|
|
|
4
4
|
import Example1, { metadata as metadata1 } from './examples/01-basic-input.js';
|
|
5
5
|
import Example2, { metadata as metadata2 } from './examples/02-validation.js';
|
|
6
6
|
import examplesJson from './examples.json' with { type: 'json' };
|
|
7
|
-
import { loadComponentExamples } from '../../utils/load-component-examples';
|
|
7
|
+
import { loadComponentExamples } from '../../utils/load-component-examples.js';
|
|
8
8
|
|
|
9
9
|
const examplesData = [
|
|
10
10
|
{ id: '01-basic-input', Component: Example1, metadata: metadata1 },
|
|
@@ -105,4 +105,4 @@ export const inputDetail: ComponentDetail = {
|
|
|
105
105
|
};
|
|
106
106
|
|
|
107
107
|
export { inputControls };
|
|
108
|
-
export * from './examples/index';
|
|
108
|
+
export * from './examples/index.js';
|
|
@@ -3,7 +3,7 @@ import { Label } from 'ui-lab-components';
|
|
|
3
3
|
import { ControlDef, ComponentDetail } from '@/types';
|
|
4
4
|
import Example1, { metadata as metadata1 } from './examples/01-basic-label.js';
|
|
5
5
|
import examplesJson from './examples.json' with { type: 'json' };
|
|
6
|
-
import { loadComponentExamples } from '../../utils/load-component-examples';
|
|
6
|
+
import { loadComponentExamples } from '../../utils/load-component-examples.js';
|
|
7
7
|
import { FaEnvelope } from 'react-icons/fa6';
|
|
8
8
|
|
|
9
9
|
const examplesData = [
|
|
@@ -105,4 +105,4 @@ export const labelDetail: ComponentDetail = {
|
|
|
105
105
|
};
|
|
106
106
|
|
|
107
107
|
export { labelControls };
|
|
108
|
-
export * from './examples/index';
|
|
108
|
+
export * from './examples/index.js';
|
|
@@ -3,7 +3,7 @@ import { List, Button } from 'ui-lab-components';
|
|
|
3
3
|
import { ComponentDetail } from '@/types';
|
|
4
4
|
import Example1, { metadata as metadata1 } from './examples/01-basic.js';
|
|
5
5
|
import examplesJson from './examples.json' with { type: 'json' };
|
|
6
|
-
import { loadComponentExamples } from '../../utils/load-component-examples';
|
|
6
|
+
import { loadComponentExamples } from '../../utils/load-component-examples.js';
|
|
7
7
|
|
|
8
8
|
const examplesData = [
|
|
9
9
|
{ id: '01-basic', Component: Example1, metadata: metadata1 },
|
|
@@ -202,4 +202,4 @@ export function Example() {
|
|
|
202
202
|
],
|
|
203
203
|
};
|
|
204
204
|
|
|
205
|
-
export * from './examples/index';
|
|
205
|
+
export * from './examples/index.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "list",
|
|
3
3
|
"name": "List",
|
|
4
|
-
"description": "
|
|
4
|
+
"description": "Displays item collections with built-in selection and actions.",
|
|
5
5
|
"category": "composition",
|
|
6
6
|
"experimental": true,
|
|
7
7
|
"source": {
|
|
@@ -4,7 +4,7 @@ import { ControlDef, ComponentDetail } from '@/types';
|
|
|
4
4
|
import Example1, { metadata as metadata1 } from './examples/01-read-more-fade.js';
|
|
5
5
|
import Example2, { metadata as metadata2 } from './examples/02-text-gradient.js';
|
|
6
6
|
import examplesJson from './examples.json' with { type: 'json' };
|
|
7
|
-
import { loadComponentExamples } from '../../utils/load-component-examples';
|
|
7
|
+
import { loadComponentExamples } from '../../utils/load-component-examples.js';
|
|
8
8
|
|
|
9
9
|
const examplesData = [
|
|
10
10
|
{ id: '01-read-more-fade', Component: Example1, metadata: metadata1 },
|
|
@@ -126,4 +126,4 @@ export const maskDetail: ComponentDetail = {
|
|
|
126
126
|
};
|
|
127
127
|
|
|
128
128
|
export { maskControls };
|
|
129
|
-
export * from './examples/index';
|
|
129
|
+
export * from './examples/index.js';
|
|
@@ -4,7 +4,7 @@ import { ControlDef, ComponentDetail } from '@/types';
|
|
|
4
4
|
import Example1, { metadata as metadata1 } from './examples/01-basic-menu.js';
|
|
5
5
|
import Example2, { metadata as metadata2 } from './examples/02-nested-menu.js';
|
|
6
6
|
import examplesJson from './examples.json' with { type: 'json' };
|
|
7
|
-
import { loadComponentExamples } from '../../utils/load-component-examples';
|
|
7
|
+
import { loadComponentExamples } from '../../utils/load-component-examples.js';
|
|
8
8
|
import { FaArrowsRotate, FaStar, FaTrash } from 'react-icons/fa6';
|
|
9
9
|
|
|
10
10
|
const examplesData = [
|
|
@@ -90,4 +90,4 @@ export const menuDetail: ComponentDetail = {
|
|
|
90
90
|
};
|
|
91
91
|
|
|
92
92
|
export { menuControls };
|
|
93
|
-
export * from './examples/index';
|
|
93
|
+
export * from './examples/index.js';
|
|
@@ -4,7 +4,7 @@ import { ControlDef, ComponentDetail } from '@/types';
|
|
|
4
4
|
import { FaWindowRestore, FaX } from 'react-icons/fa6';
|
|
5
5
|
import Example1, { metadata as metadata1 } from './examples/01-basic-modal.js';
|
|
6
6
|
import examplesJson from './examples.json' with { type: 'json' };
|
|
7
|
-
import { loadComponentExamples } from '../../utils/load-component-examples';
|
|
7
|
+
import { loadComponentExamples } from '../../utils/load-component-examples.js';
|
|
8
8
|
|
|
9
9
|
const examplesData = [
|
|
10
10
|
{ id: '01-basic-modal', Component: Example1, metadata: metadata1 },
|
|
@@ -103,4 +103,4 @@ export const modalDetail: ComponentDetail = {
|
|
|
103
103
|
};
|
|
104
104
|
|
|
105
105
|
export { modalControls };
|
|
106
|
-
export * from './examples/index';
|
|
106
|
+
export * from './examples/index.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "page",
|
|
3
3
|
"name": "Page",
|
|
4
|
-
"description": "
|
|
4
|
+
"description": "Top-level page container with constraints and semantic structure.",
|
|
5
5
|
"category": "container",
|
|
6
6
|
"experimental": true,
|
|
7
7
|
"source": {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "panel",
|
|
3
3
|
"name": "Panel",
|
|
4
|
-
"description": "
|
|
5
|
-
"category": "
|
|
4
|
+
"description": "Region container managing header, content, and footer areas.",
|
|
5
|
+
"category": "layout",
|
|
6
6
|
"experimental": true,
|
|
7
7
|
"source": {
|
|
8
8
|
"packageName": "ui-lab-components",
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"01-basic-breadcrumbs": {
|
|
3
|
-
"title": "Basic Path",
|
|
4
|
-
"description": "A simple path navigation showing the current page location. Use this to help users understand their position in the site hierarchy.",
|
|
5
|
-
"code": "import { PathItem, Path } from 'ui-lab-components';\n\nexport default function Example() {\n return (\n <Path>\n <PathItem href=\"/\">Home</PathItem>\n <PathItem href=\"/products\">Products</PathItem>\n <PathItem href=\"/products/electronics\">Electronics</PathItem>\n <PathItem>Laptop</PathItem>\n </Path>\n );\n}"
|
|
6
|
-
},
|
|
7
2
|
"01-basic-path": {
|
|
8
3
|
"title": "Basic Path",
|
|
9
4
|
"description": "A simple path navigation showing the current page location. Use this to help users understand their position in the site hierarchy.",
|