@scania/tegel 0.0.10 → 0.0.12
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-ee36ffa1.js +4 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/tds-banner.cjs.entry.js +6 -6
- package/dist/cjs/tds-body-cell_2.cjs.entry.js +4 -8
- package/dist/cjs/tds-button.cjs.entry.js +22 -16
- package/dist/cjs/tds-card.cjs.entry.js +3 -3
- package/dist/cjs/tds-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/tds-chip.cjs.entry.js +2 -2
- package/dist/cjs/tds-core-header-item_2.cjs.entry.js +1 -1
- package/dist/cjs/tds-datetime.cjs.entry.js +3 -1
- package/dist/cjs/tds-dropdown-option.cjs.entry.js +1 -1
- package/dist/cjs/tds-dropdown.cjs.entry.js +36 -14
- package/dist/cjs/tds-footer.cjs.entry.js +2 -2
- package/dist/cjs/tds-header-cell.cjs.entry.js +5 -5
- package/dist/cjs/tds-header-dropdown-list-item.cjs.entry.js +2 -2
- package/dist/cjs/tds-header-dropdown-list.cjs.entry.js +6 -6
- package/dist/cjs/tds-header-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/tds-header-hamburger.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-button.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-grid-title.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-grid.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-list-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-list-title.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-list.cjs.entry.js +2 -2
- package/dist/cjs/tds-header-launcher.cjs.entry.js +2 -2
- package/dist/cjs/tds-header.cjs.entry.js +1 -1
- package/dist/cjs/tds-link.cjs.entry.js +1 -1
- package/dist/cjs/tds-message.cjs.entry.js +3 -3
- package/dist/cjs/tds-modal.cjs.entry.js +2 -2
- package/dist/cjs/tds-popover-canvas.cjs.entry.js +10 -80
- package/dist/{components/popper.js → cjs/tds-popover-core.cjs.entry.js} +160 -1
- package/dist/cjs/tds-popover-menu.cjs.entry.js +12 -62
- package/dist/cjs/tds-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-close-button.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-overlay.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu.cjs.entry.js +7 -3
- package/dist/cjs/tds-slider.cjs.entry.js +6 -2
- package/dist/cjs/tds-stepper.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +1 -3
- package/dist/cjs/tds-table-body.cjs.entry.js +6 -9
- package/dist/cjs/tds-table-header.cjs.entry.js +5 -5
- package/dist/cjs/tds-table-toolbar.cjs.entry.js +2 -2
- package/dist/cjs/tds-table.cjs.entry.js +14 -10
- package/dist/cjs/tds-text-field.cjs.entry.js +2 -2
- package/dist/cjs/tds-toast.cjs.entry.js +5 -5
- package/dist/cjs/tds-toggle.cjs.entry.js +1 -1
- package/dist/cjs/tds-tooltip.cjs.entry.js +41 -82
- package/dist/cjs/tegel.cjs.js +1 -1
- package/dist/cjs/{utils-41de5fb2.js → utils-a908536d.js} +1 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/accordion/accordion-item/accordion-item.js +1 -0
- package/dist/collection/components/accordion/accordion.js +3 -0
- package/dist/collection/components/banner/banner.css +1 -1
- package/dist/collection/components/banner/banner.js +11 -11
- package/dist/collection/components/banner/banner.stories.js +8 -8
- package/dist/collection/components/block/block.js +3 -0
- package/dist/collection/components/breadcrumbs/breadcrumb/breadcrumb.js +3 -0
- package/dist/collection/components/breadcrumbs/breadcrumbs.js +3 -0
- package/dist/collection/components/button/button.css +35 -16
- package/dist/collection/components/button/button.js +43 -18
- package/dist/collection/components/button/button.stories.js +26 -8
- package/dist/collection/components/card/card.css +3 -0
- package/dist/collection/components/card/card.js +1 -1
- package/dist/collection/components/card/card.stories.js +2 -1
- package/dist/collection/components/chip/chip.js +2 -2
- package/dist/collection/components/datetime/datetime.js +38 -2
- package/dist/collection/components/datetime/datetime.stories.js +27 -3
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +4 -1
- package/dist/collection/components/dropdown/dropdown.js +45 -14
- package/dist/collection/components/footer/footer-group/footer-group.js +3 -0
- package/dist/collection/components/footer/footer-item/footer-item.js +3 -0
- package/dist/collection/components/footer/footer.css +1 -0
- package/dist/collection/components/header/core-header-item/core-header-item.js +3 -0
- package/dist/collection/components/header/header-brand-symbol/header-brand-symbol.js +3 -0
- package/dist/collection/components/header/header-dropdown/header-dropdown.css +1 -1
- package/dist/collection/components/header/header-dropdown/header-dropdown.js +1 -0
- package/dist/collection/components/header/header-dropdown-list/header-dropdown-list.css +2 -2
- package/dist/collection/components/header/header-dropdown-list/header-dropdown-list.js +10 -7
- package/dist/collection/components/header/header-dropdown-list-item/header-dropdown-list-item.css +3 -3
- package/dist/collection/components/header/header-dropdown-list-item/header-dropdown-list-item.js +7 -4
- package/dist/collection/components/header/header-item/header-item.js +3 -0
- package/dist/collection/components/header/header-launcher/header-launcher.css +1 -1
- package/dist/collection/components/header/header-launcher/header-launcher.js +3 -0
- package/dist/collection/components/header/header-launcher-grid/header-launcher-grid.js +3 -0
- package/dist/collection/components/header/header-launcher-grid-item/header-launcher-grid-item.js +3 -0
- package/dist/collection/components/header/header-launcher-grid-title/header-launcher-grid-title.js +3 -0
- package/dist/collection/components/header/header-launcher-list/header-launcher-list.js +4 -1
- package/dist/collection/components/header/header-launcher-list-item/header-launcher-list-item.js +4 -1
- package/dist/collection/components/header/header-launcher-list-title/header-launcher-list-title.js +3 -0
- package/dist/collection/components/header/header-title/header-title.js +3 -0
- package/dist/collection/components/header/header.js +1 -0
- package/dist/collection/components/header/header.stories.js +2 -0
- package/dist/collection/components/link/link.js +4 -1
- package/dist/collection/components/link/link.stories.js +5 -3
- package/dist/collection/components/message/message.js +7 -7
- package/dist/collection/components/message/message.stories.js +6 -6
- package/dist/collection/components/modal/modal.css +2 -2
- package/dist/collection/components/popover-canvas/popover-canvas.css +4 -8
- package/dist/collection/components/popover-canvas/popover-canvas.js +13 -102
- package/dist/collection/components/popover-canvas/popover-canvas.stories.js +8 -8
- package/dist/collection/components/popover-core/popover-core.js +390 -0
- package/dist/collection/components/popover-menu/popover-menu.css +3 -9
- package/dist/collection/components/popover-menu/popover-menu.js +17 -80
- package/dist/collection/components/popover-menu/popover-menu.stories.js +3 -3
- package/dist/collection/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.js +1 -1
- package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.js +1 -1
- package/dist/collection/components/side-menu/side-menu-dropdown-list/side-menu-dropdown-list.js +1 -1
- package/dist/collection/components/side-menu/side-menu-dropdown-list-item/side-menu-dropdown-list-item.js +1 -1
- package/dist/collection/components/side-menu/side-menu-item/side-menu-item.js +1 -1
- package/dist/collection/components/side-menu/side-menu-overlay/side-menu-overlay.css +8 -1
- package/dist/collection/components/side-menu/side-menu.css +12 -11
- package/dist/collection/components/side-menu/side-menu.js +9 -5
- package/dist/collection/components/slider/slider.js +5 -1
- package/dist/collection/components/stepper/stepper.js +3 -0
- package/dist/collection/components/table/table/table.js +22 -15
- package/dist/collection/components/table/table-body/table-body.js +10 -13
- package/dist/collection/components/table/table-body-cell/table-body-cell.js +3 -0
- package/dist/collection/components/table/table-body-row/table-body-row.css +2 -2
- package/dist/collection/components/table/table-body-row/table-body-row.js +7 -9
- package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.css +4 -0
- package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +1 -2
- package/dist/collection/components/table/table-component-basic.stories.js +1 -1
- package/dist/collection/components/table/table-component-batch-actions.stories.js +2 -2
- package/dist/collection/components/table/table-component-bodydata.stories.js +1 -1
- package/dist/collection/components/table/table-component-custom-width.stories.js +1 -1
- package/dist/collection/components/table/table-component-event-listeners.stories.js +1 -1
- package/dist/collection/components/table/table-component-expandable-rows.stories.js +2 -2
- package/dist/collection/components/table/table-component-filtering.stories.js +6 -4
- package/dist/collection/components/table/table-component-multiselect.stories.js +5 -5
- package/dist/collection/components/table/table-component-pagination.stories.js +1 -1
- package/dist/collection/components/table/table-component-sorting.stories.js +1 -1
- package/dist/collection/components/table/table-header/table-header.js +10 -7
- package/dist/collection/components/table/table-header-cell/table-header-cell.js +7 -7
- package/dist/collection/components/table/table-toolbar/table-toolbar.js +4 -4
- package/dist/collection/components/table/table.filtering.spec.js +1 -1
- package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.js +3 -0
- package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +3 -0
- package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.js +3 -0
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +3 -0
- package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.js +3 -0
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +3 -0
- package/dist/collection/components/text-field/text-field.css +8 -6
- package/dist/collection/components/toast/toast.css +1 -1
- package/dist/collection/components/toast/toast.js +5 -5
- package/dist/collection/components/toast/toast.stories.js +6 -6
- package/dist/collection/components/tooltip/tooltip.css +1 -1
- package/dist/collection/components/tooltip/tooltip.js +45 -109
- package/dist/collection/components/tooltip/tooltip.stories.js +9 -1
- package/dist/collection/stories/patterns/navigation/navigation-fewitems.stories.js +1 -1
- package/dist/collection/stories/patterns/navigation/navigation-manyitems.stories.js +4 -3
- package/dist/collection/stories/patterns/navigation/navigation-user-menu.stories.js +1 -1
- package/dist/collection/stories/tegel.stories.js +1 -1
- package/dist/components/header-dropdown-list-item.js +3 -3
- package/dist/components/header-dropdown-list.js +7 -7
- package/dist/components/popover-canvas.js +20 -89
- package/dist/{esm/popper-15e448b4.js → components/popover-core.js} +184 -1
- package/dist/components/table-body-row.js +5 -10
- package/dist/components/tds-banner.js +6 -6
- package/dist/components/tds-button.js +23 -17
- package/dist/components/tds-card.js +2 -2
- package/dist/components/tds-chip.js +1 -1
- package/dist/components/tds-datetime.js +5 -1
- package/dist/components/tds-dropdown-option.js +1 -1
- package/dist/components/tds-dropdown.js +35 -13
- package/dist/components/tds-footer.js +1 -1
- package/dist/components/tds-header-cell.js +7 -7
- package/dist/components/tds-header-dropdown.js +15 -9
- package/dist/components/tds-header-launcher-grid.js +1 -1
- package/dist/components/tds-header-launcher-list-item.js +1 -1
- package/dist/components/tds-header-launcher-list.js +1 -1
- package/dist/components/tds-header-launcher.js +17 -11
- package/dist/components/tds-link.js +1 -1
- package/dist/components/tds-message.js +4 -4
- package/dist/components/tds-modal.js +1 -1
- package/dist/components/tds-popover-core.d.ts +11 -0
- package/dist/components/tds-popover-core.js +6 -0
- package/dist/components/tds-popover-menu.js +22 -70
- package/dist/components/tds-side-menu-overlay.js +1 -1
- package/dist/components/tds-side-menu.js +10 -6
- package/dist/components/tds-slider.js +5 -1
- package/dist/components/tds-table-body-row-expandable.js +1 -3
- package/dist/components/tds-table-body.js +8 -11
- package/dist/components/tds-table-header.js +7 -7
- package/dist/components/tds-table-toolbar.js +3 -3
- package/dist/components/tds-table.js +16 -12
- package/dist/components/tds-text-field.js +1 -1
- package/dist/components/tds-toast.js +5 -5
- package/dist/components/tds-tooltip.js +51 -90
- package/dist/components/utils.js +1 -1
- package/dist/esm/index-23ee700b.js +4 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/tds-banner.entry.js +6 -6
- package/dist/esm/tds-body-cell_2.entry.js +4 -8
- package/dist/esm/tds-button.entry.js +22 -16
- package/dist/esm/tds-card.entry.js +3 -3
- package/dist/esm/tds-checkbox.entry.js +1 -1
- package/dist/esm/tds-chip.entry.js +2 -2
- package/dist/esm/tds-core-header-item_2.entry.js +1 -1
- package/dist/esm/tds-datetime.entry.js +3 -1
- package/dist/esm/tds-dropdown-option.entry.js +1 -1
- package/dist/esm/tds-dropdown.entry.js +36 -14
- package/dist/esm/tds-footer.entry.js +2 -2
- package/dist/esm/tds-header-cell.entry.js +5 -5
- package/dist/esm/tds-header-dropdown-list-item.entry.js +2 -2
- package/dist/esm/tds-header-dropdown-list.entry.js +6 -6
- package/dist/esm/tds-header-dropdown.entry.js +2 -2
- package/dist/esm/tds-header-hamburger.entry.js +1 -1
- package/dist/esm/tds-header-launcher-button.entry.js +1 -1
- package/dist/esm/tds-header-launcher-grid-title.entry.js +1 -1
- package/dist/esm/tds-header-launcher-grid.entry.js +1 -1
- package/dist/esm/tds-header-launcher-list-item.entry.js +1 -1
- package/dist/esm/tds-header-launcher-list-title.entry.js +1 -1
- package/dist/esm/tds-header-launcher-list.entry.js +2 -2
- package/dist/esm/tds-header-launcher.entry.js +2 -2
- package/dist/esm/tds-header.entry.js +1 -1
- package/dist/esm/tds-link.entry.js +1 -1
- package/dist/esm/tds-message.entry.js +3 -3
- package/dist/esm/tds-modal.entry.js +2 -2
- package/dist/esm/tds-popover-canvas.entry.js +10 -80
- package/dist/{cjs/popper-d7adcfc6.js → esm/tds-popover-core.entry.js} +155 -2
- package/dist/esm/tds-popover-menu.entry.js +12 -62
- package/dist/esm/tds-radio-button.entry.js +1 -1
- package/dist/esm/tds-side-menu-close-button.entry.js +1 -1
- package/dist/esm/tds-side-menu-item.entry.js +1 -1
- package/dist/esm/tds-side-menu-overlay.entry.js +1 -1
- package/dist/esm/tds-side-menu.entry.js +7 -3
- package/dist/esm/tds-slider.entry.js +6 -2
- package/dist/esm/tds-stepper.entry.js +1 -1
- package/dist/esm/tds-table-body-row-expandable.entry.js +1 -3
- package/dist/esm/tds-table-body.entry.js +6 -9
- package/dist/esm/tds-table-header.entry.js +5 -5
- package/dist/esm/tds-table-toolbar.entry.js +2 -2
- package/dist/esm/tds-table.entry.js +14 -10
- package/dist/esm/tds-text-field.entry.js +2 -2
- package/dist/esm/tds-toast.entry.js +5 -5
- package/dist/esm/tds-toggle.entry.js +1 -1
- package/dist/esm/tds-tooltip.entry.js +42 -83
- package/dist/esm/tegel.js +1 -1
- package/dist/esm/{utils-74fb1bed.js → utils-8544b156.js} +1 -1
- package/dist/tegel/{p-347414ad.entry.js → p-0ae649c3.entry.js} +1 -1
- package/dist/tegel/p-129ad2a4.entry.js +1 -0
- package/dist/tegel/{p-a4e3eb95.entry.js → p-13db5228.entry.js} +1 -1
- package/dist/tegel/{p-1acb8407.entry.js → p-1f43d4f0.entry.js} +1 -1
- package/dist/tegel/p-24488e72.entry.js +1 -0
- package/dist/tegel/{p-9f1e1cc0.entry.js → p-284d950d.entry.js} +1 -1
- package/dist/tegel/p-28a07d46.entry.js +1 -0
- package/dist/tegel/{p-e4dc07bb.entry.js → p-31848a92.entry.js} +1 -1
- package/dist/tegel/p-39e17b32.entry.js +1 -0
- package/dist/tegel/{p-aa443b06.entry.js → p-3d28689e.entry.js} +1 -1
- package/dist/tegel/{p-99837611.entry.js → p-400282e5.entry.js} +1 -1
- package/dist/tegel/{p-9b29bf68.entry.js → p-42990ec0.entry.js} +1 -1
- package/dist/tegel/p-5e0a3931.entry.js +1 -0
- package/dist/tegel/p-5e4b20ea.entry.js +1 -0
- package/dist/tegel/p-5ed7d376.entry.js +1 -0
- package/dist/tegel/{p-c5ab3a3b.entry.js → p-656add37.entry.js} +1 -1
- package/dist/tegel/{p-54e56257.entry.js → p-6654e59d.entry.js} +1 -1
- package/dist/tegel/p-6caac101.entry.js +1 -0
- package/dist/tegel/{p-9dc14c21.js → p-72fced16.js} +1 -1
- package/dist/tegel/p-76c000e3.entry.js +1 -0
- package/dist/tegel/p-7a03d28c.entry.js +1 -0
- package/dist/tegel/p-7c35af1b.entry.js +1 -0
- package/dist/tegel/p-7ccff0a5.entry.js +1 -0
- package/dist/tegel/p-81915088.entry.js +1 -0
- package/dist/tegel/{p-9fe0d654.entry.js → p-823399ef.entry.js} +1 -1
- package/dist/tegel/{p-8ba77ea3.entry.js → p-84d231a5.entry.js} +1 -1
- package/dist/tegel/{p-fc6da19c.entry.js → p-86028bac.entry.js} +1 -1
- package/dist/tegel/{p-b5424456.entry.js → p-88807dac.entry.js} +1 -1
- package/dist/tegel/p-88d7c4c1.entry.js +1 -0
- package/dist/tegel/p-8e82be94.entry.js +1 -0
- package/dist/tegel/p-9f8aac62.entry.js +1 -0
- package/dist/tegel/p-a8cc3901.entry.js +1 -0
- package/dist/tegel/{p-f9d04ff2.entry.js → p-aa7e2f79.entry.js} +1 -1
- package/dist/tegel/p-afde572b.entry.js +1 -0
- package/dist/tegel/p-b63b9baa.entry.js +1 -0
- package/dist/tegel/p-c0ac4d0a.entry.js +1 -0
- package/dist/tegel/p-c2566d65.entry.js +1 -0
- package/dist/tegel/p-d0f15f73.entry.js +1 -0
- package/dist/tegel/{p-10337d3f.entry.js → p-d2ca7f58.entry.js} +1 -1
- package/dist/tegel/p-d3c3633b.entry.js +1 -0
- package/dist/tegel/p-d4c25eb6.entry.js +1 -0
- package/dist/tegel/{p-e24835ba.entry.js → p-d60cb9e5.entry.js} +1 -1
- package/dist/tegel/p-d735c39f.entry.js +1 -0
- package/dist/tegel/{p-e3f8fc68.entry.js → p-df318a85.entry.js} +1 -1
- package/dist/tegel/p-e36ceefe.entry.js +1 -0
- package/dist/tegel/{p-c15bbe0b.entry.js → p-f682dd0b.entry.js} +1 -1
- package/dist/tegel/p-fe4ac74c.entry.js +1 -0
- package/dist/tegel/tegel.css +2 -2
- package/dist/tegel/tegel.esm.js +1 -1
- package/dist/types/components/accordion/accordion-item/accordion-item.d.ts +1 -0
- package/dist/types/components/accordion/accordion.d.ts +3 -0
- package/dist/types/components/banner/banner.d.ts +3 -3
- package/dist/types/components/banner/banner.stories.d.ts +2 -2
- package/dist/types/components/block/block.d.ts +3 -0
- package/dist/types/components/breadcrumbs/breadcrumb/breadcrumb.d.ts +3 -0
- package/dist/types/components/breadcrumbs/breadcrumbs.d.ts +3 -0
- package/dist/types/components/button/button.d.ts +6 -3
- package/dist/types/components/button/button.stories.d.ts +16 -2
- package/dist/types/components/chip/chip.d.ts +1 -1
- package/dist/types/components/datetime/datetime.d.ts +5 -1
- package/dist/types/components/datetime/datetime.stories.d.ts +26 -0
- package/dist/types/components/dropdown/dropdown-option/dropdown-option.d.ts +4 -1
- package/dist/types/components/dropdown/dropdown.d.ts +5 -1
- package/dist/types/components/footer/footer-group/footer-group.d.ts +3 -0
- package/dist/types/components/footer/footer-item/footer-item.d.ts +3 -0
- package/dist/types/components/header/core-header-item/core-header-item.d.ts +3 -0
- package/dist/types/components/header/header-brand-symbol/header-brand-symbol.d.ts +3 -0
- package/dist/types/components/header/header-dropdown/header-dropdown.d.ts +1 -0
- package/dist/types/components/header/header-dropdown-list/header-dropdown-list.d.ts +5 -1
- package/dist/types/components/header/header-dropdown-list-item/header-dropdown-list-item.d.ts +5 -2
- package/dist/types/components/header/header-item/header-item.d.ts +3 -0
- package/dist/types/components/header/header-launcher/header-launcher.d.ts +3 -0
- package/dist/types/components/header/header-launcher-grid/header-launcher-grid.d.ts +3 -0
- package/dist/types/components/header/header-launcher-grid-item/header-launcher-grid-item.d.ts +3 -0
- package/dist/types/components/header/header-launcher-grid-title/header-launcher-grid-title.d.ts +3 -0
- package/dist/types/components/header/header-launcher-list/header-launcher-list.d.ts +3 -0
- package/dist/types/components/header/header-launcher-list-item/header-launcher-list-item.d.ts +3 -0
- package/dist/types/components/header/header-launcher-list-title/header-launcher-list-title.d.ts +3 -0
- package/dist/types/components/header/header-title/header-title.d.ts +3 -0
- package/dist/types/components/header/header.d.ts +1 -0
- package/dist/types/components/header/header.stories.d.ts +1 -0
- package/dist/types/components/link/link.d.ts +3 -0
- package/dist/types/components/message/message.d.ts +3 -3
- package/dist/types/components/message/message.stories.d.ts +2 -2
- package/dist/types/components/popover-canvas/popover-canvas.d.ts +7 -13
- package/dist/types/components/popover-core/popover-core.d.ts +46 -0
- package/dist/types/components/popover-menu/popover-menu.d.ts +12 -10
- package/dist/types/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.d.ts +1 -1
- package/dist/types/components/side-menu/side-menu-dropdown/side-menu-dropdown.d.ts +1 -1
- package/dist/types/components/side-menu/side-menu-dropdown-list/side-menu-dropdown-list.d.ts +1 -1
- package/dist/types/components/side-menu/side-menu-dropdown-list-item/side-menu-dropdown-list-item.d.ts +1 -1
- package/dist/types/components/side-menu/side-menu-item/side-menu-item.d.ts +1 -1
- package/dist/types/components/side-menu/side-menu.d.ts +1 -1
- package/dist/types/components/stepper/stepper.d.ts +3 -0
- package/dist/types/components/table/table/table.d.ts +9 -6
- package/dist/types/components/table/table-body/table-body.d.ts +4 -4
- package/dist/types/components/table/table-body-cell/table-body-cell.d.ts +3 -0
- package/dist/types/components/table/table-body-row/table-body-row.d.ts +4 -2
- package/dist/types/components/table/table-body-row-expandable/table-body-row-expandable.d.ts +1 -0
- package/dist/types/components/table/table-component-multiselect.stories.d.ts +2 -2
- package/dist/types/components/table/table-header/table-header.d.ts +5 -2
- package/dist/types/components/table/table-header-cell/table-header-cell.d.ts +2 -2
- package/dist/types/components/table/table-toolbar/table-toolbar.d.ts +1 -1
- package/dist/types/components/tabs/folder-tabs/folder-tab/folder-tab.d.ts +3 -0
- package/dist/types/components/tabs/folder-tabs/folder-tabs.d.ts +3 -0
- package/dist/types/components/tabs/inline-tabs/inline-tab/inline-tab.d.ts +3 -0
- package/dist/types/components/tabs/inline-tabs/inline-tabs.d.ts +3 -0
- package/dist/types/components/tabs/navigation-tabs/navigation-tab/navigation-tab.d.ts +3 -0
- package/dist/types/components/tabs/navigation-tabs/navigation-tabs.d.ts +3 -0
- package/dist/types/components/toast/toast.d.ts +1 -1
- package/dist/types/components/toast/toast.stories.d.ts +2 -2
- package/dist/types/components/tooltip/tooltip.d.ts +16 -8
- package/dist/types/components.d.ts +172 -51
- package/package.json +4 -3
- package/dist/tegel/p-06093e3e.entry.js +0 -1
- package/dist/tegel/p-0995ca77.entry.js +0 -1
- package/dist/tegel/p-19fb9ad5.entry.js +0 -1
- package/dist/tegel/p-1bac7d2e.entry.js +0 -1
- package/dist/tegel/p-22b2c81a.entry.js +0 -1
- package/dist/tegel/p-2707da38.entry.js +0 -1
- package/dist/tegel/p-34a06d2f.entry.js +0 -1
- package/dist/tegel/p-3c9865c3.entry.js +0 -1
- package/dist/tegel/p-40142a58.entry.js +0 -1
- package/dist/tegel/p-44a2664d.entry.js +0 -1
- package/dist/tegel/p-48136431.entry.js +0 -1
- package/dist/tegel/p-49a084db.entry.js +0 -1
- package/dist/tegel/p-4c809685.entry.js +0 -1
- package/dist/tegel/p-6200fc54.entry.js +0 -1
- package/dist/tegel/p-674009bd.entry.js +0 -1
- package/dist/tegel/p-6bee84a2.entry.js +0 -1
- package/dist/tegel/p-73a8f43e.entry.js +0 -1
- package/dist/tegel/p-7c0dcd00.js +0 -1
- package/dist/tegel/p-8c194dd8.entry.js +0 -1
- package/dist/tegel/p-95e170f3.entry.js +0 -1
- package/dist/tegel/p-a34bb501.entry.js +0 -1
- package/dist/tegel/p-afe13096.entry.js +0 -1
- package/dist/tegel/p-c5588508.entry.js +0 -1
- package/dist/tegel/p-d5bd9b2e.entry.js +0 -1
- package/dist/tegel/p-e95059e9.entry.js +0 -1
- package/dist/tegel/p-f36ec03b.entry.js +0 -1
- package/dist/tegel/p-f795bc11.entry.js +0 -1
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { Host, h } from '@stencil/core';
|
|
2
2
|
import { appendChildElement, appendHiddenInput, findNextFocusableItem, findPreviousFocusableItem, } from '../../utils/utils';
|
|
3
|
+
/**
|
|
4
|
+
* @slot <default> - <b>Unnamed slot.</b> For dropdown option elements.
|
|
5
|
+
*/
|
|
3
6
|
export class TdsDropdown {
|
|
4
7
|
constructor() {
|
|
5
8
|
this.connectedCallback = () => {
|
|
@@ -7,28 +10,37 @@ export class TdsDropdown {
|
|
|
7
10
|
this.children = Array.from(this.host.children);
|
|
8
11
|
}
|
|
9
12
|
};
|
|
13
|
+
this.componentWillRender = () => {
|
|
14
|
+
if (!this.options) {
|
|
15
|
+
this.children = Array.from(this.host.children);
|
|
16
|
+
}
|
|
17
|
+
};
|
|
10
18
|
this.setDefaultOption = () => {
|
|
11
19
|
this.children = this.children.map((element) => {
|
|
12
20
|
if (this.multiselect) {
|
|
13
|
-
this.defaultValue.split(',').forEach((
|
|
14
|
-
if (
|
|
21
|
+
this.defaultValue.split(',').forEach((value) => {
|
|
22
|
+
if (value === element.value) {
|
|
15
23
|
element.setSelected(true);
|
|
16
24
|
this.selection = this.selection
|
|
17
25
|
? [...this.selection, { value: element.value, label: element.textContent }]
|
|
18
26
|
: [{ value: element.value, label: element.textContent }];
|
|
19
27
|
}
|
|
28
|
+
else {
|
|
29
|
+
element.setSelected(false);
|
|
30
|
+
}
|
|
20
31
|
});
|
|
21
32
|
}
|
|
22
33
|
else {
|
|
23
34
|
if (this.defaultValue === element.value) {
|
|
24
|
-
this.reset();
|
|
25
35
|
element.setSelected(true);
|
|
26
36
|
this.selection = [{ value: element.value, label: element.textContent }];
|
|
27
37
|
}
|
|
38
|
+
else {
|
|
39
|
+
element.setSelected(false);
|
|
40
|
+
}
|
|
28
41
|
}
|
|
29
42
|
return element;
|
|
30
43
|
});
|
|
31
|
-
this.handleChange();
|
|
32
44
|
};
|
|
33
45
|
this.getOpenDirection = () => {
|
|
34
46
|
var _a, _b, _c, _d, _e;
|
|
@@ -53,14 +65,14 @@ export class TdsDropdown {
|
|
|
53
65
|
this.handleFilter = (event) => {
|
|
54
66
|
this.tdsInput.emit(event);
|
|
55
67
|
const query = event.target.value.toLowerCase();
|
|
56
|
-
/* Check if the query is empty, and if so show all options */
|
|
68
|
+
/* Check if the query is empty, and if so, show all options */
|
|
57
69
|
if (query === '') {
|
|
58
70
|
this.children = this.children.map((element) => {
|
|
59
71
|
element.removeAttribute('hidden');
|
|
60
72
|
return element;
|
|
61
73
|
});
|
|
62
74
|
this.filterResult = null;
|
|
63
|
-
/* Hide the options that
|
|
75
|
+
/* Hide the options that do not match the query */
|
|
64
76
|
}
|
|
65
77
|
else {
|
|
66
78
|
this.filterResult = this.children.filter((element) => {
|
|
@@ -107,10 +119,16 @@ export class TdsDropdown {
|
|
|
107
119
|
this.filterResult = undefined;
|
|
108
120
|
this.filterFocus = undefined;
|
|
109
121
|
}
|
|
110
|
-
/** Method that resets the Dropdown. */
|
|
122
|
+
/** Method that resets the Dropdown, marks all children as non-selected and resets the value to null. */
|
|
111
123
|
async reset() {
|
|
112
|
-
this.children
|
|
124
|
+
this.children = Array.from(this.host.children)
|
|
125
|
+
.filter((element) => element.tagName === 'TDS-DROPDOWN-OPTION')
|
|
126
|
+
.map((element) => {
|
|
127
|
+
element.setSelected(false);
|
|
128
|
+
return element;
|
|
129
|
+
});
|
|
113
130
|
this.selection = null;
|
|
131
|
+
this.host.setAttribute('value', null);
|
|
114
132
|
this.handleChange();
|
|
115
133
|
}
|
|
116
134
|
/** Method for setting the value of the Dropdown. */
|
|
@@ -122,7 +140,9 @@ export class TdsDropdown {
|
|
|
122
140
|
}
|
|
123
141
|
else {
|
|
124
142
|
this.selection = [{ value: newValue, label: newValueLabel }];
|
|
125
|
-
this.children = this.children
|
|
143
|
+
this.children = Array.from(this.host.children)
|
|
144
|
+
.filter((element) => element.tagName === 'TDS-DROPDOWN-OPTION')
|
|
145
|
+
.map((element) => {
|
|
126
146
|
if (element.value !== newValue) {
|
|
127
147
|
element.setSelected(false);
|
|
128
148
|
}
|
|
@@ -130,16 +150,20 @@ export class TdsDropdown {
|
|
|
130
150
|
});
|
|
131
151
|
}
|
|
132
152
|
this.handleChange();
|
|
153
|
+
this.host.setAttribute('value', this.selection.map((selection) => selection.value).toString());
|
|
133
154
|
return this.selection;
|
|
134
155
|
}
|
|
135
156
|
/** Method for removing a selected value in the Dropdown. */
|
|
136
157
|
async removeValue(oldValue) {
|
|
137
158
|
if (this.multiselect) {
|
|
138
|
-
this.children.
|
|
159
|
+
this.children = Array.from(this.host.children)
|
|
160
|
+
.filter((element) => element.tagName === 'TDS-DROPDOWN-OPTION')
|
|
161
|
+
.map((element) => {
|
|
139
162
|
if (element.value === oldValue) {
|
|
140
163
|
this.selection = this.selection.filter((item) => item.value !== element.value);
|
|
141
164
|
element.setSelected(false);
|
|
142
165
|
}
|
|
166
|
+
return element;
|
|
143
167
|
});
|
|
144
168
|
}
|
|
145
169
|
else {
|
|
@@ -168,7 +192,7 @@ export class TdsDropdown {
|
|
|
168
192
|
return;
|
|
169
193
|
}
|
|
170
194
|
if (event.key === 'ArrowDown') {
|
|
171
|
-
/* Get the index of the
|
|
195
|
+
/* Get the index of the current focus index, if there is no
|
|
172
196
|
nextElementSibling return the index for the first child in our Dropdown. */
|
|
173
197
|
const startingIndex = activeElement.nextElementSibling
|
|
174
198
|
? this.children.findIndex((element) => element === activeElement.nextElementSibling)
|
|
@@ -177,7 +201,7 @@ export class TdsDropdown {
|
|
|
177
201
|
this.children[elementIndex].focus();
|
|
178
202
|
}
|
|
179
203
|
else if (event.key === 'ArrowUp') {
|
|
180
|
-
/* Get the index of the
|
|
204
|
+
/* Get the index of the current focus index, if there is no
|
|
181
205
|
previousElementSibling return the index for the first last in our Dropdown. */
|
|
182
206
|
const startingIndex = activeElement.nextElementSibling
|
|
183
207
|
? this.children.findIndex((element) => element === activeElement.previousElementSibling)
|
|
@@ -189,7 +213,8 @@ export class TdsDropdown {
|
|
|
189
213
|
this.open = false;
|
|
190
214
|
}
|
|
191
215
|
}
|
|
192
|
-
// If the Dropdown gets closed
|
|
216
|
+
// If the Dropdown gets closed,
|
|
217
|
+
// this sets the value of the dropdown to the current selection labels or null if no selection is made.
|
|
193
218
|
handleOpenState() {
|
|
194
219
|
var _a, _b;
|
|
195
220
|
if (this.filter && this.multiselect) {
|
|
@@ -630,12 +655,15 @@ export class TdsDropdown {
|
|
|
630
655
|
"references": {
|
|
631
656
|
"Promise": {
|
|
632
657
|
"location": "global"
|
|
658
|
+
},
|
|
659
|
+
"HTMLTdsDropdownOptionElement": {
|
|
660
|
+
"location": "global"
|
|
633
661
|
}
|
|
634
662
|
},
|
|
635
663
|
"return": "Promise<void>"
|
|
636
664
|
},
|
|
637
665
|
"docs": {
|
|
638
|
-
"text": "Method that resets the Dropdown.",
|
|
666
|
+
"text": "Method that resets the Dropdown, marks all children as non-selected and resets the value to null.",
|
|
639
667
|
"tags": []
|
|
640
668
|
}
|
|
641
669
|
},
|
|
@@ -674,6 +702,9 @@ export class TdsDropdown {
|
|
|
674
702
|
"references": {
|
|
675
703
|
"Promise": {
|
|
676
704
|
"location": "global"
|
|
705
|
+
},
|
|
706
|
+
"HTMLTdsDropdownOptionElement": {
|
|
707
|
+
"location": "global"
|
|
677
708
|
}
|
|
678
709
|
},
|
|
679
710
|
"return": "Promise<{ value: string; label: string; }[]>"
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { h, Host } from '@stencil/core';
|
|
2
2
|
import { generateUniqueId } from '../../../utils/utils';
|
|
3
3
|
/**
|
|
4
|
+
* @slot <default> - <b>Unnamed slot.</b> For injecting a dropdown list.
|
|
4
5
|
* @slot icon - Slot for an Icon in the dropdown button.
|
|
5
6
|
* @slot label - Slot for a label text in the dropdown button.
|
|
6
7
|
*/
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
padding: 0;
|
|
6
6
|
margin: 0;
|
|
7
7
|
list-style: none;
|
|
8
|
-
border-radius:
|
|
8
|
+
border-radius: unset;
|
|
9
9
|
background-color: var(--tds-header-app-launcher-menu-bg);
|
|
10
10
|
}
|
|
11
11
|
@media all and (max-width: 384px) {
|
|
@@ -14,6 +14,6 @@
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
:host([
|
|
17
|
+
:host([size=lg]) {
|
|
18
18
|
width: 320px;
|
|
19
19
|
}
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
import { Host, h } from '@stencil/core';
|
|
2
2
|
import { getPreviousNestedChildOfSiblingsMatching, isHeadingElement } from '../../../utils/utils';
|
|
3
|
+
/**
|
|
4
|
+
* @slot <default> - <b>Unnamed slot.</b> For a dropdown list item.
|
|
5
|
+
*/
|
|
3
6
|
export class TdsHeaderDropdownList {
|
|
4
7
|
constructor() {
|
|
5
8
|
// A Map to store the slots and their associated slotchange listeners.
|
|
6
9
|
this.slotListeners = new Map();
|
|
7
|
-
this.
|
|
10
|
+
this.size = 'md';
|
|
8
11
|
this.headingElement = undefined;
|
|
9
12
|
}
|
|
10
13
|
componentWillLoad() {
|
|
11
14
|
const { children } = this.host;
|
|
12
|
-
// Set the
|
|
15
|
+
// Set the size prop for each child, if they have such a property
|
|
13
16
|
for (let i = 0; i < children.length; i++) {
|
|
14
17
|
const child = children[i];
|
|
15
|
-
if ('
|
|
16
|
-
child.
|
|
18
|
+
if ('size' in child) {
|
|
19
|
+
child.size = this.size;
|
|
17
20
|
}
|
|
18
21
|
}
|
|
19
22
|
let listRoot = this.host;
|
|
@@ -84,7 +87,7 @@ export class TdsHeaderDropdownList {
|
|
|
84
87
|
}
|
|
85
88
|
static get properties() {
|
|
86
89
|
return {
|
|
87
|
-
"
|
|
90
|
+
"size": {
|
|
88
91
|
"type": "string",
|
|
89
92
|
"mutable": false,
|
|
90
93
|
"complexType": {
|
|
@@ -96,9 +99,9 @@ export class TdsHeaderDropdownList {
|
|
|
96
99
|
"optional": false,
|
|
97
100
|
"docs": {
|
|
98
101
|
"tags": [],
|
|
99
|
-
"text": ""
|
|
102
|
+
"text": "The size of the component."
|
|
100
103
|
},
|
|
101
|
-
"attribute": "
|
|
104
|
+
"attribute": "size",
|
|
102
105
|
"reflect": true,
|
|
103
106
|
"defaultValue": "'md'"
|
|
104
107
|
}
|
package/dist/collection/components/header/header-dropdown-list-item/header-dropdown-list-item.css
CHANGED
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
border-bottom: 1px solid var(--tds-nav-dropdown-item-border-color);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
:host([
|
|
49
|
+
:host([size=lg]) {
|
|
50
50
|
height: var(--tds-header-height);
|
|
51
51
|
}
|
|
52
|
-
:host([
|
|
53
|
-
:host([
|
|
52
|
+
:host([size=lg]) ::slotted(a),
|
|
53
|
+
:host([size=lg]) ::slotted(button) {
|
|
54
54
|
padding: 0 16px;
|
|
55
55
|
color: var(--tds-header-app-launcher-item-color);
|
|
56
56
|
}
|
package/dist/collection/components/header/header-dropdown-list-item/header-dropdown-list-item.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { h, Host } from '@stencil/core';
|
|
2
|
+
/**
|
|
3
|
+
* @slot <default> - <b>Unnamed slot.</b> For a link or button element.
|
|
4
|
+
*/
|
|
2
5
|
export class TdsHeaderDropdownListItem {
|
|
3
6
|
constructor() {
|
|
4
7
|
this.selected = false;
|
|
5
|
-
this.
|
|
8
|
+
this.size = 'md';
|
|
6
9
|
}
|
|
7
10
|
render() {
|
|
8
11
|
return (h(Host, null, h("div", { class: {
|
|
@@ -42,7 +45,7 @@ export class TdsHeaderDropdownListItem {
|
|
|
42
45
|
"reflect": false,
|
|
43
46
|
"defaultValue": "false"
|
|
44
47
|
},
|
|
45
|
-
"
|
|
48
|
+
"size": {
|
|
46
49
|
"type": "string",
|
|
47
50
|
"mutable": false,
|
|
48
51
|
"complexType": {
|
|
@@ -54,9 +57,9 @@ export class TdsHeaderDropdownListItem {
|
|
|
54
57
|
"optional": false,
|
|
55
58
|
"docs": {
|
|
56
59
|
"tags": [],
|
|
57
|
-
"text": "The
|
|
60
|
+
"text": "The size of the component."
|
|
58
61
|
},
|
|
59
|
-
"attribute": "
|
|
62
|
+
"attribute": "size",
|
|
60
63
|
"reflect": true,
|
|
61
64
|
"defaultValue": "'md'"
|
|
62
65
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { Host, h } from '@stencil/core';
|
|
2
2
|
import { generateUniqueId, inheritAriaAttributes } from '../../../utils/utils';
|
|
3
|
+
/**
|
|
4
|
+
* @slot <default> - <b>Unnamed slot.</b> For a launcher list (or grid) element.
|
|
5
|
+
*/
|
|
3
6
|
export class TdsHeaderLauncher {
|
|
4
7
|
constructor() {
|
|
5
8
|
this.uuid = generateUniqueId();
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { h, Host } from '@stencil/core';
|
|
2
2
|
import { getPreviousNestedChildOfSiblingsMatching, isHeadingElement } from '../../../utils/utils';
|
|
3
|
+
/**
|
|
4
|
+
* @slot <default> - <b>Unnamed slot.</b> For a grid item element.
|
|
5
|
+
*/
|
|
3
6
|
export class TdsHeaderLauncherGrid {
|
|
4
7
|
constructor() {
|
|
5
8
|
this.headingElement = undefined;
|
package/dist/collection/components/header/header-launcher-grid-title/header-launcher-grid-title.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { h, Host } from '@stencil/core';
|
|
2
2
|
import { generateUniqueId } from '../../../utils/utils';
|
|
3
|
+
/**
|
|
4
|
+
* @slot <default> - <b>Unnamed slot.</b> For the title text.
|
|
5
|
+
*/
|
|
3
6
|
export class TdsHeaderLauncherGridTitle {
|
|
4
7
|
constructor() {
|
|
5
8
|
this.uuid = generateUniqueId();
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { Host, h } from '@stencil/core';
|
|
2
2
|
import { generateUniqueId } from '../../../utils/utils';
|
|
3
|
+
/**
|
|
4
|
+
* @slot <default> - <b>Unnamed slot.</b> For list items.
|
|
5
|
+
*/
|
|
3
6
|
export class TdsHeaderLauncherList {
|
|
4
7
|
constructor() {
|
|
5
8
|
this.uuid = generateUniqueId();
|
|
6
9
|
}
|
|
7
10
|
render() {
|
|
8
|
-
return (h(Host, null, h("tds-header-dropdown-list", {
|
|
11
|
+
return (h(Host, null, h("tds-header-dropdown-list", { size: "lg" }, h("slot", null))));
|
|
9
12
|
}
|
|
10
13
|
static get is() { return "tds-header-launcher-list"; }
|
|
11
14
|
}
|
package/dist/collection/components/header/header-launcher-list-item/header-launcher-list-item.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { h, Host } from '@stencil/core';
|
|
2
|
+
/**
|
|
3
|
+
* @slot <default> - <b>Unnamed slot.</b> For a link or button element.
|
|
4
|
+
*/
|
|
2
5
|
export class TdsHeaderLauncherListItem {
|
|
3
6
|
render() {
|
|
4
|
-
return (h(Host, null, h("tds-header-dropdown-list-item", {
|
|
7
|
+
return (h(Host, null, h("tds-header-dropdown-list-item", { size: "lg" }, h("slot", null))));
|
|
5
8
|
}
|
|
6
9
|
static get is() { return "tds-header-launcher-list-item"; }
|
|
7
10
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/header/header-launcher-list-title/header-launcher-list-title.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { h, Host } from '@stencil/core';
|
|
2
2
|
import { generateUniqueId } from '../../../utils/utils';
|
|
3
|
+
/**
|
|
4
|
+
* @slot <default> - <b>Unnamed slot.</b> For the title text.
|
|
5
|
+
*/
|
|
3
6
|
export class TdsHeaderLauncherListTitle {
|
|
4
7
|
constructor() {
|
|
5
8
|
this.uuid = generateUniqueId();
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { h, Host } from '@stencil/core';
|
|
2
2
|
import { inheritAriaAttributes, updateListChildrenRoles } from '../../utils/utils';
|
|
3
3
|
/**
|
|
4
|
+
* @slot <default> - <b>Unnamed slot.</b> Slot for the left-aligned content consisting of buttons, dropdowns, links, etc.
|
|
4
5
|
* @slot hamburger - Slot for the hamburger button for opening the mobile menu.
|
|
5
6
|
* @slot title - Slot for the title.
|
|
6
7
|
* @slot end - Slot for the end (right side) of the header.
|
|
@@ -7,6 +7,7 @@ import readmeDropdown from './header-dropdown/readme.md';
|
|
|
7
7
|
import readmeDropdownList from './header-dropdown-list/readme.md';
|
|
8
8
|
import readmeDropdownListItem from './header-dropdown-list-item/readme.md';
|
|
9
9
|
import readmeDropdownListUser from './header-dropdown-list-user/readme.md';
|
|
10
|
+
import readmeBrandSymbol from './header-brand-symbol/readme.md';
|
|
10
11
|
import readmeLauncher from './header-launcher/readme.md';
|
|
11
12
|
import { ComponentsFolder } from '../../utils/constants';
|
|
12
13
|
export default {
|
|
@@ -22,6 +23,7 @@ export default {
|
|
|
22
23
|
'Header dropdown list item': readmeDropdownListItem,
|
|
23
24
|
'Header dropdown list user': readmeDropdownListUser,
|
|
24
25
|
'Header launcher': readmeLauncher,
|
|
26
|
+
'Header brand symbol': readmeBrandSymbol,
|
|
25
27
|
},
|
|
26
28
|
layout: 'fullscreen',
|
|
27
29
|
docs: {
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { h } from '@stencil/core';
|
|
2
|
+
/**
|
|
3
|
+
* @slot <default> - <b>Unnamed slot.</b> For a link element. Eg. <code><a><a></code>.
|
|
4
|
+
*/
|
|
2
5
|
export class TdsLink {
|
|
3
6
|
constructor() {
|
|
4
7
|
this.disabled = false;
|
|
@@ -8,7 +11,7 @@ export class TdsLink {
|
|
|
8
11
|
this.host.children[0].classList.add('tds-link-component');
|
|
9
12
|
}
|
|
10
13
|
render() {
|
|
11
|
-
return (h("
|
|
14
|
+
return (h("span", { class: `
|
|
12
15
|
${this.disabled ? 'disabled' : ''}
|
|
13
16
|
${!this.underline ? 'no-underline' : ''}
|
|
14
17
|
` }, h("slot", null)));
|
|
@@ -47,11 +47,13 @@ export default {
|
|
|
47
47
|
},
|
|
48
48
|
};
|
|
49
49
|
const Template = ({ underline, disabled }) => formatHtmlPreview(`
|
|
50
|
-
<tds-link
|
|
50
|
+
<p class='tds-body-02'>The <tds-link
|
|
51
51
|
${disabled ? 'disabled' : ''}
|
|
52
52
|
${underline ? '' : 'underline="false"'}
|
|
53
53
|
>
|
|
54
|
-
<a href="
|
|
55
|
-
</tds-link>
|
|
54
|
+
<a href="https://tegel.scania.com/home" target='_blank'>Tegel</a>
|
|
55
|
+
</tds-link> Design System is for digital products and services at Scania.
|
|
56
|
+
It enables an efficient development process and ensures a premium experience across all of Scania's digital touchpoints.
|
|
57
|
+
</p>
|
|
56
58
|
`);
|
|
57
59
|
export const Default = Template.bind({});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Host, h } from '@stencil/core';
|
|
2
2
|
/**
|
|
3
|
-
* @slot <default> -
|
|
3
|
+
* @slot <default> - <b>Unnamed slot.</b> For the extended message. Not visible on minimal messages.
|
|
4
4
|
*/
|
|
5
5
|
export class TdsMessage {
|
|
6
6
|
constructor() {
|
|
7
7
|
this.getIconName = () => {
|
|
8
|
-
switch (this.
|
|
8
|
+
switch (this.variant) {
|
|
9
9
|
case 'information':
|
|
10
10
|
return 'info';
|
|
11
11
|
case 'error':
|
|
@@ -20,13 +20,13 @@ export class TdsMessage {
|
|
|
20
20
|
};
|
|
21
21
|
this.header = undefined;
|
|
22
22
|
this.modeVariant = null;
|
|
23
|
-
this.
|
|
23
|
+
this.variant = 'information';
|
|
24
24
|
this.noIcon = false;
|
|
25
25
|
this.minimal = false;
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
28
|
return (h(Host, null, h("div", { class: `
|
|
29
|
-
wrapper ${this.
|
|
29
|
+
wrapper ${this.variant}
|
|
30
30
|
${this.minimal ? 'minimal' : ''}
|
|
31
31
|
${this.modeVariant !== null ? `tds-mode-variant-${this.modeVariant}` : ''}` }, !this.noIcon && h("tds-icon", { name: this.getIconName(), size: "20px" }), h("div", { class: `content` }, this.header && h("div", { class: "header" }, this.header), !this.minimal && (h("div", { class: "extended-message" }, h("slot", null)))))));
|
|
32
32
|
}
|
|
@@ -79,7 +79,7 @@ export class TdsMessage {
|
|
|
79
79
|
"reflect": false,
|
|
80
80
|
"defaultValue": "null"
|
|
81
81
|
},
|
|
82
|
-
"
|
|
82
|
+
"variant": {
|
|
83
83
|
"type": "string",
|
|
84
84
|
"mutable": false,
|
|
85
85
|
"complexType": {
|
|
@@ -91,9 +91,9 @@ export class TdsMessage {
|
|
|
91
91
|
"optional": false,
|
|
92
92
|
"docs": {
|
|
93
93
|
"tags": [],
|
|
94
|
-
"text": "
|
|
94
|
+
"text": "Variant of Message."
|
|
95
95
|
},
|
|
96
|
-
"attribute": "
|
|
96
|
+
"attribute": "variant",
|
|
97
97
|
"reflect": false,
|
|
98
98
|
"defaultValue": "'information'"
|
|
99
99
|
},
|
|
@@ -31,9 +31,9 @@ export default {
|
|
|
31
31
|
defaultValue: { summary: 'Inherit from parent' },
|
|
32
32
|
},
|
|
33
33
|
},
|
|
34
|
-
|
|
35
|
-
name: 'Message
|
|
36
|
-
description: 'Changes the
|
|
34
|
+
messageVariant: {
|
|
35
|
+
name: 'Message variant',
|
|
36
|
+
description: 'Changes the variant of the component.',
|
|
37
37
|
control: {
|
|
38
38
|
type: 'radio',
|
|
39
39
|
},
|
|
@@ -79,14 +79,14 @@ export default {
|
|
|
79
79
|
},
|
|
80
80
|
args: {
|
|
81
81
|
modeVariant: 'Inherit from parent',
|
|
82
|
-
|
|
82
|
+
messageVariant: 'Information',
|
|
83
83
|
header: 'Message header',
|
|
84
84
|
extendedMessage: 'Longer Message text can be placed here. Longer Message text can be placed here.',
|
|
85
85
|
minimal: false,
|
|
86
86
|
noIcon: false,
|
|
87
87
|
},
|
|
88
88
|
};
|
|
89
|
-
const Template = ({ modeVariant,
|
|
89
|
+
const Template = ({ modeVariant, messageVariant, header, extendedMessage, minimal, noIcon }) => formatHtmlPreview(`
|
|
90
90
|
<style>
|
|
91
91
|
.demo-wrapper {
|
|
92
92
|
width: 380px;
|
|
@@ -94,7 +94,7 @@ const Template = ({ modeVariant, messageType, header, extendedMessage, minimal,
|
|
|
94
94
|
</style>
|
|
95
95
|
<div class="demo-wrapper">
|
|
96
96
|
<tds-message
|
|
97
|
-
|
|
97
|
+
variant="${messageVariant.toLowerCase()}"
|
|
98
98
|
header="${header}"
|
|
99
99
|
${noIcon ? 'no-icon' : ''}
|
|
100
100
|
${minimal ? 'minimal' : ''}
|
|
@@ -224,7 +224,7 @@ slot[name=header]::slotted(*) {
|
|
|
224
224
|
position: fixed;
|
|
225
225
|
height: 100%;
|
|
226
226
|
width: 100%;
|
|
227
|
-
z-index:
|
|
227
|
+
z-index: 700;
|
|
228
228
|
background-color: var(--tds-modal-backdrop);
|
|
229
229
|
padding: 0 16px;
|
|
230
230
|
}
|
|
@@ -303,7 +303,7 @@ button.tds-modal-close {
|
|
|
303
303
|
position: fixed;
|
|
304
304
|
height: 100%;
|
|
305
305
|
width: 100%;
|
|
306
|
-
z-index:
|
|
306
|
+
z-index: 700;
|
|
307
307
|
background-color: var(--tds-modal-backdrop);
|
|
308
308
|
padding: 0 16px;
|
|
309
309
|
}
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
.tds-popover-canvas {
|
|
2
2
|
box-sizing: border-box;
|
|
3
|
+
display: inline-block;
|
|
3
4
|
color: var(--tds-popover-canvas-color);
|
|
4
5
|
background-color: var(--tds-popover-canvas-background);
|
|
5
6
|
box-shadow: 0 3px 3px rgba(0, 0, 0, 0.15), 0 -1px 1px rgba(0, 0, 0, 0.1);
|
|
6
7
|
border-radius: 4px;
|
|
7
|
-
z-index:
|
|
8
|
-
display: none;
|
|
8
|
+
z-index: 900;
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
.tds-popover-canvas * {
|
|
11
11
|
box-sizing: border-box;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
:host(.tds-popover-canvas-show) {
|
|
15
|
-
display: block;
|
|
16
12
|
}
|