@techsio/ui-kit 0.3.2 → 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,33 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import code_connect from "@figma/code-connect";
|
|
3
|
+
import { Icon } from "../icon.js";
|
|
4
|
+
code_connect.connect(Icon, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=365-170", {
|
|
5
|
+
imports: [
|
|
6
|
+
'import { Icon } from "@techsio/ui-kit/atoms/icon"'
|
|
7
|
+
],
|
|
8
|
+
props: {
|
|
9
|
+
size: code_connect["enum"]("size", {
|
|
10
|
+
current: "current",
|
|
11
|
+
xs: "xs",
|
|
12
|
+
sm: "sm",
|
|
13
|
+
md: "md",
|
|
14
|
+
lg: "lg",
|
|
15
|
+
xl: "xl",
|
|
16
|
+
"2xl": "2xl"
|
|
17
|
+
}),
|
|
18
|
+
color: code_connect["enum"]("color", {
|
|
19
|
+
current: "current",
|
|
20
|
+
primary: "primary",
|
|
21
|
+
secondary: "secondary",
|
|
22
|
+
danger: "danger",
|
|
23
|
+
success: "success",
|
|
24
|
+
warning: "warning"
|
|
25
|
+
}),
|
|
26
|
+
icon: code_connect.instance("icon")
|
|
27
|
+
},
|
|
28
|
+
example: ({ color, size, icon })=>/*#__PURE__*/ jsx(Icon, {
|
|
29
|
+
color: color,
|
|
30
|
+
icon: icon ?? "token-icon-plus",
|
|
31
|
+
size: size
|
|
32
|
+
})
|
|
33
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import code_connect from "@figma/code-connect";
|
|
3
|
+
import { Image } from "../image.js";
|
|
4
|
+
code_connect.connect(Image, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=484-19", {
|
|
5
|
+
imports: [
|
|
6
|
+
'import { Image } from "@techsio/ui-kit/atoms/image"'
|
|
7
|
+
],
|
|
8
|
+
props: {
|
|
9
|
+
size: code_connect["enum"]("size", {
|
|
10
|
+
sm: "sm",
|
|
11
|
+
md: "md",
|
|
12
|
+
lg: "lg",
|
|
13
|
+
full: "full"
|
|
14
|
+
})
|
|
15
|
+
},
|
|
16
|
+
example: ({ size })=>/*#__PURE__*/ jsx(Image, {
|
|
17
|
+
src: "/image.jpg",
|
|
18
|
+
alt: "Description",
|
|
19
|
+
size: size
|
|
20
|
+
})
|
|
21
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import code_connect from "@figma/code-connect";
|
|
3
|
+
import { Input } from "../input.js";
|
|
4
|
+
code_connect.connect(Input, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=304-107", {
|
|
5
|
+
imports: [
|
|
6
|
+
'import { Input } from "@techsio/ui-kit/atoms/input"'
|
|
7
|
+
],
|
|
8
|
+
props: {
|
|
9
|
+
size: code_connect["enum"]("size", {
|
|
10
|
+
sm: "sm",
|
|
11
|
+
md: "md",
|
|
12
|
+
lg: "lg"
|
|
13
|
+
}),
|
|
14
|
+
variant: 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
|
+
},
|
|
29
|
+
example: ({ size, variant, disabled })=>/*#__PURE__*/ jsx(Input, {
|
|
30
|
+
disabled: disabled,
|
|
31
|
+
size: size,
|
|
32
|
+
variant: variant
|
|
33
|
+
})
|
|
34
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import code_connect from "@figma/code-connect";
|
|
3
|
+
import { Label } from "../label.js";
|
|
4
|
+
code_connect.connect(Label, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=1-7840", {
|
|
5
|
+
imports: [
|
|
6
|
+
'import { Label } from "@techsio/ui-kit/atoms/label"'
|
|
7
|
+
],
|
|
8
|
+
props: {
|
|
9
|
+
size: code_connect["enum"]("size", {
|
|
10
|
+
sm: "sm",
|
|
11
|
+
md: "md",
|
|
12
|
+
lg: "lg",
|
|
13
|
+
current: "current"
|
|
14
|
+
}),
|
|
15
|
+
disabled: code_connect.boolean("disabled"),
|
|
16
|
+
required: code_connect.boolean("required"),
|
|
17
|
+
children: code_connect.string("children")
|
|
18
|
+
},
|
|
19
|
+
example: ({ size, disabled, required, children })=>/*#__PURE__*/ jsx(Label, {
|
|
20
|
+
disabled: disabled,
|
|
21
|
+
required: required,
|
|
22
|
+
size: size,
|
|
23
|
+
children: children
|
|
24
|
+
})
|
|
25
|
+
});
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import code_connect from "@figma/code-connect";
|
|
3
|
+
import { LinkButton } from "../link-button.js";
|
|
4
|
+
code_connect.connect(LinkButton, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=1358-1944", {
|
|
5
|
+
imports: [
|
|
6
|
+
'import { LinkButton } from "@techsio/ui-kit/atoms/link-button"'
|
|
7
|
+
],
|
|
8
|
+
props: {
|
|
9
|
+
variant: code_connect["enum"]("variant", {
|
|
10
|
+
primary: "primary",
|
|
11
|
+
secondary: "secondary",
|
|
12
|
+
tertiary: "tertiary",
|
|
13
|
+
warning: "warning",
|
|
14
|
+
danger: "danger"
|
|
15
|
+
}),
|
|
16
|
+
theme: code_connect["enum"]("theme", {
|
|
17
|
+
solid: "solid",
|
|
18
|
+
light: "light",
|
|
19
|
+
outlined: "outlined",
|
|
20
|
+
borderless: "borderless"
|
|
21
|
+
}),
|
|
22
|
+
size: code_connect["enum"]("size", {
|
|
23
|
+
sm: "sm",
|
|
24
|
+
md: "md",
|
|
25
|
+
lg: "lg"
|
|
26
|
+
}),
|
|
27
|
+
children: code_connect.string("children"),
|
|
28
|
+
disabled: code_connect["enum"]("state", {
|
|
29
|
+
default: false,
|
|
30
|
+
hover: false,
|
|
31
|
+
disabled: true
|
|
32
|
+
})
|
|
33
|
+
},
|
|
34
|
+
example: ({ variant, theme, size, children, disabled })=>/*#__PURE__*/ jsx(LinkButton, {
|
|
35
|
+
disabled: disabled,
|
|
36
|
+
href: "#",
|
|
37
|
+
size: size,
|
|
38
|
+
theme: theme,
|
|
39
|
+
variant: variant,
|
|
40
|
+
children: children
|
|
41
|
+
})
|
|
42
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import code_connect from "@figma/code-connect";
|
|
3
|
+
import { Link } from "../link.js";
|
|
4
|
+
code_connect.connect(Link, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=1355-13", {
|
|
5
|
+
imports: [
|
|
6
|
+
'import { Link } from "@techsio/ui-kit/atoms/link"'
|
|
7
|
+
],
|
|
8
|
+
props: {
|
|
9
|
+
children: code_connect.string("children")
|
|
10
|
+
},
|
|
11
|
+
example: ({ children })=>/*#__PURE__*/ jsx(Link, {
|
|
12
|
+
href: "#",
|
|
13
|
+
children: children
|
|
14
|
+
})
|
|
15
|
+
});
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import code_connect from "@figma/code-connect";
|
|
3
|
+
import { NumericInput } from "../numeric-input.js";
|
|
4
|
+
code_connect.connect(NumericInput, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=607-107", {
|
|
5
|
+
imports: [
|
|
6
|
+
'import { NumericInput } from "@techsio/ui-kit/atoms/numeric-input"'
|
|
7
|
+
],
|
|
8
|
+
props: {
|
|
9
|
+
size: code_connect["enum"]("size", {
|
|
10
|
+
sm: "sm",
|
|
11
|
+
md: "md",
|
|
12
|
+
lg: "lg"
|
|
13
|
+
}),
|
|
14
|
+
invalid: code_connect["enum"]("state", {
|
|
15
|
+
default: false,
|
|
16
|
+
error: true,
|
|
17
|
+
disabled: false,
|
|
18
|
+
readonly: false
|
|
19
|
+
}),
|
|
20
|
+
disabled: code_connect["enum"]("state", {
|
|
21
|
+
default: false,
|
|
22
|
+
error: false,
|
|
23
|
+
disabled: true,
|
|
24
|
+
readonly: false
|
|
25
|
+
}),
|
|
26
|
+
readOnly: code_connect["enum"]("state", {
|
|
27
|
+
default: false,
|
|
28
|
+
error: false,
|
|
29
|
+
disabled: false,
|
|
30
|
+
readonly: true
|
|
31
|
+
})
|
|
32
|
+
},
|
|
33
|
+
example: ({ disabled, invalid, readOnly, size })=>/*#__PURE__*/ jsx(NumericInput, {
|
|
34
|
+
id: "quantity",
|
|
35
|
+
defaultValue: 42,
|
|
36
|
+
disabled: disabled,
|
|
37
|
+
invalid: invalid,
|
|
38
|
+
readOnly: readOnly,
|
|
39
|
+
size: size,
|
|
40
|
+
children: /*#__PURE__*/ jsxs(NumericInput.Control, {
|
|
41
|
+
children: [
|
|
42
|
+
/*#__PURE__*/ jsx(NumericInput.Input, {}),
|
|
43
|
+
/*#__PURE__*/ jsxs(NumericInput.TriggerContainer, {
|
|
44
|
+
children: [
|
|
45
|
+
/*#__PURE__*/ jsx(NumericInput.IncrementTrigger, {}),
|
|
46
|
+
/*#__PURE__*/ jsx(NumericInput.DecrementTrigger, {})
|
|
47
|
+
]
|
|
48
|
+
})
|
|
49
|
+
]
|
|
50
|
+
})
|
|
51
|
+
})
|
|
52
|
+
});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import code_connect from "@figma/code-connect";
|
|
3
|
+
import { Rating } from "../rating.js";
|
|
4
|
+
code_connect.connect(Rating, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=521-336", {
|
|
5
|
+
imports: [
|
|
6
|
+
'import { Rating } from "@techsio/ui-kit/atoms/rating"'
|
|
7
|
+
],
|
|
8
|
+
props: {
|
|
9
|
+
size: code_connect["enum"]("size", {
|
|
10
|
+
sm: "sm",
|
|
11
|
+
md: "md",
|
|
12
|
+
lg: "lg"
|
|
13
|
+
}),
|
|
14
|
+
disabled: code_connect["enum"]("disabled", {
|
|
15
|
+
true: true,
|
|
16
|
+
false: false
|
|
17
|
+
}),
|
|
18
|
+
dir: code_connect["enum"]("dir", {
|
|
19
|
+
ltr: "ltr",
|
|
20
|
+
rtl: "rtl"
|
|
21
|
+
}),
|
|
22
|
+
allowHalf: code_connect.boolean("allowHalf"),
|
|
23
|
+
value: code_connect.string("value"),
|
|
24
|
+
count: code_connect.string("count"),
|
|
25
|
+
labelText: code_connect.nestedProps("Label", {
|
|
26
|
+
text: code_connect.string("text")
|
|
27
|
+
})
|
|
28
|
+
},
|
|
29
|
+
example: ({ size, disabled, dir, allowHalf, value, count, labelText })=>/*#__PURE__*/ jsx(Rating, {
|
|
30
|
+
allowHalf: allowHalf,
|
|
31
|
+
count: Number(count),
|
|
32
|
+
defaultValue: Number(value),
|
|
33
|
+
dir: dir,
|
|
34
|
+
disabled: disabled,
|
|
35
|
+
labelText: labelText.text,
|
|
36
|
+
size: size
|
|
37
|
+
})
|
|
38
|
+
});
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import code_connect from "@figma/code-connect";
|
|
3
|
+
import { Skeleton } from "../skeleton.js";
|
|
4
|
+
const placeholderBgClassByVariant = {
|
|
5
|
+
primary: "bg-skeleton-bg-primary",
|
|
6
|
+
secondary: "bg-skeleton-bg-secondary"
|
|
7
|
+
};
|
|
8
|
+
code_connect.connect(Skeleton.Rectangle, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=565-101", {
|
|
9
|
+
imports: [
|
|
10
|
+
'import { Skeleton } from "@techsio/ui-kit/atoms/skeleton"'
|
|
11
|
+
],
|
|
12
|
+
props: {
|
|
13
|
+
variant: code_connect["enum"]("variant", {
|
|
14
|
+
primary: "primary",
|
|
15
|
+
secondary: "secondary"
|
|
16
|
+
}),
|
|
17
|
+
speed: code_connect["enum"]("speed", {
|
|
18
|
+
slow: "slow",
|
|
19
|
+
normal: "normal",
|
|
20
|
+
fast: "fast"
|
|
21
|
+
})
|
|
22
|
+
},
|
|
23
|
+
example: ({ speed, variant })=>{
|
|
24
|
+
const placeholderBgClass = placeholderBgClassByVariant[variant];
|
|
25
|
+
return /*#__PURE__*/ jsx(Skeleton.Rectangle, {
|
|
26
|
+
speed: speed,
|
|
27
|
+
variant: variant,
|
|
28
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
29
|
+
className: `h-20 w-xs rounded-md ${placeholderBgClass}`
|
|
30
|
+
})
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
code_connect.connect(Skeleton.Circle, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=565-198", {
|
|
35
|
+
imports: [
|
|
36
|
+
'import { Skeleton } from "@techsio/ui-kit/atoms/skeleton"'
|
|
37
|
+
],
|
|
38
|
+
props: {
|
|
39
|
+
variant: code_connect["enum"]("variant", {
|
|
40
|
+
primary: "primary",
|
|
41
|
+
secondary: "secondary"
|
|
42
|
+
}),
|
|
43
|
+
speed: code_connect["enum"]("speed", {
|
|
44
|
+
slow: "slow",
|
|
45
|
+
normal: "normal",
|
|
46
|
+
fast: "fast"
|
|
47
|
+
}),
|
|
48
|
+
size: code_connect["enum"]("size", {
|
|
49
|
+
sm: "sm",
|
|
50
|
+
md: "md",
|
|
51
|
+
lg: "lg",
|
|
52
|
+
xl: "xl"
|
|
53
|
+
})
|
|
54
|
+
},
|
|
55
|
+
example: ({ size, speed, variant })=>{
|
|
56
|
+
const placeholderBgClass = placeholderBgClassByVariant[variant];
|
|
57
|
+
return /*#__PURE__*/ jsx(Skeleton.Circle, {
|
|
58
|
+
size: size,
|
|
59
|
+
speed: speed,
|
|
60
|
+
variant: variant,
|
|
61
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
62
|
+
className: `size-16 rounded-full ${placeholderBgClass}`
|
|
63
|
+
})
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
code_connect.connect(Skeleton.Text, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=565-2143", {
|
|
68
|
+
imports: [
|
|
69
|
+
'import { Skeleton } from "@techsio/ui-kit/atoms/skeleton"'
|
|
70
|
+
],
|
|
71
|
+
props: {
|
|
72
|
+
variant: code_connect["enum"]("variant", {
|
|
73
|
+
primary: "primary",
|
|
74
|
+
secondary: "secondary"
|
|
75
|
+
}),
|
|
76
|
+
speed: code_connect["enum"]("speed", {
|
|
77
|
+
slow: "slow",
|
|
78
|
+
normal: "normal",
|
|
79
|
+
fast: "fast"
|
|
80
|
+
}),
|
|
81
|
+
size: code_connect["enum"]("size", {
|
|
82
|
+
sm: "sm",
|
|
83
|
+
md: "md",
|
|
84
|
+
lg: "lg",
|
|
85
|
+
xl: "xl"
|
|
86
|
+
}),
|
|
87
|
+
noOfLines: code_connect["enum"]("noOfLines", {
|
|
88
|
+
1: 1,
|
|
89
|
+
3: 3,
|
|
90
|
+
5: 5
|
|
91
|
+
}),
|
|
92
|
+
lastLineWidth: code_connect["enum"]("lastLineWidth", {
|
|
93
|
+
"60%": "60%",
|
|
94
|
+
"80%": "80%",
|
|
95
|
+
"90%": "90%"
|
|
96
|
+
})
|
|
97
|
+
},
|
|
98
|
+
example: ({ lastLineWidth, noOfLines, size, speed, variant })=>{
|
|
99
|
+
const placeholderBgClass = placeholderBgClassByVariant[variant];
|
|
100
|
+
return /*#__PURE__*/ jsx(Skeleton.Text, {
|
|
101
|
+
lastLineWidth: lastLineWidth,
|
|
102
|
+
noOfLines: noOfLines,
|
|
103
|
+
size: size,
|
|
104
|
+
speed: speed,
|
|
105
|
+
variant: variant,
|
|
106
|
+
children: /*#__PURE__*/ jsxs("div", {
|
|
107
|
+
className: "w-xs space-y-150",
|
|
108
|
+
children: [
|
|
109
|
+
/*#__PURE__*/ jsx("div", {
|
|
110
|
+
className: `h-4 w-full rounded-sm ${placeholderBgClass}`
|
|
111
|
+
}),
|
|
112
|
+
/*#__PURE__*/ jsx("div", {
|
|
113
|
+
className: `h-4 w-4/5 rounded-sm ${placeholderBgClass}`
|
|
114
|
+
})
|
|
115
|
+
]
|
|
116
|
+
})
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import code_connect from "@figma/code-connect";
|
|
3
|
+
import { StatusText } from "../status-text.js";
|
|
4
|
+
code_connect.connect(StatusText, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=304-35", {
|
|
5
|
+
imports: [
|
|
6
|
+
'import { StatusText } from "@libs/ui/atoms/status-text"'
|
|
7
|
+
],
|
|
8
|
+
props: {
|
|
9
|
+
size: code_connect["enum"]("size", {
|
|
10
|
+
sm: "sm",
|
|
11
|
+
md: "md",
|
|
12
|
+
lg: "lg"
|
|
13
|
+
}),
|
|
14
|
+
status: code_connect["enum"]("status", {
|
|
15
|
+
default: "default",
|
|
16
|
+
error: "error",
|
|
17
|
+
success: "success",
|
|
18
|
+
warning: "warning"
|
|
19
|
+
}),
|
|
20
|
+
children: code_connect.string("children")
|
|
21
|
+
},
|
|
22
|
+
example: ({ size, status, children })=>/*#__PURE__*/ jsx(StatusText, {
|
|
23
|
+
size: size,
|
|
24
|
+
status: status,
|
|
25
|
+
children: children
|
|
26
|
+
})
|
|
27
|
+
});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import code_connect from "@figma/code-connect";
|
|
3
|
+
import { Textarea } from "../textarea.js";
|
|
4
|
+
code_connect.connect(Textarea, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=502-93", {
|
|
5
|
+
imports: [
|
|
6
|
+
'import { Textarea } from "@techsio/ui-kit/atoms/textarea"'
|
|
7
|
+
],
|
|
8
|
+
props: {
|
|
9
|
+
size: code_connect["enum"]("size", {
|
|
10
|
+
sm: "sm",
|
|
11
|
+
md: "md",
|
|
12
|
+
lg: "lg"
|
|
13
|
+
}),
|
|
14
|
+
variant: code_connect["enum"]("variant", {
|
|
15
|
+
default: "default",
|
|
16
|
+
error: "error",
|
|
17
|
+
success: "success",
|
|
18
|
+
warning: "warning",
|
|
19
|
+
borderless: "borderless"
|
|
20
|
+
}),
|
|
21
|
+
disabled: code_connect["enum"]("state", {
|
|
22
|
+
default: false,
|
|
23
|
+
disabled: true,
|
|
24
|
+
readonly: false
|
|
25
|
+
}),
|
|
26
|
+
readonly: code_connect["enum"]("state", {
|
|
27
|
+
default: false,
|
|
28
|
+
disabled: false,
|
|
29
|
+
readonly: true
|
|
30
|
+
})
|
|
31
|
+
},
|
|
32
|
+
example: ({ size, variant, disabled, readonly })=>/*#__PURE__*/ jsx(Textarea, {
|
|
33
|
+
size: size,
|
|
34
|
+
variant: variant,
|
|
35
|
+
disabled: disabled,
|
|
36
|
+
readonly: readonly
|
|
37
|
+
})
|
|
38
|
+
});
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import code_connect from "@figma/code-connect";
|
|
3
|
+
import { Button } from "../button.js";
|
|
4
|
+
import { Tooltip } from "../tooltip.js";
|
|
5
|
+
code_connect.connect(Tooltip, "https://www.figma.com/design/12xb1pqXKwE2vbOByN3ntg/New-Design-System-vol.-2?node-id=340-436", {
|
|
6
|
+
imports: [
|
|
7
|
+
'import { Tooltip } from "@techsio/ui-kit/atoms/tooltip"',
|
|
8
|
+
'import { Button } from "@techsio/ui-kit/atoms/button"'
|
|
9
|
+
],
|
|
10
|
+
props: {
|
|
11
|
+
size: code_connect["enum"]("size", {
|
|
12
|
+
sm: "sm",
|
|
13
|
+
md: "md",
|
|
14
|
+
lg: "lg"
|
|
15
|
+
}),
|
|
16
|
+
variant: code_connect["enum"]("variant", {
|
|
17
|
+
default: "default",
|
|
18
|
+
outline: "outline"
|
|
19
|
+
}),
|
|
20
|
+
placement: code_connect["enum"]("placement", {
|
|
21
|
+
top: "top",
|
|
22
|
+
"top-start": "top-start",
|
|
23
|
+
"top-end": "top-end",
|
|
24
|
+
right: "right",
|
|
25
|
+
"right-start": "right-start",
|
|
26
|
+
"right-end": "right-end",
|
|
27
|
+
bottom: "bottom",
|
|
28
|
+
"bottom-start": "bottom-start",
|
|
29
|
+
"bottom-end": "bottom-end",
|
|
30
|
+
left: "left",
|
|
31
|
+
"left-start": "left-start",
|
|
32
|
+
"left-end": "left-end"
|
|
33
|
+
})
|
|
34
|
+
},
|
|
35
|
+
example: ({ placement, size, variant })=>/*#__PURE__*/ jsx(Tooltip, {
|
|
36
|
+
content: "Tooltip content",
|
|
37
|
+
open: true,
|
|
38
|
+
placement: placement,
|
|
39
|
+
size: size,
|
|
40
|
+
variant: variant,
|
|
41
|
+
children: /*#__PURE__*/ jsx(Button, {
|
|
42
|
+
size: "sm",
|
|
43
|
+
variant: "secondary",
|
|
44
|
+
children: "Hover me"
|
|
45
|
+
})
|
|
46
|
+
})
|
|
47
|
+
});
|
package/dist/atoms/icon.js
CHANGED
|
@@ -2,40 +2,40 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { tv } from "../utils.js";
|
|
3
3
|
const iconVariants = tv({
|
|
4
4
|
base: [
|
|
5
|
-
|
|
5
|
+
"inline-block flex-shrink-0 self-center align-middle leading-none"
|
|
6
6
|
],
|
|
7
7
|
variants: {
|
|
8
8
|
size: {
|
|
9
|
-
current:
|
|
10
|
-
xs:
|
|
11
|
-
sm:
|
|
12
|
-
md:
|
|
13
|
-
lg:
|
|
14
|
-
xl:
|
|
15
|
-
|
|
9
|
+
current: "",
|
|
10
|
+
xs: "text-icon-xs",
|
|
11
|
+
sm: "text-icon-sm",
|
|
12
|
+
md: "text-icon-md",
|
|
13
|
+
lg: "text-icon-lg",
|
|
14
|
+
xl: "text-icon-xl",
|
|
15
|
+
"2xl": "text-icon-2xl"
|
|
16
16
|
},
|
|
17
17
|
color: {
|
|
18
|
-
current:
|
|
19
|
-
primary:
|
|
20
|
-
secondary:
|
|
21
|
-
danger:
|
|
22
|
-
success:
|
|
23
|
-
warning:
|
|
18
|
+
current: "text-current",
|
|
19
|
+
primary: "text-primary",
|
|
20
|
+
secondary: "text-secondary",
|
|
21
|
+
danger: "text-danger",
|
|
22
|
+
success: "text-success",
|
|
23
|
+
warning: "text-warning"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
defaultVariants: {
|
|
27
|
-
size:
|
|
28
|
-
color:
|
|
27
|
+
size: "current",
|
|
28
|
+
color: "current"
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
31
|
function Icon({ icon, size, color, className, ...props }) {
|
|
32
32
|
return /*#__PURE__*/ jsx("span", {
|
|
33
|
+
"aria-hidden": "true",
|
|
33
34
|
className: `${iconVariants({
|
|
34
35
|
size,
|
|
35
36
|
color,
|
|
36
37
|
className
|
|
37
38
|
})} ${icon}`,
|
|
38
|
-
"aria-hidden": "true",
|
|
39
39
|
...props
|
|
40
40
|
});
|
|
41
41
|
}
|
package/dist/atoms/image.js
CHANGED
|
@@ -1,10 +1,28 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { tv } from "../utils.js";
|
|
3
|
+
const imageVariants = tv({
|
|
4
|
+
variants: {
|
|
5
|
+
size: {
|
|
6
|
+
sm: "size-image-sm",
|
|
7
|
+
md: "size-image-md",
|
|
8
|
+
lg: "size-image-lg",
|
|
9
|
+
full: "w-full",
|
|
10
|
+
custom: ""
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
defaultVariants: {
|
|
14
|
+
size: "full"
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
function Image({ as, src, alt, size, className, ...props }) {
|
|
18
|
+
const Component = as || "img";
|
|
4
19
|
return /*#__PURE__*/ jsx(Component, {
|
|
5
|
-
src: src,
|
|
6
20
|
alt: alt,
|
|
7
|
-
className:
|
|
21
|
+
className: imageVariants({
|
|
22
|
+
size,
|
|
23
|
+
className
|
|
24
|
+
}),
|
|
25
|
+
src: src,
|
|
8
26
|
...props
|
|
9
27
|
});
|
|
10
28
|
}
|