ui-lab-registry 0.3.44 → 0.3.46
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/components/Anchor/examples/index.d.ts +0 -1
- package/dist/components/Anchor/examples/index.d.ts.map +1 -1
- package/dist/components/Anchor/examples/index.js +1 -1
- package/dist/components/Anchor/examples/index.js.map +1 -1
- package/dist/components/Anchor/index.d.ts +0 -1
- package/dist/components/Anchor/index.d.ts.map +1 -1
- package/dist/components/Anchor/index.js +1 -9
- package/dist/components/Anchor/index.js.map +1 -1
- package/dist/components/Badge/examples/index.d.ts +0 -4
- package/dist/components/Badge/examples/index.d.ts.map +1 -1
- package/dist/components/Badge/examples/index.js +1 -4
- package/dist/components/Badge/examples/index.js.map +1 -1
- package/dist/components/Badge/index.d.ts +0 -1
- package/dist/components/Badge/index.d.ts.map +1 -1
- package/dist/components/Badge/index.js +3 -22
- package/dist/components/Badge/index.js.map +1 -1
- package/dist/components/Banner/examples/index.d.ts +0 -2
- package/dist/components/Banner/examples/index.d.ts.map +1 -1
- package/dist/components/Banner/examples/index.js +1 -2
- package/dist/components/Banner/examples/index.js.map +1 -1
- package/dist/components/Banner/index.d.ts +0 -1
- package/dist/components/Banner/index.d.ts.map +1 -1
- package/dist/components/Banner/index.js +4 -23
- package/dist/components/Banner/index.js.map +1 -1
- package/dist/components/Button/examples/index.d.ts +0 -10
- package/dist/components/Button/examples/index.d.ts.map +1 -1
- package/dist/components/Button/examples/index.js +1 -10
- package/dist/components/Button/examples/index.js.map +1 -1
- package/dist/components/Button/index.d.ts +0 -1
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.js +0 -17
- package/dist/components/Button/index.js.map +1 -1
- package/dist/components/Card/examples/index.d.ts +0 -2
- package/dist/components/Card/examples/index.d.ts.map +1 -1
- package/dist/components/Card/examples/index.js +1 -2
- package/dist/components/Card/examples/index.js.map +1 -1
- package/dist/components/Card/index.d.ts +0 -1
- package/dist/components/Card/index.d.ts.map +1 -1
- package/dist/components/Card/index.js +1 -9
- package/dist/components/Card/index.js.map +1 -1
- package/dist/components/Checkbox/examples/index.d.ts +0 -4
- package/dist/components/Checkbox/examples/index.d.ts.map +1 -1
- package/dist/components/Checkbox/examples/index.js +1 -4
- package/dist/components/Checkbox/examples/index.js.map +1 -1
- package/dist/components/Checkbox/index.d.ts +0 -1
- package/dist/components/Checkbox/index.d.ts.map +1 -1
- package/dist/components/Checkbox/index.js +1 -22
- package/dist/components/Checkbox/index.js.map +1 -1
- package/dist/components/Color/examples/index.d.ts +0 -3
- package/dist/components/Color/examples/index.d.ts.map +1 -1
- package/dist/components/Color/examples/index.js +1 -3
- package/dist/components/Color/examples/index.js.map +1 -1
- package/dist/components/Color/index.d.ts +0 -1
- package/dist/components/Color/index.d.ts.map +1 -1
- package/dist/components/Color/index.js +1 -11
- package/dist/components/Color/index.js.map +1 -1
- package/dist/components/Command/examples/index.d.ts +0 -2
- package/dist/components/Command/examples/index.d.ts.map +1 -1
- package/dist/components/Command/examples/index.js +1 -2
- package/dist/components/Command/examples/index.js.map +1 -1
- package/dist/components/Command/index.d.ts +0 -1
- package/dist/components/Command/index.d.ts.map +1 -1
- package/dist/components/Command/index.js +1 -9
- package/dist/components/Command/index.js.map +1 -1
- package/dist/components/Confirm/examples/index.d.ts +0 -2
- package/dist/components/Confirm/examples/index.d.ts.map +1 -1
- package/dist/components/Confirm/examples/index.js +1 -2
- package/dist/components/Confirm/examples/index.js.map +1 -1
- package/dist/components/Confirm/index.d.ts +0 -1
- package/dist/components/Confirm/index.d.ts.map +1 -1
- package/dist/components/Confirm/index.js +1 -9
- package/dist/components/Confirm/index.js.map +1 -1
- package/dist/components/Date/examples/index.d.ts +0 -8
- package/dist/components/Date/examples/index.d.ts.map +1 -1
- package/dist/components/Date/examples/index.js +1 -8
- package/dist/components/Date/examples/index.js.map +1 -1
- package/dist/components/Date/index.d.ts.map +1 -1
- package/dist/components/Date/index.js +1 -10
- package/dist/components/Date/index.js.map +1 -1
- package/dist/components/Divider/examples/index.d.ts +0 -2
- package/dist/components/Divider/examples/index.d.ts.map +1 -1
- package/dist/components/Divider/examples/index.js +1 -2
- package/dist/components/Divider/examples/index.js.map +1 -1
- package/dist/components/Divider/index.d.ts +0 -1
- package/dist/components/Divider/index.d.ts.map +1 -1
- package/dist/components/Divider/index.js +1 -14
- package/dist/components/Divider/index.js.map +1 -1
- package/dist/components/Expand/examples/index.d.ts +0 -2
- package/dist/components/Expand/examples/index.d.ts.map +1 -1
- package/dist/components/Expand/examples/index.js +1 -2
- package/dist/components/Expand/examples/index.js.map +1 -1
- package/dist/components/Expand/index.d.ts +0 -1
- package/dist/components/Expand/index.d.ts.map +1 -1
- package/dist/components/Expand/index.js +0 -9
- package/dist/components/Expand/index.js.map +1 -1
- package/dist/components/Flex/examples/01-axis-control.d.ts +11 -0
- package/dist/components/Flex/examples/01-axis-control.d.ts.map +1 -0
- package/dist/components/Flex/examples/01-axis-control.js +149 -0
- package/dist/components/Flex/examples/01-axis-control.js.map +1 -0
- package/dist/components/Flex/examples/02-wrap-overflow.d.ts +11 -0
- package/dist/components/Flex/examples/02-wrap-overflow.d.ts.map +1 -0
- package/dist/components/Flex/examples/02-wrap-overflow.js +147 -0
- package/dist/components/Flex/examples/02-wrap-overflow.js.map +1 -0
- package/dist/components/Flex/examples/03-container-query-reflow.d.ts +11 -0
- package/dist/components/Flex/examples/03-container-query-reflow.d.ts.map +1 -0
- package/dist/components/Flex/examples/03-container-query-reflow.js +151 -0
- package/dist/components/Flex/examples/03-container-query-reflow.js.map +1 -0
- package/dist/components/Flex/examples/index.d.ts +6 -2
- package/dist/components/Flex/examples/index.d.ts.map +1 -1
- package/dist/components/Flex/examples/index.js +6 -2
- package/dist/components/Flex/examples/index.js.map +1 -1
- package/dist/components/Flex/examples.json +14 -4
- package/dist/components/Flex/index.d.ts.map +1 -1
- package/dist/components/Flex/index.js +31 -17
- package/dist/components/Flex/index.js.map +1 -1
- package/dist/components/Frame/examples/index.d.ts +0 -6
- package/dist/components/Frame/examples/index.d.ts.map +1 -1
- package/dist/components/Frame/examples/index.js +1 -6
- package/dist/components/Frame/examples/index.js.map +1 -1
- package/dist/components/Frame/index.d.ts +0 -1
- package/dist/components/Frame/index.d.ts.map +1 -1
- package/dist/components/Frame/index.js +1 -13
- package/dist/components/Frame/index.js.map +1 -1
- package/dist/components/Gallery/examples/01-grid-composition.d.ts +11 -0
- package/dist/components/Gallery/examples/01-grid-composition.d.ts.map +1 -0
- package/dist/components/Gallery/examples/01-grid-composition.js +95 -0
- package/dist/components/Gallery/examples/01-grid-composition.js.map +1 -0
- package/dist/components/Gallery/examples/02-item-orientation.d.ts +11 -0
- package/dist/components/Gallery/examples/02-item-orientation.d.ts.map +1 -0
- package/dist/components/Gallery/examples/02-item-orientation.js +106 -0
- package/dist/components/Gallery/examples/02-item-orientation.js.map +1 -0
- package/dist/components/Gallery/examples/03-span-layout.d.ts +11 -0
- package/dist/components/Gallery/examples/03-span-layout.d.ts.map +1 -0
- package/dist/components/Gallery/examples/03-span-layout.js +95 -0
- package/dist/components/Gallery/examples/03-span-layout.js.map +1 -0
- package/dist/components/Gallery/examples/index.d.ts +6 -2
- package/dist/components/Gallery/examples/index.d.ts.map +1 -1
- package/dist/components/Gallery/examples/index.js +6 -2
- package/dist/components/Gallery/examples/index.js.map +1 -1
- package/dist/components/Gallery/examples.json +14 -4
- package/dist/components/Gallery/index.d.ts.map +1 -1
- package/dist/components/Gallery/index.js +6 -2
- package/dist/components/Gallery/index.js.map +1 -1
- package/dist/components/Grid/examples/02-track-placement.d.ts +11 -0
- package/dist/components/Grid/examples/02-track-placement.d.ts.map +1 -0
- package/dist/components/Grid/examples/02-track-placement.js +181 -0
- package/dist/components/Grid/examples/02-track-placement.js.map +1 -0
- package/dist/components/Grid/examples/03-editorial-spans.d.ts +11 -0
- package/dist/components/Grid/examples/03-editorial-spans.d.ts.map +1 -0
- package/dist/components/Grid/examples/03-editorial-spans.js +167 -0
- package/dist/components/Grid/examples/03-editorial-spans.js.map +1 -0
- package/dist/components/Grid/examples/04-responsive-card-rail.d.ts +11 -0
- package/dist/components/Grid/examples/04-responsive-card-rail.d.ts.map +1 -0
- package/dist/components/Grid/examples/04-responsive-card-rail.js +126 -0
- package/dist/components/Grid/examples/04-responsive-card-rail.js.map +1 -0
- package/dist/components/Grid/examples/index.d.ts +6 -2
- package/dist/components/Grid/examples/index.d.ts.map +1 -1
- package/dist/components/Grid/examples/index.js +6 -2
- package/dist/components/Grid/examples/index.js.map +1 -1
- package/dist/components/Grid/examples.json +14 -4
- package/dist/components/Grid/index.d.ts.map +1 -1
- package/dist/components/Grid/index.js +46 -13
- package/dist/components/Grid/index.js.map +1 -1
- package/dist/components/Group/examples/index.d.ts +0 -2
- package/dist/components/Group/examples/index.d.ts.map +1 -1
- package/dist/components/Group/examples/index.js +1 -2
- package/dist/components/Group/examples/index.js.map +1 -1
- package/dist/components/Group/index.d.ts +0 -1
- package/dist/components/Group/index.d.ts.map +1 -1
- package/dist/components/Group/index.js +0 -8
- package/dist/components/Group/index.js.map +1 -1
- package/dist/components/Input/examples/index.d.ts +0 -4
- package/dist/components/Input/examples/index.d.ts.map +1 -1
- package/dist/components/Input/examples/index.js +1 -4
- package/dist/components/Input/examples/index.js.map +1 -1
- package/dist/components/Input/index.d.ts +0 -1
- package/dist/components/Input/index.d.ts.map +1 -1
- package/dist/components/Input/index.js +0 -10
- package/dist/components/Input/index.js.map +1 -1
- package/dist/components/Label/examples/index.d.ts +0 -2
- package/dist/components/Label/examples/index.d.ts.map +1 -1
- package/dist/components/Label/examples/index.js +1 -2
- package/dist/components/Label/examples/index.js.map +1 -1
- package/dist/components/Label/index.d.ts +0 -1
- package/dist/components/Label/index.d.ts.map +1 -1
- package/dist/components/Label/index.js +1 -9
- package/dist/components/Label/index.js.map +1 -1
- package/dist/components/List/examples/index.d.ts +0 -2
- package/dist/components/List/examples/index.d.ts.map +1 -1
- package/dist/components/List/examples/index.js +1 -2
- package/dist/components/List/examples/index.js.map +1 -1
- package/dist/components/List/index.d.ts +0 -1
- package/dist/components/List/index.d.ts.map +1 -1
- package/dist/components/List/index.js +2 -10
- package/dist/components/List/index.js.map +1 -1
- package/dist/components/Mask/examples/index.d.ts +0 -4
- package/dist/components/Mask/examples/index.d.ts.map +1 -1
- package/dist/components/Mask/examples/index.js +1 -4
- package/dist/components/Mask/examples/index.js.map +1 -1
- package/dist/components/Mask/index.d.ts +0 -1
- package/dist/components/Mask/index.d.ts.map +1 -1
- package/dist/components/Mask/index.js +1 -11
- package/dist/components/Mask/index.js.map +1 -1
- package/dist/components/Menu/examples/index.d.ts +0 -4
- package/dist/components/Menu/examples/index.d.ts.map +1 -1
- package/dist/components/Menu/examples/index.js +1 -4
- package/dist/components/Menu/examples/index.js.map +1 -1
- package/dist/components/Menu/index.d.ts +0 -1
- package/dist/components/Menu/index.d.ts.map +1 -1
- package/dist/components/Menu/index.js +1 -11
- package/dist/components/Menu/index.js.map +1 -1
- package/dist/components/Modal/examples/index.d.ts +0 -4
- package/dist/components/Modal/examples/index.d.ts.map +1 -1
- package/dist/components/Modal/examples/index.js +1 -4
- package/dist/components/Modal/examples/index.js.map +1 -1
- package/dist/components/Modal/index.d.ts +0 -1
- package/dist/components/Modal/index.d.ts.map +1 -1
- package/dist/components/Modal/index.js +1 -9
- package/dist/components/Modal/index.js.map +1 -1
- package/dist/components/Panel/examples/index.d.ts +1 -0
- package/dist/components/Panel/examples/index.d.ts.map +1 -0
- package/dist/components/Panel/examples/index.js +2 -0
- package/dist/components/Panel/examples/index.js.map +1 -0
- package/dist/components/Panel/index.d.ts.map +1 -1
- package/dist/components/Panel/index.js +1 -1
- package/dist/components/Panel/index.js.map +1 -1
- package/dist/components/Path/examples/index.d.ts +0 -2
- package/dist/components/Path/examples/index.d.ts.map +1 -1
- package/dist/components/Path/examples/index.js +1 -2
- package/dist/components/Path/examples/index.js.map +1 -1
- package/dist/components/Path/index.d.ts +0 -1
- package/dist/components/Path/index.d.ts.map +1 -1
- package/dist/components/Path/index.js +8 -16
- package/dist/components/Path/index.js.map +1 -1
- package/dist/components/Popover/examples/index.d.ts +0 -2
- package/dist/components/Popover/examples/index.d.ts.map +1 -1
- package/dist/components/Popover/examples/index.js +1 -2
- package/dist/components/Popover/examples/index.js.map +1 -1
- package/dist/components/Popover/index.d.ts +0 -1
- package/dist/components/Popover/index.d.ts.map +1 -1
- package/dist/components/Popover/index.js +1 -9
- package/dist/components/Popover/index.js.map +1 -1
- package/dist/components/Progress/examples/index.d.ts +0 -2
- package/dist/components/Progress/examples/index.d.ts.map +1 -1
- package/dist/components/Progress/examples/index.js +1 -2
- package/dist/components/Progress/examples/index.js.map +1 -1
- package/dist/components/Progress/index.d.ts +0 -1
- package/dist/components/Progress/index.d.ts.map +1 -1
- package/dist/components/Progress/index.js +3 -22
- package/dist/components/Progress/index.js.map +1 -1
- package/dist/components/Radio/examples/index.d.ts +0 -4
- package/dist/components/Radio/examples/index.d.ts.map +1 -1
- package/dist/components/Radio/examples/index.js +1 -4
- package/dist/components/Radio/examples/index.js.map +1 -1
- package/dist/components/Radio/index.d.ts +0 -1
- package/dist/components/Radio/index.d.ts.map +1 -1
- package/dist/components/Radio/index.js +1 -11
- package/dist/components/Radio/index.js.map +1 -1
- package/dist/components/Scroll/examples/index.d.ts +0 -2
- package/dist/components/Scroll/examples/index.d.ts.map +1 -1
- package/dist/components/Scroll/examples/index.js +1 -2
- package/dist/components/Scroll/examples/index.js.map +1 -1
- package/dist/components/Scroll/index.d.ts +0 -1
- package/dist/components/Scroll/index.d.ts.map +1 -1
- package/dist/components/Scroll/index.js +1 -9
- package/dist/components/Scroll/index.js.map +1 -1
- package/dist/components/Select/examples/index.d.ts +0 -4
- package/dist/components/Select/examples/index.d.ts.map +1 -1
- package/dist/components/Select/examples/index.js +1 -4
- package/dist/components/Select/examples/index.js.map +1 -1
- package/dist/components/Select/index.d.ts +0 -1
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/Select/index.js +1 -11
- package/dist/components/Select/index.js.map +1 -1
- package/dist/components/Slider/examples/index.d.ts +0 -2
- package/dist/components/Slider/examples/index.d.ts.map +1 -1
- package/dist/components/Slider/examples/index.js +1 -2
- package/dist/components/Slider/examples/index.js.map +1 -1
- package/dist/components/Slider/index.d.ts +0 -1
- package/dist/components/Slider/index.d.ts.map +1 -1
- package/dist/components/Slider/index.js +0 -8
- package/dist/components/Slider/index.js.map +1 -1
- package/dist/components/Switch/examples/index.d.ts +0 -2
- package/dist/components/Switch/examples/index.d.ts.map +1 -1
- package/dist/components/Switch/examples/index.js +1 -2
- package/dist/components/Switch/examples/index.js.map +1 -1
- package/dist/components/Switch/index.d.ts +0 -1
- package/dist/components/Switch/index.d.ts.map +1 -1
- package/dist/components/Switch/index.js +0 -8
- package/dist/components/Switch/index.js.map +1 -1
- package/dist/components/Table/examples/index.d.ts +0 -2
- package/dist/components/Table/examples/index.d.ts.map +1 -1
- package/dist/components/Table/examples/index.js +1 -2
- package/dist/components/Table/examples/index.js.map +1 -1
- package/dist/components/Table/index.d.ts +0 -1
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Table/index.js +1 -10
- package/dist/components/Table/index.js.map +1 -1
- package/dist/components/Tabs/examples/index.d.ts +0 -4
- package/dist/components/Tabs/examples/index.d.ts.map +1 -1
- package/dist/components/Tabs/examples/index.js +1 -4
- package/dist/components/Tabs/examples/index.js.map +1 -1
- package/dist/components/Tabs/index.d.ts +0 -1
- package/dist/components/Tabs/index.d.ts.map +1 -1
- package/dist/components/Tabs/index.js +1 -11
- package/dist/components/Tabs/index.js.map +1 -1
- package/dist/components/Textarea/examples/index.d.ts +0 -2
- package/dist/components/Textarea/examples/index.d.ts.map +1 -1
- package/dist/components/Textarea/examples/index.js +1 -2
- package/dist/components/Textarea/examples/index.js.map +1 -1
- package/dist/components/Textarea/index.d.ts +0 -1
- package/dist/components/Textarea/index.d.ts.map +1 -1
- package/dist/components/Textarea/index.js +1 -9
- package/dist/components/Textarea/index.js.map +1 -1
- package/dist/components/Toast/examples/index.d.ts +0 -10
- package/dist/components/Toast/examples/index.d.ts.map +1 -1
- package/dist/components/Toast/examples/index.js +1 -10
- package/dist/components/Toast/examples/index.js.map +1 -1
- package/dist/components/Toast/index.d.ts +0 -1
- package/dist/components/Toast/index.d.ts.map +1 -1
- package/dist/components/Toast/index.js +2 -18
- package/dist/components/Toast/index.js.map +1 -1
- package/dist/components/Tooltip/examples/index.d.ts +0 -2
- package/dist/components/Tooltip/examples/index.d.ts.map +1 -1
- package/dist/components/Tooltip/examples/index.js +1 -2
- package/dist/components/Tooltip/examples/index.js.map +1 -1
- package/dist/components/Tooltip/index.d.ts +0 -1
- package/dist/components/Tooltip/index.d.ts.map +1 -1
- package/dist/components/Tooltip/index.js +1 -9
- package/dist/components/Tooltip/index.js.map +1 -1
- package/dist/demo-registry.d.ts.map +1 -1
- package/dist/demo-registry.js +1 -33
- package/dist/demo-registry.js.map +1 -1
- package/dist/elements/AI/AIChatInput/index.d.ts +0 -3
- package/dist/elements/AI/AIChatInput/index.d.ts.map +1 -1
- package/dist/elements/AI/AIChatInput/index.js +0 -2
- package/dist/elements/AI/AIChatInput/index.js.map +1 -1
- package/dist/elements/AI/ChainOfThought/index.d.ts +0 -3
- package/dist/elements/AI/ChainOfThought/index.d.ts.map +1 -1
- package/dist/elements/AI/ChainOfThought/index.js +0 -2
- package/dist/elements/AI/ChainOfThought/index.js.map +1 -1
- package/dist/elements/AI/Chat/index.d.ts +0 -3
- package/dist/elements/AI/Chat/index.d.ts.map +1 -1
- package/dist/elements/AI/Chat/index.js +0 -2
- package/dist/elements/AI/Chat/index.js.map +1 -1
- package/dist/elements/Documentation/CopyPage/index.d.ts +0 -3
- package/dist/elements/Documentation/CopyPage/index.d.ts.map +1 -1
- package/dist/elements/Documentation/CopyPage/index.js +0 -2
- package/dist/elements/Documentation/CopyPage/index.js.map +1 -1
- package/dist/elements/Documentation/NextArticle/index.d.ts +0 -3
- package/dist/elements/Documentation/NextArticle/index.d.ts.map +1 -1
- package/dist/elements/Documentation/NextArticle/index.js +0 -2
- package/dist/elements/Documentation/NextArticle/index.js.map +1 -1
- package/dist/elements/Documentation/TOC/index.d.ts +0 -3
- package/dist/elements/Documentation/TOC/index.d.ts.map +1 -1
- package/dist/elements/Documentation/TOC/index.js +0 -2
- package/dist/elements/Documentation/TOC/index.js.map +1 -1
- package/dist/elements/Elements/Carousel/index.d.ts +0 -3
- package/dist/elements/Elements/Carousel/index.d.ts.map +1 -1
- package/dist/elements/Elements/Carousel/index.js +0 -2
- package/dist/elements/Elements/Carousel/index.js.map +1 -1
- package/dist/elements/Elements/Rating/index.d.ts +0 -3
- package/dist/elements/Elements/Rating/index.d.ts.map +1 -1
- package/dist/elements/Elements/Rating/index.js +0 -2
- package/dist/elements/Elements/Rating/index.js.map +1 -1
- package/dist/elements/Elements/Timeline/index.d.ts +0 -3
- package/dist/elements/Elements/Timeline/index.d.ts.map +1 -1
- package/dist/elements/Elements/Timeline/index.js +0 -2
- package/dist/elements/Elements/Timeline/index.js.map +1 -1
- package/dist/elements/Elements/TreeView/index.d.ts +0 -3
- package/dist/elements/Elements/TreeView/index.d.ts.map +1 -1
- package/dist/elements/Elements/TreeView/index.js +0 -2
- package/dist/elements/Elements/TreeView/index.js.map +1 -1
- package/dist/elements/Elements/index.d.ts +0 -4
- package/dist/elements/Elements/index.d.ts.map +1 -1
- package/dist/elements/Elements/index.js +0 -4
- package/dist/elements/Elements/index.js.map +1 -1
- package/dist/elements/foundation/Header/index.d.ts +0 -3
- package/dist/elements/foundation/Header/index.d.ts.map +1 -1
- package/dist/elements/foundation/Header/index.js +0 -2
- package/dist/elements/foundation/Header/index.js.map +1 -1
- package/dist/elements/foundation/Page/index.d.ts +0 -3
- package/dist/elements/foundation/Page/index.d.ts.map +1 -1
- package/dist/elements/foundation/Page/index.js +0 -2
- package/dist/elements/foundation/Page/index.js.map +1 -1
- package/dist/elements/foundation/Sidebar/index.d.ts +0 -3
- package/dist/elements/foundation/Sidebar/index.d.ts.map +1 -1
- package/dist/elements/foundation/Sidebar/index.js +0 -2
- package/dist/elements/foundation/Sidebar/index.js.map +1 -1
- package/dist/elements/foundation/TestStructure/index.d.ts +19 -0
- package/dist/elements/foundation/TestStructure/index.d.ts.map +1 -0
- package/dist/elements/foundation/TestStructure/index.js +30 -0
- package/dist/elements/foundation/TestStructure/index.js.map +1 -0
- package/dist/elements/foundation/TestStructure/manifest.d.ts +8 -0
- package/dist/elements/foundation/TestStructure/manifest.d.ts.map +1 -0
- package/dist/elements/foundation/TestStructure/manifest.js +7 -0
- package/dist/elements/foundation/TestStructure/manifest.js.map +1 -0
- package/dist/elements/foundation/TestStructure/variations.json +16 -0
- package/dist/elements/foundation/index.d.ts +2 -4
- package/dist/elements/foundation/index.d.ts.map +1 -1
- package/dist/elements/foundation/index.js +2 -4
- package/dist/elements/foundation/index.js.map +1 -1
- package/dist/elements/index.d.ts.map +1 -1
- package/dist/elements/index.js +2 -0
- package/dist/elements/index.js.map +1 -1
- package/dist/elements/packages.d.ts.map +1 -1
- package/dist/elements/packages.js +1 -59
- package/dist/elements/packages.js.map +1 -1
- package/dist/generated-data.d.ts.map +1 -1
- package/dist/generated-data.js +952 -469
- package/dist/generated-data.js.map +1 -1
- package/dist/generated-styles.d.ts.map +1 -1
- package/dist/generated-styles.js +980 -195
- package/dist/generated-styles.js.map +1 -1
- package/dist/generated-styles.json +980 -195
- package/dist/index.d.ts +1 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -2
- package/dist/index.js.map +1 -1
- package/dist/patterns/data/badge-row/variations/main/index.js +1 -1
- package/dist/patterns/data/badge-row/variations/main/index.js.map +1 -1
- package/dist/patterns/data/badge-row/variations/mixed/index.js +1 -1
- package/dist/patterns/data/badge-row/variations/mixed/index.js.map +1 -1
- package/dist/patterns/data/badge-row/variations/outline/index.js +1 -1
- package/dist/patterns/data/badge-row/variations/outline/index.js.map +1 -1
- package/dist/patterns/data/data-table-row/variations/expandable/index.js +1 -1
- package/dist/patterns/data/data-table-row/variations/expandable/index.js.map +1 -1
- package/dist/patterns/data/data-table-row/variations/main/index.js +1 -1
- package/dist/patterns/data/data-table-row/variations/main/index.js.map +1 -1
- package/dist/patterns/data/data-table-row/variations/selectable/index.js +1 -1
- package/dist/patterns/data/data-table-row/variations/selectable/index.js.map +1 -1
- package/dist/patterns/interaction/tab-content-header/variations/with-badge/index.js +1 -1
- package/dist/patterns/interaction/tab-content-header/variations/with-badge/index.js.map +1 -1
- package/dist/patterns/layout/split-row/variations/main/index.js +1 -1
- package/dist/patterns/layout/split-row/variations/main/index.js.map +1 -1
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +482 -94
- package/dist/registry.js.map +1 -1
- package/dist/sections/Hero/index.d.ts +0 -2
- package/dist/sections/Hero/index.d.ts.map +1 -1
- package/dist/sections/Hero/index.js +0 -2
- package/dist/sections/Hero/index.js.map +1 -1
- package/dist/types.d.ts +18 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/load-component-examples.d.ts +4 -7
- package/dist/utils/load-component-examples.d.ts.map +1 -1
- package/dist/utils/load-component-examples.js +4 -7
- package/dist/utils/load-component-examples.js.map +1 -1
- package/package.json +5 -5
- package/src/components/Anchor/examples/index.ts +1 -1
- package/src/components/Anchor/examples.json +19 -4
- package/src/components/Anchor/index.tsx +1 -9
- package/src/components/Badge/examples/index.ts +1 -5
- package/src/components/Badge/examples.json +24 -9
- package/src/components/Badge/index.tsx +2 -22
- package/src/components/Banner/examples/index.ts +1 -2
- package/src/components/Banner/examples.json +24 -4
- package/src/components/Banner/index.tsx +3 -23
- package/src/components/Button/examples/index.ts +1 -10
- package/src/components/Button/index.tsx +0 -18
- package/src/components/Card/examples/index.ts +1 -2
- package/src/components/Card/examples.json +14 -4
- package/src/components/Card/index.tsx +1 -9
- package/src/components/Card/metadata.json +42 -0
- package/src/components/Checkbox/examples/index.ts +1 -5
- package/src/components/Checkbox/examples.json +29 -9
- package/src/components/Checkbox/index.tsx +0 -24
- package/src/components/Color/examples/index.ts +1 -3
- package/src/components/Color/examples.json +18 -8
- package/src/components/Color/index.tsx +1 -11
- package/src/components/Command/examples/index.ts +1 -2
- package/src/components/Command/index.tsx +1 -9
- package/src/components/Confirm/examples/index.ts +1 -2
- package/src/components/Confirm/index.tsx +1 -9
- package/src/components/Date/examples/index.ts +1 -11
- package/src/components/Date/index.tsx +1 -11
- package/src/components/Divider/examples/index.ts +1 -2
- package/src/components/Divider/index.tsx +1 -21
- package/src/components/Expand/examples/index.ts +1 -2
- package/src/components/Expand/examples.json +34 -4
- package/src/components/Expand/index.tsx +0 -11
- package/src/components/Flex/examples/01-axis-control.tsx +199 -0
- package/src/components/Flex/examples/02-wrap-overflow.tsx +183 -0
- package/src/components/Flex/examples/03-container-query-reflow.tsx +198 -0
- package/src/components/Flex/examples/index.ts +8 -2
- package/src/components/Flex/examples.json +14 -4
- package/src/components/Flex/index.tsx +43 -29
- package/src/components/Frame/examples/index.ts +1 -6
- package/src/components/Frame/index.tsx +1 -13
- package/src/components/Gallery/examples/01-grid-composition.tsx +121 -0
- package/src/components/Gallery/examples/02-item-orientation.tsx +133 -0
- package/src/components/Gallery/examples/03-span-layout.tsx +130 -0
- package/src/components/Gallery/examples/index.ts +8 -2
- package/src/components/Gallery/examples.json +14 -4
- package/src/components/Gallery/index.tsx +6 -2
- package/src/components/Grid/examples/02-track-placement.tsx +210 -0
- package/src/components/Grid/examples/03-editorial-spans.tsx +196 -0
- package/src/components/Grid/examples/04-responsive-card-rail.tsx +153 -0
- package/src/components/Grid/examples/index.ts +6 -2
- package/src/components/Grid/examples.json +14 -4
- package/src/components/Grid/index.tsx +57 -19
- package/src/components/Group/examples/index.ts +1 -2
- package/src/components/Group/index.tsx +1 -11
- package/src/components/Input/examples/index.ts +1 -4
- package/src/components/Input/examples.json +30 -0
- package/src/components/Input/index.tsx +0 -12
- package/src/components/Label/examples/index.ts +1 -2
- package/src/components/Label/index.tsx +1 -9
- package/src/components/List/examples/index.ts +1 -2
- package/src/components/List/examples.json +20 -0
- package/src/components/List/index.tsx +2 -12
- package/src/components/Mask/examples/index.ts +1 -5
- package/src/components/Mask/index.tsx +1 -11
- package/src/components/Menu/examples/index.ts +1 -4
- package/src/components/Menu/examples.json +20 -0
- package/src/components/Menu/index.tsx +1 -11
- package/src/components/Modal/examples/index.ts +1 -4
- package/src/components/Modal/examples.json +16 -1
- package/src/components/Modal/index.tsx +1 -9
- package/src/components/Modal/metadata.json +41 -1
- package/src/components/Panel/examples/index.ts +1 -0
- package/src/components/Panel/examples.json +7 -1
- package/src/components/Panel/index.tsx +2 -1
- package/src/components/Path/examples/index.ts +1 -2
- package/src/components/Path/examples.json +11 -1
- package/src/components/Path/index.tsx +12 -20
- package/src/components/Popover/examples/index.ts +1 -2
- package/src/components/Popover/examples.json +23 -3
- package/src/components/Popover/index.tsx +1 -9
- package/src/components/Progress/examples/index.ts +1 -2
- package/src/components/Progress/examples.json +23 -3
- package/src/components/Progress/index.tsx +2 -24
- package/src/components/Radio/examples/index.ts +1 -4
- package/src/components/Radio/index.tsx +1 -11
- package/src/components/Scroll/examples/index.ts +1 -2
- package/src/components/Scroll/examples.json +13 -3
- package/src/components/Scroll/index.tsx +1 -9
- package/src/components/Select/examples/index.ts +1 -4
- package/src/components/Select/examples.json +5 -0
- package/src/components/Select/index.tsx +1 -11
- package/src/components/Slider/examples/index.ts +1 -2
- package/src/components/Slider/examples.json +28 -3
- package/src/components/Slider/index.tsx +0 -9
- package/src/components/Switch/examples/index.ts +1 -2
- package/src/components/Switch/examples.json +23 -3
- package/src/components/Switch/index.tsx +0 -9
- package/src/components/Table/examples/index.ts +1 -2
- package/src/components/Table/index.tsx +1 -10
- package/src/components/Tabs/examples/index.ts +1 -4
- package/src/components/Tabs/examples.json +10 -0
- package/src/components/Tabs/index.tsx +1 -11
- package/src/components/Textarea/examples/index.ts +1 -2
- package/src/components/Textarea/examples.json +23 -3
- package/src/components/Textarea/index.tsx +1 -9
- package/src/components/Toast/examples/index.ts +1 -10
- package/src/components/Toast/index.tsx +2 -21
- package/src/components/Tooltip/examples/index.ts +1 -2
- package/src/components/Tooltip/index.tsx +1 -9
- package/src/demo-registry.ts +1 -31
- package/src/elements/AI/AIChatInput/index.tsx +0 -3
- package/src/elements/AI/ChainOfThought/index.tsx +0 -3
- package/src/elements/AI/Chat/index.tsx +0 -3
- package/src/elements/Documentation/CopyPage/index.tsx +0 -3
- package/src/elements/Documentation/NextArticle/index.tsx +0 -3
- package/src/elements/Documentation/TOC/index.tsx +0 -3
- package/src/elements/Elements/Carousel/index.tsx +0 -3
- package/src/elements/Elements/Rating/index.tsx +0 -3
- package/src/elements/Elements/Timeline/index.tsx +0 -3
- package/src/elements/Elements/TreeView/index.tsx +0 -3
- package/src/elements/Elements/index.ts +0 -24
- package/src/elements/foundation/Header/index.tsx +0 -3
- package/src/elements/foundation/Page/index.tsx +0 -3
- package/src/elements/foundation/Sidebar/index.tsx +0 -3
- package/src/elements/foundation/TestStructure/index.tsx +54 -0
- package/src/elements/foundation/TestStructure/manifest.ts +9 -0
- package/src/elements/foundation/TestStructure/metadata.json +7 -0
- package/src/elements/foundation/TestStructure/variations.json +16 -0
- package/src/elements/foundation/index.ts +3 -19
- package/src/elements/index.ts +2 -0
- package/src/elements/packages.ts +1 -61
- package/src/generated-data.ts +952 -469
- package/src/generated-styles.ts +980 -195
- package/src/index.ts +2 -18
- package/src/patterns/data/badge-row/variations/main/index.tsx +1 -1
- package/src/patterns/data/badge-row/variations/mixed/index.tsx +1 -1
- package/src/patterns/data/badge-row/variations/outline/index.tsx +1 -1
- package/src/patterns/data/data-table-row/variations/expandable/index.tsx +1 -1
- package/src/patterns/data/data-table-row/variations/main/index.tsx +1 -1
- package/src/patterns/data/data-table-row/variations/selectable/index.tsx +1 -1
- package/src/patterns/interaction/tab-content-header/variations/with-badge/index.tsx +1 -1
- package/src/patterns/layout/split-row/variations/main/index.tsx +1 -1
- package/src/registry.ts +482 -94
- package/src/sections/Hero/index.tsx +0 -2
- package/src/types.ts +20 -1
- package/src/utils/load-component-examples.ts +8 -7
- package/dist/components/Anchor/examples/01-basic-anchor.d.ts +0 -6
- package/dist/components/Anchor/examples/01-basic-anchor.d.ts.map +0 -1
- package/dist/components/Anchor/examples/01-basic-anchor.js +0 -10
- package/dist/components/Anchor/examples/01-basic-anchor.js.map +0 -1
- package/dist/components/Anchor/examples.json +0 -7
- package/dist/components/Badge/examples/01-basic-badge.d.ts +0 -6
- package/dist/components/Badge/examples/01-basic-badge.d.ts.map +0 -1
- package/dist/components/Badge/examples/01-basic-badge.js +0 -10
- package/dist/components/Badge/examples/01-basic-badge.js.map +0 -1
- package/dist/components/Badge/examples/02-variants-and-sizes.d.ts +0 -6
- package/dist/components/Badge/examples/02-variants-and-sizes.d.ts.map +0 -1
- package/dist/components/Badge/examples/02-variants-and-sizes.js +0 -10
- package/dist/components/Badge/examples/02-variants-and-sizes.js.map +0 -1
- package/dist/components/Badge/examples.json +0 -12
- package/dist/components/Banner/examples/01-basic-banner.d.ts +0 -6
- package/dist/components/Banner/examples/01-basic-banner.d.ts.map +0 -1
- package/dist/components/Banner/examples/01-basic-banner.js +0 -10
- package/dist/components/Banner/examples/01-basic-banner.js.map +0 -1
- package/dist/components/Banner/examples.json +0 -7
- package/dist/components/Button/examples/01-variants.d.ts +0 -6
- package/dist/components/Button/examples/01-variants.d.ts.map +0 -1
- package/dist/components/Button/examples/01-variants.js +0 -10
- package/dist/components/Button/examples/01-variants.js.map +0 -1
- package/dist/components/Button/examples/02-multi-actions.d.ts +0 -6
- package/dist/components/Button/examples/02-multi-actions.d.ts.map +0 -1
- package/dist/components/Button/examples/02-multi-actions.js +0 -12
- package/dist/components/Button/examples/02-multi-actions.js.map +0 -1
- package/dist/components/Button/examples/03-joined-toggle.d.ts +0 -6
- package/dist/components/Button/examples/03-joined-toggle.d.ts.map +0 -1
- package/dist/components/Button/examples/03-joined-toggle.js +0 -15
- package/dist/components/Button/examples/03-joined-toggle.js.map +0 -1
- package/dist/components/Button/examples/04-sub-stack-actions.d.ts +0 -6
- package/dist/components/Button/examples/04-sub-stack-actions.d.ts.map +0 -1
- package/dist/components/Button/examples/04-sub-stack-actions.js +0 -15
- package/dist/components/Button/examples/04-sub-stack-actions.js.map +0 -1
- package/dist/components/Button/examples/05-split-action-button.d.ts +0 -6
- package/dist/components/Button/examples/05-split-action-button.d.ts.map +0 -1
- package/dist/components/Button/examples/05-split-action-button.js +0 -57
- package/dist/components/Button/examples/05-split-action-button.js.map +0 -1
- package/dist/components/Button/examples.json +0 -27
- package/dist/components/Card/examples/01-basic-card.d.ts +0 -6
- package/dist/components/Card/examples/01-basic-card.d.ts.map +0 -1
- package/dist/components/Card/examples/01-basic-card.js +0 -10
- package/dist/components/Card/examples/01-basic-card.js.map +0 -1
- package/dist/components/Card/examples.json +0 -7
- package/dist/components/Checkbox/examples/01-basic-checkbox.d.ts +0 -6
- package/dist/components/Checkbox/examples/01-basic-checkbox.d.ts.map +0 -1
- package/dist/components/Checkbox/examples/01-basic-checkbox.js +0 -13
- package/dist/components/Checkbox/examples/01-basic-checkbox.js.map +0 -1
- package/dist/components/Checkbox/examples/02-checkbox-group-with-descriptions.d.ts +0 -6
- package/dist/components/Checkbox/examples/02-checkbox-group-with-descriptions.d.ts.map +0 -1
- package/dist/components/Checkbox/examples/02-checkbox-group-with-descriptions.js +0 -21
- package/dist/components/Checkbox/examples/02-checkbox-group-with-descriptions.js.map +0 -1
- package/dist/components/Checkbox/examples.json +0 -12
- package/dist/components/Color/examples/01-basic-color.d.ts +0 -6
- package/dist/components/Color/examples/01-basic-color.d.ts.map +0 -1
- package/dist/components/Color/examples/01-basic-color.js +0 -12
- package/dist/components/Color/examples/01-basic-color.js.map +0 -1
- package/dist/components/Color/examples/02-opacity-slider.d.ts +0 -6
- package/dist/components/Color/examples/02-opacity-slider.d.ts.map +0 -1
- package/dist/components/Color/examples/02-opacity-slider.js +0 -12
- package/dist/components/Color/examples/02-opacity-slider.js.map +0 -1
- package/dist/components/Color/examples/03-format-switching.d.ts +0 -2
- package/dist/components/Color/examples/03-format-switching.d.ts.map +0 -1
- package/dist/components/Color/examples/03-format-switching.js +0 -16
- package/dist/components/Color/examples/03-format-switching.js.map +0 -1
- package/dist/components/Color/examples.json +0 -12
- package/dist/components/Command/examples/01-basic-command.d.ts +0 -6
- package/dist/components/Command/examples/01-basic-command.d.ts.map +0 -1
- package/dist/components/Command/examples/01-basic-command.js +0 -36
- package/dist/components/Command/examples/01-basic-command.js.map +0 -1
- package/dist/components/Command/examples.json +0 -7
- package/dist/components/Confirm/examples/01-basic-confirm.d.ts +0 -6
- package/dist/components/Confirm/examples/01-basic-confirm.d.ts.map +0 -1
- package/dist/components/Confirm/examples/01-basic-confirm.js +0 -10
- package/dist/components/Confirm/examples/01-basic-confirm.js.map +0 -1
- package/dist/components/Confirm/examples.json +0 -7
- package/dist/components/Date/examples/01-basic-date.d.ts +0 -6
- package/dist/components/Date/examples/01-basic-date.d.ts.map +0 -1
- package/dist/components/Date/examples/01-basic-date.js +0 -12
- package/dist/components/Date/examples/01-basic-date.js.map +0 -1
- package/dist/components/Date/examples/02-with-disabled-dates.d.ts +0 -6
- package/dist/components/Date/examples/02-with-disabled-dates.d.ts.map +0 -1
- package/dist/components/Date/examples/02-with-disabled-dates.js +0 -16
- package/dist/components/Date/examples/02-with-disabled-dates.js.map +0 -1
- package/dist/components/Date/examples/03-controlled-mode.d.ts +0 -6
- package/dist/components/Date/examples/03-controlled-mode.d.ts.map +0 -1
- package/dist/components/Date/examples/03-controlled-mode.js +0 -28
- package/dist/components/Date/examples/03-controlled-mode.js.map +0 -1
- package/dist/components/Date/examples/04-date-range.d.ts +0 -6
- package/dist/components/Date/examples/04-date-range.d.ts.map +0 -1
- package/dist/components/Date/examples/04-date-range.js +0 -40
- package/dist/components/Date/examples/04-date-range.js.map +0 -1
- package/dist/components/Date/examples.json +0 -1
- package/dist/components/Divider/examples/01-basic-divider.d.ts +0 -6
- package/dist/components/Divider/examples/01-basic-divider.d.ts.map +0 -1
- package/dist/components/Divider/examples/01-basic-divider.js +0 -10
- package/dist/components/Divider/examples/01-basic-divider.js.map +0 -1
- package/dist/components/Divider/examples/02-pattern-variants.d.ts +0 -6
- package/dist/components/Divider/examples/02-pattern-variants.d.ts.map +0 -1
- package/dist/components/Divider/examples/02-pattern-variants.js +0 -10
- package/dist/components/Divider/examples/02-pattern-variants.js.map +0 -1
- package/dist/components/Divider/examples/03-vertical-divider.d.ts +0 -6
- package/dist/components/Divider/examples/03-vertical-divider.d.ts.map +0 -1
- package/dist/components/Divider/examples/03-vertical-divider.js +0 -10
- package/dist/components/Divider/examples/03-vertical-divider.js.map +0 -1
- package/dist/components/Divider/examples.json +0 -17
- package/dist/components/Expand/examples/01-basic-expand.d.ts +0 -6
- package/dist/components/Expand/examples/01-basic-expand.d.ts.map +0 -1
- package/dist/components/Expand/examples/01-basic-expand.js +0 -10
- package/dist/components/Expand/examples/01-basic-expand.js.map +0 -1
- package/dist/components/Expand/examples.json +0 -7
- package/dist/components/Flex/examples/01-basic-flex.d.ts +0 -6
- package/dist/components/Flex/examples/01-basic-flex.d.ts.map +0 -1
- package/dist/components/Flex/examples/01-basic-flex.js +0 -10
- package/dist/components/Flex/examples/01-basic-flex.js.map +0 -1
- package/dist/components/Frame/examples/01-default-frame.d.ts +0 -7
- package/dist/components/Frame/examples/01-default-frame.d.ts.map +0 -1
- package/dist/components/Frame/examples/01-default-frame.js +0 -14
- package/dist/components/Frame/examples/01-default-frame.js.map +0 -1
- package/dist/components/Frame/examples/02-tooltip-example.d.ts +0 -7
- package/dist/components/Frame/examples/02-tooltip-example.d.ts.map +0 -1
- package/dist/components/Frame/examples/02-tooltip-example.js +0 -13
- package/dist/components/Frame/examples/02-tooltip-example.js.map +0 -1
- package/dist/components/Frame/examples/03-sidebar-tab.d.ts +0 -7
- package/dist/components/Frame/examples/03-sidebar-tab.d.ts.map +0 -1
- package/dist/components/Frame/examples/03-sidebar-tab.js +0 -17
- package/dist/components/Frame/examples/03-sidebar-tab.js.map +0 -1
- package/dist/components/Frame/examples.json +0 -17
- package/dist/components/Gallery/examples/01-basic-gallery.d.ts +0 -6
- package/dist/components/Gallery/examples/01-basic-gallery.d.ts.map +0 -1
- package/dist/components/Gallery/examples/01-basic-gallery.js +0 -10
- package/dist/components/Gallery/examples/01-basic-gallery.js.map +0 -1
- package/dist/components/Grid/examples/01-basic-grid.d.ts +0 -6
- package/dist/components/Grid/examples/01-basic-grid.d.ts.map +0 -1
- package/dist/components/Grid/examples/01-basic-grid.js +0 -10
- package/dist/components/Grid/examples/01-basic-grid.js.map +0 -1
- package/dist/components/Group/examples/01-basic-group.d.ts +0 -6
- package/dist/components/Group/examples/01-basic-group.d.ts.map +0 -1
- package/dist/components/Group/examples/01-basic-group.js +0 -10
- package/dist/components/Group/examples/01-basic-group.js.map +0 -1
- package/dist/components/Group/examples.json +0 -7
- package/dist/components/Input/examples/01-basic-input.d.ts +0 -6
- package/dist/components/Input/examples/01-basic-input.d.ts.map +0 -1
- package/dist/components/Input/examples/01-basic-input.js +0 -10
- package/dist/components/Input/examples/01-basic-input.js.map +0 -1
- package/dist/components/Input/examples/02-validation.d.ts +0 -6
- package/dist/components/Input/examples/02-validation.d.ts.map +0 -1
- package/dist/components/Input/examples/02-validation.js +0 -11
- package/dist/components/Input/examples/02-validation.js.map +0 -1
- package/dist/components/Input/examples.json +0 -12
- package/dist/components/Label/examples/01-basic-label.d.ts +0 -6
- package/dist/components/Label/examples/01-basic-label.d.ts.map +0 -1
- package/dist/components/Label/examples/01-basic-label.js +0 -10
- package/dist/components/Label/examples/01-basic-label.js.map +0 -1
- package/dist/components/Label/examples.json +0 -7
- package/dist/components/List/examples/01-basic.d.ts +0 -6
- package/dist/components/List/examples/01-basic.d.ts.map +0 -1
- package/dist/components/List/examples/01-basic.js +0 -11
- package/dist/components/List/examples/01-basic.js.map +0 -1
- package/dist/components/List/examples.json +0 -7
- package/dist/components/Mask/examples/01-read-more-fade.d.ts +0 -6
- package/dist/components/Mask/examples/01-read-more-fade.d.ts.map +0 -1
- package/dist/components/Mask/examples/01-read-more-fade.js +0 -10
- package/dist/components/Mask/examples/01-read-more-fade.js.map +0 -1
- package/dist/components/Mask/examples/02-text-gradient.d.ts +0 -6
- package/dist/components/Mask/examples/02-text-gradient.d.ts.map +0 -1
- package/dist/components/Mask/examples/02-text-gradient.js +0 -10
- package/dist/components/Mask/examples/02-text-gradient.js.map +0 -1
- package/dist/components/Mask/examples.json +0 -12
- package/dist/components/Menu/examples/01-basic-menu.d.ts +0 -6
- package/dist/components/Menu/examples/01-basic-menu.d.ts.map +0 -1
- package/dist/components/Menu/examples/01-basic-menu.js +0 -10
- package/dist/components/Menu/examples/01-basic-menu.js.map +0 -1
- package/dist/components/Menu/examples/02-nested-menu.d.ts +0 -6
- package/dist/components/Menu/examples/02-nested-menu.d.ts.map +0 -1
- package/dist/components/Menu/examples/02-nested-menu.js +0 -10
- package/dist/components/Menu/examples/02-nested-menu.js.map +0 -1
- package/dist/components/Menu/examples.json +0 -12
- package/dist/components/Modal/examples/01-basic-modal.d.ts +0 -6
- package/dist/components/Modal/examples/01-basic-modal.d.ts.map +0 -1
- package/dist/components/Modal/examples/01-basic-modal.js +0 -13
- package/dist/components/Modal/examples/01-basic-modal.js.map +0 -1
- package/dist/components/Modal/examples/02-form-modal.d.ts +0 -6
- package/dist/components/Modal/examples/02-form-modal.d.ts.map +0 -1
- package/dist/components/Modal/examples/02-form-modal.js +0 -23
- package/dist/components/Modal/examples/02-form-modal.js.map +0 -1
- package/dist/components/Modal/examples.json +0 -12
- package/dist/components/Path/examples/01-basic-breadcrumbs.d.ts +0 -6
- package/dist/components/Path/examples/01-basic-breadcrumbs.d.ts.map +0 -1
- package/dist/components/Path/examples/01-basic-breadcrumbs.js +0 -10
- package/dist/components/Path/examples/01-basic-breadcrumbs.js.map +0 -1
- package/dist/components/Path/examples/01-basic-path.d.ts +0 -6
- package/dist/components/Path/examples/01-basic-path.d.ts.map +0 -1
- package/dist/components/Path/examples/01-basic-path.js +0 -10
- package/dist/components/Path/examples/01-basic-path.js.map +0 -1
- package/dist/components/Path/examples.json +0 -7
- package/dist/components/Popover/examples/01-basic-popover.d.ts +0 -6
- package/dist/components/Popover/examples/01-basic-popover.d.ts.map +0 -1
- package/dist/components/Popover/examples/01-basic-popover.js +0 -10
- package/dist/components/Popover/examples/01-basic-popover.js.map +0 -1
- package/dist/components/Popover/examples.json +0 -7
- package/dist/components/Progress/examples/01-basic-progress.d.ts +0 -6
- package/dist/components/Progress/examples/01-basic-progress.d.ts.map +0 -1
- package/dist/components/Progress/examples/01-basic-progress.js +0 -10
- package/dist/components/Progress/examples/01-basic-progress.js.map +0 -1
- package/dist/components/Progress/examples.json +0 -7
- package/dist/components/Radio/examples/01-basic-radio.d.ts +0 -6
- package/dist/components/Radio/examples/01-basic-radio.d.ts.map +0 -1
- package/dist/components/Radio/examples/01-basic-radio.js +0 -10
- package/dist/components/Radio/examples/01-basic-radio.js.map +0 -1
- package/dist/components/Radio/examples/02-radio-with-descriptions.d.ts +0 -6
- package/dist/components/Radio/examples/02-radio-with-descriptions.d.ts.map +0 -1
- package/dist/components/Radio/examples/02-radio-with-descriptions.js +0 -11
- package/dist/components/Radio/examples/02-radio-with-descriptions.js.map +0 -1
- package/dist/components/Radio/examples.json +0 -12
- package/dist/components/Scroll/examples/01-basic-scroll.d.ts +0 -6
- package/dist/components/Scroll/examples/01-basic-scroll.d.ts.map +0 -1
- package/dist/components/Scroll/examples/01-basic-scroll.js +0 -10
- package/dist/components/Scroll/examples/01-basic-scroll.js.map +0 -1
- package/dist/components/Scroll/examples.json +0 -7
- package/dist/components/Select/examples/01-basic-select.d.ts +0 -6
- package/dist/components/Select/examples/01-basic-select.d.ts.map +0 -1
- package/dist/components/Select/examples/01-basic-select.js +0 -10
- package/dist/components/Select/examples/01-basic-select.js.map +0 -1
- package/dist/components/Select/examples/02-searchable-select.d.ts +0 -6
- package/dist/components/Select/examples/02-searchable-select.d.ts.map +0 -1
- package/dist/components/Select/examples/02-searchable-select.js +0 -38
- package/dist/components/Select/examples/02-searchable-select.js.map +0 -1
- package/dist/components/Select/examples.json +0 -12
- package/dist/components/Slider/examples/01-basic-slider.d.ts +0 -6
- package/dist/components/Slider/examples/01-basic-slider.d.ts.map +0 -1
- package/dist/components/Slider/examples/01-basic-slider.js +0 -10
- package/dist/components/Slider/examples/01-basic-slider.js.map +0 -1
- package/dist/components/Slider/examples.json +0 -7
- package/dist/components/Switch/examples/01-basic-switch.d.ts +0 -6
- package/dist/components/Switch/examples/01-basic-switch.d.ts.map +0 -1
- package/dist/components/Switch/examples/01-basic-switch.js +0 -10
- package/dist/components/Switch/examples/01-basic-switch.js.map +0 -1
- package/dist/components/Switch/examples.json +0 -7
- package/dist/components/Table/examples/01-basic-table.d.ts +0 -6
- package/dist/components/Table/examples/01-basic-table.d.ts.map +0 -1
- package/dist/components/Table/examples/01-basic-table.js +0 -20
- package/dist/components/Table/examples/01-basic-table.js.map +0 -1
- package/dist/components/Table/examples.json +0 -7
- package/dist/components/Tabs/examples/01-basic-tabs.d.ts +0 -6
- package/dist/components/Tabs/examples/01-basic-tabs.d.ts.map +0 -1
- package/dist/components/Tabs/examples/01-basic-tabs.js +0 -10
- package/dist/components/Tabs/examples/01-basic-tabs.js.map +0 -1
- package/dist/components/Tabs/examples/02-vertical-tabs.d.ts +0 -6
- package/dist/components/Tabs/examples/02-vertical-tabs.d.ts.map +0 -1
- package/dist/components/Tabs/examples/02-vertical-tabs.js +0 -11
- package/dist/components/Tabs/examples/02-vertical-tabs.js.map +0 -1
- package/dist/components/Tabs/examples.json +0 -12
- package/dist/components/Textarea/examples/01-basic-textarea.d.ts +0 -6
- package/dist/components/Textarea/examples/01-basic-textarea.d.ts.map +0 -1
- package/dist/components/Textarea/examples/01-basic-textarea.js +0 -10
- package/dist/components/Textarea/examples/01-basic-textarea.js.map +0 -1
- package/dist/components/Textarea/examples.json +0 -7
- package/dist/components/Toast/examples/01-basic-toast.d.ts +0 -6
- package/dist/components/Toast/examples/01-basic-toast.d.ts.map +0 -1
- package/dist/components/Toast/examples/01-basic-toast.js +0 -10
- package/dist/components/Toast/examples/01-basic-toast.js.map +0 -1
- package/dist/components/Toast/examples/02-success-toast.d.ts +0 -6
- package/dist/components/Toast/examples/02-success-toast.d.ts.map +0 -1
- package/dist/components/Toast/examples/02-success-toast.js +0 -14
- package/dist/components/Toast/examples/02-success-toast.js.map +0 -1
- package/dist/components/Toast/examples/03-danger-toast.d.ts +0 -6
- package/dist/components/Toast/examples/03-danger-toast.d.ts.map +0 -1
- package/dist/components/Toast/examples/03-danger-toast.js +0 -14
- package/dist/components/Toast/examples/03-danger-toast.js.map +0 -1
- package/dist/components/Toast/examples/04-info-toast.d.ts +0 -6
- package/dist/components/Toast/examples/04-info-toast.d.ts.map +0 -1
- package/dist/components/Toast/examples/04-info-toast.js +0 -14
- package/dist/components/Toast/examples/04-info-toast.js.map +0 -1
- package/dist/components/Toast/examples/05-warning-toast.d.ts +0 -6
- package/dist/components/Toast/examples/05-warning-toast.d.ts.map +0 -1
- package/dist/components/Toast/examples/05-warning-toast.js +0 -14
- package/dist/components/Toast/examples/05-warning-toast.js.map +0 -1
- package/dist/components/Toast/examples.json +0 -27
- package/dist/components/Tooltip/examples/01-basic-tooltip.d.ts +0 -6
- package/dist/components/Tooltip/examples/01-basic-tooltip.d.ts.map +0 -1
- package/dist/components/Tooltip/examples/01-basic-tooltip.js +0 -10
- package/dist/components/Tooltip/examples/01-basic-tooltip.js.map +0 -1
- package/dist/components/Tooltip/examples.json +0 -7
- package/dist/design-tokens/index.d.ts +0 -52
- package/dist/design-tokens/index.d.ts.map +0 -1
- package/dist/design-tokens/index.js +0 -167
- package/dist/design-tokens/index.js.map +0 -1
- package/dist/elements/AI/AIChatInput/variations/01-basic/index.d.ts +0 -2
- package/dist/elements/AI/AIChatInput/variations/01-basic/index.d.ts.map +0 -1
- package/dist/elements/AI/AIChatInput/variations/01-basic/index.js +0 -13
- package/dist/elements/AI/AIChatInput/variations/01-basic/index.js.map +0 -1
- package/dist/elements/AI/AIChatInput/variations/01-basic/layout/PromptInput.d.ts +0 -9
- package/dist/elements/AI/AIChatInput/variations/01-basic/layout/PromptInput.d.ts.map +0 -1
- package/dist/elements/AI/AIChatInput/variations/01-basic/layout/PromptInput.js +0 -25
- package/dist/elements/AI/AIChatInput/variations/01-basic/layout/PromptInput.js.map +0 -1
- package/dist/elements/AI/AIChatInput/variations/02-with-suggestions/index.d.ts +0 -2
- package/dist/elements/AI/AIChatInput/variations/02-with-suggestions/index.d.ts.map +0 -1
- package/dist/elements/AI/AIChatInput/variations/02-with-suggestions/index.js +0 -25
- package/dist/elements/AI/AIChatInput/variations/02-with-suggestions/index.js.map +0 -1
- package/dist/elements/AI/AIChatInput/variations/02-with-suggestions/layout/PromptInputWithSuggestions.d.ts +0 -9
- package/dist/elements/AI/AIChatInput/variations/02-with-suggestions/layout/PromptInputWithSuggestions.d.ts.map +0 -1
- package/dist/elements/AI/AIChatInput/variations/02-with-suggestions/layout/PromptInputWithSuggestions.js +0 -25
- package/dist/elements/AI/AIChatInput/variations/02-with-suggestions/layout/PromptInputWithSuggestions.js.map +0 -1
- package/dist/elements/AI/AIChatInput/variations/index.d.ts +0 -18
- package/dist/elements/AI/AIChatInput/variations/index.d.ts.map +0 -1
- package/dist/elements/AI/AIChatInput/variations/index.js +0 -14
- package/dist/elements/AI/AIChatInput/variations/index.js.map +0 -1
- package/dist/elements/AI/ChainOfThought/variations/01-basic/index.d.ts +0 -2
- package/dist/elements/AI/ChainOfThought/variations/01-basic/index.d.ts.map +0 -1
- package/dist/elements/AI/ChainOfThought/variations/01-basic/index.js +0 -29
- package/dist/elements/AI/ChainOfThought/variations/01-basic/index.js.map +0 -1
- package/dist/elements/AI/ChainOfThought/variations/01-basic/layout/ThoughtStep.d.ts +0 -8
- package/dist/elements/AI/ChainOfThought/variations/01-basic/layout/ThoughtStep.d.ts.map +0 -1
- package/dist/elements/AI/ChainOfThought/variations/01-basic/layout/ThoughtStep.js +0 -5
- package/dist/elements/AI/ChainOfThought/variations/01-basic/layout/ThoughtStep.js.map +0 -1
- package/dist/elements/AI/ChainOfThought/variations/02-with-details/index.d.ts +0 -2
- package/dist/elements/AI/ChainOfThought/variations/02-with-details/index.d.ts.map +0 -1
- package/dist/elements/AI/ChainOfThought/variations/02-with-details/index.js +0 -61
- package/dist/elements/AI/ChainOfThought/variations/02-with-details/index.js.map +0 -1
- package/dist/elements/AI/ChainOfThought/variations/02-with-details/layout/ExpandableThoughtStep.d.ts +0 -11
- package/dist/elements/AI/ChainOfThought/variations/02-with-details/layout/ExpandableThoughtStep.d.ts.map +0 -1
- package/dist/elements/AI/ChainOfThought/variations/02-with-details/layout/ExpandableThoughtStep.js +0 -5
- package/dist/elements/AI/ChainOfThought/variations/02-with-details/layout/ExpandableThoughtStep.js.map +0 -1
- package/dist/elements/AI/ChainOfThought/variations/index.d.ts +0 -18
- package/dist/elements/AI/ChainOfThought/variations/index.d.ts.map +0 -1
- package/dist/elements/AI/ChainOfThought/variations/index.js +0 -14
- package/dist/elements/AI/ChainOfThought/variations/index.js.map +0 -1
- package/dist/elements/AI/Chat/variations/01-basic/index.d.ts +0 -2
- package/dist/elements/AI/Chat/variations/01-basic/index.d.ts.map +0 -1
- package/dist/elements/AI/Chat/variations/01-basic/index.js +0 -31
- package/dist/elements/AI/Chat/variations/01-basic/index.js.map +0 -1
- package/dist/elements/AI/Chat/variations/01-basic/layout/ChatContainer.d.ts +0 -7
- package/dist/elements/AI/Chat/variations/01-basic/layout/ChatContainer.d.ts.map +0 -1
- package/dist/elements/AI/Chat/variations/01-basic/layout/ChatContainer.js +0 -5
- package/dist/elements/AI/Chat/variations/01-basic/layout/ChatContainer.js.map +0 -1
- package/dist/elements/AI/Chat/variations/01-basic/layout/ChatInput.d.ts +0 -6
- package/dist/elements/AI/Chat/variations/01-basic/layout/ChatInput.d.ts.map +0 -1
- package/dist/elements/AI/Chat/variations/01-basic/layout/ChatInput.js +0 -14
- package/dist/elements/AI/Chat/variations/01-basic/layout/ChatInput.js.map +0 -1
- package/dist/elements/AI/Chat/variations/01-basic/layout/ChatMessage.d.ts +0 -7
- package/dist/elements/AI/Chat/variations/01-basic/layout/ChatMessage.d.ts.map +0 -1
- package/dist/elements/AI/Chat/variations/01-basic/layout/ChatMessage.js +0 -7
- package/dist/elements/AI/Chat/variations/01-basic/layout/ChatMessage.js.map +0 -1
- package/dist/elements/AI/Chat/variations/02-with-actions/index.d.ts +0 -2
- package/dist/elements/AI/Chat/variations/02-with-actions/index.d.ts.map +0 -1
- package/dist/elements/AI/Chat/variations/02-with-actions/index.js +0 -39
- package/dist/elements/AI/Chat/variations/02-with-actions/index.js.map +0 -1
- package/dist/elements/AI/Chat/variations/02-with-actions/layout/ChatContainerWithActions.d.ts +0 -7
- package/dist/elements/AI/Chat/variations/02-with-actions/layout/ChatContainerWithActions.d.ts.map +0 -1
- package/dist/elements/AI/Chat/variations/02-with-actions/layout/ChatContainerWithActions.js +0 -5
- package/dist/elements/AI/Chat/variations/02-with-actions/layout/ChatContainerWithActions.js.map +0 -1
- package/dist/elements/AI/Chat/variations/02-with-actions/layout/ChatInputWithActions.d.ts +0 -6
- package/dist/elements/AI/Chat/variations/02-with-actions/layout/ChatInputWithActions.d.ts.map +0 -1
- package/dist/elements/AI/Chat/variations/02-with-actions/layout/ChatInputWithActions.js +0 -14
- package/dist/elements/AI/Chat/variations/02-with-actions/layout/ChatInputWithActions.js.map +0 -1
- package/dist/elements/AI/Chat/variations/02-with-actions/layout/ChatMessage.d.ts +0 -7
- package/dist/elements/AI/Chat/variations/02-with-actions/layout/ChatMessage.d.ts.map +0 -1
- package/dist/elements/AI/Chat/variations/02-with-actions/layout/ChatMessage.js +0 -7
- package/dist/elements/AI/Chat/variations/02-with-actions/layout/ChatMessage.js.map +0 -1
- package/dist/elements/AI/Chat/variations/index.d.ts +0 -18
- package/dist/elements/AI/Chat/variations/index.d.ts.map +0 -1
- package/dist/elements/AI/Chat/variations/index.js +0 -14
- package/dist/elements/AI/Chat/variations/index.js.map +0 -1
- package/dist/elements/Documentation/CopyPage/variations/01-basic/index.d.ts +0 -2
- package/dist/elements/Documentation/CopyPage/variations/01-basic/index.d.ts.map +0 -1
- package/dist/elements/Documentation/CopyPage/variations/01-basic/index.js +0 -7
- package/dist/elements/Documentation/CopyPage/variations/01-basic/index.js.map +0 -1
- package/dist/elements/Documentation/CopyPage/variations/01-basic/layout/CopyButton.d.ts +0 -2
- package/dist/elements/Documentation/CopyPage/variations/01-basic/layout/CopyButton.d.ts.map +0 -1
- package/dist/elements/Documentation/CopyPage/variations/01-basic/layout/CopyButton.js +0 -20
- package/dist/elements/Documentation/CopyPage/variations/01-basic/layout/CopyButton.js.map +0 -1
- package/dist/elements/Documentation/CopyPage/variations/02-with-success/index.d.ts +0 -2
- package/dist/elements/Documentation/CopyPage/variations/02-with-success/index.d.ts.map +0 -1
- package/dist/elements/Documentation/CopyPage/variations/02-with-success/index.js +0 -13
- package/dist/elements/Documentation/CopyPage/variations/02-with-success/index.js.map +0 -1
- package/dist/elements/Documentation/CopyPage/variations/02-with-success/layout/CopyButtonWithToast.d.ts +0 -6
- package/dist/elements/Documentation/CopyPage/variations/02-with-success/layout/CopyButtonWithToast.d.ts.map +0 -1
- package/dist/elements/Documentation/CopyPage/variations/02-with-success/layout/CopyButtonWithToast.js +0 -21
- package/dist/elements/Documentation/CopyPage/variations/02-with-success/layout/CopyButtonWithToast.js.map +0 -1
- package/dist/elements/Documentation/CopyPage/variations/index.d.ts +0 -18
- package/dist/elements/Documentation/CopyPage/variations/index.d.ts.map +0 -1
- package/dist/elements/Documentation/CopyPage/variations/index.js +0 -14
- package/dist/elements/Documentation/CopyPage/variations/index.js.map +0 -1
- package/dist/elements/Documentation/NextArticle/variations/01-basic/index.d.ts +0 -2
- package/dist/elements/Documentation/NextArticle/variations/01-basic/index.d.ts.map +0 -1
- package/dist/elements/Documentation/NextArticle/variations/01-basic/index.js +0 -19
- package/dist/elements/Documentation/NextArticle/variations/01-basic/index.js.map +0 -1
- package/dist/elements/Documentation/NextArticle/variations/01-basic/layout/NextArticleCard.d.ts +0 -8
- package/dist/elements/Documentation/NextArticle/variations/01-basic/layout/NextArticleCard.d.ts.map +0 -1
- package/dist/elements/Documentation/NextArticle/variations/01-basic/layout/NextArticleCard.js +0 -5
- package/dist/elements/Documentation/NextArticle/variations/01-basic/layout/NextArticleCard.js.map +0 -1
- package/dist/elements/Documentation/NextArticle/variations/02-with-icon/index.d.ts +0 -2
- package/dist/elements/Documentation/NextArticle/variations/02-with-icon/index.d.ts.map +0 -1
- package/dist/elements/Documentation/NextArticle/variations/02-with-icon/index.js +0 -23
- package/dist/elements/Documentation/NextArticle/variations/02-with-icon/index.js.map +0 -1
- package/dist/elements/Documentation/NextArticle/variations/02-with-icon/layout/NextArticleWithIconCard.d.ts +0 -10
- package/dist/elements/Documentation/NextArticle/variations/02-with-icon/layout/NextArticleWithIconCard.d.ts.map +0 -1
- package/dist/elements/Documentation/NextArticle/variations/02-with-icon/layout/NextArticleWithIconCard.js +0 -5
- package/dist/elements/Documentation/NextArticle/variations/02-with-icon/layout/NextArticleWithIconCard.js.map +0 -1
- package/dist/elements/Documentation/NextArticle/variations/index.d.ts +0 -18
- package/dist/elements/Documentation/NextArticle/variations/index.d.ts.map +0 -1
- package/dist/elements/Documentation/NextArticle/variations/index.js +0 -14
- package/dist/elements/Documentation/NextArticle/variations/index.js.map +0 -1
- package/dist/elements/Documentation/TOC/variations/01-basic/index.d.ts +0 -2
- package/dist/elements/Documentation/TOC/variations/01-basic/index.d.ts.map +0 -1
- package/dist/elements/Documentation/TOC/variations/01-basic/index.js +0 -7
- package/dist/elements/Documentation/TOC/variations/01-basic/index.js.map +0 -1
- package/dist/elements/Documentation/TOC/variations/01-basic/layout/TableOfContents.d.ts +0 -11
- package/dist/elements/Documentation/TOC/variations/01-basic/layout/TableOfContents.d.ts.map +0 -1
- package/dist/elements/Documentation/TOC/variations/01-basic/layout/TableOfContents.js +0 -12
- package/dist/elements/Documentation/TOC/variations/01-basic/layout/TableOfContents.js.map +0 -1
- package/dist/elements/Documentation/TOC/variations/02-expanded/index.d.ts +0 -2
- package/dist/elements/Documentation/TOC/variations/02-expanded/index.d.ts.map +0 -1
- package/dist/elements/Documentation/TOC/variations/02-expanded/index.js +0 -9
- package/dist/elements/Documentation/TOC/variations/02-expanded/index.js.map +0 -1
- package/dist/elements/Documentation/TOC/variations/02-expanded/layout/ExpandableTableOfContents.d.ts +0 -6
- package/dist/elements/Documentation/TOC/variations/02-expanded/layout/ExpandableTableOfContents.d.ts.map +0 -1
- package/dist/elements/Documentation/TOC/variations/02-expanded/layout/ExpandableTableOfContents.js +0 -45
- package/dist/elements/Documentation/TOC/variations/02-expanded/layout/ExpandableTableOfContents.js.map +0 -1
- package/dist/elements/Documentation/TOC/variations/index.d.ts +0 -18
- package/dist/elements/Documentation/TOC/variations/index.d.ts.map +0 -1
- package/dist/elements/Documentation/TOC/variations/index.js +0 -14
- package/dist/elements/Documentation/TOC/variations/index.js.map +0 -1
- package/dist/elements/Elements/Carousel/variations/01-basic/index.d.ts +0 -2
- package/dist/elements/Elements/Carousel/variations/01-basic/index.d.ts.map +0 -1
- package/dist/elements/Elements/Carousel/variations/01-basic/index.js +0 -6
- package/dist/elements/Elements/Carousel/variations/01-basic/index.js.map +0 -1
- package/dist/elements/Elements/Carousel/variations/index.d.ts +0 -12
- package/dist/elements/Elements/Carousel/variations/index.d.ts.map +0 -1
- package/dist/elements/Elements/Carousel/variations/index.js +0 -11
- package/dist/elements/Elements/Carousel/variations/index.js.map +0 -1
- package/dist/elements/Elements/Rating/variations/01-basic/index.d.ts +0 -2
- package/dist/elements/Elements/Rating/variations/01-basic/index.d.ts.map +0 -1
- package/dist/elements/Elements/Rating/variations/01-basic/index.js +0 -6
- package/dist/elements/Elements/Rating/variations/01-basic/index.js.map +0 -1
- package/dist/elements/Elements/Rating/variations/index.d.ts +0 -12
- package/dist/elements/Elements/Rating/variations/index.d.ts.map +0 -1
- package/dist/elements/Elements/Rating/variations/index.js +0 -11
- package/dist/elements/Elements/Rating/variations/index.js.map +0 -1
- package/dist/elements/Elements/Timeline/variations/01-basic/index.d.ts +0 -2
- package/dist/elements/Elements/Timeline/variations/01-basic/index.d.ts.map +0 -1
- package/dist/elements/Elements/Timeline/variations/01-basic/index.js +0 -6
- package/dist/elements/Elements/Timeline/variations/01-basic/index.js.map +0 -1
- package/dist/elements/Elements/Timeline/variations/index.d.ts +0 -12
- package/dist/elements/Elements/Timeline/variations/index.d.ts.map +0 -1
- package/dist/elements/Elements/Timeline/variations/index.js +0 -11
- package/dist/elements/Elements/Timeline/variations/index.js.map +0 -1
- package/dist/elements/Elements/TreeView/variations/01-basic/index.d.ts +0 -2
- package/dist/elements/Elements/TreeView/variations/01-basic/index.d.ts.map +0 -1
- package/dist/elements/Elements/TreeView/variations/01-basic/index.js +0 -6
- package/dist/elements/Elements/TreeView/variations/01-basic/index.js.map +0 -1
- package/dist/elements/Elements/TreeView/variations/index.d.ts +0 -12
- package/dist/elements/Elements/TreeView/variations/index.d.ts.map +0 -1
- package/dist/elements/Elements/TreeView/variations/index.js +0 -11
- package/dist/elements/Elements/TreeView/variations/index.js.map +0 -1
- package/dist/elements/foundation/Header/variations/01-basic/index.d.ts +0 -2
- package/dist/elements/foundation/Header/variations/01-basic/index.d.ts.map +0 -1
- package/dist/elements/foundation/Header/variations/01-basic/index.js +0 -7
- package/dist/elements/foundation/Header/variations/01-basic/index.js.map +0 -1
- package/dist/elements/foundation/Header/variations/01-basic/layout/Header.d.ts +0 -6
- package/dist/elements/foundation/Header/variations/01-basic/layout/Header.d.ts.map +0 -1
- package/dist/elements/foundation/Header/variations/01-basic/layout/Header.js +0 -5
- package/dist/elements/foundation/Header/variations/01-basic/layout/Header.js.map +0 -1
- package/dist/elements/foundation/Header/variations/index.d.ts +0 -12
- package/dist/elements/foundation/Header/variations/index.d.ts.map +0 -1
- package/dist/elements/foundation/Header/variations/index.js +0 -11
- package/dist/elements/foundation/Header/variations/index.js.map +0 -1
- package/dist/elements/foundation/Page/variations/01-basic/index.d.ts +0 -2
- package/dist/elements/foundation/Page/variations/01-basic/index.d.ts.map +0 -1
- package/dist/elements/foundation/Page/variations/01-basic/index.js +0 -7
- package/dist/elements/foundation/Page/variations/01-basic/index.js.map +0 -1
- package/dist/elements/foundation/Page/variations/01-basic/layout/Page.d.ts +0 -7
- package/dist/elements/foundation/Page/variations/01-basic/layout/Page.d.ts.map +0 -1
- package/dist/elements/foundation/Page/variations/01-basic/layout/Page.js +0 -5
- package/dist/elements/foundation/Page/variations/01-basic/layout/Page.js.map +0 -1
- package/dist/elements/foundation/Page/variations/index.d.ts +0 -12
- package/dist/elements/foundation/Page/variations/index.d.ts.map +0 -1
- package/dist/elements/foundation/Page/variations/index.js +0 -11
- package/dist/elements/foundation/Page/variations/index.js.map +0 -1
- package/dist/elements/foundation/Sidebar/variations/01-basic/index.d.ts +0 -2
- package/dist/elements/foundation/Sidebar/variations/01-basic/index.d.ts.map +0 -1
- package/dist/elements/foundation/Sidebar/variations/01-basic/index.js +0 -7
- package/dist/elements/foundation/Sidebar/variations/01-basic/index.js.map +0 -1
- package/dist/elements/foundation/Sidebar/variations/01-basic/layout/Sidebar.d.ts +0 -6
- package/dist/elements/foundation/Sidebar/variations/01-basic/layout/Sidebar.d.ts.map +0 -1
- package/dist/elements/foundation/Sidebar/variations/01-basic/layout/Sidebar.js +0 -48
- package/dist/elements/foundation/Sidebar/variations/01-basic/layout/Sidebar.js.map +0 -1
- package/dist/elements/foundation/Sidebar/variations/index.d.ts +0 -12
- package/dist/elements/foundation/Sidebar/variations/index.d.ts.map +0 -1
- package/dist/elements/foundation/Sidebar/variations/index.js +0 -11
- package/dist/elements/foundation/Sidebar/variations/index.js.map +0 -1
- package/dist/generated-controls.d.ts +0 -3
- package/dist/generated-controls.d.ts.map +0 -1
- package/dist/generated-controls.js +0 -161
- package/dist/generated-controls.js.map +0 -1
- package/dist/providers/Theme/examples/01-provider-setup.d.ts +0 -28
- package/dist/providers/Theme/examples/01-provider-setup.d.ts.map +0 -1
- package/dist/providers/Theme/examples/01-provider-setup.js +0 -35
- package/dist/providers/Theme/examples/01-provider-setup.js.map +0 -1
- package/dist/providers/Theme/examples/02-toggle-component.d.ts +0 -32
- package/dist/providers/Theme/examples/02-toggle-component.d.ts.map +0 -1
- package/dist/providers/Theme/examples/02-toggle-component.js +0 -50
- package/dist/providers/Theme/examples/02-toggle-component.js.map +0 -1
- package/dist/providers/Theme/examples/03-advanced-patterns.d.ts +0 -134
- package/dist/providers/Theme/examples/03-advanced-patterns.d.ts.map +0 -1
- package/dist/providers/Theme/examples/03-advanced-patterns.js +0 -134
- package/dist/providers/Theme/examples/03-advanced-patterns.js.map +0 -1
- package/dist/providers/Theme/examples/index.d.ts +0 -4
- package/dist/providers/Theme/examples/index.d.ts.map +0 -1
- package/dist/providers/Theme/examples/index.js +0 -4
- package/dist/providers/Theme/examples/index.js.map +0 -1
- package/dist/sections/CTA/variations/01-banner/index.d.ts +0 -7
- package/dist/sections/CTA/variations/01-banner/index.d.ts.map +0 -1
- package/dist/sections/CTA/variations/01-banner/index.js +0 -13
- package/dist/sections/CTA/variations/01-banner/index.js.map +0 -1
- package/dist/sections/CTA/variations/02-split/index.d.ts +0 -7
- package/dist/sections/CTA/variations/02-split/index.d.ts.map +0 -1
- package/dist/sections/CTA/variations/02-split/index.js +0 -19
- package/dist/sections/CTA/variations/02-split/index.js.map +0 -1
- package/dist/sections/CTA/variations/index.d.ts +0 -13
- package/dist/sections/CTA/variations/index.d.ts.map +0 -1
- package/dist/sections/CTA/variations/index.js +0 -7
- package/dist/sections/CTA/variations/index.js.map +0 -1
- package/dist/sections/Features/variations/01-grid/index.d.ts +0 -7
- package/dist/sections/Features/variations/01-grid/index.d.ts.map +0 -1
- package/dist/sections/Features/variations/01-grid/index.js +0 -47
- package/dist/sections/Features/variations/01-grid/index.js.map +0 -1
- package/dist/sections/Features/variations/02-list/index.d.ts +0 -7
- package/dist/sections/Features/variations/02-list/index.d.ts.map +0 -1
- package/dist/sections/Features/variations/02-list/index.js +0 -52
- package/dist/sections/Features/variations/02-list/index.js.map +0 -1
- package/dist/sections/Features/variations/index.d.ts +0 -13
- package/dist/sections/Features/variations/index.d.ts.map +0 -1
- package/dist/sections/Features/variations/index.js +0 -7
- package/dist/sections/Features/variations/index.js.map +0 -1
- package/dist/sections/Hero/variations/01-simple/index.d.ts +0 -7
- package/dist/sections/Hero/variations/01-simple/index.d.ts.map +0 -1
- package/dist/sections/Hero/variations/01-simple/index.js +0 -12
- package/dist/sections/Hero/variations/01-simple/index.js.map +0 -1
- package/dist/sections/Hero/variations/02-with-cta/index.d.ts +0 -7
- package/dist/sections/Hero/variations/02-with-cta/index.d.ts.map +0 -1
- package/dist/sections/Hero/variations/02-with-cta/index.js +0 -12
- package/dist/sections/Hero/variations/02-with-cta/index.js.map +0 -1
- package/dist/sections/Hero/variations/03-with-stats/index.d.ts +0 -7
- package/dist/sections/Hero/variations/03-with-stats/index.d.ts.map +0 -1
- package/dist/sections/Hero/variations/03-with-stats/index.js +0 -18
- package/dist/sections/Hero/variations/03-with-stats/index.js.map +0 -1
- package/dist/sections/Hero/variations/04-with-features/index.d.ts +0 -7
- package/dist/sections/Hero/variations/04-with-features/index.d.ts.map +0 -1
- package/dist/sections/Hero/variations/04-with-features/index.js +0 -38
- package/dist/sections/Hero/variations/04-with-features/index.js.map +0 -1
- package/dist/sections/Hero/variations/index.d.ts +0 -23
- package/dist/sections/Hero/variations/index.d.ts.map +0 -1
- package/dist/sections/Hero/variations/index.js +0 -11
- package/dist/sections/Hero/variations/index.js.map +0 -1
- package/dist/sections/Pricing/variations/01-cards/index.d.ts +0 -7
- package/dist/sections/Pricing/variations/01-cards/index.d.ts.map +0 -1
- package/dist/sections/Pricing/variations/01-cards/index.js +0 -66
- package/dist/sections/Pricing/variations/01-cards/index.js.map +0 -1
- package/dist/sections/Pricing/variations/02-comparison/index.d.ts +0 -7
- package/dist/sections/Pricing/variations/02-comparison/index.d.ts.map +0 -1
- package/dist/sections/Pricing/variations/02-comparison/index.js +0 -53
- package/dist/sections/Pricing/variations/02-comparison/index.js.map +0 -1
- package/dist/sections/Pricing/variations/index.d.ts +0 -13
- package/dist/sections/Pricing/variations/index.d.ts.map +0 -1
- package/dist/sections/Pricing/variations/index.js +0 -7
- package/dist/sections/Pricing/variations/index.js.map +0 -1
- package/dist/sections/Testimonials/variations/01-cards/index.d.ts +0 -7
- package/dist/sections/Testimonials/variations/01-cards/index.d.ts.map +0 -1
- package/dist/sections/Testimonials/variations/01-cards/index.js +0 -38
- package/dist/sections/Testimonials/variations/01-cards/index.js.map +0 -1
- package/dist/sections/Testimonials/variations/02-featured/index.d.ts +0 -7
- package/dist/sections/Testimonials/variations/02-featured/index.d.ts.map +0 -1
- package/dist/sections/Testimonials/variations/02-featured/index.js +0 -53
- package/dist/sections/Testimonials/variations/02-featured/index.js.map +0 -1
- package/dist/sections/Testimonials/variations/index.d.ts +0 -13
- package/dist/sections/Testimonials/variations/index.d.ts.map +0 -1
- package/dist/sections/Testimonials/variations/index.js +0 -7
- package/dist/sections/Testimonials/variations/index.js.map +0 -1
- package/dist/src/generated-styles.d.ts +0 -7
- package/dist/src/generated-styles.d.ts.map +0 -1
- package/dist/src/generated-styles.js +0 -1360
- package/dist/src/generated-styles.js.map +0 -1
- package/src/components/Anchor/examples/01-basic-anchor.tsx +0 -18
- package/src/components/Badge/examples/01-basic-badge.tsx +0 -11
- package/src/components/Badge/examples/02-variants-and-sizes.tsx +0 -71
- package/src/components/Banner/examples/01-basic-banner.tsx +0 -15
- package/src/components/Button/examples/01-variants.tsx +0 -62
- package/src/components/Button/examples/02-multi-actions.tsx +0 -20
- package/src/components/Button/examples/03-joined-toggle.tsx +0 -32
- package/src/components/Button/examples/04-sub-stack-actions.tsx +0 -29
- package/src/components/Button/examples/05-split-action-button.tsx +0 -96
- package/src/components/Button/examples.json +0 -27
- package/src/components/Card/examples/01-basic-card.tsx +0 -22
- package/src/components/Checkbox/examples/01-basic-checkbox.tsx +0 -21
- package/src/components/Checkbox/examples/02-checkbox-group-with-descriptions.tsx +0 -59
- package/src/components/Color/examples/01-basic-color.tsx +0 -25
- package/src/components/Color/examples/02-opacity-slider.tsx +0 -26
- package/src/components/Color/examples/03-format-switching.tsx +0 -46
- package/src/components/Command/examples/01-basic-command.tsx +0 -79
- package/src/components/Confirm/examples/01-basic-confirm.tsx +0 -20
- package/src/components/Date/examples/01-basic-date.tsx +0 -12
- package/src/components/Date/examples/02-with-disabled-dates.tsx +0 -22
- package/src/components/Date/examples/03-controlled-mode.tsx +0 -46
- package/src/components/Date/examples/04-date-range.tsx +0 -82
- package/src/components/Divider/examples/01-basic-divider.tsx +0 -17
- package/src/components/Divider/examples/02-pattern-variants.tsx +0 -25
- package/src/components/Divider/examples/03-vertical-divider.tsx +0 -21
- package/src/components/Expand/examples/01-basic-expand.tsx +0 -18
- package/src/components/Flex/examples/01-basic-flex.tsx +0 -17
- package/src/components/Frame/examples/01-default-frame.tsx +0 -33
- package/src/components/Frame/examples/02-tooltip-example.tsx +0 -35
- package/src/components/Frame/examples/03-sidebar-tab.tsx +0 -50
- package/src/components/Gallery/examples/01-basic-gallery.tsx +0 -28
- package/src/components/Grid/examples/01-basic-grid.tsx +0 -20
- package/src/components/Group/examples/01-basic-group.tsx +0 -16
- package/src/components/Group/examples/examples.json +0 -10
- package/src/components/Group/examples.json +0 -7
- package/src/components/Input/examples/01-basic-input.tsx +0 -11
- package/src/components/Input/examples/02-validation.tsx +0 -53
- package/src/components/Input/examples/examples.json +0 -16
- package/src/components/Label/examples/01-basic-label.tsx +0 -16
- package/src/components/List/examples/01-basic.tsx +0 -25
- package/src/components/Mask/examples/01-read-more-fade.tsx +0 -33
- package/src/components/Mask/examples/02-text-gradient.tsx +0 -21
- package/src/components/Menu/examples/01-basic-menu.tsx +0 -22
- package/src/components/Menu/examples/02-nested-menu.tsx +0 -49
- package/src/components/Modal/examples/01-basic-modal.tsx +0 -24
- package/src/components/Modal/examples/02-form-modal.tsx +0 -88
- package/src/components/Path/examples/01-basic-path.tsx +0 -17
- package/src/components/Popover/examples/01-basic-popover.tsx +0 -15
- package/src/components/Progress/examples/01-basic-progress.tsx +0 -11
- package/src/components/Radio/examples/01-basic-radio.tsx +0 -13
- package/src/components/Radio/examples/02-radio-with-descriptions.tsx +0 -31
- package/src/components/Radio/examples/examples.json +0 -8
- package/src/components/Scroll/examples/01-basic-scroll.tsx +0 -22
- package/src/components/Select/examples/01-basic-select.tsx +0 -22
- package/src/components/Select/examples/02-searchable-select.tsx +0 -51
- package/src/components/Slider/examples/01-basic-slider.tsx +0 -11
- package/src/components/Switch/examples/01-basic-switch.tsx +0 -11
- package/src/components/Table/examples/01-basic-table.tsx +0 -27
- package/src/components/Tabs/examples/01-basic-tabs.tsx +0 -28
- package/src/components/Tabs/examples/02-vertical-tabs.tsx +0 -103
- package/src/components/Textarea/examples/01-basic-textarea.tsx +0 -16
- package/src/components/Toast/examples/01-basic-toast.tsx +0 -20
- package/src/components/Toast/examples/02-success-toast.tsx +0 -27
- package/src/components/Toast/examples/03-danger-toast.tsx +0 -27
- package/src/components/Toast/examples/04-info-toast.tsx +0 -27
- package/src/components/Toast/examples/05-warning-toast.tsx +0 -27
- package/src/components/Tooltip/examples/01-basic-tooltip.tsx +0 -15
- package/src/design-tokens/index.ts +0 -196
- package/src/dist/generated-styles.json +0 -1358
- package/src/elements/AI/AIChatInput/variations/01-basic/index.tsx +0 -39
- package/src/elements/AI/AIChatInput/variations/01-basic/layout/PromptInput.tsx +0 -58
- package/src/elements/AI/AIChatInput/variations/02-with-suggestions/index.tsx +0 -67
- package/src/elements/AI/AIChatInput/variations/02-with-suggestions/layout/PromptInputWithSuggestions.tsx +0 -63
- package/src/elements/AI/AIChatInput/variations/index.ts +0 -18
- package/src/elements/AI/ChainOfThought/variations/01-basic/index.tsx +0 -49
- package/src/elements/AI/ChainOfThought/variations/01-basic/layout/ThoughtStep.tsx +0 -22
- package/src/elements/AI/ChainOfThought/variations/02-with-details/index.tsx +0 -80
- package/src/elements/AI/ChainOfThought/variations/02-with-details/layout/ExpandableThoughtStep.tsx +0 -48
- package/src/elements/AI/ChainOfThought/variations/index.ts +0 -18
- package/src/elements/AI/Chat/variations/01-basic/index.tsx +0 -54
- package/src/elements/AI/Chat/variations/01-basic/layout/ChatContainer.tsx +0 -13
- package/src/elements/AI/Chat/variations/01-basic/layout/ChatInput.tsx +0 -35
- package/src/elements/AI/Chat/variations/01-basic/layout/ChatMessage.tsx +0 -20
- package/src/elements/AI/Chat/variations/02-with-actions/index.tsx +0 -83
- package/src/elements/AI/Chat/variations/02-with-actions/layout/ChatContainerWithActions.tsx +0 -13
- package/src/elements/AI/Chat/variations/02-with-actions/layout/ChatInputWithActions.tsx +0 -35
- package/src/elements/AI/Chat/variations/02-with-actions/layout/ChatMessage.tsx +0 -20
- package/src/elements/AI/Chat/variations/index.ts +0 -18
- package/src/elements/Documentation/CopyPage/variations/01-basic/index.tsx +0 -55
- package/src/elements/Documentation/CopyPage/variations/01-basic/layout/CopyButton.tsx +0 -30
- package/src/elements/Documentation/CopyPage/variations/02-with-success/index.tsx +0 -63
- package/src/elements/Documentation/CopyPage/variations/02-with-success/layout/CopyButtonWithToast.tsx +0 -33
- package/src/elements/Documentation/CopyPage/variations/index.ts +0 -18
- package/src/elements/Documentation/NextArticle/variations/01-basic/index.tsx +0 -42
- package/src/elements/Documentation/NextArticle/variations/01-basic/layout/NextArticleCard.tsx +0 -27
- package/src/elements/Documentation/NextArticle/variations/02-with-icon/index.tsx +0 -44
- package/src/elements/Documentation/NextArticle/variations/02-with-icon/layout/NextArticleWithIconCard.tsx +0 -34
- package/src/elements/Documentation/NextArticle/variations/index.ts +0 -18
- package/src/elements/Documentation/TOC/variations/01-basic/index.tsx +0 -61
- package/src/elements/Documentation/TOC/variations/01-basic/layout/TableOfContents.tsx +0 -37
- package/src/elements/Documentation/TOC/variations/02-expanded/index.tsx +0 -67
- package/src/elements/Documentation/TOC/variations/02-expanded/layout/ExpandableTableOfContents.tsx +0 -91
- package/src/elements/Documentation/TOC/variations/index.ts +0 -18
- package/src/elements/Elements/Carousel/variations/01-basic/index.tsx +0 -4
- package/src/elements/Elements/Carousel/variations/index.ts +0 -15
- package/src/elements/Elements/Rating/variations/01-basic/index.tsx +0 -4
- package/src/elements/Elements/Rating/variations/index.ts +0 -15
- package/src/elements/Elements/Timeline/variations/01-basic/index.tsx +0 -4
- package/src/elements/Elements/Timeline/variations/index.ts +0 -15
- package/src/elements/Elements/TreeView/variations/01-basic/index.tsx +0 -4
- package/src/elements/Elements/TreeView/variations/index.ts +0 -15
- package/src/elements/foundation/Header/variations/01-basic/index.tsx +0 -46
- package/src/elements/foundation/Header/variations/01-basic/layout/Header.tsx +0 -21
- package/src/elements/foundation/Header/variations/index.ts +0 -15
- package/src/elements/foundation/Page/variations/01-basic/index.tsx +0 -40
- package/src/elements/foundation/Page/variations/01-basic/layout/Page.tsx +0 -29
- package/src/elements/foundation/Page/variations/index.ts +0 -15
- package/src/elements/foundation/Sidebar/variations/01-basic/index.tsx +0 -15
- package/src/elements/foundation/Sidebar/variations/01-basic/layout/Sidebar.tsx +0 -158
- package/src/elements/foundation/Sidebar/variations/index.ts +0 -15
- package/src/sections/CTA/variations/01-banner/index.tsx +0 -52
- package/src/sections/CTA/variations/02-split/index.tsx +0 -90
- package/src/sections/CTA/variations/index.ts +0 -7
- package/src/sections/Features/variations/01-grid/index.tsx +0 -91
- package/src/sections/Features/variations/02-list/index.tsx +0 -124
- package/src/sections/Features/variations/index.ts +0 -7
- package/src/sections/Hero/variations/01-simple/index.tsx +0 -46
- package/src/sections/Hero/variations/02-with-cta/index.tsx +0 -74
- package/src/sections/Hero/variations/03-with-stats/index.tsx +0 -63
- package/src/sections/Hero/variations/04-with-features/index.tsx +0 -87
- package/src/sections/Hero/variations/index.ts +0 -11
- package/src/sections/Pricing/variations/01-cards/index.tsx +0 -153
- package/src/sections/Pricing/variations/02-comparison/index.tsx +0 -150
- package/src/sections/Pricing/variations/index.ts +0 -7
- package/src/sections/Testimonials/variations/01-cards/index.tsx +0 -93
- package/src/sections/Testimonials/variations/02-featured/index.tsx +0 -155
- package/src/sections/Testimonials/variations/index.ts +0 -7
|
@@ -1,7 +1 @@
|
|
|
1
|
-
export { default as Example1 } from './01-default-frame.js';
|
|
2
|
-
export { metadata as metadata1 } from './01-default-frame.js';
|
|
3
|
-
export { default as Example2 } from './02-tooltip-example.js';
|
|
4
|
-
export { metadata as metadata2 } from './02-tooltip-example.js';
|
|
5
|
-
export { default as Example3 } from './03-sidebar-tab.js';
|
|
6
|
-
export { metadata as metadata3 } from './03-sidebar-tab.js';
|
|
7
1
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Frame/examples/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Frame/examples/index.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export { metadata as metadata1 } from './01-default-frame.js';
|
|
3
|
-
export { default as Example2 } from './02-tooltip-example.js';
|
|
4
|
-
export { metadata as metadata2 } from './02-tooltip-example.js';
|
|
5
|
-
export { default as Example3 } from './03-sidebar-tab.js';
|
|
6
|
-
export { metadata as metadata3 } from './03-sidebar-tab.js';
|
|
1
|
+
// Frame examples are served from @ui-lab-core/library (private registry)
|
|
7
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Frame/examples/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Frame/examples/index.ts"],"names":[],"mappings":"AAAA,yEAAyE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Frame/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Frame/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAGtD,QAAA,MAAM,aAAa,EAAE,UAAU,EAAO,CAAC;AAYvC,eAAO,MAAM,WAAW,EAAE,eAoCzB,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1,15 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Frame } from 'ui-lab-components';
|
|
3
|
-
import Example1, { metadata as metadata1 } from './examples/01-default-frame.js';
|
|
4
|
-
import Example2, { metadata as metadata2 } from './examples/02-tooltip-example.js';
|
|
5
|
-
import Example3, { metadata as metadata3 } from './examples/03-sidebar-tab.js';
|
|
6
|
-
import examplesJson from './examples.json' with { type: 'json' };
|
|
7
|
-
import { loadComponentExamples } from '../../utils/load-component-examples.js';
|
|
8
|
-
const examplesData = [
|
|
9
|
-
{ id: '01-default-frame', Component: Example1, metadata: metadata1 },
|
|
10
|
-
{ id: '02-tooltip-example', Component: Example2, metadata: metadata2 },
|
|
11
|
-
{ id: '03-sidebar-tab', Component: Example3, metadata: metadata3 },
|
|
12
|
-
];
|
|
13
3
|
const frameControls = [];
|
|
14
4
|
const frameBasicCode = `import { Frame } from "ui-lab-components";
|
|
15
5
|
|
|
@@ -34,10 +24,8 @@ export const frameDetail = {
|
|
|
34
24
|
preview: (_jsx(Frame, { children: _jsx("p", { className: "text-sm text-foreground-300", children: "Framed content" }) })),
|
|
35
25
|
controls: frameControls,
|
|
36
26
|
renderPreview: () => (_jsx(Frame, { children: _jsx("p", { className: "text-sm text-foreground-300", children: "Framed content" }) })),
|
|
37
|
-
}
|
|
38
|
-
...loadComponentExamples(examplesData, examplesJson),
|
|
27
|
+
}
|
|
39
28
|
],
|
|
40
29
|
};
|
|
41
30
|
export { frameControls };
|
|
42
|
-
export * from './examples/index.js';
|
|
43
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Frame/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Frame/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAI1C,MAAM,aAAa,GAAiB,EAAE,CAAC;AAEvC,MAAM,cAAc,GAAG;;;;;;;;EAQrB,CAAC;AAEH,MAAM,CAAC,MAAM,WAAW,GAAoB;IAC1C,EAAE,EAAE,OAAO;IACX,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,uFAAuF;IACpG,QAAQ,EAAE,CACR,eAAK,SAAS,EAAC,+BAA+B,aAC5C,uRAII,EACJ,iOAGI,IACA,CACP;IACD,QAAQ,EAAE;QACR;YACE,EAAE,EAAE,SAAS;YACb,KAAK,EAAE,SAAS;YAChB,WAAW,EAAE,yCAAyC;YACtD,IAAI,EAAE,cAAc;YACpB,OAAO,EAAE,CACP,KAAC,KAAK,cACJ,YAAG,SAAS,EAAC,6BAA6B,+BAAmB,GACvD,CACT;YACD,QAAQ,EAAE,aAAa;YACvB,aAAa,EAAE,GAAG,EAAE,CAAC,CACnB,KAAC,KAAK,cACJ,YAAG,SAAS,EAAC,6BAA6B,+BAAmB,GACvD,CACT;SACF;KACF;CACF,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ControlDef } from '@/types';
|
|
2
|
+
export declare const metadata: {
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const controls: ControlDef[];
|
|
7
|
+
export declare const previewLayout: "start";
|
|
8
|
+
export declare const resizable = true;
|
|
9
|
+
export declare function renderPreview(props: Record<string, unknown>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default function Example(): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=01-grid-composition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"01-grid-composition.d.ts","sourceRoot":"","sources":["../../../../src/components/Gallery/examples/01-grid-composition.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAWzC,eAAO,MAAM,QAAQ;;;CAGpB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,UAAU,EA6BhC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAG,OAAgB,CAAC;AAC9C,eAAO,MAAM,SAAS,OAAO,CAAC;AAuC9B,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,2CAwB3D;AAED,MAAM,CAAC,OAAO,UAAU,OAAO,4CAE9B"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Gallery, Frame } from 'ui-lab-components';
|
|
4
|
+
const FRAME_STYLE = {
|
|
5
|
+
common: { '--frame-fill': 'var(--background-900)', '--frame-stroke-color': 'var(--background-600)' },
|
|
6
|
+
archived: { '--frame-fill': 'var(--background-950)', '--frame-stroke-color': 'var(--background-700)' },
|
|
7
|
+
experimental: { '--frame-fill': 'var(--background-950)', '--frame-stroke-color': 'var(--background-800)' },
|
|
8
|
+
};
|
|
9
|
+
export const metadata = {
|
|
10
|
+
title: 'Grid Composition',
|
|
11
|
+
description: 'Gallery items arranged in a configurable grid with consistent gap and aspect ratio.',
|
|
12
|
+
};
|
|
13
|
+
export const controls = [
|
|
14
|
+
{ name: 'columns', label: 'Columns', type: 'stepper', defaultValue: 3, min: 1, max: 6, step: 1 },
|
|
15
|
+
{
|
|
16
|
+
name: 'gap',
|
|
17
|
+
label: 'Gap Token',
|
|
18
|
+
type: 'select',
|
|
19
|
+
options: [
|
|
20
|
+
{ label: 'Extra Small', value: 'xs' },
|
|
21
|
+
{ label: 'Small', value: 'sm' },
|
|
22
|
+
{ label: 'Medium', value: 'md' },
|
|
23
|
+
{ label: 'Large', value: 'lg' },
|
|
24
|
+
{ label: 'Extra Large', value: 'xl' },
|
|
25
|
+
],
|
|
26
|
+
defaultValue: 'md',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'aspectRatio',
|
|
30
|
+
label: 'Aspect Ratio',
|
|
31
|
+
type: 'select',
|
|
32
|
+
options: [
|
|
33
|
+
{ label: '1:1', value: '1/1' },
|
|
34
|
+
{ label: '4:3', value: '4/3' },
|
|
35
|
+
{ label: '3:4', value: '3/4' },
|
|
36
|
+
{ label: '16:9', value: '16/9' },
|
|
37
|
+
],
|
|
38
|
+
defaultValue: '4/3',
|
|
39
|
+
},
|
|
40
|
+
{ name: 'itemCount', label: 'Items', type: 'stepper', defaultValue: 4, min: 4, max: 12, step: 1 },
|
|
41
|
+
{ name: 'responsive', label: 'Container-Query Responsive', type: 'toggle', defaultValue: false },
|
|
42
|
+
];
|
|
43
|
+
export const previewLayout = 'start';
|
|
44
|
+
export const resizable = true;
|
|
45
|
+
const GRID_ITEMS = [
|
|
46
|
+
{ id: 'g1', title: 'Brand Kit', description: 'Identity · Updated 2d ago', tier: 'common' },
|
|
47
|
+
{ id: 'g2', title: 'Icon Set', description: 'UI Assets · 142 icons', tier: 'common' },
|
|
48
|
+
{ id: 'g3', title: 'Type Scale', description: 'Typography · 8 weights', tier: 'common' },
|
|
49
|
+
{ id: 'g4', title: 'Color Tokens', description: 'Design System · v3.2', tier: 'common' },
|
|
50
|
+
{ id: 'g5', title: 'Grid Spec', description: 'Layout · 12-column', tier: 'common' },
|
|
51
|
+
{ id: 'g6', title: 'Motion Guide', description: 'Animation · 24 presets', tier: 'common' },
|
|
52
|
+
{ id: 'g7', title: 'Legacy Icons', description: 'Archived · v1.4', tier: 'archived' },
|
|
53
|
+
{ id: 'g8', title: 'Old Palette', description: 'Archived · 2021', tier: 'archived' },
|
|
54
|
+
{ id: 'g9', title: 'Beta Components', description: 'Archived · Pre-release', tier: 'archived' },
|
|
55
|
+
{ id: 'g10', title: 'Prototype A', description: 'Experimental · Do not ship', tier: 'experimental' },
|
|
56
|
+
{ id: 'g11', title: 'Prototype B', description: 'Experimental · Internal only', tier: 'experimental' },
|
|
57
|
+
{ id: 'g12', title: 'Prototype C', description: 'Experimental · Unreleased', tier: 'experimental' },
|
|
58
|
+
];
|
|
59
|
+
function getGap(value) {
|
|
60
|
+
if (value === 'xs' || value === 'sm' || value === 'lg' || value === 'xl')
|
|
61
|
+
return value;
|
|
62
|
+
return 'md';
|
|
63
|
+
}
|
|
64
|
+
function getInt(value, min, max, fallback) {
|
|
65
|
+
const n = Number(value);
|
|
66
|
+
if (Number.isNaN(n))
|
|
67
|
+
return fallback;
|
|
68
|
+
return Math.min(max, Math.max(min, Math.round(n)));
|
|
69
|
+
}
|
|
70
|
+
function getAspectRatio(value) {
|
|
71
|
+
if (typeof value === 'string' && value.includes('/'))
|
|
72
|
+
return value;
|
|
73
|
+
return '4/3';
|
|
74
|
+
}
|
|
75
|
+
function itemClassName(tier) {
|
|
76
|
+
if (tier === 'archived')
|
|
77
|
+
return 'opacity-60';
|
|
78
|
+
if (tier === 'experimental')
|
|
79
|
+
return 'opacity-35';
|
|
80
|
+
return undefined;
|
|
81
|
+
}
|
|
82
|
+
export function renderPreview(props) {
|
|
83
|
+
const columns = getInt(props.columns, 1, 6, 3);
|
|
84
|
+
const gap = getGap(props.gap);
|
|
85
|
+
const ratio = getAspectRatio(props.aspectRatio);
|
|
86
|
+
const count = getInt(props.itemCount, 4, 12, 4);
|
|
87
|
+
const responsive = Boolean(props.responsive);
|
|
88
|
+
const items = GRID_ITEMS.slice(0, count);
|
|
89
|
+
const resolvedColumns = responsive ? { sm: 1, md: Math.min(2, columns), lg: columns } : columns;
|
|
90
|
+
return (_jsx(Gallery, { columns: resolvedColumns, gap: gap, responsive: responsive, className: "w-full", children: items.map((item) => (_jsxs(Gallery.Item, { className: itemClassName(item.tier), "aria-disabled": item.tier === 'experimental' ? true : undefined, children: [_jsx(Gallery.View, { aspectRatio: ratio, children: _jsx(Frame, { pathStroke: item.tier === 'experimental' ? 'dotted' : 'dashed', style: FRAME_STYLE[item.tier], className: "w-full h-full" }) }), _jsxs(Gallery.Body, { children: [_jsx("span", { children: item.title }), _jsx("span", { children: item.description })] })] }, item.id))) }));
|
|
91
|
+
}
|
|
92
|
+
export default function Example() {
|
|
93
|
+
return renderPreview({ columns: 3, gap: 'md', aspectRatio: '4/3', itemCount: 4, responsive: false });
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=01-grid-composition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"01-grid-composition.js","sourceRoot":"","sources":["../../../../src/components/Gallery/examples/01-grid-composition.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAOlD,MAAM,WAAW,GAA0C;IACzD,MAAM,EAAE,EAAE,cAAc,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,uBAAuB,EAAyB;IAC3H,QAAQ,EAAE,EAAE,cAAc,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,uBAAuB,EAAyB;IAC7H,YAAY,EAAE,EAAE,cAAc,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,uBAAuB,EAAyB;CAClI,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,KAAK,EAAE,kBAAkB;IACzB,WAAW,EAAE,q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,QAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE,KAAK,EAAE,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,SAAS,EAAC,eAAe,GAAG,GACrH,EACf,MAAC,OAAO,CAAC,IAAI,eACX,yBAAO,IAAI,CAAC,KAAK,GAAQ,EACzB,yBAAO,IAAI,CAAC,WAAW,GAAQ,IAClB,KAPE,IAAI,CAAC,EAAE,CAQX,CAChB,CAAC,GACM,CACX,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,OAAO,UAAU,OAAO;IAC7B,OAAO,aAAa,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,CAAC;AACvG,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ControlDef } from '@/types';
|
|
2
|
+
export declare const metadata: {
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const controls: ControlDef[];
|
|
7
|
+
export declare const previewLayout: "start";
|
|
8
|
+
export declare const resizable = true;
|
|
9
|
+
export declare function renderPreview(props: Record<string, unknown>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default function Example(): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=02-item-orientation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"02-item-orientation.d.ts","sourceRoot":"","sources":["../../../../src/components/Gallery/examples/02-item-orientation.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAWzC,eAAO,MAAM,QAAQ;;;CAGpB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,UAAU,EAqChC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAG,OAAgB,CAAC;AAC9C,eAAO,MAAM,SAAS,OAAO,CAAC;AA2C9B,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,2CAwB3D;AAED,MAAM,CAAC,OAAO,UAAU,OAAO,4CAE9B"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Gallery, Frame } from 'ui-lab-components';
|
|
4
|
+
const FRAME_STYLE = {
|
|
5
|
+
common: { '--frame-fill': 'var(--background-900)', '--frame-stroke-color': 'var(--background-600)' },
|
|
6
|
+
archived: { '--frame-fill': 'var(--background-950)', '--frame-stroke-color': 'var(--background-700)' },
|
|
7
|
+
experimental: { '--frame-fill': 'var(--background-950)', '--frame-stroke-color': 'var(--background-800)' },
|
|
8
|
+
};
|
|
9
|
+
export const metadata = {
|
|
10
|
+
title: 'Item Orientation',
|
|
11
|
+
description: 'Gallery items can be oriented vertically (stacked view + body) or horizontally (side-by-side view + body).',
|
|
12
|
+
};
|
|
13
|
+
export const controls = [
|
|
14
|
+
{
|
|
15
|
+
name: 'orientation',
|
|
16
|
+
label: 'Orientation',
|
|
17
|
+
type: 'select',
|
|
18
|
+
options: [
|
|
19
|
+
{ label: 'Vertical', value: 'vertical' },
|
|
20
|
+
{ label: 'Horizontal', value: 'horizontal' },
|
|
21
|
+
],
|
|
22
|
+
defaultValue: 'vertical',
|
|
23
|
+
},
|
|
24
|
+
{ name: 'columns', label: 'Columns (vertical only)', type: 'stepper', defaultValue: 2, min: 1, max: 4, step: 1 },
|
|
25
|
+
{
|
|
26
|
+
name: 'gap',
|
|
27
|
+
label: 'Gap Token',
|
|
28
|
+
type: 'select',
|
|
29
|
+
options: [
|
|
30
|
+
{ label: 'Extra Small', value: 'xs' },
|
|
31
|
+
{ label: 'Small', value: 'sm' },
|
|
32
|
+
{ label: 'Medium', value: 'md' },
|
|
33
|
+
{ label: 'Large', value: 'lg' },
|
|
34
|
+
],
|
|
35
|
+
defaultValue: 'sm',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: 'aspectRatio',
|
|
39
|
+
label: 'View Aspect Ratio (vertical only)',
|
|
40
|
+
type: 'select',
|
|
41
|
+
options: [
|
|
42
|
+
{ label: '1:1', value: '1/1' },
|
|
43
|
+
{ label: '4:3', value: '4/3' },
|
|
44
|
+
{ label: '3:4', value: '3/4' },
|
|
45
|
+
{ label: '16:9', value: '16/9' },
|
|
46
|
+
],
|
|
47
|
+
defaultValue: '4/3',
|
|
48
|
+
},
|
|
49
|
+
{ name: 'itemCount', label: 'Items', type: 'stepper', defaultValue: 4, min: 4, max: 12, step: 1 },
|
|
50
|
+
];
|
|
51
|
+
export const previewLayout = 'start';
|
|
52
|
+
export const resizable = true;
|
|
53
|
+
const ORIENTATION_ITEMS = [
|
|
54
|
+
{ id: 'o1', title: 'Waveform Study', description: '12:34 · Electronic', tier: 'common' },
|
|
55
|
+
{ id: 'o2', title: 'Threshold', description: '8:02 · Ambient', tier: 'common' },
|
|
56
|
+
{ id: 'o3', title: 'Parallel Lines', description: '5:47 · Minimal', tier: 'common' },
|
|
57
|
+
{ id: 'o4', title: 'Resonance', description: '9:15 · Drone', tier: 'common' },
|
|
58
|
+
{ id: 'o5', title: 'Liminal Space', description: '11:20 · Experimental', tier: 'common' },
|
|
59
|
+
{ id: 'o6', title: 'Undertow', description: '7:45 · Ambient', tier: 'common' },
|
|
60
|
+
{ id: 'o7', title: 'Archive Vol. I', description: 'Archived · 2019 sessions', tier: 'archived' },
|
|
61
|
+
{ id: 'o8', title: 'Archive Vol. II', description: 'Archived · Rough cuts', tier: 'archived' },
|
|
62
|
+
{ id: 'o9', title: 'Archive Vol. III', description: 'Archived · Unmixed', tier: 'archived' },
|
|
63
|
+
{ id: 'o10', title: 'Session X-01', description: 'Experimental · Unreleased draft', tier: 'experimental' },
|
|
64
|
+
{ id: 'o11', title: 'Session X-02', description: 'Experimental · Internal', tier: 'experimental' },
|
|
65
|
+
{ id: 'o12', title: 'Session X-03', description: 'Experimental · Do not distribute', tier: 'experimental' },
|
|
66
|
+
];
|
|
67
|
+
function getGap(value) {
|
|
68
|
+
if (value === 'xs' || value === 'sm' || value === 'lg' || value === 'xl')
|
|
69
|
+
return value;
|
|
70
|
+
return 'md';
|
|
71
|
+
}
|
|
72
|
+
function getInt(value, min, max, fallback) {
|
|
73
|
+
const n = Number(value);
|
|
74
|
+
if (Number.isNaN(n))
|
|
75
|
+
return fallback;
|
|
76
|
+
return Math.min(max, Math.max(min, Math.round(n)));
|
|
77
|
+
}
|
|
78
|
+
function getAspectRatio(value) {
|
|
79
|
+
if (typeof value === 'string' && value.includes('/'))
|
|
80
|
+
return value;
|
|
81
|
+
return '4/3';
|
|
82
|
+
}
|
|
83
|
+
function getOrientation(value) {
|
|
84
|
+
return value === 'horizontal' ? 'horizontal' : 'vertical';
|
|
85
|
+
}
|
|
86
|
+
function itemClassName(tier) {
|
|
87
|
+
if (tier === 'archived')
|
|
88
|
+
return 'opacity-60';
|
|
89
|
+
if (tier === 'experimental')
|
|
90
|
+
return 'opacity-35';
|
|
91
|
+
return undefined;
|
|
92
|
+
}
|
|
93
|
+
export function renderPreview(props) {
|
|
94
|
+
const orientation = getOrientation(props.orientation);
|
|
95
|
+
const columns = getInt(props.columns, 1, 4, 2);
|
|
96
|
+
const gap = getGap(props.gap);
|
|
97
|
+
const ratio = getAspectRatio(props.aspectRatio);
|
|
98
|
+
const count = getInt(props.itemCount, 4, 12, 4);
|
|
99
|
+
const items = ORIENTATION_ITEMS.slice(0, count);
|
|
100
|
+
const resolvedColumns = orientation === 'horizontal' ? 1 : columns;
|
|
101
|
+
return (_jsx(Gallery, { columns: resolvedColumns, gap: gap, className: "w-full", children: items.map((item) => (_jsxs(Gallery.Item, { orientation: orientation, className: itemClassName(item.tier), "aria-disabled": item.tier === 'experimental' ? true : undefined, children: [_jsx(Gallery.View, { aspectRatio: orientation === 'horizontal' ? '1/1' : ratio, children: _jsx(Frame, { pathStroke: item.tier === 'experimental' ? 'dotted' : 'dashed', style: FRAME_STYLE[item.tier], className: "w-full h-full" }) }), _jsxs(Gallery.Body, { children: [_jsx("span", { children: item.title }), _jsx("span", { children: item.description })] })] }, item.id))) }));
|
|
102
|
+
}
|
|
103
|
+
export default function Example() {
|
|
104
|
+
return renderPreview({ orientation: 'vertical', columns: 2, gap: 'sm', aspectRatio: '4/3', itemCount: 4 });
|
|
105
|
+
}
|
|
106
|
+
//# sourceMappingURL=02-item-orientation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"02-item-orientation.js","sourceRoot":"","sources":["../../../../src/components/Gallery/examples/02-item-orientation.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAOlD,MAAM,WAAW,GAA0C;IACzD,MAAM,EAAE,EAAE,cAAc,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,uBAAuB,EAAyB;IAC3H,QAAQ,EAAE,EAAE,cAAc,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,uBAAuB,EAAyB;IAC7H,YAAY,EAAE,EAAE,cAAc,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,uBAAuB,EAAyB;CAClI,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,KAAK,EAAE,kBAAkB;IACzB,WAAW,EAAE,4GAA4G;CAC1H,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAiB;IACpC;QACE,IAAI,EAAE,aAAa;QACnB,KAAK,EAAE,aAAa;QACpB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE;YACP,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;YACxC,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE;SAC7C;QACD,YAAY,EAAE,UAAU;KACzB;IACD,EAAE,IAAI,EAAE,SAAS,EAAE,KA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IAAI,CAAC,KAAK,GAAQ,EACzB,yBAAO,IAAI,CAAC,WAAW,GAAQ,IAClB,KAPE,IAAI,CAAC,EAAE,CAQX,CAChB,CAAC,GACM,CACX,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,OAAO,UAAU,OAAO;IAC7B,OAAO,aAAa,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,CAAC;AAC7G,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ControlDef } from '@/types';
|
|
2
|
+
export declare const metadata: {
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const controls: ControlDef[];
|
|
7
|
+
export declare const previewLayout: "start";
|
|
8
|
+
export declare const resizable = true;
|
|
9
|
+
export declare function renderPreview(props: Record<string, unknown>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default function Example(): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=03-span-layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"03-span-layout.d.ts","sourceRoot":"","sources":["../../../../src/components/Gallery/examples/03-span-layout.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAWzC,eAAO,MAAM,QAAQ;;;CAGpB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,UAAU,EA6BhC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAG,OAAgB,CAAC;AAC9C,eAAO,MAAM,SAAS,OAAO,CAAC;AAuC9B,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,2CAiC3D;AAED,MAAM,CAAC,OAAO,UAAU,OAAO,4CAE9B"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Gallery, Frame } from 'ui-lab-components';
|
|
4
|
+
const FRAME_STYLE = {
|
|
5
|
+
common: { '--frame-fill': 'var(--background-900)', '--frame-stroke-color': 'var(--background-600)' },
|
|
6
|
+
archived: { '--frame-fill': 'var(--background-950)', '--frame-stroke-color': 'var(--background-700)' },
|
|
7
|
+
experimental: { '--frame-fill': 'var(--background-950)', '--frame-stroke-color': 'var(--background-800)' },
|
|
8
|
+
};
|
|
9
|
+
export const metadata = {
|
|
10
|
+
title: 'Span Layout',
|
|
11
|
+
description: 'A featured item spans multiple columns and rows to create an editorial grid layout.',
|
|
12
|
+
};
|
|
13
|
+
export const controls = [
|
|
14
|
+
{ name: 'columns', label: 'Columns', type: 'stepper', defaultValue: 3, min: 2, max: 6, step: 1 },
|
|
15
|
+
{
|
|
16
|
+
name: 'gap',
|
|
17
|
+
label: 'Gap Token',
|
|
18
|
+
type: 'select',
|
|
19
|
+
options: [
|
|
20
|
+
{ label: 'Extra Small', value: 'xs' },
|
|
21
|
+
{ label: 'Small', value: 'sm' },
|
|
22
|
+
{ label: 'Medium', value: 'md' },
|
|
23
|
+
{ label: 'Large', value: 'lg' },
|
|
24
|
+
],
|
|
25
|
+
defaultValue: 'md',
|
|
26
|
+
},
|
|
27
|
+
{ name: 'featuredColumnSpan', label: 'Featured Column Span', type: 'stepper', defaultValue: 2, min: 1, max: 4, step: 1 },
|
|
28
|
+
{ name: 'featuredRowSpan', label: 'Featured Row Span', type: 'stepper', defaultValue: 2, min: 1, max: 3, step: 1 },
|
|
29
|
+
{
|
|
30
|
+
name: 'featuredAspect',
|
|
31
|
+
label: 'Featured Aspect Ratio',
|
|
32
|
+
type: 'select',
|
|
33
|
+
options: [
|
|
34
|
+
{ label: '4:3', value: '4/3' },
|
|
35
|
+
{ label: '16:9', value: '16/9' },
|
|
36
|
+
{ label: '21:9', value: '21/9' },
|
|
37
|
+
{ label: '1:1', value: '1/1' },
|
|
38
|
+
],
|
|
39
|
+
defaultValue: '16/9',
|
|
40
|
+
},
|
|
41
|
+
{ name: 'itemCount', label: 'Items', type: 'stepper', defaultValue: 5, min: 3, max: 12, step: 1 },
|
|
42
|
+
];
|
|
43
|
+
export const previewLayout = 'start';
|
|
44
|
+
export const resizable = true;
|
|
45
|
+
const SPAN_ITEMS = [
|
|
46
|
+
{ id: 's1', title: "Editor's Pick", description: 'Featured collection — Spring 2024', tier: 'common' },
|
|
47
|
+
{ id: 's2', title: 'Series No. 1', description: 'Monochrome', tier: 'common' },
|
|
48
|
+
{ id: 's3', title: 'Series No. 2', description: 'Landscape', tier: 'common' },
|
|
49
|
+
{ id: 's4', title: 'Series No. 3', description: 'Portrait', tier: 'common' },
|
|
50
|
+
{ id: 's5', title: 'Series No. 4', description: 'Abstract', tier: 'common' },
|
|
51
|
+
{ id: 's6', title: 'Series No. 5', description: 'Documentary', tier: 'common' },
|
|
52
|
+
{ id: 's7', title: 'Hidden Vol. I', description: 'Archived · Unlisted', tier: 'archived' },
|
|
53
|
+
{ id: 's8', title: 'Hidden Vol. II', description: 'Archived · Private', tier: 'archived' },
|
|
54
|
+
{ id: 's9', title: 'Hidden Vol. III', description: 'Archived · Limited print', tier: 'archived' },
|
|
55
|
+
{ id: 's10', title: 'Vault A', description: 'Experimental · Access restricted', tier: 'experimental' },
|
|
56
|
+
{ id: 's11', title: 'Vault B', description: 'Experimental · Internal preview', tier: 'experimental' },
|
|
57
|
+
{ id: 's12', title: 'Vault C', description: 'Experimental · Embargoed', tier: 'experimental' },
|
|
58
|
+
];
|
|
59
|
+
function getGap(value) {
|
|
60
|
+
if (value === 'xs' || value === 'sm' || value === 'lg' || value === 'xl')
|
|
61
|
+
return value;
|
|
62
|
+
return 'md';
|
|
63
|
+
}
|
|
64
|
+
function getInt(value, min, max, fallback) {
|
|
65
|
+
const n = Number(value);
|
|
66
|
+
if (Number.isNaN(n))
|
|
67
|
+
return fallback;
|
|
68
|
+
return Math.min(max, Math.max(min, Math.round(n)));
|
|
69
|
+
}
|
|
70
|
+
function getAspectRatio(value) {
|
|
71
|
+
if (typeof value === 'string' && value.includes('/'))
|
|
72
|
+
return value;
|
|
73
|
+
return '4/3';
|
|
74
|
+
}
|
|
75
|
+
function itemClassName(tier) {
|
|
76
|
+
if (tier === 'archived')
|
|
77
|
+
return 'opacity-60';
|
|
78
|
+
if (tier === 'experimental')
|
|
79
|
+
return 'opacity-35';
|
|
80
|
+
return undefined;
|
|
81
|
+
}
|
|
82
|
+
export function renderPreview(props) {
|
|
83
|
+
const columns = getInt(props.columns, 2, 6, 3);
|
|
84
|
+
const gap = getGap(props.gap);
|
|
85
|
+
const colSpan = Math.min(getInt(props.featuredColumnSpan, 1, 4, 2), columns);
|
|
86
|
+
const rowSpan = getInt(props.featuredRowSpan, 1, 3, 2);
|
|
87
|
+
const featuredRatio = getAspectRatio(props.featuredAspect);
|
|
88
|
+
const count = getInt(props.itemCount, 3, 12, 5);
|
|
89
|
+
const [featured, ...rest] = SPAN_ITEMS.slice(0, count);
|
|
90
|
+
return (_jsxs(Gallery, { columns: columns, gap: gap, className: "w-full", children: [_jsxs(Gallery.Item, { columnSpan: colSpan, rowSpan: rowSpan, children: [_jsx(Gallery.View, { aspectRatio: featuredRatio, children: _jsx(Frame, { pathStroke: "dashed", style: FRAME_STYLE.common, className: "w-full h-full" }) }), _jsxs(Gallery.Body, { children: [_jsx("span", { children: featured.title }), _jsx("span", { children: featured.description })] })] }), rest.map((item) => (_jsxs(Gallery.Item, { className: itemClassName(item.tier), "aria-disabled": item.tier === 'experimental' ? true : undefined, children: [_jsx(Gallery.View, { aspectRatio: "4/3", children: _jsx(Frame, { pathStroke: item.tier === 'experimental' ? 'dotted' : 'dashed', style: FRAME_STYLE[item.tier], className: "w-full h-full" }) }), _jsxs(Gallery.Body, { children: [_jsx("span", { children: item.title }), _jsx("span", { children: item.description })] })] }, item.id)))] }));
|
|
91
|
+
}
|
|
92
|
+
export default function Example() {
|
|
93
|
+
return renderPreview({ columns: 3, gap: 'md', featuredColumnSpan: 2, featuredRowSpan: 2, featuredAspect: '16/9', itemCount: 5 });
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=03-span-layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"03-span-layout.js","sourceRoot":"","sources":["../../../../src/components/Gallery/examples/03-span-layout.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAOlD,MAAM,WAAW,GAA0C;IACzD,MAAM,EAAE,EAAE,cAAc,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,uBAAuB,EAAyB;IAC3H,QAAQ,EAAE,EAAE,cAAc,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,uBAAuB,EAAyB;IAC7H,YAAY,EAAE,EAAE,cAAc,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,uBAAuB,EAAyB;CAClI,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,qFAAqF;CACnG,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAiB;IACpC,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE;IAChG;QACE,IAAI,EAAE,KAAK;QACX,KAAK,EAAE,WAAW;QAClB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE;YACP,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,IAAI,EAAE;YACrC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE;YAC/B,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EA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,EAAE,IAAI,CAAC,IAAI,KAAK,cAAc,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE,KAAK,EAAE,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,SAAS,EAAC,eAAe,GAAG,GACrH,EACf,MAAC,OAAO,CAAC,IAAI,eACX,yBAAO,IAAI,CAAC,KAAK,GAAQ,EACzB,yBAAO,IAAI,CAAC,WAAW,GAAQ,IAClB,KAPE,IAAI,CAAC,EAAE,CAQX,CAChB,CAAC,IACM,CACX,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,OAAO,UAAU,OAAO;IAC7B,OAAO,aAAa,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,EAAE,eAAe,EAAE,CAAC,EAAE,cAAc,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,CAAC;AACnI,CAAC"}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
export { default as Example1 } from './01-
|
|
2
|
-
export { metadata as metadata1 } from './01-
|
|
1
|
+
export { default as Example1 } from './01-grid-composition.js';
|
|
2
|
+
export { metadata as metadata1 } from './01-grid-composition.js';
|
|
3
|
+
export { default as Example2 } from './02-item-orientation.js';
|
|
4
|
+
export { metadata as metadata2 } from './02-item-orientation.js';
|
|
5
|
+
export { default as Example3 } from './03-span-layout.js';
|
|
6
|
+
export { metadata as metadata3 } from './03-span-layout.js';
|
|
3
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Gallery/examples/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Gallery/examples/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAEjE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAEjE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
export { default as Example1 } from './01-
|
|
2
|
-
export { metadata as metadata1 } from './01-
|
|
1
|
+
export { default as Example1 } from './01-grid-composition.js';
|
|
2
|
+
export { metadata as metadata1 } from './01-grid-composition.js';
|
|
3
|
+
export { default as Example2 } from './02-item-orientation.js';
|
|
4
|
+
export { metadata as metadata2 } from './02-item-orientation.js';
|
|
5
|
+
export { default as Example3 } from './03-span-layout.js';
|
|
6
|
+
export { metadata as metadata3 } from './03-span-layout.js';
|
|
3
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Gallery/examples/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Gallery/examples/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAEjE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAEjE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
{
|
|
2
|
-
"01-
|
|
3
|
-
"title": "
|
|
4
|
-
"description": "
|
|
5
|
-
"code": "
|
|
2
|
+
"01-grid-composition": {
|
|
3
|
+
"title": "Grid Composition",
|
|
4
|
+
"description": "Gallery items arranged in a configurable grid with consistent gap and aspect ratio.",
|
|
5
|
+
"code": "\"use client\";\n\nimport React from 'react'\nimport { Gallery, Frame } from 'ui-lab-components'\nimport type { GalleryProps } from 'ui-lab-components'\nimport type { ControlDef } from '@/types'\n\ntype GalleryGap = NonNullable<GalleryProps['gap']>;\ntype ItemTier = 'common' | 'archived' | 'experimental';\n\nconst FRAME_STYLE: Record<ItemTier, React.CSSProperties> = {\n common: { '--frame-fill': 'var(--background-900)', '--frame-stroke-color': 'var(--background-600)' } as React.CSSProperties,\n archived: { '--frame-fill': 'var(--background-950)', '--frame-stroke-color': 'var(--background-700)' } as React.CSSProperties,\n experimental: { '--frame-fill': 'var(--background-950)', '--frame-stroke-color': 'var(--background-800)' } as React.CSSProperties,\n};\n\nexport const controls: ControlDef[] = [\n { name: 'columns', label: 'Columns', type: 'stepper', defaultValue: 3, min: 1, max: 6, step: 1 },\n {\n name: 'gap',\n label: 'Gap Token',\n type: 'select',\n options: [\n { label: 'Extra Small', value: 'xs' },\n { label: 'Small', value: 'sm' },\n { label: 'Medium', value: 'md' },\n { label: 'Large', value: 'lg' },\n { label: 'Extra Large', value: 'xl' },\n ],\n defaultValue: 'md',\n },\n {\n name: 'aspectRatio',\n label: 'Aspect Ratio',\n type: 'select',\n options: [\n { label: '1:1', value: '1/1' },\n { label: '4:3', value: '4/3' },\n { label: '3:4', value: '3/4' },\n { label: '16:9', value: '16/9' },\n ],\n defaultValue: '4/3',\n },\n { name: 'itemCount', label: 'Items', type: 'stepper', defaultValue: 4, min: 4, max: 12, step: 1 },\n { name: 'responsive', label: 'Container-Query Responsive', type: 'toggle', defaultValue: false },\n];\n\nexport const previewLayout = 'start' as const;\nexport const resizable = true;\n\nconst GRID_ITEMS = [\n { id: 'g1', title: 'Brand Kit', description: 'Identity · Updated 2d ago', tier: 'common' as ItemTier },\n { id: 'g2', title: 'Icon Set', description: 'UI Assets · 142 icons', tier: 'common' as ItemTier },\n { id: 'g3', title: 'Type Scale', description: 'Typography · 8 weights', tier: 'common' as ItemTier },\n { id: 'g4', title: 'Color Tokens', description: 'Design System · v3.2', tier: 'common' as ItemTier },\n { id: 'g5', title: 'Grid Spec', description: 'Layout · 12-column', tier: 'common' as ItemTier },\n { id: 'g6', title: 'Motion Guide', description: 'Animation · 24 presets', tier: 'common' as ItemTier },\n { id: 'g7', title: 'Legacy Icons', description: 'Archived · v1.4', tier: 'archived' as ItemTier },\n { id: 'g8', title: 'Old Palette', description: 'Archived · 2021', tier: 'archived' as ItemTier },\n { id: 'g9', title: 'Beta Components', description: 'Archived · Pre-release', tier: 'archived' as ItemTier },\n { id: 'g10', title: 'Prototype A', description: 'Experimental · Do not ship', tier: 'experimental' as ItemTier },\n { id: 'g11', title: 'Prototype B', description: 'Experimental · Internal only', tier: 'experimental' as ItemTier },\n { id: 'g12', title: 'Prototype C', description: 'Experimental · Unreleased', tier: 'experimental' as ItemTier },\n];\n\nfunction getGap(value: unknown): GalleryGap {\n if (value === 'xs' || value === 'sm' || value === 'lg' || value === 'xl') return value;\n return 'md';\n}\n\nfunction getInt(value: unknown, min: number, max: number, fallback: number) {\n const n = Number(value);\n if (Number.isNaN(n)) return fallback;\n return Math.min(max, Math.max(min, Math.round(n)));\n}\n\nfunction getAspectRatio(value: unknown): string {\n if (typeof value === 'string' && value.includes('/')) return value;\n return '4/3';\n}\n\nfunction itemClassName(tier: ItemTier) {\n if (tier === 'archived') return 'opacity-60';\n if (tier === 'experimental') return 'opacity-35';\n return undefined;\n}\n\nexport function renderPreview(props: Record<string, unknown>) {\n const columns = getInt(props.columns, 1, 6, 3);\n const gap = getGap(props.gap);\n const ratio = getAspectRatio(props.aspectRatio);\n const count = getInt(props.itemCount, 4, 12, 4);\n const responsive = Boolean(props.responsive);\n const items = GRID_ITEMS.slice(0, count);\n const resolvedColumns: GalleryProps['columns'] = responsive ? { sm: 1, md: Math.min(2, columns), lg: columns } : columns;\n\n return (\n <Gallery columns={resolvedColumns} gap={gap} responsive={responsive} className=\"w-full\">\n {items.map((item) => (\n <Gallery.Item key={item.id} className={itemClassName(item.tier)} aria-disabled={item.tier === 'experimental' ? true : undefined}>\n <Gallery.View aspectRatio={ratio}>\n <Frame pathStroke={item.tier === 'experimental' ? 'dotted' : 'dashed'} style={FRAME_STYLE[item.tier]} className=\"w-full h-full\" />\n </Gallery.View>\n <Gallery.Body>\n <span>{item.title}</span>\n <span>{item.description}</span>\n </Gallery.Body>\n </Gallery.Item>\n ))}\n </Gallery>\n );\n}\n\nexport default function Example() {\n return renderPreview({ columns: 3, gap: 'md', aspectRatio: '4/3', itemCount: 4, responsive: false });\n}"
|
|
6
|
+
},
|
|
7
|
+
"02-item-orientation": {
|
|
8
|
+
"title": "Item Orientation",
|
|
9
|
+
"description": "Gallery items can be oriented vertically (stacked view + body) or horizontally (side-by-side view + body).",
|
|
10
|
+
"code": "\"use client\";\n\nimport React from 'react'\nimport { Gallery, Frame } from 'ui-lab-components'\nimport type { GalleryProps } from 'ui-lab-components'\nimport type { ControlDef } from '@/types'\n\ntype GalleryGap = NonNullable<GalleryProps['gap']>;\ntype ItemTier = 'common' | 'archived' | 'experimental';\n\nconst FRAME_STYLE: Record<ItemTier, React.CSSProperties> = {\n common: { '--frame-fill': 'var(--background-900)', '--frame-stroke-color': 'var(--background-600)' } as React.CSSProperties,\n archived: { '--frame-fill': 'var(--background-950)', '--frame-stroke-color': 'var(--background-700)' } as React.CSSProperties,\n experimental: { '--frame-fill': 'var(--background-950)', '--frame-stroke-color': 'var(--background-800)' } as React.CSSProperties,\n};\n\nexport const controls: ControlDef[] = [\n {\n name: 'orientation',\n label: 'Orientation',\n type: 'select',\n options: [\n { label: 'Vertical', value: 'vertical' },\n { label: 'Horizontal', value: 'horizontal' },\n ],\n defaultValue: 'vertical',\n },\n { name: 'columns', label: 'Columns (vertical only)', type: 'stepper', defaultValue: 2, min: 1, max: 4, step: 1 },\n {\n name: 'gap',\n label: 'Gap Token',\n type: 'select',\n options: [\n { label: 'Extra Small', value: 'xs' },\n { label: 'Small', value: 'sm' },\n { label: 'Medium', value: 'md' },\n { label: 'Large', value: 'lg' },\n ],\n defaultValue: 'sm',\n },\n {\n name: 'aspectRatio',\n label: 'View Aspect Ratio (vertical only)',\n type: 'select',\n options: [\n { label: '1:1', value: '1/1' },\n { label: '4:3', value: '4/3' },\n { label: '3:4', value: '3/4' },\n { label: '16:9', value: '16/9' },\n ],\n defaultValue: '4/3',\n },\n { name: 'itemCount', label: 'Items', type: 'stepper', defaultValue: 4, min: 4, max: 12, step: 1 },\n];\n\nexport const previewLayout = 'start' as const;\nexport const resizable = true;\n\nconst ORIENTATION_ITEMS = [\n { id: 'o1', title: 'Waveform Study', description: '12:34 · Electronic', tier: 'common' as ItemTier },\n { id: 'o2', title: 'Threshold', description: '8:02 · Ambient', tier: 'common' as ItemTier },\n { id: 'o3', title: 'Parallel Lines', description: '5:47 · Minimal', tier: 'common' as ItemTier },\n { id: 'o4', title: 'Resonance', description: '9:15 · Drone', tier: 'common' as ItemTier },\n { id: 'o5', title: 'Liminal Space', description: '11:20 · Experimental', tier: 'common' as ItemTier },\n { id: 'o6', title: 'Undertow', description: '7:45 · Ambient', tier: 'common' as ItemTier },\n { id: 'o7', title: 'Archive Vol. I', description: 'Archived · 2019 sessions', tier: 'archived' as ItemTier },\n { id: 'o8', title: 'Archive Vol. II', description: 'Archived · Rough cuts', tier: 'archived' as ItemTier },\n { id: 'o9', title: 'Archive Vol. III', description: 'Archived · Unmixed', tier: 'archived' as ItemTier },\n { id: 'o10', title: 'Session X-01', description: 'Experimental · Unreleased draft', tier: 'experimental' as ItemTier },\n { id: 'o11', title: 'Session X-02', description: 'Experimental · Internal', tier: 'experimental' as ItemTier },\n { id: 'o12', title: 'Session X-03', description: 'Experimental · Do not distribute', tier: 'experimental' as ItemTier },\n];\n\nfunction getGap(value: unknown): GalleryGap {\n if (value === 'xs' || value === 'sm' || value === 'lg' || value === 'xl') return value;\n return 'md';\n}\n\nfunction getInt(value: unknown, min: number, max: number, fallback: number) {\n const n = Number(value);\n if (Number.isNaN(n)) return fallback;\n return Math.min(max, Math.max(min, Math.round(n)));\n}\n\nfunction getAspectRatio(value: unknown): string {\n if (typeof value === 'string' && value.includes('/')) return value;\n return '4/3';\n}\n\nfunction getOrientation(value: unknown): 'vertical' | 'horizontal' {\n return value === 'horizontal' ? 'horizontal' : 'vertical';\n}\n\nfunction itemClassName(tier: ItemTier) {\n if (tier === 'archived') return 'opacity-60';\n if (tier === 'experimental') return 'opacity-35';\n return undefined;\n}\n\nexport function renderPreview(props: Record<string, unknown>) {\n const orientation = getOrientation(props.orientation);\n const columns = getInt(props.columns, 1, 4, 2);\n const gap = getGap(props.gap);\n const ratio = getAspectRatio(props.aspectRatio);\n const count = getInt(props.itemCount, 4, 12, 4);\n const items = ORIENTATION_ITEMS.slice(0, count);\n const resolvedColumns: GalleryProps['columns'] = orientation === 'horizontal' ? 1 : columns;\n\n return (\n <Gallery columns={resolvedColumns} gap={gap} className=\"w-full\">\n {items.map((item) => (\n <Gallery.Item key={item.id} orientation={orientation} className={itemClassName(item.tier)} aria-disabled={item.tier === 'experimental' ? true : undefined}>\n <Gallery.View aspectRatio={orientation === 'horizontal' ? '1/1' : ratio}>\n <Frame pathStroke={item.tier === 'experimental' ? 'dotted' : 'dashed'} style={FRAME_STYLE[item.tier]} className=\"w-full h-full\" />\n </Gallery.View>\n <Gallery.Body>\n <span>{item.title}</span>\n <span>{item.description}</span>\n </Gallery.Body>\n </Gallery.Item>\n ))}\n </Gallery>\n );\n}\n\nexport default function Example() {\n return renderPreview({ orientation: 'vertical', columns: 2, gap: 'sm', aspectRatio: '4/3', itemCount: 4 });\n}"
|
|
11
|
+
},
|
|
12
|
+
"03-span-layout": {
|
|
13
|
+
"title": "Span Layout",
|
|
14
|
+
"description": "A featured item spans multiple columns and rows to create an editorial grid layout.",
|
|
15
|
+
"code": "\"use client\";\n\nimport React from 'react'\nimport { Gallery, Frame } from 'ui-lab-components'\nimport type { GalleryProps } from 'ui-lab-components'\nimport type { ControlDef } from '@/types'\n\ntype GalleryGap = NonNullable<GalleryProps['gap']>;\ntype ItemTier = 'common' | 'archived' | 'experimental';\n\nconst FRAME_STYLE: Record<ItemTier, React.CSSProperties> = {\n common: { '--frame-fill': 'var(--background-900)', '--frame-stroke-color': 'var(--background-600)' } as React.CSSProperties,\n archived: { '--frame-fill': 'var(--background-950)', '--frame-stroke-color': 'var(--background-700)' } as React.CSSProperties,\n experimental: { '--frame-fill': 'var(--background-950)', '--frame-stroke-color': 'var(--background-800)' } as React.CSSProperties,\n};\n\nexport const controls: ControlDef[] = [\n { name: 'columns', label: 'Columns', type: 'stepper', defaultValue: 3, min: 2, max: 6, step: 1 },\n {\n name: 'gap',\n label: 'Gap Token',\n type: 'select',\n options: [\n { label: 'Extra Small', value: 'xs' },\n { label: 'Small', value: 'sm' },\n { label: 'Medium', value: 'md' },\n { label: 'Large', value: 'lg' },\n ],\n defaultValue: 'md',\n },\n { name: 'featuredColumnSpan', label: 'Featured Column Span', type: 'stepper', defaultValue: 2, min: 1, max: 4, step: 1 },\n { name: 'featuredRowSpan', label: 'Featured Row Span', type: 'stepper', defaultValue: 2, min: 1, max: 3, step: 1 },\n {\n name: 'featuredAspect',\n label: 'Featured Aspect Ratio',\n type: 'select',\n options: [\n { label: '4:3', value: '4/3' },\n { label: '16:9', value: '16/9' },\n { label: '21:9', value: '21/9' },\n { label: '1:1', value: '1/1' },\n ],\n defaultValue: '16/9',\n },\n { name: 'itemCount', label: 'Items', type: 'stepper', defaultValue: 5, min: 3, max: 12, step: 1 },\n];\n\nexport const previewLayout = 'start' as const;\nexport const resizable = true;\n\nconst SPAN_ITEMS = [\n { id: 's1', title: \"Editor's Pick\", description: 'Featured collection — Spring 2024', tier: 'common' as ItemTier },\n { id: 's2', title: 'Series No. 1', description: 'Monochrome', tier: 'common' as ItemTier },\n { id: 's3', title: 'Series No. 2', description: 'Landscape', tier: 'common' as ItemTier },\n { id: 's4', title: 'Series No. 3', description: 'Portrait', tier: 'common' as ItemTier },\n { id: 's5', title: 'Series No. 4', description: 'Abstract', tier: 'common' as ItemTier },\n { id: 's6', title: 'Series No. 5', description: 'Documentary', tier: 'common' as ItemTier },\n { id: 's7', title: 'Hidden Vol. I', description: 'Archived · Unlisted', tier: 'archived' as ItemTier },\n { id: 's8', title: 'Hidden Vol. II', description: 'Archived · Private', tier: 'archived' as ItemTier },\n { id: 's9', title: 'Hidden Vol. III', description: 'Archived · Limited print', tier: 'archived' as ItemTier },\n { id: 's10', title: 'Vault A', description: 'Experimental · Access restricted', tier: 'experimental' as ItemTier },\n { id: 's11', title: 'Vault B', description: 'Experimental · Internal preview', tier: 'experimental' as ItemTier },\n { id: 's12', title: 'Vault C', description: 'Experimental · Embargoed', tier: 'experimental' as ItemTier },\n];\n\nfunction getGap(value: unknown): GalleryGap {\n if (value === 'xs' || value === 'sm' || value === 'lg' || value === 'xl') return value;\n return 'md';\n}\n\nfunction getInt(value: unknown, min: number, max: number, fallback: number) {\n const n = Number(value);\n if (Number.isNaN(n)) return fallback;\n return Math.min(max, Math.max(min, Math.round(n)));\n}\n\nfunction getAspectRatio(value: unknown): string {\n if (typeof value === 'string' && value.includes('/')) return value;\n return '4/3';\n}\n\nfunction itemClassName(tier: ItemTier) {\n if (tier === 'archived') return 'opacity-60';\n if (tier === 'experimental') return 'opacity-35';\n return undefined;\n}\n\nexport function renderPreview(props: Record<string, unknown>) {\n const columns = getInt(props.columns, 2, 6, 3);\n const gap = getGap(props.gap);\n const colSpan = Math.min(getInt(props.featuredColumnSpan, 1, 4, 2), columns);\n const rowSpan = getInt(props.featuredRowSpan, 1, 3, 2);\n const featuredRatio = getAspectRatio(props.featuredAspect);\n const count = getInt(props.itemCount, 3, 12, 5);\n const [featured, ...rest] = SPAN_ITEMS.slice(0, count);\n\n return (\n <Gallery columns={columns} gap={gap} className=\"w-full\">\n <Gallery.Item columnSpan={colSpan} rowSpan={rowSpan}>\n <Gallery.View aspectRatio={featuredRatio}>\n <Frame pathStroke=\"dashed\" style={FRAME_STYLE.common} className=\"w-full h-full\" />\n </Gallery.View>\n <Gallery.Body>\n <span>{featured.title}</span>\n <span>{featured.description}</span>\n </Gallery.Body>\n </Gallery.Item>\n {rest.map((item) => (\n <Gallery.Item key={item.id} className={itemClassName(item.tier)} aria-disabled={item.tier === 'experimental' ? true : undefined}>\n <Gallery.View aspectRatio=\"4/3\">\n <Frame pathStroke={item.tier === 'experimental' ? 'dotted' : 'dashed'} style={FRAME_STYLE[item.tier]} className=\"w-full h-full\" />\n </Gallery.View>\n <Gallery.Body>\n <span>{item.title}</span>\n <span>{item.description}</span>\n </Gallery.Body>\n </Gallery.Item>\n ))}\n </Gallery>\n );\n}\n\nexport default function Example() {\n return renderPreview({ columns: 3, gap: 'md', featuredColumnSpan: 2, featuredRowSpan: 2, featuredAspect: '16/9', itemCount: 5 });\n}"
|
|
6
16
|
}
|
|
7
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Gallery/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Gallery/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AActD,QAAA,MAAM,eAAe,EAAE,UAAU,EAyBhC,CAAC;AAiCF,eAAO,MAAM,aAAa,EAAE,eA0E3B,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC;AAC3B,cAAc,qBAAqB,CAAC"}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Gallery } from 'ui-lab-components';
|
|
3
|
-
import Example1, { metadata as metadata1 } from './examples/01-
|
|
3
|
+
import Example1, { metadata as metadata1, controls as controls1, renderPreview as renderPreview1, previewLayout as previewLayout1, resizable as resizable1 } from './examples/01-grid-composition.js';
|
|
4
|
+
import Example2, { metadata as metadata2, controls as controls2, renderPreview as renderPreview2, previewLayout as previewLayout2, resizable as resizable2 } from './examples/02-item-orientation.js';
|
|
5
|
+
import Example3, { metadata as metadata3, controls as controls3, renderPreview as renderPreview3, previewLayout as previewLayout3, resizable as resizable3 } from './examples/03-span-layout.js';
|
|
4
6
|
import examplesJson from './examples.json' with { type: 'json' };
|
|
5
7
|
import { loadComponentExamples } from '../../utils/load-component-examples.js';
|
|
6
8
|
const examplesData = [
|
|
7
|
-
{ id: '01-
|
|
9
|
+
{ id: '01-grid-composition', Component: Example1, metadata: metadata1, controls: controls1, renderPreview: renderPreview1, previewLayout: previewLayout1, resizable: resizable1 },
|
|
10
|
+
{ id: '02-item-orientation', Component: Example2, metadata: metadata2, controls: controls2, renderPreview: renderPreview2, previewLayout: previewLayout2, resizable: resizable2 },
|
|
11
|
+
{ id: '03-span-layout', Component: Example3, metadata: metadata3, controls: controls3, renderPreview: renderPreview3, previewLayout: previewLayout3, resizable: resizable3 },
|
|
8
12
|
];
|
|
9
13
|
const galleryControls = [
|
|
10
14
|
{
|