@scania/tegel 0.0.2 → 0.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-b98965c7.js → index-18eb94f0.js} +267 -4
- package/dist/cjs/index-18eb94f0.js.map +1 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +6 -3
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/popper-11d5f714.js +2 -0
- package/dist/cjs/popper-11d5f714.js.map +1 -0
- package/dist/cjs/sdds-accordion-item.cjs.entry.js +25 -23
- package/dist/cjs/sdds-accordion-item.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-accordion.cjs.entry.js +13 -11
- package/dist/cjs/sdds-accordion.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-badges.cjs.entry.js +46 -44
- package/dist/cjs/sdds-badges.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-banner.cjs.entry.js +71 -69
- package/dist/cjs/sdds-banner.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-block.cjs.entry.js +24 -22
- package/dist/cjs/sdds-block.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-body-cell_2.cjs.entry.js +160 -158
- package/dist/cjs/sdds-body-cell_2.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-breadcrumb-item.cjs.entry.js +16 -14
- package/dist/cjs/sdds-breadcrumb-item.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-breadcrumb.cjs.entry.js +15 -13
- package/dist/cjs/sdds-breadcrumb.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-button.cjs.entry.js +25 -23
- package/dist/cjs/sdds-button.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-card.cjs.entry.js +40 -38
- package/dist/cjs/sdds-card.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-checkbox.cjs.entry.js +47 -45
- package/dist/cjs/sdds-checkbox.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-datetime.cjs.entry.js +78 -76
- package/dist/cjs/sdds-datetime.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-dropdown-filter.cjs.entry.js +84 -82
- package/dist/cjs/sdds-dropdown-filter.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-dropdown_2.cjs.entry.js +318 -316
- package/dist/cjs/sdds-dropdown_2.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-header-cell.cjs.entry.js +131 -129
- package/dist/cjs/sdds-header-cell.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-icon.cjs.entry.js +32 -30
- package/dist/cjs/sdds-icon.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-inline-tab.cjs.entry.js +14 -12
- package/dist/cjs/sdds-inline-tab.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-inline-tabs-fullbleed.cjs.entry.js +90 -88
- package/dist/cjs/sdds-inline-tabs-fullbleed.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-inline-tabs.cjs.entry.js +213 -211
- package/dist/cjs/sdds-inline-tabs.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-link.cjs.entry.js +16 -14
- package/dist/cjs/sdds-link.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-message.cjs.entry.js +30 -28
- package/dist/cjs/sdds-message.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-modal.cjs.entry.js +43 -41
- package/dist/cjs/sdds-modal.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-navigation-tabs.cjs.entry.js +90 -88
- package/dist/cjs/sdds-navigation-tabs.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-popover-canvas.cjs.entry.js +75 -73
- package/dist/cjs/sdds-popover-canvas.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-popover-menu.cjs.entry.js +76 -74
- package/dist/cjs/sdds-popover-menu.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-radio-button.cjs.entry.js +24 -22
- package/dist/cjs/sdds-radio-button.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-slider.cjs.entry.js +349 -347
- package/dist/cjs/sdds-slider.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-spinner.cjs.entry.js +13 -11
- package/dist/cjs/sdds-spinner.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-table-body-row-expandable.cjs.entry.js +74 -72
- package/dist/cjs/sdds-table-body-row-expandable.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-table-body.cjs.entry.js +236 -234
- package/dist/cjs/sdds-table-body.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-table-footer.cjs.entry.js +156 -154
- package/dist/cjs/sdds-table-footer.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-table-header.cjs.entry.js +91 -89
- package/dist/cjs/sdds-table-header.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-table-toolbar.cjs.entry.js +57 -55
- package/dist/cjs/sdds-table-toolbar.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-table.cjs.entry.js +60 -58
- package/dist/cjs/sdds-table.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-textarea.cjs.entry.js +57 -55
- package/dist/cjs/sdds-textarea.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-textfield.cjs.entry.js +72 -70
- package/dist/cjs/sdds-textfield.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-toast.cjs.entry.js +74 -72
- package/dist/cjs/sdds-toast.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-toggle.cjs.entry.js +36 -34
- package/dist/cjs/sdds-toggle.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-tooltip.cjs.entry.js +95 -93
- package/dist/cjs/sdds-tooltip.cjs.entry.js.map +1 -0
- package/dist/cjs/tegel.cjs.js +12 -3
- package/dist/cjs/tegel.cjs.js.map +1 -0
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/accordion/accordion-item/accordion-item.js +146 -145
- package/dist/collection/components/accordion/accordion-item/accordion-item.js.map +1 -0
- package/dist/collection/components/accordion/accordion.js +63 -62
- package/dist/collection/components/accordion/accordion.js.map +1 -0
- package/dist/collection/components/accordion/accordion.stories.js +89 -79
- package/dist/collection/components/accordion/accordion.stories.js.map +1 -0
- package/dist/collection/components/badge/badge.stories.js +68 -67
- package/dist/collection/components/badge/badge.stories.js.map +1 -0
- package/dist/collection/components/badge/badges.js +148 -147
- package/dist/collection/components/badge/badges.js.map +1 -0
- package/dist/collection/components/banner/banner.stories.js +79 -78
- package/dist/collection/components/banner/banner.stories.js.map +1 -0
- package/dist/collection/components/banner/sdds-banner.js +331 -330
- package/dist/collection/components/banner/sdds-banner.js.map +1 -0
- package/dist/collection/components/banner/sdds-banner.stories.js +110 -109
- package/dist/collection/components/banner/sdds-banner.stories.js.map +1 -0
- package/dist/collection/components/block/block-native.stories.js +40 -39
- package/dist/collection/components/block/block-native.stories.js.map +1 -0
- package/dist/collection/components/block/sdds-block.js +56 -55
- package/dist/collection/components/block/sdds-block.js.map +1 -0
- package/dist/collection/components/block/sdds-block.stories.js +40 -39
- package/dist/collection/components/block/sdds-block.stories.js.map +1 -0
- package/dist/collection/components/breadcrumb/breadcrumb-item/breadcrumb-item.js +83 -82
- package/dist/collection/components/breadcrumb/breadcrumb-item/breadcrumb-item.js.map +1 -0
- package/dist/collection/components/breadcrumb/breadcrumb.js +23 -22
- package/dist/collection/components/breadcrumb/breadcrumb.js.map +1 -0
- package/dist/collection/components/breadcrumb/breadcrumb.stories.js +21 -20
- package/dist/collection/components/breadcrumb/breadcrumb.stories.js.map +1 -0
- package/dist/collection/components/button/button-component.js +152 -151
- package/dist/collection/components/button/button-component.js.map +1 -0
- package/dist/collection/components/button/button-native.stories.js +168 -167
- package/dist/collection/components/button/button-native.stories.js.map +1 -0
- package/dist/collection/components/button/button-webcomponent.stories.js +168 -167
- package/dist/collection/components/button/button-webcomponent.stories.js.map +1 -0
- package/dist/collection/components/card/card.stories.js +140 -139
- package/dist/collection/components/card/card.stories.js.map +1 -0
- package/dist/collection/components/card/sdds-card.js +269 -268
- package/dist/collection/components/card/sdds-card.js.map +1 -0
- package/dist/collection/components/card/sdds-card.stories.js +138 -137
- package/dist/collection/components/card/sdds-card.stories.js.map +1 -0
- package/dist/collection/components/checkbox/checkbox.stories.js +50 -49
- package/dist/collection/components/checkbox/checkbox.stories.js.map +1 -0
- package/dist/collection/components/checkbox/sdds-checkbox.js +240 -239
- package/dist/collection/components/checkbox/sdds-checkbox.js.map +1 -0
- package/dist/collection/components/checkbox/sdds-checkbox.stories.js +50 -49
- package/dist/collection/components/checkbox/sdds-checkbox.stories.js.map +1 -0
- package/dist/collection/components/chips/chips.stories.js +94 -93
- package/dist/collection/components/chips/chips.stories.js.map +1 -0
- package/dist/collection/components/data-table/native-table.stories.js +125 -124
- package/dist/collection/components/data-table/native-table.stories.js.map +1 -0
- package/dist/collection/components/data-table/table/table.js +254 -252
- package/dist/collection/components/data-table/table/table.js.map +1 -0
- package/dist/collection/components/data-table/table-body/table-body.js +426 -425
- package/dist/collection/components/data-table/table-body/table-body.js.map +1 -0
- package/dist/collection/components/data-table/table-body-cell/table-body-cell.js +169 -168
- package/dist/collection/components/data-table/table-body-cell/table-body-cell.js.map +1 -0
- package/dist/collection/components/data-table/table-body-row/table-body-row.js +166 -165
- package/dist/collection/components/data-table/table-body-row/table-body-row.js.map +1 -0
- package/dist/collection/components/data-table/table-body-row-expandable/table-body-row-expandable.js +157 -156
- package/dist/collection/components/data-table/table-body-row-expandable/table-body-row-expandable.js.map +1 -0
- package/dist/collection/components/data-table/table-component-basic.stories.js +111 -110
- package/dist/collection/components/data-table/table-component-basic.stories.js.map +1 -0
- package/dist/collection/components/data-table/table-component-batch-actions.stories.js +109 -108
- package/dist/collection/components/data-table/table-component-batch-actions.stories.js.map +1 -0
- package/dist/collection/components/data-table/table-component-bodydata.stories.js +50 -49
- package/dist/collection/components/data-table/table-component-bodydata.stories.js.map +1 -0
- package/dist/collection/components/data-table/table-component-custom-width.stories.js +146 -145
- package/dist/collection/components/data-table/table-component-custom-width.stories.js.map +1 -0
- package/dist/collection/components/data-table/table-component-event-listeners.stories.js +98 -97
- package/dist/collection/components/data-table/table-component-event-listeners.stories.js.map +1 -0
- package/dist/collection/components/data-table/table-component-expandable-rows.stories.js +98 -97
- package/dist/collection/components/data-table/table-component-expandable-rows.stories.js.map +1 -0
- package/dist/collection/components/data-table/table-component-filtering.stories.js +118 -117
- package/dist/collection/components/data-table/table-component-filtering.stories.js.map +1 -0
- package/dist/collection/components/data-table/table-component-multiselect.stories.js +111 -110
- package/dist/collection/components/data-table/table-component-multiselect.stories.js.map +1 -0
- package/dist/collection/components/data-table/table-component-pagination.stories.js +111 -110
- package/dist/collection/components/data-table/table-component-pagination.stories.js.map +1 -0
- package/dist/collection/components/data-table/table-component-sorting.stories.js +110 -109
- package/dist/collection/components/data-table/table-component-sorting.stories.js.map +1 -0
- package/dist/collection/components/data-table/table-footer/table-footer.js +355 -354
- package/dist/collection/components/data-table/table-footer/table-footer.js.map +1 -0
- package/dist/collection/components/data-table/table-header/table-header.js +153 -152
- package/dist/collection/components/data-table/table-header/table-header.js.map +1 -0
- package/dist/collection/components/data-table/table-header-cell/table-header-cell.js +318 -317
- package/dist/collection/components/data-table/table-header-cell/table-header-cell.js.map +1 -0
- package/dist/collection/components/data-table/table-toolbar/table-toolbar.js +142 -141
- package/dist/collection/components/data-table/table-toolbar/table-toolbar.js.map +1 -0
- package/dist/collection/components/datetime/datetime.js +344 -343
- package/dist/collection/components/datetime/datetime.js.map +1 -0
- package/dist/collection/components/datetime/datetime.stories.js +171 -170
- package/dist/collection/components/datetime/datetime.stories.js.map +1 -0
- package/dist/collection/components/divider/divider.stories.js +94 -93
- package/dist/collection/components/divider/divider.stories.js.map +1 -0
- package/dist/collection/components/dropdown/dropdown-filter/dropdown-filter.js +340 -339
- package/dist/collection/components/dropdown/dropdown-filter/dropdown-filter.js.map +1 -0
- package/dist/collection/components/dropdown/dropdown-filter/dropdown-filter.stories.js +94 -93
- package/dist/collection/components/dropdown/dropdown-filter/dropdown-filter.stories.js.map +1 -0
- package/dist/collection/components/dropdown/dropdown-native.stories.js +69 -68
- package/dist/collection/components/dropdown/dropdown-native.stories.js.map +1 -0
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +186 -185
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js.map +1 -0
- package/dist/collection/components/dropdown/dropdown-wc-default.stories.js +139 -138
- package/dist/collection/components/dropdown/dropdown-wc-default.stories.js.map +1 -0
- package/dist/collection/components/dropdown/dropdown-wc-multiselect.stories.js +120 -119
- package/dist/collection/components/dropdown/dropdown-wc-multiselect.stories.js.map +1 -0
- package/dist/collection/components/dropdown/dropdown.js +568 -567
- package/dist/collection/components/dropdown/dropdown.js.map +1 -0
- package/dist/collection/components/footer/footer.stories.js +53 -52
- package/dist/collection/components/footer/footer.stories.js.map +1 -0
- package/dist/collection/components/header/header-all.stories.js +39 -38
- package/dist/collection/components/header/header-all.stories.js.map +1 -0
- package/dist/collection/components/header/header-default.stories.js +39 -38
- package/dist/collection/components/header/header-default.stories.js.map +1 -0
- package/dist/collection/components/header/header-inline.stories.js +39 -38
- package/dist/collection/components/header/header-inline.stories.js.map +1 -0
- package/dist/collection/components/header/header-search.stories.js +39 -38
- package/dist/collection/components/header/header-search.stories.js.map +1 -0
- package/dist/collection/components/header/header-toolbar.stories.js +39 -38
- package/dist/collection/components/header/header-toolbar.stories.js.map +1 -0
- package/dist/collection/components/icon/icon-font.stories.js +50 -49
- package/dist/collection/components/icon/icon-font.stories.js.map +1 -0
- package/dist/collection/components/icon/icon-web-component.stories.js +50 -49
- package/dist/collection/components/icon/icon-web-component.stories.js.map +1 -0
- package/dist/collection/components/icon/icon.js +90 -89
- package/dist/collection/components/icon/icon.js.map +1 -0
- package/dist/collection/components/link/link.stories.js +42 -41
- package/dist/collection/components/link/link.stories.js.map +1 -0
- package/dist/collection/components/link/sdds-link.js +118 -117
- package/dist/collection/components/link/sdds-link.js.map +1 -0
- package/dist/collection/components/link/sdds-link.stories.js +62 -61
- package/dist/collection/components/link/sdds-link.stories.js.map +1 -0
- package/dist/collection/components/message/message.stories.js +94 -93
- package/dist/collection/components/message/message.stories.js.map +1 -0
- package/dist/collection/components/message/sdds-message.js +133 -132
- package/dist/collection/components/message/sdds-message.js.map +1 -0
- package/dist/collection/components/message/sdds-message.stories.js +89 -88
- package/dist/collection/components/message/sdds-message.stories.js.map +1 -0
- package/dist/collection/components/modal/modal-native.stories.js +75 -74
- package/dist/collection/components/modal/modal-native.stories.js.map +1 -0
- package/dist/collection/components/modal/modal-webcomponent.stories.js +69 -68
- package/dist/collection/components/modal/modal-webcomponent.stories.js.map +1 -0
- package/dist/collection/components/modal/modal.js +149 -148
- package/dist/collection/components/modal/modal.js.map +1 -0
- package/dist/collection/components/popover-canvas/popover-canvas.js +220 -219
- package/dist/collection/components/popover-canvas/popover-canvas.js.map +1 -0
- package/dist/collection/components/popover-canvas/popover-canvas.stories.js +56 -55
- package/dist/collection/components/popover-canvas/popover-canvas.stories.js.map +1 -0
- package/dist/collection/components/popover-menu/popover-menu-icons.stories.js +67 -66
- package/dist/collection/components/popover-menu/popover-menu-icons.stories.js.map +1 -0
- package/dist/collection/components/popover-menu/popover-menu.js +221 -220
- package/dist/collection/components/popover-menu/popover-menu.js.map +1 -0
- package/dist/collection/components/popover-menu/popover-menu.stories.js +67 -66
- package/dist/collection/components/popover-menu/popover-menu.stories.js.map +1 -0
- package/dist/collection/components/radio-button/radio-button-component.stories.js +47 -46
- package/dist/collection/components/radio-button/radio-button-component.stories.js.map +1 -0
- package/dist/collection/components/radio-button/radio-button.js +161 -160
- package/dist/collection/components/radio-button/radio-button.js.map +1 -0
- package/dist/collection/components/radio-button/radio-button.stories.js +42 -41
- package/dist/collection/components/radio-button/radio-button.stories.js.map +1 -0
- package/dist/collection/components/side-menu/side-menu.stories.js +51 -50
- package/dist/collection/components/side-menu/side-menu.stories.js.map +1 -0
- package/dist/collection/components/slider/slider.js +722 -721
- package/dist/collection/components/slider/slider.js.map +1 -0
- package/dist/collection/components/slider/slider.stories.js +179 -178
- package/dist/collection/components/slider/slider.stories.js.map +1 -0
- package/dist/collection/components/spinner/spinner.js +62 -61
- package/dist/collection/components/spinner/spinner.js.map +1 -0
- package/dist/collection/components/spinner/spinner.stories.js +55 -54
- package/dist/collection/components/spinner/spinner.stories.js.map +1 -0
- package/dist/collection/components/stepper/stepper.stories.js +96 -95
- package/dist/collection/components/stepper/stepper.stories.js.map +1 -0
- package/dist/collection/components/tabs/inline-tabs-default/inline-tab/inline-tab.js +81 -80
- package/dist/collection/components/tabs/inline-tabs-default/inline-tab/inline-tab.js.map +1 -0
- package/dist/collection/components/tabs/inline-tabs-default/inline-tabs.js +313 -312
- package/dist/collection/components/tabs/inline-tabs-default/inline-tabs.js.map +1 -0
- package/dist/collection/components/tabs/inline-tabs-default/inline-tabs.stories.js +57 -56
- package/dist/collection/components/tabs/inline-tabs-default/inline-tabs.stories.js.map +1 -0
- package/dist/collection/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.js +129 -128
- package/dist/collection/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.js.map +1 -0
- package/dist/collection/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.stories.js +39 -38
- package/dist/collection/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.stories.js.map +1 -0
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +129 -128
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js.map +1 -0
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.stories.js +25 -24
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.stories.js.map +1 -0
- package/dist/collection/components/textarea/textarea.js +394 -393
- package/dist/collection/components/textarea/textarea.js.map +1 -0
- package/dist/collection/components/textarea/textarea.stories.js +131 -130
- package/dist/collection/components/textarea/textarea.stories.js.map +1 -0
- package/dist/collection/components/textfield/textfield.js +429 -428
- package/dist/collection/components/textfield/textfield.js.map +1 -0
- package/dist/collection/components/textfield/textfield.stories.js +191 -190
- package/dist/collection/components/textfield/textfield.stories.js.map +1 -0
- package/dist/collection/components/toast/sdds-toast.js +253 -252
- package/dist/collection/components/toast/sdds-toast.js.map +1 -0
- package/dist/collection/components/toast/sdds-toast.stories.js +70 -69
- package/dist/collection/components/toast/sdds-toast.stories.js.map +1 -0
- package/dist/collection/components/toast/toast.stories.js +101 -100
- package/dist/collection/components/toast/toast.stories.js.map +1 -0
- package/dist/collection/components/toggle/sdds-toggle.js +262 -261
- package/dist/collection/components/toggle/sdds-toggle.js.map +1 -0
- package/dist/collection/components/toggle/sdds-toggle.stories.js +78 -77
- package/dist/collection/components/toggle/sdds-toggle.stories.js.map +1 -0
- package/dist/collection/components/toggle/toggle.stories.js +66 -65
- package/dist/collection/components/toggle/toggle.stories.js.map +1 -0
- package/dist/collection/components/tooltip/tooltip.js +230 -229
- package/dist/collection/components/tooltip/tooltip.js.map +1 -0
- package/dist/collection/components/tooltip/tooltip.stories.js +91 -90
- package/dist/collection/components/tooltip/tooltip.stories.js.map +1 -0
- package/dist/collection/components/utility/colour/background-color.stories.js +84 -83
- package/dist/collection/components/utility/colour/background-color.stories.js.map +1 -0
- package/dist/collection/components/utility/colour/text-color.stories.js +84 -83
- package/dist/collection/components/utility/colour/text-color.stories.js.map +1 -0
- package/dist/collection/foundations-stories/colour/colour-brand.stories.js +15 -14
- package/dist/collection/foundations-stories/colour/colour-brand.stories.js.map +1 -0
- package/dist/collection/foundations-stories/colour/colour-scales.stories.js +54 -53
- package/dist/collection/foundations-stories/colour/colour-scales.stories.js.map +1 -0
- package/dist/collection/foundations-stories/colour/colour-semantic.stories.js +15 -14
- package/dist/collection/foundations-stories/colour/colour-semantic.stories.js.map +1 -0
- package/dist/collection/foundations-stories/grid/grid.stories.js +53 -52
- package/dist/collection/foundations-stories/grid/grid.stories.js.map +1 -0
- package/dist/collection/foundations-stories/spacing/spacing-element.stories.js +11 -10
- package/dist/collection/foundations-stories/spacing/spacing-element.stories.js.map +1 -0
- package/dist/collection/foundations-stories/spacing/spacing-layout.stories.js +11 -10
- package/dist/collection/foundations-stories/spacing/spacing-layout.stories.js.map +1 -0
- package/dist/collection/foundations-stories/typography/typography-body.stories.js +10 -9
- package/dist/collection/foundations-stories/typography/typography-body.stories.js.map +1 -0
- package/dist/collection/foundations-stories/typography/typography-detail.stories.js +10 -9
- package/dist/collection/foundations-stories/typography/typography-detail.stories.js.map +1 -0
- package/dist/collection/foundations-stories/typography/typography-headline.stories.js +23 -22
- package/dist/collection/foundations-stories/typography/typography-headline.stories.js.map +1 -0
- package/dist/collection/foundations-stories/typography/typography-paragraph.stories.js +10 -9
- package/dist/collection/foundations-stories/typography/typography-paragraph.stories.js.map +1 -0
- package/dist/collection/index.js +2 -1
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/utils/utils.js +13 -12
- package/dist/collection/utils/utils.js.map +1 -0
- package/dist/components/dropdown-option.js +96 -93
- package/dist/components/dropdown-option.js.map +1 -0
- package/dist/components/dropdown.js +289 -286
- package/dist/components/dropdown.js.map +1 -0
- package/dist/components/icon.js +52 -49
- package/dist/components/icon.js.map +1 -0
- package/dist/components/index.d.ts +9 -44
- package/dist/components/index.js +3 -42
- package/dist/components/index.js.map +1 -0
- package/dist/components/popper.js +2 -0
- package/dist/components/popper.js.map +1 -0
- package/dist/components/sdds-accordion-item.js +51 -48
- package/dist/components/sdds-accordion-item.js.map +1 -0
- package/dist/components/sdds-accordion.js +31 -28
- package/dist/components/sdds-accordion.js.map +1 -0
- package/dist/components/sdds-badges.js +68 -65
- package/dist/components/sdds-badges.js.map +1 -0
- package/dist/components/sdds-banner.js +110 -107
- package/dist/components/sdds-banner.js.map +1 -0
- package/dist/components/sdds-block.js +41 -38
- package/dist/components/sdds-block.js.map +1 -0
- package/dist/components/sdds-body-cell.js +2 -0
- package/dist/components/sdds-body-cell.js.map +1 -0
- package/dist/components/sdds-breadcrumb-item.js +35 -32
- package/dist/components/sdds-breadcrumb-item.js.map +1 -0
- package/dist/components/sdds-breadcrumb.js +30 -27
- package/dist/components/sdds-breadcrumb.js.map +1 -0
- package/dist/components/sdds-button.js +48 -45
- package/dist/components/sdds-button.js.map +1 -0
- package/dist/components/sdds-card.js +69 -66
- package/dist/components/sdds-card.js.map +1 -0
- package/dist/components/sdds-checkbox.js +69 -66
- package/dist/components/sdds-checkbox.js.map +1 -0
- package/dist/components/sdds-datetime.js +112 -109
- package/dist/components/sdds-datetime.js.map +1 -0
- package/dist/components/sdds-dropdown-filter.js +129 -126
- package/dist/components/sdds-dropdown-filter.js.map +1 -0
- package/dist/components/sdds-dropdown-option.js +2 -0
- package/dist/components/sdds-dropdown-option.js.map +1 -0
- package/dist/components/sdds-dropdown.js +2 -0
- package/dist/components/sdds-dropdown.js.map +1 -0
- package/dist/components/sdds-header-cell.js +163 -160
- package/dist/components/sdds-header-cell.js.map +1 -0
- package/dist/components/sdds-icon.js +2 -0
- package/dist/components/sdds-icon.js.map +1 -0
- package/dist/components/sdds-inline-tab.js +33 -30
- package/dist/components/sdds-inline-tab.js.map +1 -0
- package/dist/components/sdds-inline-tabs-fullbleed.js +110 -107
- package/dist/components/sdds-inline-tabs-fullbleed.js.map +1 -0
- package/dist/components/sdds-inline-tabs.js +238 -235
- package/dist/components/sdds-inline-tabs.js.map +1 -0
- package/dist/components/sdds-link.js +2 -0
- package/dist/components/sdds-link.js.map +1 -0
- package/dist/components/sdds-link2.js +36 -33
- package/dist/components/sdds-link2.js.map +1 -0
- package/dist/components/sdds-message.js +56 -53
- package/dist/components/sdds-message.js.map +1 -0
- package/dist/components/sdds-modal.js +69 -66
- package/dist/components/sdds-modal.js.map +1 -0
- package/dist/components/sdds-navigation-tabs.js +110 -107
- package/dist/components/sdds-navigation-tabs.js.map +1 -0
- package/dist/components/sdds-popover-canvas.js +100 -97
- package/dist/components/sdds-popover-canvas.js.map +1 -0
- package/dist/components/sdds-popover-menu.js +101 -98
- package/dist/components/sdds-popover-menu.js.map +1 -0
- package/dist/components/sdds-radio-button.js +45 -42
- package/dist/components/sdds-radio-button.js.map +1 -0
- package/dist/components/sdds-slider.js +386 -383
- package/dist/components/sdds-slider.js.map +1 -0
- package/dist/components/sdds-spinner.js +30 -27
- package/dist/components/sdds-spinner.js.map +1 -0
- package/dist/components/sdds-table-body-row-expandable.js +98 -95
- package/dist/components/sdds-table-body-row-expandable.js.map +1 -0
- package/dist/components/sdds-table-body-row.js +2 -0
- package/dist/components/sdds-table-body-row.js.map +1 -0
- package/dist/components/sdds-table-body.js +283 -280
- package/dist/components/sdds-table-body.js.map +1 -0
- package/dist/components/sdds-table-footer.js +188 -185
- package/dist/components/sdds-table-footer.js.map +1 -0
- package/dist/components/sdds-table-header.js +117 -114
- package/dist/components/sdds-table-header.js.map +1 -0
- package/dist/components/sdds-table-toolbar.js +80 -77
- package/dist/components/sdds-table-toolbar.js.map +1 -0
- package/dist/components/sdds-table.js +84 -81
- package/dist/components/sdds-table.js.map +1 -0
- package/dist/components/sdds-textarea.js +92 -89
- package/dist/components/sdds-textarea.js.map +1 -0
- package/dist/components/sdds-textfield.js +108 -105
- package/dist/components/sdds-textfield.js.map +1 -0
- package/dist/components/sdds-toast.js +105 -102
- package/dist/components/sdds-toast.js.map +1 -0
- package/dist/components/sdds-toggle.js +62 -59
- package/dist/components/sdds-toggle.js.map +1 -0
- package/dist/components/sdds-tooltip.js +119 -116
- package/dist/components/sdds-tooltip.js.map +1 -0
- package/dist/components/table-body-cell.js +97 -94
- package/dist/components/table-body-cell.js.map +1 -0
- package/dist/components/table-body-row.js +116 -113
- package/dist/components/table-body-row.js.map +1 -0
- package/dist/esm/{index-32571711.js → index-96563708.js} +267 -5
- package/dist/esm/index-96563708.js.map +1 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +6 -3
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/popper-f860750c.js +2 -0
- package/dist/esm/popper-f860750c.js.map +1 -0
- package/dist/esm/sdds-accordion-item.entry.js +25 -23
- package/dist/esm/sdds-accordion-item.entry.js.map +1 -0
- package/dist/esm/sdds-accordion.entry.js +13 -11
- package/dist/esm/sdds-accordion.entry.js.map +1 -0
- package/dist/esm/sdds-badges.entry.js +46 -44
- package/dist/esm/sdds-badges.entry.js.map +1 -0
- package/dist/esm/sdds-banner.entry.js +71 -69
- package/dist/esm/sdds-banner.entry.js.map +1 -0
- package/dist/esm/sdds-block.entry.js +24 -22
- package/dist/esm/sdds-block.entry.js.map +1 -0
- package/dist/esm/sdds-body-cell_2.entry.js +160 -158
- package/dist/esm/sdds-body-cell_2.entry.js.map +1 -0
- package/dist/esm/sdds-breadcrumb-item.entry.js +16 -14
- package/dist/esm/sdds-breadcrumb-item.entry.js.map +1 -0
- package/dist/esm/sdds-breadcrumb.entry.js +15 -13
- package/dist/esm/sdds-breadcrumb.entry.js.map +1 -0
- package/dist/esm/sdds-button.entry.js +25 -23
- package/dist/esm/sdds-button.entry.js.map +1 -0
- package/dist/esm/sdds-card.entry.js +40 -38
- package/dist/esm/sdds-card.entry.js.map +1 -0
- package/dist/esm/sdds-checkbox.entry.js +47 -45
- package/dist/esm/sdds-checkbox.entry.js.map +1 -0
- package/dist/esm/sdds-datetime.entry.js +78 -76
- package/dist/esm/sdds-datetime.entry.js.map +1 -0
- package/dist/esm/sdds-dropdown-filter.entry.js +84 -82
- package/dist/esm/sdds-dropdown-filter.entry.js.map +1 -0
- package/dist/esm/sdds-dropdown_2.entry.js +318 -316
- package/dist/esm/sdds-dropdown_2.entry.js.map +1 -0
- package/dist/esm/sdds-header-cell.entry.js +131 -129
- package/dist/esm/sdds-header-cell.entry.js.map +1 -0
- package/dist/esm/sdds-icon.entry.js +32 -30
- package/dist/esm/sdds-icon.entry.js.map +1 -0
- package/dist/esm/sdds-inline-tab.entry.js +14 -12
- package/dist/esm/sdds-inline-tab.entry.js.map +1 -0
- package/dist/esm/sdds-inline-tabs-fullbleed.entry.js +90 -88
- package/dist/esm/sdds-inline-tabs-fullbleed.entry.js.map +1 -0
- package/dist/esm/sdds-inline-tabs.entry.js +213 -211
- package/dist/esm/sdds-inline-tabs.entry.js.map +1 -0
- package/dist/esm/sdds-link.entry.js +16 -14
- package/dist/esm/sdds-link.entry.js.map +1 -0
- package/dist/esm/sdds-message.entry.js +30 -28
- package/dist/esm/sdds-message.entry.js.map +1 -0
- package/dist/esm/sdds-modal.entry.js +43 -41
- package/dist/esm/sdds-modal.entry.js.map +1 -0
- package/dist/esm/sdds-navigation-tabs.entry.js +90 -88
- package/dist/esm/sdds-navigation-tabs.entry.js.map +1 -0
- package/dist/esm/sdds-popover-canvas.entry.js +75 -73
- package/dist/esm/sdds-popover-canvas.entry.js.map +1 -0
- package/dist/esm/sdds-popover-menu.entry.js +76 -74
- package/dist/esm/sdds-popover-menu.entry.js.map +1 -0
- package/dist/esm/sdds-radio-button.entry.js +24 -22
- package/dist/esm/sdds-radio-button.entry.js.map +1 -0
- package/dist/esm/sdds-slider.entry.js +349 -347
- package/dist/esm/sdds-slider.entry.js.map +1 -0
- package/dist/esm/sdds-spinner.entry.js +13 -11
- package/dist/esm/sdds-spinner.entry.js.map +1 -0
- package/dist/esm/sdds-table-body-row-expandable.entry.js +74 -72
- package/dist/esm/sdds-table-body-row-expandable.entry.js.map +1 -0
- package/dist/esm/sdds-table-body.entry.js +236 -234
- package/dist/esm/sdds-table-body.entry.js.map +1 -0
- package/dist/esm/sdds-table-footer.entry.js +156 -154
- package/dist/esm/sdds-table-footer.entry.js.map +1 -0
- package/dist/esm/sdds-table-header.entry.js +91 -89
- package/dist/esm/sdds-table-header.entry.js.map +1 -0
- package/dist/esm/sdds-table-toolbar.entry.js +57 -55
- package/dist/esm/sdds-table-toolbar.entry.js.map +1 -0
- package/dist/esm/sdds-table.entry.js +60 -58
- package/dist/esm/sdds-table.entry.js.map +1 -0
- package/dist/esm/sdds-textarea.entry.js +57 -55
- package/dist/esm/sdds-textarea.entry.js.map +1 -0
- package/dist/esm/sdds-textfield.entry.js +72 -70
- package/dist/esm/sdds-textfield.entry.js.map +1 -0
- package/dist/esm/sdds-toast.entry.js +74 -72
- package/dist/esm/sdds-toast.entry.js.map +1 -0
- package/dist/esm/sdds-toggle.entry.js +36 -34
- package/dist/esm/sdds-toggle.entry.js.map +1 -0
- package/dist/esm/sdds-tooltip.entry.js +95 -93
- package/dist/esm/sdds-tooltip.entry.js.map +1 -0
- package/dist/esm/tegel.js +9 -3
- package/dist/esm/tegel.js.map +1 -0
- package/dist/tegel/index.esm.js +2 -0
- package/dist/tegel/index.esm.js.map +1 -0
- package/dist/tegel/p-07c7c2e7.entry.js +2 -0
- package/dist/tegel/p-07c7c2e7.entry.js.map +1 -0
- package/dist/tegel/p-0953710b.entry.js +2 -0
- package/dist/tegel/p-0953710b.entry.js.map +1 -0
- package/dist/tegel/p-0b4eba86.js +3 -0
- package/dist/tegel/p-0b4eba86.js.map +1 -0
- package/dist/tegel/p-1eb8dd92.entry.js +2 -0
- package/dist/tegel/p-1eb8dd92.entry.js.map +1 -0
- package/dist/tegel/p-25af32a7.entry.js +2 -0
- package/dist/tegel/p-25af32a7.entry.js.map +1 -0
- package/dist/tegel/p-262dca00.entry.js +2 -0
- package/dist/tegel/p-262dca00.entry.js.map +1 -0
- package/dist/tegel/p-2fad34c4.entry.js +2 -0
- package/dist/tegel/p-2fad34c4.entry.js.map +1 -0
- package/dist/tegel/p-336efb27.entry.js +2 -0
- package/dist/tegel/p-336efb27.entry.js.map +1 -0
- package/dist/tegel/p-33e7f7e5.entry.js +2 -0
- package/dist/tegel/p-33e7f7e5.entry.js.map +1 -0
- package/dist/tegel/p-458cda76.entry.js +2 -0
- package/dist/tegel/p-458cda76.entry.js.map +1 -0
- package/dist/tegel/p-525ec252.entry.js +2 -0
- package/dist/tegel/p-525ec252.entry.js.map +1 -0
- package/dist/tegel/p-5c390692.entry.js +2 -0
- package/dist/tegel/p-5c390692.entry.js.map +1 -0
- package/dist/tegel/p-5e50ce81.entry.js +2 -0
- package/dist/tegel/p-5e50ce81.entry.js.map +1 -0
- package/dist/tegel/p-62ed6fdc.entry.js +2 -0
- package/dist/tegel/p-62ed6fdc.entry.js.map +1 -0
- package/dist/tegel/p-68fca08c.entry.js +2 -0
- package/dist/tegel/p-68fca08c.entry.js.map +1 -0
- package/dist/tegel/p-6bdce8c1.entry.js +2 -0
- package/dist/tegel/p-6bdce8c1.entry.js.map +1 -0
- package/dist/tegel/p-6e54f5a2.entry.js +2 -0
- package/dist/tegel/p-6e54f5a2.entry.js.map +1 -0
- package/dist/tegel/p-72099402.entry.js +2 -0
- package/dist/tegel/p-72099402.entry.js.map +1 -0
- package/dist/tegel/p-77a4950d.entry.js +2 -0
- package/dist/tegel/p-77a4950d.entry.js.map +1 -0
- package/dist/tegel/p-84e5d141.entry.js +2 -0
- package/dist/tegel/p-84e5d141.entry.js.map +1 -0
- package/dist/tegel/p-913cb5e9.entry.js +2 -0
- package/dist/tegel/p-913cb5e9.entry.js.map +1 -0
- package/dist/tegel/p-92869ad1.entry.js +2 -0
- package/dist/tegel/p-92869ad1.entry.js.map +1 -0
- package/dist/tegel/p-93571e36.entry.js +2 -0
- package/dist/tegel/p-93571e36.entry.js.map +1 -0
- package/dist/tegel/p-9904d7ec.entry.js +2 -0
- package/dist/tegel/p-9904d7ec.entry.js.map +1 -0
- package/dist/tegel/p-a3741fdd.entry.js +2 -0
- package/dist/tegel/p-a3741fdd.entry.js.map +1 -0
- package/dist/tegel/p-aff4d273.entry.js +2 -0
- package/dist/tegel/p-aff4d273.entry.js.map +1 -0
- package/dist/tegel/p-b2dde7a5.entry.js +2 -0
- package/dist/tegel/p-b2dde7a5.entry.js.map +1 -0
- package/dist/tegel/p-b9ec54c5.entry.js +2 -0
- package/dist/tegel/p-b9ec54c5.entry.js.map +1 -0
- package/dist/tegel/p-ba975249.entry.js +2 -0
- package/dist/tegel/p-ba975249.entry.js.map +1 -0
- package/dist/tegel/p-c79b3861.entry.js +2 -0
- package/dist/tegel/p-c79b3861.entry.js.map +1 -0
- package/dist/tegel/p-cd08f5f0.entry.js +2 -0
- package/dist/tegel/p-cd08f5f0.entry.js.map +1 -0
- package/dist/tegel/p-d910763a.entry.js +2 -0
- package/dist/tegel/p-d910763a.entry.js.map +1 -0
- package/dist/tegel/p-e25424af.entry.js +2 -0
- package/dist/tegel/p-e25424af.entry.js.map +1 -0
- package/dist/tegel/p-e5e10d8f.entry.js +2 -0
- package/dist/tegel/p-e5e10d8f.entry.js.map +1 -0
- package/dist/tegel/p-e662e68d.entry.js +2 -0
- package/dist/tegel/p-e662e68d.entry.js.map +1 -0
- package/dist/tegel/p-ebffa726.entry.js +2 -0
- package/dist/tegel/p-ebffa726.entry.js.map +1 -0
- package/dist/tegel/p-ec26fc38.js +2 -1
- package/dist/tegel/p-ec26fc38.js.map +1 -0
- package/dist/tegel/p-f51fe381.entry.js +2 -0
- package/dist/tegel/p-f51fe381.entry.js.map +1 -0
- package/dist/tegel/p-fa3dbeec.entry.js +2 -0
- package/dist/tegel/p-fa3dbeec.entry.js.map +1 -0
- package/dist/tegel/p-fbcdf3d9.entry.js +2 -0
- package/dist/tegel/p-fbcdf3d9.entry.js.map +1 -0
- package/dist/tegel/p-fc96cf21.entry.js +2 -0
- package/dist/tegel/p-fc96cf21.entry.js.map +1 -0
- package/dist/tegel/tegel.esm.js +2 -1
- package/dist/tegel/tegel.esm.js.map +1 -0
- package/dist/types/components/accordion/accordion-item/accordion-item.d.ts +17 -17
- package/dist/types/components/accordion/accordion.d.ts +7 -7
- package/dist/types/components/accordion/accordion.stories.d.ts +77 -77
- package/dist/types/components/badge/badge.stories.d.ts +66 -66
- package/dist/types/components/badge/badges.d.ts +16 -16
- package/dist/types/components/banner/banner.stories.d.ts +68 -68
- package/dist/types/components/banner/sdds-banner.d.ts +48 -48
- package/dist/types/components/banner/sdds-banner.stories.d.ts +109 -109
- package/dist/types/components/block/block-native.stories.d.ts +31 -31
- package/dist/types/components/block/sdds-block.d.ts +9 -9
- package/dist/types/components/block/sdds-block.stories.d.ts +32 -32
- package/dist/types/components/breadcrumb/breadcrumb-item/breadcrumb-item.d.ts +9 -9
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +5 -5
- package/dist/types/components/breadcrumb/breadcrumb.stories.d.ts +12 -12
- package/dist/types/components/button/button-component.d.ts +18 -18
- package/dist/types/components/button/button-native.stories.d.ts +148 -148
- package/dist/types/components/button/button-webcomponent.stories.d.ts +147 -147
- package/dist/types/components/card/card.stories.d.ts +138 -138
- package/dist/types/components/card/sdds-card.d.ts +39 -39
- package/dist/types/components/card/sdds-card.stories.d.ts +139 -139
- package/dist/types/components/checkbox/checkbox.stories.d.ts +39 -39
- package/dist/types/components/checkbox/sdds-checkbox.d.ts +38 -38
- package/dist/types/components/checkbox/sdds-checkbox.stories.d.ts +40 -40
- package/dist/types/components/chips/chips.stories.d.ts +77 -77
- package/dist/types/components/data-table/native-table.stories.d.ts +133 -133
- package/dist/types/components/data-table/table/table.d.ts +47 -47
- package/dist/types/components/data-table/table-body/table-body.d.ts +54 -54
- package/dist/types/components/data-table/table-body-cell/table-body-cell.d.ts +24 -24
- package/dist/types/components/data-table/table-body-row/table-body-row.d.ts +27 -27
- package/dist/types/components/data-table/table-body-row-expandable/table-body-row-expandable.d.ts +27 -27
- package/dist/types/components/data-table/table-component-basic.stories.d.ts +101 -101
- package/dist/types/components/data-table/table-component-batch-actions.stories.d.ts +99 -99
- package/dist/types/components/data-table/table-component-bodydata.stories.d.ts +38 -38
- package/dist/types/components/data-table/table-component-custom-width.stories.d.ts +148 -148
- package/dist/types/components/data-table/table-component-event-listeners.stories.d.ts +88 -88
- package/dist/types/components/data-table/table-component-expandable-rows.stories.d.ts +88 -88
- package/dist/types/components/data-table/table-component-filtering.stories.d.ts +101 -101
- package/dist/types/components/data-table/table-component-multiselect.stories.d.ts +101 -101
- package/dist/types/components/data-table/table-component-pagination.stories.d.ts +101 -101
- package/dist/types/components/data-table/table-component-sorting.stories.d.ts +100 -100
- package/dist/types/components/data-table/table-footer/table-footer.d.ts +50 -50
- package/dist/types/components/data-table/table-header/table-header.d.ts +27 -27
- package/dist/types/components/data-table/table-header-cell/table-header-cell.d.ts +44 -44
- package/dist/types/components/data-table/table-toolbar/table-toolbar.d.ts +22 -22
- package/dist/types/components/datetime/datetime.d.ts +42 -42
- package/dist/types/components/datetime/datetime.stories.d.ts +127 -127
- package/dist/types/components/divider/divider.stories.d.ts +65 -65
- package/dist/types/components/dropdown/dropdown-filter/dropdown-filter.d.ts +42 -42
- package/dist/types/components/dropdown/dropdown-filter/dropdown-filter.stories.d.ts +73 -73
- package/dist/types/components/dropdown/dropdown-native.stories.d.ts +57 -57
- package/dist/types/components/dropdown/dropdown-option/dropdown-option.d.ts +19 -19
- package/dist/types/components/dropdown/dropdown-wc-default.stories.d.ts +129 -129
- package/dist/types/components/dropdown/dropdown-wc-multiselect.stories.d.ts +115 -115
- package/dist/types/components/dropdown/dropdown.d.ts +58 -58
- package/dist/types/components/footer/footer.stories.d.ts +45 -45
- package/dist/types/components/header/header-all.stories.d.ts +29 -29
- package/dist/types/components/header/header-default.stories.d.ts +29 -29
- package/dist/types/components/header/header-inline.stories.d.ts +29 -29
- package/dist/types/components/header/header-search.stories.d.ts +29 -29
- package/dist/types/components/header/header-toolbar.stories.d.ts +29 -29
- package/dist/types/components/icon/icon-font.stories.d.ts +38 -38
- package/dist/types/components/icon/icon-web-component.stories.d.ts +38 -38
- package/dist/types/components/icon/icon.d.ts +12 -12
- package/dist/types/components/link/link.stories.d.ts +33 -33
- package/dist/types/components/link/sdds-link.d.ts +13 -13
- package/dist/types/components/link/sdds-link.stories.d.ts +58 -58
- package/dist/types/components/message/message.stories.d.ts +69 -69
- package/dist/types/components/message/sdds-message.d.ts +14 -14
- package/dist/types/components/message/sdds-message.stories.d.ts +87 -87
- package/dist/types/components/modal/modal-native.stories.d.ts +59 -59
- package/dist/types/components/modal/modal-webcomponent.stories.d.ts +52 -52
- package/dist/types/components/modal/modal.d.ts +17 -17
- package/dist/types/components/popover-canvas/popover-canvas.d.ts +24 -24
- package/dist/types/components/popover-canvas/popover-canvas.stories.d.ts +25 -25
- package/dist/types/components/popover-menu/popover-menu-icons.stories.d.ts +27 -27
- package/dist/types/components/popover-menu/popover-menu.d.ts +24 -24
- package/dist/types/components/popover-menu/popover-menu.stories.d.ts +27 -27
- package/dist/types/components/radio-button/radio-button-component.stories.d.ts +39 -39
- package/dist/types/components/radio-button/radio-button.d.ts +26 -26
- package/dist/types/components/radio-button/radio-button.stories.d.ts +33 -33
- package/dist/types/components/side-menu/side-menu.stories.d.ts +42 -42
- package/dist/types/components/slider/slider.d.ts +86 -86
- package/dist/types/components/slider/slider.stories.d.ts +169 -169
- package/dist/types/components/spinner/spinner.d.ts +7 -7
- package/dist/types/components/spinner/spinner.stories.d.ts +37 -37
- package/dist/types/components/stepper/stepper.stories.d.ts +56 -56
- package/dist/types/components/tabs/inline-tabs-default/inline-tab/inline-tab.d.ts +6 -6
- package/dist/types/components/tabs/inline-tabs-default/inline-tabs.d.ts +40 -40
- package/dist/types/components/tabs/inline-tabs-default/inline-tabs.stories.d.ts +49 -49
- package/dist/types/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.d.ts +20 -20
- package/dist/types/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.stories.d.ts +30 -30
- package/dist/types/components/tabs/navigation-tabs/navigation-tabs.d.ts +20 -20
- package/dist/types/components/tabs/navigation-tabs/navigation-tabs.stories.d.ts +13 -13
- package/dist/types/components/textarea/textarea.d.ts +48 -48
- package/dist/types/components/textarea/textarea.stories.d.ts +116 -116
- package/dist/types/components/textfield/textfield.d.ts +52 -52
- package/dist/types/components/textfield/textfield.stories.d.ts +180 -180
- package/dist/types/components/toast/sdds-toast.d.ts +36 -36
- package/dist/types/components/toast/sdds-toast.stories.d.ts +56 -56
- package/dist/types/components/toast/toast.stories.d.ts +69 -69
- package/dist/types/components/toggle/sdds-toggle.d.ts +34 -34
- package/dist/types/components/toggle/sdds-toggle.stories.d.ts +74 -74
- package/dist/types/components/toggle/toggle.stories.d.ts +55 -55
- package/dist/types/components/tooltip/tooltip.d.ts +24 -24
- package/dist/types/components/tooltip/tooltip.stories.d.ts +54 -54
- package/dist/types/components/utility/colour/background-color.stories.d.ts +58 -58
- package/dist/types/components/utility/colour/text-color.stories.d.ts +58 -58
- package/dist/types/components.d.ts +11 -9
- package/dist/types/foundations-stories/colour/colour-brand.stories.d.ts +13 -13
- package/dist/types/foundations-stories/colour/colour-scales.stories.d.ts +13 -13
- package/dist/types/foundations-stories/colour/colour-semantic.stories.d.ts +13 -13
- package/dist/types/foundations-stories/grid/grid.stories.d.ts +35 -35
- package/dist/types/foundations-stories/spacing/spacing-element.stories.d.ts +8 -8
- package/dist/types/foundations-stories/spacing/spacing-layout.stories.d.ts +8 -8
- package/dist/types/foundations-stories/typography/typography-body.stories.d.ts +8 -8
- package/dist/types/foundations-stories/typography/typography-detail.stories.d.ts +8 -8
- package/dist/types/foundations-stories/typography/typography-headline.stories.d.ts +21 -21
- package/dist/types/foundations-stories/typography/typography-paragraph.stories.d.ts +8 -8
- package/dist/types/index.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +71 -15
- package/dist/types/utils/utils.d.ts +2 -2
- package/loader/index.d.ts +9 -0
- package/package.json +2 -2
- package/dist/tegel/p-05d3cfc8.entry.js +0 -1
- package/dist/tegel/p-13a25c7f.entry.js +0 -1
- package/dist/tegel/p-13b783f1.js +0 -2
- package/dist/tegel/p-1dda8de9.entry.js +0 -1
- package/dist/tegel/p-2248b59e.entry.js +0 -1
- package/dist/tegel/p-232e5c9a.entry.js +0 -1
- package/dist/tegel/p-2375f0eb.entry.js +0 -1
- package/dist/tegel/p-29deedc6.entry.js +0 -1
- package/dist/tegel/p-2f52021b.entry.js +0 -1
- package/dist/tegel/p-3344582d.entry.js +0 -1
- package/dist/tegel/p-4b14324d.entry.js +0 -1
- package/dist/tegel/p-561fbe77.entry.js +0 -1
- package/dist/tegel/p-5a215722.entry.js +0 -1
- package/dist/tegel/p-5f7b1539.entry.js +0 -1
- package/dist/tegel/p-6f382b38.entry.js +0 -1
- package/dist/tegel/p-765e2719.entry.js +0 -1
- package/dist/tegel/p-76f60546.entry.js +0 -1
- package/dist/tegel/p-7a5244b6.entry.js +0 -1
- package/dist/tegel/p-816ff5f7.entry.js +0 -1
- package/dist/tegel/p-81d2d57b.entry.js +0 -1
- package/dist/tegel/p-87650f36.entry.js +0 -1
- package/dist/tegel/p-8e6f885c.entry.js +0 -1
- package/dist/tegel/p-8e9dcc20.entry.js +0 -1
- package/dist/tegel/p-997fc919.entry.js +0 -1
- package/dist/tegel/p-9a057c9a.entry.js +0 -1
- package/dist/tegel/p-9a95e92c.entry.js +0 -1
- package/dist/tegel/p-a75ff060.entry.js +0 -1
- package/dist/tegel/p-bf1216f9.entry.js +0 -1
- package/dist/tegel/p-bf597564.entry.js +0 -1
- package/dist/tegel/p-d2217bf0.entry.js +0 -1
- package/dist/tegel/p-e335137d.entry.js +0 -1
- package/dist/tegel/p-e34cce75.entry.js +0 -1
- package/dist/tegel/p-e55d09f2.entry.js +0 -1
- package/dist/tegel/p-ebbffa8a.entry.js +0 -1
- package/dist/tegel/p-ed076d47.entry.js +0 -1
- package/dist/tegel/p-ef887910.entry.js +0 -1
- package/dist/tegel/p-f4b70868.entry.js +0 -1
- package/dist/tegel/p-f52a0b63.entry.js +0 -1
- package/dist/tegel/p-f5bf214b.entry.js +0 -1
- package/dist/tegel/p-fd1b5923.entry.js +0 -1
|
@@ -1,136 +1,136 @@
|
|
|
1
|
-
import readme from './readme.md';
|
|
2
|
-
import readmeOption from './dropdown-option/readme.md';
|
|
3
|
-
import { formatHtmlPreview } from '../../utils/utils';
|
|
4
|
-
export default {
|
|
5
|
-
title: 'Components/Dropdown',
|
|
6
|
-
parameters: {
|
|
7
|
-
layout: 'centered',
|
|
8
|
-
notes: { 'Dropdown': readme, 'Dropdown option': readmeOption },
|
|
9
|
-
design: [
|
|
10
|
-
{
|
|
11
|
-
name: 'Figma',
|
|
12
|
-
type: 'figma',
|
|
13
|
-
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=9754%3A22916&t=M7Ova7xZaoeMwb5e-1',
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
name: 'Link',
|
|
17
|
-
type: 'link',
|
|
18
|
-
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=9754%3A22916&t=M7Ova7xZaoeMwb5e-1',
|
|
19
|
-
},
|
|
20
|
-
],
|
|
21
|
-
},
|
|
22
|
-
argTypes: {
|
|
23
|
-
modeVariant: {
|
|
24
|
-
name: 'Mode variant',
|
|
25
|
-
description: 'Mode variant of the component.',
|
|
26
|
-
control: {
|
|
27
|
-
type: 'radio',
|
|
28
|
-
},
|
|
29
|
-
options: ['Inherit from parent', 'Primary', 'Secondary'],
|
|
30
|
-
table: {
|
|
31
|
-
defaultValue: { summary: 'Inherit from parent' },
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
size: {
|
|
35
|
-
name: 'Size',
|
|
36
|
-
control: {
|
|
37
|
-
type: 'radio',
|
|
38
|
-
},
|
|
39
|
-
options: ['Large', 'Medium', 'Small'],
|
|
40
|
-
description: 'Size of the dropdown',
|
|
41
|
-
},
|
|
42
|
-
placeholder: {
|
|
43
|
-
name: 'Placeholder',
|
|
44
|
-
type: 'string',
|
|
45
|
-
description: 'Placeholder text when no option is selected',
|
|
46
|
-
},
|
|
47
|
-
labelPosition: {
|
|
48
|
-
name: 'Label position',
|
|
49
|
-
control: {
|
|
50
|
-
type: 'radio',
|
|
51
|
-
},
|
|
52
|
-
options: ['None', 'Inside', 'Outside'],
|
|
53
|
-
description: 'Label text position',
|
|
54
|
-
},
|
|
55
|
-
labelText: {
|
|
56
|
-
name: 'Label text',
|
|
57
|
-
control: 'text',
|
|
58
|
-
description: 'Label text helps to describe what the dropdown contains',
|
|
59
|
-
if: { arg: 'labelPosition', neq: 'None' },
|
|
60
|
-
},
|
|
61
|
-
disabled: {
|
|
62
|
-
name: 'Disabled',
|
|
63
|
-
description: 'Disables the component',
|
|
64
|
-
control: {
|
|
65
|
-
type: 'boolean',
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
state: {
|
|
69
|
-
name: 'State',
|
|
70
|
-
control: {
|
|
71
|
-
type: 'radio',
|
|
72
|
-
},
|
|
73
|
-
options: ['Default', 'Error'],
|
|
74
|
-
description: 'Support error state',
|
|
75
|
-
},
|
|
76
|
-
helper: {
|
|
77
|
-
name: 'Add helper text',
|
|
78
|
-
control: 'boolean',
|
|
79
|
-
description: 'Adds a helper text.',
|
|
80
|
-
},
|
|
81
|
-
helperText: {
|
|
82
|
-
name: 'Helper text',
|
|
83
|
-
description: 'Helper text assists the user with additional information about the dropdown',
|
|
84
|
-
control: 'text',
|
|
85
|
-
if: { arg: 'helper', eq: true },
|
|
86
|
-
},
|
|
87
|
-
defaultOption: {
|
|
88
|
-
if: { arg: 'type', neq: 'Multiselect' },
|
|
89
|
-
name: 'Default option',
|
|
90
|
-
description: 'Sets a pre-selected option and replaces placeholder',
|
|
91
|
-
control: {
|
|
92
|
-
type: 'radio',
|
|
93
|
-
},
|
|
94
|
-
options: ['No default', 'Option 1', 'Option 2', 'Option 3'],
|
|
95
|
-
},
|
|
96
|
-
openDirection: {
|
|
97
|
-
name: 'Open direction',
|
|
98
|
-
description: 'The direction the dropdown will open.',
|
|
99
|
-
control: {
|
|
100
|
-
type: 'radio',
|
|
101
|
-
},
|
|
102
|
-
options: ['Up', 'Down', 'Auto'],
|
|
103
|
-
table: {
|
|
104
|
-
summary: {
|
|
105
|
-
defaultValue: 'auto',
|
|
106
|
-
},
|
|
107
|
-
},
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
args: {
|
|
111
|
-
modeVariant: 'Inherit from parent',
|
|
112
|
-
size: 'Large',
|
|
113
|
-
placeholder: 'Placeholder',
|
|
114
|
-
state: 'Default',
|
|
115
|
-
disabled: false,
|
|
116
|
-
labelPosition: 'None',
|
|
117
|
-
labelText: 'Label text',
|
|
118
|
-
helper: false,
|
|
119
|
-
helperText: 'Helper text',
|
|
120
|
-
defaultOption: 'Option 1',
|
|
121
|
-
openDirection: 'Auto',
|
|
122
|
-
},
|
|
123
|
-
};
|
|
124
|
-
const Template = ({ modeVariant, size, disabled = false, labelPosition, helper, helperText, labelText, state = 'default', placeholder, defaultOption, openDirection, }) => {
|
|
125
|
-
const stateValue = state === 'Error' ? 'error' : 'default';
|
|
126
|
-
const sizeLookup = { Large: 'lg', Medium: 'md', Small: 'sm' };
|
|
127
|
-
const labelPosLookup = { None: 'no-default', Inside: 'inside', Outside: 'outside' };
|
|
128
|
-
const defaultOptionLookup = {
|
|
129
|
-
'No default': 'no-default',
|
|
130
|
-
'Option 1': 'option-1',
|
|
131
|
-
'Option 2': 'option-2',
|
|
132
|
-
'Option 3': 'option-3',
|
|
133
|
-
};
|
|
1
|
+
import readme from './readme.md';
|
|
2
|
+
import readmeOption from './dropdown-option/readme.md';
|
|
3
|
+
import { formatHtmlPreview } from '../../utils/utils';
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Components/Dropdown',
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: 'centered',
|
|
8
|
+
notes: { 'Dropdown': readme, 'Dropdown option': readmeOption },
|
|
9
|
+
design: [
|
|
10
|
+
{
|
|
11
|
+
name: 'Figma',
|
|
12
|
+
type: 'figma',
|
|
13
|
+
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=9754%3A22916&t=M7Ova7xZaoeMwb5e-1',
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: 'Link',
|
|
17
|
+
type: 'link',
|
|
18
|
+
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=9754%3A22916&t=M7Ova7xZaoeMwb5e-1',
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
},
|
|
22
|
+
argTypes: {
|
|
23
|
+
modeVariant: {
|
|
24
|
+
name: 'Mode variant',
|
|
25
|
+
description: 'Mode variant of the component.',
|
|
26
|
+
control: {
|
|
27
|
+
type: 'radio',
|
|
28
|
+
},
|
|
29
|
+
options: ['Inherit from parent', 'Primary', 'Secondary'],
|
|
30
|
+
table: {
|
|
31
|
+
defaultValue: { summary: 'Inherit from parent' },
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
size: {
|
|
35
|
+
name: 'Size',
|
|
36
|
+
control: {
|
|
37
|
+
type: 'radio',
|
|
38
|
+
},
|
|
39
|
+
options: ['Large', 'Medium', 'Small'],
|
|
40
|
+
description: 'Size of the dropdown',
|
|
41
|
+
},
|
|
42
|
+
placeholder: {
|
|
43
|
+
name: 'Placeholder',
|
|
44
|
+
type: 'string',
|
|
45
|
+
description: 'Placeholder text when no option is selected',
|
|
46
|
+
},
|
|
47
|
+
labelPosition: {
|
|
48
|
+
name: 'Label position',
|
|
49
|
+
control: {
|
|
50
|
+
type: 'radio',
|
|
51
|
+
},
|
|
52
|
+
options: ['None', 'Inside', 'Outside'],
|
|
53
|
+
description: 'Label text position',
|
|
54
|
+
},
|
|
55
|
+
labelText: {
|
|
56
|
+
name: 'Label text',
|
|
57
|
+
control: 'text',
|
|
58
|
+
description: 'Label text helps to describe what the dropdown contains',
|
|
59
|
+
if: { arg: 'labelPosition', neq: 'None' },
|
|
60
|
+
},
|
|
61
|
+
disabled: {
|
|
62
|
+
name: 'Disabled',
|
|
63
|
+
description: 'Disables the component',
|
|
64
|
+
control: {
|
|
65
|
+
type: 'boolean',
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
state: {
|
|
69
|
+
name: 'State',
|
|
70
|
+
control: {
|
|
71
|
+
type: 'radio',
|
|
72
|
+
},
|
|
73
|
+
options: ['Default', 'Error'],
|
|
74
|
+
description: 'Support error state',
|
|
75
|
+
},
|
|
76
|
+
helper: {
|
|
77
|
+
name: 'Add helper text',
|
|
78
|
+
control: 'boolean',
|
|
79
|
+
description: 'Adds a helper text.',
|
|
80
|
+
},
|
|
81
|
+
helperText: {
|
|
82
|
+
name: 'Helper text',
|
|
83
|
+
description: 'Helper text assists the user with additional information about the dropdown',
|
|
84
|
+
control: 'text',
|
|
85
|
+
if: { arg: 'helper', eq: true },
|
|
86
|
+
},
|
|
87
|
+
defaultOption: {
|
|
88
|
+
if: { arg: 'type', neq: 'Multiselect' },
|
|
89
|
+
name: 'Default option',
|
|
90
|
+
description: 'Sets a pre-selected option and replaces placeholder',
|
|
91
|
+
control: {
|
|
92
|
+
type: 'radio',
|
|
93
|
+
},
|
|
94
|
+
options: ['No default', 'Option 1', 'Option 2', 'Option 3'],
|
|
95
|
+
},
|
|
96
|
+
openDirection: {
|
|
97
|
+
name: 'Open direction',
|
|
98
|
+
description: 'The direction the dropdown will open.',
|
|
99
|
+
control: {
|
|
100
|
+
type: 'radio',
|
|
101
|
+
},
|
|
102
|
+
options: ['Up', 'Down', 'Auto'],
|
|
103
|
+
table: {
|
|
104
|
+
summary: {
|
|
105
|
+
defaultValue: 'auto',
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
args: {
|
|
111
|
+
modeVariant: 'Inherit from parent',
|
|
112
|
+
size: 'Large',
|
|
113
|
+
placeholder: 'Placeholder',
|
|
114
|
+
state: 'Default',
|
|
115
|
+
disabled: false,
|
|
116
|
+
labelPosition: 'None',
|
|
117
|
+
labelText: 'Label text',
|
|
118
|
+
helper: false,
|
|
119
|
+
helperText: 'Helper text',
|
|
120
|
+
defaultOption: 'Option 1',
|
|
121
|
+
openDirection: 'Auto',
|
|
122
|
+
},
|
|
123
|
+
};
|
|
124
|
+
const Template = ({ modeVariant, size, disabled = false, labelPosition, helper, helperText, labelText, state = 'default', placeholder, defaultOption, openDirection, }) => {
|
|
125
|
+
const stateValue = state === 'Error' ? 'error' : 'default';
|
|
126
|
+
const sizeLookup = { Large: 'lg', Medium: 'md', Small: 'sm' };
|
|
127
|
+
const labelPosLookup = { None: 'no-default', Inside: 'inside', Outside: 'outside' };
|
|
128
|
+
const defaultOptionLookup = {
|
|
129
|
+
'No default': 'no-default',
|
|
130
|
+
'Option 1': 'option-1',
|
|
131
|
+
'Option 2': 'option-2',
|
|
132
|
+
'Option 3': 'option-3',
|
|
133
|
+
};
|
|
134
134
|
return formatHtmlPreview(`
|
|
135
135
|
<style>
|
|
136
136
|
/* demo-wrapper is for demonstration purposes only*/
|
|
@@ -142,9 +142,9 @@ const Template = ({ modeVariant, size, disabled = false, labelPosition, helper,
|
|
|
142
142
|
|
|
143
143
|
<div class="demo-wrapper">
|
|
144
144
|
<sdds-dropdown
|
|
145
|
-
${modeVariant !== 'Inherit from parent'
|
|
145
|
+
${modeVariant !== 'Inherit from parent'
|
|
146
146
|
? `mode-variant="${modeVariant.toLowerCase()}".sdds-option-label {
|
|
147
|
-
`
|
|
147
|
+
`
|
|
148
148
|
: ''}
|
|
149
149
|
id="sdds-dropdown-reg"
|
|
150
150
|
size="${sizeLookup[size]}"
|
|
@@ -162,6 +162,7 @@ const Template = ({ modeVariant, size, disabled = false, labelPosition, helper,
|
|
|
162
162
|
<sdds-dropdown-option value="option-3" tabindex="0">Option 3</sdds-dropdown-option>
|
|
163
163
|
</sdds-dropdown>
|
|
164
164
|
</div>
|
|
165
|
-
`);
|
|
166
|
-
};
|
|
167
|
-
export const WebComponentDefault = Template.bind({});
|
|
165
|
+
`);
|
|
166
|
+
};
|
|
167
|
+
export const WebComponentDefault = Template.bind({});
|
|
168
|
+
//# sourceMappingURL=dropdown-wc-default.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropdown-wc-default.stories.js","sourceRoot":"","sources":["../../../src/components/dropdown/dropdown-wc-default.stories.tsx"],"names":[],"mappings":"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","sourcesContent":["import readme from './readme.md';\nimport readmeOption from './dropdown-option/readme.md';\nimport { formatHtmlPreview } from '../../utils/utils';\n\nexport default {\n title: 'Components/Dropdown',\n parameters: {\n layout: 'centered',\n notes: { 'Dropdown': readme, 'Dropdown option': readmeOption },\n design: [\n {\n name: 'Figma',\n type: 'figma',\n url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=9754%3A22916&t=M7Ova7xZaoeMwb5e-1',\n },\n {\n name: 'Link',\n type: 'link',\n url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=9754%3A22916&t=M7Ova7xZaoeMwb5e-1',\n },\n ],\n },\n argTypes: {\n modeVariant: {\n name: 'Mode variant',\n description: 'Mode variant of the component.',\n control: {\n type: 'radio',\n },\n options: ['Inherit from parent', 'Primary', 'Secondary'],\n table: {\n defaultValue: { summary: 'Inherit from parent' },\n },\n },\n size: {\n name: 'Size',\n control: {\n type: 'radio',\n },\n options: ['Large', 'Medium', 'Small'],\n description: 'Size of the dropdown',\n },\n placeholder: {\n name: 'Placeholder',\n type: 'string',\n description: 'Placeholder text when no option is selected',\n },\n labelPosition: {\n name: 'Label position',\n control: {\n type: 'radio',\n },\n options: ['None', 'Inside', 'Outside'],\n description: 'Label text position',\n },\n labelText: {\n name: 'Label text',\n control: 'text',\n description: 'Label text helps to describe what the dropdown contains',\n if: { arg: 'labelPosition', neq: 'None' },\n },\n disabled: {\n name: 'Disabled',\n description: 'Disables the component',\n control: {\n type: 'boolean',\n },\n },\n state: {\n name: 'State',\n control: {\n type: 'radio',\n },\n options: ['Default', 'Error'],\n description: 'Support error state',\n },\n helper: {\n name: 'Add helper text',\n control: 'boolean',\n description: 'Adds a helper text.',\n },\n helperText: {\n name: 'Helper text',\n description: 'Helper text assists the user with additional information about the dropdown',\n control: 'text',\n if: { arg: 'helper', eq: true },\n },\n defaultOption: {\n if: { arg: 'type', neq: 'Multiselect' },\n name: 'Default option',\n description: 'Sets a pre-selected option and replaces placeholder',\n control: {\n type: 'radio',\n },\n options: ['No default', 'Option 1', 'Option 2', 'Option 3'],\n },\n openDirection: {\n name: 'Open direction',\n description: 'The direction the dropdown will open.',\n control: {\n type: 'radio',\n },\n options: ['Up', 'Down', 'Auto'],\n table: {\n summary: {\n defaultValue: 'auto',\n },\n },\n },\n },\n args: {\n modeVariant: 'Inherit from parent',\n size: 'Large',\n placeholder: 'Placeholder',\n state: 'Default',\n disabled: false,\n labelPosition: 'None',\n labelText: 'Label text',\n helper: false,\n helperText: 'Helper text',\n defaultOption: 'Option 1',\n openDirection: 'Auto',\n },\n};\n\nconst Template = ({\n modeVariant,\n size,\n disabled = false,\n labelPosition,\n helper,\n helperText,\n labelText,\n state = 'default',\n placeholder,\n defaultOption,\n openDirection,\n}) => {\n const stateValue = state === 'Error' ? 'error' : 'default';\n const sizeLookup = { Large: 'lg', Medium: 'md', Small: 'sm' };\n const labelPosLookup = { None: 'no-default', Inside: 'inside', Outside: 'outside' };\n const defaultOptionLookup = {\n 'No default': 'no-default',\n 'Option 1': 'option-1',\n 'Option 2': 'option-2',\n 'Option 3': 'option-3',\n };\n\n return formatHtmlPreview(`\n <style>\n /* demo-wrapper is for demonstration purposes only*/\n .demo-wrapper {\n width: 300px;\n height:200px;\n }\n </style>\n\n <div class=\"demo-wrapper\">\n <sdds-dropdown\n ${\n modeVariant !== 'Inherit from parent'\n ? `mode-variant=\"${modeVariant.toLowerCase()}\".sdds-option-label {\n `\n : ''\n }\n id=\"sdds-dropdown-reg\"\n size=\"${sizeLookup[size]}\"\n placeholder=\"${placeholder}\"\n disabled=\"${disabled}\"\n open-direction=\"${openDirection.toLowerCase()}\"\n label-position=\"${labelPosLookup[labelPosition]}\"\n ${labelPosLookup[labelPosition] !== 'no-default' ? `label=\"${labelText}\"` : ''}\n ${helper ? `helper=\"${helperText}\"` : ''}\n state=\"${stateValue}\"\n type=\"default\"\n default-option=\"${defaultOptionLookup[defaultOption]}\" >\n <sdds-dropdown-option value=\"option-1\" tabindex=\"0\" disabled>Option 1</sdds-dropdown-option>\n <sdds-dropdown-option value=\"option-2\" tabindex=\"0\">Option 2</sdds-dropdown-option>\n <sdds-dropdown-option value=\"option-3\" tabindex=\"0\">Option 3</sdds-dropdown-option>\n </sdds-dropdown>\n </div>\n `);\n};\n\nexport const WebComponentDefault = Template.bind({});\n"]}
|
|
@@ -1,119 +1,119 @@
|
|
|
1
|
-
import readme from './readme.md';
|
|
2
|
-
import readmeOption from './dropdown-option/readme.md';
|
|
3
|
-
import { formatHtmlPreview } from '../../utils/utils';
|
|
4
|
-
export default {
|
|
5
|
-
title: 'Components/Dropdown',
|
|
6
|
-
parameters: {
|
|
7
|
-
layout: 'centered',
|
|
8
|
-
notes: { 'Dropdown': readme, 'Dropdown option': readmeOption },
|
|
9
|
-
design: [
|
|
10
|
-
{
|
|
11
|
-
name: 'Figma',
|
|
12
|
-
type: 'figma',
|
|
13
|
-
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=9754%3A22916&t=M7Ova7xZaoeMwb5e-1',
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
name: 'Link',
|
|
17
|
-
type: 'link',
|
|
18
|
-
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=9754%3A22916&t=M7Ova7xZaoeMwb5e-1',
|
|
19
|
-
},
|
|
20
|
-
],
|
|
21
|
-
},
|
|
22
|
-
argTypes: {
|
|
23
|
-
size: {
|
|
24
|
-
name: 'Size',
|
|
25
|
-
control: {
|
|
26
|
-
type: 'radio',
|
|
27
|
-
},
|
|
28
|
-
options: ['Large', 'Medium', 'Small'],
|
|
29
|
-
description: 'Size of the dropdown',
|
|
30
|
-
},
|
|
31
|
-
placeholder: {
|
|
32
|
-
name: 'Placeholder',
|
|
33
|
-
type: 'string',
|
|
34
|
-
description: 'Placeholder text when no option is selected',
|
|
35
|
-
},
|
|
36
|
-
labelPosition: {
|
|
37
|
-
name: 'Label position',
|
|
38
|
-
control: {
|
|
39
|
-
type: 'radio',
|
|
40
|
-
},
|
|
41
|
-
options: ['None', 'Inside', 'Outside'],
|
|
42
|
-
description: 'Label text position',
|
|
43
|
-
},
|
|
44
|
-
labelText: {
|
|
45
|
-
name: 'Label text',
|
|
46
|
-
control: 'text',
|
|
47
|
-
description: 'Label text helps to describe what the dropdown contains',
|
|
48
|
-
if: { arg: 'labelPosition', neq: 'None' },
|
|
49
|
-
},
|
|
50
|
-
disabled: {
|
|
51
|
-
name: 'Disabled',
|
|
52
|
-
description: 'Disables the component',
|
|
53
|
-
control: {
|
|
54
|
-
type: 'boolean',
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
state: {
|
|
58
|
-
name: 'State',
|
|
59
|
-
control: {
|
|
60
|
-
type: 'radio',
|
|
61
|
-
},
|
|
62
|
-
options: ['Default', 'Error'],
|
|
63
|
-
description: 'Support error state',
|
|
64
|
-
},
|
|
65
|
-
helper: {
|
|
66
|
-
name: 'Add helper text',
|
|
67
|
-
control: 'boolean',
|
|
68
|
-
description: 'Adds a helper text.',
|
|
69
|
-
},
|
|
70
|
-
helperText: {
|
|
71
|
-
name: 'Helper text',
|
|
72
|
-
description: 'Helper text assists the user with additional information about the dropdown',
|
|
73
|
-
control: 'text',
|
|
74
|
-
if: { arg: 'helper', eq: true },
|
|
75
|
-
},
|
|
76
|
-
multiDefaultOption: {
|
|
77
|
-
name: 'Default options',
|
|
78
|
-
description: 'Sets a pre-selected option and replaces placeholder',
|
|
79
|
-
if: { arg: 'type', neq: 'Default' },
|
|
80
|
-
control: {
|
|
81
|
-
type: 'check',
|
|
82
|
-
},
|
|
83
|
-
options: ['Option 1', 'Option 2', 'Option 3'],
|
|
84
|
-
},
|
|
85
|
-
openDirection: {
|
|
86
|
-
name: 'Open direction',
|
|
87
|
-
description: 'The direction the dropdown will open.',
|
|
88
|
-
control: {
|
|
89
|
-
type: 'radio',
|
|
90
|
-
},
|
|
91
|
-
options: ['Up', 'Down', 'Auto'],
|
|
92
|
-
table: {
|
|
93
|
-
summary: {
|
|
94
|
-
defaultValue: 'auto',
|
|
95
|
-
},
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
},
|
|
99
|
-
args: {
|
|
100
|
-
size: 'Large',
|
|
101
|
-
placeholder: 'Placeholder',
|
|
102
|
-
state: 'Default',
|
|
103
|
-
disabled: false,
|
|
104
|
-
labelPosition: 'None',
|
|
105
|
-
labelText: 'Label text',
|
|
106
|
-
helper: false,
|
|
107
|
-
helperText: 'Helper text',
|
|
108
|
-
multiDefaultOption: ['Option 1', 'Option 2'],
|
|
109
|
-
openDirection: 'Auto',
|
|
110
|
-
},
|
|
111
|
-
};
|
|
112
|
-
const Template = ({ size, disabled = false, labelPosition, labelText, helper, helperText, state = 'default', placeholder, multiDefaultOption, openDirection, }) => {
|
|
113
|
-
const stateValue = state === 'Error' ? 'error' : 'default';
|
|
114
|
-
const sizeLookup = { Large: 'lg', Medium: 'md', Small: 'sm' };
|
|
115
|
-
const labelPosLookup = { None: 'no-default', Inside: 'inside', Outside: 'outside' };
|
|
116
|
-
const multiDefaultOptionValue = multiDefaultOption.map((value) => value.toLowerCase().replace(' ', '-'));
|
|
1
|
+
import readme from './readme.md';
|
|
2
|
+
import readmeOption from './dropdown-option/readme.md';
|
|
3
|
+
import { formatHtmlPreview } from '../../utils/utils';
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Components/Dropdown',
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: 'centered',
|
|
8
|
+
notes: { 'Dropdown': readme, 'Dropdown option': readmeOption },
|
|
9
|
+
design: [
|
|
10
|
+
{
|
|
11
|
+
name: 'Figma',
|
|
12
|
+
type: 'figma',
|
|
13
|
+
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=9754%3A22916&t=M7Ova7xZaoeMwb5e-1',
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: 'Link',
|
|
17
|
+
type: 'link',
|
|
18
|
+
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=9754%3A22916&t=M7Ova7xZaoeMwb5e-1',
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
},
|
|
22
|
+
argTypes: {
|
|
23
|
+
size: {
|
|
24
|
+
name: 'Size',
|
|
25
|
+
control: {
|
|
26
|
+
type: 'radio',
|
|
27
|
+
},
|
|
28
|
+
options: ['Large', 'Medium', 'Small'],
|
|
29
|
+
description: 'Size of the dropdown',
|
|
30
|
+
},
|
|
31
|
+
placeholder: {
|
|
32
|
+
name: 'Placeholder',
|
|
33
|
+
type: 'string',
|
|
34
|
+
description: 'Placeholder text when no option is selected',
|
|
35
|
+
},
|
|
36
|
+
labelPosition: {
|
|
37
|
+
name: 'Label position',
|
|
38
|
+
control: {
|
|
39
|
+
type: 'radio',
|
|
40
|
+
},
|
|
41
|
+
options: ['None', 'Inside', 'Outside'],
|
|
42
|
+
description: 'Label text position',
|
|
43
|
+
},
|
|
44
|
+
labelText: {
|
|
45
|
+
name: 'Label text',
|
|
46
|
+
control: 'text',
|
|
47
|
+
description: 'Label text helps to describe what the dropdown contains',
|
|
48
|
+
if: { arg: 'labelPosition', neq: 'None' },
|
|
49
|
+
},
|
|
50
|
+
disabled: {
|
|
51
|
+
name: 'Disabled',
|
|
52
|
+
description: 'Disables the component',
|
|
53
|
+
control: {
|
|
54
|
+
type: 'boolean',
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
state: {
|
|
58
|
+
name: 'State',
|
|
59
|
+
control: {
|
|
60
|
+
type: 'radio',
|
|
61
|
+
},
|
|
62
|
+
options: ['Default', 'Error'],
|
|
63
|
+
description: 'Support error state',
|
|
64
|
+
},
|
|
65
|
+
helper: {
|
|
66
|
+
name: 'Add helper text',
|
|
67
|
+
control: 'boolean',
|
|
68
|
+
description: 'Adds a helper text.',
|
|
69
|
+
},
|
|
70
|
+
helperText: {
|
|
71
|
+
name: 'Helper text',
|
|
72
|
+
description: 'Helper text assists the user with additional information about the dropdown',
|
|
73
|
+
control: 'text',
|
|
74
|
+
if: { arg: 'helper', eq: true },
|
|
75
|
+
},
|
|
76
|
+
multiDefaultOption: {
|
|
77
|
+
name: 'Default options',
|
|
78
|
+
description: 'Sets a pre-selected option and replaces placeholder',
|
|
79
|
+
if: { arg: 'type', neq: 'Default' },
|
|
80
|
+
control: {
|
|
81
|
+
type: 'check',
|
|
82
|
+
},
|
|
83
|
+
options: ['Option 1', 'Option 2', 'Option 3'],
|
|
84
|
+
},
|
|
85
|
+
openDirection: {
|
|
86
|
+
name: 'Open direction',
|
|
87
|
+
description: 'The direction the dropdown will open.',
|
|
88
|
+
control: {
|
|
89
|
+
type: 'radio',
|
|
90
|
+
},
|
|
91
|
+
options: ['Up', 'Down', 'Auto'],
|
|
92
|
+
table: {
|
|
93
|
+
summary: {
|
|
94
|
+
defaultValue: 'auto',
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
args: {
|
|
100
|
+
size: 'Large',
|
|
101
|
+
placeholder: 'Placeholder',
|
|
102
|
+
state: 'Default',
|
|
103
|
+
disabled: false,
|
|
104
|
+
labelPosition: 'None',
|
|
105
|
+
labelText: 'Label text',
|
|
106
|
+
helper: false,
|
|
107
|
+
helperText: 'Helper text',
|
|
108
|
+
multiDefaultOption: ['Option 1', 'Option 2'],
|
|
109
|
+
openDirection: 'Auto',
|
|
110
|
+
},
|
|
111
|
+
};
|
|
112
|
+
const Template = ({ size, disabled = false, labelPosition, labelText, helper, helperText, state = 'default', placeholder, multiDefaultOption, openDirection, }) => {
|
|
113
|
+
const stateValue = state === 'Error' ? 'error' : 'default';
|
|
114
|
+
const sizeLookup = { Large: 'lg', Medium: 'md', Small: 'sm' };
|
|
115
|
+
const labelPosLookup = { None: 'no-default', Inside: 'inside', Outside: 'outside' };
|
|
116
|
+
const multiDefaultOptionValue = multiDefaultOption.map((value) => value.toLowerCase().replace(' ', '-'));
|
|
117
117
|
return formatHtmlPreview(`
|
|
118
118
|
<style>
|
|
119
119
|
/* demo-wrapper is for demonstration purposes only*/
|
|
@@ -141,6 +141,7 @@ const Template = ({ size, disabled = false, labelPosition, labelText, helper, he
|
|
|
141
141
|
<sdds-dropdown-option value="option-3" tabindex="0">Option 3</sdds-dropdown-option>
|
|
142
142
|
</sdds-dropdown>
|
|
143
143
|
</div>
|
|
144
|
-
`);
|
|
145
|
-
};
|
|
146
|
-
export const WebComponentMultiselect = Template.bind({});
|
|
144
|
+
`);
|
|
145
|
+
};
|
|
146
|
+
export const WebComponentMultiselect = Template.bind({});
|
|
147
|
+
//# sourceMappingURL=dropdown-wc-multiselect.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropdown-wc-multiselect.stories.js","sourceRoot":"","sources":["../../../src/components/dropdown/dropdown-wc-multiselect.stories.tsx"],"names":[],"mappings":"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","sourcesContent":["import readme from './readme.md';\nimport readmeOption from './dropdown-option/readme.md';\n\nimport { formatHtmlPreview } from '../../utils/utils';\n\nexport default {\n title: 'Components/Dropdown',\n parameters: {\n layout: 'centered',\n notes: { 'Dropdown': readme, 'Dropdown option': readmeOption },\n design: [\n {\n name: 'Figma',\n type: 'figma',\n url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=9754%3A22916&t=M7Ova7xZaoeMwb5e-1',\n },\n {\n name: 'Link',\n type: 'link',\n url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=9754%3A22916&t=M7Ova7xZaoeMwb5e-1',\n },\n ],\n },\n argTypes: {\n size: {\n name: 'Size',\n control: {\n type: 'radio',\n },\n options: ['Large', 'Medium', 'Small'],\n description: 'Size of the dropdown',\n },\n placeholder: {\n name: 'Placeholder',\n type: 'string',\n description: 'Placeholder text when no option is selected',\n },\n labelPosition: {\n name: 'Label position',\n control: {\n type: 'radio',\n },\n options: ['None', 'Inside', 'Outside'],\n description: 'Label text position',\n },\n labelText: {\n name: 'Label text',\n control: 'text',\n description: 'Label text helps to describe what the dropdown contains',\n if: { arg: 'labelPosition', neq: 'None' },\n },\n disabled: {\n name: 'Disabled',\n description: 'Disables the component',\n control: {\n type: 'boolean',\n },\n },\n state: {\n name: 'State',\n control: {\n type: 'radio',\n },\n options: ['Default', 'Error'],\n description: 'Support error state',\n },\n helper: {\n name: 'Add helper text',\n control: 'boolean',\n description: 'Adds a helper text.',\n },\n helperText: {\n name: 'Helper text',\n description: 'Helper text assists the user with additional information about the dropdown',\n control: 'text',\n if: { arg: 'helper', eq: true },\n },\n multiDefaultOption: {\n name: 'Default options',\n description: 'Sets a pre-selected option and replaces placeholder',\n if: { arg: 'type', neq: 'Default' },\n control: {\n type: 'check',\n },\n options: ['Option 1', 'Option 2', 'Option 3'],\n },\n openDirection: {\n name: 'Open direction',\n description: 'The direction the dropdown will open.',\n control: {\n type: 'radio',\n },\n options: ['Up', 'Down', 'Auto'],\n table: {\n summary: {\n defaultValue: 'auto',\n },\n },\n },\n },\n args: {\n size: 'Large',\n placeholder: 'Placeholder',\n state: 'Default',\n disabled: false,\n labelPosition: 'None',\n labelText: 'Label text',\n helper: false,\n helperText: 'Helper text',\n multiDefaultOption: ['Option 1', 'Option 2'],\n openDirection: 'Auto',\n },\n};\n\nconst Template = ({\n size,\n disabled = false,\n labelPosition,\n labelText,\n helper,\n helperText,\n state = 'default',\n placeholder,\n multiDefaultOption,\n openDirection,\n}) => {\n const stateValue = state === 'Error' ? 'error' : 'default';\n const sizeLookup = { Large: 'lg', Medium: 'md', Small: 'sm' };\n const labelPosLookup = { None: 'no-default', Inside: 'inside', Outside: 'outside' };\n const multiDefaultOptionValue = multiDefaultOption.map((value) =>\n value.toLowerCase().replace(' ', '-'),\n );\n return formatHtmlPreview(`\n <style>\n /* demo-wrapper is for demonstration purposes only*/\n .demo-wrapper {\n width: 300px;\n height:200px;\n }\n </style>\n\n <div class=\"demo-wrapper\">\n <sdds-dropdown\n id=\"sdds-dropdown-reg\"\n size=\"${sizeLookup[size]}\"\n placeholder=\"${placeholder}\"\n disabled=\"${disabled}\"\n open-direction=\"${openDirection.toLowerCase()}\"\n label-position=\"${labelPosLookup[labelPosition]}\"\n ${labelPosLookup[labelPosition] !== 'no-default' ? `label=\"${labelText}\"` : ''}\n ${helper ? `helper=\"${helperText}\"` : ''}\n state=\"${stateValue}\"\n type=\"multiselect\"\n default-option=\"${multiDefaultOptionValue}\" >\n <sdds-dropdown-option value=\"option-1\" tabindex=\"0\">Option 1</sdds-dropdown-option>\n <sdds-dropdown-option value=\"option-2\" tabindex=\"0\" disabled>Option 2</sdds-dropdown-option>\n <sdds-dropdown-option value=\"option-3\" tabindex=\"0\">Option 3</sdds-dropdown-option>\n </sdds-dropdown>\n </div>\n `);\n};\n\nexport const WebComponentMultiselect = Template.bind({});\n"]}
|