@scania/tegel 0.0.9 → 0.0.10
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/README.md +3 -0
- package/dist/cjs/index-ee36ffa1.js +8 -16
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{popper-9def2535.js → popper-d7adcfc6.js} +6 -12
- package/dist/cjs/tds-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-badge.cjs.entry.js +3 -3
- package/dist/cjs/tds-banner.cjs.entry.js +10 -10
- package/dist/cjs/tds-breadcrumb.cjs.entry.js +2 -4
- package/dist/cjs/tds-breadcrumbs.cjs.entry.js +0 -3
- package/dist/cjs/tds-button.cjs.entry.js +4 -11
- package/dist/cjs/tds-card.cjs.entry.js +19 -23
- package/dist/cjs/tds-checkbox.cjs.entry.js +2 -1
- package/dist/cjs/tds-chip.cjs.entry.js +14 -3
- package/dist/cjs/tds-core-header-item_2.cjs.entry.js +1 -1
- package/dist/cjs/{tds-dropdown-option-v2.cjs.entry.js → tds-dropdown-option.cjs.entry.js} +5 -5
- package/dist/cjs/{tds-dropdown-v2.cjs.entry.js → tds-dropdown.cjs.entry.js} +19 -19
- package/dist/cjs/tds-folder-tab.cjs.entry.js +2 -3
- package/dist/cjs/tds-folder-tabs.cjs.entry.js +5 -5
- package/dist/cjs/tds-footer-group.cjs.entry.js +3 -3
- package/dist/cjs/tds-footer-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-footer.cjs.entry.js +6 -6
- package/dist/cjs/tds-header-cell.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-dropdown-list-user.cjs.entry.js +4 -4
- package/dist/cjs/tds-header-dropdown-list.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-dropdown.cjs.entry.js +4 -3
- 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 +3 -2
- package/dist/cjs/tds-header-launcher-grid.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-list-title.cjs.entry.js +3 -2
- package/dist/cjs/tds-header-launcher-list.cjs.entry.js +2 -1
- 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-inline-tab.cjs.entry.js +1 -1
- package/dist/cjs/tds-inline-tabs.cjs.entry.js +5 -5
- package/dist/cjs/tds-link.cjs.entry.js +1 -1
- package/dist/cjs/tds-message.cjs.entry.js +4 -4
- package/dist/cjs/tds-modal.cjs.entry.js +13 -5
- package/dist/cjs/tds-navigation-tab.cjs.entry.js +1 -1
- package/dist/cjs/tds-navigation-tabs.cjs.entry.js +5 -5
- package/dist/cjs/tds-popover-canvas.cjs.entry.js +1 -1
- package/dist/cjs/tds-popover-menu.cjs.entry.js +1 -1
- package/dist/cjs/tds-radio-button.cjs.entry.js +3 -2
- package/dist/cjs/tds-side-menu-close-button.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu.cjs.entry.js +2 -2
- package/dist/cjs/tds-slider.cjs.entry.js +12 -15
- package/dist/cjs/tds-stepper.cjs.entry.js +3 -2
- package/dist/cjs/tds-table-body.cjs.entry.js +4 -51
- package/dist/cjs/tds-table-footer.cjs.entry.js +47 -39
- package/dist/cjs/tds-table-toolbar.cjs.entry.js +2 -2
- package/dist/cjs/tds-table.cjs.entry.js +2 -1
- package/dist/cjs/tds-text-field.cjs.entry.js +6 -2
- package/dist/cjs/tds-toast.cjs.entry.js +11 -26
- package/dist/cjs/tds-toggle.cjs.entry.js +2 -1
- package/dist/cjs/tds-tooltip.cjs.entry.js +6 -2
- package/dist/cjs/tegel.cjs.js +1 -1
- package/dist/cjs/{utils-2beb1aa0.js → utils-41de5fb2.js} +32 -12
- package/dist/collection/collection-manifest.json +0 -3
- package/dist/collection/components/accordion/accordion-item/accordion-item.js +4 -1
- package/dist/collection/components/accordion/accordion.stories.js +100 -0
- package/dist/collection/components/badge/badge.js +4 -4
- package/dist/collection/components/badge/badge.stories.js +106 -0
- package/dist/collection/components/banner/banner.css +12 -9
- package/dist/collection/components/banner/banner.js +33 -17
- package/dist/collection/components/banner/banner.stories.js +107 -0
- package/dist/collection/components/block/block.stories.js +49 -0
- package/dist/collection/components/breadcrumbs/breadcrumb/breadcrumb.css +4 -4
- package/dist/collection/components/breadcrumbs/breadcrumb/breadcrumb.js +1 -21
- package/dist/collection/components/breadcrumbs/breadcrumbs.js +0 -3
- package/dist/collection/components/breadcrumbs/breadcrumbs.stories.js +36 -0
- package/dist/collection/components/button/button.css +16 -0
- package/dist/collection/components/button/button.js +7 -12
- package/dist/collection/components/button/button.stories.js +167 -0
- package/dist/collection/components/card/card.css +18 -17
- package/dist/collection/components/card/card.js +32 -68
- package/dist/collection/components/card/card.stories.js +162 -0
- package/dist/collection/components/checkbox/checkbox.js +6 -2
- package/dist/collection/components/checkbox/checkbox.stories.js +80 -0
- package/dist/collection/components/chip/chip.css +23 -8
- package/dist/collection/components/chip/chip.js +19 -3
- package/dist/collection/components/chip/chip.stories.js +230 -0
- package/dist/collection/components/datetime/datetime.stories.js +195 -0
- package/dist/collection/components/divider/divider.stories.js +62 -0
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +142 -116
- package/dist/collection/components/dropdown/dropdown.css +212 -386
- package/dist/collection/components/dropdown/dropdown.js +472 -329
- package/dist/collection/components/dropdown/dropdown.stories.js +268 -0
- package/dist/collection/components/footer/footer-group/footer-group.css +3 -3
- package/dist/collection/components/footer/footer-group/footer-group.js +2 -2
- package/dist/collection/components/footer/footer-item/footer-item.css +16 -8
- package/dist/collection/components/footer/footer.css +8 -12
- package/dist/collection/components/footer/footer.js +10 -10
- package/dist/collection/components/footer/footer.stories.js +145 -0
- package/dist/collection/components/header/header-dropdown/header-dropdown.js +10 -5
- package/dist/collection/components/header/header-dropdown-list-user/header-dropdown-list-user.css +1 -1
- package/dist/collection/components/header/header-dropdown-list-user/header-dropdown-list-user.js +13 -9
- package/dist/collection/components/header/header-hamburger/header-hamburger.css +0 -1
- package/dist/collection/components/header/header-launcher/header-launcher.js +2 -2
- package/dist/collection/components/header/header-launcher-grid-title/header-launcher-grid-title.js +3 -2
- package/dist/collection/components/header/header-launcher-list/header-launcher-list.js +2 -1
- package/dist/collection/components/header/header-launcher-list-title/header-launcher-list-title.js +3 -2
- package/dist/collection/components/header/header.css +1 -1
- package/dist/collection/components/header/header.js +5 -0
- package/dist/collection/components/header/header.stories.js +80 -0
- package/dist/collection/components/icon/icon.stories.js +48 -0
- package/dist/collection/components/link/link.css +16 -13
- package/dist/collection/components/link/link.js +1 -0
- package/dist/collection/components/link/link.stories.js +57 -0
- package/dist/collection/components/message/message.css +16 -16
- package/dist/collection/components/message/message.js +6 -3
- package/dist/collection/components/message/message.stories.js +110 -0
- package/dist/collection/components/modal/modal.css +19 -33
- package/dist/collection/components/modal/modal.js +36 -6
- package/dist/collection/components/modal/modal.stories.js +109 -0
- package/dist/collection/components/popover-canvas/popover-canvas.js +2 -2
- package/dist/collection/components/popover-canvas/popover-canvas.stories.js +92 -0
- package/dist/collection/components/popover-menu/popover-menu.js +2 -2
- package/dist/collection/components/popover-menu/popover-menu.stories.js +140 -0
- package/dist/collection/components/radio-button/radio-button.css +1 -1
- package/dist/collection/components/radio-button/radio-button.js +6 -2
- package/dist/collection/components/radio-button/radio-button.stories.js +91 -0
- package/dist/collection/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.js +3 -0
- package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.css +1 -1
- package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.js +5 -0
- package/dist/collection/components/side-menu/side-menu-dropdown-list/side-menu-dropdown-list.js +3 -0
- package/dist/collection/components/side-menu/side-menu-dropdown-list-item/side-menu-dropdown-list-item.js +3 -0
- package/dist/collection/components/side-menu/side-menu-item/side-menu-item.css +1 -1
- package/dist/collection/components/side-menu/side-menu-item/side-menu-item.js +3 -0
- package/dist/collection/components/side-menu/side-menu-user/side-menu-user.js +3 -0
- package/dist/collection/components/side-menu/side-menu-user-image/side-menu-user-image.js +5 -0
- package/dist/collection/components/side-menu/side-menu.css +6 -5
- package/dist/collection/components/side-menu/side-menu.js +11 -3
- package/dist/collection/components/side-menu/side-menu.stories.js +215 -0
- package/dist/collection/components/slider/slider.js +13 -16
- package/dist/collection/components/slider/slider.stories.js +243 -0
- package/dist/collection/components/spinner/spinner.stories.js +61 -0
- package/dist/collection/components/stepper/step/step.js +3 -0
- package/dist/collection/components/stepper/stepper.css +3 -0
- package/dist/collection/components/stepper/stepper.js +4 -3
- package/dist/collection/components/stepper/stepper.stories.js +95 -0
- package/dist/collection/components/table/table/table.js +4 -3
- package/dist/collection/components/table/table-body/table-body.js +15 -60
- package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +3 -0
- package/dist/collection/components/table/table-component-basic.stories.js +184 -0
- package/dist/collection/components/table/table-component-batch-actions.stories.js +201 -0
- package/dist/collection/components/table/table-component-bodydata.stories.js +101 -0
- package/dist/collection/components/table/table-component-custom-width.stories.js +174 -0
- package/dist/collection/components/table/table-component-event-listeners.stories.js +193 -0
- package/dist/collection/components/table/table-component-expandable-rows.stories.js +160 -0
- package/dist/collection/components/table/table-component-filtering.stories.js +210 -0
- package/dist/collection/components/table/table-component-multiselect.stories.js +230 -0
- package/dist/collection/components/table/table-component-pagination.stories.js +215 -0
- package/dist/collection/components/table/table-component-sorting.stories.js +238 -0
- package/dist/collection/components/table/table-footer/table-footer.js +65 -54
- package/dist/collection/components/table/table-header-cell/table-header-cell.css +1 -0
- package/dist/collection/components/table/table-toolbar/table-toolbar.css +2 -1
- package/dist/collection/components/table/table-toolbar/table-toolbar.js +4 -1
- package/dist/collection/components/table/table.filtering.spec.js +0 -6
- package/dist/collection/components/table/table.spec.js +0 -6
- package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.css +10 -11
- package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.js +1 -2
- package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +5 -5
- package/dist/collection/components/tabs/folder-tabs/folder-tabs.stories.js +105 -0
- package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.css +13 -2
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +5 -5
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.stories.js +99 -0
- package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.css +13 -2
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +5 -5
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.stories.js +101 -0
- package/dist/collection/components/text-field/text-field.js +10 -2
- package/dist/collection/components/text-field/text-field.stories.js +247 -0
- package/dist/collection/components/textarea/textarea.stories.js +188 -0
- package/dist/collection/components/toast/toast.css +32 -25
- package/dist/collection/components/toast/toast.js +17 -33
- package/dist/collection/components/toast/toast.stories.js +79 -0
- package/dist/collection/components/toggle/toggle.js +6 -2
- package/dist/collection/components/toggle/toggle.stories.js +95 -0
- package/dist/collection/components/tooltip/tooltip.js +27 -3
- package/dist/collection/components/tooltip/tooltip.stories.js +128 -0
- package/dist/collection/stories/Installation/installation.stories.js +222 -0
- package/dist/collection/stories/announcements/announce-tegel.stories.js +262 -0
- package/dist/collection/stories/announcements/prefix-change.stories.js +93 -0
- package/dist/collection/stories/foundations/color/color-brand.stories.js +38 -0
- package/dist/collection/stories/foundations/color/color-scales.stories.js +71 -0
- package/dist/collection/stories/foundations/color/color-semantic.stories.js +40 -0
- package/dist/collection/stories/foundations/grid/grid.stories.js +386 -0
- package/dist/collection/stories/foundations/spacing/spacing-element.stories.js +100 -0
- package/dist/collection/stories/foundations/spacing/spacing-layout.stories.js +94 -0
- package/dist/collection/stories/foundations/typography/typography-body.stories.js +16 -0
- package/dist/collection/stories/foundations/typography/typography-detail.stories.js +17 -0
- package/dist/collection/stories/foundations/typography/typography-headline.stories.js +39 -0
- package/dist/collection/stories/foundations/typography/typography-paragraph.stories.js +12 -0
- package/dist/collection/stories/patterns/navigation/navigation-basic.stories.js +85 -0
- package/dist/collection/stories/patterns/navigation/navigation-fewitems.stories.js +259 -0
- package/dist/collection/stories/patterns/navigation/navigation-manyitems.stories.js +246 -0
- package/dist/collection/stories/patterns/navigation/navigation-user-menu.stories.js +140 -0
- package/dist/collection/stories/tegel.stories.js +293 -0
- package/dist/collection/stories/utility/color/background-color.stories.js +96 -0
- package/dist/collection/stories/utility/color/text-color.stories.js +94 -0
- package/dist/collection/utils/utils.js +30 -11
- package/dist/components/checkbox.js +2 -1
- package/dist/components/header-dropdown-list.js +1 -1
- package/dist/components/header-item.js +1 -1
- package/dist/components/popper.js +6 -12
- package/dist/components/side-menu-item.js +1 -1
- package/dist/components/tds-accordion-item.js +1 -1
- package/dist/components/tds-badge.js +4 -4
- package/dist/components/tds-banner.js +12 -13
- package/dist/components/tds-breadcrumb.js +3 -6
- package/dist/components/tds-breadcrumbs.js +0 -3
- package/dist/components/tds-button.js +5 -13
- package/dist/components/tds-card.js +21 -29
- package/dist/components/tds-chip.js +14 -3
- package/dist/components/tds-dropdown-option.js +121 -1
- package/dist/components/tds-dropdown.js +318 -1
- package/dist/components/tds-folder-tab.js +2 -3
- package/dist/components/tds-folder-tabs.js +5 -5
- package/dist/components/tds-footer-group.js +3 -3
- package/dist/components/tds-footer-item.js +1 -1
- package/dist/components/tds-footer.js +7 -8
- package/dist/components/tds-header-cell.js +1 -1
- package/dist/components/tds-header-dropdown-list-user.js +6 -6
- package/dist/components/tds-header-dropdown.js +5 -4
- package/dist/components/tds-header-launcher-grid-title.js +3 -2
- package/dist/components/tds-header-launcher-grid.js +1 -1
- package/dist/components/tds-header-launcher-list-title.js +3 -2
- package/dist/components/tds-header-launcher-list.js +2 -1
- package/dist/components/tds-header-launcher.js +2 -2
- package/dist/components/tds-inline-tab.js +1 -1
- package/dist/components/tds-inline-tabs.js +5 -5
- package/dist/components/tds-link.js +3 -2
- package/dist/components/tds-message.js +4 -4
- package/dist/components/tds-modal.js +14 -5
- package/dist/components/tds-navigation-tab.js +1 -1
- package/dist/components/tds-navigation-tabs.js +5 -5
- package/dist/components/tds-radio-button.js +3 -2
- package/dist/components/tds-side-menu-dropdown.js +1 -1
- package/dist/components/tds-side-menu.js +2 -2
- package/dist/components/tds-slider.js +12 -15
- package/dist/components/tds-stepper.js +3 -2
- package/dist/components/tds-table-body.js +5 -53
- package/dist/components/tds-table-footer.js +50 -42
- package/dist/components/tds-table-toolbar.js +9 -3
- package/dist/components/tds-table.js +2 -1
- package/dist/components/tds-text-field.js +6 -2
- package/dist/components/tds-toast.js +12 -29
- package/dist/components/tds-toggle.js +2 -1
- package/dist/components/tds-tooltip.js +7 -2
- package/dist/components/utils.js +31 -12
- package/dist/esm/index-23ee700b.js +8 -16
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{popper-bfa25c7f.js → popper-15e448b4.js} +6 -12
- package/dist/esm/tds-accordion-item.entry.js +1 -1
- package/dist/esm/tds-badge.entry.js +3 -3
- package/dist/esm/tds-banner.entry.js +10 -10
- package/dist/esm/tds-breadcrumb.entry.js +2 -4
- package/dist/esm/tds-breadcrumbs.entry.js +0 -3
- package/dist/esm/tds-button.entry.js +4 -11
- package/dist/esm/tds-card.entry.js +19 -23
- package/dist/esm/tds-checkbox.entry.js +2 -1
- package/dist/esm/tds-chip.entry.js +15 -4
- package/dist/esm/tds-core-header-item_2.entry.js +1 -1
- package/dist/esm/{tds-dropdown-option-v2.entry.js → tds-dropdown-option.entry.js} +5 -5
- package/dist/esm/{tds-dropdown-v2.entry.js → tds-dropdown.entry.js} +19 -19
- package/dist/esm/tds-folder-tab.entry.js +2 -3
- package/dist/esm/tds-folder-tabs.entry.js +5 -5
- package/dist/esm/tds-footer-group.entry.js +3 -3
- package/dist/esm/tds-footer-item.entry.js +1 -1
- package/dist/esm/tds-footer.entry.js +6 -6
- package/dist/esm/tds-header-cell.entry.js +1 -1
- package/dist/esm/tds-header-dropdown-list-user.entry.js +4 -4
- package/dist/esm/tds-header-dropdown-list.entry.js +1 -1
- package/dist/esm/tds-header-dropdown.entry.js +4 -3
- 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 +3 -2
- package/dist/esm/tds-header-launcher-grid.entry.js +1 -1
- package/dist/esm/tds-header-launcher-list-title.entry.js +3 -2
- package/dist/esm/tds-header-launcher-list.entry.js +2 -1
- package/dist/esm/tds-header-launcher.entry.js +2 -2
- package/dist/esm/tds-header.entry.js +1 -1
- package/dist/esm/tds-inline-tab.entry.js +1 -1
- package/dist/esm/tds-inline-tabs.entry.js +5 -5
- package/dist/esm/tds-link.entry.js +1 -1
- package/dist/esm/tds-message.entry.js +4 -4
- package/dist/esm/tds-modal.entry.js +13 -5
- package/dist/esm/tds-navigation-tab.entry.js +1 -1
- package/dist/esm/tds-navigation-tabs.entry.js +5 -5
- package/dist/esm/tds-popover-canvas.entry.js +1 -1
- package/dist/esm/tds-popover-menu.entry.js +1 -1
- package/dist/esm/tds-radio-button.entry.js +3 -2
- package/dist/esm/tds-side-menu-close-button.entry.js +1 -1
- package/dist/esm/tds-side-menu-dropdown.entry.js +1 -1
- package/dist/esm/tds-side-menu-item.entry.js +1 -1
- package/dist/esm/tds-side-menu.entry.js +2 -2
- package/dist/esm/tds-slider.entry.js +12 -15
- package/dist/esm/tds-stepper.entry.js +3 -2
- package/dist/esm/tds-table-body.entry.js +4 -51
- package/dist/esm/tds-table-footer.entry.js +47 -39
- package/dist/esm/tds-table-toolbar.entry.js +2 -2
- package/dist/esm/tds-table.entry.js +2 -1
- package/dist/esm/tds-text-field.entry.js +7 -3
- package/dist/esm/tds-toast.entry.js +11 -26
- package/dist/esm/tds-toggle.entry.js +2 -1
- package/dist/esm/tds-tooltip.entry.js +6 -2
- package/dist/esm/tegel.js +1 -1
- package/dist/esm/{utils-9ac24735.js → utils-74fb1bed.js} +31 -12
- package/dist/tegel/p-000d60e5.entry.js +1 -0
- package/dist/tegel/p-04bff255.entry.js +1 -0
- package/dist/tegel/p-06093e3e.entry.js +1 -0
- package/dist/tegel/p-099025f0.entry.js +1 -0
- package/dist/tegel/p-0995ca77.entry.js +1 -0
- package/dist/tegel/p-10337d3f.entry.js +1 -0
- package/dist/tegel/p-19fb9ad5.entry.js +1 -0
- package/dist/tegel/p-1bac7d2e.entry.js +1 -0
- package/dist/tegel/p-1c82ccf0.entry.js +1 -0
- package/dist/tegel/p-347414ad.entry.js +1 -0
- package/dist/tegel/p-34a06d2f.entry.js +1 -0
- package/dist/tegel/p-3c9865c3.entry.js +1 -0
- package/dist/tegel/{p-c8d4af09.entry.js → p-40142a58.entry.js} +1 -1
- package/dist/tegel/p-48136431.entry.js +1 -0
- package/dist/tegel/p-49a084db.entry.js +1 -0
- package/dist/tegel/p-4c809685.entry.js +1 -0
- package/dist/tegel/p-54e56257.entry.js +1 -0
- package/dist/tegel/{p-e8fccebc.entry.js → p-56189659.entry.js} +1 -1
- package/dist/tegel/p-6bee84a2.entry.js +1 -0
- package/dist/tegel/p-6f0072cc.entry.js +1 -0
- package/dist/tegel/p-73a8f43e.entry.js +1 -0
- package/dist/tegel/p-8ba77ea3.entry.js +1 -0
- package/dist/tegel/p-8bd0a233.entry.js +1 -0
- package/dist/tegel/{p-e0ee20ee.entry.js → p-8c194dd8.entry.js} +1 -1
- package/dist/tegel/p-95e170f3.entry.js +1 -0
- package/dist/tegel/p-99837611.entry.js +1 -0
- package/dist/tegel/p-9991a816.entry.js +1 -0
- package/dist/tegel/{p-bcb2fad3.entry.js → p-9b29bf68.entry.js} +1 -1
- package/dist/tegel/{p-39227588.js → p-9dc14c21.js} +1 -1
- package/dist/tegel/p-9f1e1cc0.entry.js +1 -0
- package/dist/tegel/{p-232f5889.entry.js → p-9fe0d654.entry.js} +1 -1
- package/dist/tegel/{p-135575ae.entry.js → p-a08be1c3.entry.js} +1 -1
- package/dist/tegel/{p-3aa634ed.entry.js → p-a1ad46d2.entry.js} +1 -1
- package/dist/tegel/p-a34bb501.entry.js +1 -0
- package/dist/tegel/p-a4e3eb95.entry.js +1 -0
- package/dist/tegel/{p-fb3f4a14.entry.js → p-aa443b06.entry.js} +1 -1
- package/dist/tegel/p-afe13096.entry.js +1 -0
- package/dist/tegel/{p-cd2a74d7.entry.js → p-b0d313cd.entry.js} +1 -1
- package/dist/tegel/p-b1067b50.entry.js +1 -0
- package/dist/tegel/{p-7b34156b.entry.js → p-b5424456.entry.js} +1 -1
- package/dist/tegel/p-c15bbe0b.entry.js +1 -0
- package/dist/tegel/p-c411f254.entry.js +1 -0
- package/dist/tegel/p-c5588508.entry.js +1 -0
- package/dist/tegel/{p-b6a16219.entry.js → p-c5ab3a3b.entry.js} +1 -1
- package/dist/tegel/p-d5bd9b2e.entry.js +1 -0
- package/dist/tegel/p-df95f0ae.entry.js +1 -0
- package/dist/tegel/{p-de799b9a.entry.js → p-e24835ba.entry.js} +1 -1
- package/dist/tegel/p-e3f8fc68.entry.js +1 -0
- package/dist/tegel/{p-89283891.entry.js → p-e4dc07bb.entry.js} +1 -1
- package/dist/tegel/p-f36ec03b.entry.js +1 -0
- package/dist/tegel/{p-7331ec7b.entry.js → p-f795bc11.entry.js} +1 -1
- package/dist/tegel/{p-7d3a66ae.entry.js → p-f9d04ff2.entry.js} +1 -1
- package/dist/tegel/p-fc6da19c.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 +3 -0
- package/dist/types/components/accordion/accordion.stories.d.ts +77 -0
- package/dist/types/components/badge/badge.stories.d.ts +73 -0
- package/dist/types/components/banner/banner.d.ts +7 -2
- package/dist/types/components/banner/banner.stories.d.ts +82 -0
- package/dist/types/components/block/block.stories.d.ts +32 -0
- package/dist/types/components/breadcrumbs/breadcrumb/breadcrumb.d.ts +0 -2
- package/dist/types/components/breadcrumbs/breadcrumbs.d.ts +0 -1
- package/dist/types/components/breadcrumbs/breadcrumbs.stories.d.ts +16 -0
- package/dist/types/components/button/button.d.ts +3 -1
- package/dist/types/components/button/button.stories.d.ts +133 -0
- package/dist/types/components/card/card.d.ts +11 -9
- package/dist/types/components/card/card.stories.d.ts +128 -0
- package/dist/types/components/checkbox/checkbox.d.ts +3 -0
- package/dist/types/components/checkbox/checkbox.stories.d.ts +52 -0
- package/dist/types/components/chip/chip.d.ts +6 -0
- package/dist/types/components/chip/chip.stories.d.ts +99 -0
- package/dist/types/components/datetime/datetime.stories.d.ts +125 -0
- package/dist/types/components/divider/divider.stories.d.ts +58 -0
- package/dist/types/components/dropdown/dropdown-option/dropdown-option.d.ts +28 -17
- package/dist/types/components/dropdown/dropdown.d.ts +79 -54
- package/dist/types/components/dropdown/dropdown.stories.d.ts +183 -0
- package/dist/types/components/footer/footer-group/footer-group.d.ts +1 -1
- package/dist/types/components/footer/footer.d.ts +5 -3
- package/dist/types/components/footer/footer.stories.d.ts +44 -0
- package/dist/types/components/header/header-dropdown/header-dropdown.d.ts +5 -1
- package/dist/types/components/header/header-dropdown-list-user/header-dropdown-list-user.d.ts +8 -4
- package/dist/types/components/header/header.d.ts +5 -0
- package/dist/types/components/header/header.stories.d.ts +31 -0
- package/dist/types/components/icon/icon.stories.d.ts +36 -0
- package/dist/types/components/link/link.stories.d.ts +44 -0
- package/dist/types/components/message/message.d.ts +3 -0
- package/dist/types/components/message/message.stories.d.ts +88 -0
- package/dist/types/components/modal/modal.d.ts +9 -3
- package/dist/types/components/modal/modal.stories.d.ts +70 -0
- package/dist/types/components/popover-canvas/popover-canvas.d.ts +1 -1
- package/dist/types/components/popover-canvas/popover-canvas.stories.d.ts +27 -0
- package/dist/types/components/popover-menu/popover-menu.d.ts +1 -1
- package/dist/types/components/popover-menu/popover-menu.stories.d.ts +40 -0
- package/dist/types/components/radio-button/radio-button.d.ts +3 -0
- package/dist/types/components/radio-button/radio-button.stories.d.ts +39 -0
- package/dist/types/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.d.ts +3 -0
- package/dist/types/components/side-menu/side-menu-dropdown/side-menu-dropdown.d.ts +5 -0
- package/dist/types/components/side-menu/side-menu-dropdown-list/side-menu-dropdown-list.d.ts +3 -0
- package/dist/types/components/side-menu/side-menu-dropdown-list-item/side-menu-dropdown-list-item.d.ts +3 -0
- package/dist/types/components/side-menu/side-menu-item/side-menu-item.d.ts +3 -0
- package/dist/types/components/side-menu/side-menu-user/side-menu-user.d.ts +3 -0
- package/dist/types/components/side-menu/side-menu-user-image/side-menu-user-image.d.ts +4 -0
- package/dist/types/components/side-menu/side-menu.d.ts +8 -0
- package/dist/types/components/side-menu/side-menu.stories.d.ts +53 -0
- package/dist/types/components/slider/slider.d.ts +0 -1
- package/dist/types/components/slider/slider.stories.d.ts +235 -0
- package/dist/types/components/spinner/spinner.stories.d.ts +46 -0
- package/dist/types/components/stepper/step/step.d.ts +3 -0
- package/dist/types/components/stepper/stepper.stories.d.ts +80 -0
- package/dist/types/components/table/table-body/table-body.d.ts +6 -3
- package/dist/types/components/table/table-body-row-expandable/table-body-row-expandable.d.ts +3 -0
- package/dist/types/components/table/table-component-basic.stories.d.ts +144 -0
- package/dist/types/components/table/table-component-batch-actions.stories.d.ts +139 -0
- package/dist/types/components/table/table-component-bodydata.stories.d.ts +35 -0
- package/dist/types/components/table/table-component-custom-width.stories.d.ts +131 -0
- package/dist/types/components/table/table-component-event-listeners.stories.d.ts +131 -0
- package/dist/types/components/table/table-component-expandable-rows.stories.d.ts +131 -0
- package/dist/types/components/table/table-component-filtering.stories.d.ts +139 -0
- package/dist/types/components/table/table-component-multiselect.stories.d.ts +144 -0
- package/dist/types/components/table/table-component-pagination.stories.d.ts +131 -0
- package/dist/types/components/table/table-component-sorting.stories.d.ts +183 -0
- package/dist/types/components/table/table-footer/table-footer.d.ts +7 -7
- package/dist/types/components/table/table-toolbar/table-toolbar.d.ts +3 -0
- package/dist/types/components/tabs/folder-tabs/folder-tabs.stories.d.ts +69 -0
- package/dist/types/components/tabs/inline-tabs/inline-tabs.stories.d.ts +61 -0
- package/dist/types/components/tabs/navigation-tabs/navigation-tabs.stories.d.ts +61 -0
- package/dist/types/components/text-field/text-field.d.ts +5 -0
- package/dist/types/components/text-field/text-field.stories.d.ts +201 -0
- package/dist/types/components/textarea/textarea.stories.d.ts +139 -0
- package/dist/types/components/toast/toast.d.ts +5 -4
- package/dist/types/components/toast/toast.stories.d.ts +56 -0
- package/dist/types/components/toggle/toggle.d.ts +3 -0
- package/dist/types/components/toggle/toggle.stories.d.ts +74 -0
- package/dist/types/components/tooltip/tooltip.d.ts +3 -1
- package/dist/types/components/tooltip/tooltip.stories.d.ts +66 -0
- package/dist/types/components.d.ts +105 -393
- package/dist/types/stories/Installation/installation.stories.d.ts +7 -0
- package/dist/types/stories/announcements/announce-tegel.stories.d.ts +6 -0
- package/dist/types/stories/announcements/prefix-change.stories.d.ts +6 -0
- package/dist/types/stories/foundations/color/color-brand.stories.d.ts +13 -0
- package/dist/types/stories/foundations/color/color-scales.stories.d.ts +30 -0
- package/dist/types/stories/foundations/color/color-semantic.stories.d.ts +13 -0
- package/dist/types/stories/foundations/grid/grid.stories.d.ts +35 -0
- package/dist/types/stories/foundations/spacing/spacing-element.stories.d.ts +8 -0
- package/dist/types/stories/foundations/spacing/spacing-layout.stories.d.ts +8 -0
- package/dist/types/stories/foundations/typography/typography-body.stories.d.ts +8 -0
- package/dist/types/stories/foundations/typography/typography-detail.stories.d.ts +8 -0
- package/dist/types/stories/foundations/typography/typography-headline.stories.d.ts +21 -0
- package/dist/types/stories/foundations/typography/typography-paragraph.stories.d.ts +8 -0
- package/dist/types/stories/patterns/navigation/navigation-basic.stories.d.ts +23 -0
- package/dist/types/stories/patterns/navigation/navigation-fewitems.stories.d.ts +23 -0
- package/dist/types/stories/patterns/navigation/navigation-manyitems.stories.d.ts +38 -0
- package/dist/types/stories/patterns/navigation/navigation-user-menu.stories.d.ts +33 -0
- package/dist/types/stories/tegel.stories.d.ts +6 -0
- package/dist/types/stories/utility/color/background-color.stories.d.ts +64 -0
- package/dist/types/stories/utility/color/text-color.stories.d.ts +64 -0
- package/dist/types/utils/utils.d.ts +20 -6
- package/package.json +21 -24
- package/dist/cjs/tds-dropdown-filter.cjs.entry.js +0 -96
- package/dist/cjs/tds-dropdown_2.cjs.entry.js +0 -339
- package/dist/collection/components/dropdown/dropdown-filter/dropdown-filter.js +0 -380
- package/dist/collection/components/dropdown-v2/dropdown-option-v2/dropdown-option-v2.js +0 -216
- package/dist/collection/components/dropdown-v2/dropdown-v2.css +0 -286
- package/dist/collection/components/dropdown-v2/dropdown-v2.js +0 -726
- package/dist/components/dropdown-option.js +0 -104
- package/dist/components/dropdown.js +0 -304
- package/dist/components/tds-dropdown-filter.d.ts +0 -11
- package/dist/components/tds-dropdown-filter.js +0 -150
- package/dist/components/tds-dropdown-option-v2.d.ts +0 -11
- package/dist/components/tds-dropdown-option-v2.js +0 -126
- package/dist/components/tds-dropdown-v2.d.ts +0 -11
- package/dist/components/tds-dropdown-v2.js +0 -323
- package/dist/esm/tds-dropdown-filter.entry.js +0 -92
- package/dist/esm/tds-dropdown_2.entry.js +0 -334
- package/dist/tegel/p-07e5df94.entry.js +0 -1
- package/dist/tegel/p-0a3e7512.entry.js +0 -1
- package/dist/tegel/p-0e55d72f.entry.js +0 -1
- package/dist/tegel/p-107d3da8.entry.js +0 -1
- package/dist/tegel/p-13b02a4f.entry.js +0 -1
- package/dist/tegel/p-19e9addd.entry.js +0 -1
- package/dist/tegel/p-1fb5c5d4.entry.js +0 -1
- package/dist/tegel/p-2bee16f6.entry.js +0 -1
- package/dist/tegel/p-2e2c91c4.entry.js +0 -1
- package/dist/tegel/p-330ed982.entry.js +0 -1
- package/dist/tegel/p-3604b5d3.entry.js +0 -1
- package/dist/tegel/p-375e361b.entry.js +0 -1
- package/dist/tegel/p-55dc4711.entry.js +0 -1
- package/dist/tegel/p-59f1cb9b.entry.js +0 -1
- package/dist/tegel/p-5a6aba01.entry.js +0 -1
- package/dist/tegel/p-60733f89.entry.js +0 -1
- package/dist/tegel/p-6a530c2f.entry.js +0 -1
- package/dist/tegel/p-732256e0.entry.js +0 -1
- package/dist/tegel/p-76f941e8.entry.js +0 -1
- package/dist/tegel/p-7b0853e6.entry.js +0 -1
- package/dist/tegel/p-90686bc7.entry.js +0 -1
- package/dist/tegel/p-95da9b7f.entry.js +0 -1
- package/dist/tegel/p-99f540db.entry.js +0 -1
- package/dist/tegel/p-9bcc42cf.entry.js +0 -1
- package/dist/tegel/p-9f57d275.entry.js +0 -1
- package/dist/tegel/p-9fe384ad.entry.js +0 -1
- package/dist/tegel/p-a5604352.entry.js +0 -1
- package/dist/tegel/p-acb62b52.entry.js +0 -1
- package/dist/tegel/p-aeffa257.entry.js +0 -1
- package/dist/tegel/p-b8d88873.entry.js +0 -1
- package/dist/tegel/p-beb8a6bd.entry.js +0 -1
- package/dist/tegel/p-c90a247c.entry.js +0 -1
- package/dist/tegel/p-ca4527de.entry.js +0 -1
- package/dist/tegel/p-cf4cfc54.entry.js +0 -1
- package/dist/tegel/p-d3f5cf74.entry.js +0 -1
- package/dist/tegel/p-d67d67be.entry.js +0 -1
- package/dist/tegel/p-da4c92b9.entry.js +0 -1
- package/dist/tegel/p-f6206d3c.entry.js +0 -1
- package/dist/tegel/p-fc47d911.entry.js +0 -1
- package/dist/types/components/dropdown/dropdown-filter/dropdown-filter.d.ts +0 -47
- package/dist/types/components/dropdown-v2/dropdown-option-v2/dropdown-option-v2.d.ts +0 -35
- package/dist/types/components/dropdown-v2/dropdown-v2.d.ts +0 -86
- /package/dist/collection/components/{dropdown-v2/dropdown-option-v2/dropdown-option-v2.css → dropdown/dropdown-option/dropdown-option.css} +0 -0
- /package/dist/tegel/{p-9d707f6e.js → p-7c0dcd00.js} +0 -0
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
.tds-modal__actions-sticky {
|
|
57
57
|
overflow: hidden;
|
|
58
58
|
}
|
|
59
|
-
.tds-modal__actions-sticky .
|
|
59
|
+
.tds-modal__actions-sticky .body {
|
|
60
60
|
font: var(--tds-body-01);
|
|
61
61
|
letter-spacing: var(--tds-body-01-ls);
|
|
62
62
|
padding-bottom: 96px;
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
max-height: calc(85vh - 36px);
|
|
65
65
|
overflow-y: auto;
|
|
66
66
|
}
|
|
67
|
-
.tds-modal__actions-sticky
|
|
67
|
+
.tds-modal__actions-sticky slot[name=actions] {
|
|
68
68
|
position: absolute;
|
|
69
69
|
bottom: -1px;
|
|
70
70
|
left: 0;
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
display: flex;
|
|
75
75
|
gap: 16px;
|
|
76
76
|
}
|
|
77
|
-
.tds-modal__actions-static
|
|
77
|
+
.tds-modal__actions-static slot[name=actions] {
|
|
78
78
|
background-color: var(--tds-modal-background);
|
|
79
79
|
display: flex;
|
|
80
80
|
gap: 16px;
|
|
@@ -84,15 +84,12 @@
|
|
|
84
84
|
.tds-modal-xs {
|
|
85
85
|
width: 100%;
|
|
86
86
|
}
|
|
87
|
-
|
|
88
87
|
.tds-modal-sm {
|
|
89
88
|
width: 100%;
|
|
90
89
|
}
|
|
91
|
-
|
|
92
90
|
.tds-modal-md {
|
|
93
91
|
width: 100%;
|
|
94
92
|
}
|
|
95
|
-
|
|
96
93
|
.tds-modal-lg {
|
|
97
94
|
width: 100%;
|
|
98
95
|
}
|
|
@@ -101,15 +98,12 @@
|
|
|
101
98
|
.tds-modal-xs {
|
|
102
99
|
width: 75%;
|
|
103
100
|
}
|
|
104
|
-
|
|
105
101
|
.tds-modal-sm {
|
|
106
102
|
width: 62.5%;
|
|
107
103
|
}
|
|
108
|
-
|
|
109
104
|
.tds-modal-md {
|
|
110
105
|
width: 75%;
|
|
111
106
|
}
|
|
112
|
-
|
|
113
107
|
.tds-modal-lg {
|
|
114
108
|
width: 100%;
|
|
115
109
|
}
|
|
@@ -118,15 +112,12 @@
|
|
|
118
112
|
.tds-modal-xs {
|
|
119
113
|
width: 31.25%;
|
|
120
114
|
}
|
|
121
|
-
|
|
122
115
|
.tds-modal-sm {
|
|
123
116
|
width: 43.75%;
|
|
124
117
|
}
|
|
125
|
-
|
|
126
118
|
.tds-modal-md {
|
|
127
119
|
width: 62.5%;
|
|
128
120
|
}
|
|
129
|
-
|
|
130
121
|
.tds-modal-lg {
|
|
131
122
|
width: 75%;
|
|
132
123
|
}
|
|
@@ -135,15 +126,12 @@
|
|
|
135
126
|
.tds-modal-xs {
|
|
136
127
|
width: 31.25%;
|
|
137
128
|
}
|
|
138
|
-
|
|
139
129
|
.tds-modal-sm {
|
|
140
130
|
width: 37.5%;
|
|
141
131
|
}
|
|
142
|
-
|
|
143
132
|
.tds-modal-md {
|
|
144
133
|
width: 62.5%;
|
|
145
134
|
}
|
|
146
|
-
|
|
147
135
|
.tds-modal-lg {
|
|
148
136
|
width: 75%;
|
|
149
137
|
}
|
|
@@ -152,33 +140,30 @@
|
|
|
152
140
|
.tds-modal-xs {
|
|
153
141
|
width: 25%;
|
|
154
142
|
}
|
|
155
|
-
|
|
156
143
|
.tds-modal-sm {
|
|
157
144
|
width: 37.5%;
|
|
158
145
|
}
|
|
159
|
-
|
|
160
146
|
.tds-modal-md {
|
|
161
147
|
width: 50%;
|
|
162
148
|
}
|
|
163
|
-
|
|
164
149
|
.tds-modal-lg {
|
|
165
150
|
width: 75%;
|
|
166
151
|
}
|
|
167
152
|
}
|
|
168
153
|
@media (max-width: 320px) {
|
|
169
154
|
.tds-modal-md,
|
|
170
|
-
.tds-modal-lg,
|
|
171
|
-
.tds-modal-sm {
|
|
155
|
+
.tds-modal-lg,
|
|
156
|
+
.tds-modal-sm {
|
|
172
157
|
height: 100%;
|
|
173
158
|
}
|
|
174
|
-
.tds-modal-md slot[name=
|
|
175
|
-
.tds-modal-lg slot[name=
|
|
176
|
-
.tds-modal-sm slot[name=
|
|
159
|
+
.tds-modal-md slot[name=actions]::slotted(*),
|
|
160
|
+
.tds-modal-lg slot[name=actions]::slotted(*),
|
|
161
|
+
.tds-modal-sm slot[name=actions]::slotted(*) {
|
|
177
162
|
display: flex;
|
|
178
163
|
}
|
|
179
164
|
}
|
|
180
|
-
/* MODAL
|
|
181
|
-
.
|
|
165
|
+
/* MODAL SUB ELEMENTS */
|
|
166
|
+
.header {
|
|
182
167
|
display: flex;
|
|
183
168
|
padding-bottom: var(--tds-spacing-element-8);
|
|
184
169
|
position: sticky;
|
|
@@ -186,7 +171,7 @@
|
|
|
186
171
|
background-color: var(--tds-modal-background);
|
|
187
172
|
z-index: 1;
|
|
188
173
|
}
|
|
189
|
-
.
|
|
174
|
+
.header::before {
|
|
190
175
|
content: " ";
|
|
191
176
|
position: absolute;
|
|
192
177
|
height: 16px;
|
|
@@ -195,16 +180,16 @@
|
|
|
195
180
|
background-color: var(--tds-modal-background);
|
|
196
181
|
}
|
|
197
182
|
|
|
198
|
-
.
|
|
183
|
+
.header,
|
|
184
|
+
slot[name=header]::slotted(*) {
|
|
199
185
|
color: var(--tds-modal-text);
|
|
200
186
|
font: var(--tds-headline-05);
|
|
201
187
|
letter-spacing: var(--tds-headline-05-ls);
|
|
202
188
|
margin: 0;
|
|
203
189
|
flex: 1;
|
|
204
|
-
color: var(--tds-modal-text);
|
|
205
190
|
}
|
|
206
191
|
|
|
207
|
-
.
|
|
192
|
+
.body {
|
|
208
193
|
color: var(--tds-modal-text);
|
|
209
194
|
font: var(--tds-body-01);
|
|
210
195
|
letter-spacing: var(--tds-body-01-ls);
|
|
@@ -216,18 +201,18 @@
|
|
|
216
201
|
/* Track */
|
|
217
202
|
/* Handle */
|
|
218
203
|
}
|
|
219
|
-
.
|
|
204
|
+
.body::-webkit-scrollbar {
|
|
220
205
|
width: 5px;
|
|
221
206
|
background-color: var(--tds-grey-300);
|
|
222
207
|
}
|
|
223
|
-
.
|
|
208
|
+
.body::-webkit-scrollbar-track {
|
|
224
209
|
background-color: var(--tds-grey-300);
|
|
225
210
|
}
|
|
226
|
-
.
|
|
211
|
+
.body::-webkit-scrollbar-thumb {
|
|
227
212
|
background-color: var(--tds-grey-500);
|
|
228
213
|
}
|
|
229
214
|
@media (min-width: 1056px) {
|
|
230
|
-
.
|
|
215
|
+
.body {
|
|
231
216
|
padding-right: 64px;
|
|
232
217
|
}
|
|
233
218
|
}
|
|
@@ -259,6 +244,7 @@
|
|
|
259
244
|
}
|
|
260
245
|
|
|
261
246
|
button.tds-modal-close {
|
|
247
|
+
margin: 0 0 auto auto;
|
|
262
248
|
background-color: transparent;
|
|
263
249
|
border: 0;
|
|
264
250
|
padding: 0;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { h, Host, } from '@stencil/core';
|
|
2
|
+
import { hasSlot } from '../../utils/utils';
|
|
3
|
+
/**
|
|
4
|
+
* @slot header - Slot for header text
|
|
5
|
+
* @slot body - Slot for main content of modal
|
|
6
|
+
* @slot actions - Slot for extra buttons
|
|
7
|
+
* */
|
|
2
8
|
export class TdsModal {
|
|
3
9
|
constructor() {
|
|
4
|
-
/** Emits a close event and then close the Modal if it is not prevented. */
|
|
5
10
|
this.handleClose = (event) => {
|
|
6
11
|
const closeEvent = this.tdsClose.emit(event);
|
|
7
12
|
if (!closeEvent.defaultPrevented) {
|
|
@@ -34,6 +39,7 @@ export class TdsModal {
|
|
|
34
39
|
}
|
|
35
40
|
}
|
|
36
41
|
};
|
|
42
|
+
this.header = undefined;
|
|
37
43
|
this.prevent = false;
|
|
38
44
|
this.size = 'md';
|
|
39
45
|
this.actions = 'static';
|
|
@@ -44,11 +50,11 @@ export class TdsModal {
|
|
|
44
50
|
}
|
|
45
51
|
/** Shows the Modal. */
|
|
46
52
|
async showModal() {
|
|
47
|
-
this.
|
|
53
|
+
this.isShown = true;
|
|
48
54
|
}
|
|
49
55
|
/** Closes the Modal. */
|
|
50
56
|
async closeModal() {
|
|
51
|
-
this.
|
|
57
|
+
this.isShown = false;
|
|
52
58
|
}
|
|
53
59
|
connectedCallback() {
|
|
54
60
|
if (this.show !== null) {
|
|
@@ -56,6 +62,9 @@ export class TdsModal {
|
|
|
56
62
|
}
|
|
57
63
|
this.setDismissButtons();
|
|
58
64
|
this.setShowButton();
|
|
65
|
+
if (this.header && hasSlot('header', this.host)) {
|
|
66
|
+
console.warn("Tegel Modal component: Using both header prop and header slot might break modal's design. Please use just one of them. ");
|
|
67
|
+
}
|
|
59
68
|
}
|
|
60
69
|
/** Checks if click on Modal is on overlay, if so it closes the Modal if prevent is not true. */
|
|
61
70
|
handleOverlayClick(event) {
|
|
@@ -75,9 +84,13 @@ export class TdsModal {
|
|
|
75
84
|
});
|
|
76
85
|
}
|
|
77
86
|
render() {
|
|
87
|
+
const usesHeaderSlot = hasSlot('header', this.host);
|
|
88
|
+
const usesActionsSlot = hasSlot('actions', this.host);
|
|
78
89
|
return (h(Host, { onClick: (event) => {
|
|
79
90
|
this.handleOverlayClick(event);
|
|
80
|
-
}, class: `tds-modal-backdrop ${this.isShown ? 'show' : 'hide'}` }, h("div", { class: `tds-modal ${this.actions ? `tds-modal__actions-${this.actions}` : ''} ${this.size ? `tds-modal-${this.size}` : ''} ` }, h("div", { class: "
|
|
91
|
+
}, class: `tds-modal-backdrop ${this.isShown ? 'show' : 'hide'}` }, h("div", { class: `tds-modal ${this.actions ? `tds-modal__actions-${this.actions}` : ''} ${this.size ? `tds-modal-${this.size}` : ''} ` }, h("div", { class: "header" }, this.header && h("div", { class: "header" }, this.header), usesHeaderSlot && h("slot", { name: "header" }), h("button", { class: "tds-modal-close", "aria-label": "close", onClick: (event) => {
|
|
92
|
+
this.handleClose(event);
|
|
93
|
+
} }, h("tds-icon", { name: "cross", size: "20px" }))), h("div", { class: "body" }, h("slot", { name: "body" })), usesActionsSlot && h("slot", { name: "actions" }))));
|
|
81
94
|
}
|
|
82
95
|
static get is() { return "tds-modal"; }
|
|
83
96
|
static get encapsulation() { return "shadow"; }
|
|
@@ -93,6 +106,23 @@ export class TdsModal {
|
|
|
93
106
|
}
|
|
94
107
|
static get properties() {
|
|
95
108
|
return {
|
|
109
|
+
"header": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"mutable": false,
|
|
112
|
+
"complexType": {
|
|
113
|
+
"original": "string",
|
|
114
|
+
"resolved": "string",
|
|
115
|
+
"references": {}
|
|
116
|
+
},
|
|
117
|
+
"required": false,
|
|
118
|
+
"optional": false,
|
|
119
|
+
"docs": {
|
|
120
|
+
"tags": [],
|
|
121
|
+
"text": "Sets the header of the Modal."
|
|
122
|
+
},
|
|
123
|
+
"attribute": "header",
|
|
124
|
+
"reflect": false
|
|
125
|
+
},
|
|
96
126
|
"prevent": {
|
|
97
127
|
"type": "boolean",
|
|
98
128
|
"mutable": false,
|
|
@@ -168,7 +198,7 @@ export class TdsModal {
|
|
|
168
198
|
"type": "unknown",
|
|
169
199
|
"mutable": false,
|
|
170
200
|
"complexType": {
|
|
171
|
-
"original": "HTMLElement",
|
|
201
|
+
"original": "HTMLElement | null",
|
|
172
202
|
"resolved": "HTMLElement",
|
|
173
203
|
"references": {
|
|
174
204
|
"HTMLElement": {
|
|
@@ -177,7 +207,7 @@ export class TdsModal {
|
|
|
177
207
|
}
|
|
178
208
|
},
|
|
179
209
|
"required": false,
|
|
180
|
-
"optional":
|
|
210
|
+
"optional": true,
|
|
181
211
|
"docs": {
|
|
182
212
|
"tags": [],
|
|
183
213
|
"text": "Element that will show the Modal (takes priority over selector)"
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { formatHtmlPreview } from '../../utils/utils';
|
|
2
|
+
import readme from './readme.md';
|
|
3
|
+
import { ComponentsFolder } from '../../utils/constants';
|
|
4
|
+
export default {
|
|
5
|
+
title: `${ComponentsFolder}/Modal`,
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: 'fullscreen',
|
|
8
|
+
notes: readme,
|
|
9
|
+
design: [
|
|
10
|
+
{
|
|
11
|
+
name: 'Figma',
|
|
12
|
+
type: 'figma',
|
|
13
|
+
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=4398%3A181325&t=Ne6myqwca5m00de7-1',
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: 'Link',
|
|
17
|
+
type: 'link',
|
|
18
|
+
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=4398%3A181325&t=Ne6myqwca5m00de7-1',
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
},
|
|
22
|
+
argTypes: {
|
|
23
|
+
actions: {
|
|
24
|
+
name: 'Actions',
|
|
25
|
+
description: "Defines the behaviour of Modal action's slot - if slot scrolls or stays on top of the content.",
|
|
26
|
+
control: {
|
|
27
|
+
type: 'radio',
|
|
28
|
+
},
|
|
29
|
+
options: ['Sticky', 'Static'],
|
|
30
|
+
table: {
|
|
31
|
+
defaultValue: { summary: 'static' },
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
size: {
|
|
35
|
+
name: 'Size',
|
|
36
|
+
description: 'Sets the size of Modal.',
|
|
37
|
+
control: {
|
|
38
|
+
type: 'radio',
|
|
39
|
+
},
|
|
40
|
+
options: ['Large', 'Medium', 'Small', 'Extra small'],
|
|
41
|
+
table: {
|
|
42
|
+
defaultValue: { summary: 'md' },
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
headerText: {
|
|
46
|
+
name: 'Modal header',
|
|
47
|
+
description: 'Sets the header text of the Modal.',
|
|
48
|
+
control: {
|
|
49
|
+
type: 'text',
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
bodyContent: {
|
|
53
|
+
name: 'Modal body text',
|
|
54
|
+
description: 'Sets the body content of the Modal.',
|
|
55
|
+
control: {
|
|
56
|
+
type: 'text',
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
showModal: {
|
|
60
|
+
name: 'Show Modal',
|
|
61
|
+
description: 'Toggles if the Modal is displayed.',
|
|
62
|
+
control: {
|
|
63
|
+
type: 'boolean',
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
args: {
|
|
68
|
+
actions: 'Static',
|
|
69
|
+
size: 'Large',
|
|
70
|
+
headerText: 'The buttons for the Modal only works in the canvas tab',
|
|
71
|
+
bodyContent: 'The steps fell lightly and oddly, with a certain swing, for all they went so slowly; it was different indeed from the heavy creaking tread of Henry Jekyll. Utterson sighed. “Is there never anything else?” he asked.',
|
|
72
|
+
showModal: true,
|
|
73
|
+
},
|
|
74
|
+
};
|
|
75
|
+
const sizeLookUp = {
|
|
76
|
+
'Large': 'lg',
|
|
77
|
+
'Medium': 'md',
|
|
78
|
+
'Small': 'sm',
|
|
79
|
+
'Extra small': 'xs',
|
|
80
|
+
};
|
|
81
|
+
const ModalTemplate = ({ actions, size, headerText, bodyContent, showModal }) => formatHtmlPreview(`
|
|
82
|
+
<!-- The button below is just for demo purposes -->
|
|
83
|
+
<tds-button id="my-modal-button" text="Open Modal"></tds-button>
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
<tds-modal
|
|
87
|
+
header="${headerText}"
|
|
88
|
+
selector="#my-modal-button"
|
|
89
|
+
${showModal ? 'show' : ''}
|
|
90
|
+
id="my-modal" size="${sizeLookUp[size]}"
|
|
91
|
+
actions="${actions.toLowerCase()}">
|
|
92
|
+
<span slot="body">
|
|
93
|
+
${bodyContent}
|
|
94
|
+
</span>
|
|
95
|
+
<span slot='actions'>
|
|
96
|
+
<tds-button data-dismiss-modal size="md" text="Delete" type="danger"></tds-button>
|
|
97
|
+
<tds-button data-dismiss-modal size="md" text="Cancel"></tds-button>
|
|
98
|
+
</span>
|
|
99
|
+
</tds-modal>
|
|
100
|
+
|
|
101
|
+
<!-- The script below is just for demo purposes -->
|
|
102
|
+
<script>
|
|
103
|
+
modal = document.querySelector('tds-modal')
|
|
104
|
+
modal.addEventListener('tdsClose', (event) => {
|
|
105
|
+
console.log(event)
|
|
106
|
+
})
|
|
107
|
+
</script>
|
|
108
|
+
`);
|
|
109
|
+
export const Default = ModalTemplate.bind({});
|
|
@@ -123,7 +123,7 @@ export class TdsPopoverCanvas {
|
|
|
123
123
|
"type": "unknown",
|
|
124
124
|
"mutable": false,
|
|
125
125
|
"complexType": {
|
|
126
|
-
"original": "HTMLElement",
|
|
126
|
+
"original": "HTMLElement | null",
|
|
127
127
|
"resolved": "HTMLElement",
|
|
128
128
|
"references": {
|
|
129
129
|
"HTMLElement": {
|
|
@@ -132,7 +132,7 @@ export class TdsPopoverCanvas {
|
|
|
132
132
|
}
|
|
133
133
|
},
|
|
134
134
|
"required": false,
|
|
135
|
-
"optional":
|
|
135
|
+
"optional": true,
|
|
136
136
|
"docs": {
|
|
137
137
|
"tags": [],
|
|
138
138
|
"text": "Element that will trigger the Popover (takes priority over selector)"
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { formatHtmlPreview } from '../../utils/utils';
|
|
2
|
+
import readme from './readme.md';
|
|
3
|
+
import { ComponentsFolder } from '../../utils/constants';
|
|
4
|
+
export default {
|
|
5
|
+
title: `${ComponentsFolder}/Popover Canvas`,
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: 'centered',
|
|
8
|
+
notes: readme,
|
|
9
|
+
},
|
|
10
|
+
argTypes: {
|
|
11
|
+
canvasPosition: {
|
|
12
|
+
name: 'Canvas position',
|
|
13
|
+
description: 'Sets the position of the Popover Canvas.',
|
|
14
|
+
control: {
|
|
15
|
+
type: 'select',
|
|
16
|
+
},
|
|
17
|
+
options: [
|
|
18
|
+
'Bottom',
|
|
19
|
+
'Bottom start',
|
|
20
|
+
'Bottom end',
|
|
21
|
+
'Top',
|
|
22
|
+
'Top start',
|
|
23
|
+
'Top end',
|
|
24
|
+
'Left',
|
|
25
|
+
'Left-start',
|
|
26
|
+
'Left end',
|
|
27
|
+
'Right',
|
|
28
|
+
'Right start',
|
|
29
|
+
'Right end',
|
|
30
|
+
'Auto',
|
|
31
|
+
],
|
|
32
|
+
table: {
|
|
33
|
+
defaultValue: { summary: 'auto' },
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
args: {
|
|
38
|
+
canvasPosition: 'Auto',
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const ComponentPopoverCanvas = ({ canvasPosition }) => {
|
|
42
|
+
const canvasPosLookup = {
|
|
43
|
+
'Bottom': 'bottom',
|
|
44
|
+
'Bottom start': 'bottom-start',
|
|
45
|
+
'Bottom end': 'bottom-end',
|
|
46
|
+
'Top': 'top',
|
|
47
|
+
'Top start': 'top-start',
|
|
48
|
+
'Top end': 'top-end',
|
|
49
|
+
'Left': 'left',
|
|
50
|
+
'Left star': 'left-start',
|
|
51
|
+
'Left end': 'left-end',
|
|
52
|
+
'Right': 'right',
|
|
53
|
+
'Right start': 'right-start',
|
|
54
|
+
'Right end': 'right-end',
|
|
55
|
+
'Auto': 'auto',
|
|
56
|
+
};
|
|
57
|
+
return formatHtmlPreview(`
|
|
58
|
+
<style>
|
|
59
|
+
/* demo-wrapper and demo-styles is for demonstration purposes only */
|
|
60
|
+
.demo-wrapper {
|
|
61
|
+
display: flex;
|
|
62
|
+
flex-wrap; nowrap;
|
|
63
|
+
align-items: center;
|
|
64
|
+
}
|
|
65
|
+
</style>
|
|
66
|
+
|
|
67
|
+
<!-- The 'referenceEl' prop can be used instead of 'selector',
|
|
68
|
+
wich might be preferable in frameworks like React -->
|
|
69
|
+
<tds-popover-canvas
|
|
70
|
+
placement="${canvasPosLookup[canvasPosition]}"
|
|
71
|
+
selector="#trigger"
|
|
72
|
+
class="tds-u-p2">
|
|
73
|
+
<h2>A Popover Canvas!</h2>
|
|
74
|
+
<p>
|
|
75
|
+
Where you can put anything you want!
|
|
76
|
+
</p>
|
|
77
|
+
<p>
|
|
78
|
+
<a target="_blank" rel="noopener noreferrer" href="https://tegel.scania.com">Even links!</a>
|
|
79
|
+
</p>
|
|
80
|
+
</tds-popover-canvas>
|
|
81
|
+
|
|
82
|
+
<!-- demo-wrapper code below is for demonstration purposes only -->
|
|
83
|
+
<div class="demo-wrapper">
|
|
84
|
+
<span class="tds-u-mr2">Click icon for Popover Canvas</span>
|
|
85
|
+
|
|
86
|
+
<tds-button aria-label="menu" only-icon id="trigger" type="ghost" size="sm">
|
|
87
|
+
<tds-icon slot="icon" size="16px" name="kebab"></tds-icon>
|
|
88
|
+
</tds-button>
|
|
89
|
+
</div>
|
|
90
|
+
`);
|
|
91
|
+
};
|
|
92
|
+
export const Default = ComponentPopoverCanvas.bind({});
|
|
@@ -106,7 +106,7 @@ export class TdsPopoverMenu {
|
|
|
106
106
|
"type": "unknown",
|
|
107
107
|
"mutable": false,
|
|
108
108
|
"complexType": {
|
|
109
|
-
"original": "HTMLElement",
|
|
109
|
+
"original": "HTMLElement | null",
|
|
110
110
|
"resolved": "HTMLElement",
|
|
111
111
|
"references": {
|
|
112
112
|
"HTMLElement": {
|
|
@@ -115,7 +115,7 @@ export class TdsPopoverMenu {
|
|
|
115
115
|
}
|
|
116
116
|
},
|
|
117
117
|
"required": false,
|
|
118
|
-
"optional":
|
|
118
|
+
"optional": true,
|
|
119
119
|
"docs": {
|
|
120
120
|
"tags": [],
|
|
121
121
|
"text": "Element that will trigger the pop-over (takes priority over selector)"
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { formatHtmlPreview } from '../../utils/utils';
|
|
2
|
+
import readme from './readme.md';
|
|
3
|
+
import { ComponentsFolder } from '../../utils/constants';
|
|
4
|
+
export default {
|
|
5
|
+
title: `${ComponentsFolder}/Popover Menu`,
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: 'centered',
|
|
8
|
+
notes: readme,
|
|
9
|
+
design: [
|
|
10
|
+
{
|
|
11
|
+
name: 'Figma',
|
|
12
|
+
type: 'figma',
|
|
13
|
+
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=16794%3A59241&t=Ne6myqwca5m00de7-1',
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: 'Link',
|
|
17
|
+
type: 'link',
|
|
18
|
+
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=16794%3A59241&t=Ne6myqwca5m00de7-1',
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
},
|
|
22
|
+
argTypes: {
|
|
23
|
+
menuPosition: {
|
|
24
|
+
name: 'Menu position',
|
|
25
|
+
description: 'Sets the position of the Popover Menu.',
|
|
26
|
+
control: {
|
|
27
|
+
type: 'select',
|
|
28
|
+
},
|
|
29
|
+
options: [
|
|
30
|
+
'Bottom',
|
|
31
|
+
'Bottom start',
|
|
32
|
+
'Bottom end',
|
|
33
|
+
'Top',
|
|
34
|
+
'Top start',
|
|
35
|
+
'Top end',
|
|
36
|
+
'Left',
|
|
37
|
+
'Left-start',
|
|
38
|
+
'Left end',
|
|
39
|
+
'Right',
|
|
40
|
+
'Right start',
|
|
41
|
+
'Right end',
|
|
42
|
+
'Auto',
|
|
43
|
+
],
|
|
44
|
+
table: {
|
|
45
|
+
defaultValue: { summary: 'auto' },
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
icons: {
|
|
49
|
+
name: 'Icons',
|
|
50
|
+
description: 'Shows the Popover Menu with/without icons.',
|
|
51
|
+
control: {
|
|
52
|
+
type: 'boolean',
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
args: {
|
|
57
|
+
menuPosition: 'Auto',
|
|
58
|
+
icons: false,
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
const Template = ({ menuPosition, icons }) => {
|
|
62
|
+
const menuPosLookup = {
|
|
63
|
+
'Bottom': 'bottom',
|
|
64
|
+
'Bottom start': 'bottom-start',
|
|
65
|
+
'Bottom end': 'bottom-end',
|
|
66
|
+
'Top': 'top',
|
|
67
|
+
'Top start': 'top-start',
|
|
68
|
+
'Top end': 'top-end',
|
|
69
|
+
'Left': 'left',
|
|
70
|
+
'Left star': 'left-start',
|
|
71
|
+
'Left end': 'left-end',
|
|
72
|
+
'Right': 'right',
|
|
73
|
+
'Right start': 'right-start',
|
|
74
|
+
'Right end': 'right-end',
|
|
75
|
+
'Auto': 'auto',
|
|
76
|
+
};
|
|
77
|
+
return formatHtmlPreview(`
|
|
78
|
+
<style>
|
|
79
|
+
/* demo-wrapper styles is for demonstration purposes only */
|
|
80
|
+
.demo-wrapper {
|
|
81
|
+
display: flex;
|
|
82
|
+
flex-wrap: nowrap;
|
|
83
|
+
align-items: center;
|
|
84
|
+
}
|
|
85
|
+
</style>
|
|
86
|
+
|
|
87
|
+
<tds-popover-menu
|
|
88
|
+
id="my-popover-menu"
|
|
89
|
+
placement="${menuPosLookup[menuPosition]}">
|
|
90
|
+
<ul class="tds-popover-menu-wrapper">
|
|
91
|
+
<li>
|
|
92
|
+
<a target="_blank" rel="noopener noreferrer" href="https://digitaldesign.scania.com">
|
|
93
|
+
${icons ? `<tds-icon name="save" size="16px"></tds-icon>` : ''}
|
|
94
|
+
Menu item 1
|
|
95
|
+
</a>
|
|
96
|
+
</li>
|
|
97
|
+
<li>
|
|
98
|
+
<a target="_blank" rel="noopener noreferrer" href="https://digitaldesign.scania.com">
|
|
99
|
+
${icons ? `<tds-icon name="save" size="16px"></tds-icon>` : ''}
|
|
100
|
+
Menu item 2
|
|
101
|
+
</a>
|
|
102
|
+
</li>
|
|
103
|
+
<li>
|
|
104
|
+
<a target="_blank" rel="noopener noreferrer" href="https://digitaldesign.scania.com">
|
|
105
|
+
${icons ? `<tds-icon name="save" size="16px"></tds-icon>` : ''}
|
|
106
|
+
Menu item 3
|
|
107
|
+
</a>
|
|
108
|
+
</li>
|
|
109
|
+
<li class="divider"></li>
|
|
110
|
+
<li>
|
|
111
|
+
<a target="_blank" rel="noopener noreferrer" href="https://digitaldesign.scania.com">
|
|
112
|
+
${icons ? `<tds-icon name="save" size="16px"></tds-icon>` : ''}
|
|
113
|
+
Menu item 4
|
|
114
|
+
</a>
|
|
115
|
+
</li>
|
|
116
|
+
<li>
|
|
117
|
+
<a target="_blank" rel="noopener noreferrer" href="https://digitaldesign.scania.com">
|
|
118
|
+
${icons ? `<tds-icon name="save" size="16px"></tds-icon>` : ''}
|
|
119
|
+
Menu item 5
|
|
120
|
+
</a>
|
|
121
|
+
</li>
|
|
122
|
+
</ul>
|
|
123
|
+
</tds-popover-menu>
|
|
124
|
+
|
|
125
|
+
<!-- demo-wrapper code below is for demonstration purposes only -->
|
|
126
|
+
<div class="demo-wrapper">
|
|
127
|
+
<span class="tds-u-mr2">Click icon for Popover Menu</span>
|
|
128
|
+
|
|
129
|
+
<tds-button aria-label="menu" only-icon id="my-popover-button" type="ghost" size="sm">
|
|
130
|
+
<tds-icon slot="icon" size="16px" name="kebab"></tds-icon>
|
|
131
|
+
</tds-button>
|
|
132
|
+
</div>
|
|
133
|
+
|
|
134
|
+
<script>
|
|
135
|
+
// The 'selector' prop on Popover-Menu can be used instead, but it might be less ideal in frameworks like React
|
|
136
|
+
document.getElementById('my-popover-menu').referenceEl = document.getElementById('my-popover-button');
|
|
137
|
+
</script>
|
|
138
|
+
`);
|
|
139
|
+
};
|
|
140
|
+
export const Default = Template.bind({});
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
--tds-radio-button-background-hover: var(--tds-blue-800);
|
|
7
7
|
--tds-radio-button-background-focus: var(--tds-blue-800);
|
|
8
8
|
--tds-radio-button-disabled: var(--tds-grey-600);
|
|
9
|
-
--tds-radio-button-border-color-disabled-after: var(--tds-grey-
|
|
9
|
+
--tds-radio-button-border-color-disabled-after: var(--tds-grey-500);
|
|
10
10
|
--tds-radio-button-color-disabled-after: var(--tds-grey-700);
|
|
11
11
|
--tds-radio-button-color-disabled-before: var(--tds-grey-700);
|
|
12
12
|
}
|