@scania/tegel 0.0.1-beta.9 → 0.0.4
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-18eb94f0.js +2202 -0
- package/dist/cjs/index-18eb94f0.js.map +1 -0
- package/dist/cjs/index.cjs.js +4 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +24 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/popper-11d5f714.js +1803 -0
- package/dist/cjs/popper-11d5f714.js.map +1 -0
- package/dist/cjs/sdds-accordion-item.cjs.entry.js +36 -0
- package/dist/cjs/sdds-accordion-item.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-accordion.cjs.entry.js +23 -0
- package/dist/cjs/sdds-accordion.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-badges.cjs.entry.js +56 -0
- package/dist/cjs/sdds-badges.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-banner.cjs.entry.js +81 -0
- package/dist/cjs/sdds-banner.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-block.cjs.entry.js +34 -0
- package/dist/cjs/sdds-block.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-body-cell_2.cjs.entry.js +175 -0
- package/dist/cjs/sdds-body-cell_2.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-breadcrumb-item.cjs.entry.js +27 -0
- package/dist/cjs/sdds-breadcrumb-item.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-breadcrumb.cjs.entry.js +25 -0
- package/dist/cjs/sdds-breadcrumb.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-button.cjs.entry.js +39 -0
- package/dist/cjs/sdds-button.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-card.cjs.entry.js +58 -0
- package/dist/cjs/sdds-card.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-checkbox.cjs.entry.js +57 -0
- package/dist/cjs/sdds-checkbox.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-datetime.cjs.entry.js +97 -0
- package/dist/cjs/sdds-datetime.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-dropdown-filter.cjs.entry.js +94 -0
- package/dist/cjs/sdds-dropdown-filter.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-dropdown_2.cjs.entry.js +343 -0
- package/dist/cjs/sdds-dropdown_2.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-footer-link-group.cjs.entry.js +36 -0
- package/dist/cjs/sdds-footer-link-group.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-footer-link.cjs.entry.js +29 -0
- package/dist/cjs/sdds-footer-link.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-footer.cjs.entry.js +28 -0
- package/dist/cjs/sdds-footer.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-header-cell.cjs.entry.js +141 -0
- package/dist/cjs/sdds-header-cell.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-icon.cjs.entry.js +44 -0
- package/dist/cjs/sdds-icon.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-inline-tab.cjs.entry.js +24 -0
- package/dist/cjs/sdds-inline-tab.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-inline-tabs-fullbleed.cjs.entry.js +100 -0
- package/dist/cjs/sdds-inline-tabs-fullbleed.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-inline-tabs.cjs.entry.js +223 -0
- package/dist/cjs/sdds-inline-tabs.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-link.cjs.entry.js +30 -0
- package/dist/cjs/sdds-link.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-message.cjs.entry.js +43 -0
- package/dist/cjs/sdds-message.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-modal.cjs.entry.js +53 -0
- package/dist/cjs/sdds-modal.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-navigation-tabs.cjs.entry.js +100 -0
- package/dist/cjs/sdds-navigation-tabs.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-popover-canvas.cjs.entry.js +86 -0
- package/dist/cjs/sdds-popover-canvas.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-popover-menu.cjs.entry.js +87 -0
- package/dist/cjs/sdds-popover-menu.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-radio-button.cjs.entry.js +34 -0
- package/dist/cjs/sdds-radio-button.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-slider.cjs.entry.js +359 -0
- package/dist/cjs/sdds-slider.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-spinner.cjs.entry.js +23 -0
- package/dist/cjs/sdds-spinner.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-stepper-item.cjs.entry.js +40 -0
- package/dist/cjs/sdds-stepper-item.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-stepper.cjs.entry.js +45 -0
- package/dist/cjs/sdds-stepper.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-table-body-row-expandable.cjs.entry.js +84 -0
- package/dist/cjs/sdds-table-body-row-expandable.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-table-body.cjs.entry.js +291 -0
- package/dist/cjs/sdds-table-body.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-table-footer.cjs.entry.js +166 -0
- package/dist/cjs/sdds-table-footer.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-table-header.cjs.entry.js +101 -0
- package/dist/cjs/sdds-table-header.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-table-toolbar.cjs.entry.js +67 -0
- package/dist/cjs/sdds-table-toolbar.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-table.cjs.entry.js +70 -0
- package/dist/cjs/sdds-table.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-textarea.cjs.entry.js +78 -0
- package/dist/cjs/sdds-textarea.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-textfield.cjs.entry.js +93 -0
- package/dist/cjs/sdds-textfield.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-toast.cjs.entry.js +88 -0
- package/dist/cjs/sdds-toast.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-toggle.cjs.entry.js +45 -0
- package/dist/cjs/sdds-toggle.cjs.entry.js.map +1 -0
- package/dist/cjs/sdds-tooltip.cjs.entry.js +106 -0
- package/dist/cjs/sdds-tooltip.cjs.entry.js.map +1 -0
- package/dist/cjs/tegel.cjs.js +28 -0
- package/dist/cjs/tegel.cjs.js.map +1 -0
- package/dist/collection/collection-manifest.json +57 -0
- package/dist/collection/components/accordion/accordion-item/accordion-item.css +153 -0
- package/dist/collection/components/accordion/accordion-item/accordion-item.js +147 -0
- package/dist/collection/components/accordion/accordion-item/accordion-item.js.map +1 -0
- package/dist/collection/components/accordion/accordion.css +63 -0
- package/dist/collection/components/accordion/accordion.js +63 -0
- package/dist/collection/components/accordion/accordion.js.map +1 -0
- package/dist/collection/components/accordion/accordion.stories.js +100 -0
- package/dist/collection/components/accordion/accordion.stories.js.map +1 -0
- package/dist/collection/components/badge/badge.stories.js +103 -0
- package/dist/collection/components/badge/badge.stories.js.map +1 -0
- package/dist/collection/components/badge/badges.css +42 -0
- package/dist/collection/components/badge/badges.js +148 -0
- package/dist/collection/components/badge/badges.js.map +1 -0
- package/dist/collection/components/banner/banner.stories.js +93 -0
- package/dist/collection/components/banner/banner.stories.js.map +1 -0
- package/dist/collection/components/banner/sdds-banner.css +88 -0
- package/dist/collection/components/banner/sdds-banner.js +331 -0
- package/dist/collection/components/banner/sdds-banner.js.map +1 -0
- package/dist/collection/components/banner/sdds-banner.stories.js +130 -0
- package/dist/collection/components/banner/sdds-banner.stories.js.map +1 -0
- package/dist/collection/components/block/block-native.stories.js +49 -0
- package/dist/collection/components/block/block-native.stories.js.map +1 -0
- package/dist/collection/components/block/sdds-block.css +22 -0
- package/dist/collection/components/block/sdds-block.js +56 -0
- package/dist/collection/components/block/sdds-block.js.map +1 -0
- package/dist/collection/components/block/sdds-block.stories.js +49 -0
- package/dist/collection/components/block/sdds-block.stories.js.map +1 -0
- package/dist/collection/components/breadcrumb/breadcrumb.stories.js +27 -0
- package/dist/collection/components/breadcrumb/breadcrumb.stories.js.map +1 -0
- package/dist/collection/components/breadcrumb/sdds-breadcrumb-item/sdds-breadcrumb-item.css +43 -0
- package/dist/collection/components/breadcrumb/sdds-breadcrumb-item/sdds-breadcrumb-item.js +120 -0
- package/dist/collection/components/breadcrumb/sdds-breadcrumb-item/sdds-breadcrumb-item.js.map +1 -0
- package/dist/collection/components/breadcrumb/sdds-breadcrumb.css +30 -0
- package/dist/collection/components/breadcrumb/sdds-breadcrumb.js +23 -0
- package/dist/collection/components/breadcrumb/sdds-breadcrumb.js.map +1 -0
- package/dist/collection/components/breadcrumb/sdds-breadcrumb.stories.js +29 -0
- package/dist/collection/components/breadcrumb/sdds-breadcrumb.stories.js.map +1 -0
- package/dist/collection/components/button/button-component.js +156 -0
- package/dist/collection/components/button/button-component.js.map +1 -0
- package/dist/collection/components/button/button-native.stories.js +188 -0
- package/dist/collection/components/button/button-native.stories.js.map +1 -0
- package/dist/collection/components/button/button-webcomponent.stories.js +190 -0
- package/dist/collection/components/button/button-webcomponent.stories.js.map +1 -0
- package/dist/collection/components/button/button.css +670 -0
- package/dist/collection/components/card/card.stories.js +168 -0
- package/dist/collection/components/card/card.stories.js.map +1 -0
- package/dist/collection/components/card/sdds-card.css +78 -0
- package/dist/collection/components/card/sdds-card.js +277 -0
- package/dist/collection/components/card/sdds-card.js.map +1 -0
- package/dist/collection/components/card/sdds-card.stories.js +169 -0
- package/dist/collection/components/card/sdds-card.stories.js.map +1 -0
- package/dist/collection/components/checkbox/checkbox.stories.js +55 -0
- package/dist/collection/components/checkbox/checkbox.stories.js.map +1 -0
- package/dist/collection/components/checkbox/sdds-checkbox.css +95 -0
- package/dist/collection/components/checkbox/sdds-checkbox.js +240 -0
- package/dist/collection/components/checkbox/sdds-checkbox.js.map +1 -0
- package/dist/collection/components/checkbox/sdds-checkbox.stories.js +72 -0
- package/dist/collection/components/checkbox/sdds-checkbox.stories.js.map +1 -0
- package/dist/collection/components/chips/chips.stories.js +107 -0
- package/dist/collection/components/chips/chips.stories.js.map +1 -0
- package/dist/collection/components/data-table/native-table.stories.js +161 -0
- package/dist/collection/components/data-table/native-table.stories.js.map +1 -0
- package/dist/collection/components/data-table/table/table.css +15 -0
- package/dist/collection/components/data-table/table/table.js +254 -0
- package/dist/collection/components/data-table/table/table.js.map +1 -0
- package/dist/collection/components/data-table/table-body/table-body.css +22 -0
- package/dist/collection/components/data-table/table-body/table-body.js +426 -0
- 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.css +40 -0
- package/dist/collection/components/data-table/table-body-cell/table-body-cell.js +169 -0
- 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.css +175 -0
- package/dist/collection/components/data-table/table-body-row/table-body-row.js +166 -0
- 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.css +78 -0
- package/dist/collection/components/data-table/table-body-row-expandable/table-body-row-expandable.js +157 -0
- 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 +162 -0
- 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 +129 -0
- 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 +59 -0
- 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 +198 -0
- 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 +152 -0
- 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 +136 -0
- 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 +138 -0
- 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 +159 -0
- 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 +128 -0
- 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 +127 -0
- package/dist/collection/components/data-table/table-component-sorting.stories.js.map +1 -0
- package/dist/collection/components/data-table/table-footer/table-footer.css +97 -0
- package/dist/collection/components/data-table/table-footer/table-footer.js +355 -0
- package/dist/collection/components/data-table/table-footer/table-footer.js.map +1 -0
- package/dist/collection/components/data-table/table-header/table-header.css +190 -0
- package/dist/collection/components/data-table/table-header/table-header.js +153 -0
- 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.css +127 -0
- package/dist/collection/components/data-table/table-header-cell/table-header-cell.js +318 -0
- 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.css +93 -0
- package/dist/collection/components/data-table/table-toolbar/table-toolbar.js +142 -0
- package/dist/collection/components/data-table/table-toolbar/table-toolbar.js.map +1 -0
- package/dist/collection/components/datetime/datetime.css +385 -0
- package/dist/collection/components/datetime/datetime.js +353 -0
- package/dist/collection/components/datetime/datetime.js.map +1 -0
- package/dist/collection/components/datetime/datetime.stories.js +208 -0
- package/dist/collection/components/datetime/datetime.stories.js.map +1 -0
- package/dist/collection/components/divider/divider.stories.js +134 -0
- package/dist/collection/components/divider/divider.stories.js.map +1 -0
- package/dist/collection/components/dropdown/dropdown-filter/dropdown-filter.js +340 -0
- package/dist/collection/components/dropdown/dropdown-filter/dropdown-filter.js.map +1 -0
- package/dist/collection/components/dropdown/dropdown-filter/dropdown-filter.stories.js +131 -0
- package/dist/collection/components/dropdown/dropdown-filter/dropdown-filter.stories.js.map +1 -0
- package/dist/collection/components/dropdown/dropdown-native.stories.js +91 -0
- package/dist/collection/components/dropdown/dropdown-native.stories.js.map +1 -0
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +186 -0
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js.map +1 -0
- package/dist/collection/components/dropdown/dropdown-wc-default.stories.js +168 -0
- package/dist/collection/components/dropdown/dropdown-wc-default.stories.js.map +1 -0
- package/dist/collection/components/dropdown/dropdown-wc-multiselect.stories.js +147 -0
- package/dist/collection/components/dropdown/dropdown-wc-multiselect.stories.js.map +1 -0
- package/dist/collection/components/dropdown/dropdown.css +951 -0
- package/dist/collection/components/dropdown/dropdown.js +578 -0
- package/dist/collection/components/dropdown/dropdown.js.map +1 -0
- package/dist/collection/components/footer/footer.stories.js +118 -0
- package/dist/collection/components/footer/footer.stories.js.map +1 -0
- package/dist/collection/components/footer/webcomponent/sdds-footer-link/sdds-footer-link.css +45 -0
- package/dist/collection/components/footer/webcomponent/sdds-footer-link/sdds-footer-link.js +86 -0
- package/dist/collection/components/footer/webcomponent/sdds-footer-link/sdds-footer-link.js.map +1 -0
- package/dist/collection/components/footer/webcomponent/sdds-footer-link-group/sdds-footer-link-group.css +67 -0
- package/dist/collection/components/footer/webcomponent/sdds-footer-link-group/sdds-footer-link-group.js +62 -0
- package/dist/collection/components/footer/webcomponent/sdds-footer-link-group/sdds-footer-link-group.js.map +1 -0
- package/dist/collection/components/footer/webcomponent/sdds-footer.css +85 -0
- package/dist/collection/components/footer/webcomponent/sdds-footer.js +56 -0
- package/dist/collection/components/footer/webcomponent/sdds-footer.js.map +1 -0
- package/dist/collection/components/footer/webcomponent/sdds-footer.stories.js +118 -0
- package/dist/collection/components/footer/webcomponent/sdds-footer.stories.js.map +1 -0
- package/dist/collection/components/header/header-all.stories.js +218 -0
- package/dist/collection/components/header/header-all.stories.js.map +1 -0
- package/dist/collection/components/header/header-default.stories.js +48 -0
- package/dist/collection/components/header/header-default.stories.js.map +1 -0
- package/dist/collection/components/header/header-inline.stories.js +114 -0
- package/dist/collection/components/header/header-inline.stories.js.map +1 -0
- package/dist/collection/components/header/header-search.stories.js +264 -0
- package/dist/collection/components/header/header-search.stories.js.map +1 -0
- package/dist/collection/components/header/header-toolbar.stories.js +205 -0
- package/dist/collection/components/header/header-toolbar.stories.js.map +1 -0
- package/dist/collection/components/icon/icon-font.stories.js +58 -0
- package/dist/collection/components/icon/icon-font.stories.js.map +1 -0
- package/dist/collection/components/icon/icon-web-component.stories.js +52 -0
- package/dist/collection/components/icon/icon-web-component.stories.js.map +1 -0
- package/dist/collection/components/icon/icon.css +16 -0
- package/dist/collection/components/icon/icon.js +90 -0
- package/dist/collection/components/icon/icon.js.map +1 -0
- package/dist/collection/components/icon/iconsArray.js +2 -0
- package/dist/collection/components/link/link.stories.js +46 -0
- package/dist/collection/components/link/link.stories.js.map +1 -0
- package/dist/collection/components/link/sdds-link.css +36 -0
- package/dist/collection/components/link/sdds-link.js +122 -0
- package/dist/collection/components/link/sdds-link.js.map +1 -0
- package/dist/collection/components/link/sdds-link.stories.js +71 -0
- package/dist/collection/components/link/sdds-link.stories.js.map +1 -0
- package/dist/collection/components/message/message.stories.js +109 -0
- package/dist/collection/components/message/message.stories.js.map +1 -0
- package/dist/collection/components/message/sdds-message.css +70 -0
- package/dist/collection/components/message/sdds-message.js +136 -0
- package/dist/collection/components/message/sdds-message.js.map +1 -0
- package/dist/collection/components/message/sdds-message.stories.js +107 -0
- package/dist/collection/components/message/sdds-message.stories.js.map +1 -0
- package/dist/collection/components/modal/modal-native.stories.js +130 -0
- package/dist/collection/components/modal/modal-native.stories.js.map +1 -0
- package/dist/collection/components/modal/modal-webcomponent.stories.js +87 -0
- package/dist/collection/components/modal/modal-webcomponent.stories.js.map +1 -0
- package/dist/collection/components/modal/modal.css +350 -0
- package/dist/collection/components/modal/modal.js +149 -0
- package/dist/collection/components/modal/modal.js.map +1 -0
- package/dist/collection/components/popover-canvas/popover-canvas.css +20 -0
- package/dist/collection/components/popover-canvas/popover-canvas.js +220 -0
- package/dist/collection/components/popover-canvas/popover-canvas.js.map +1 -0
- package/dist/collection/components/popover-canvas/popover-canvas.stories.js +90 -0
- package/dist/collection/components/popover-canvas/popover-canvas.stories.js.map +1 -0
- package/dist/collection/components/popover-menu/popover-menu-icons.stories.js +122 -0
- package/dist/collection/components/popover-menu/popover-menu-icons.stories.js.map +1 -0
- package/dist/collection/components/popover-menu/popover-menu.css +19 -0
- package/dist/collection/components/popover-menu/popover-menu.js +221 -0
- package/dist/collection/components/popover-menu/popover-menu.js.map +1 -0
- package/dist/collection/components/popover-menu/popover-menu.stories.js +115 -0
- package/dist/collection/components/popover-menu/popover-menu.stories.js.map +1 -0
- package/dist/collection/components/radio-button/radio-button-component.css +123 -0
- package/dist/collection/components/radio-button/radio-button-component.stories.js +92 -0
- package/dist/collection/components/radio-button/radio-button-component.stories.js.map +1 -0
- package/dist/collection/components/radio-button/radio-button.js +161 -0
- package/dist/collection/components/radio-button/radio-button.js.map +1 -0
- package/dist/collection/components/radio-button/radio-button.stories.js +69 -0
- package/dist/collection/components/radio-button/radio-button.stories.js.map +1 -0
- package/dist/collection/components/side-menu/side-menu.stories.js +183 -0
- package/dist/collection/components/side-menu/side-menu.stories.js.map +1 -0
- package/dist/collection/components/slider/slider.css +297 -0
- package/dist/collection/components/slider/slider.js +722 -0
- package/dist/collection/components/slider/slider.js.map +1 -0
- package/dist/collection/components/slider/slider.stories.js +209 -0
- package/dist/collection/components/slider/slider.stories.js.map +1 -0
- package/dist/collection/components/spinner/spinner.css +79 -0
- package/dist/collection/components/spinner/spinner.js +62 -0
- package/dist/collection/components/spinner/spinner.js.map +1 -0
- package/dist/collection/components/spinner/spinner.stories.js +60 -0
- package/dist/collection/components/spinner/spinner.stories.js.map +1 -0
- package/dist/collection/components/stepper/sdds-stepper.css +13 -0
- package/dist/collection/components/stepper/sdds-stepper.js +126 -0
- package/dist/collection/components/stepper/sdds-stepper.js.map +1 -0
- package/dist/collection/components/stepper/stepper-item/sdds-stepper-item.css +197 -0
- package/dist/collection/components/stepper/stepper-item/sdds-stepper-item.js +112 -0
- package/dist/collection/components/stepper/stepper-item/sdds-stepper-item.js.map +1 -0
- package/dist/collection/components/stepper/stepper.stories.js +118 -0
- package/dist/collection/components/stepper/stepper.stories.js.map +1 -0
- package/dist/collection/components/tabs/inline-tabs-default/inline-tab/inline-tab.css +3 -0
- package/dist/collection/components/tabs/inline-tabs-default/inline-tab/inline-tab.js +81 -0
- 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.css +156 -0
- package/dist/collection/components/tabs/inline-tabs-default/inline-tabs.js +313 -0
- 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 +72 -0
- 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.css +141 -0
- package/dist/collection/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.js +129 -0
- 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 +47 -0
- 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.css +157 -0
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +129 -0
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js.map +1 -0
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.stories.js +33 -0
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.stories.js.map +1 -0
- package/dist/collection/components/textarea/textarea.css +309 -0
- package/dist/collection/components/textarea/textarea.js +423 -0
- package/dist/collection/components/textarea/textarea.js.map +1 -0
- package/dist/collection/components/textarea/textarea.stories.js +182 -0
- package/dist/collection/components/textarea/textarea.stories.js.map +1 -0
- package/dist/collection/components/textfield/textfield.css +502 -0
- package/dist/collection/components/textfield/textfield.js +440 -0
- package/dist/collection/components/textfield/textfield.js.map +1 -0
- package/dist/collection/components/textfield/textfield.stories.js +240 -0
- package/dist/collection/components/textfield/textfield.stories.js.map +1 -0
- package/dist/collection/components/toast/sdds-toast.css +102 -0
- package/dist/collection/components/toast/sdds-toast.js +257 -0
- package/dist/collection/components/toast/sdds-toast.js.map +1 -0
- package/dist/collection/components/toast/sdds-toast.stories.js +87 -0
- package/dist/collection/components/toast/sdds-toast.stories.js.map +1 -0
- package/dist/collection/components/toast/toast.stories.js +130 -0
- package/dist/collection/components/toast/toast.stories.js.map +1 -0
- package/dist/collection/components/toggle/sdds-toggle.css +104 -0
- package/dist/collection/components/toggle/sdds-toggle.js +210 -0
- package/dist/collection/components/toggle/sdds-toggle.js.map +1 -0
- package/dist/collection/components/toggle/sdds-toggle.stories.js +95 -0
- package/dist/collection/components/toggle/sdds-toggle.stories.js.map +1 -0
- package/dist/collection/components/toggle/toggle.stories.js +73 -0
- package/dist/collection/components/toggle/toggle.stories.js.map +1 -0
- package/dist/collection/components/tooltip/tooltip.css +46 -0
- package/dist/collection/components/tooltip/tooltip.js +230 -0
- package/dist/collection/components/tooltip/tooltip.js.map +1 -0
- package/dist/collection/components/tooltip/tooltip.stories.js +116 -0
- package/dist/collection/components/tooltip/tooltip.stories.js.map +1 -0
- package/dist/collection/components/utility/colour/background-color.stories.js +97 -0
- package/dist/collection/components/utility/colour/background-color.stories.js.map +1 -0
- package/dist/collection/components/utility/colour/text-color.stories.js +95 -0
- package/dist/collection/components/utility/colour/text-color.stories.js.map +1 -0
- package/dist/collection/foundations-stories/colour/colour-brand.stories.js +39 -0
- package/dist/collection/foundations-stories/colour/colour-brand.stories.js.map +1 -0
- package/dist/collection/foundations-stories/colour/colour-scales.stories.js +72 -0
- package/dist/collection/foundations-stories/colour/colour-scales.stories.js.map +1 -0
- package/dist/collection/foundations-stories/colour/colour-semantic.stories.js +41 -0
- package/dist/collection/foundations-stories/colour/colour-semantic.stories.js.map +1 -0
- package/dist/collection/foundations-stories/grid/grid.stories.js +387 -0
- package/dist/collection/foundations-stories/grid/grid.stories.js.map +1 -0
- package/dist/collection/foundations-stories/spacing/spacing-element.stories.js +101 -0
- package/dist/collection/foundations-stories/spacing/spacing-element.stories.js.map +1 -0
- package/dist/collection/foundations-stories/spacing/spacing-layout.stories.js +95 -0
- package/dist/collection/foundations-stories/spacing/spacing-layout.stories.js.map +1 -0
- package/dist/collection/foundations-stories/typography/typography-body.stories.js +17 -0
- package/dist/collection/foundations-stories/typography/typography-body.stories.js.map +1 -0
- package/dist/collection/foundations-stories/typography/typography-detail.stories.js +18 -0
- package/dist/collection/foundations-stories/typography/typography-detail.stories.js.map +1 -0
- package/dist/collection/foundations-stories/typography/typography-headline.stories.js +40 -0
- package/dist/collection/foundations-stories/typography/typography-headline.stories.js.map +1 -0
- package/dist/collection/foundations-stories/typography/typography-paragraph.stories.js +13 -0
- package/dist/collection/foundations-stories/typography/typography-paragraph.stories.js.map +1 -0
- package/dist/collection/index.js +2 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/stories/assets/code-brackets.svg +1 -0
- package/dist/collection/stories/assets/colors.svg +1 -0
- package/dist/collection/stories/assets/comments.svg +1 -0
- package/dist/collection/stories/assets/direction.svg +1 -0
- package/dist/collection/stories/assets/flow.svg +1 -0
- package/dist/collection/stories/assets/plugin.svg +1 -0
- package/dist/collection/stories/assets/repo.svg +1 -0
- package/dist/collection/stories/assets/stackalt.svg +1 -0
- package/dist/collection/utils/utils.js +13 -0
- package/dist/collection/utils/utils.js.map +1 -0
- package/dist/components/dropdown-option.js +102 -0
- package/dist/components/dropdown-option.js.map +1 -0
- package/dist/components/dropdown.js +305 -0
- package/dist/components/dropdown.js.map +1 -0
- package/dist/components/icon.js +60 -0
- package/dist/components/icon.js.map +1 -0
- package/dist/components/index.d.ts +27 -0
- package/dist/components/index.js +3 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/popper.js +1801 -0
- package/dist/components/popper.js.map +1 -0
- package/dist/components/sdds-accordion-item.d.ts +11 -0
- package/dist/components/sdds-accordion-item.js +62 -0
- package/dist/components/sdds-accordion-item.js.map +1 -0
- package/dist/components/sdds-accordion.d.ts +11 -0
- package/dist/components/sdds-accordion.js +40 -0
- package/dist/components/sdds-accordion.js.map +1 -0
- package/dist/components/sdds-badges.d.ts +11 -0
- package/dist/components/sdds-badges.js +77 -0
- package/dist/components/sdds-badges.js.map +1 -0
- package/dist/components/sdds-banner.d.ts +11 -0
- package/dist/components/sdds-banner.js +121 -0
- package/dist/components/sdds-banner.js.map +1 -0
- package/dist/components/sdds-block.d.ts +11 -0
- package/dist/components/sdds-block.js +50 -0
- package/dist/components/sdds-block.js.map +1 -0
- package/dist/components/sdds-body-cell.d.ts +11 -0
- package/dist/components/sdds-body-cell.js +8 -0
- package/dist/components/sdds-body-cell.js.map +1 -0
- package/dist/components/sdds-breadcrumb-item.d.ts +11 -0
- package/dist/components/sdds-breadcrumb-item.js +47 -0
- package/dist/components/sdds-breadcrumb-item.js.map +1 -0
- package/dist/components/sdds-breadcrumb.d.ts +11 -0
- package/dist/components/sdds-breadcrumb.js +39 -0
- package/dist/components/sdds-breadcrumb.js.map +1 -0
- package/dist/components/sdds-button.d.ts +11 -0
- package/dist/components/sdds-button.js +61 -0
- package/dist/components/sdds-button.js.map +1 -0
- package/dist/components/sdds-card.d.ts +11 -0
- package/dist/components/sdds-card.js +86 -0
- package/dist/components/sdds-card.js.map +1 -0
- package/dist/components/sdds-checkbox.d.ts +11 -0
- package/dist/components/sdds-checkbox.js +78 -0
- package/dist/components/sdds-checkbox.js.map +1 -0
- package/dist/components/sdds-datetime.d.ts +11 -0
- package/dist/components/sdds-datetime.js +131 -0
- package/dist/components/sdds-datetime.js.map +1 -0
- package/dist/components/sdds-dropdown-filter.d.ts +11 -0
- package/dist/components/sdds-dropdown-filter.js +140 -0
- package/dist/components/sdds-dropdown-filter.js.map +1 -0
- package/dist/components/sdds-dropdown-option.d.ts +11 -0
- package/dist/components/sdds-dropdown-option.js +8 -0
- package/dist/components/sdds-dropdown-option.js.map +1 -0
- package/dist/components/sdds-dropdown.d.ts +11 -0
- package/dist/components/sdds-dropdown.js +8 -0
- package/dist/components/sdds-dropdown.js.map +1 -0
- package/dist/components/sdds-footer-link-group.d.ts +11 -0
- package/dist/components/sdds-footer-link-group.js +58 -0
- package/dist/components/sdds-footer-link-group.js.map +1 -0
- package/dist/components/sdds-footer-link.d.ts +11 -0
- package/dist/components/sdds-footer-link.js +46 -0
- package/dist/components/sdds-footer-link.js.map +1 -0
- package/dist/components/sdds-footer.d.ts +11 -0
- package/dist/components/sdds-footer.js +45 -0
- package/dist/components/sdds-footer.js.map +1 -0
- package/dist/components/sdds-header-cell.d.ts +11 -0
- package/dist/components/sdds-header-cell.js +172 -0
- package/dist/components/sdds-header-cell.js.map +1 -0
- package/dist/components/sdds-icon.d.ts +11 -0
- package/dist/components/sdds-icon.js +8 -0
- package/dist/components/sdds-icon.js.map +1 -0
- package/dist/components/sdds-inline-tab.d.ts +11 -0
- package/dist/components/sdds-inline-tab.js +42 -0
- package/dist/components/sdds-inline-tab.js.map +1 -0
- package/dist/components/sdds-inline-tabs-fullbleed.d.ts +11 -0
- package/dist/components/sdds-inline-tabs-fullbleed.js +119 -0
- package/dist/components/sdds-inline-tabs-fullbleed.js.map +1 -0
- package/dist/components/sdds-inline-tabs.d.ts +11 -0
- package/dist/components/sdds-inline-tabs.js +247 -0
- package/dist/components/sdds-inline-tabs.js.map +1 -0
- package/dist/components/sdds-link.d.ts +11 -0
- package/dist/components/sdds-link.js +8 -0
- package/dist/components/sdds-link.js.map +1 -0
- package/dist/components/sdds-link2.js +46 -0
- package/dist/components/sdds-link2.js.map +1 -0
- package/dist/components/sdds-message.d.ts +11 -0
- package/dist/components/sdds-message.js +69 -0
- package/dist/components/sdds-message.js.map +1 -0
- package/dist/components/sdds-modal.d.ts +11 -0
- package/dist/components/sdds-modal.js +79 -0
- package/dist/components/sdds-modal.js.map +1 -0
- package/dist/components/sdds-navigation-tabs.d.ts +11 -0
- package/dist/components/sdds-navigation-tabs.js +119 -0
- package/dist/components/sdds-navigation-tabs.js.map +1 -0
- package/dist/components/sdds-popover-canvas.d.ts +11 -0
- package/dist/components/sdds-popover-canvas.js +110 -0
- package/dist/components/sdds-popover-canvas.js.map +1 -0
- package/dist/components/sdds-popover-menu.d.ts +11 -0
- package/dist/components/sdds-popover-menu.js +111 -0
- package/dist/components/sdds-popover-menu.js.map +1 -0
- package/dist/components/sdds-radio-button.d.ts +11 -0
- package/dist/components/sdds-radio-button.js +54 -0
- package/dist/components/sdds-radio-button.js.map +1 -0
- package/dist/components/sdds-slider.d.ts +11 -0
- package/dist/components/sdds-slider.js +396 -0
- package/dist/components/sdds-slider.js.map +1 -0
- package/dist/components/sdds-spinner.d.ts +11 -0
- package/dist/components/sdds-spinner.js +39 -0
- package/dist/components/sdds-spinner.js.map +1 -0
- package/dist/components/sdds-stepper-item.d.ts +11 -0
- package/dist/components/sdds-stepper-item.js +69 -0
- package/dist/components/sdds-stepper-item.js.map +1 -0
- package/dist/components/sdds-stepper.d.ts +11 -0
- package/dist/components/sdds-stepper.js +65 -0
- package/dist/components/sdds-stepper.js.map +1 -0
- package/dist/components/sdds-table-body-row-expandable.d.ts +11 -0
- package/dist/components/sdds-table-body-row-expandable.js +107 -0
- package/dist/components/sdds-table-body-row-expandable.js.map +1 -0
- package/dist/components/sdds-table-body-row.d.ts +11 -0
- package/dist/components/sdds-table-body-row.js +8 -0
- package/dist/components/sdds-table-body-row.js.map +1 -0
- package/dist/components/sdds-table-body.d.ts +11 -0
- package/dist/components/sdds-table-body.js +339 -0
- package/dist/components/sdds-table-body.js.map +1 -0
- package/dist/components/sdds-table-footer.d.ts +11 -0
- package/dist/components/sdds-table-footer.js +197 -0
- package/dist/components/sdds-table-footer.js.map +1 -0
- package/dist/components/sdds-table-header.d.ts +11 -0
- package/dist/components/sdds-table-header.js +126 -0
- package/dist/components/sdds-table-header.js.map +1 -0
- package/dist/components/sdds-table-toolbar.d.ts +11 -0
- package/dist/components/sdds-table-toolbar.js +89 -0
- package/dist/components/sdds-table-toolbar.js.map +1 -0
- package/dist/components/sdds-table.d.ts +11 -0
- package/dist/components/sdds-table.js +93 -0
- package/dist/components/sdds-table.js.map +1 -0
- package/dist/components/sdds-textarea.d.ts +11 -0
- package/dist/components/sdds-textarea.js +114 -0
- package/dist/components/sdds-textarea.js.map +1 -0
- package/dist/components/sdds-textfield.d.ts +11 -0
- package/dist/components/sdds-textfield.js +129 -0
- package/dist/components/sdds-textfield.js.map +1 -0
- package/dist/components/sdds-toast.d.ts +11 -0
- package/dist/components/sdds-toast.js +119 -0
- package/dist/components/sdds-toast.js.map +1 -0
- package/dist/components/sdds-toggle.d.ts +11 -0
- package/dist/components/sdds-toggle.js +67 -0
- package/dist/components/sdds-toggle.js.map +1 -0
- package/dist/components/sdds-tooltip.d.ts +11 -0
- package/dist/components/sdds-tooltip.js +129 -0
- package/dist/components/sdds-tooltip.js.map +1 -0
- package/dist/components/table-body-cell.js +103 -0
- package/dist/components/table-body-cell.js.map +1 -0
- package/dist/components/table-body-row.js +122 -0
- package/dist/components/table-body-row.js.map +1 -0
- package/dist/esm/index-96563708.js +2173 -0
- package/dist/esm/index-96563708.js.map +1 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +20 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/popper-f860750c.js +1801 -0
- package/dist/esm/popper-f860750c.js.map +1 -0
- package/dist/esm/sdds-accordion-item.entry.js +32 -0
- package/dist/esm/sdds-accordion-item.entry.js.map +1 -0
- package/dist/esm/sdds-accordion.entry.js +19 -0
- package/dist/esm/sdds-accordion.entry.js.map +1 -0
- package/dist/esm/sdds-badges.entry.js +52 -0
- package/dist/esm/sdds-badges.entry.js.map +1 -0
- package/dist/esm/sdds-banner.entry.js +77 -0
- package/dist/esm/sdds-banner.entry.js.map +1 -0
- package/dist/esm/sdds-block.entry.js +30 -0
- package/dist/esm/sdds-block.entry.js.map +1 -0
- package/dist/esm/sdds-body-cell_2.entry.js +170 -0
- package/dist/esm/sdds-body-cell_2.entry.js.map +1 -0
- package/dist/esm/sdds-breadcrumb-item.entry.js +23 -0
- package/dist/esm/sdds-breadcrumb-item.entry.js.map +1 -0
- package/dist/esm/sdds-breadcrumb.entry.js +21 -0
- package/dist/esm/sdds-breadcrumb.entry.js.map +1 -0
- package/dist/esm/sdds-button.entry.js +35 -0
- package/dist/esm/sdds-button.entry.js.map +1 -0
- package/dist/esm/sdds-card.entry.js +54 -0
- package/dist/esm/sdds-card.entry.js.map +1 -0
- package/dist/esm/sdds-checkbox.entry.js +53 -0
- package/dist/esm/sdds-checkbox.entry.js.map +1 -0
- package/dist/esm/sdds-datetime.entry.js +93 -0
- package/dist/esm/sdds-datetime.entry.js.map +1 -0
- package/dist/esm/sdds-dropdown-filter.entry.js +90 -0
- package/dist/esm/sdds-dropdown-filter.entry.js.map +1 -0
- package/dist/esm/sdds-dropdown_2.entry.js +338 -0
- package/dist/esm/sdds-dropdown_2.entry.js.map +1 -0
- package/dist/esm/sdds-footer-link-group.entry.js +32 -0
- package/dist/esm/sdds-footer-link-group.entry.js.map +1 -0
- package/dist/esm/sdds-footer-link.entry.js +25 -0
- package/dist/esm/sdds-footer-link.entry.js.map +1 -0
- package/dist/esm/sdds-footer.entry.js +24 -0
- package/dist/esm/sdds-footer.entry.js.map +1 -0
- package/dist/esm/sdds-header-cell.entry.js +137 -0
- package/dist/esm/sdds-header-cell.entry.js.map +1 -0
- package/dist/esm/sdds-icon.entry.js +40 -0
- package/dist/esm/sdds-icon.entry.js.map +1 -0
- package/dist/esm/sdds-inline-tab.entry.js +20 -0
- package/dist/esm/sdds-inline-tab.entry.js.map +1 -0
- package/dist/esm/sdds-inline-tabs-fullbleed.entry.js +96 -0
- package/dist/esm/sdds-inline-tabs-fullbleed.entry.js.map +1 -0
- package/dist/esm/sdds-inline-tabs.entry.js +219 -0
- package/dist/esm/sdds-inline-tabs.entry.js.map +1 -0
- package/dist/esm/sdds-link.entry.js +26 -0
- package/dist/esm/sdds-link.entry.js.map +1 -0
- package/dist/esm/sdds-message.entry.js +39 -0
- package/dist/esm/sdds-message.entry.js.map +1 -0
- package/dist/esm/sdds-modal.entry.js +49 -0
- package/dist/esm/sdds-modal.entry.js.map +1 -0
- package/dist/esm/sdds-navigation-tabs.entry.js +96 -0
- package/dist/esm/sdds-navigation-tabs.entry.js.map +1 -0
- package/dist/esm/sdds-popover-canvas.entry.js +82 -0
- package/dist/esm/sdds-popover-canvas.entry.js.map +1 -0
- package/dist/esm/sdds-popover-menu.entry.js +83 -0
- package/dist/esm/sdds-popover-menu.entry.js.map +1 -0
- package/dist/esm/sdds-radio-button.entry.js +30 -0
- package/dist/esm/sdds-radio-button.entry.js.map +1 -0
- package/dist/esm/sdds-slider.entry.js +355 -0
- package/dist/esm/sdds-slider.entry.js.map +1 -0
- package/dist/esm/sdds-spinner.entry.js +19 -0
- package/dist/esm/sdds-spinner.entry.js.map +1 -0
- package/dist/esm/sdds-stepper-item.entry.js +36 -0
- package/dist/esm/sdds-stepper-item.entry.js.map +1 -0
- package/dist/esm/sdds-stepper.entry.js +41 -0
- package/dist/esm/sdds-stepper.entry.js.map +1 -0
- package/dist/esm/sdds-table-body-row-expandable.entry.js +80 -0
- package/dist/esm/sdds-table-body-row-expandable.entry.js.map +1 -0
- package/dist/esm/sdds-table-body.entry.js +287 -0
- package/dist/esm/sdds-table-body.entry.js.map +1 -0
- package/dist/esm/sdds-table-footer.entry.js +162 -0
- package/dist/esm/sdds-table-footer.entry.js.map +1 -0
- package/dist/esm/sdds-table-header.entry.js +97 -0
- package/dist/esm/sdds-table-header.entry.js.map +1 -0
- package/dist/esm/sdds-table-toolbar.entry.js +63 -0
- package/dist/esm/sdds-table-toolbar.entry.js.map +1 -0
- package/dist/esm/sdds-table.entry.js +66 -0
- package/dist/esm/sdds-table.entry.js.map +1 -0
- package/dist/esm/sdds-textarea.entry.js +74 -0
- package/dist/esm/sdds-textarea.entry.js.map +1 -0
- package/dist/esm/sdds-textfield.entry.js +89 -0
- package/dist/esm/sdds-textfield.entry.js.map +1 -0
- package/dist/esm/sdds-toast.entry.js +84 -0
- package/dist/esm/sdds-toast.entry.js.map +1 -0
- package/dist/esm/sdds-toggle.entry.js +41 -0
- package/dist/esm/sdds-toggle.entry.js.map +1 -0
- package/dist/esm/sdds-tooltip.entry.js +102 -0
- package/dist/esm/sdds-tooltip.entry.js.map +1 -0
- package/dist/esm/tegel.js +23 -0
- package/dist/esm/tegel.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/tegel/index.esm.js +2 -0
- package/dist/tegel/index.esm.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-22c49f25.entry.js +2 -0
- package/dist/tegel/p-22c49f25.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-2d45bffe.entry.js +2 -0
- package/dist/tegel/p-2d45bffe.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-675d10c6.entry.js +2 -0
- package/dist/tegel/p-675d10c6.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-a4127075.entry.js +2 -0
- package/dist/tegel/p-a4127075.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-b2e46497.entry.js +2 -0
- package/dist/tegel/p-b2e46497.entry.js.map +1 -0
- package/dist/tegel/p-b2f1ec40.entry.js +2 -0
- package/dist/tegel/p-b2f1ec40.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-c5537ff7.entry.js +2 -0
- package/dist/tegel/p-c5537ff7.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 -0
- 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-f9dacc11.entry.js +2 -0
- package/dist/tegel/p-f9dacc11.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-fc96cf21.entry.js +2 -0
- package/dist/tegel/p-fc96cf21.entry.js.map +1 -0
- package/dist/tegel/tegel.css +121 -0
- package/dist/tegel/tegel.esm.js +2 -0
- package/dist/tegel/tegel.esm.js.map +1 -0
- package/dist/types/components/accordion/accordion-item/accordion-item.d.ts +17 -0
- package/dist/types/components/accordion/accordion.d.ts +7 -0
- package/dist/types/components/accordion/accordion.stories.d.ts +77 -0
- package/dist/types/components/badge/badge.stories.d.ts +66 -0
- package/dist/types/components/badge/badges.d.ts +16 -0
- package/dist/types/components/banner/banner.stories.d.ts +68 -0
- package/dist/types/components/banner/sdds-banner.d.ts +48 -0
- package/dist/types/components/banner/sdds-banner.stories.d.ts +109 -0
- package/dist/types/components/block/block-native.stories.d.ts +31 -0
- package/dist/types/components/block/sdds-block.d.ts +9 -0
- package/dist/types/components/block/sdds-block.stories.d.ts +32 -0
- package/dist/types/components/breadcrumb/breadcrumb.stories.d.ts +12 -0
- package/dist/types/components/breadcrumb/sdds-breadcrumb-item/sdds-breadcrumb-item.d.ts +13 -0
- package/dist/types/components/breadcrumb/sdds-breadcrumb.d.ts +5 -0
- package/dist/types/components/breadcrumb/sdds-breadcrumb.stories.d.ts +15 -0
- package/dist/types/components/button/button-component.d.ts +18 -0
- package/dist/types/components/button/button-native.stories.d.ts +148 -0
- package/dist/types/components/button/button-webcomponent.stories.d.ts +147 -0
- package/dist/types/components/card/card.stories.d.ts +138 -0
- package/dist/types/components/card/sdds-card.d.ts +39 -0
- package/dist/types/components/card/sdds-card.stories.d.ts +139 -0
- package/dist/types/components/checkbox/checkbox.stories.d.ts +39 -0
- package/dist/types/components/checkbox/sdds-checkbox.d.ts +38 -0
- package/dist/types/components/checkbox/sdds-checkbox.stories.d.ts +40 -0
- package/dist/types/components/chips/chips.stories.d.ts +77 -0
- package/dist/types/components/data-table/native-table.stories.d.ts +133 -0
- package/dist/types/components/data-table/table/table.d.ts +47 -0
- package/dist/types/components/data-table/table-body/table-body.d.ts +54 -0
- package/dist/types/components/data-table/table-body-cell/table-body-cell.d.ts +24 -0
- package/dist/types/components/data-table/table-body-row/table-body-row.d.ts +27 -0
- package/dist/types/components/data-table/table-body-row-expandable/table-body-row-expandable.d.ts +27 -0
- package/dist/types/components/data-table/table-component-basic.stories.d.ts +101 -0
- package/dist/types/components/data-table/table-component-batch-actions.stories.d.ts +99 -0
- package/dist/types/components/data-table/table-component-bodydata.stories.d.ts +38 -0
- package/dist/types/components/data-table/table-component-custom-width.stories.d.ts +148 -0
- package/dist/types/components/data-table/table-component-event-listeners.stories.d.ts +88 -0
- package/dist/types/components/data-table/table-component-expandable-rows.stories.d.ts +88 -0
- package/dist/types/components/data-table/table-component-filtering.stories.d.ts +101 -0
- package/dist/types/components/data-table/table-component-multiselect.stories.d.ts +101 -0
- package/dist/types/components/data-table/table-component-pagination.stories.d.ts +101 -0
- package/dist/types/components/data-table/table-component-sorting.stories.d.ts +100 -0
- package/dist/types/components/data-table/table-footer/table-footer.d.ts +50 -0
- package/dist/types/components/data-table/table-header/table-header.d.ts +27 -0
- package/dist/types/components/data-table/table-header-cell/table-header-cell.d.ts +44 -0
- package/dist/types/components/data-table/table-toolbar/table-toolbar.d.ts +22 -0
- package/dist/types/components/datetime/datetime.d.ts +42 -0
- package/dist/types/components/datetime/datetime.stories.d.ts +127 -0
- package/dist/types/components/divider/divider.stories.d.ts +65 -0
- package/dist/types/components/dropdown/dropdown-filter/dropdown-filter.d.ts +42 -0
- package/dist/types/components/dropdown/dropdown-filter/dropdown-filter.stories.d.ts +73 -0
- package/dist/types/components/dropdown/dropdown-native.stories.d.ts +57 -0
- package/dist/types/components/dropdown/dropdown-option/dropdown-option.d.ts +19 -0
- package/dist/types/components/dropdown/dropdown-wc-default.stories.d.ts +129 -0
- package/dist/types/components/dropdown/dropdown-wc-multiselect.stories.d.ts +115 -0
- package/dist/types/components/dropdown/dropdown.d.ts +58 -0
- package/dist/types/components/footer/footer.stories.d.ts +45 -0
- package/dist/types/components/footer/webcomponent/sdds-footer-link/sdds-footer-link.d.ts +13 -0
- package/dist/types/components/footer/webcomponent/sdds-footer-link-group/sdds-footer-link-group.d.ts +11 -0
- package/dist/types/components/footer/webcomponent/sdds-footer.d.ts +9 -0
- package/dist/types/components/footer/webcomponent/sdds-footer.stories.d.ts +44 -0
- package/dist/types/components/header/header-all.stories.d.ts +29 -0
- package/dist/types/components/header/header-default.stories.d.ts +29 -0
- package/dist/types/components/header/header-inline.stories.d.ts +29 -0
- package/dist/types/components/header/header-search.stories.d.ts +29 -0
- package/dist/types/components/header/header-toolbar.stories.d.ts +29 -0
- package/dist/types/components/icon/icon-font.stories.d.ts +38 -0
- package/dist/types/components/icon/icon-web-component.stories.d.ts +38 -0
- package/dist/types/components/icon/icon.d.ts +12 -0
- package/dist/types/components/link/link.stories.d.ts +33 -0
- package/dist/types/components/link/sdds-link.d.ts +13 -0
- package/dist/types/components/link/sdds-link.stories.d.ts +58 -0
- package/dist/types/components/message/message.stories.d.ts +69 -0
- package/dist/types/components/message/sdds-message.d.ts +14 -0
- package/dist/types/components/message/sdds-message.stories.d.ts +87 -0
- package/dist/types/components/modal/modal-native.stories.d.ts +59 -0
- package/dist/types/components/modal/modal-webcomponent.stories.d.ts +52 -0
- package/dist/types/components/modal/modal.d.ts +17 -0
- package/dist/types/components/popover-canvas/popover-canvas.d.ts +24 -0
- package/dist/types/components/popover-canvas/popover-canvas.stories.d.ts +25 -0
- package/dist/types/components/popover-menu/popover-menu-icons.stories.d.ts +27 -0
- package/dist/types/components/popover-menu/popover-menu.d.ts +24 -0
- package/dist/types/components/popover-menu/popover-menu.stories.d.ts +27 -0
- package/dist/types/components/radio-button/radio-button-component.stories.d.ts +39 -0
- package/dist/types/components/radio-button/radio-button.d.ts +26 -0
- package/dist/types/components/radio-button/radio-button.stories.d.ts +33 -0
- package/dist/types/components/side-menu/side-menu.stories.d.ts +42 -0
- package/dist/types/components/slider/slider.d.ts +86 -0
- package/dist/types/components/slider/slider.stories.d.ts +169 -0
- package/dist/types/components/spinner/spinner.d.ts +7 -0
- package/dist/types/components/spinner/spinner.stories.d.ts +37 -0
- package/dist/types/components/stepper/stepper.stories.d.ts +52 -0
- package/dist/types/components/tabs/inline-tabs-default/inline-tab/inline-tab.d.ts +6 -0
- package/dist/types/components/tabs/inline-tabs-default/inline-tabs.d.ts +40 -0
- package/dist/types/components/tabs/inline-tabs-default/inline-tabs.stories.d.ts +49 -0
- package/dist/types/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.d.ts +20 -0
- package/dist/types/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.stories.d.ts +30 -0
- package/dist/types/components/tabs/navigation-tabs/navigation-tabs.d.ts +20 -0
- package/dist/types/components/tabs/navigation-tabs/navigation-tabs.stories.d.ts +13 -0
- package/dist/types/components/textarea/textarea.d.ts +50 -0
- package/dist/types/components/textarea/textarea.stories.d.ts +129 -0
- package/dist/types/components/textfield/textfield.d.ts +52 -0
- package/dist/types/components/textfield/textfield.stories.d.ts +180 -0
- package/dist/types/components/toast/sdds-toast.d.ts +36 -0
- package/dist/types/components/toast/sdds-toast.stories.d.ts +56 -0
- package/dist/types/components/toast/toast.stories.d.ts +69 -0
- package/dist/types/components/toggle/sdds-toggle.d.ts +31 -0
- package/dist/types/components/toggle/sdds-toggle.stories.d.ts +74 -0
- package/dist/types/components/toggle/toggle.stories.d.ts +55 -0
- package/dist/types/components/tooltip/tooltip.d.ts +24 -0
- package/dist/types/components/tooltip/tooltip.stories.d.ts +54 -0
- package/dist/types/components/utility/colour/background-color.stories.d.ts +58 -0
- package/dist/types/components/utility/colour/text-color.stories.d.ts +58 -0
- package/dist/types/components.d.ts +2802 -0
- package/dist/types/foundations-stories/colour/colour-brand.stories.d.ts +13 -0
- package/dist/types/foundations-stories/colour/colour-scales.stories.d.ts +13 -0
- package/dist/types/foundations-stories/colour/colour-semantic.stories.d.ts +13 -0
- package/dist/types/foundations-stories/grid/grid.stories.d.ts +35 -0
- package/dist/types/foundations-stories/spacing/spacing-element.stories.d.ts +8 -0
- package/dist/types/foundations-stories/spacing/spacing-layout.stories.d.ts +8 -0
- package/dist/types/foundations-stories/typography/typography-body.stories.d.ts +8 -0
- package/dist/types/foundations-stories/typography/typography-detail.stories.d.ts +8 -0
- package/dist/types/foundations-stories/typography/typography-headline.stories.d.ts +21 -0
- package/dist/types/foundations-stories/typography/typography-paragraph.stories.d.ts +8 -0
- package/dist/types/global.d.ts +2 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1637 -0
- package/dist/types/utils/utils.d.ts +2 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +21 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +11 -0
- package/package.json +4 -3
- package/readme.md +34 -0
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
|
|
3
|
+
const tableHeaderCellCss = ":host(.sdds-table__header-cell){box-sizing:border-box;font:var(--sdds-headline-07);letter-spacing:var(--sdds-headline-07-ls);display:table-cell;text-align:left;color:var(--sdds-data-table-color);background-color:var(--sdds-data-table-header-background);border-bottom:1px solid var(--sdds-data-table-header-background-hover);padding:0;height:48px;min-width:192px;box-sizing:border-box;vertical-align:middle;overflow:hidden;transition:background-color 200ms ease}:host(.sdds-table__header-cell) *{box-sizing:border-box}:host(.sdds-table__header-cell) .sdds-table__header-text{padding:0 16px;margin:0}:host(.sdds-table__header-cell--sortable) .sdds-table__header-button{display:flex;align-items:center;gap:8px;justify-content:start;flex-direction:row;width:100%;height:100%;padding:0 16px;background-color:transparent;border:none;cursor:pointer;transition:background-color 200ms ease}:host(.sdds-table__header-cell--sortable) .sdds-table__header-button:focus{outline:2px solid var(--sdds-data-table-header-btn-focus);outline-offset:-2px}:host(.sdds-table__header-cell--sortable) .sdds-table__header-button:focus .sdds-table__header-button-icon{opacity:1}:host(.sdds-table__header-cell--sortable) .sdds-table__header-button .sdds-table__header-button-text{font:var(--sdds-headline-07);letter-spacing:var(--sdds-headline-07-ls);text-align:left;color:var(--sdds-data-table-header-btn-color)}:host(.sdds-table__header-cell--sortable) .sdds-table__header-button .sdds-table__header-button-icon{flex:0 0 16px;height:16px;opacity:0;transform-origin:center;transition:opacity 200ms ease-in, transform 200ms ease;fill:var(--sdds-data-table-color)}:host(.sdds-table__header-cell--sortable) .sdds-table__header-button:hover .sdds-table__header-button-icon{opacity:1}:host(.sdds-table__header-cell--right-align) .sdds-table__header-button{text-align:right;justify-content:end;flex-direction:row-reverse}:host(.sdds-table__header-cell--is-sorted) .sdds-table__header-button{background-color:var(--sdds-data-table-header-btn-background)}:host(.sdds-table__header-cell--is-sorted) .sdds-table__header-button:hover{background-color:var(--sdds-data-table-header-btn-background-hover)}:host(.sdds-table__header-cell--is-sorted) .sdds-table__header-button .sdds-table__header-button-icon{opacity:1}:host(.sdds-table__header-cell--is-sorted) .sdds-table__header-button .sdds-table__header-button-icon--rotate{transform:rotate(180deg)}:host(.sdds-table--compact){height:33px}:host(.sdds-table--divider){border-right:1px solid var(--sdds-data-table-divider)}:host(.sdds-table--divider:last-of-type){border-right:none}:host(.sdds-table--no-min-width){min-width:unset}:host(.sdds-table__header-cell:first-of-type){border-top-left-radius:4px}:host(.sdds-table__header-cell:last-of-type){border-top-right-radius:4px}:host(.sdds-table--extra-column:first-of-type){border-top-left-radius:0}:host(.sdds-table--toolbar-available){border-radius:0}:host(.sdds-table--extra-column.sdds-table--toolbar-available){border-radius:0}:host(.sdds-table__header-cell.sdds-table--toolbar-available:first-of-type){border-top-left-radius:0}:host(.sdds-table__header-cell.sdds-table--toolbar-available:last-of-type){border-top-right-radius:0}";
|
|
4
|
+
|
|
5
|
+
const relevantTableProps = [
|
|
6
|
+
'enableMultiselect',
|
|
7
|
+
'enableExpandableRows',
|
|
8
|
+
'compactDesign',
|
|
9
|
+
'noMinWidth',
|
|
10
|
+
'verticalDividers',
|
|
11
|
+
];
|
|
12
|
+
const TableHeaderCell = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
13
|
+
constructor() {
|
|
14
|
+
super();
|
|
15
|
+
this.__registerHost();
|
|
16
|
+
this.__attachShadow();
|
|
17
|
+
this.sortColumnDataEvent = createEvent(this, "sortColumnDataEvent", 7);
|
|
18
|
+
this.textAlignEvent = createEvent(this, "textAlignEvent", 7);
|
|
19
|
+
this.headCellHoverEvent = createEvent(this, "headCellHoverEvent", 7);
|
|
20
|
+
this.sortButtonClick = (key) => {
|
|
21
|
+
// Toggling direction of sorting as we only use one button for sorting
|
|
22
|
+
if (this.sortingDirection !== 'asc') {
|
|
23
|
+
this.sortingDirection = 'asc';
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
this.sortingDirection = 'desc';
|
|
27
|
+
}
|
|
28
|
+
// Setting to true we can set enable CSS class for "active" state of column
|
|
29
|
+
this.sortedByMyKey = true;
|
|
30
|
+
// Use array to send both key and sorting direction
|
|
31
|
+
this.sortColumnDataEvent.emit([this.tableId, key, this.sortingDirection]);
|
|
32
|
+
};
|
|
33
|
+
this.headerCellContent = () => {
|
|
34
|
+
if (this.sortable && !this.disableSortingBtn) {
|
|
35
|
+
return (h("button", { class: "sdds-table__header-button", onClick: () => this.sortButtonClick(this.columnKey) }, h("span", { class: "sdds-table__header-button-text", style: { textAlign: this.textAlignState } }, this.columnTitle), this.sortingDirection === '' && (h("svg", { class: "sdds-table__header-button-icon", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 12 15" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M8.45 13.67V4.62a.5.5 0 0 1 1 0v9.05h-1Z" }), h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M6.07 10.28a.5.5 0 0 1 .7.08l2.1 2.66a.1.1 0 0 0 .15 0l2.09-2.66a.5.5 0 1 1 .78.62l-2.08 2.66a1.1 1.1 0 0 1-1.73 0l-2.1-2.66a.5.5 0 0 1 .1-.7ZM3.55.4v9.04a.5.5 0 1 1-1 0V.39h1Z" }), h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M5.93 3.78a.5.5 0 0 1-.7-.08l-2.1-2.66a.1.1 0 0 0-.15 0L.89 3.7a.5.5 0 0 1-.78-.62L2.19.42a1.1 1.1 0 0 1 1.73 0l2.1 2.66a.5.5 0 0 1-.1.7Z" }))), this.sortingDirection !== '' && (h("svg", { class: `sdds-table__header-button-icon ${this.sortingDirection === 'desc' ? 'sdds-table__header-button-icon--rotate' : ''}`, fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M17 2.974a1 1 0 0 0-2 0v24.3l-9.312-9.312a1 1 0 0 0-1.414 1.414l9.887 9.888a2.6 2.6 0 0 0 3.677 0l9.888-9.888a1 1 0 0 0-1.414-1.414L17 27.274v-24.3Z" })))));
|
|
36
|
+
}
|
|
37
|
+
return (h("p", { class: "sdds-table__header-text", style: { textAlign: this.textAlignState } }, this.columnTitle));
|
|
38
|
+
};
|
|
39
|
+
this.onHeadCellHover = (key) => {
|
|
40
|
+
this.headCellHoverEvent.emit([this.tableId, key]);
|
|
41
|
+
};
|
|
42
|
+
this.columnKey = undefined;
|
|
43
|
+
this.columnTitle = undefined;
|
|
44
|
+
this.customWidth = undefined;
|
|
45
|
+
this.sortable = false;
|
|
46
|
+
this.textAlign = undefined;
|
|
47
|
+
this.textAlignState = undefined;
|
|
48
|
+
this.sortingDirection = '';
|
|
49
|
+
this.sortedByMyKey = false;
|
|
50
|
+
this.disableSortingBtn = false;
|
|
51
|
+
this.verticalDividers = false;
|
|
52
|
+
this.compactDesign = false;
|
|
53
|
+
this.noMinWidth = false;
|
|
54
|
+
this.enableMultiselect = false;
|
|
55
|
+
this.enableToolbarDesign = false;
|
|
56
|
+
this.tableId = '';
|
|
57
|
+
this.enableExpandableRows = false;
|
|
58
|
+
}
|
|
59
|
+
tablePropsChangedEventListener(event) {
|
|
60
|
+
if (this.tableId === event.detail.tableId) {
|
|
61
|
+
event.detail.changed
|
|
62
|
+
.filter((changedProp) => relevantTableProps.includes(changedProp))
|
|
63
|
+
.forEach((changedProp) => {
|
|
64
|
+
if (typeof this[changedProp] === 'undefined') {
|
|
65
|
+
throw new Error(`Table prop is not supported: ${changedProp}`);
|
|
66
|
+
}
|
|
67
|
+
this[changedProp] = event.detail[changedProp];
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
// Listen to parent data-table if sorting is allowed
|
|
72
|
+
sortingSwitcherEventListener(event) {
|
|
73
|
+
const [receivedID, receivedSortingStatus] = event.detail;
|
|
74
|
+
if (this.tableId === receivedID) {
|
|
75
|
+
this.disableSortingBtn = receivedSortingStatus;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
// target is set to body so other instances of same component "listen" and react to the change
|
|
79
|
+
updateOptionsContent(event) {
|
|
80
|
+
if (this.tableId === event.detail[0]) {
|
|
81
|
+
// grab only value at position 1 as it is the "key"
|
|
82
|
+
if (this.columnKey !== event.detail[1]) {
|
|
83
|
+
this.sortedByMyKey = false;
|
|
84
|
+
// To sync with CSS transition timing
|
|
85
|
+
setTimeout(() => {
|
|
86
|
+
this.sortingDirection = '';
|
|
87
|
+
}, 200);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
enableMultiselectEventListener(event) {
|
|
92
|
+
if (this.tableId === event.detail[0])
|
|
93
|
+
[, this.enableMultiselect] = event.detail;
|
|
94
|
+
}
|
|
95
|
+
connectedCallback() {
|
|
96
|
+
this.tableEl = this.host.closest('sdds-table');
|
|
97
|
+
this.tableId = this.tableEl.tableId;
|
|
98
|
+
}
|
|
99
|
+
componentWillLoad() {
|
|
100
|
+
relevantTableProps.forEach((tablePropName) => {
|
|
101
|
+
this[tablePropName] = this.tableEl[tablePropName];
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
componentWillRender() {
|
|
105
|
+
// enable only right or left text align
|
|
106
|
+
if (this.textAlign === 'right' || this.textAlign === 'end') {
|
|
107
|
+
this.textAlignState = 'right';
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
this.textAlignState = 'left';
|
|
111
|
+
}
|
|
112
|
+
// To enable body cells text align per rules set in head cell
|
|
113
|
+
this.textAlignEvent.emit([this.tableId, this.columnKey, this.textAlignState]);
|
|
114
|
+
this.enableToolbarDesign =
|
|
115
|
+
this.host.closest('sdds-table').getElementsByTagName('sdds-table-toolbar').length >= 1;
|
|
116
|
+
}
|
|
117
|
+
render() {
|
|
118
|
+
return (h(Host, { class: {
|
|
119
|
+
'sdds-table__header-cell': true,
|
|
120
|
+
'sdds-table__header-cell--sortable': this.sortable,
|
|
121
|
+
'sdds-table__header-cell--is-sorted': this.sortedByMyKey,
|
|
122
|
+
'sdds-table__header-cell--custom-width': this.customWidth !== '',
|
|
123
|
+
'sdds-table__header-cell--right-align': this.textAlignState === 'right',
|
|
124
|
+
'sdds-table--compact': this.compactDesign,
|
|
125
|
+
'sdds-table--divider': this.verticalDividers,
|
|
126
|
+
'sdds-table--no-min-width': this.noMinWidth,
|
|
127
|
+
'sdds-table--extra-column': this.enableMultiselect || this.enableExpandableRows,
|
|
128
|
+
'sdds-table--toolbar-available': this.enableToolbarDesign,
|
|
129
|
+
}, style: { width: this.customWidth },
|
|
130
|
+
// Calling actions from here to enable hover functionality for both sortable and un-sortable tables
|
|
131
|
+
onMouseOver: () => this.onHeadCellHover(this.columnKey), onMouseLeave: () => this.onHeadCellHover('') }, this.headerCellContent()));
|
|
132
|
+
}
|
|
133
|
+
get host() { return this; }
|
|
134
|
+
static get style() { return tableHeaderCellCss; }
|
|
135
|
+
}, [1, "sdds-header-cell", {
|
|
136
|
+
"columnKey": [513, "column-key"],
|
|
137
|
+
"columnTitle": [513, "column-title"],
|
|
138
|
+
"customWidth": [513, "custom-width"],
|
|
139
|
+
"sortable": [4],
|
|
140
|
+
"textAlign": [513, "text-align"],
|
|
141
|
+
"textAlignState": [32],
|
|
142
|
+
"sortingDirection": [32],
|
|
143
|
+
"sortedByMyKey": [32],
|
|
144
|
+
"disableSortingBtn": [32],
|
|
145
|
+
"verticalDividers": [32],
|
|
146
|
+
"compactDesign": [32],
|
|
147
|
+
"noMinWidth": [32],
|
|
148
|
+
"enableMultiselect": [32],
|
|
149
|
+
"enableToolbarDesign": [32],
|
|
150
|
+
"tableId": [32],
|
|
151
|
+
"enableExpandableRows": [32]
|
|
152
|
+
}, [[16, "tablePropsChangedEvent", "tablePropsChangedEventListener"], [16, "sortingSwitcherEvent", "sortingSwitcherEventListener"], [16, "sortColumnDataEvent", "updateOptionsContent"], [16, "enableMultiselectEvent", "enableMultiselectEventListener"]]]);
|
|
153
|
+
function defineCustomElement$1() {
|
|
154
|
+
if (typeof customElements === "undefined") {
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
const components = ["sdds-header-cell"];
|
|
158
|
+
components.forEach(tagName => { switch (tagName) {
|
|
159
|
+
case "sdds-header-cell":
|
|
160
|
+
if (!customElements.get(tagName)) {
|
|
161
|
+
customElements.define(tagName, TableHeaderCell);
|
|
162
|
+
}
|
|
163
|
+
break;
|
|
164
|
+
} });
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
const SddsHeaderCell = TableHeaderCell;
|
|
168
|
+
const defineCustomElement = defineCustomElement$1;
|
|
169
|
+
|
|
170
|
+
export { SddsHeaderCell, defineCustomElement };
|
|
171
|
+
|
|
172
|
+
//# sourceMappingURL=sdds-header-cell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"sdds-header-cell.js","mappings":"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","names":[],"sources":["./src/components/data-table/table-header-cell/table-header-cell.scss?tag=sdds-header-cell&encapsulation=shadow","./src/components/data-table/table-header-cell/table-header-cell.tsx"],"sourcesContent":["@import '../../../mixins/box-sizing';\n\n:host(.sdds-table__header-cell) {\n @include sdds-box-sizing;\n\n font: var(--sdds-headline-07);\n letter-spacing: var(--sdds-headline-07-ls);\n display: table-cell;\n text-align: left;\n color: var(--sdds-data-table-color);\n background-color: var(--sdds-data-table-header-background);\n border-bottom: 1px solid var(--sdds-data-table-header-background-hover);\n padding: 0;\n height: 48px;\n min-width: 192px;\n box-sizing: border-box;\n vertical-align: middle;\n overflow: hidden;\n transition: background-color 200ms ease;\n\n .sdds-table__header-text {\n padding: 0 16px;\n margin: 0;\n }\n}\n\n:host(.sdds-table__header-cell--sortable) {\n .sdds-table__header-button {\n display: flex;\n align-items: center;\n gap: 8px;\n justify-content: start;\n flex-direction: row;\n width: 100%;\n height: 100%;\n padding: 0 16px;\n background-color: transparent;\n border: none;\n cursor: pointer;\n transition: background-color 200ms ease;\n\n &:focus {\n outline: 2px solid var(--sdds-data-table-header-btn-focus);\n outline-offset: -2px;\n\n .sdds-table__header-button-icon {\n opacity: 1;\n }\n }\n\n .sdds-table__header-button-text {\n font: var(--sdds-headline-07);\n letter-spacing: var(--sdds-headline-07-ls);\n text-align: left;\n color: var(--sdds-data-table-header-btn-color);\n }\n\n .sdds-table__header-button-icon {\n /* not to shrink on lot of text */\n flex: 0 0 16px;\n height: 16px;\n opacity: 0;\n transform-origin: center;\n transition: opacity 200ms ease-in, transform 200ms ease;\n fill: var(--sdds-data-table-color);\n }\n\n &:hover {\n .sdds-table__header-button-icon {\n opacity: 1;\n }\n }\n }\n}\n\n:host(.sdds-table__header-cell--right-align) {\n .sdds-table__header-button {\n text-align: right;\n justify-content: end;\n flex-direction: row-reverse;\n }\n}\n\n:host(.sdds-table__header-cell--is-sorted) {\n .sdds-table__header-button {\n background-color: var(--sdds-data-table-header-btn-background);\n\n &:hover {\n background-color: var(--sdds-data-table-header-btn-background-hover);\n }\n\n .sdds-table__header-button-icon {\n opacity: 1;\n }\n\n .sdds-table__header-button-icon--rotate {\n transform: rotate(180deg);\n }\n }\n}\n\n:host(.sdds-table--compact) {\n height: 33px;\n}\n\n:host(.sdds-table--divider) {\n border-right: 1px solid var(--sdds-data-table-divider);\n}\n\n:host(.sdds-table--divider:last-of-type) {\n border-right: none;\n}\n\n:host(.sdds-table--no-min-width) {\n min-width: unset;\n}\n\n// border-radius style control\n// it depends id multiselect si on or off, same for if toolbar is there or not\n:host(.sdds-table__header-cell:first-of-type) {\n border-top-left-radius: 4px;\n}\n\n:host(.sdds-table__header-cell:last-of-type) {\n border-top-right-radius: 4px;\n}\n\n:host(.sdds-table--extra-column:first-of-type) {\n border-top-left-radius: 0;\n}\n\n:host(.sdds-table--toolbar-available) {\n border-radius: 0;\n}\n\n:host(.sdds-table--extra-column.sdds-table--toolbar-available) {\n border-radius: 0;\n}\n\n:host(.sdds-table__header-cell.sdds-table--toolbar-available:first-of-type) {\n border-top-left-radius: 0;\n}\n\n:host(.sdds-table__header-cell.sdds-table--toolbar-available:last-of-type) {\n border-top-right-radius: 0;\n}\n","import {\n Component,\n Prop,\n h,\n Host,\n Event,\n EventEmitter,\n State,\n Listen,\n Element,\n} from '@stencil/core';\nimport { TablePropsChangedEvent } from '../table/table';\n\nconst relevantTableProps: TablePropsChangedEvent['changed'] = [\n 'enableMultiselect',\n 'enableExpandableRows',\n 'compactDesign',\n 'noMinWidth',\n 'verticalDividers',\n];\n\n@Component({\n tag: 'sdds-header-cell',\n styleUrl: 'table-header-cell.scss',\n shadow: true,\n})\nexport class TableHeaderCell {\n /** Value of column key, usually comes from JSON, needed for sorting */\n @Prop({ reflect: true }) columnKey: string;\n\n /** Text that displays in column cell */\n @Prop({ reflect: true }) columnTitle: string;\n\n /** In case noMinWidth setting, user has to specify width value for each column, for example \"150px\" */\n @Prop({ reflect: true }) customWidth: string;\n\n /** If passed as prop, enables sorting on that column */\n @Prop() sortable: boolean = false;\n\n /** Setting for text align, default is left, but user can pass \"right\" as string - useful for numeric values */\n @Prop({ reflect: true }) textAlign: string;\n\n @State() textAlignState: string;\n\n @State() sortingDirection: string = '';\n\n @State() sortedByMyKey: boolean = false;\n\n @State() disableSortingBtn: boolean = false;\n\n @State() verticalDividers: boolean = false;\n\n @State() compactDesign: boolean = false;\n\n @State() noMinWidth: boolean = false;\n\n @State() enableMultiselect: boolean = false;\n\n @State() enableToolbarDesign: boolean = false;\n\n @State() tableId: string = '';\n\n @State() enableExpandableRows: boolean = false;\n\n @Element() host: HTMLElement;\n\n tableEl: HTMLSddsTableElement;\n\n /** Sends unique table identifier,column key and sorting direction to the sdds-table-body component */\n @Event({\n eventName: 'sortColumnDataEvent',\n composed: true,\n cancelable: true,\n bubbles: true,\n })\n sortColumnDataEvent: EventEmitter<any>;\n\n /** Sends unique table identifier, column key and text align value so the body cells with same key take the same text alignment as header cell */\n @Event({\n eventName: 'textAlignEvent',\n composed: true,\n cancelable: true,\n bubbles: true,\n })\n textAlignEvent: EventEmitter<any>;\n\n /** Sends unique table identifier, column key so the body cells with the same key change background when user hovers over header cell */\n @Event({\n eventName: 'headCellHoverEvent',\n composed: true,\n cancelable: true,\n bubbles: true,\n })\n headCellHoverEvent: EventEmitter<any>;\n\n @Listen('tablePropsChangedEvent', { target: 'body' })\n tablePropsChangedEventListener(event: CustomEvent<TablePropsChangedEvent>) {\n if (this.tableId === event.detail.tableId) {\n event.detail.changed\n .filter((changedProp) => relevantTableProps.includes(changedProp))\n .forEach((changedProp) => {\n if (typeof this[changedProp] === 'undefined') {\n throw new Error(`Table prop is not supported: ${changedProp}`);\n }\n this[changedProp] = event.detail[changedProp];\n });\n }\n }\n\n // Listen to parent data-table if sorting is allowed\n @Listen('sortingSwitcherEvent', { target: 'body' })\n sortingSwitcherEventListener(event: CustomEvent<any>) {\n const [receivedID, receivedSortingStatus] = event.detail;\n if (this.tableId === receivedID) {\n this.disableSortingBtn = receivedSortingStatus;\n }\n }\n\n // target is set to body so other instances of same component \"listen\" and react to the change\n @Listen('sortColumnDataEvent', { target: 'body' })\n updateOptionsContent(event: CustomEvent<any>) {\n if (this.tableId === event.detail[0]) {\n // grab only value at position 1 as it is the \"key\"\n if (this.columnKey !== event.detail[1]) {\n this.sortedByMyKey = false;\n // To sync with CSS transition timing\n setTimeout(() => {\n this.sortingDirection = '';\n }, 200);\n }\n }\n }\n\n @Listen('enableMultiselectEvent', { target: 'body' })\n enableMultiselectEventListener(event: CustomEvent<any>) {\n if (this.tableId === event.detail[0]) [, this.enableMultiselect] = event.detail;\n }\n\n connectedCallback() {\n this.tableEl = this.host.closest('sdds-table');\n this.tableId = this.tableEl.tableId;\n }\n\n componentWillLoad() {\n relevantTableProps.forEach((tablePropName) => {\n this[tablePropName] = this.tableEl[tablePropName];\n });\n }\n\n componentWillRender() {\n // enable only right or left text align\n if (this.textAlign === 'right' || this.textAlign === 'end') {\n this.textAlignState = 'right';\n } else {\n this.textAlignState = 'left';\n }\n // To enable body cells text align per rules set in head cell\n this.textAlignEvent.emit([this.tableId, this.columnKey, this.textAlignState]);\n\n this.enableToolbarDesign =\n this.host.closest('sdds-table').getElementsByTagName('sdds-table-toolbar').length >= 1;\n }\n\n sortButtonClick = (key) => {\n // Toggling direction of sorting as we only use one button for sorting\n if (this.sortingDirection !== 'asc') {\n this.sortingDirection = 'asc';\n } else {\n this.sortingDirection = 'desc';\n }\n // Setting to true we can set enable CSS class for \"active\" state of column\n this.sortedByMyKey = true;\n // Use array to send both key and sorting direction\n this.sortColumnDataEvent.emit([this.tableId, key, this.sortingDirection]);\n };\n\n headerCellContent = () => {\n if (this.sortable && !this.disableSortingBtn) {\n return (\n <button\n class=\"sdds-table__header-button\"\n onClick={() => this.sortButtonClick(this.columnKey)}\n >\n <span class=\"sdds-table__header-button-text\" style={{ textAlign: this.textAlignState }}>\n {this.columnTitle}\n </span>\n\n {this.sortingDirection === '' && (\n <svg\n class=\"sdds-table__header-button-icon\"\n fill=\"currentColor\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 12 15\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M8.45 13.67V4.62a.5.5 0 0 1 1 0v9.05h-1Z\"\n />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M6.07 10.28a.5.5 0 0 1 .7.08l2.1 2.66a.1.1 0 0 0 .15 0l2.09-2.66a.5.5 0 1 1 .78.62l-2.08 2.66a1.1 1.1 0 0 1-1.73 0l-2.1-2.66a.5.5 0 0 1 .1-.7ZM3.55.4v9.04a.5.5 0 1 1-1 0V.39h1Z\"\n />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M5.93 3.78a.5.5 0 0 1-.7-.08l-2.1-2.66a.1.1 0 0 0-.15 0L.89 3.7a.5.5 0 0 1-.78-.62L2.19.42a1.1 1.1 0 0 1 1.73 0l2.1 2.66a.5.5 0 0 1-.1.7Z\"\n />\n </svg>\n )}\n {/* First icon is arrow down as first set direction is ascending, clicking it again rotates the icon as we set descending order */}\n {this.sortingDirection !== '' && (\n <svg\n class={`sdds-table__header-button-icon ${\n this.sortingDirection === 'desc' ? 'sdds-table__header-button-icon--rotate' : ''\n }`}\n fill=\"currentColor\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 32 32\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M17 2.974a1 1 0 0 0-2 0v24.3l-9.312-9.312a1 1 0 0 0-1.414 1.414l9.887 9.888a2.6 2.6 0 0 0 3.677 0l9.888-9.888a1 1 0 0 0-1.414-1.414L17 27.274v-24.3Z\"\n />\n </svg>\n )}\n </button>\n );\n }\n return (\n <p class=\"sdds-table__header-text\" style={{ textAlign: this.textAlignState }}>\n {this.columnTitle}\n </p>\n );\n };\n\n onHeadCellHover = (key) => {\n this.headCellHoverEvent.emit([this.tableId, key]);\n };\n\n render() {\n return (\n <Host\n class={{\n 'sdds-table__header-cell': true,\n 'sdds-table__header-cell--sortable': this.sortable,\n 'sdds-table__header-cell--is-sorted': this.sortedByMyKey,\n 'sdds-table__header-cell--custom-width': this.customWidth !== '',\n 'sdds-table__header-cell--right-align': this.textAlignState === 'right',\n 'sdds-table--compact': this.compactDesign,\n 'sdds-table--divider': this.verticalDividers,\n 'sdds-table--no-min-width': this.noMinWidth,\n 'sdds-table--extra-column': this.enableMultiselect || this.enableExpandableRows,\n 'sdds-table--toolbar-available': this.enableToolbarDesign,\n }}\n style={{ width: this.customWidth }}\n // Calling actions from here to enable hover functionality for both sortable and un-sortable tables\n onMouseOver={() => this.onHeadCellHover(this.columnKey)}\n onMouseLeave={() => this.onHeadCellHover('')}\n >\n {this.headerCellContent()}\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface SddsIcon extends Components.SddsIcon, HTMLElement {}
|
|
4
|
+
export const SddsIcon: {
|
|
5
|
+
prototype: SddsIcon;
|
|
6
|
+
new (): SddsIcon;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"sdds-icon.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface SddsInlineTab extends Components.SddsInlineTab, HTMLElement {}
|
|
4
|
+
export const SddsInlineTab: {
|
|
5
|
+
prototype: SddsInlineTab;
|
|
6
|
+
new (): SddsInlineTab;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
|
|
3
|
+
const inlineTabCss = ":host{display:block}";
|
|
4
|
+
|
|
5
|
+
const InlineTabsChild = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
this.__registerHost();
|
|
9
|
+
this.__attachShadow();
|
|
10
|
+
this.label = undefined;
|
|
11
|
+
this.disabled = false;
|
|
12
|
+
this.default = false;
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
return (h(Host, null, h("slot", null)));
|
|
16
|
+
}
|
|
17
|
+
static get style() { return inlineTabCss; }
|
|
18
|
+
}, [1, "sdds-inline-tab", {
|
|
19
|
+
"label": [1],
|
|
20
|
+
"disabled": [4],
|
|
21
|
+
"default": [4]
|
|
22
|
+
}]);
|
|
23
|
+
function defineCustomElement$1() {
|
|
24
|
+
if (typeof customElements === "undefined") {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
const components = ["sdds-inline-tab"];
|
|
28
|
+
components.forEach(tagName => { switch (tagName) {
|
|
29
|
+
case "sdds-inline-tab":
|
|
30
|
+
if (!customElements.get(tagName)) {
|
|
31
|
+
customElements.define(tagName, InlineTabsChild);
|
|
32
|
+
}
|
|
33
|
+
break;
|
|
34
|
+
} });
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const SddsInlineTab = InlineTabsChild;
|
|
38
|
+
const defineCustomElement = defineCustomElement$1;
|
|
39
|
+
|
|
40
|
+
export { SddsInlineTab, defineCustomElement };
|
|
41
|
+
|
|
42
|
+
//# sourceMappingURL=sdds-inline-tab.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"sdds-inline-tab.js","mappings":";;AAAA,MAAM,YAAY,GAAG,sBAAsB;;MCO9B,eAAe;;;;;;oBAGE,KAAK;mBAEN,KAAK;;EAEhC,MAAM;IACJ,QACE,EAAC,IAAI,QACH,eAAa,CACR,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./src/components/tabs/inline-tabs-default/inline-tab/inline-tab.scss?tag=sdds-inline-tab&encapsulation=shadow","./src/components/tabs/inline-tabs-default/inline-tab/inline-tab.tsx"],"sourcesContent":[":host {\n display: block;\n}\n","import { Component, Host, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'sdds-inline-tab',\n styleUrl: 'inline-tab.scss',\n shadow: true,\n})\nexport class InlineTabsChild {\n @Prop() label: string;\n\n @Prop() disabled: boolean = false;\n\n @Prop() default: boolean = false;\n\n render() {\n return (\n <Host>\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface SddsInlineTabsFullbleed extends Components.SddsInlineTabsFullbleed, HTMLElement {}
|
|
4
|
+
export const SddsInlineTabsFullbleed: {
|
|
5
|
+
prototype: SddsInlineTabsFullbleed;
|
|
6
|
+
new (): SddsInlineTabsFullbleed;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
|
|
3
|
+
const inlineTabsFullbleedCss = ".sdds-inline-tabs-fullbleed{box-sizing:border-box;display:flex;position:relative;}.sdds-inline-tabs-fullbleed *{box-sizing:border-box}.sdds-inline-tabs-fullbleed::after{content:\" \";display:block;border-bottom:1px solid var(--sdds-inline-tabs-fullbleed-horizontal-divider-background);opacity:var(--sdds-inline-tabs-fullbleed-horizontal-divider-opacity);left:0;right:0;bottom:0;position:absolute}.sdds-inline-tabs-fullbleed-wrapper{display:flex;flex-wrap:nowrap;width:100%;overflow-x:scroll;scrollbar-width:none}.sdds-inline-tabs-fullbleed-wrapper::-webkit-scrollbar{display:none}.sdds-inline-tabs-fullbleed--forward,.sdds-inline-tabs-fullbleed--back{cursor:pointer;width:48px;height:100%;border:0;position:absolute;right:0;top:0;background-color:var(--sdds-inline-tabs-fullbleed-scroll-btn-background);display:flex;justify-content:center;align-items:center;opacity:0;pointer-events:none}.sdds-inline-tabs-fullbleed--forward__show,.sdds-inline-tabs-fullbleed--back__show{opacity:1;pointer-events:all}.sdds-inline-tabs-fullbleed--forward:hover,.sdds-inline-tabs-fullbleed--back:hover{background-color:var(--sdds-inline-tabs-fullbleed-scroll-btn-background-hover)}.sdds-inline-tabs-fullbleed--forward:active,.sdds-inline-tabs-fullbleed--back:active{background-color:var(--sdds-inline-tabs-fullbleed-scroll-btn-background-active)}.sdds-inline-tabs-fullbleed--forward:focus,.sdds-inline-tabs-fullbleed--back:focus{outline:2px solid var(--sdds-blue-400);outline-offset:-2px}.sdds-inline-tabs-fullbleed--forward svg,.sdds-inline-tabs-fullbleed--back svg{fill:var(--sdds-inline-tabs-scroll-btn-color)}.sdds-inline-tabs-fullbleed-centered{justify-content:center}::slotted(.sdds-inline-tabs-fullbleed--tab){font:var(--sdds-headline-07);letter-spacing:var(--sdds-headline-07-ls);color:var(--sdds-inline-tabs-fullbleed-tab-color);opacity:0.6;padding:16px 0;margin-right:32px;text-decoration:none;display:block;position:relative;transition:color 0.15s ease-in-out;white-space:nowrap;text-align:left}::slotted(.sdds-inline-tabs-fullbleed--tab)::after{content:\" \";position:absolute;bottom:0;right:0;left:0;margin-left:auto;width:0;margin-right:auto;height:2px;background-color:var(--sdds-inline-tabs-fullbleed-tab-indicator-background-hover);transition:width 0.15s ease-in-out;z-index:1}::slotted(.sdds-inline-tabs-fullbleed--tab__active){color:var(--sdds-inline-tabs-fullbleed-tab-color-active);opacity:1}::slotted(.sdds-inline-tabs-fullbleed--tab__active)::after{width:100%;background-color:var(--sdds-inline-tabs-fullbleed-tab-indicator-background-active)}::slotted(.sdds-inline-tabs-fullbleed--tab:first-child){margin-left:32px}::slotted(.sdds-inline-tabs-fullbleed--tab:last-child){margin-right:32px}::slotted(.sdds-inline-tabs-fullbleed--tab:hover){color:var(--sdds-inline-tabs-fullbleed-tab-color-hover);opacity:1}::slotted(.sdds-inline-tabs-fullbleed--tab:hover)::after{width:100%}::slotted(.sdds-inline-tabs-fullbleed--tab:focus){outline:2px solid var(--sdds-blue-400);outline-offset:-2px;color:var(--sdds-inline-tabs-fullbleed-tab-color-focus);opacity:1}::slotted(.sdds-inline-tabs-fullbleed--tab:focus)::after{width:0}::slotted(.sdds-inline-tabs-fullbleed--tab__active:focus)::after{width:100%}::slotted(.sdds-inline-tabs-fullbleed--tab__disabled){color:var(--sdds-inline-tabs-fullbleed-tab-color-disabled);pointer-events:none;opacity:var(--sdds-inline-tabs-fullbleed-tab-color-opacity-disabled)}.sdds-inline-tabs-fullbleed{background-color:var(--sdds-inline-tabs-fullbleed-tab-background)}.sdds-inline-tabs-fullbleed .sdds-inline-tabs-fullbleed--forward{background-color:var(--sdds-inline-tabs-fullbleed-tab-background)}.sdds-inline-tabs-fullbleed .sdds-inline-tabs-fullbleed--back{background-color:var(--sdds-inline-tabs-fullbleed-tab-background)}";
|
|
4
|
+
|
|
5
|
+
const InlineTabsFullbleed = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
this.__registerHost();
|
|
9
|
+
this.__attachShadow();
|
|
10
|
+
this.navWrapperElement = null; // reference to container with nav buttons
|
|
11
|
+
this.componentWidth = 0; // visible width of this component
|
|
12
|
+
this.buttonsWidth = 0; // total width of all nav items combined
|
|
13
|
+
this.scrollWidth = 0; // total amount that is possible to scroll in the nav wrapper
|
|
14
|
+
this.buttonWidth = 0; // current calculated width of the largest nav button
|
|
15
|
+
this.modeVariant = null;
|
|
16
|
+
this.tabs = [];
|
|
17
|
+
this.showLeftScroll = false;
|
|
18
|
+
this.showRightScroll = false;
|
|
19
|
+
}
|
|
20
|
+
componentDidRender() {
|
|
21
|
+
this.calculateButtonWidth();
|
|
22
|
+
}
|
|
23
|
+
componentDidLoad() {
|
|
24
|
+
const resizeObserver = new ResizeObserver((entries) => {
|
|
25
|
+
entries.forEach((entry) => {
|
|
26
|
+
const componentWidth = entry.contentRect.width;
|
|
27
|
+
let buttonsWidth = 0;
|
|
28
|
+
const navButtons = Array.from(this.host.children);
|
|
29
|
+
navButtons.forEach((navButton) => {
|
|
30
|
+
const style = window.getComputedStyle(navButton);
|
|
31
|
+
buttonsWidth +=
|
|
32
|
+
navButton.clientWidth + parseFloat(style.marginLeft) + parseFloat(style.marginRight);
|
|
33
|
+
navButton.classList.add('sdds-inline-tabs-fullbleed--tab');
|
|
34
|
+
});
|
|
35
|
+
this.componentWidth = componentWidth;
|
|
36
|
+
this.buttonsWidth = buttonsWidth;
|
|
37
|
+
this.scrollWidth = buttonsWidth - componentWidth;
|
|
38
|
+
if (this.buttonsWidth > this.componentWidth) {
|
|
39
|
+
this.evaluateScrollButtons();
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
this.showLeftScroll = false;
|
|
43
|
+
this.showRightScroll = false;
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
resizeObserver.observe(this.navWrapperElement);
|
|
48
|
+
this.calculateButtonWidth();
|
|
49
|
+
}
|
|
50
|
+
calculateButtonWidth() {
|
|
51
|
+
let best = 0;
|
|
52
|
+
const navButtons = Array.from(this.host.children);
|
|
53
|
+
navButtons.forEach((navButton) => {
|
|
54
|
+
const style = window.getComputedStyle(navButton);
|
|
55
|
+
const width = navButton.clientWidth + parseFloat(style.marginLeft) + parseFloat(style.marginRight);
|
|
56
|
+
if (width > best) {
|
|
57
|
+
best = width;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
this.buttonWidth = best;
|
|
61
|
+
}
|
|
62
|
+
scrollRight() {
|
|
63
|
+
const scroll = this.navWrapperElement.scrollLeft;
|
|
64
|
+
this.navWrapperElement.scrollLeft = scroll + this.buttonWidth;
|
|
65
|
+
this.evaluateScrollButtons();
|
|
66
|
+
}
|
|
67
|
+
scrollLeft() {
|
|
68
|
+
const scroll = this.navWrapperElement.scrollLeft;
|
|
69
|
+
this.navWrapperElement.scrollLeft = scroll - this.buttonWidth;
|
|
70
|
+
this.evaluateScrollButtons();
|
|
71
|
+
}
|
|
72
|
+
evaluateScrollButtons() {
|
|
73
|
+
const scroll = this.navWrapperElement.scrollLeft;
|
|
74
|
+
if (scroll >= this.scrollWidth) {
|
|
75
|
+
this.showRightScroll = false;
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
this.showRightScroll = true;
|
|
79
|
+
}
|
|
80
|
+
if (scroll <= 0) {
|
|
81
|
+
this.showLeftScroll = false;
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
this.showLeftScroll = true;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
render() {
|
|
88
|
+
return (h(Host, { class: `${this.modeVariant !== null ? `sdds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { class: `sdds-inline-tabs-fullbleed` }, h("div", { class: "sdds-inline-tabs-fullbleed-wrapper", ref: (el) => {
|
|
89
|
+
this.navWrapperElement = el;
|
|
90
|
+
} }, h("slot", null)), h("div", { class: "sdds-inline-tabs-fullbleed-navigation" }, h("button", { class: `sdds-inline-tabs-fullbleed--forward ${this.showRightScroll ? 'sdds-inline-tabs-fullbleed--back__show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M6.1147 17.3291C5.87062 17.0851 5.87062 16.6893 6.1147 16.4453L12.2948 10.2652C12.4412 10.1187 12.4412 9.8813 12.2948 9.73485L6.1147 3.55476C5.87062 3.31068 5.87062 2.91496 6.1147 2.67088C6.35878 2.4268 6.75451 2.4268 6.99858 2.67088L13.1787 8.85097C13.8133 9.48557 13.8133 10.5145 13.1787 11.1491L6.99858 17.3291C6.75451 17.5732 6.35878 17.5732 6.1147 17.3291Z" }))), h("button", { class: `sdds-inline-tabs-fullbleed--back ${this.showLeftScroll ? 'sdds-inline-tabs-fullbleed--back__show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M13.8853 2.67085C14.1294 2.91493 14.1294 3.31066 13.8853 3.55473L7.70522 9.73482C7.55878 9.88127 7.55878 10.1187 7.70522 10.2652L13.8853 16.4452C14.1294 16.6893 14.1294 17.085 13.8853 17.3291C13.6412 17.5732 13.2455 17.5732 13.0014 17.3291L6.82134 11.149C6.18674 10.5144 6.18674 9.48554 6.82134 8.85094L13.0014 2.67085C13.2455 2.42677 13.6412 2.42677 13.8853 2.67085Z" })))))));
|
|
91
|
+
}
|
|
92
|
+
get host() { return this; }
|
|
93
|
+
static get style() { return inlineTabsFullbleedCss; }
|
|
94
|
+
}, [1, "sdds-inline-tabs-fullbleed", {
|
|
95
|
+
"modeVariant": [1, "mode-variant"],
|
|
96
|
+
"tabs": [32],
|
|
97
|
+
"showLeftScroll": [32],
|
|
98
|
+
"showRightScroll": [32]
|
|
99
|
+
}]);
|
|
100
|
+
function defineCustomElement$1() {
|
|
101
|
+
if (typeof customElements === "undefined") {
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
const components = ["sdds-inline-tabs-fullbleed"];
|
|
105
|
+
components.forEach(tagName => { switch (tagName) {
|
|
106
|
+
case "sdds-inline-tabs-fullbleed":
|
|
107
|
+
if (!customElements.get(tagName)) {
|
|
108
|
+
customElements.define(tagName, InlineTabsFullbleed);
|
|
109
|
+
}
|
|
110
|
+
break;
|
|
111
|
+
} });
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
const SddsInlineTabsFullbleed = InlineTabsFullbleed;
|
|
115
|
+
const defineCustomElement = defineCustomElement$1;
|
|
116
|
+
|
|
117
|
+
export { SddsInlineTabsFullbleed, defineCustomElement };
|
|
118
|
+
|
|
119
|
+
//# sourceMappingURL=sdds-inline-tabs-fullbleed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"sdds-inline-tabs-fullbleed.js","mappings":"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","names":[],"sources":["./src/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.scss?tag=sdds-inline-tabs-fullbleed&encapsulation=shadow","./src/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.tsx"],"sourcesContent":["@import '../../../mixins/focus-state';\n@import '../../../mixins/box-sizing';\n\n.sdds-inline-tabs-fullbleed {\n @include sdds-box-sizing;\n\n display: flex;\n position: relative;\n\n &::after {\n content: ' ';\n display: block;\n border-bottom: 1px solid var(--sdds-inline-tabs-fullbleed-horizontal-divider-background);\n opacity: var(--sdds-inline-tabs-fullbleed-horizontal-divider-opacity);\n left: 0;\n right: 0;\n bottom: 0;\n position: absolute;\n }\n\n &-wrapper {\n display: flex;\n flex-wrap: nowrap;\n width: 100%;\n overflow-x: scroll;\n scrollbar-width: none;\n\n &::-webkit-scrollbar {\n display: none;\n }\n }\n\n &--forward,\n &--back {\n cursor: pointer;\n width: 48px;\n height: 100%;\n border: 0;\n position: absolute;\n right: 0;\n top: 0;\n background-color: var(--sdds-inline-tabs-fullbleed-scroll-btn-background);\n display: flex;\n justify-content: center;\n align-items: center;\n opacity: 0;\n pointer-events: none;\n\n &__show {\n opacity: 1;\n pointer-events: all;\n }\n\n &:hover {\n background-color: var(--sdds-inline-tabs-fullbleed-scroll-btn-background-hover);\n }\n\n &:active {\n background-color: var(--sdds-inline-tabs-fullbleed-scroll-btn-background-active);\n }\n\n &:focus {\n @include sdds-focus-state;\n }\n svg{\n fill:var(--sdds-inline-tabs-scroll-btn-color);\n }\n }\n\n &-centered {\n justify-content: center;\n }\n\n /* tab */\n ::slotted(&--tab) {\n //fixme: headline-07 has a line-height that is not matching old storybook\n font: var(--sdds-headline-07);\n letter-spacing: var(--sdds-headline-07-ls);\n color: var(--sdds-inline-tabs-fullbleed-tab-color);\n opacity: 0.6;\n padding: 16px 0;\n margin-right: 32px;\n text-decoration: none;\n display: block;\n position: relative;\n transition: color 0.15s ease-in-out;\n white-space: nowrap;\n text-align: left;\n\n &::after {\n content: ' ';\n position: absolute;\n bottom: 0;\n right: 0;\n left: 0;\n margin-left: auto;\n width: 0;\n margin-right: auto;\n height: 2px;\n background-color: var(--sdds-inline-tabs-fullbleed-tab-indicator-background-hover);\n transition: width 0.15s ease-in-out;\n z-index: 1;\n }\n }\n \n ::slotted(&--tab__active) {\n color: var(--sdds-inline-tabs-fullbleed-tab-color-active);\n opacity:1;\n\n &::after {\n width: 100%;\n background-color: var(--sdds-inline-tabs-fullbleed-tab-indicator-background-active);\n }\n }\n\n ::slotted(&--tab:first-child) {\n margin-left: 32px;\n }\n\n ::slotted(&--tab:last-child) {\n margin-right: 32px;\n }\n\n /* tab states */\n ::slotted(&--tab:hover) {\n color: var(--sdds-inline-tabs-fullbleed-tab-color-hover);\n opacity:1;\n\n &::after {\n width: 100%;\n }\n }\n\n ::slotted(&--tab:focus) {\n @include sdds-focus-state;\n\n color: var(--sdds-inline-tabs-fullbleed-tab-color-focus);\n opacity:1;\n \n &::after {\n width: 0;\n }\n }\n\n ::slotted(&--tab__active:focus)::after {\n width: 100%;\n }\n\n ::slotted(&--tab__disabled) {\n color: var(--sdds-inline-tabs-fullbleed-tab-color-disabled);\n pointer-events: none;\n opacity: var(--sdds-inline-tabs-fullbleed-tab-color-opacity-disabled);\n }\n}\n\n.sdds-inline-tabs-fullbleed {\n background-color: var(--sdds-inline-tabs-fullbleed-tab-background);\n\n .sdds-inline-tabs-fullbleed--forward {\n background-color: var(--sdds-inline-tabs-fullbleed-tab-background);\n }\n\n .sdds-inline-tabs-fullbleed--back {\n background-color: var(--sdds-inline-tabs-fullbleed-tab-background);\n }\n}\n","import { Component, Host, State, Element, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'sdds-inline-tabs-fullbleed',\n styleUrl: 'inline-tabs-fullbleed.scss',\n shadow: true,\n})\nexport class InlineTabsFullbleed {\n /** Variant of the tabs, primary= on white, secondary= on grey50 */\n @Prop() modeVariant: 'primary' | 'secondary' = null;\n\n @Element() host: HTMLElement;\n\n @State() tabs: Array<any> = []; // array with metadata for slotted children\n\n @State() showLeftScroll: boolean = false;\n\n @State() showRightScroll: boolean = false;\n\n navWrapperElement: HTMLElement = null; // reference to container with nav buttons\n\n componentWidth: number = 0; // visible width of this component\n\n buttonsWidth: number = 0; // total width of all nav items combined\n\n scrollWidth: number = 0; // total amount that is possible to scroll in the nav wrapper\n\n buttonWidth: number = 0; // current calculated width of the largest nav button\n\n componentDidRender() {\n this.calculateButtonWidth();\n }\n\n componentDidLoad() {\n const resizeObserver = new ResizeObserver((entries) => {\n entries.forEach((entry) => {\n const componentWidth = entry.contentRect.width;\n let buttonsWidth = 0;\n\n const navButtons = Array.from(this.host.children);\n navButtons.forEach((navButton: HTMLElement) => {\n const style = window.getComputedStyle(navButton);\n buttonsWidth +=\n navButton.clientWidth + parseFloat(style.marginLeft) + parseFloat(style.marginRight);\n\n navButton.classList.add('sdds-inline-tabs-fullbleed--tab');\n });\n\n this.componentWidth = componentWidth;\n this.buttonsWidth = buttonsWidth;\n this.scrollWidth = buttonsWidth - componentWidth;\n\n if (this.buttonsWidth > this.componentWidth) {\n this.evaluateScrollButtons();\n } else {\n this.showLeftScroll = false;\n this.showRightScroll = false;\n }\n });\n });\n\n resizeObserver.observe(this.navWrapperElement);\n\n this.calculateButtonWidth();\n }\n\n calculateButtonWidth() {\n let best = 0;\n const navButtons = Array.from(this.host.children);\n navButtons.forEach((navButton: HTMLElement) => {\n const style = window.getComputedStyle(navButton);\n const width =\n navButton.clientWidth + parseFloat(style.marginLeft) + parseFloat(style.marginRight);\n\n if (width > best) {\n best = width;\n }\n });\n\n this.buttonWidth = best;\n }\n\n scrollRight() {\n const scroll = this.navWrapperElement.scrollLeft;\n this.navWrapperElement.scrollLeft = scroll + this.buttonWidth;\n\n this.evaluateScrollButtons();\n }\n\n scrollLeft() {\n const scroll = this.navWrapperElement.scrollLeft;\n this.navWrapperElement.scrollLeft = scroll - this.buttonWidth;\n\n this.evaluateScrollButtons();\n }\n\n evaluateScrollButtons() {\n const scroll = this.navWrapperElement.scrollLeft;\n\n if (scroll >= this.scrollWidth) {\n this.showRightScroll = false;\n } else {\n this.showRightScroll = true;\n }\n\n if (scroll <= 0) {\n this.showLeftScroll = false;\n } else {\n this.showLeftScroll = true;\n }\n }\n\n render() {\n return (\n <Host class={`${this.modeVariant !== null ? `sdds-mode-variant-${this.modeVariant}`: ''}`}>\n <div class={`sdds-inline-tabs-fullbleed`}>\n <div\n class=\"sdds-inline-tabs-fullbleed-wrapper\"\n ref={(el) => {\n this.navWrapperElement = el as HTMLElement;\n }}\n >\n <slot />\n </div>\n <div class=\"sdds-inline-tabs-fullbleed-navigation\">\n <button\n class={`sdds-inline-tabs-fullbleed--forward ${\n this.showRightScroll ? 'sdds-inline-tabs-fullbleed--back__show' : ''\n }`}\n onClick={() => this.scrollRight()}\n disabled={!this.showRightScroll}\n >\n <svg\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"currentColor\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M6.1147 17.3291C5.87062 17.0851 5.87062 16.6893 6.1147 16.4453L12.2948 10.2652C12.4412 10.1187 12.4412 9.8813 12.2948 9.73485L6.1147 3.55476C5.87062 3.31068 5.87062 2.91496 6.1147 2.67088C6.35878 2.4268 6.75451 2.4268 6.99858 2.67088L13.1787 8.85097C13.8133 9.48557 13.8133 10.5145 13.1787 11.1491L6.99858 17.3291C6.75451 17.5732 6.35878 17.5732 6.1147 17.3291Z\"\n ></path>\n </svg>\n </button>\n <button\n class={`sdds-inline-tabs-fullbleed--back ${\n this.showLeftScroll ? 'sdds-inline-tabs-fullbleed--back__show' : ''\n }`}\n onClick={() => this.scrollLeft()}\n disabled={!this.showLeftScroll}\n >\n <svg\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"currentColor\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M13.8853 2.67085C14.1294 2.91493 14.1294 3.31066 13.8853 3.55473L7.70522 9.73482C7.55878 9.88127 7.55878 10.1187 7.70522 10.2652L13.8853 16.4452C14.1294 16.6893 14.1294 17.085 13.8853 17.3291C13.6412 17.5732 13.2455 17.5732 13.0014 17.3291L6.82134 11.149C6.18674 10.5144 6.18674 9.48554 6.82134 8.85094L13.0014 2.67085C13.2455 2.42677 13.6412 2.42677 13.8853 2.67085Z\"\n ></path>\n </svg>\n </button>\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface SddsInlineTabs extends Components.SddsInlineTabs, HTMLElement {}
|
|
4
|
+
export const SddsInlineTabs: {
|
|
5
|
+
prototype: SddsInlineTabs;
|
|
6
|
+
new (): SddsInlineTabs;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|