@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
|
@@ -40,12 +40,17 @@
|
|
|
40
40
|
--tds-btn-secondary-border-color-disabled: rgb(0 0 0 / 38%);
|
|
41
41
|
--tds-btn-icon-secondary-color-focus: var(--tds-black);
|
|
42
42
|
--tds-btn-icon-secondary-fill-focus: var(--tds-black);
|
|
43
|
+
--tds-btn-icon-secondary-fill-active: var(--tds-black);
|
|
44
|
+
--tds-btn-icon-secondary-fill-active: var(--tds-black);
|
|
43
45
|
/* ICON */
|
|
44
46
|
--tds-btn-icon-secondary-fill: var(--tds-black);
|
|
45
47
|
--tds-btn-icon-secondary-color: var(--tds-black);
|
|
46
48
|
/* ICON HOVER */
|
|
47
49
|
--tds-btn-icon-secondary-fill-hover: var(--tds-grey-50);
|
|
48
50
|
--tds-btn-icon-secondary-color-hover: var(--tds-grey-50);
|
|
51
|
+
/* ICON HOVER */
|
|
52
|
+
--tds-btn-icon-secondary-fill-active: var(--tds-black);
|
|
53
|
+
--tds-btn-icon-secondary-color-active: var(--tds-black);
|
|
49
54
|
--tds-btn-ghost-background: transparent;
|
|
50
55
|
--tds-btn-ghost-color: var(--tds-black);
|
|
51
56
|
--tds-btn-ghost-border-color: transparent;
|
|
@@ -315,6 +320,12 @@ button.primary:active, button.primary.active {
|
|
|
315
320
|
color: var(--tds-btn-primary-color-active);
|
|
316
321
|
outline-color: var(--tds-btn-primary-outline-color-active);
|
|
317
322
|
}
|
|
323
|
+
button.primary:active:not(.disabled) ::slotted([slot=icon]), button.primary.active:not(.disabled) ::slotted([slot=icon]) {
|
|
324
|
+
fill: var(--tds-btn-icon-primary-fill-active);
|
|
325
|
+
color: var(--tds-btn-icon-primary-fill-active);
|
|
326
|
+
fill: var(--tds-btn-icon-primary-color-active);
|
|
327
|
+
color: var(--tds-btn-icon-primary-color-active);
|
|
328
|
+
}
|
|
318
329
|
button.primary.disabled, button.primary:disabled {
|
|
319
330
|
cursor: not-allowed;
|
|
320
331
|
background: var(--tds-btn-primary-background-disabled);
|
|
@@ -368,6 +379,12 @@ button.secondary:active, button.secondary.active {
|
|
|
368
379
|
color: var(--tds-btn-secondary-color-active);
|
|
369
380
|
outline-color: var(--tds-btn-secondary-outline-color-active);
|
|
370
381
|
}
|
|
382
|
+
button.secondary:active:not(.disabled) ::slotted([slot=icon]), button.secondary.active:not(.disabled) ::slotted([slot=icon]) {
|
|
383
|
+
fill: var(--tds-btn-icon-secondary-fill-active);
|
|
384
|
+
color: var(--tds-btn-icon-secondary-fill-active);
|
|
385
|
+
fill: var(--tds-btn-icon-secondary-color-active);
|
|
386
|
+
color: var(--tds-btn-icon-secondary-color-active);
|
|
387
|
+
}
|
|
371
388
|
button.secondary.disabled, button.secondary:disabled {
|
|
372
389
|
cursor: not-allowed;
|
|
373
390
|
background: var(--tds-btn-secondary-background-disabled);
|
|
@@ -421,6 +438,12 @@ button.ghost:active, button.ghost.active {
|
|
|
421
438
|
color: var(--tds-btn-ghost-color-active);
|
|
422
439
|
outline-color: var(--tds-btn-ghost-outline-color-active);
|
|
423
440
|
}
|
|
441
|
+
button.ghost:active:not(.disabled) ::slotted([slot=icon]), button.ghost.active:not(.disabled) ::slotted([slot=icon]) {
|
|
442
|
+
fill: var(--tds-btn-icon-ghost-fill-active);
|
|
443
|
+
color: var(--tds-btn-icon-ghost-fill-active);
|
|
444
|
+
fill: var(--tds-btn-icon-ghost-color-active);
|
|
445
|
+
color: var(--tds-btn-icon-ghost-color-active);
|
|
446
|
+
}
|
|
424
447
|
button.ghost.disabled, button.ghost:disabled {
|
|
425
448
|
cursor: not-allowed;
|
|
426
449
|
background: var(--tds-btn-ghost-background-disabled);
|
|
@@ -474,6 +497,12 @@ button.danger:active, button.danger.active {
|
|
|
474
497
|
color: var(--tds-btn-danger-color-active);
|
|
475
498
|
outline-color: var(--tds-btn-danger-outline-color-active);
|
|
476
499
|
}
|
|
500
|
+
button.danger:active:not(.disabled) ::slotted([slot=icon]), button.danger.active:not(.disabled) ::slotted([slot=icon]) {
|
|
501
|
+
fill: var(--tds-btn-icon-danger-fill-active);
|
|
502
|
+
color: var(--tds-btn-icon-danger-fill-active);
|
|
503
|
+
fill: var(--tds-btn-icon-danger-color-active);
|
|
504
|
+
color: var(--tds-btn-icon-danger-color-active);
|
|
505
|
+
}
|
|
477
506
|
button.danger.disabled, button.danger:disabled {
|
|
478
507
|
cursor: not-allowed;
|
|
479
508
|
background: var(--tds-btn-danger-background-disabled);
|
|
@@ -498,10 +527,10 @@ button.danger.disabled, button.danger:disabled {
|
|
|
498
527
|
height: var(--tds-spacing-element-16);
|
|
499
528
|
}
|
|
500
529
|
|
|
501
|
-
:host(tds-button[disabled]) {
|
|
530
|
+
:host(tds-button[disabled=true]) {
|
|
502
531
|
pointer-events: none;
|
|
503
532
|
}
|
|
504
|
-
:host(tds-button[disabled]) ::slotted([slot=icon]) {
|
|
533
|
+
:host(tds-button[disabled=true]) ::slotted([slot=icon]) {
|
|
505
534
|
pointer-events: none;
|
|
506
535
|
}
|
|
507
536
|
|
|
@@ -510,31 +539,21 @@ button.danger.disabled, button.danger:disabled {
|
|
|
510
539
|
justify-content: center;
|
|
511
540
|
}
|
|
512
541
|
|
|
513
|
-
|
|
514
|
-
padding: 11px;
|
|
515
|
-
}
|
|
516
|
-
:host(tds-button[only-icon]) .md {
|
|
517
|
-
padding: 13px;
|
|
518
|
-
}
|
|
519
|
-
:host(tds-button[only-icon]) .lg {
|
|
520
|
-
padding: 17px;
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
:host(tds-button:not([only-icon])) {
|
|
542
|
+
tds-button :not(.only-icon) {
|
|
524
543
|
display: inline-flex;
|
|
525
544
|
align-items: center;
|
|
526
545
|
}
|
|
527
|
-
|
|
546
|
+
tds-button :not(.only-icon).sm ::slotted([slot=icon]) {
|
|
528
547
|
margin-left: var(--tds-spacing-element-12);
|
|
529
548
|
width: var(--tds-spacing-element-16);
|
|
530
549
|
height: var(--tds-spacing-element-16);
|
|
531
550
|
}
|
|
532
|
-
|
|
551
|
+
tds-button :not(.only-icon).md ::slotted([slot=icon]) {
|
|
533
552
|
margin-left: var(--tds-spacing-element-16);
|
|
534
553
|
width: var(--tds-spacing-element-20);
|
|
535
554
|
height: var(--tds-spacing-element-20);
|
|
536
555
|
}
|
|
537
|
-
|
|
556
|
+
tds-button :not(.only-icon).lg ::slotted([slot=icon]) {
|
|
538
557
|
margin-left: var(--tds-spacing-element-20);
|
|
539
558
|
width: var(--tds-spacing-element-20);
|
|
540
559
|
height: var(--tds-spacing-element-20);
|
|
@@ -1,36 +1,43 @@
|
|
|
1
1
|
import { h, Host } from '@stencil/core';
|
|
2
2
|
import { hasSlot } from '../../utils/utils';
|
|
3
3
|
/**
|
|
4
|
+
* @slot label - Slot for the text injection. Serves as alternative to text prop.
|
|
4
5
|
* @slot icon - Slot used to display an Icon in the Button.
|
|
5
6
|
*/
|
|
6
7
|
export class TdsButton {
|
|
7
8
|
constructor() {
|
|
8
9
|
this.text = undefined;
|
|
9
|
-
this.type = '
|
|
10
|
+
this.type = 'button';
|
|
11
|
+
this.variant = 'primary';
|
|
10
12
|
this.size = 'lg';
|
|
11
13
|
this.disabled = false;
|
|
12
14
|
this.fullbleed = false;
|
|
13
15
|
this.modeVariant = null;
|
|
14
16
|
this.onlyIcon = false;
|
|
15
17
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
render() {
|
|
19
|
+
const hasLabelSlot = hasSlot('label', this.host);
|
|
20
|
+
const hasIconSlot = hasSlot('icon', this.host);
|
|
21
|
+
if (!this.text && !hasLabelSlot) {
|
|
18
22
|
this.onlyIcon = true;
|
|
19
|
-
this.host.setAttribute('only-icon', '');
|
|
20
23
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
return (h(Host, { class: `${this.modeVariant !== null ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("button", { type: this.type, disabled: this.disabled, class: {
|
|
25
|
+
'primary': this.variant === 'primary',
|
|
26
|
+
'secondary': this.variant === 'secondary',
|
|
27
|
+
'ghost': this.variant === 'ghost',
|
|
28
|
+
'danger': this.variant === 'danger',
|
|
29
|
+
'lg': this.size === 'lg',
|
|
30
|
+
'md': this.size === 'md',
|
|
31
|
+
'sm': this.size === 'sm',
|
|
32
|
+
'xs': this.size === 'xs',
|
|
33
|
+
'disabled': this.disabled,
|
|
34
|
+
'fullbleed': this.fullbleed,
|
|
35
|
+
'icon': hasIconSlot,
|
|
36
|
+
'only-icon': this.onlyIcon,
|
|
37
|
+
} }, this.text, hasLabelSlot && !this.onlyIcon && h("slot", { name: "label" }), hasIconSlot && h("slot", { name: "icon" }))));
|
|
31
38
|
}
|
|
32
39
|
static get is() { return "tds-button"; }
|
|
33
|
-
static get encapsulation() { return "
|
|
40
|
+
static get encapsulation() { return "scoped"; }
|
|
34
41
|
static get originalStyleUrls() {
|
|
35
42
|
return {
|
|
36
43
|
"$": ["button.scss"]
|
|
@@ -61,6 +68,24 @@ export class TdsButton {
|
|
|
61
68
|
"reflect": false
|
|
62
69
|
},
|
|
63
70
|
"type": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"mutable": false,
|
|
73
|
+
"complexType": {
|
|
74
|
+
"original": "'button' | 'submit' | 'reset'",
|
|
75
|
+
"resolved": "\"button\" | \"reset\" | \"submit\"",
|
|
76
|
+
"references": {}
|
|
77
|
+
},
|
|
78
|
+
"required": false,
|
|
79
|
+
"optional": false,
|
|
80
|
+
"docs": {
|
|
81
|
+
"tags": [],
|
|
82
|
+
"text": "Button's type"
|
|
83
|
+
},
|
|
84
|
+
"attribute": "type",
|
|
85
|
+
"reflect": false,
|
|
86
|
+
"defaultValue": "'button'"
|
|
87
|
+
},
|
|
88
|
+
"variant": {
|
|
64
89
|
"type": "string",
|
|
65
90
|
"mutable": false,
|
|
66
91
|
"complexType": {
|
|
@@ -72,9 +97,9 @@ export class TdsButton {
|
|
|
72
97
|
"optional": false,
|
|
73
98
|
"docs": {
|
|
74
99
|
"tags": [],
|
|
75
|
-
"text": "
|
|
100
|
+
"text": "Variation of Button's design"
|
|
76
101
|
},
|
|
77
|
-
"attribute": "
|
|
102
|
+
"attribute": "variant",
|
|
78
103
|
"reflect": false,
|
|
79
104
|
"defaultValue": "'primary'"
|
|
80
105
|
},
|
|
@@ -90,7 +115,7 @@ export class TdsButton {
|
|
|
90
115
|
"optional": false,
|
|
91
116
|
"docs": {
|
|
92
117
|
"tags": [],
|
|
93
|
-
"text": ""
|
|
118
|
+
"text": "Size of a Button"
|
|
94
119
|
},
|
|
95
120
|
"attribute": "size",
|
|
96
121
|
"reflect": false,
|
|
@@ -32,9 +32,9 @@ export default {
|
|
|
32
32
|
defaultValue: { summary: 'Inherit from parent' },
|
|
33
33
|
},
|
|
34
34
|
},
|
|
35
|
-
|
|
36
|
-
name: '
|
|
37
|
-
description: 'Four different Button
|
|
35
|
+
variant: {
|
|
36
|
+
name: 'Variant',
|
|
37
|
+
description: 'Four different Button variants to help the user to distinguish the level of importance of the task they represent.',
|
|
38
38
|
control: {
|
|
39
39
|
type: 'radio',
|
|
40
40
|
},
|
|
@@ -43,6 +43,17 @@ export default {
|
|
|
43
43
|
defaultValue: { summary: 'primary' },
|
|
44
44
|
},
|
|
45
45
|
},
|
|
46
|
+
type: {
|
|
47
|
+
name: 'Type',
|
|
48
|
+
description: 'Native types of button',
|
|
49
|
+
control: {
|
|
50
|
+
type: 'radio',
|
|
51
|
+
},
|
|
52
|
+
options: ['Button', 'Submit', 'Reset'],
|
|
53
|
+
table: {
|
|
54
|
+
defaultValue: { summary: 'button' },
|
|
55
|
+
},
|
|
56
|
+
},
|
|
46
57
|
size: {
|
|
47
58
|
name: 'Size',
|
|
48
59
|
description: 'Sets the size of the Button.',
|
|
@@ -106,7 +117,8 @@ export default {
|
|
|
106
117
|
},
|
|
107
118
|
args: {
|
|
108
119
|
modeVariant: 'Inherit from parent',
|
|
109
|
-
|
|
120
|
+
type: 'Button',
|
|
121
|
+
variant: 'Primary',
|
|
110
122
|
size: 'Large',
|
|
111
123
|
text: 'Button',
|
|
112
124
|
fullbleed: false,
|
|
@@ -115,8 +127,8 @@ export default {
|
|
|
115
127
|
disabled: false,
|
|
116
128
|
},
|
|
117
129
|
};
|
|
118
|
-
const WebComponentTemplate = ({ modeVariant,
|
|
119
|
-
const
|
|
130
|
+
const WebComponentTemplate = ({ modeVariant, type, variant, size, text = 'Button', fullbleed, onlyIcon, icon, disabled, }) => {
|
|
131
|
+
const variantLookUp = {
|
|
120
132
|
Primary: 'primary',
|
|
121
133
|
Secondary: 'secondary',
|
|
122
134
|
Ghost: 'ghost',
|
|
@@ -132,6 +144,11 @@ const WebComponentTemplate = ({ modeVariant, btnType, size, text = 'Button', ful
|
|
|
132
144
|
Primary: 'primary',
|
|
133
145
|
Secondary: 'secondary',
|
|
134
146
|
};
|
|
147
|
+
const typeLookup = {
|
|
148
|
+
Button: 'button',
|
|
149
|
+
Submit: 'submit',
|
|
150
|
+
Reset: 'reset',
|
|
151
|
+
};
|
|
135
152
|
return formatHtmlPreview(`
|
|
136
153
|
<style>
|
|
137
154
|
/* demo-wrapper is for demonstration purposes only*/
|
|
@@ -142,7 +159,8 @@ const WebComponentTemplate = ({ modeVariant, btnType, size, text = 'Button', ful
|
|
|
142
159
|
|
|
143
160
|
<div class="demo-wrapper">
|
|
144
161
|
<tds-button
|
|
145
|
-
type=
|
|
162
|
+
type='${typeLookup[type]}'
|
|
163
|
+
variant="${variantLookUp[variant]}"
|
|
146
164
|
size="${sizeLookUp[size]}" ${disabled ? 'disabled' : ''} ${fullbleed ? 'fullbleed' : ''}
|
|
147
165
|
${!onlyIcon ? `text="${text}"` : ''}
|
|
148
166
|
${modeVariant !== 'Inherit from parent'
|
|
@@ -153,7 +171,7 @@ const WebComponentTemplate = ({ modeVariant, btnType, size, text = 'Button', ful
|
|
|
153
171
|
? `
|
|
154
172
|
<tds-icon slot="icon" class='tds-btn-icon ' size='${sizeLookUp[size] === 'sm' ? '16px' : '20px'}' name='${icon}'></tds-icon>
|
|
155
173
|
`
|
|
156
|
-
: ''}
|
|
174
|
+
: ''}
|
|
157
175
|
</tds-button>
|
|
158
176
|
</div>
|
|
159
177
|
<script>
|
|
@@ -25,7 +25,7 @@ export class TdsCard {
|
|
|
25
25
|
const usesBodySlot = hasSlot('body', this.host);
|
|
26
26
|
const usesBodyImageSlot = hasSlot('body-image', this.host);
|
|
27
27
|
const usesBottomSlot = hasSlot('bottom', this.host);
|
|
28
|
-
return (h("div", null, this.imagePlacement === 'below-header' && this.getCardHeader(), h("div", { class: `card-body` }, usesBodyImageSlot && h("slot", { name: "body-image" }), this.bodyImg && h("img", { class:
|
|
28
|
+
return (h("div", null, this.imagePlacement === 'below-header' && this.getCardHeader(), h("div", { class: `card-body` }, usesBodyImageSlot && h("slot", { name: "body-image" }), this.bodyImg && h("img", { class: "card-body-img", src: this.bodyImg, alt: this.bodyImgAlt }), this.imagePlacement === 'above-header' && this.getCardHeader(), this.bodyDivider && h("tds-divider", null), usesBodySlot && h("slot", { name: "body" })), usesBottomSlot && h("slot", { name: `bottom` })));
|
|
29
29
|
};
|
|
30
30
|
this.modeVariant = null;
|
|
31
31
|
this.imagePlacement = 'below-header';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import readme from './readme.md';
|
|
2
2
|
import CardPlaceholder from '../../stories/assets/image/card-placeholder.png';
|
|
3
|
+
import CardBodyImage from '../../stories/assets/image/card-img.png';
|
|
3
4
|
import { formatHtmlPreview } from '../../utils/utils';
|
|
4
5
|
import { ComponentsFolder } from '../../utils/constants';
|
|
5
6
|
export default {
|
|
@@ -133,7 +134,7 @@ const Template = ({ modeVariant, header, subheader, thumbnail, imagePlacement, b
|
|
|
133
134
|
${header ? `header="${header}"` : ''}
|
|
134
135
|
image-placement="${imagePlacement.toLowerCase()}-header"
|
|
135
136
|
${subheader ? `subheader="${subheader}"` : ''}
|
|
136
|
-
${bodyImg ? `body-img="${
|
|
137
|
+
${bodyImg ? `body-img="${CardBodyImage}"` : ''}
|
|
137
138
|
${clickable ? 'clickable' : ''}
|
|
138
139
|
${bodyDivider ? 'body-divider' : ''}
|
|
139
140
|
>
|
|
@@ -3,7 +3,7 @@ import { generateUniqueId, hasSlot } from '../../utils/utils';
|
|
|
3
3
|
/**
|
|
4
4
|
* @slot prefix - Slot for the prefix icon.
|
|
5
5
|
* @slot label - Slot for the label text.
|
|
6
|
-
* @slot suffix- Slot for the suffix icon.
|
|
6
|
+
* @slot suffix - Slot for the suffix icon.
|
|
7
7
|
*/
|
|
8
8
|
export class TdsChip {
|
|
9
9
|
constructor() {
|
|
@@ -49,7 +49,7 @@ export class TdsChip {
|
|
|
49
49
|
'lg': this.size === 'lg',
|
|
50
50
|
'prefix': hasPrefixSlot,
|
|
51
51
|
'suffix': hasSuffixSlot,
|
|
52
|
-
} }, h("input", Object.assign({ type: this.type, id: this.chipId }, inputAttributes)), h("label", { htmlFor: this.chipId }, hasPrefixSlot && h("slot", { name: "prefix" }), hasLabelSlot && h("slot", { name: "label" }), hasSuffixSlot && h("slot", { name: "suffix" }))))));
|
|
52
|
+
} }, h("input", Object.assign({ type: this.type, id: this.chipId }, inputAttributes)), h("label", { onClick: (event) => event.stopPropagation(), htmlFor: this.chipId }, hasPrefixSlot && h("slot", { name: "prefix" }), hasLabelSlot && h("slot", { name: "label" }), hasSuffixSlot && h("slot", { name: "suffix" }))))));
|
|
53
53
|
}
|
|
54
54
|
static get is() { return "tds-chip"; }
|
|
55
55
|
static get encapsulation() { return "scoped"; }
|
|
@@ -22,6 +22,8 @@ export class TdsDatetime {
|
|
|
22
22
|
};
|
|
23
23
|
this.type = 'datetime-local';
|
|
24
24
|
this.value = '';
|
|
25
|
+
this.min = undefined;
|
|
26
|
+
this.max = undefined;
|
|
25
27
|
this.defaultValue = 'none';
|
|
26
28
|
this.disabled = false;
|
|
27
29
|
this.size = 'lg';
|
|
@@ -85,7 +87,7 @@ export class TdsDatetime {
|
|
|
85
87
|
? `tds-form-datetime-${this.state}`
|
|
86
88
|
: ''}
|
|
87
89
|
${this.modeVariant !== null ? `tds-mode-variant-${this.modeVariant}` : ''}
|
|
88
|
-
` }, this.label && (h("label", { htmlFor: this.name, class: "tds-datetime-label" }, this.label)), h("div", { onClick: (e) => this.handleFocusClick(e), class: "tds-datetime-container" }, h("div", { class: "tds-datetime-input-container" }, h("input", { ref: (inputEl) => (this.textInput = inputEl), class: className, type: this.type, disabled: this.disabled, value: this.value, autofocus: this.autofocus, name: this.name, onInput: (e) => this.handleInput(e), onBlur: (e) => this.handleBlur(e), onChange: (e) => this.handleChange(e) }), h("div", { class: "datetime-icon icon-datetime-local" }, h("tds-icon", { size: "20px", name: "calendar" })), h("div", { class: "datetime-icon icon-time" }, h("tds-icon", { size: "20px", name: "clock" }))), h("div", { class: "tds-datetime-bar" })), h("div", { class: "tds-datetime-helper" }, this.helper && (h("div", { class: "tds-helper" }, this.state === 'error' && h("tds-icon", { name: "error", size: "16px" }), this.helper)))));
|
|
90
|
+
` }, this.label && (h("label", { htmlFor: this.name, class: "tds-datetime-label" }, this.label)), h("div", { onClick: (e) => this.handleFocusClick(e), class: "tds-datetime-container" }, h("div", { class: "tds-datetime-input-container" }, h("input", { ref: (inputEl) => (this.textInput = inputEl), class: className, type: this.type, disabled: this.disabled, value: this.value, min: this.min, max: this.max, autofocus: this.autofocus, name: this.name, onInput: (e) => this.handleInput(e), onBlur: (e) => this.handleBlur(e), onChange: (e) => this.handleChange(e) }), h("div", { class: "datetime-icon icon-datetime-local" }, h("tds-icon", { size: "20px", name: "calendar" })), h("div", { class: "datetime-icon icon-time" }, h("tds-icon", { size: "20px", name: "clock" }))), h("div", { class: "tds-datetime-bar" })), h("div", { class: "tds-datetime-helper" }, this.helper && (h("div", { class: "tds-helper" }, this.state === 'error' && h("tds-icon", { name: "error", size: "16px" }), this.helper)))));
|
|
89
91
|
}
|
|
90
92
|
static get is() { return "tds-datetime"; }
|
|
91
93
|
static get encapsulation() { return "scoped"; }
|
|
@@ -113,7 +115,7 @@ export class TdsDatetime {
|
|
|
113
115
|
"optional": false,
|
|
114
116
|
"docs": {
|
|
115
117
|
"tags": [],
|
|
116
|
-
"text": "
|
|
118
|
+
"text": "Sets input type"
|
|
117
119
|
},
|
|
118
120
|
"attribute": "type",
|
|
119
121
|
"reflect": true,
|
|
@@ -137,6 +139,40 @@ export class TdsDatetime {
|
|
|
137
139
|
"reflect": true,
|
|
138
140
|
"defaultValue": "''"
|
|
139
141
|
},
|
|
142
|
+
"min": {
|
|
143
|
+
"type": "string",
|
|
144
|
+
"mutable": false,
|
|
145
|
+
"complexType": {
|
|
146
|
+
"original": "string",
|
|
147
|
+
"resolved": "string",
|
|
148
|
+
"references": {}
|
|
149
|
+
},
|
|
150
|
+
"required": false,
|
|
151
|
+
"optional": false,
|
|
152
|
+
"docs": {
|
|
153
|
+
"tags": [],
|
|
154
|
+
"text": "Sets min value. Example for different types: datetime=\"2023-01-31T00:00\" date=\"2023-01-01\" time=\"15:00\""
|
|
155
|
+
},
|
|
156
|
+
"attribute": "min",
|
|
157
|
+
"reflect": false
|
|
158
|
+
},
|
|
159
|
+
"max": {
|
|
160
|
+
"type": "string",
|
|
161
|
+
"mutable": false,
|
|
162
|
+
"complexType": {
|
|
163
|
+
"original": "string",
|
|
164
|
+
"resolved": "string",
|
|
165
|
+
"references": {}
|
|
166
|
+
},
|
|
167
|
+
"required": false,
|
|
168
|
+
"optional": false,
|
|
169
|
+
"docs": {
|
|
170
|
+
"tags": [],
|
|
171
|
+
"text": "Sets max value. Example for different types: datetime=\"2023-01-31T00:00\" date=\"2023-01-01\" time=\"15:00\""
|
|
172
|
+
},
|
|
173
|
+
"attribute": "max",
|
|
174
|
+
"reflect": false
|
|
175
|
+
},
|
|
140
176
|
"defaultValue": {
|
|
141
177
|
"type": "string",
|
|
142
178
|
"mutable": false,
|
|
@@ -64,7 +64,7 @@ export default {
|
|
|
64
64
|
},
|
|
65
65
|
defaultValue: {
|
|
66
66
|
name: 'Default value',
|
|
67
|
-
description: 'Default value of the component. Format for time: HH-MM. Format for date: YY-MM-DD. Format for date-time: YY-MM-DDTHH-MM.',
|
|
67
|
+
description: 'Sets max value. Default value of the component. Format for time: HH-MM. Format for date: YY-MM-DD. Format for date-time: YY-MM-DDTHH-MM.',
|
|
68
68
|
control: {
|
|
69
69
|
type: 'radio',
|
|
70
70
|
},
|
|
@@ -73,6 +73,26 @@ export default {
|
|
|
73
73
|
defaultValue: { summary: 'none' },
|
|
74
74
|
},
|
|
75
75
|
},
|
|
76
|
+
minValue: {
|
|
77
|
+
description: 'Sets min value. Example for different types: datetime="2023-01-31T00:00" date="2023-01-01" time="15:00"',
|
|
78
|
+
name: 'Min value',
|
|
79
|
+
control: {
|
|
80
|
+
type: 'text',
|
|
81
|
+
},
|
|
82
|
+
table: {
|
|
83
|
+
defaultValue: { summary: undefined },
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
maxValue: {
|
|
87
|
+
description: 'Example for different types: datetime="2023-01-31T00:00" date="2023-01-01" time="15:00"',
|
|
88
|
+
name: 'Max value',
|
|
89
|
+
control: {
|
|
90
|
+
type: 'text',
|
|
91
|
+
},
|
|
92
|
+
table: {
|
|
93
|
+
defaultValue: { summary: undefined },
|
|
94
|
+
},
|
|
95
|
+
},
|
|
76
96
|
noMinWidth: {
|
|
77
97
|
name: 'No minimum width',
|
|
78
98
|
description: 'Enables component to shrink below 208px which is the default width.',
|
|
@@ -114,13 +134,15 @@ export default {
|
|
|
114
134
|
type: 'Datetime',
|
|
115
135
|
size: 'Large',
|
|
116
136
|
defaultValue: 'None',
|
|
137
|
+
minValue: '',
|
|
138
|
+
maxValue: '',
|
|
117
139
|
noMinWidth: false,
|
|
118
140
|
label: 'Label text',
|
|
119
141
|
helper: 'Helper text',
|
|
120
142
|
disabled: false,
|
|
121
143
|
},
|
|
122
144
|
};
|
|
123
|
-
const datetimeTemplate = ({ modeVariant, state, type, size, defaultValue, noMinWidth, label, helper, disabled, }) => {
|
|
145
|
+
const datetimeTemplate = ({ modeVariant, state, type, size, defaultValue, minValue, maxValue, noMinWidth, label, helper, disabled, }) => {
|
|
124
146
|
const typeLookup = {
|
|
125
147
|
Datetime: 'datetime-local',
|
|
126
148
|
Date: 'date',
|
|
@@ -166,7 +188,9 @@ const datetimeTemplate = ({ modeVariant, state, type, size, defaultValue, noMinW
|
|
|
166
188
|
id="datetime"
|
|
167
189
|
${defaultValue !== 'None' ? `default-value="${getDefaultValue(defaultValue, type)}"` : ''}
|
|
168
190
|
${modeVariant !== 'Inherit from parent' ? `mode-variant="${modeVariant.toLowerCase()}"` : ''}
|
|
169
|
-
type="${typeLookup[type]}"
|
|
191
|
+
type="${typeLookup[type]}"
|
|
192
|
+
${minValue ? `min=${minValue}` : ''}
|
|
193
|
+
${maxValue ? `min=${maxValue}` : ''}
|
|
170
194
|
size="${sizeLookup[size]}"
|
|
171
195
|
state="${stateLookup[state]}"
|
|
172
196
|
${disabled ? 'disabled' : ''}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { Host, h } from '@stencil/core';
|
|
2
|
+
/**
|
|
3
|
+
* @slot <default> - <b>Unnamed slot.</b> For the option label text.
|
|
4
|
+
*/
|
|
2
5
|
export class TdsDropdownOption {
|
|
3
6
|
constructor() {
|
|
4
|
-
this.
|
|
7
|
+
this.componentWillRender = () => {
|
|
5
8
|
this.parentElement =
|
|
6
9
|
this.host.parentElement.tagName === 'TDS-DROPDOWN'
|
|
7
10
|
? this.host.parentElement
|