@techsio/ui-kit 0.3.2 → 0.4.1
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/README.md +59 -6
- package/dist/.storybook/decorator.d.ts +12 -0
- package/dist/.storybook/decorator.d.ts.map +1 -0
- package/dist/.storybook/main.d.ts +4 -0
- package/dist/.storybook/main.d.ts.map +1 -0
- package/dist/.storybook/preview.d.ts +5 -0
- package/dist/.storybook/preview.d.ts.map +1 -0
- package/dist/.storybook/test-runner.d.ts +12 -0
- package/dist/.storybook/test-runner.d.ts.map +1 -0
- package/dist/atoms/badge.js +37 -19
- package/dist/atoms/button.js +167 -154
- package/dist/atoms/checkbox.js +52 -0
- package/dist/atoms/figma/badge.figma.js +33 -0
- package/dist/atoms/figma/button.figma.js +76 -0
- package/dist/atoms/figma/checkbox.figma.js +35 -0
- package/dist/atoms/figma/icon.figma.js +33 -0
- package/dist/atoms/figma/image.figma.js +21 -0
- package/dist/atoms/figma/input.figma.js +34 -0
- package/dist/atoms/figma/label.figma.js +25 -0
- package/dist/atoms/figma/link-button.figma.js +42 -0
- package/dist/atoms/figma/link.figma.js +15 -0
- package/dist/atoms/figma/numeric-input.figma.js +52 -0
- package/dist/atoms/figma/rating.figma.js +38 -0
- package/dist/atoms/figma/skeleton.figma.js +119 -0
- package/dist/atoms/figma/status-text.figma.js +27 -0
- package/dist/atoms/figma/textarea.figma.js +38 -0
- package/dist/atoms/figma/tooltip.figma.js +47 -0
- package/dist/atoms/icon.js +17 -17
- package/dist/atoms/image.js +22 -4
- package/dist/atoms/input.js +40 -34
- package/dist/atoms/label.js +10 -10
- package/dist/atoms/link-button.js +19 -18
- package/dist/atoms/link.js +6 -4
- package/dist/atoms/numeric-input.js +98 -70
- package/dist/atoms/rating.js +30 -30
- package/dist/atoms/skeleton.js +47 -47
- package/dist/atoms/status-text.js +75 -0
- package/dist/atoms/textarea.js +48 -42
- package/dist/atoms/tooltip.js +17 -17
- package/dist/molecules/accordion.js +58 -60
- package/dist/molecules/breadcrumb.js +206 -124
- package/dist/molecules/carousel.js +139 -87
- package/dist/molecules/color-select.js +56 -56
- package/dist/molecules/combobox.js +131 -104
- package/dist/molecules/dialog.js +97 -97
- package/dist/molecules/figma/accordion.figma.js +41 -0
- package/dist/molecules/figma/breadcrumb.figma.js +31 -0
- package/dist/molecules/figma/carousel.figma.js +34 -0
- package/dist/molecules/figma/combobox.figma.js +38 -0
- package/dist/molecules/figma/dialog.figma.js +24 -0
- package/dist/molecules/figma/form-checkbox.figma.js +41 -0
- package/dist/molecules/figma/form-input.figma.js +38 -0
- package/dist/molecules/figma/form-numeric-input.figma.js +67 -0
- package/dist/molecules/figma/form-textarea.figma.js +38 -0
- package/dist/molecules/figma/menu.figma.js +26 -0
- package/dist/molecules/figma/pagination.figma.js +22 -0
- package/dist/molecules/figma/popover.figma.js +38 -0
- package/dist/molecules/figma/product-card.figma.js +34 -0
- package/dist/molecules/figma/radio-card.figma.js +35 -0
- package/dist/molecules/figma/radio-group.figma.js +45 -0
- package/dist/molecules/figma/search-form.figma.js +24 -0
- package/dist/molecules/figma/select.figma.js +46 -0
- package/dist/molecules/figma/slider.figma.js +30 -0
- package/dist/molecules/figma/steps.figma.js +33 -0
- package/dist/molecules/figma/switch.figma.js +33 -0
- package/dist/molecules/figma/tabs.figma.js +46 -0
- package/dist/molecules/figma/toast.figma.js +34 -0
- package/dist/molecules/figma/tree-view.figma.js +30 -0
- package/dist/molecules/form-checkbox.js +121 -48
- package/dist/molecules/form-input.js +15 -27
- package/dist/molecules/form-numeric-input.js +11 -24
- package/dist/molecules/form-textarea.js +15 -27
- package/dist/molecules/menu.js +69 -67
- package/dist/molecules/pagination.js +112 -76
- package/dist/molecules/phone-input.js +654 -0
- package/dist/molecules/popover.js +221 -96
- package/dist/molecules/product-card.js +38 -37
- package/dist/molecules/radio-card.js +517 -0
- package/dist/molecules/radio-group.js +341 -0
- package/dist/molecules/search-form.js +170 -91
- package/dist/molecules/select.js +369 -141
- package/dist/molecules/slider.js +72 -85
- package/dist/molecules/steps.js +517 -152
- package/dist/molecules/switch.js +37 -43
- package/dist/molecules/tabs.js +63 -61
- package/dist/molecules/toast.js +32 -32
- package/dist/molecules/tree-view.js +89 -83
- package/dist/organisms/footer.js +50 -52
- package/dist/organisms/gallery.js +244 -0
- package/dist/organisms/header.js +60 -58
- package/dist/organisms/table.js +52 -52
- package/dist/src/atoms/badge.d.ts +27 -7
- package/dist/src/atoms/badge.d.ts.map +1 -1
- package/dist/src/atoms/button.d.ts +7 -6
- package/dist/src/atoms/button.d.ts.map +1 -1
- package/dist/src/atoms/checkbox.d.ts +11 -0
- package/dist/src/atoms/checkbox.d.ts.map +1 -0
- package/dist/src/atoms/figma/badge.figma.d.ts +2 -0
- package/dist/src/atoms/figma/badge.figma.d.ts.map +1 -0
- package/dist/src/atoms/figma/button.figma.d.ts +2 -0
- package/dist/src/atoms/figma/button.figma.d.ts.map +1 -0
- package/dist/src/atoms/figma/checkbox.figma.d.ts +2 -0
- package/dist/src/atoms/figma/checkbox.figma.d.ts.map +1 -0
- package/dist/src/atoms/figma/icon.figma.d.ts +2 -0
- package/dist/src/atoms/figma/icon.figma.d.ts.map +1 -0
- package/dist/src/atoms/figma/image.figma.d.ts +2 -0
- package/dist/src/atoms/figma/image.figma.d.ts.map +1 -0
- package/dist/src/atoms/figma/input.figma.d.ts +2 -0
- package/dist/src/atoms/figma/input.figma.d.ts.map +1 -0
- package/dist/src/atoms/figma/label.figma.d.ts +2 -0
- package/dist/src/atoms/figma/label.figma.d.ts.map +1 -0
- package/dist/src/atoms/figma/link-button.figma.d.ts +2 -0
- package/dist/src/atoms/figma/link-button.figma.d.ts.map +1 -0
- package/dist/src/atoms/figma/link.figma.d.ts +2 -0
- package/dist/src/atoms/figma/link.figma.d.ts.map +1 -0
- package/dist/src/atoms/figma/numeric-input.figma.d.ts +2 -0
- package/dist/src/atoms/figma/numeric-input.figma.d.ts.map +1 -0
- package/dist/src/atoms/figma/rating.figma.d.ts +2 -0
- package/dist/src/atoms/figma/rating.figma.d.ts.map +1 -0
- package/dist/src/atoms/figma/skeleton.figma.d.ts +2 -0
- package/dist/src/atoms/figma/skeleton.figma.d.ts.map +1 -0
- package/dist/src/atoms/figma/status-text.figma.d.ts +2 -0
- package/dist/src/atoms/figma/status-text.figma.d.ts.map +1 -0
- package/dist/src/atoms/figma/textarea.figma.d.ts +2 -0
- package/dist/src/atoms/figma/textarea.figma.d.ts.map +1 -0
- package/dist/src/atoms/figma/tooltip.figma.d.ts +2 -0
- package/dist/src/atoms/figma/tooltip.figma.d.ts.map +1 -0
- package/dist/src/atoms/icon.d.ts +6 -6
- package/dist/src/atoms/image.d.ts +35 -9
- package/dist/src/atoms/image.d.ts.map +1 -1
- package/dist/src/atoms/input.d.ts +3 -3
- package/dist/src/atoms/input.d.ts.map +1 -1
- package/dist/src/atoms/label.d.ts +2 -2
- package/dist/src/atoms/link-button.d.ts +71 -12
- package/dist/src/atoms/link-button.d.ts.map +1 -1
- package/dist/src/atoms/link.d.ts +5 -5
- package/dist/src/atoms/link.d.ts.map +1 -1
- package/dist/src/atoms/numeric-input.d.ts +23 -22
- package/dist/src/atoms/numeric-input.d.ts.map +1 -1
- package/dist/src/atoms/rating.d.ts +6 -5
- package/dist/src/atoms/rating.d.ts.map +1 -1
- package/dist/src/atoms/skeleton.d.ts +15 -15
- package/dist/src/atoms/skeleton.d.ts.map +1 -1
- package/dist/src/atoms/status-text.d.ts +97 -0
- package/dist/src/atoms/status-text.d.ts.map +1 -0
- package/dist/src/atoms/textarea.d.ts +3 -3
- package/dist/src/atoms/textarea.d.ts.map +1 -1
- package/dist/src/atoms/tooltip.d.ts +3 -3
- package/dist/src/atoms/tooltip.d.ts.map +1 -1
- package/dist/src/molecules/accordion.d.ts +14 -13
- package/dist/src/molecules/accordion.d.ts.map +1 -1
- package/dist/src/molecules/breadcrumb.d.ts +132 -35
- package/dist/src/molecules/breadcrumb.d.ts.map +1 -1
- package/dist/src/molecules/carousel.d.ts +67 -16
- package/dist/src/molecules/carousel.d.ts.map +1 -1
- package/dist/src/molecules/color-select.d.ts +4 -4
- package/dist/src/molecules/combobox.d.ts +36 -9
- package/dist/src/molecules/combobox.d.ts.map +1 -1
- package/dist/src/molecules/dialog.d.ts +3 -3
- package/dist/src/molecules/dialog.d.ts.map +1 -1
- package/dist/src/molecules/figma/accordion.figma.d.ts +2 -0
- package/dist/src/molecules/figma/accordion.figma.d.ts.map +1 -0
- package/dist/src/molecules/figma/breadcrumb.figma.d.ts +2 -0
- package/dist/src/molecules/figma/breadcrumb.figma.d.ts.map +1 -0
- package/dist/src/molecules/figma/carousel.figma.d.ts +2 -0
- package/dist/src/molecules/figma/carousel.figma.d.ts.map +1 -0
- package/dist/src/molecules/figma/combobox.figma.d.ts +2 -0
- package/dist/src/molecules/figma/combobox.figma.d.ts.map +1 -0
- package/dist/src/molecules/figma/dialog.figma.d.ts +2 -0
- package/dist/src/molecules/figma/dialog.figma.d.ts.map +1 -0
- package/dist/src/molecules/figma/form-checkbox.figma.d.ts +2 -0
- package/dist/src/molecules/figma/form-checkbox.figma.d.ts.map +1 -0
- package/dist/src/molecules/figma/form-input.figma.d.ts +2 -0
- package/dist/src/molecules/figma/form-input.figma.d.ts.map +1 -0
- package/dist/src/molecules/figma/form-numeric-input.figma.d.ts +2 -0
- package/dist/src/molecules/figma/form-numeric-input.figma.d.ts.map +1 -0
- package/dist/src/molecules/figma/form-textarea.figma.d.ts +2 -0
- package/dist/src/molecules/figma/form-textarea.figma.d.ts.map +1 -0
- package/dist/src/molecules/figma/menu.figma.d.ts +2 -0
- package/dist/src/molecules/figma/menu.figma.d.ts.map +1 -0
- package/dist/src/molecules/figma/pagination.figma.d.ts +2 -0
- package/dist/src/molecules/figma/pagination.figma.d.ts.map +1 -0
- package/dist/src/molecules/figma/popover.figma.d.ts +2 -0
- package/dist/src/molecules/figma/popover.figma.d.ts.map +1 -0
- package/dist/src/molecules/figma/product-card.figma.d.ts +2 -0
- package/dist/src/molecules/figma/product-card.figma.d.ts.map +1 -0
- package/dist/src/molecules/figma/radio-card.figma.d.ts +2 -0
- package/dist/src/molecules/figma/radio-card.figma.d.ts.map +1 -0
- package/dist/src/molecules/figma/radio-group.figma.d.ts +2 -0
- package/dist/src/molecules/figma/radio-group.figma.d.ts.map +1 -0
- package/dist/src/molecules/figma/search-form.figma.d.ts +2 -0
- package/dist/src/molecules/figma/search-form.figma.d.ts.map +1 -0
- package/dist/src/molecules/figma/select.figma.d.ts +2 -0
- package/dist/src/molecules/figma/select.figma.d.ts.map +1 -0
- package/dist/src/molecules/figma/slider.figma.d.ts +2 -0
- package/dist/src/molecules/figma/slider.figma.d.ts.map +1 -0
- package/dist/src/molecules/figma/steps.figma.d.ts +2 -0
- package/dist/src/molecules/figma/steps.figma.d.ts.map +1 -0
- package/dist/src/molecules/figma/switch.figma.d.ts +2 -0
- package/dist/src/molecules/figma/switch.figma.d.ts.map +1 -0
- package/dist/src/molecules/figma/tabs.figma.d.ts +2 -0
- package/dist/src/molecules/figma/tabs.figma.d.ts.map +1 -0
- package/dist/src/molecules/figma/toast.figma.d.ts +2 -0
- package/dist/src/molecules/figma/toast.figma.d.ts.map +1 -0
- package/dist/src/molecules/figma/tree-view.figma.d.ts +2 -0
- package/dist/src/molecules/figma/tree-view.figma.d.ts.map +1 -0
- package/dist/src/molecules/form-checkbox.d.ts +22 -12
- package/dist/src/molecules/form-checkbox.d.ts.map +1 -1
- package/dist/src/molecules/form-input.d.ts +8 -6
- package/dist/src/molecules/form-input.d.ts.map +1 -1
- package/dist/src/molecules/form-numeric-input.d.ts +6 -6
- package/dist/src/molecules/form-numeric-input.d.ts.map +1 -1
- package/dist/src/molecules/form-textarea.d.ts +8 -6
- package/dist/src/molecules/form-textarea.d.ts.map +1 -1
- package/dist/src/molecules/menu.d.ts +11 -11
- package/dist/src/molecules/menu.d.ts.map +1 -1
- package/dist/src/molecules/pagination.d.ts +37 -9
- package/dist/src/molecules/pagination.d.ts.map +1 -1
- package/dist/src/molecules/phone-input.d.ts +246 -0
- package/dist/src/molecules/phone-input.d.ts.map +1 -0
- package/dist/src/molecules/popover.d.ts +76 -24
- package/dist/src/molecules/popover.d.ts.map +1 -1
- package/dist/src/molecules/product-card.d.ts +11 -10
- package/dist/src/molecules/product-card.d.ts.map +1 -1
- package/dist/src/molecules/radio-card.d.ts +429 -0
- package/dist/src/molecules/radio-card.d.ts.map +1 -0
- package/dist/src/molecules/radio-group.d.ts +245 -0
- package/dist/src/molecules/radio-group.d.ts.map +1 -0
- package/dist/src/molecules/search-form.d.ts +94 -27
- package/dist/src/molecules/search-form.d.ts.map +1 -1
- package/dist/src/molecules/select.d.ts +124 -30
- package/dist/src/molecules/select.d.ts.map +1 -1
- package/dist/src/molecules/slider.d.ts +9 -12
- package/dist/src/molecules/slider.d.ts.map +1 -1
- package/dist/src/molecules/steps.d.ts +236 -64
- package/dist/src/molecules/steps.d.ts.map +1 -1
- package/dist/src/molecules/switch.d.ts +25 -25
- package/dist/src/molecules/switch.d.ts.map +1 -1
- package/dist/src/molecules/tabs.d.ts +10 -10
- package/dist/src/molecules/tabs.d.ts.map +1 -1
- package/dist/src/molecules/toast.d.ts +27 -27
- package/dist/src/molecules/tree-view.d.ts +14 -14
- package/dist/src/molecules/tree-view.d.ts.map +1 -1
- package/dist/src/organisms/footer.d.ts +15 -6
- package/dist/src/organisms/footer.d.ts.map +1 -1
- package/dist/src/organisms/gallery.d.ts +147 -0
- package/dist/src/organisms/gallery.d.ts.map +1 -0
- package/dist/src/organisms/header.d.ts +9 -9
- package/dist/src/organisms/header.d.ts.map +1 -1
- package/dist/src/organisms/table.d.ts +10 -10
- package/dist/src/organisms/table.d.ts.map +1 -1
- package/dist/src/templates/accordion.d.ts +3 -3
- package/dist/src/templates/breadcrumb.d.ts +28 -0
- package/dist/src/templates/breadcrumb.d.ts.map +1 -0
- package/dist/src/templates/carousel.d.ts +4 -4
- package/dist/src/templates/carousel.d.ts.map +1 -1
- package/dist/src/templates/gallery.d.ts +43 -0
- package/dist/src/templates/gallery.d.ts.map +1 -0
- package/dist/src/templates/numeric-input.d.ts +5 -5
- package/dist/src/templates/popover.d.ts +19 -0
- package/dist/src/templates/popover.d.ts.map +1 -0
- package/dist/src/templates/product-card.d.ts +4 -4
- package/dist/src/templates/select.d.ts +22 -0
- package/dist/src/templates/select.d.ts.map +1 -0
- package/dist/src/templates/tabs.d.ts +4 -4
- package/dist/src/types/zag.d.ts +19 -18
- package/dist/src/types/zag.d.ts.map +1 -1
- package/dist/src/utils.d.ts +1 -1
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/stories/atoms/badge.stories.d.ts +12 -0
- package/dist/stories/atoms/badge.stories.d.ts.map +1 -0
- package/dist/stories/atoms/button.stories.d.ts +12 -0
- package/dist/stories/atoms/button.stories.d.ts.map +1 -0
- package/dist/stories/atoms/checkbox.stories.d.ts +56 -0
- package/dist/stories/atoms/checkbox.stories.d.ts.map +1 -0
- package/dist/stories/atoms/icon.stories.d.ts +11 -0
- package/dist/stories/atoms/icon.stories.d.ts.map +1 -0
- package/dist/stories/atoms/image.stories.d.ts +8 -0
- package/dist/stories/atoms/image.stories.d.ts.map +1 -0
- package/dist/stories/atoms/input.stories.d.ts +8 -0
- package/dist/stories/atoms/input.stories.d.ts.map +1 -0
- package/dist/stories/atoms/numeric-input.stories.d.ts +23 -0
- package/dist/stories/atoms/numeric-input.stories.d.ts.map +1 -0
- package/dist/stories/atoms/rating.stories.d.ts +10 -0
- package/dist/stories/atoms/rating.stories.d.ts.map +1 -0
- package/dist/stories/atoms/skeleton.stories.d.ts +34 -0
- package/dist/stories/atoms/skeleton.stories.d.ts.map +1 -0
- package/dist/stories/atoms/status-text.stories.d.ts +15 -0
- package/dist/stories/atoms/status-text.stories.d.ts.map +1 -0
- package/dist/stories/atoms/textarea.stories.d.ts +12 -0
- package/dist/stories/atoms/textarea.stories.d.ts.map +1 -0
- package/dist/stories/atoms/tooltip.stories.d.ts +28 -0
- package/dist/stories/atoms/tooltip.stories.d.ts.map +1 -0
- package/dist/stories/helpers/icon-options.d.ts +4 -0
- package/dist/stories/helpers/icon-options.d.ts.map +1 -0
- package/dist/stories/molecules/accordion.stories.d.ts +14 -0
- package/dist/stories/molecules/accordion.stories.d.ts.map +1 -0
- package/dist/stories/molecules/breadcrumb.stories.d.ts +14 -0
- package/dist/stories/molecules/breadcrumb.stories.d.ts.map +1 -0
- package/dist/stories/molecules/carousel.stories.d.ts +19 -0
- package/dist/stories/molecules/carousel.stories.d.ts.map +1 -0
- package/dist/stories/molecules/color-select.stories.d.ts +12 -0
- package/dist/stories/molecules/color-select.stories.d.ts.map +1 -0
- package/dist/stories/molecules/combobox.stories.d.ts +11 -0
- package/dist/stories/molecules/combobox.stories.d.ts.map +1 -0
- package/dist/stories/molecules/dialog.stories.d.ts +19 -0
- package/dist/stories/molecules/dialog.stories.d.ts.map +1 -0
- package/dist/stories/molecules/form-checkbox.stories.d.ts +17 -0
- package/dist/stories/molecules/form-checkbox.stories.d.ts.map +1 -0
- package/dist/stories/molecules/form-input.stories.d.ts +12 -0
- package/dist/stories/molecules/form-input.stories.d.ts.map +1 -0
- package/dist/stories/molecules/form-numeric-input.stories.d.ts +17 -0
- package/dist/stories/molecules/form-numeric-input.stories.d.ts.map +1 -0
- package/dist/stories/molecules/form-textarea.stories.d.ts +12 -0
- package/dist/stories/molecules/form-textarea.stories.d.ts.map +1 -0
- package/dist/stories/molecules/menu.stories.d.ts +22 -0
- package/dist/stories/molecules/menu.stories.d.ts.map +1 -0
- package/dist/stories/molecules/pagination.stories.d.ts +13 -0
- package/dist/stories/molecules/pagination.stories.d.ts.map +1 -0
- package/dist/stories/molecules/phone-input.stories.d.ts +19 -0
- package/dist/stories/molecules/phone-input.stories.d.ts.map +1 -0
- package/dist/stories/molecules/popover.stories.d.ts +140 -0
- package/dist/stories/molecules/popover.stories.d.ts.map +1 -0
- package/dist/stories/molecules/product-card.stories.d.ts +41 -0
- package/dist/stories/molecules/product-card.stories.d.ts.map +1 -0
- package/dist/stories/molecules/radio-card.stories.d.ts +13 -0
- package/dist/stories/molecules/radio-card.stories.d.ts.map +1 -0
- package/dist/stories/molecules/radio-group.stories.d.ts +13 -0
- package/dist/stories/molecules/radio-group.stories.d.ts.map +1 -0
- package/dist/stories/molecules/search-form.stories.d.ts +16 -0
- package/dist/stories/molecules/search-form.stories.d.ts.map +1 -0
- package/dist/stories/molecules/select.stories.d.ts +19 -0
- package/dist/stories/molecules/select.stories.d.ts.map +1 -0
- package/dist/stories/molecules/slider.stories.d.ts +19 -0
- package/dist/stories/molecules/slider.stories.d.ts.map +1 -0
- package/dist/stories/molecules/steps.stories.d.ts +19 -0
- package/dist/stories/molecules/steps.stories.d.ts.map +1 -0
- package/dist/stories/molecules/switch.stories.d.ts +13 -0
- package/dist/stories/molecules/switch.stories.d.ts.map +1 -0
- package/dist/stories/molecules/tabs.stories.d.ts +18 -0
- package/dist/stories/molecules/tabs.stories.d.ts.map +1 -0
- package/dist/stories/molecules/toast.stories.d.ts +11 -0
- package/dist/stories/molecules/toast.stories.d.ts.map +1 -0
- package/dist/stories/molecules/tree-view.stories.d.ts +17 -0
- package/dist/stories/molecules/tree-view.stories.d.ts.map +1 -0
- package/dist/stories/organisms/footer.stories.d.ts +12 -0
- package/dist/stories/organisms/footer.stories.d.ts.map +1 -0
- package/dist/stories/organisms/gallery.stories.d.ts +73 -0
- package/dist/stories/organisms/gallery.stories.d.ts.map +1 -0
- package/dist/stories/organisms/header.stories.d.ts +12 -0
- package/dist/stories/organisms/header.stories.d.ts.map +1 -0
- package/dist/stories/organisms/table.stories.d.ts +56 -0
- package/dist/stories/organisms/table.stories.d.ts.map +1 -0
- package/dist/stories/overview/apca-contrast-test.stories.d.ts +8 -0
- package/dist/stories/overview/apca-contrast-test.stories.d.ts.map +1 -0
- package/dist/stories/overview/color-palette.stories.d.ts +8 -0
- package/dist/stories/overview/color-palette.stories.d.ts.map +1 -0
- package/dist/stories/overview/component-comparison.stories.d.ts +6 -0
- package/dist/stories/overview/component-comparison.stories.d.ts.map +1 -0
- package/dist/stories/templates/accordion.stories.d.ts +8 -0
- package/dist/stories/templates/accordion.stories.d.ts.map +1 -0
- package/dist/stories/templates/breadcrumb.stories.d.ts +12 -0
- package/dist/stories/templates/breadcrumb.stories.d.ts.map +1 -0
- package/dist/stories/templates/carousel.stories.d.ts +8 -0
- package/dist/stories/templates/carousel.stories.d.ts.map +1 -0
- package/dist/stories/templates/comprehensive-form.stories.d.ts +26 -0
- package/dist/stories/templates/comprehensive-form.stories.d.ts.map +1 -0
- package/dist/stories/templates/gallery.stories.d.ts +7 -0
- package/dist/stories/templates/gallery.stories.d.ts.map +1 -0
- package/dist/stories/templates/numeric-input.stories.d.ts +8 -0
- package/dist/stories/templates/numeric-input.stories.d.ts.map +1 -0
- package/dist/stories/templates/popover.stories.d.ts +55 -0
- package/dist/stories/templates/popover.stories.d.ts.map +1 -0
- package/dist/stories/templates/product-card.stories.d.ts +10 -0
- package/dist/stories/templates/product-card.stories.d.ts.map +1 -0
- package/dist/stories/templates/select.stories.d.ts +10 -0
- package/dist/stories/templates/select.stories.d.ts.map +1 -0
- package/dist/stories/templates/tabs.stories.d.ts +8 -0
- package/dist/stories/templates/tabs.stories.d.ts.map +1 -0
- package/dist/templates/accordion.js +9 -9
- package/dist/templates/breadcrumb.js +78 -0
- package/dist/templates/carousel.js +13 -15
- package/dist/templates/gallery.js +89 -0
- package/dist/templates/numeric-input.js +4 -4
- package/dist/templates/popover.js +35 -0
- package/dist/templates/product-card.js +10 -10
- package/dist/templates/select.js +43 -0
- package/dist/templates/tabs.js +8 -8
- package/dist/test/visual.spec.d.ts +2 -0
- package/dist/test/visual.spec.d.ts.map +1 -0
- package/dist/utils.js +1 -1
- package/package.json +52 -32
- package/src/tokens/_base.css +3 -3
- package/src/tokens/_layout.css +4 -0
- package/src/tokens/_semantic.css +49 -10
- package/src/tokens/_tokens-base.css +67 -0
- package/src/tokens/_typography.css +36 -6
- package/src/tokens/components/_form-control.css +67 -0
- package/src/tokens/components/atoms/_badge.css +16 -5
- package/src/tokens/components/atoms/_button.css +16 -10
- package/src/tokens/components/atoms/_checkbox.css +52 -0
- package/src/tokens/components/atoms/_icon.css +90 -2
- package/src/tokens/components/atoms/_image.css +5 -0
- package/src/tokens/components/atoms/_input.css +11 -32
- package/src/tokens/components/atoms/_label.css +11 -0
- package/src/tokens/components/atoms/_numeric-input.css +27 -13
- package/src/tokens/components/atoms/_rating.css +2 -2
- package/src/tokens/components/atoms/_status-text.css +32 -0
- package/src/tokens/components/atoms/_textarea.css +15 -17
- package/src/tokens/components/components.css +10 -1
- package/src/tokens/components/molecules/_accordion.css +1 -8
- package/src/tokens/components/molecules/_breadcrumb.css +42 -20
- package/src/tokens/components/molecules/_carousel.css +10 -2
- package/src/tokens/components/molecules/_color-select.css +3 -3
- package/src/tokens/components/molecules/_combobox.css +15 -21
- package/src/tokens/components/molecules/_dialog.css +0 -1
- package/src/tokens/components/molecules/_menu.css +0 -1
- package/src/tokens/components/molecules/_pagination.css +3 -3
- package/src/tokens/components/molecules/_phone-input.css +63 -0
- package/src/tokens/components/molecules/_popover.css +3 -0
- package/src/tokens/components/molecules/_product-card.css +9 -1
- package/src/tokens/components/molecules/_radio-card.css +197 -0
- package/src/tokens/components/molecules/_radio-group.css +150 -0
- package/src/tokens/components/molecules/_search-form.css +7 -3
- package/src/tokens/components/molecules/_select.css +41 -20
- package/src/tokens/components/molecules/_steps.css +115 -34
- package/src/tokens/components/molecules/_toast.css +5 -5
- package/src/tokens/components/molecules/_tree-view.css +5 -6
- package/src/tokens/components/organisms/_footer.css +1 -6
- package/src/tokens/components/organisms/_gallery.css +35 -0
- package/src/tokens/components/organisms/_header.css +8 -0
- package/src/tokens/figma/dark/variables.css +1406 -0
- package/src/tokens/figma/light/variables.css +1406 -0
- package/src/tokens/index.css +1 -65
- package/src/tokens/theme.css +95 -0
- package/src/tokens/tokens-only.css +1 -64
- package/dist/atoms/error-text.js +0 -38
- package/dist/atoms/extra-text.js +0 -27
- package/dist/molecules/checkbox.js +0 -98
- package/dist/src/atoms/error-text.d.ts +0 -29
- package/dist/src/atoms/error-text.d.ts.map +0 -1
- package/dist/src/atoms/extra-text.d.ts +0 -27
- package/dist/src/atoms/extra-text.d.ts.map +0 -1
- package/dist/src/molecules/checkbox.d.ts +0 -19
- package/dist/src/molecules/checkbox.d.ts.map +0 -1
- package/src/tokens/components/molecules/_checkbox.css +0 -34
- package/src/tokens/components/molecules/index.css +0 -2
|
@@ -6,137 +6,143 @@ import { Icon } from "../atoms/icon.js";
|
|
|
6
6
|
import { tv } from "../utils.js";
|
|
7
7
|
const treeViewVariants = tv({
|
|
8
8
|
slots: {
|
|
9
|
-
root:
|
|
9
|
+
root: "relative rounded-tree bg-tree-root-bg",
|
|
10
10
|
label: [
|
|
11
|
-
|
|
11
|
+
"font-tree-label text-tree-label-fg"
|
|
12
12
|
],
|
|
13
13
|
tree: [
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
"bg-tree-bg",
|
|
15
|
+
"focus-visible:outline-(style:--default-ring-style) focus-visible:outline-(length:--default-ring-width)",
|
|
16
|
+
"focus-visible:outline-tree-ring",
|
|
17
|
+
"focus-visible:outline-offset-(length:--default-ring-offset)"
|
|
17
18
|
],
|
|
18
19
|
branch: [
|
|
19
|
-
|
|
20
|
+
"data-disabled:cursor-not-allowed",
|
|
21
|
+
"data-disabled:text-tree-fg-disabled",
|
|
22
|
+
"data-disabled:*:pointer-events-none"
|
|
20
23
|
],
|
|
21
24
|
branchTrigger: [
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
"group flex items-center justify-between",
|
|
26
|
+
"hover:bg-tree-node-bg-hover",
|
|
27
|
+
"cursor-pointer",
|
|
28
|
+
"has-focus-visible:outline-(style:--default-ring-style) has-focus-visible:outline-(length:--default-ring-width)",
|
|
29
|
+
"has-focus-visible:outline-tree-ring",
|
|
30
|
+
"has-focus-visible:outline-offset-(length:--default-ring-offset)",
|
|
31
|
+
"transition-colors duration-200 motion-reduce:transition-none"
|
|
28
32
|
],
|
|
29
33
|
branchControl: [
|
|
30
|
-
|
|
34
|
+
"flex-1"
|
|
31
35
|
],
|
|
32
36
|
branchText: [
|
|
33
|
-
|
|
37
|
+
"flex-1"
|
|
34
38
|
],
|
|
35
39
|
branchIndicator: [
|
|
36
|
-
|
|
37
|
-
|
|
40
|
+
"group-hover:text-tree-fg-hover",
|
|
41
|
+
"data-[state=open]:token-icon-tree-indicator-open cursor-pointer hover:scale-125",
|
|
42
|
+
"transition-all duration-200 motion-reduce:transition-none"
|
|
38
43
|
],
|
|
39
44
|
branchContent: [
|
|
40
|
-
|
|
41
|
-
|
|
45
|
+
"relative",
|
|
46
|
+
"data-[state=closed]:hidden"
|
|
42
47
|
],
|
|
43
48
|
indentGuide: [
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
49
|
+
"absolute start-1 top-0 bottom-0",
|
|
50
|
+
"w-tree-indent bg-tree-indent-bg",
|
|
51
|
+
"opacity-tree-indent"
|
|
47
52
|
],
|
|
48
53
|
item: [
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
"hover:bg-tree-node-bg-hover hover:text-tree-fg-hover",
|
|
55
|
+
"data-selected:hover:bg-tree-node-bg-hover",
|
|
56
|
+
"data-selected:hover:text-tree-fg-hover",
|
|
57
|
+
"focus-visible:outline-(style:--default-ring-style) focus-visible:outline-(length:--default-ring-width)",
|
|
58
|
+
"focus-visible:outline-tree-ring",
|
|
59
|
+
"focus-visible:outline-offset-(length:--default-ring-offset)",
|
|
60
|
+
"transition-colors duration-200 motion-reduce:transition-none"
|
|
55
61
|
],
|
|
56
62
|
itemText: [
|
|
57
|
-
|
|
63
|
+
"flex-1"
|
|
58
64
|
],
|
|
59
65
|
nodeIcon: [
|
|
60
|
-
|
|
66
|
+
"hover:text-tree-icon-hover",
|
|
67
|
+
"transition-colors duration-200 motion-reduce:transition-none"
|
|
61
68
|
]
|
|
62
69
|
},
|
|
63
70
|
compoundSlots: [
|
|
64
71
|
{
|
|
65
72
|
slots: [
|
|
66
|
-
|
|
67
|
-
|
|
73
|
+
"branch",
|
|
74
|
+
"item"
|
|
68
75
|
],
|
|
69
76
|
class: [
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
77
|
+
"relative",
|
|
78
|
+
"ms-[calc(var(--depth)*var(--tree-indent-per-level))]",
|
|
79
|
+
"data-[depth=1]:ms-0"
|
|
73
80
|
]
|
|
74
81
|
},
|
|
75
82
|
{
|
|
76
83
|
slots: [
|
|
77
|
-
|
|
78
|
-
|
|
84
|
+
"branchControl",
|
|
85
|
+
"item"
|
|
79
86
|
],
|
|
80
87
|
class: [
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
'focus-visible:outline-none'
|
|
88
|
+
"flex items-center gap-tree-icon p-tree-node",
|
|
89
|
+
"cursor-pointer",
|
|
90
|
+
"data-selected:text-tree-fg-selected",
|
|
91
|
+
"group-hover:text-tree-fg-hover",
|
|
92
|
+
"data-selected:group-hover:text-tree-fg-hover"
|
|
87
93
|
]
|
|
88
94
|
}
|
|
89
95
|
],
|
|
90
96
|
variants: {
|
|
91
97
|
size: {
|
|
92
98
|
sm: {
|
|
93
|
-
nodeIcon:
|
|
94
|
-
branchText:
|
|
95
|
-
itemText:
|
|
96
|
-
branchIndicator:
|
|
97
|
-
label:
|
|
99
|
+
nodeIcon: "text-tree-icon-sm",
|
|
100
|
+
branchText: "text-tree-sm",
|
|
101
|
+
itemText: "text-tree-sm",
|
|
102
|
+
branchIndicator: "text-tree-indicator-sm",
|
|
103
|
+
label: "text-tree-sm"
|
|
98
104
|
},
|
|
99
105
|
md: {
|
|
100
|
-
nodeIcon:
|
|
101
|
-
branchText:
|
|
102
|
-
itemText:
|
|
103
|
-
branchIndicator:
|
|
104
|
-
label:
|
|
106
|
+
nodeIcon: "text-tree-icon-md",
|
|
107
|
+
branchText: "text-tree-md",
|
|
108
|
+
itemText: "text-tree-md",
|
|
109
|
+
branchIndicator: "text-tree-indicator-md",
|
|
110
|
+
label: "text-tree-md"
|
|
105
111
|
},
|
|
106
112
|
lg: {
|
|
107
|
-
nodeIcon:
|
|
108
|
-
branchText:
|
|
109
|
-
itemText:
|
|
110
|
-
branchIndicator:
|
|
111
|
-
label:
|
|
113
|
+
nodeIcon: "text-tree-icon-lg",
|
|
114
|
+
branchText: "text-tree-lg",
|
|
115
|
+
itemText: "text-tree-lg",
|
|
116
|
+
branchIndicator: "text-tree-indicator-lg",
|
|
117
|
+
label: "text-tree-lg"
|
|
112
118
|
}
|
|
113
119
|
}
|
|
114
120
|
},
|
|
115
121
|
defaultVariants: {
|
|
116
|
-
size:
|
|
122
|
+
size: "md"
|
|
117
123
|
}
|
|
118
124
|
});
|
|
119
125
|
const TreeViewContext = /*#__PURE__*/ createContext(null);
|
|
120
126
|
function useTreeViewContext() {
|
|
121
127
|
const context = useContext(TreeViewContext);
|
|
122
|
-
if (!context) throw new Error(
|
|
128
|
+
if (!context) throw new Error("TreeView components must be used within TreeView.Root");
|
|
123
129
|
return context;
|
|
124
130
|
}
|
|
125
131
|
const TreeViewNodeContext = /*#__PURE__*/ createContext(null);
|
|
126
132
|
function useTreeViewNodeContext() {
|
|
127
133
|
const context = useContext(TreeViewNodeContext);
|
|
128
|
-
if (!context) throw new Error(
|
|
134
|
+
if (!context) throw new Error("TreeView node components must be used within a node provider");
|
|
129
135
|
return context;
|
|
130
136
|
}
|
|
131
|
-
function TreeView({ id, data, size, selectionBehavior =
|
|
137
|
+
function TreeView({ id, data, size, selectionBehavior = "all", dir = "ltr", selectionMode = "single", expandedValue, selectedValue, focusedValue, defaultExpandedValue, defaultSelectedValue, expandOnClick = true, typeahead = true, onExpandedChange, onSelectionChange, onFocusChange, children, className, ...props }) {
|
|
132
138
|
const generatedId = useId();
|
|
133
139
|
const uniqueId = id || generatedId;
|
|
134
140
|
const collection = tree_view_collection({
|
|
135
141
|
nodeToValue: (node)=>node.id,
|
|
136
142
|
nodeToString: (node)=>node.name,
|
|
137
143
|
rootNode: {
|
|
138
|
-
id:
|
|
139
|
-
name:
|
|
144
|
+
id: "ROOT",
|
|
145
|
+
name: "",
|
|
140
146
|
children: data
|
|
141
147
|
}
|
|
142
148
|
});
|
|
@@ -243,11 +249,11 @@ TreeView.BranchControl = function({ children, className, ...props }) {
|
|
|
243
249
|
const { node, nodeProps, nodeState } = useTreeViewNodeContext();
|
|
244
250
|
const isSelectable = (()=>{
|
|
245
251
|
switch(selectionBehavior){
|
|
246
|
-
case
|
|
252
|
+
case "all":
|
|
247
253
|
return true;
|
|
248
|
-
case
|
|
254
|
+
case "leaf-only":
|
|
249
255
|
return false;
|
|
250
|
-
case
|
|
256
|
+
case "custom":
|
|
251
257
|
return false !== node.selectable;
|
|
252
258
|
default:
|
|
253
259
|
return true;
|
|
@@ -266,8 +272,8 @@ TreeView.BranchControl = function({ children, className, ...props }) {
|
|
|
266
272
|
node.id
|
|
267
273
|
]);
|
|
268
274
|
},
|
|
269
|
-
|
|
270
|
-
|
|
275
|
+
"aria-selected": void 0,
|
|
276
|
+
"data-disabled": !isSelectable || nodeState.disabled || void 0
|
|
271
277
|
};
|
|
272
278
|
return /*#__PURE__*/ jsx("div", {
|
|
273
279
|
className: styles.branchControl({
|
|
@@ -289,7 +295,7 @@ TreeView.BranchText = function({ children, className }) {
|
|
|
289
295
|
children: children || node.name
|
|
290
296
|
});
|
|
291
297
|
};
|
|
292
|
-
TreeView.BranchIndicator = function({ icon =
|
|
298
|
+
TreeView.BranchIndicator = function({ icon = "token-icon-tree-indicator", className }) {
|
|
293
299
|
const { api, styles } = useTreeViewContext();
|
|
294
300
|
const { node, nodeProps, nodeState } = useTreeViewNodeContext();
|
|
295
301
|
const handleToggle = (id)=>{
|
|
@@ -301,10 +307,10 @@ TreeView.BranchIndicator = function({ icon = 'token-icon-tree-indicator', classN
|
|
|
301
307
|
]);
|
|
302
308
|
};
|
|
303
309
|
return /*#__PURE__*/ jsx(Icon, {
|
|
304
|
-
icon: icon,
|
|
305
310
|
className: styles.branchIndicator({
|
|
306
311
|
className
|
|
307
312
|
}),
|
|
313
|
+
icon: icon,
|
|
308
314
|
...api.getBranchIndicatorProps(nodeProps),
|
|
309
315
|
onClick: (e)=>{
|
|
310
316
|
e.preventDefault();
|
|
@@ -340,10 +346,10 @@ TreeView.Item = function({ children, className, ...props }) {
|
|
|
340
346
|
const { node, nodeProps, nodeState } = useTreeViewNodeContext();
|
|
341
347
|
const isSelectable = (()=>{
|
|
342
348
|
switch(selectionBehavior){
|
|
343
|
-
case
|
|
344
|
-
case
|
|
349
|
+
case "all":
|
|
350
|
+
case "leaf-only":
|
|
345
351
|
return true;
|
|
346
|
-
case
|
|
352
|
+
case "custom":
|
|
347
353
|
return false !== node.selectable;
|
|
348
354
|
default:
|
|
349
355
|
return true;
|
|
@@ -356,8 +362,8 @@ TreeView.Item = function({ children, className, ...props }) {
|
|
|
356
362
|
e.preventDefault();
|
|
357
363
|
e.stopPropagation();
|
|
358
364
|
},
|
|
359
|
-
|
|
360
|
-
|
|
365
|
+
"aria-selected": void 0,
|
|
366
|
+
"data-disabled": !isSelectable || nodeState.disabled || void 0
|
|
361
367
|
};
|
|
362
368
|
return /*#__PURE__*/ jsx("div", {
|
|
363
369
|
className: styles.item({
|
|
@@ -383,12 +389,12 @@ TreeView.ItemText = function({ children, className }) {
|
|
|
383
389
|
TreeView.NodeIcon = function({ icon, className, ...props }) {
|
|
384
390
|
const { styles } = useTreeViewContext();
|
|
385
391
|
const { node, nodeState } = useTreeViewNodeContext();
|
|
386
|
-
const iconToShow = icon || (nodeState.isBranch ? node.icons?.branch || (nodeState.expanded ?
|
|
392
|
+
const iconToShow = icon || (nodeState.isBranch ? node.icons?.branch || (nodeState.expanded ? "token-icon-tree-node-open" : "token-icon-tree-node") : node.icons?.leaf || "token-icon-tree-item");
|
|
387
393
|
return /*#__PURE__*/ jsx("span", {
|
|
388
394
|
className: styles.nodeIcon({
|
|
389
395
|
className
|
|
390
396
|
}),
|
|
391
|
-
"data-state": nodeState.expanded ?
|
|
397
|
+
"data-state": nodeState.expanded ? "open" : "closed",
|
|
392
398
|
...props,
|
|
393
399
|
children: /*#__PURE__*/ jsx(Icon, {
|
|
394
400
|
icon: iconToShow
|
|
@@ -403,8 +409,8 @@ TreeView.Node = function({ node, indexPath, showIndentGuides = true, showNodeIco
|
|
|
403
409
|
};
|
|
404
410
|
const nodeState = api.getNodeState(nodeProps);
|
|
405
411
|
return /*#__PURE__*/ jsx(TreeView.NodeProvider, {
|
|
406
|
-
node: node,
|
|
407
412
|
indexPath: indexPath,
|
|
413
|
+
node: node,
|
|
408
414
|
children: nodeState.isBranch ? /*#__PURE__*/ jsxs(TreeView.Branch, {
|
|
409
415
|
children: [
|
|
410
416
|
/*#__PURE__*/ jsxs(TreeView.BranchTrigger, {
|
|
@@ -424,15 +430,15 @@ TreeView.Node = function({ node, indexPath, showIndentGuides = true, showNodeIco
|
|
|
424
430
|
children: [
|
|
425
431
|
showIndentGuides && /*#__PURE__*/ jsx(TreeView.IndentGuide, {}),
|
|
426
432
|
node.children?.map((childNode, index)=>/*#__PURE__*/ jsx(TreeView.Node, {
|
|
427
|
-
node: childNode,
|
|
428
433
|
indexPath: [
|
|
429
434
|
...indexPath,
|
|
430
435
|
index
|
|
431
436
|
],
|
|
432
|
-
|
|
433
|
-
showNodeIcons: showNodeIcons,
|
|
437
|
+
node: childNode,
|
|
434
438
|
onNodeHover: onNodeHover,
|
|
435
|
-
onNodeLeave: onNodeLeave
|
|
439
|
+
onNodeLeave: onNodeLeave,
|
|
440
|
+
showIndentGuides: showIndentGuides,
|
|
441
|
+
showNodeIcons: showNodeIcons
|
|
436
442
|
}, childNode.id))
|
|
437
443
|
]
|
|
438
444
|
})
|
|
@@ -447,5 +453,5 @@ TreeView.Node = function({ node, indexPath, showIndentGuides = true, showNodeIco
|
|
|
447
453
|
})
|
|
448
454
|
});
|
|
449
455
|
};
|
|
450
|
-
TreeView.displayName =
|
|
456
|
+
TreeView.displayName = "TreeView";
|
|
451
457
|
export { TreeView };
|
package/dist/organisms/footer.js
CHANGED
|
@@ -4,82 +4,82 @@ import { Link } from "../atoms/link.js";
|
|
|
4
4
|
import { tv } from "../utils.js";
|
|
5
5
|
const footerVariants = tv({
|
|
6
6
|
slots: {
|
|
7
|
-
root:
|
|
8
|
-
container:
|
|
9
|
-
section:
|
|
10
|
-
list:
|
|
11
|
-
bottom:
|
|
12
|
-
title:
|
|
13
|
-
link:
|
|
14
|
-
text:
|
|
15
|
-
divider:
|
|
7
|
+
root: "flex w-full items-center justify-center rounded-footer bg-footer-bg",
|
|
8
|
+
container: "w-full max-w-footer-max bg-footer-container-bg",
|
|
9
|
+
section: "bg-footer-section-bg",
|
|
10
|
+
list: "flex list-none flex-col gap-footer-list-gap bg-footer-list-bg",
|
|
11
|
+
bottom: "flex w-full items-center justify-between border-t-(--border-width-footer) bg-footer-bottom-bg pt-footer-bottom",
|
|
12
|
+
title: "font-footer-title text-footer-title-fg transition-footer-title hover:text-footer-title-fg-hover",
|
|
13
|
+
link: "font-footer-link text-footer-link-fg transition-footer-link hover:text-footer-link-fg-hover",
|
|
14
|
+
text: "text-footer-text-fg",
|
|
15
|
+
divider: "flex h-footer-divider w-full border-0 bg-footer-divider-bg"
|
|
16
16
|
},
|
|
17
17
|
variants: {
|
|
18
18
|
direction: {
|
|
19
19
|
vertical: {
|
|
20
|
-
root:
|
|
20
|
+
root: "flex-col"
|
|
21
21
|
},
|
|
22
22
|
horizontal: {
|
|
23
|
-
root:
|
|
23
|
+
root: "flex-row"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
layout: {
|
|
27
27
|
col: {
|
|
28
|
-
container:
|
|
28
|
+
container: "grid grid-cols-(--footer-cols)"
|
|
29
29
|
},
|
|
30
30
|
row: {
|
|
31
|
-
container:
|
|
31
|
+
container: "flex flex-row"
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
sectionFlow: {
|
|
35
35
|
col: {
|
|
36
|
-
section:
|
|
36
|
+
section: "flex flex-col"
|
|
37
37
|
},
|
|
38
38
|
row: {
|
|
39
|
-
section:
|
|
39
|
+
section: "flex flex-row"
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
size: {
|
|
43
43
|
sm: {
|
|
44
|
-
root:
|
|
45
|
-
container:
|
|
46
|
-
section:
|
|
47
|
-
list:
|
|
48
|
-
title:
|
|
49
|
-
link:
|
|
50
|
-
text:
|
|
51
|
-
bottom:
|
|
52
|
-
divider:
|
|
44
|
+
root: "p-footer-root-sm",
|
|
45
|
+
container: "gap-footer-container-sm",
|
|
46
|
+
section: "gap-footer-section-sm",
|
|
47
|
+
list: "gap-footer-list-gap-sm",
|
|
48
|
+
title: "text-footer-title-sm",
|
|
49
|
+
link: "text-footer-link-sm",
|
|
50
|
+
text: "text-footer-text-sm",
|
|
51
|
+
bottom: "p-footer-bottom-sm",
|
|
52
|
+
divider: "my-footer-divider-sm"
|
|
53
53
|
},
|
|
54
54
|
md: {
|
|
55
|
-
root:
|
|
56
|
-
container:
|
|
57
|
-
section:
|
|
58
|
-
list:
|
|
59
|
-
title:
|
|
60
|
-
link:
|
|
61
|
-
text:
|
|
62
|
-
bottom:
|
|
63
|
-
divider:
|
|
55
|
+
root: "p-footer-root-md",
|
|
56
|
+
container: "gap-footer-container-md",
|
|
57
|
+
section: "gap-footer-section-md",
|
|
58
|
+
list: "gap-footer-list-gap-md",
|
|
59
|
+
title: "text-footer-title-md",
|
|
60
|
+
link: "text-footer-link-md",
|
|
61
|
+
text: "text-footer-text-md",
|
|
62
|
+
bottom: "p-footer-bottom-md",
|
|
63
|
+
divider: "my-footer-divider-md"
|
|
64
64
|
},
|
|
65
65
|
lg: {
|
|
66
|
-
root:
|
|
67
|
-
container:
|
|
68
|
-
section:
|
|
69
|
-
list:
|
|
70
|
-
title:
|
|
71
|
-
link:
|
|
72
|
-
text:
|
|
73
|
-
bottom:
|
|
74
|
-
divider:
|
|
66
|
+
root: "p-footer-root-lg",
|
|
67
|
+
container: "gap-footer-container-lg",
|
|
68
|
+
section: "gap-footer-section-lg",
|
|
69
|
+
list: "gap-footer-list-gap-lg",
|
|
70
|
+
title: "text-footer-title-lg",
|
|
71
|
+
link: "text-footer-link-lg",
|
|
72
|
+
text: "text-footer-text-lg",
|
|
73
|
+
bottom: "p-footer-bottom-lg",
|
|
74
|
+
divider: "my-footer-divider-lg"
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
78
|
defaultVariants: {
|
|
79
|
-
size:
|
|
80
|
-
direction:
|
|
81
|
-
layout:
|
|
82
|
-
sectionFlow:
|
|
79
|
+
size: "md",
|
|
80
|
+
direction: "horizontal",
|
|
81
|
+
layout: "col",
|
|
82
|
+
sectionFlow: "col"
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
85
|
const FooterContext = /*#__PURE__*/ createContext({});
|
|
@@ -140,22 +140,20 @@ Footer.Title = function({ children, className }) {
|
|
|
140
140
|
children: children
|
|
141
141
|
});
|
|
142
142
|
};
|
|
143
|
-
|
|
143
|
+
function FooterLink({ children, className, ...linkProps }) {
|
|
144
144
|
const { size } = useContext(FooterContext);
|
|
145
145
|
const { link } = footerVariants({
|
|
146
146
|
size
|
|
147
147
|
});
|
|
148
148
|
return /*#__PURE__*/ jsx(Link, {
|
|
149
|
-
href: href,
|
|
150
149
|
className: link({
|
|
151
150
|
className
|
|
152
151
|
}),
|
|
153
|
-
|
|
154
|
-
rel: external ? 'noopener noreferrer' : void 0,
|
|
155
|
-
...props,
|
|
152
|
+
...linkProps,
|
|
156
153
|
children: children
|
|
157
154
|
});
|
|
158
|
-
}
|
|
155
|
+
}
|
|
156
|
+
Footer.Link = FooterLink;
|
|
159
157
|
Footer.Text = function({ children, className }) {
|
|
160
158
|
const { size } = useContext(FooterContext);
|
|
161
159
|
const { text } = footerVariants({
|