@scania/tegel 0.0.2 → 0.0.31
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/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-46013562.entry.js +2 -0
- package/dist/tegel/p-46013562.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-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 +3 -3
- package/dist/components/dropdown-option.js +0 -100
- package/dist/components/dropdown.js +0 -303
- package/dist/components/icon.js +0 -58
- package/dist/components/index.d.ts +0 -62
- package/dist/components/index.js +0 -42
- package/dist/components/popper.js +0 -1799
- package/dist/components/sdds-accordion-item.d.ts +0 -11
- package/dist/components/sdds-accordion-item.js +0 -60
- package/dist/components/sdds-accordion.d.ts +0 -11
- package/dist/components/sdds-accordion.js +0 -38
- package/dist/components/sdds-badges.d.ts +0 -11
- package/dist/components/sdds-badges.js +0 -75
- package/dist/components/sdds-banner.d.ts +0 -11
- package/dist/components/sdds-banner.js +0 -119
- package/dist/components/sdds-block.d.ts +0 -11
- package/dist/components/sdds-block.js +0 -48
- package/dist/components/sdds-body-cell.d.ts +0 -11
- package/dist/components/sdds-body-cell.js +0 -6
- package/dist/components/sdds-breadcrumb-item.d.ts +0 -11
- package/dist/components/sdds-breadcrumb-item.js +0 -43
- package/dist/components/sdds-breadcrumb.d.ts +0 -11
- package/dist/components/sdds-breadcrumb.js +0 -37
- package/dist/components/sdds-button.d.ts +0 -11
- package/dist/components/sdds-button.js +0 -59
- package/dist/components/sdds-card.d.ts +0 -11
- package/dist/components/sdds-card.js +0 -84
- package/dist/components/sdds-checkbox.d.ts +0 -11
- package/dist/components/sdds-checkbox.js +0 -76
- package/dist/components/sdds-datetime.d.ts +0 -11
- package/dist/components/sdds-datetime.js +0 -129
- package/dist/components/sdds-dropdown-filter.d.ts +0 -11
- package/dist/components/sdds-dropdown-filter.js +0 -138
- package/dist/components/sdds-dropdown-option.d.ts +0 -11
- package/dist/components/sdds-dropdown-option.js +0 -6
- package/dist/components/sdds-dropdown.d.ts +0 -11
- package/dist/components/sdds-dropdown.js +0 -6
- package/dist/components/sdds-header-cell.d.ts +0 -11
- package/dist/components/sdds-header-cell.js +0 -170
- package/dist/components/sdds-icon.d.ts +0 -11
- package/dist/components/sdds-icon.js +0 -6
- package/dist/components/sdds-inline-tab.d.ts +0 -11
- package/dist/components/sdds-inline-tab.js +0 -40
- package/dist/components/sdds-inline-tabs-fullbleed.d.ts +0 -11
- package/dist/components/sdds-inline-tabs-fullbleed.js +0 -117
- package/dist/components/sdds-inline-tabs.d.ts +0 -11
- package/dist/components/sdds-inline-tabs.js +0 -245
- package/dist/components/sdds-link.d.ts +0 -11
- package/dist/components/sdds-link.js +0 -6
- package/dist/components/sdds-link2.js +0 -44
- package/dist/components/sdds-message.d.ts +0 -11
- package/dist/components/sdds-message.js +0 -67
- package/dist/components/sdds-modal.d.ts +0 -11
- package/dist/components/sdds-modal.js +0 -77
- package/dist/components/sdds-navigation-tabs.d.ts +0 -11
- package/dist/components/sdds-navigation-tabs.js +0 -117
- package/dist/components/sdds-popover-canvas.d.ts +0 -11
- package/dist/components/sdds-popover-canvas.js +0 -108
- package/dist/components/sdds-popover-menu.d.ts +0 -11
- package/dist/components/sdds-popover-menu.js +0 -109
- package/dist/components/sdds-radio-button.d.ts +0 -11
- package/dist/components/sdds-radio-button.js +0 -52
- package/dist/components/sdds-slider.d.ts +0 -11
- package/dist/components/sdds-slider.js +0 -394
- package/dist/components/sdds-spinner.d.ts +0 -11
- package/dist/components/sdds-spinner.js +0 -37
- package/dist/components/sdds-table-body-row-expandable.d.ts +0 -11
- package/dist/components/sdds-table-body-row-expandable.js +0 -105
- package/dist/components/sdds-table-body-row.d.ts +0 -11
- package/dist/components/sdds-table-body-row.js +0 -6
- package/dist/components/sdds-table-body.d.ts +0 -11
- package/dist/components/sdds-table-body.js +0 -337
- package/dist/components/sdds-table-footer.d.ts +0 -11
- package/dist/components/sdds-table-footer.js +0 -195
- package/dist/components/sdds-table-header.d.ts +0 -11
- package/dist/components/sdds-table-header.js +0 -124
- package/dist/components/sdds-table-toolbar.d.ts +0 -11
- package/dist/components/sdds-table-toolbar.js +0 -87
- package/dist/components/sdds-table.d.ts +0 -11
- package/dist/components/sdds-table.js +0 -91
- package/dist/components/sdds-textarea.d.ts +0 -11
- package/dist/components/sdds-textarea.js +0 -109
- package/dist/components/sdds-textfield.d.ts +0 -11
- package/dist/components/sdds-textfield.js +0 -127
- package/dist/components/sdds-toast.d.ts +0 -11
- package/dist/components/sdds-toast.js +0 -117
- package/dist/components/sdds-toggle.d.ts +0 -11
- package/dist/components/sdds-toggle.js +0 -69
- package/dist/components/sdds-tooltip.d.ts +0 -11
- package/dist/components/sdds-tooltip.js +0 -127
- package/dist/components/table-body-cell.js +0 -101
- package/dist/components/table-body-row.js +0 -120
- 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,229 +1,230 @@
|
|
|
1
|
-
import { h } from '@stencil/core';
|
|
2
|
-
import { createPopper } from '@popperjs/core';
|
|
3
|
-
export class Tooltip {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.offsetSkidding = 0;
|
|
6
|
-
this.offsetDistance = 8;
|
|
7
|
-
this.text = '';
|
|
8
|
-
this.selector = '';
|
|
9
|
-
this.referenceEl = undefined;
|
|
10
|
-
this.mouseOverTooltip = false;
|
|
11
|
-
this.show = false;
|
|
12
|
-
this.placement = 'bottom';
|
|
13
|
-
this.popperInstance = undefined;
|
|
14
|
-
this.target = undefined;
|
|
15
|
-
}
|
|
16
|
-
componentDidLoad() {
|
|
17
|
-
var _a;
|
|
18
|
-
this.target = (_a = this.referenceEl) !== null && _a !== void 0 ? _a : document.querySelector(this.selector);
|
|
19
|
-
const thisValue = this;
|
|
20
|
-
this.popperInstance = createPopper(this.target, this.tooltip, {
|
|
21
|
-
placement: thisValue.placement,
|
|
22
|
-
modifiers: [
|
|
23
|
-
{
|
|
24
|
-
name: 'positionCalc',
|
|
25
|
-
enabled: true,
|
|
26
|
-
phase: 'main',
|
|
27
|
-
fn({ state }) {
|
|
28
|
-
if (state.placement === 'bottom-start' || state.placement === 'right-start') {
|
|
29
|
-
thisValue.border = 'top-left';
|
|
30
|
-
}
|
|
31
|
-
else if (state.placement === 'bottom-end' || state.placement === 'left-start') {
|
|
32
|
-
thisValue.border = 'top-right';
|
|
33
|
-
}
|
|
34
|
-
else if (state.placement === 'top-end' || state.placement === 'left-end') {
|
|
35
|
-
thisValue.border = 'bottom-right';
|
|
36
|
-
}
|
|
37
|
-
else if (state.placement === 'top-start' || state.placement === 'right-end') {
|
|
38
|
-
thisValue.border = 'bottom-left';
|
|
39
|
-
}
|
|
40
|
-
else if (state.placement === 'bottom' || state.placement === 'top') {
|
|
41
|
-
thisValue.border = 'default';
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
name: 'offset',
|
|
47
|
-
options: {
|
|
48
|
-
offset: [this.offsetSkidding, this.offsetDistance],
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
],
|
|
52
|
-
});
|
|
53
|
-
const showTooltip = () => {
|
|
54
|
-
this.show = true;
|
|
55
|
-
};
|
|
56
|
-
const hideTooltip = () => {
|
|
57
|
-
this.show = false;
|
|
58
|
-
};
|
|
59
|
-
// For tabbing over element
|
|
60
|
-
this.target.addEventListener('focusin', () => {
|
|
61
|
-
showTooltip();
|
|
62
|
-
});
|
|
63
|
-
this.target.addEventListener('focusout', () => {
|
|
64
|
-
hideTooltip();
|
|
65
|
-
});
|
|
66
|
-
// For hovering over element with selector
|
|
67
|
-
this.target.addEventListener('mouseenter', () => {
|
|
68
|
-
showTooltip();
|
|
69
|
-
});
|
|
70
|
-
this.target.addEventListener('mouseleave', () => {
|
|
71
|
-
hideTooltip();
|
|
72
|
-
});
|
|
73
|
-
// For hovering over tooltip itself:
|
|
74
|
-
if (this.mouseOverTooltip === true) {
|
|
75
|
-
this.tooltip.addEventListener('mouseenter', () => {
|
|
76
|
-
showTooltip();
|
|
77
|
-
});
|
|
78
|
-
this.tooltip.addEventListener('mouseleave', () => {
|
|
79
|
-
hideTooltip();
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
disconnectedCallback() {
|
|
84
|
-
var _a;
|
|
85
|
-
(_a = this.popperInstance) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
86
|
-
}
|
|
87
|
-
/* Slot on line 118 is added to support adding HTML elements to component */
|
|
88
|
-
render() {
|
|
89
|
-
return (h("span", { ref: (el) => {
|
|
90
|
-
this.tooltip = el;
|
|
91
|
-
}, class: `sdds-tooltip sdds-tooltip-${this.border} ${this.show ? 'sdds-tooltip-show' : ''}` }, this.text, h("slot", null)));
|
|
92
|
-
}
|
|
93
|
-
static get is() { return "sdds-tooltip"; }
|
|
94
|
-
static get encapsulation() { return "shadow"; }
|
|
95
|
-
static get originalStyleUrls() {
|
|
96
|
-
return {
|
|
97
|
-
"$": ["tooltip.scss"]
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
static get styleUrls() {
|
|
101
|
-
return {
|
|
102
|
-
"$": ["tooltip.css"]
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
static get properties() {
|
|
106
|
-
return {
|
|
107
|
-
"text": {
|
|
108
|
-
"type": "string",
|
|
109
|
-
"mutable": false,
|
|
110
|
-
"complexType": {
|
|
111
|
-
"original": "string",
|
|
112
|
-
"resolved": "string",
|
|
113
|
-
"references": {}
|
|
114
|
-
},
|
|
115
|
-
"required": false,
|
|
116
|
-
"optional": false,
|
|
117
|
-
"docs": {
|
|
118
|
-
"tags": [],
|
|
119
|
-
"text": "In case tooltip contains only text, no HTML, text can be passed by this prop"
|
|
120
|
-
},
|
|
121
|
-
"attribute": "text",
|
|
122
|
-
"reflect": false,
|
|
123
|
-
"defaultValue": "''"
|
|
124
|
-
},
|
|
125
|
-
"selector": {
|
|
126
|
-
"type": "string",
|
|
127
|
-
"mutable": false,
|
|
128
|
-
"complexType": {
|
|
129
|
-
"original": "string",
|
|
130
|
-
"resolved": "string",
|
|
131
|
-
"references": {}
|
|
132
|
-
},
|
|
133
|
-
"required": false,
|
|
134
|
-
"optional": false,
|
|
135
|
-
"docs": {
|
|
136
|
-
"tags": [],
|
|
137
|
-
"text": "The CSS-selector for an element that will trigger the tooltip"
|
|
138
|
-
},
|
|
139
|
-
"attribute": "selector",
|
|
140
|
-
"reflect": false,
|
|
141
|
-
"defaultValue": "''"
|
|
142
|
-
},
|
|
143
|
-
"referenceEl": {
|
|
144
|
-
"type": "unknown",
|
|
145
|
-
"mutable": false,
|
|
146
|
-
"complexType": {
|
|
147
|
-
"original": "HTMLElement",
|
|
148
|
-
"resolved": "HTMLElement",
|
|
149
|
-
"references": {
|
|
150
|
-
"HTMLElement": {
|
|
151
|
-
"location": "global"
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
},
|
|
155
|
-
"required": false,
|
|
156
|
-
"optional": false,
|
|
157
|
-
"docs": {
|
|
158
|
-
"tags": [],
|
|
159
|
-
"text": "Element that will trigger the tooltip (takes priority over selector)"
|
|
160
|
-
}
|
|
161
|
-
},
|
|
162
|
-
"mouseOverTooltip": {
|
|
163
|
-
"type": "boolean",
|
|
164
|
-
"mutable": false,
|
|
165
|
-
"complexType": {
|
|
166
|
-
"original": "boolean",
|
|
167
|
-
"resolved": "boolean",
|
|
168
|
-
"references": {}
|
|
169
|
-
},
|
|
170
|
-
"required": false,
|
|
171
|
-
"optional": false,
|
|
172
|
-
"docs": {
|
|
173
|
-
"tags": [],
|
|
174
|
-
"text": "Allow mouse over tooltip. Useful when tooltip contains clickable elements like link or button."
|
|
175
|
-
},
|
|
176
|
-
"attribute": "mouse-over-tooltip",
|
|
177
|
-
"reflect": false,
|
|
178
|
-
"defaultValue": "false"
|
|
179
|
-
},
|
|
180
|
-
"show": {
|
|
181
|
-
"type": "boolean",
|
|
182
|
-
"mutable": true,
|
|
183
|
-
"complexType": {
|
|
184
|
-
"original": "boolean",
|
|
185
|
-
"resolved": "boolean",
|
|
186
|
-
"references": {}
|
|
187
|
-
},
|
|
188
|
-
"required": false,
|
|
189
|
-
"optional": false,
|
|
190
|
-
"docs": {
|
|
191
|
-
"tags": [],
|
|
192
|
-
"text": "Prop in control of showing and hiding prop"
|
|
193
|
-
},
|
|
194
|
-
"attribute": "show",
|
|
195
|
-
"reflect": false,
|
|
196
|
-
"defaultValue": "false"
|
|
197
|
-
},
|
|
198
|
-
"placement": {
|
|
199
|
-
"type": "string",
|
|
200
|
-
"mutable": false,
|
|
201
|
-
"complexType": {
|
|
202
|
-
"original": "Placement",
|
|
203
|
-
"resolved": "\"auto\" | \"auto-end\" | \"auto-start\" | \"bottom\" | \"bottom-end\" | \"bottom-start\" | \"left\" | \"left-end\" | \"left-start\" | \"right\" | \"right-end\" | \"right-start\" | \"top\" | \"top-end\" | \"top-start\"",
|
|
204
|
-
"references": {
|
|
205
|
-
"Placement": {
|
|
206
|
-
"location": "import",
|
|
207
|
-
"path": "@popperjs/core"
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
},
|
|
211
|
-
"required": false,
|
|
212
|
-
"optional": false,
|
|
213
|
-
"docs": {
|
|
214
|
-
"tags": [],
|
|
215
|
-
"text": "Placement of tooltip."
|
|
216
|
-
},
|
|
217
|
-
"attribute": "placement",
|
|
218
|
-
"reflect": false,
|
|
219
|
-
"defaultValue": "'bottom'"
|
|
220
|
-
}
|
|
221
|
-
};
|
|
222
|
-
}
|
|
223
|
-
static get states() {
|
|
224
|
-
return {
|
|
225
|
-
"popperInstance": {},
|
|
226
|
-
"target": {}
|
|
227
|
-
};
|
|
228
|
-
}
|
|
229
|
-
}
|
|
1
|
+
import { h } from '@stencil/core';
|
|
2
|
+
import { createPopper } from '@popperjs/core';
|
|
3
|
+
export class Tooltip {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.offsetSkidding = 0;
|
|
6
|
+
this.offsetDistance = 8;
|
|
7
|
+
this.text = '';
|
|
8
|
+
this.selector = '';
|
|
9
|
+
this.referenceEl = undefined;
|
|
10
|
+
this.mouseOverTooltip = false;
|
|
11
|
+
this.show = false;
|
|
12
|
+
this.placement = 'bottom';
|
|
13
|
+
this.popperInstance = undefined;
|
|
14
|
+
this.target = undefined;
|
|
15
|
+
}
|
|
16
|
+
componentDidLoad() {
|
|
17
|
+
var _a;
|
|
18
|
+
this.target = (_a = this.referenceEl) !== null && _a !== void 0 ? _a : document.querySelector(this.selector);
|
|
19
|
+
const thisValue = this;
|
|
20
|
+
this.popperInstance = createPopper(this.target, this.tooltip, {
|
|
21
|
+
placement: thisValue.placement,
|
|
22
|
+
modifiers: [
|
|
23
|
+
{
|
|
24
|
+
name: 'positionCalc',
|
|
25
|
+
enabled: true,
|
|
26
|
+
phase: 'main',
|
|
27
|
+
fn({ state }) {
|
|
28
|
+
if (state.placement === 'bottom-start' || state.placement === 'right-start') {
|
|
29
|
+
thisValue.border = 'top-left';
|
|
30
|
+
}
|
|
31
|
+
else if (state.placement === 'bottom-end' || state.placement === 'left-start') {
|
|
32
|
+
thisValue.border = 'top-right';
|
|
33
|
+
}
|
|
34
|
+
else if (state.placement === 'top-end' || state.placement === 'left-end') {
|
|
35
|
+
thisValue.border = 'bottom-right';
|
|
36
|
+
}
|
|
37
|
+
else if (state.placement === 'top-start' || state.placement === 'right-end') {
|
|
38
|
+
thisValue.border = 'bottom-left';
|
|
39
|
+
}
|
|
40
|
+
else if (state.placement === 'bottom' || state.placement === 'top') {
|
|
41
|
+
thisValue.border = 'default';
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: 'offset',
|
|
47
|
+
options: {
|
|
48
|
+
offset: [this.offsetSkidding, this.offsetDistance],
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
});
|
|
53
|
+
const showTooltip = () => {
|
|
54
|
+
this.show = true;
|
|
55
|
+
};
|
|
56
|
+
const hideTooltip = () => {
|
|
57
|
+
this.show = false;
|
|
58
|
+
};
|
|
59
|
+
// For tabbing over element
|
|
60
|
+
this.target.addEventListener('focusin', () => {
|
|
61
|
+
showTooltip();
|
|
62
|
+
});
|
|
63
|
+
this.target.addEventListener('focusout', () => {
|
|
64
|
+
hideTooltip();
|
|
65
|
+
});
|
|
66
|
+
// For hovering over element with selector
|
|
67
|
+
this.target.addEventListener('mouseenter', () => {
|
|
68
|
+
showTooltip();
|
|
69
|
+
});
|
|
70
|
+
this.target.addEventListener('mouseleave', () => {
|
|
71
|
+
hideTooltip();
|
|
72
|
+
});
|
|
73
|
+
// For hovering over tooltip itself:
|
|
74
|
+
if (this.mouseOverTooltip === true) {
|
|
75
|
+
this.tooltip.addEventListener('mouseenter', () => {
|
|
76
|
+
showTooltip();
|
|
77
|
+
});
|
|
78
|
+
this.tooltip.addEventListener('mouseleave', () => {
|
|
79
|
+
hideTooltip();
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
disconnectedCallback() {
|
|
84
|
+
var _a;
|
|
85
|
+
(_a = this.popperInstance) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
86
|
+
}
|
|
87
|
+
/* Slot on line 118 is added to support adding HTML elements to component */
|
|
88
|
+
render() {
|
|
89
|
+
return (h("span", { ref: (el) => {
|
|
90
|
+
this.tooltip = el;
|
|
91
|
+
}, class: `sdds-tooltip sdds-tooltip-${this.border} ${this.show ? 'sdds-tooltip-show' : ''}` }, this.text, h("slot", null)));
|
|
92
|
+
}
|
|
93
|
+
static get is() { return "sdds-tooltip"; }
|
|
94
|
+
static get encapsulation() { return "shadow"; }
|
|
95
|
+
static get originalStyleUrls() {
|
|
96
|
+
return {
|
|
97
|
+
"$": ["tooltip.scss"]
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
static get styleUrls() {
|
|
101
|
+
return {
|
|
102
|
+
"$": ["tooltip.css"]
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
static get properties() {
|
|
106
|
+
return {
|
|
107
|
+
"text": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"mutable": false,
|
|
110
|
+
"complexType": {
|
|
111
|
+
"original": "string",
|
|
112
|
+
"resolved": "string",
|
|
113
|
+
"references": {}
|
|
114
|
+
},
|
|
115
|
+
"required": false,
|
|
116
|
+
"optional": false,
|
|
117
|
+
"docs": {
|
|
118
|
+
"tags": [],
|
|
119
|
+
"text": "In case tooltip contains only text, no HTML, text can be passed by this prop"
|
|
120
|
+
},
|
|
121
|
+
"attribute": "text",
|
|
122
|
+
"reflect": false,
|
|
123
|
+
"defaultValue": "''"
|
|
124
|
+
},
|
|
125
|
+
"selector": {
|
|
126
|
+
"type": "string",
|
|
127
|
+
"mutable": false,
|
|
128
|
+
"complexType": {
|
|
129
|
+
"original": "string",
|
|
130
|
+
"resolved": "string",
|
|
131
|
+
"references": {}
|
|
132
|
+
},
|
|
133
|
+
"required": false,
|
|
134
|
+
"optional": false,
|
|
135
|
+
"docs": {
|
|
136
|
+
"tags": [],
|
|
137
|
+
"text": "The CSS-selector for an element that will trigger the tooltip"
|
|
138
|
+
},
|
|
139
|
+
"attribute": "selector",
|
|
140
|
+
"reflect": false,
|
|
141
|
+
"defaultValue": "''"
|
|
142
|
+
},
|
|
143
|
+
"referenceEl": {
|
|
144
|
+
"type": "unknown",
|
|
145
|
+
"mutable": false,
|
|
146
|
+
"complexType": {
|
|
147
|
+
"original": "HTMLElement",
|
|
148
|
+
"resolved": "HTMLElement",
|
|
149
|
+
"references": {
|
|
150
|
+
"HTMLElement": {
|
|
151
|
+
"location": "global"
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"required": false,
|
|
156
|
+
"optional": false,
|
|
157
|
+
"docs": {
|
|
158
|
+
"tags": [],
|
|
159
|
+
"text": "Element that will trigger the tooltip (takes priority over selector)"
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"mouseOverTooltip": {
|
|
163
|
+
"type": "boolean",
|
|
164
|
+
"mutable": false,
|
|
165
|
+
"complexType": {
|
|
166
|
+
"original": "boolean",
|
|
167
|
+
"resolved": "boolean",
|
|
168
|
+
"references": {}
|
|
169
|
+
},
|
|
170
|
+
"required": false,
|
|
171
|
+
"optional": false,
|
|
172
|
+
"docs": {
|
|
173
|
+
"tags": [],
|
|
174
|
+
"text": "Allow mouse over tooltip. Useful when tooltip contains clickable elements like link or button."
|
|
175
|
+
},
|
|
176
|
+
"attribute": "mouse-over-tooltip",
|
|
177
|
+
"reflect": false,
|
|
178
|
+
"defaultValue": "false"
|
|
179
|
+
},
|
|
180
|
+
"show": {
|
|
181
|
+
"type": "boolean",
|
|
182
|
+
"mutable": true,
|
|
183
|
+
"complexType": {
|
|
184
|
+
"original": "boolean",
|
|
185
|
+
"resolved": "boolean",
|
|
186
|
+
"references": {}
|
|
187
|
+
},
|
|
188
|
+
"required": false,
|
|
189
|
+
"optional": false,
|
|
190
|
+
"docs": {
|
|
191
|
+
"tags": [],
|
|
192
|
+
"text": "Prop in control of showing and hiding prop"
|
|
193
|
+
},
|
|
194
|
+
"attribute": "show",
|
|
195
|
+
"reflect": false,
|
|
196
|
+
"defaultValue": "false"
|
|
197
|
+
},
|
|
198
|
+
"placement": {
|
|
199
|
+
"type": "string",
|
|
200
|
+
"mutable": false,
|
|
201
|
+
"complexType": {
|
|
202
|
+
"original": "Placement",
|
|
203
|
+
"resolved": "\"auto\" | \"auto-end\" | \"auto-start\" | \"bottom\" | \"bottom-end\" | \"bottom-start\" | \"left\" | \"left-end\" | \"left-start\" | \"right\" | \"right-end\" | \"right-start\" | \"top\" | \"top-end\" | \"top-start\"",
|
|
204
|
+
"references": {
|
|
205
|
+
"Placement": {
|
|
206
|
+
"location": "import",
|
|
207
|
+
"path": "@popperjs/core"
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"required": false,
|
|
212
|
+
"optional": false,
|
|
213
|
+
"docs": {
|
|
214
|
+
"tags": [],
|
|
215
|
+
"text": "Placement of tooltip."
|
|
216
|
+
},
|
|
217
|
+
"attribute": "placement",
|
|
218
|
+
"reflect": false,
|
|
219
|
+
"defaultValue": "'bottom'"
|
|
220
|
+
}
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
static get states() {
|
|
224
|
+
return {
|
|
225
|
+
"popperInstance": {},
|
|
226
|
+
"target": {}
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
//# sourceMappingURL=tooltip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.js","sourceRoot":"","sources":["../../../src/components/tooltip/tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAQ9C,MAAM,OAAO,OAAO;;IAyBlB,mBAAc,GAAW,CAAC,CAAC;IAE3B,mBAAc,GAAW,CAAC,CAAC;gBAzBJ,EAAE;oBAGE,EAAE;;4BAMO,KAAK;gBAGA,KAAK;qBAGf,QAAQ;;;;EAcvC,gBAAgB;;IACd,IAAI,CAAC,MAAM,GAAG,MAAA,IAAI,CAAC,WAAW,mCAAI,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAExE,MAAM,SAAS,GAAG,IAAI,CAAC;IACvB,IAAI,CAAC,cAAc,GAAG,YAAY,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE;MAC5D,SAAS,EAAE,SAAS,CAAC,SAAS;MAC9B,SAAS,EAAE;QACT;UACE,IAAI,EAAE,cAAc;UACpB,OAAO,EAAE,IAAI;UACb,KAAK,EAAE,MAAM;UACb,EAAE,CAAC,EAAE,KAAK,EAAE;YACV,IAAI,KAAK,CAAC,SAAS,KAAK,cAAc,IAAI,KAAK,CAAC,SAAS,KAAK,aAAa,EAAE;cAC3E,SAAS,CAAC,MAAM,GAAG,UAAU,CAAC;aAC/B;iBAAM,IAAI,KAAK,CAAC,SAAS,KAAK,YAAY,IAAI,KAAK,CAAC,SAAS,KAAK,YAAY,EAAE;cAC/E,SAAS,CAAC,MAAM,GAAG,WAAW,CAAC;aAChC;iBAAM,IAAI,KAAK,CAAC,SAAS,KAAK,SAAS,IAAI,KAAK,CAAC,SAAS,KAAK,UAAU,EAAE;cAC1E,SAAS,CAAC,MAAM,GAAG,cAAc,CAAC;aACnC;iBAAM,IAAI,KAAK,CAAC,SAAS,KAAK,WAAW,IAAI,KAAK,CAAC,SAAS,KAAK,WAAW,EAAE;cAC7E,SAAS,CAAC,MAAM,GAAG,aAAa,CAAC;aAClC;iBAAM,IAAI,KAAK,CAAC,SAAS,KAAK,QAAQ,IAAI,KAAK,CAAC,SAAS,KAAK,KAAK,EAAE;cACpE,SAAS,CAAC,MAAM,GAAG,SAAS,CAAC;aAC9B;UACH,CAAC;SACF;QACD;UACE,IAAI,EAAE,QAAQ;UACd,OAAO,EAAE;YACP,MAAM,EAAE,CAAC,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,cAAc,CAAC;WACnD;SACF;OACF;KACF,CAAC,CAAC;IAEH,MAAM,WAAW,GAAG,GAAG,EAAE;MACvB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC,CAAC;IAEF,MAAM,WAAW,GAAG,GAAG,EAAE;MACvB,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;IACpB,CAAC,CAAC;IAEF,2BAA2B;IAC3B,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,GAAG,EAAE;MAC3C,WAAW,EAAE,CAAC;IAChB,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,UAAU,EAAE,GAAG,EAAE;MAC5C,WAAW,EAAE,CAAC;IAChB,CAAC,CAAC,CAAC;IAEH,0CAA0C;IAC1C,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,YAAY,EAAE,GAAG,EAAE;MAC9C,WAAW,EAAE,CAAC;IAChB,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,YAAY,EAAE,GAAG,EAAE;MAC9C,WAAW,EAAE,CAAC;IAChB,CAAC,CAAC,CAAC;IAEH,oCAAoC;IACpC,IAAI,IAAI,CAAC,gBAAgB,KAAK,IAAI,EAAE;MAClC,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,YAAY,EAAE,GAAG,EAAE;QAC/C,WAAW,EAAE,CAAC;MAChB,CAAC,CAAC,CAAC;MAEH,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,YAAY,EAAE,GAAG,EAAE;QAC/C,WAAW,EAAE,CAAC;MAChB,CAAC,CAAC,CAAC;KACJ;EACH,CAAC;EAED,oBAAoB;;IAClB,MAAA,IAAI,CAAC,cAAc,0CAAE,OAAO,EAAE,CAAC;EACjC,CAAC;EAED,4EAA4E;EAC5E,MAAM;IACJ,OAAO,CACL,YACE,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE;QACV,IAAI,CAAC,OAAO,GAAG,EAAsB,CAAC;MACxC,CAAC,EACD,KAAK,EAAE,6BAA6B,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE,EAAE;MAExF,IAAI,CAAC,IAAI;MACV,eAAQ,CACH,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Prop, State } from '@stencil/core';\nimport { createPopper } from '@popperjs/core';\nimport type { Placement, Instance } from '@popperjs/core';\n\n@Component({\n tag: 'sdds-tooltip',\n styleUrl: 'tooltip.scss',\n shadow: true,\n})\nexport class Tooltip {\n /** In case tooltip contains only text, no HTML, text can be passed by this prop */\n @Prop() text: string = '';\n\n /** The CSS-selector for an element that will trigger the tooltip */\n @Prop() selector: string = '';\n\n /** Element that will trigger the tooltip (takes priority over selector) */\n @Prop() referenceEl: HTMLElement;\n\n /** Allow mouse over tooltip. Useful when tooltip contains clickable elements like link or button. */\n @Prop() mouseOverTooltip: boolean = false;\n\n /** Prop in control of showing and hiding prop */\n @Prop({ mutable: true }) show: boolean = false;\n\n /** Placement of tooltip. */\n @Prop() placement: Placement = 'bottom';\n\n @State() popperInstance: Instance;\n\n @State() target: any;\n\n border: string;\n\n offsetSkidding: number = 0;\n\n offsetDistance: number = 8;\n\n tooltip!: HTMLInputElement;\n\n componentDidLoad() {\n this.target = this.referenceEl ?? document.querySelector(this.selector);\n\n const thisValue = this;\n this.popperInstance = createPopper(this.target, this.tooltip, {\n placement: thisValue.placement,\n modifiers: [\n {\n name: 'positionCalc',\n enabled: true,\n phase: 'main',\n fn({ state }) {\n if (state.placement === 'bottom-start' || state.placement === 'right-start') {\n thisValue.border = 'top-left';\n } else if (state.placement === 'bottom-end' || state.placement === 'left-start') {\n thisValue.border = 'top-right';\n } else if (state.placement === 'top-end' || state.placement === 'left-end') {\n thisValue.border = 'bottom-right';\n } else if (state.placement === 'top-start' || state.placement === 'right-end') {\n thisValue.border = 'bottom-left';\n } else if (state.placement === 'bottom' || state.placement === 'top') {\n thisValue.border = 'default';\n }\n },\n },\n {\n name: 'offset',\n options: {\n offset: [this.offsetSkidding, this.offsetDistance],\n },\n },\n ],\n });\n\n const showTooltip = () => {\n this.show = true;\n };\n\n const hideTooltip = () => {\n this.show = false;\n };\n\n // For tabbing over element\n this.target.addEventListener('focusin', () => {\n showTooltip();\n });\n\n this.target.addEventListener('focusout', () => {\n hideTooltip();\n });\n\n // For hovering over element with selector\n this.target.addEventListener('mouseenter', () => {\n showTooltip();\n });\n\n this.target.addEventListener('mouseleave', () => {\n hideTooltip();\n });\n\n // For hovering over tooltip itself:\n if (this.mouseOverTooltip === true) {\n this.tooltip.addEventListener('mouseenter', () => {\n showTooltip();\n });\n\n this.tooltip.addEventListener('mouseleave', () => {\n hideTooltip();\n });\n }\n }\n\n disconnectedCallback() {\n this.popperInstance?.destroy();\n }\n\n /* Slot on line 118 is added to support adding HTML elements to component */\n render() {\n return (\n <span\n ref={(el) => {\n this.tooltip = el as HTMLInputElement;\n }}\n class={`sdds-tooltip sdds-tooltip-${this.border} ${this.show ? 'sdds-tooltip-show' : ''}`}\n >\n {this.text}\n <slot />\n </span>\n );\n }\n}\n"]}
|
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
import { formatHtmlPreview } from '../../utils/utils';
|
|
2
|
-
import readme from './readme.md';
|
|
3
|
-
export default {
|
|
4
|
-
title: 'Components/Tooltip',
|
|
5
|
-
parameters: {
|
|
6
|
-
layout: 'centered',
|
|
7
|
-
notes: readme,
|
|
8
|
-
docs: {
|
|
9
|
-
source: {
|
|
10
|
-
state: 'closed',
|
|
11
|
-
},
|
|
12
|
-
},
|
|
13
|
-
design: [
|
|
14
|
-
{
|
|
15
|
-
name: 'Figma',
|
|
16
|
-
type: 'figma',
|
|
17
|
-
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=2620%3A4152&t=Ne6myqwca5m00de7-1',
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
name: 'Link',
|
|
21
|
-
type: 'link',
|
|
22
|
-
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=2620%3A4152&t=Ne6myqwca5m00de7-1',
|
|
23
|
-
},
|
|
24
|
-
],
|
|
25
|
-
},
|
|
26
|
-
argTypes: {
|
|
27
|
-
tooltipPosition: {
|
|
28
|
-
name: 'Tooltip position',
|
|
29
|
-
control: {
|
|
30
|
-
type: 'select',
|
|
31
|
-
options: [
|
|
32
|
-
'Bottom-start',
|
|
33
|
-
'Bottom',
|
|
34
|
-
'Bottom-end',
|
|
35
|
-
'Top-start',
|
|
36
|
-
'Top',
|
|
37
|
-
'Top-end',
|
|
38
|
-
'Left-start',
|
|
39
|
-
'Left',
|
|
40
|
-
'Left-end',
|
|
41
|
-
'Right-start',
|
|
42
|
-
'Right',
|
|
43
|
-
'Right-end',
|
|
44
|
-
],
|
|
45
|
-
},
|
|
46
|
-
description: 'Position of the tooltip',
|
|
47
|
-
},
|
|
48
|
-
text: {
|
|
49
|
-
name: 'Tooltip text',
|
|
50
|
-
description: 'Text that will be displayed inside tooltip',
|
|
51
|
-
control: {
|
|
52
|
-
type: 'text',
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
slot: {
|
|
56
|
-
name: 'Tooltip html content',
|
|
57
|
-
description: 'A slot for the tooltip to pass in html.',
|
|
58
|
-
control: {
|
|
59
|
-
type: 'text',
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
mouseOverTooltip: {
|
|
63
|
-
name: 'Open while hovering over tooltip',
|
|
64
|
-
control: 'boolean',
|
|
65
|
-
description: 'Keep the tooltip visible as long as the mouse hover over it',
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
args: {
|
|
69
|
-
tooltipPosition: 'Bottom',
|
|
70
|
-
text: 'Text inside tooltip',
|
|
71
|
-
slot: '<p class="sdds-detail-05 sdds-u-m0"> Paragraph tag inside of Tooltip with <b>bold</b> and <i>italic</i> tags too. </p>',
|
|
72
|
-
mouseOverTooltip: true,
|
|
73
|
-
},
|
|
74
|
-
};
|
|
75
|
-
const positionLookup = {
|
|
76
|
-
'Bottom-start': 'bottom-start',
|
|
77
|
-
'Bottom': 'bottom',
|
|
78
|
-
'Bottom-end': 'bottom-end',
|
|
79
|
-
'Top-start': 'top-start',
|
|
80
|
-
'Top': 'top',
|
|
81
|
-
'Top-end': 'top-end',
|
|
82
|
-
'Left-start': 'left-start',
|
|
83
|
-
'Left': 'left',
|
|
84
|
-
'Left-end': 'left-end',
|
|
85
|
-
'Right-start': 'right-start',
|
|
86
|
-
'Right': 'right',
|
|
87
|
-
'Right-end': 'right-end',
|
|
88
|
-
};
|
|
1
|
+
import { formatHtmlPreview } from '../../utils/utils';
|
|
2
|
+
import readme from './readme.md';
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Components/Tooltip',
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: 'centered',
|
|
7
|
+
notes: readme,
|
|
8
|
+
docs: {
|
|
9
|
+
source: {
|
|
10
|
+
state: 'closed',
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
design: [
|
|
14
|
+
{
|
|
15
|
+
name: 'Figma',
|
|
16
|
+
type: 'figma',
|
|
17
|
+
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=2620%3A4152&t=Ne6myqwca5m00de7-1',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: 'Link',
|
|
21
|
+
type: 'link',
|
|
22
|
+
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=2620%3A4152&t=Ne6myqwca5m00de7-1',
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
},
|
|
26
|
+
argTypes: {
|
|
27
|
+
tooltipPosition: {
|
|
28
|
+
name: 'Tooltip position',
|
|
29
|
+
control: {
|
|
30
|
+
type: 'select',
|
|
31
|
+
options: [
|
|
32
|
+
'Bottom-start',
|
|
33
|
+
'Bottom',
|
|
34
|
+
'Bottom-end',
|
|
35
|
+
'Top-start',
|
|
36
|
+
'Top',
|
|
37
|
+
'Top-end',
|
|
38
|
+
'Left-start',
|
|
39
|
+
'Left',
|
|
40
|
+
'Left-end',
|
|
41
|
+
'Right-start',
|
|
42
|
+
'Right',
|
|
43
|
+
'Right-end',
|
|
44
|
+
],
|
|
45
|
+
},
|
|
46
|
+
description: 'Position of the tooltip',
|
|
47
|
+
},
|
|
48
|
+
text: {
|
|
49
|
+
name: 'Tooltip text',
|
|
50
|
+
description: 'Text that will be displayed inside tooltip',
|
|
51
|
+
control: {
|
|
52
|
+
type: 'text',
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
slot: {
|
|
56
|
+
name: 'Tooltip html content',
|
|
57
|
+
description: 'A slot for the tooltip to pass in html.',
|
|
58
|
+
control: {
|
|
59
|
+
type: 'text',
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
mouseOverTooltip: {
|
|
63
|
+
name: 'Open while hovering over tooltip',
|
|
64
|
+
control: 'boolean',
|
|
65
|
+
description: 'Keep the tooltip visible as long as the mouse hover over it',
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
args: {
|
|
69
|
+
tooltipPosition: 'Bottom',
|
|
70
|
+
text: 'Text inside tooltip',
|
|
71
|
+
slot: '<p class="sdds-detail-05 sdds-u-m0"> Paragraph tag inside of Tooltip with <b>bold</b> and <i>italic</i> tags too. </p>',
|
|
72
|
+
mouseOverTooltip: true,
|
|
73
|
+
},
|
|
74
|
+
};
|
|
75
|
+
const positionLookup = {
|
|
76
|
+
'Bottom-start': 'bottom-start',
|
|
77
|
+
'Bottom': 'bottom',
|
|
78
|
+
'Bottom-end': 'bottom-end',
|
|
79
|
+
'Top-start': 'top-start',
|
|
80
|
+
'Top': 'top',
|
|
81
|
+
'Top-end': 'top-end',
|
|
82
|
+
'Left-start': 'left-start',
|
|
83
|
+
'Left': 'left',
|
|
84
|
+
'Left-end': 'left-end',
|
|
85
|
+
'Right-start': 'right-start',
|
|
86
|
+
'Right': 'right',
|
|
87
|
+
'Right-end': 'right-end',
|
|
88
|
+
};
|
|
89
89
|
const ComponentTooltip = ({ tooltipPosition, mouseOverTooltip, text, slot }) => formatHtmlPreview(`
|
|
90
90
|
<style>
|
|
91
91
|
/* demo-wrapper is for demonstration purposes only*/
|
|
@@ -111,5 +111,6 @@ const ComponentTooltip = ({ tooltipPosition, mouseOverTooltip, text, slot }) =>
|
|
|
111
111
|
<!-- Demo button for presentation purposes -->
|
|
112
112
|
<sdds-button size= 'sm' id="button-1" text='Hover me'></sdds-button>
|
|
113
113
|
</div>
|
|
114
|
-
`);
|
|
115
|
-
export const WebComponent = ComponentTooltip.bind({});
|
|
114
|
+
`);
|
|
115
|
+
export const WebComponent = ComponentTooltip.bind({});
|
|
116
|
+
//# sourceMappingURL=tooltip.stories.js.map
|