@techsio/ui-kit 0.3.1 → 0.4.0
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 +7 -7
- 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 +6 -6
- 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 +41 -28
- 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/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
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import code_connect from "@figma/code-connect";
|
|
3
|
+
import { FormTextarea } from "../form-textarea.js";
|
|
4
|
+
code_connect.connect(FormTextarea, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=929-317", {
|
|
5
|
+
imports: [
|
|
6
|
+
'import { FormTextarea } from "@techsio/ui-kit/molecules/form-textarea"'
|
|
7
|
+
],
|
|
8
|
+
props: {
|
|
9
|
+
size: code_connect["enum"]("size", {
|
|
10
|
+
sm: "sm",
|
|
11
|
+
md: "md",
|
|
12
|
+
lg: "lg"
|
|
13
|
+
}),
|
|
14
|
+
validateStatus: code_connect["enum"]("state", {
|
|
15
|
+
default: "default",
|
|
16
|
+
error: "error",
|
|
17
|
+
success: "success",
|
|
18
|
+
warning: "warning",
|
|
19
|
+
disabled: "default"
|
|
20
|
+
}),
|
|
21
|
+
disabled: code_connect["enum"]("state", {
|
|
22
|
+
default: false,
|
|
23
|
+
error: false,
|
|
24
|
+
success: false,
|
|
25
|
+
warning: false,
|
|
26
|
+
disabled: true
|
|
27
|
+
}),
|
|
28
|
+
required: code_connect.boolean("required")
|
|
29
|
+
},
|
|
30
|
+
example: ({ size, validateStatus, disabled, required })=>/*#__PURE__*/ jsx(FormTextarea, {
|
|
31
|
+
id: "field",
|
|
32
|
+
label: "Label",
|
|
33
|
+
size: size,
|
|
34
|
+
validateStatus: validateStatus,
|
|
35
|
+
disabled: disabled,
|
|
36
|
+
required: required
|
|
37
|
+
})
|
|
38
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import code_connect from "@figma/code-connect";
|
|
3
|
+
import { Menu } from "../menu.js";
|
|
4
|
+
code_connect.connect(Menu, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=1183-26", {
|
|
5
|
+
imports: [
|
|
6
|
+
'import { Menu } from "@libs/ui/molecules/menu"'
|
|
7
|
+
],
|
|
8
|
+
props: {
|
|
9
|
+
size: code_connect["enum"]("size", {
|
|
10
|
+
sm: "sm",
|
|
11
|
+
md: "md",
|
|
12
|
+
lg: "lg"
|
|
13
|
+
})
|
|
14
|
+
},
|
|
15
|
+
example: ({ size })=>/*#__PURE__*/ jsx(Menu, {
|
|
16
|
+
items: [
|
|
17
|
+
{
|
|
18
|
+
type: "action",
|
|
19
|
+
value: "item-1",
|
|
20
|
+
label: "Item 1"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
size: size,
|
|
24
|
+
triggerText: "Open"
|
|
25
|
+
})
|
|
26
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import code_connect from "@figma/code-connect";
|
|
3
|
+
import { Pagination } from "../pagination.js";
|
|
4
|
+
code_connect.connect(Pagination, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=1143-138", {
|
|
5
|
+
imports: [
|
|
6
|
+
'import { Pagination } from "@libs/ui/molecules/pagination"'
|
|
7
|
+
],
|
|
8
|
+
props: {
|
|
9
|
+
size: code_connect["enum"]("size", {
|
|
10
|
+
sm: "sm",
|
|
11
|
+
md: "md",
|
|
12
|
+
lg: "lg"
|
|
13
|
+
})
|
|
14
|
+
},
|
|
15
|
+
example: ({ size })=>/*#__PURE__*/ jsx(Pagination, {
|
|
16
|
+
count: 100,
|
|
17
|
+
defaultPage: 1,
|
|
18
|
+
getPageUrl: (page)=>`?page=${page}`,
|
|
19
|
+
pageSize: 10,
|
|
20
|
+
size: size
|
|
21
|
+
})
|
|
22
|
+
});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import code_connect from "@figma/code-connect";
|
|
3
|
+
import { Popover } from "../popover.js";
|
|
4
|
+
code_connect.connect(Popover, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=1076-666", {
|
|
5
|
+
imports: [
|
|
6
|
+
'import { Popover } from "@libs/ui/molecules/popover"'
|
|
7
|
+
],
|
|
8
|
+
props: {
|
|
9
|
+
placement: code_connect["enum"]("placement", {
|
|
10
|
+
top: "top",
|
|
11
|
+
right: "right",
|
|
12
|
+
bottom: "bottom",
|
|
13
|
+
left: "left",
|
|
14
|
+
"top-start": "top-start",
|
|
15
|
+
"top-end": "top-end",
|
|
16
|
+
"bottom-start": "bottom-start",
|
|
17
|
+
"bottom-end": "bottom-end"
|
|
18
|
+
})
|
|
19
|
+
},
|
|
20
|
+
example: ({ placement })=>/*#__PURE__*/ jsxs(Popover, {
|
|
21
|
+
defaultOpen: true,
|
|
22
|
+
id: "popover",
|
|
23
|
+
placement: placement,
|
|
24
|
+
children: [
|
|
25
|
+
/*#__PURE__*/ jsx(Popover.Trigger, {
|
|
26
|
+
children: "Open"
|
|
27
|
+
}),
|
|
28
|
+
/*#__PURE__*/ jsx(Popover.Positioner, {
|
|
29
|
+
children: /*#__PURE__*/ jsxs(Popover.Content, {
|
|
30
|
+
children: [
|
|
31
|
+
/*#__PURE__*/ jsx(Popover.Arrow, {}),
|
|
32
|
+
"Popover content"
|
|
33
|
+
]
|
|
34
|
+
})
|
|
35
|
+
})
|
|
36
|
+
]
|
|
37
|
+
})
|
|
38
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import code_connect from "@figma/code-connect";
|
|
3
|
+
import { ProductCard } from "../product-card.js";
|
|
4
|
+
code_connect.connect(ProductCard, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=1182-51", {
|
|
5
|
+
imports: [
|
|
6
|
+
'import { ProductCard } from "@libs/ui/molecules/product-card"'
|
|
7
|
+
],
|
|
8
|
+
props: {
|
|
9
|
+
layout: code_connect["enum"]("layout", {
|
|
10
|
+
column: "column",
|
|
11
|
+
row: "row"
|
|
12
|
+
})
|
|
13
|
+
},
|
|
14
|
+
example: ({ layout })=>/*#__PURE__*/ jsxs(ProductCard, {
|
|
15
|
+
layout: layout,
|
|
16
|
+
children: [
|
|
17
|
+
/*#__PURE__*/ jsx(ProductCard.Image, {
|
|
18
|
+
alt: "Product",
|
|
19
|
+
src: "/product.jpg"
|
|
20
|
+
}),
|
|
21
|
+
/*#__PURE__*/ jsx(ProductCard.Name, {
|
|
22
|
+
children: "Product Name"
|
|
23
|
+
}),
|
|
24
|
+
/*#__PURE__*/ jsx(ProductCard.Price, {
|
|
25
|
+
children: "$99.00"
|
|
26
|
+
}),
|
|
27
|
+
/*#__PURE__*/ jsx(ProductCard.Actions, {
|
|
28
|
+
children: /*#__PURE__*/ jsx(ProductCard.Button, {
|
|
29
|
+
children: "Add to cart"
|
|
30
|
+
})
|
|
31
|
+
})
|
|
32
|
+
]
|
|
33
|
+
})
|
|
34
|
+
});
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import code_connect from "@figma/code-connect";
|
|
3
|
+
import { RadioCard } from "../radio-card.js";
|
|
4
|
+
code_connect.connect(RadioCard, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=1151-66", {
|
|
5
|
+
imports: [
|
|
6
|
+
'import { RadioCard } from "@libs/ui/molecules/radio-card"'
|
|
7
|
+
],
|
|
8
|
+
props: {
|
|
9
|
+
size: code_connect["enum"]("size", {
|
|
10
|
+
sm: "sm",
|
|
11
|
+
md: "md",
|
|
12
|
+
lg: "lg"
|
|
13
|
+
}),
|
|
14
|
+
orientation: code_connect["enum"]("orientation", {
|
|
15
|
+
horizontal: "horizontal",
|
|
16
|
+
vertical: "vertical"
|
|
17
|
+
}),
|
|
18
|
+
disabled: code_connect.boolean("disabled")
|
|
19
|
+
},
|
|
20
|
+
example: ({ size, orientation, disabled })=>/*#__PURE__*/ jsx(RadioCard, {
|
|
21
|
+
disabled: disabled,
|
|
22
|
+
orientation: orientation,
|
|
23
|
+
size: size,
|
|
24
|
+
children: /*#__PURE__*/ jsx(RadioCard.Item, {
|
|
25
|
+
value: "a",
|
|
26
|
+
children: /*#__PURE__*/ jsx(RadioCard.ItemControl, {
|
|
27
|
+
children: /*#__PURE__*/ jsx(RadioCard.ItemContent, {
|
|
28
|
+
children: /*#__PURE__*/ jsx(RadioCard.ItemText, {
|
|
29
|
+
children: "Option A"
|
|
30
|
+
})
|
|
31
|
+
})
|
|
32
|
+
})
|
|
33
|
+
})
|
|
34
|
+
})
|
|
35
|
+
});
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import code_connect from "@figma/code-connect";
|
|
3
|
+
import { RadioGroup } from "../radio-group.js";
|
|
4
|
+
code_connect.connect(RadioGroup, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=1149-66", {
|
|
5
|
+
imports: [
|
|
6
|
+
'import { RadioGroup } from "@libs/ui/molecules/radio-group"'
|
|
7
|
+
],
|
|
8
|
+
props: {
|
|
9
|
+
size: code_connect["enum"]("size", {
|
|
10
|
+
sm: "sm",
|
|
11
|
+
md: "md",
|
|
12
|
+
lg: "lg"
|
|
13
|
+
}),
|
|
14
|
+
orientation: code_connect["enum"]("orientation", {
|
|
15
|
+
horizontal: "horizontal",
|
|
16
|
+
vertical: "vertical"
|
|
17
|
+
}),
|
|
18
|
+
disabled: code_connect.boolean("disabled")
|
|
19
|
+
},
|
|
20
|
+
example: ({ size, orientation, disabled })=>/*#__PURE__*/ jsxs(RadioGroup, {
|
|
21
|
+
disabled: disabled,
|
|
22
|
+
orientation: orientation,
|
|
23
|
+
size: size,
|
|
24
|
+
children: [
|
|
25
|
+
/*#__PURE__*/ jsxs(RadioGroup.Item, {
|
|
26
|
+
value: "a",
|
|
27
|
+
children: [
|
|
28
|
+
/*#__PURE__*/ jsx(RadioGroup.ItemControl, {}),
|
|
29
|
+
/*#__PURE__*/ jsx(RadioGroup.ItemText, {
|
|
30
|
+
children: "Option A"
|
|
31
|
+
})
|
|
32
|
+
]
|
|
33
|
+
}),
|
|
34
|
+
/*#__PURE__*/ jsxs(RadioGroup.Item, {
|
|
35
|
+
value: "b",
|
|
36
|
+
children: [
|
|
37
|
+
/*#__PURE__*/ jsx(RadioGroup.ItemControl, {}),
|
|
38
|
+
/*#__PURE__*/ jsx(RadioGroup.ItemText, {
|
|
39
|
+
children: "Option B"
|
|
40
|
+
})
|
|
41
|
+
]
|
|
42
|
+
})
|
|
43
|
+
]
|
|
44
|
+
})
|
|
45
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import code_connect from "@figma/code-connect";
|
|
3
|
+
import { SearchForm } from "../search-form.js";
|
|
4
|
+
code_connect.connect(SearchForm, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=1146-48", {
|
|
5
|
+
imports: [
|
|
6
|
+
'import { SearchForm } from "@libs/ui/molecules/search-form"'
|
|
7
|
+
],
|
|
8
|
+
props: {
|
|
9
|
+
size: code_connect["enum"]("size", {
|
|
10
|
+
sm: "sm",
|
|
11
|
+
md: "md",
|
|
12
|
+
lg: "lg"
|
|
13
|
+
})
|
|
14
|
+
},
|
|
15
|
+
example: ({ size })=>/*#__PURE__*/ jsxs(SearchForm, {
|
|
16
|
+
size: size,
|
|
17
|
+
children: [
|
|
18
|
+
/*#__PURE__*/ jsx(SearchForm.Input, {
|
|
19
|
+
placeholder: "Search..."
|
|
20
|
+
}),
|
|
21
|
+
/*#__PURE__*/ jsx(SearchForm.Button, {})
|
|
22
|
+
]
|
|
23
|
+
})
|
|
24
|
+
});
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import code_connect from "@figma/code-connect";
|
|
3
|
+
import { Select } from "../select.js";
|
|
4
|
+
code_connect.connect(Select, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=761-571", {
|
|
5
|
+
imports: [
|
|
6
|
+
'import { Select } from "@techsio/ui-kit/molecules/select"'
|
|
7
|
+
],
|
|
8
|
+
props: {
|
|
9
|
+
size: code_connect["enum"]("size", {
|
|
10
|
+
xs: "xs",
|
|
11
|
+
sm: "sm",
|
|
12
|
+
md: "md",
|
|
13
|
+
lg: "lg"
|
|
14
|
+
}),
|
|
15
|
+
validateStatus: code_connect["enum"]("state", {
|
|
16
|
+
default: "default",
|
|
17
|
+
error: "error",
|
|
18
|
+
success: "success",
|
|
19
|
+
warning: "warning",
|
|
20
|
+
disabled: "default",
|
|
21
|
+
readonly: "default"
|
|
22
|
+
}),
|
|
23
|
+
disabled: code_connect["enum"]("state", {
|
|
24
|
+
default: false,
|
|
25
|
+
error: false,
|
|
26
|
+
success: false,
|
|
27
|
+
warning: false,
|
|
28
|
+
disabled: true,
|
|
29
|
+
readonly: false
|
|
30
|
+
}),
|
|
31
|
+
required: code_connect.boolean("required")
|
|
32
|
+
},
|
|
33
|
+
example: ({ size, validateStatus, disabled, required })=>/*#__PURE__*/ jsxs(Select, {
|
|
34
|
+
size: size,
|
|
35
|
+
validateStatus: validateStatus,
|
|
36
|
+
disabled: disabled,
|
|
37
|
+
required: required,
|
|
38
|
+
items: [],
|
|
39
|
+
children: [
|
|
40
|
+
/*#__PURE__*/ jsx(Select.Label, {
|
|
41
|
+
children: "Label"
|
|
42
|
+
}),
|
|
43
|
+
/*#__PURE__*/ jsx(Select.Trigger, {})
|
|
44
|
+
]
|
|
45
|
+
})
|
|
46
|
+
});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import code_connect from "@figma/code-connect";
|
|
3
|
+
import { Slider } from "../slider.js";
|
|
4
|
+
code_connect.connect(Slider, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=1141-48", {
|
|
5
|
+
imports: [
|
|
6
|
+
'import { Slider } from "@techsio/ui-kit/molecules/slider"'
|
|
7
|
+
],
|
|
8
|
+
props: {
|
|
9
|
+
size: code_connect["enum"]("size", {
|
|
10
|
+
sm: "sm",
|
|
11
|
+
md: "md",
|
|
12
|
+
lg: "lg"
|
|
13
|
+
}),
|
|
14
|
+
disabled: code_connect.boolean("disabled"),
|
|
15
|
+
validateStatus: code_connect["enum"]("validateStatus", {
|
|
16
|
+
default: "default",
|
|
17
|
+
error: "error"
|
|
18
|
+
})
|
|
19
|
+
},
|
|
20
|
+
example: ({ size, disabled, validateStatus })=>/*#__PURE__*/ jsx(Slider, {
|
|
21
|
+
size: size,
|
|
22
|
+
disabled: disabled,
|
|
23
|
+
validateStatus: validateStatus,
|
|
24
|
+
min: 0,
|
|
25
|
+
max: 100,
|
|
26
|
+
defaultValue: [
|
|
27
|
+
50
|
|
28
|
+
]
|
|
29
|
+
})
|
|
30
|
+
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import code_connect from "@figma/code-connect";
|
|
3
|
+
import { Steps } from "../steps.js";
|
|
4
|
+
code_connect.connect(Steps, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=1153-66", {
|
|
5
|
+
imports: [
|
|
6
|
+
'import { Steps } from "@libs/ui/molecules/steps"'
|
|
7
|
+
],
|
|
8
|
+
props: {
|
|
9
|
+
size: code_connect["enum"]("size", {
|
|
10
|
+
sm: "sm",
|
|
11
|
+
md: "md",
|
|
12
|
+
lg: "lg"
|
|
13
|
+
}),
|
|
14
|
+
orientation: code_connect["enum"]("orientation", {
|
|
15
|
+
horizontal: "horizontal",
|
|
16
|
+
vertical: "vertical"
|
|
17
|
+
})
|
|
18
|
+
},
|
|
19
|
+
example: ({ size, orientation })=>/*#__PURE__*/ jsx(Steps, {
|
|
20
|
+
count: 3,
|
|
21
|
+
defaultStep: 0,
|
|
22
|
+
orientation: orientation,
|
|
23
|
+
size: size,
|
|
24
|
+
children: /*#__PURE__*/ jsx(Steps.List, {
|
|
25
|
+
children: /*#__PURE__*/ jsx(Steps.Item, {
|
|
26
|
+
index: 0,
|
|
27
|
+
children: /*#__PURE__*/ jsx(Steps.Trigger, {
|
|
28
|
+
children: "Step 1"
|
|
29
|
+
})
|
|
30
|
+
})
|
|
31
|
+
})
|
|
32
|
+
})
|
|
33
|
+
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import code_connect from "@figma/code-connect";
|
|
3
|
+
import { Switch } from "../switch.js";
|
|
4
|
+
code_connect.connect(Switch, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=1137-22", {
|
|
5
|
+
imports: [
|
|
6
|
+
'import { Switch } from "@techsio/ui-kit/molecules/switch"'
|
|
7
|
+
],
|
|
8
|
+
props: {
|
|
9
|
+
checked: code_connect["enum"]("state", {
|
|
10
|
+
unchecked: false,
|
|
11
|
+
checked: true,
|
|
12
|
+
disabled: false
|
|
13
|
+
}),
|
|
14
|
+
disabled: code_connect["enum"]("state", {
|
|
15
|
+
unchecked: false,
|
|
16
|
+
checked: false,
|
|
17
|
+
disabled: true
|
|
18
|
+
}),
|
|
19
|
+
validateStatus: code_connect["enum"]("validateStatus", {
|
|
20
|
+
default: "default",
|
|
21
|
+
error: "error",
|
|
22
|
+
success: "success",
|
|
23
|
+
warning: "warning"
|
|
24
|
+
}),
|
|
25
|
+
children: code_connect.string("label")
|
|
26
|
+
},
|
|
27
|
+
example: ({ checked, disabled, validateStatus, children })=>/*#__PURE__*/ jsx(Switch, {
|
|
28
|
+
checked: checked,
|
|
29
|
+
disabled: disabled,
|
|
30
|
+
validateStatus: validateStatus,
|
|
31
|
+
children: children
|
|
32
|
+
})
|
|
33
|
+
});
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import code_connect from "@figma/code-connect";
|
|
3
|
+
import { Tabs } from "../tabs.js";
|
|
4
|
+
code_connect.connect(Tabs, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=1174-74", {
|
|
5
|
+
imports: [
|
|
6
|
+
'import { Tabs } from "@libs/ui/molecules/tabs"'
|
|
7
|
+
],
|
|
8
|
+
props: {
|
|
9
|
+
size: code_connect["enum"]("size", {
|
|
10
|
+
sm: "sm",
|
|
11
|
+
md: "md",
|
|
12
|
+
lg: "lg"
|
|
13
|
+
}),
|
|
14
|
+
orientation: code_connect["enum"]("orientation", {
|
|
15
|
+
horizontal: "horizontal",
|
|
16
|
+
vertical: "vertical"
|
|
17
|
+
})
|
|
18
|
+
},
|
|
19
|
+
example: ({ size, orientation })=>/*#__PURE__*/ jsxs(Tabs, {
|
|
20
|
+
defaultValue: "tab-1",
|
|
21
|
+
orientation: orientation,
|
|
22
|
+
size: size,
|
|
23
|
+
children: [
|
|
24
|
+
/*#__PURE__*/ jsxs(Tabs.List, {
|
|
25
|
+
children: [
|
|
26
|
+
/*#__PURE__*/ jsx(Tabs.Trigger, {
|
|
27
|
+
value: "tab-1",
|
|
28
|
+
children: "Tab 1"
|
|
29
|
+
}),
|
|
30
|
+
/*#__PURE__*/ jsx(Tabs.Trigger, {
|
|
31
|
+
value: "tab-2",
|
|
32
|
+
children: "Tab 2"
|
|
33
|
+
})
|
|
34
|
+
]
|
|
35
|
+
}),
|
|
36
|
+
/*#__PURE__*/ jsx(Tabs.Content, {
|
|
37
|
+
value: "tab-1",
|
|
38
|
+
children: "Content 1"
|
|
39
|
+
}),
|
|
40
|
+
/*#__PURE__*/ jsx(Tabs.Content, {
|
|
41
|
+
value: "tab-2",
|
|
42
|
+
children: "Content 2"
|
|
43
|
+
})
|
|
44
|
+
]
|
|
45
|
+
})
|
|
46
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import code_connect from "@figma/code-connect";
|
|
3
|
+
import { Toaster, useToast } from "../toast.js";
|
|
4
|
+
code_connect.connect(Toaster, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=1155-33", {
|
|
5
|
+
imports: [
|
|
6
|
+
'import { Toaster, useToast } from "@libs/ui/molecules/toast"'
|
|
7
|
+
],
|
|
8
|
+
props: {
|
|
9
|
+
type: code_connect["enum"]("type", {
|
|
10
|
+
default: "message",
|
|
11
|
+
info: "info",
|
|
12
|
+
success: "success",
|
|
13
|
+
warning: "warning",
|
|
14
|
+
error: "error"
|
|
15
|
+
})
|
|
16
|
+
},
|
|
17
|
+
example: ({ type })=>{
|
|
18
|
+
const toast = useToast();
|
|
19
|
+
return /*#__PURE__*/ jsxs(Fragment, {
|
|
20
|
+
children: [
|
|
21
|
+
/*#__PURE__*/ jsx("button", {
|
|
22
|
+
onClick: ()=>toast.create({
|
|
23
|
+
title: "Toast",
|
|
24
|
+
description: "Notification message",
|
|
25
|
+
type
|
|
26
|
+
}),
|
|
27
|
+
type: "button",
|
|
28
|
+
children: "Show toast"
|
|
29
|
+
}),
|
|
30
|
+
/*#__PURE__*/ jsx(Toaster, {})
|
|
31
|
+
]
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import code_connect from "@figma/code-connect";
|
|
3
|
+
import { TreeView } from "../tree-view.js";
|
|
4
|
+
code_connect.connect(TreeView, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=1193-228", {
|
|
5
|
+
imports: [
|
|
6
|
+
'import { TreeView } from "@techsio/ui-kit/molecules/tree-view"'
|
|
7
|
+
],
|
|
8
|
+
props: {
|
|
9
|
+
size: code_connect["enum"]("size", {
|
|
10
|
+
sm: "sm",
|
|
11
|
+
md: "md",
|
|
12
|
+
lg: "lg"
|
|
13
|
+
})
|
|
14
|
+
},
|
|
15
|
+
example: ({ size })=>/*#__PURE__*/ jsx(TreeView, {
|
|
16
|
+
size: size,
|
|
17
|
+
data: [
|
|
18
|
+
{
|
|
19
|
+
id: "1",
|
|
20
|
+
name: "Root",
|
|
21
|
+
children: [
|
|
22
|
+
{
|
|
23
|
+
id: "1-1",
|
|
24
|
+
name: "Child"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
})
|
|
30
|
+
});
|