@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
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { formatHtmlPreview } from '../../utils/utils';
|
|
2
|
+
import readme from './readme.md';
|
|
3
|
+
import readmeItem from './accordion-item/readme.md';
|
|
4
|
+
import { ComponentsFolder } from '../../utils/constants';
|
|
5
|
+
export default {
|
|
6
|
+
title: `${ComponentsFolder}/Accordion`,
|
|
7
|
+
argTypes: {
|
|
8
|
+
modeVariant: {
|
|
9
|
+
name: 'Mode variant',
|
|
10
|
+
description: 'Mode variant adjusts component colors to have better visibility depending on global mode and background.',
|
|
11
|
+
control: {
|
|
12
|
+
type: 'radio',
|
|
13
|
+
},
|
|
14
|
+
options: ['Inherit from parent', 'Primary', 'Secondary'],
|
|
15
|
+
table: {
|
|
16
|
+
defaultValue: { summary: 'Inherit from parent' },
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
iconPosition: {
|
|
20
|
+
name: 'Expand icon position',
|
|
21
|
+
description: 'Sets the horizontal position of the expand icon.',
|
|
22
|
+
control: {
|
|
23
|
+
type: 'radio',
|
|
24
|
+
},
|
|
25
|
+
options: { End: 'end', Start: 'start' },
|
|
26
|
+
table: {
|
|
27
|
+
defaultValue: { summary: 'end' },
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
paddingReset: {
|
|
31
|
+
name: 'Less padding right',
|
|
32
|
+
description: 'Sets less padding on the right inside Accordion Items.',
|
|
33
|
+
control: {
|
|
34
|
+
type: 'boolean',
|
|
35
|
+
},
|
|
36
|
+
table: {
|
|
37
|
+
defaultValue: { summary: false },
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
disabled: {
|
|
41
|
+
name: 'Disable all items',
|
|
42
|
+
description: 'Disables all Accordion Items.',
|
|
43
|
+
control: {
|
|
44
|
+
type: 'boolean',
|
|
45
|
+
},
|
|
46
|
+
table: {
|
|
47
|
+
defaultValue: { summary: false },
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
parameters: {
|
|
52
|
+
notes: { 'Accordion': readme, 'Accordion Item': readmeItem },
|
|
53
|
+
design: [
|
|
54
|
+
{
|
|
55
|
+
name: 'Figma',
|
|
56
|
+
type: 'figma',
|
|
57
|
+
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=2762%3A84&t=rVXuTOgTmXPauyHd-1',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: 'Link',
|
|
61
|
+
type: 'link',
|
|
62
|
+
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=2762%3A84&t=rVXuTOgTmXPauyHd-1',
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
},
|
|
66
|
+
args: {
|
|
67
|
+
modeVariant: 'Inherit from parent',
|
|
68
|
+
iconPosition: 'end',
|
|
69
|
+
paddingReset: false,
|
|
70
|
+
disabled: false,
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
const Template = ({ disabled, iconPosition, paddingReset, modeVariant }) => {
|
|
74
|
+
const affixAttr = iconPosition === 'start' ? 'expand-icon-position="start"' : '';
|
|
75
|
+
const disabledAttr = disabled ? 'disabled' : '';
|
|
76
|
+
const paddingResetAttr = paddingReset ? 'padding-reset' : '';
|
|
77
|
+
return formatHtmlPreview(`
|
|
78
|
+
<tds-accordion ${modeVariant !== 'Inherit from parent' ? `mode-variant="${modeVariant.toLowerCase()}"` : ''}>
|
|
79
|
+
<tds-accordion-item header="First item" ${affixAttr} ${disabledAttr} ${paddingResetAttr}>
|
|
80
|
+
This is the panel, which contains associated information with the header. Usually it contains text, set in the same size as the header.
|
|
81
|
+
Lorem ipsum doler sit amet.
|
|
82
|
+
</tds-accordion-item>
|
|
83
|
+
<tds-accordion-item ${affixAttr} ${disabledAttr} ${paddingResetAttr} expanded>
|
|
84
|
+
<div slot="header">Second item</div>
|
|
85
|
+
This is the panel, which contains associated information with the header. Usually it contains text, set in the same size as the header.
|
|
86
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis laoreet vestibulum fermentum.
|
|
87
|
+
</tds-accordion-item>
|
|
88
|
+
</tds-accordion>
|
|
89
|
+
|
|
90
|
+
<!-- Script tag for demo purposes -->
|
|
91
|
+
<script>
|
|
92
|
+
accordionItems = document.querySelectorAll('tds-accordion-item');
|
|
93
|
+
for (let i = 0; i < accordionItems.length; i++) {
|
|
94
|
+
accordionItems[i].addEventListener('tdsToggle',(event) => {
|
|
95
|
+
console.log(event)
|
|
96
|
+
})
|
|
97
|
+
}
|
|
98
|
+
</script>`);
|
|
99
|
+
};
|
|
100
|
+
export const Default = Template.bind({});
|
|
@@ -22,9 +22,9 @@ export class TdsBadge {
|
|
|
22
22
|
}
|
|
23
23
|
else {
|
|
24
24
|
// eslint-disable-next-line no-unused-expressions, @typescript-eslint/no-unused-expressions
|
|
25
|
-
this.value !== '' && this.size !== 'sm'
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
if (this.value !== '' && this.size !== 'sm') {
|
|
26
|
+
console.warn('The provided value is either empty or string, please provide value as number.');
|
|
27
|
+
}
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
@@ -77,7 +77,7 @@ export class TdsBadge {
|
|
|
77
77
|
"text": "Changes visibility of Badge"
|
|
78
78
|
},
|
|
79
79
|
"attribute": "hidden",
|
|
80
|
-
"reflect":
|
|
80
|
+
"reflect": true,
|
|
81
81
|
"defaultValue": "false"
|
|
82
82
|
},
|
|
83
83
|
"size": {
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { formatHtmlPreview } from '../../utils/utils';
|
|
2
|
+
import readme from './readme.md';
|
|
3
|
+
import { ComponentsFolder } from '../../utils/constants';
|
|
4
|
+
export default {
|
|
5
|
+
title: `${ComponentsFolder}/Badge`,
|
|
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=7477%3A297479&t=rVXuTOgTmXPauyHd-1',
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: 'Link',
|
|
17
|
+
type: 'link',
|
|
18
|
+
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=7477%3A297479&t=rVXuTOgTmXPauyHd-1',
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
},
|
|
22
|
+
argTypes: {
|
|
23
|
+
size: {
|
|
24
|
+
name: 'Size',
|
|
25
|
+
description: 'Sets the size of the component.',
|
|
26
|
+
control: {
|
|
27
|
+
type: 'radio',
|
|
28
|
+
},
|
|
29
|
+
options: {
|
|
30
|
+
Large: 'lg',
|
|
31
|
+
Small: 'sm',
|
|
32
|
+
},
|
|
33
|
+
table: {
|
|
34
|
+
defaultValue: { summary: 'lg' },
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
value: {
|
|
38
|
+
name: 'Value',
|
|
39
|
+
description: 'Sets a value to show on the Badge.',
|
|
40
|
+
control: {
|
|
41
|
+
type: 'number',
|
|
42
|
+
},
|
|
43
|
+
if: { arg: 'size', neq: 'sm' },
|
|
44
|
+
},
|
|
45
|
+
hidden: {
|
|
46
|
+
name: 'Hidden',
|
|
47
|
+
description: 'Toggles visibility of the Badge.',
|
|
48
|
+
control: {
|
|
49
|
+
type: 'boolean',
|
|
50
|
+
},
|
|
51
|
+
table: {
|
|
52
|
+
defaultValue: { summary: false },
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
demoCode: {
|
|
56
|
+
name: 'Demo code',
|
|
57
|
+
description: 'Displays code example of component usage. Not part of component props.',
|
|
58
|
+
control: {
|
|
59
|
+
type: 'boolean',
|
|
60
|
+
},
|
|
61
|
+
table: {
|
|
62
|
+
defaultValue: { summary: false },
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
args: {
|
|
67
|
+
size: 'lg',
|
|
68
|
+
value: 1,
|
|
69
|
+
hidden: false,
|
|
70
|
+
demoCode: false,
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
const Template = ({ value, size, hidden, demoCode }) => formatHtmlPreview(`
|
|
74
|
+
${demoCode
|
|
75
|
+
? `<style>
|
|
76
|
+
/* Note: Demo classes used here are just for demo purposes in Storybook */
|
|
77
|
+
.badge-demo-box {
|
|
78
|
+
margin:5px;
|
|
79
|
+
height: 32px;
|
|
80
|
+
width: 32px;
|
|
81
|
+
position: relative;
|
|
82
|
+
background-color: #C4C4C4;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.badge-demo-box tds-badge[size="lg"]{
|
|
86
|
+
position: absolute;
|
|
87
|
+
left: 16px;
|
|
88
|
+
top: -5px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.badge-demo-box tds-badge[size="sm"]{
|
|
92
|
+
position: absolute;
|
|
93
|
+
left: 26px;
|
|
94
|
+
top: -2px;
|
|
95
|
+
}
|
|
96
|
+
</style>`
|
|
97
|
+
: ''}
|
|
98
|
+
|
|
99
|
+
<div class="${demoCode ? 'badge-demo-box' : ''}">
|
|
100
|
+
<tds-badge
|
|
101
|
+
${value ? `value="${value}"` : ''}
|
|
102
|
+
${hidden ? 'hidden' : ''}
|
|
103
|
+
size="${size}">
|
|
104
|
+
</tds-badge>
|
|
105
|
+
</div>`);
|
|
106
|
+
export const Default = Template.bind({});
|
|
@@ -45,34 +45,37 @@
|
|
|
45
45
|
:host .banner-icon.information {
|
|
46
46
|
color: var(--tds-banner-prefix-info-color);
|
|
47
47
|
}
|
|
48
|
-
:host .
|
|
48
|
+
:host .content {
|
|
49
49
|
color: var(--tds-banner-text-color);
|
|
50
50
|
display: flex;
|
|
51
51
|
flex-direction: column;
|
|
52
52
|
flex-grow: 1;
|
|
53
53
|
padding: 16px 0;
|
|
54
54
|
}
|
|
55
|
-
:host .
|
|
55
|
+
:host .content.no-icon {
|
|
56
56
|
padding-left: 16px;
|
|
57
57
|
}
|
|
58
|
-
:host .
|
|
58
|
+
:host .header-subheader {
|
|
59
|
+
display: flex;
|
|
60
|
+
flex-direction: column;
|
|
61
|
+
gap: 4px;
|
|
62
|
+
}
|
|
63
|
+
:host .header,
|
|
64
|
+
:host slot[name=header] {
|
|
59
65
|
font: var(--tds-headline-06);
|
|
60
66
|
letter-spacing: var(--tds-headline-06-ls);
|
|
61
67
|
}
|
|
62
|
-
:host .
|
|
68
|
+
:host .subheader,
|
|
69
|
+
:host slot[name=subheader] {
|
|
63
70
|
display: block;
|
|
64
|
-
margin-top: 4px;
|
|
65
71
|
font: var(--tds-detail-02);
|
|
66
72
|
letter-spacing: var(--tds-detail-02-ls);
|
|
67
73
|
}
|
|
68
|
-
:host
|
|
74
|
+
:host slot[name=bottom]::slotted(*) {
|
|
69
75
|
display: block;
|
|
70
76
|
width: fit-content;
|
|
71
77
|
margin-top: 16px;
|
|
72
78
|
}
|
|
73
|
-
:host .banner-content .banner-link.no-subheader slot[name=banner-link] {
|
|
74
|
-
margin-top: 4px;
|
|
75
|
-
}
|
|
76
79
|
:host .banner-close {
|
|
77
80
|
color: var(--tds-banner-x-color);
|
|
78
81
|
}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { Host, h } from '@stencil/core';
|
|
2
|
+
import { generateUniqueId, hasSlot } from '../../utils/utils';
|
|
3
|
+
/**
|
|
4
|
+
* @slot header - Slot for the Header of the Banner
|
|
5
|
+
* @slot subheader - Slot for the Subheader of the Banner
|
|
6
|
+
* @slot bottom - Slot for the bottom part of the Banner, used for links.
|
|
7
|
+
*/
|
|
2
8
|
export class TdsBanner {
|
|
3
9
|
constructor() {
|
|
4
10
|
this.handleClose = () => {
|
|
@@ -19,20 +25,19 @@ export class TdsBanner {
|
|
|
19
25
|
};
|
|
20
26
|
this.icon = undefined;
|
|
21
27
|
this.header = undefined;
|
|
28
|
+
this.subheader = undefined;
|
|
22
29
|
this.type = 'none';
|
|
23
|
-
this.bannerId =
|
|
30
|
+
this.bannerId = generateUniqueId();
|
|
24
31
|
this.persistent = false;
|
|
25
32
|
this.hidden = false;
|
|
26
|
-
this.hasSubheader = undefined;
|
|
27
|
-
this.hasLink = undefined;
|
|
28
33
|
}
|
|
29
34
|
/** Hides the Banner. */
|
|
30
35
|
async hideBanner() {
|
|
31
|
-
this.
|
|
36
|
+
this.hidden = true;
|
|
32
37
|
}
|
|
33
38
|
/** Shows the Banner */
|
|
34
39
|
async showBanner() {
|
|
35
|
-
this.
|
|
40
|
+
this.hidden = false;
|
|
36
41
|
}
|
|
37
42
|
connectedCallback() {
|
|
38
43
|
if (this.type === 'error') {
|
|
@@ -41,12 +46,12 @@ export class TdsBanner {
|
|
|
41
46
|
else if (this.type === 'information') {
|
|
42
47
|
this.icon = 'info';
|
|
43
48
|
}
|
|
44
|
-
const children = Array.from(this.host.children);
|
|
45
|
-
this.hasSubheader = children.some((childElement) => childElement.slot === 'banner-subheader');
|
|
46
|
-
this.hasLink = children.some((childElement) => childElement.slot === 'banner-link');
|
|
47
49
|
}
|
|
48
50
|
render() {
|
|
49
|
-
|
|
51
|
+
const usesHeaderSlot = hasSlot('subheader', this.host);
|
|
52
|
+
const usesSubheaderSlot = hasSlot('subheader', this.host);
|
|
53
|
+
const usesBottomSlot = hasSlot('bottom', this.host);
|
|
54
|
+
return (h(Host, { role: "banner", "aria-hidden": `${this.hidden}`, "aria-live": this.host.getAttribute('aria-live') ? this.host.getAttribute('aria-live') : 'polite', "aria-atomic": this.host.getAttribute('aria-atomic'), class: `${this.type} ${this.hidden ? 'hide' : 'show'}` }, this.icon && (h("div", { class: `banner-icon ${this.type}` }, h("tds-icon", { name: this.icon, size: "20px" }))), h("div", { class: "content" }, h("div", { class: "header-subheader" }, this.header && h("div", { class: "header" }, this.header), usesHeaderSlot && h("slot", { name: "header" }), this.subheader && h("div", { class: "subheader" }, this.subheader), usesSubheaderSlot && h("slot", { name: "subheader" })), usesBottomSlot && h("slot", { name: "bottom" })), !this.persistent && (h("div", { class: `banner-close` }, h("button", { onClick: () => {
|
|
50
55
|
this.handleClose();
|
|
51
56
|
} }, h("tds-icon", { name: "cross", size: "20px" }))))));
|
|
52
57
|
}
|
|
@@ -98,6 +103,23 @@ export class TdsBanner {
|
|
|
98
103
|
"attribute": "header",
|
|
99
104
|
"reflect": false
|
|
100
105
|
},
|
|
106
|
+
"subheader": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"mutable": false,
|
|
109
|
+
"complexType": {
|
|
110
|
+
"original": "string",
|
|
111
|
+
"resolved": "string",
|
|
112
|
+
"references": {}
|
|
113
|
+
},
|
|
114
|
+
"required": false,
|
|
115
|
+
"optional": false,
|
|
116
|
+
"docs": {
|
|
117
|
+
"tags": [],
|
|
118
|
+
"text": "Subheader text."
|
|
119
|
+
},
|
|
120
|
+
"attribute": "subheader",
|
|
121
|
+
"reflect": false
|
|
122
|
+
},
|
|
101
123
|
"type": {
|
|
102
124
|
"type": "string",
|
|
103
125
|
"mutable": false,
|
|
@@ -132,7 +154,7 @@ export class TdsBanner {
|
|
|
132
154
|
},
|
|
133
155
|
"attribute": "banner-id",
|
|
134
156
|
"reflect": false,
|
|
135
|
-
"defaultValue": "
|
|
157
|
+
"defaultValue": "generateUniqueId()"
|
|
136
158
|
},
|
|
137
159
|
"persistent": {
|
|
138
160
|
"type": "boolean",
|
|
@@ -167,17 +189,11 @@ export class TdsBanner {
|
|
|
167
189
|
"text": "Hides the Banner"
|
|
168
190
|
},
|
|
169
191
|
"attribute": "hidden",
|
|
170
|
-
"reflect":
|
|
192
|
+
"reflect": true,
|
|
171
193
|
"defaultValue": "false"
|
|
172
194
|
}
|
|
173
195
|
};
|
|
174
196
|
}
|
|
175
|
-
static get states() {
|
|
176
|
-
return {
|
|
177
|
-
"hasSubheader": {},
|
|
178
|
-
"hasLink": {}
|
|
179
|
-
};
|
|
180
|
-
}
|
|
181
197
|
static get events() {
|
|
182
198
|
return [{
|
|
183
199
|
"method": "tdsClose",
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { formatHtmlPreview } from '../../utils/utils';
|
|
2
|
+
import { iconsNames } from '../icon/iconsArray';
|
|
3
|
+
import readme from './readme.md';
|
|
4
|
+
import { ComponentsFolder } from '../../utils/constants';
|
|
5
|
+
// FIXME: CMS: Change state to type in Code tab of component
|
|
6
|
+
export default {
|
|
7
|
+
title: `${ComponentsFolder}/Banner`,
|
|
8
|
+
parameters: {
|
|
9
|
+
notes: readme,
|
|
10
|
+
layout: 'fullscreen',
|
|
11
|
+
design: [
|
|
12
|
+
{
|
|
13
|
+
name: 'Figma',
|
|
14
|
+
type: 'figma',
|
|
15
|
+
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=5927%3A497&t=rVXuTOgTmXPauyHd-1',
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
name: 'Link',
|
|
19
|
+
type: 'link',
|
|
20
|
+
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=5927%3A497&t=rVXuTOgTmXPauyHd-1',
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
},
|
|
24
|
+
argTypes: {
|
|
25
|
+
type: {
|
|
26
|
+
name: 'Type',
|
|
27
|
+
description: 'Changes the type of the component.',
|
|
28
|
+
options: ['Default', 'Error', 'Information'],
|
|
29
|
+
control: {
|
|
30
|
+
type: 'radio',
|
|
31
|
+
},
|
|
32
|
+
table: {
|
|
33
|
+
defaultValue: { summary: 'none' },
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
header: {
|
|
37
|
+
name: 'Header',
|
|
38
|
+
description: 'Sets text to be displayed in the header section.',
|
|
39
|
+
control: {
|
|
40
|
+
type: 'text',
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
subheader: {
|
|
44
|
+
name: 'Subheader',
|
|
45
|
+
description: 'Sets text to be displayed in the subheader section.',
|
|
46
|
+
control: {
|
|
47
|
+
type: 'text',
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
bottom: {
|
|
51
|
+
name: 'Bottom slot',
|
|
52
|
+
description: 'Slot for the bottom part of the Banner, used for links.',
|
|
53
|
+
control: {
|
|
54
|
+
type: 'text',
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
icon: {
|
|
58
|
+
name: 'Icon',
|
|
59
|
+
description: 'Name of icon to display, choose `none` to remove the icon.',
|
|
60
|
+
control: {
|
|
61
|
+
type: 'select',
|
|
62
|
+
},
|
|
63
|
+
options: [...iconsNames, 'none'],
|
|
64
|
+
if: { arg: 'type', eq: 'Default' },
|
|
65
|
+
},
|
|
66
|
+
persistent: {
|
|
67
|
+
name: 'Disable closing',
|
|
68
|
+
description: `Removes the 'close button' in the Banner.`,
|
|
69
|
+
control: {
|
|
70
|
+
type: 'boolean',
|
|
71
|
+
},
|
|
72
|
+
table: {
|
|
73
|
+
defaultValue: { summary: false },
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
args: {
|
|
78
|
+
type: 'Default',
|
|
79
|
+
header: 'This is a header text area',
|
|
80
|
+
subheader: 'This is the subheader text area',
|
|
81
|
+
bottom: '<tds-link slot="bottom" ><a href="/">Link example</a></tds-link>',
|
|
82
|
+
icon: 'truck',
|
|
83
|
+
persistent: false,
|
|
84
|
+
},
|
|
85
|
+
};
|
|
86
|
+
const Template = ({ type, icon, header, subheader, persistent, bottom }) => formatHtmlPreview(`
|
|
87
|
+
<tds-banner
|
|
88
|
+
${type !== 'Default' ? `type="${type.toLowerCase()}"` : ''}
|
|
89
|
+
${icon !== 'none' ? `icon="${icon}"` : ''}
|
|
90
|
+
${header !== '' ? `header="${header}"` : ''}
|
|
91
|
+
${subheader ? `subheader="${subheader}"` : ''}
|
|
92
|
+
${persistent ? `persistent` : ''}
|
|
93
|
+
>
|
|
94
|
+
${bottom ? `${bottom}` : ''}
|
|
95
|
+
</tds-banner>
|
|
96
|
+
|
|
97
|
+
<!-- Script tag with eventlistener for demo purposes. -->
|
|
98
|
+
<script>
|
|
99
|
+
document.addEventListener('tdsClose', (event) => {
|
|
100
|
+
console.log(event)
|
|
101
|
+
})
|
|
102
|
+
document.addEventListener('tdsShow', (event) => {
|
|
103
|
+
console.log(event)
|
|
104
|
+
})
|
|
105
|
+
</script>
|
|
106
|
+
`);
|
|
107
|
+
export const Default = Template.bind({});
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { formatHtmlPreview } from '../../utils/utils';
|
|
2
|
+
import readme from './readme.md';
|
|
3
|
+
import { ComponentsFolder } from '../../utils/constants';
|
|
4
|
+
export default {
|
|
5
|
+
title: `${ComponentsFolder}/Block`,
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: 'padded',
|
|
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=9743%3A24020&t=rVXuTOgTmXPauyHd-1',
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: 'Link',
|
|
17
|
+
type: 'link',
|
|
18
|
+
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=9743%3A24020&t=rVXuTOgTmXPauyHd-1',
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
},
|
|
22
|
+
argTypes: {
|
|
23
|
+
modeVariant: {
|
|
24
|
+
name: 'Mode variant',
|
|
25
|
+
description: 'Mode variant adjusts component colors to have better visibility depending on global mode and background. ',
|
|
26
|
+
control: {
|
|
27
|
+
type: 'radio',
|
|
28
|
+
},
|
|
29
|
+
options: ['Inherit from parent', 'Primary', 'Secondary'],
|
|
30
|
+
table: {
|
|
31
|
+
defaultValue: { summary: 'Inherit from parent' },
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
args: {
|
|
36
|
+
modeVariant: 'Inherit from parent',
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
const Template = ({ modeVariant }) => formatHtmlPreview(`
|
|
40
|
+
<tds-block ${modeVariant !== 'Inherit from parent' ? `mode-variant="${modeVariant.toLowerCase()}"` : ''}>
|
|
41
|
+
<h2 class="tds-headline-02">Block</h2>
|
|
42
|
+
<p class="tds-body-01">Lorem ipsum dolor sit amet, consectetur adipiscing elit. In condimentum nisi ut eleifend ultrices. Nunc venenatis maximus sapien, ac bibendum nisl aliquam in. Morbi ac velit et ligula consectetur interdum. Vestibulum condimentum, augue vitae lobortis rhoncus, mi est ultricies mi, sed tincidunt magna nibh in lectus. Pellentesque vel vulputate orci, vel lacinia orci. Sed suscipit leo at diam ullamcorper, vitae volutpat neque dapibus. Maecenas sit amet rhoncus arcu. Sed sed molestie elit. Nullam in interdum est, vitae aliquam ipsum. Nunc rutrum nibh ut arcu egestas egestas.</p>
|
|
43
|
+
<tds-block>
|
|
44
|
+
<h3 class="tds-headline-04">Nested block</h3>
|
|
45
|
+
<p class="tds-detail-03">Lorem ipsum dolor sit amet, consectetur adipiscing elit. In condimentum nisi ut eleifend ultrices. Nunc venenatis maximus sapien, ac bibendum nisl aliquam in. Morbi ac velit et ligula consectetur interdum. Vestibulum condimentum, augue vitae lobortis rhoncus, mi est ultricies mi, sed tincidunt magna nibh in lectus. Pellentesque vel vulputate orci, vel lacinia orci. Sed suscipit leo at diam ullamcorper, vitae volutpat neque dapibus. Maecenas sit amet rhoncus arcu. Sed sed molestie elit. Nullam in interdum est, vitae aliquam ipsum. Nunc rutrum nibh ut arcu egestas egestas.</p>
|
|
46
|
+
</tds-block>
|
|
47
|
+
</tds-block>
|
|
48
|
+
`);
|
|
49
|
+
export const Default = Template.bind({});
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
outline: 2px solid var(--tds-blue-400);
|
|
12
12
|
outline-offset: -2px;
|
|
13
13
|
}
|
|
14
|
-
[role=listitem].
|
|
14
|
+
[role=listitem].current ::slotted(*),
|
|
15
15
|
[role=listitem] [aria-current=page] ::slotted(*) {
|
|
16
16
|
pointer-events: none;
|
|
17
17
|
cursor: default;
|
|
18
|
-
color: var(--tds-breadcrumb-color-
|
|
18
|
+
color: var(--tds-breadcrumb-color-current);
|
|
19
19
|
}
|
|
20
|
-
[role=listitem].
|
|
20
|
+
[role=listitem].current:hover ::slotted(*),
|
|
21
21
|
[role=listitem] [aria-current=page]:hover ::slotted(*) {
|
|
22
22
|
text-decoration: none;
|
|
23
23
|
cursor: not-allowed;
|
|
@@ -32,6 +32,6 @@
|
|
|
32
32
|
height: 8px;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
:host(
|
|
35
|
+
:host(:last-of-type) ::slotted(*)::after {
|
|
36
36
|
display: none;
|
|
37
37
|
}
|
|
@@ -2,11 +2,9 @@ import { h } from '@stencil/core';
|
|
|
2
2
|
export class TdsBreadcrumb {
|
|
3
3
|
constructor() {
|
|
4
4
|
this.current = false;
|
|
5
|
-
this.disabled = false;
|
|
6
5
|
}
|
|
7
6
|
render() {
|
|
8
|
-
return (h("div", { role: "listitem", class: `${this.current ? 'current' : ''}
|
|
9
|
-
${this.disabled ? 'disabled' : ''}` }, h("slot", null)));
|
|
7
|
+
return (h("div", { role: "listitem", class: `${this.current ? 'current' : ''}` }, h("slot", null)));
|
|
10
8
|
}
|
|
11
9
|
static get is() { return "tds-breadcrumb"; }
|
|
12
10
|
static get encapsulation() { return "shadow"; }
|
|
@@ -39,24 +37,6 @@ export class TdsBreadcrumb {
|
|
|
39
37
|
"attribute": "current",
|
|
40
38
|
"reflect": false,
|
|
41
39
|
"defaultValue": "false"
|
|
42
|
-
},
|
|
43
|
-
"disabled": {
|
|
44
|
-
"type": "boolean",
|
|
45
|
-
"mutable": false,
|
|
46
|
-
"complexType": {
|
|
47
|
-
"original": "boolean",
|
|
48
|
-
"resolved": "boolean",
|
|
49
|
-
"references": {}
|
|
50
|
-
},
|
|
51
|
-
"required": false,
|
|
52
|
-
"optional": false,
|
|
53
|
-
"docs": {
|
|
54
|
-
"tags": [],
|
|
55
|
-
"text": "Toggle the disabled state for the Breadcrumb"
|
|
56
|
-
},
|
|
57
|
-
"attribute": "disabled",
|
|
58
|
-
"reflect": false,
|
|
59
|
-
"defaultValue": "false"
|
|
60
40
|
}
|
|
61
41
|
};
|
|
62
42
|
}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { h } from '@stencil/core';
|
|
2
2
|
export class TdsBreadcrumbs {
|
|
3
|
-
connectedCallback() {
|
|
4
|
-
this.el.children[this.el.children.length - 1].classList.add('last');
|
|
5
|
-
}
|
|
6
3
|
render() {
|
|
7
4
|
return (h("nav", null, h("div", { role: "list", class: 'tds-breadcrumb' }, h("slot", null))));
|
|
8
5
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import itemReadme from './breadcrumb/readme.md';
|
|
2
|
+
import readme from './readme.md';
|
|
3
|
+
import { formatHtmlPreview } from '../../utils/utils';
|
|
4
|
+
import { ComponentsFolder } from '../../utils/constants';
|
|
5
|
+
export default {
|
|
6
|
+
title: `${ComponentsFolder}/Breadcrumbs`,
|
|
7
|
+
parameters: {
|
|
8
|
+
notes: { Breadcrumbs: readme, Breadcrumb: itemReadme },
|
|
9
|
+
design: [
|
|
10
|
+
{
|
|
11
|
+
name: 'Figma',
|
|
12
|
+
type: 'figma',
|
|
13
|
+
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=2703%3A4725&t=rVXuTOgTmXPauyHd-1',
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: 'Link',
|
|
17
|
+
type: 'link',
|
|
18
|
+
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=2703%3A4725&t=rVXuTOgTmXPauyHd-1',
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
const Template = () => formatHtmlPreview(`
|
|
24
|
+
<tds-breadcrumbs>
|
|
25
|
+
<tds-breadcrumb>
|
|
26
|
+
<a href="#">Page 1</a>
|
|
27
|
+
</tds-breadcrumb>
|
|
28
|
+
<tds-breadcrumb>
|
|
29
|
+
<a href="#">Page 2</a>
|
|
30
|
+
</tds-breadcrumb>
|
|
31
|
+
<tds-breadcrumb current>
|
|
32
|
+
<a href="#">Page 3</a>
|
|
33
|
+
</tds-breadcrumb>
|
|
34
|
+
</tds-breadcrumbs>
|
|
35
|
+
`);
|
|
36
|
+
export const Default = Template.bind({});
|