@scania/tegel 1.0.0 → 1.0.1
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 +178 -178
- package/components/checkbox.js +75 -0
- package/{dist/components → components}/core-header-item.js +1 -0
- package/{dist/components → components}/divider.js +1 -0
- package/{dist/components → components}/header-dropdown-list-item.js +1 -0
- package/{dist/components → components}/header-dropdown-list.js +1 -0
- package/{dist/components → components}/header-item.js +1 -0
- package/{dist/components → components}/header-launcher-button.js +1 -0
- package/{dist/components → components}/icon.js +2 -1
- package/{dist/components → components}/popover-canvas.js +1 -0
- package/{dist/components → components}/popover-core.js +1 -0
- package/{dist/components → components}/side-menu-item.js +1 -0
- package/{dist/components → components}/side-menu-user-image.js +1 -0
- package/{dist/components → components}/side-menu-user-label.js +1 -0
- package/{dist/components → components}/tds-accordion-item.d.ts +1 -1
- package/{dist/components → components}/tds-accordion-item.js +6 -5
- package/{dist/components → components}/tds-accordion.d.ts +1 -1
- package/{dist/components → components}/tds-accordion.js +1 -0
- package/{dist/components → components}/tds-badge.d.ts +1 -1
- package/{dist/components → components}/tds-badge.js +1 -0
- package/{dist/components → components}/tds-banner.d.ts +1 -1
- package/{dist/components → components}/tds-banner.js +1 -9
- package/{dist/components → components}/tds-block.d.ts +1 -1
- package/{dist/components → components}/tds-block.js +1 -0
- package/{dist/components → components}/tds-body-cell.d.ts +1 -1
- package/{dist/components → components}/tds-body-cell.js +1 -0
- package/{dist/components → components}/tds-breadcrumb.d.ts +1 -1
- package/{dist/components → components}/tds-breadcrumb.js +1 -0
- package/{dist/components → components}/tds-breadcrumbs.d.ts +1 -1
- package/{dist/components → components}/tds-breadcrumbs.js +1 -0
- package/{dist/components → components}/tds-button.d.ts +1 -1
- package/{dist/components → components}/tds-button.js +1 -0
- package/{dist/components → components}/tds-card.d.ts +1 -1
- package/{dist/components → components}/tds-card.js +1 -0
- package/{dist/components → components}/tds-checkbox.d.ts +1 -1
- package/{dist/components → components}/tds-chip.d.ts +1 -1
- package/{dist/components → components}/tds-chip.js +1 -0
- package/{dist/components → components}/tds-core-header-item.d.ts +1 -1
- package/{dist/components → components}/tds-datetime.d.ts +1 -1
- package/{dist/components → components}/tds-datetime.js +9 -8
- package/{dist/components → components}/tds-divider.d.ts +1 -1
- package/{dist/components → components}/tds-dropdown-option.d.ts +1 -1
- package/{dist/components → components}/tds-dropdown-option.js +6 -5
- package/{dist/components → components}/tds-dropdown.d.ts +1 -1
- package/{dist/components → components}/tds-dropdown.js +18 -17
- package/{dist/components → components}/tds-folder-tab.d.ts +1 -1
- package/{dist/components → components}/tds-folder-tab.js +2 -1
- package/{dist/components → components}/tds-folder-tabs.d.ts +1 -1
- package/{dist/components → components}/tds-folder-tabs.js +1 -0
- package/{dist/components → components}/tds-footer-group.d.ts +1 -1
- package/{dist/components → components}/tds-footer-group.js +3 -2
- package/{dist/components → components}/tds-footer-item.d.ts +1 -1
- package/{dist/components → components}/tds-footer-item.js +1 -0
- package/{dist/components → components}/tds-footer.d.ts +1 -1
- package/{dist/components → components}/tds-footer.js +1 -0
- package/{dist/components → components}/tds-header-brand-symbol.d.ts +1 -1
- package/{dist/components → components}/tds-header-brand-symbol.js +1 -0
- package/{dist/components → components}/tds-header-cell.d.ts +1 -1
- package/{dist/components → components}/tds-header-cell.js +1 -0
- package/{dist/components → components}/tds-header-dropdown-list-item.d.ts +1 -1
- package/{dist/components → components}/tds-header-dropdown-list-user.d.ts +1 -1
- package/{dist/components → components}/tds-header-dropdown-list-user.js +1 -0
- package/{dist/components → components}/tds-header-dropdown-list.d.ts +1 -1
- package/{dist/components → components}/tds-header-dropdown.d.ts +1 -1
- package/{dist/components → components}/tds-header-dropdown.js +1 -0
- package/{dist/components → components}/tds-header-hamburger.d.ts +1 -1
- package/{dist/components → components}/tds-header-hamburger.js +1 -0
- package/{dist/components → components}/tds-header-item.d.ts +1 -1
- package/{dist/components → components}/tds-header-launcher-button.d.ts +1 -1
- package/{dist/components → components}/tds-header-launcher-grid-item.d.ts +1 -1
- package/{dist/components → components}/tds-header-launcher-grid-item.js +1 -0
- package/{dist/components → components}/tds-header-launcher-grid-title.d.ts +1 -1
- package/{dist/components → components}/tds-header-launcher-grid-title.js +1 -0
- package/{dist/components → components}/tds-header-launcher-grid.d.ts +1 -1
- package/{dist/components → components}/tds-header-launcher-grid.js +1 -0
- package/{dist/components → components}/tds-header-launcher-list-item.d.ts +1 -1
- package/{dist/components → components}/tds-header-launcher-list-item.js +1 -0
- package/{dist/components → components}/tds-header-launcher-list-title.d.ts +1 -1
- package/{dist/components → components}/tds-header-launcher-list-title.js +1 -0
- package/{dist/components → components}/tds-header-launcher-list.d.ts +1 -1
- package/{dist/components → components}/tds-header-launcher-list.js +1 -0
- package/{dist/components → components}/tds-header-launcher.d.ts +1 -1
- package/{dist/components → components}/tds-header-launcher.js +1 -0
- package/{dist/components → components}/tds-header-title.d.ts +1 -1
- package/{dist/components → components}/tds-header-title.js +1 -0
- package/{dist/components → components}/tds-header.d.ts +1 -1
- package/{dist/components → components}/tds-header.js +1 -0
- package/{dist/components → components}/tds-icon.d.ts +1 -1
- package/{dist/components → components}/tds-inline-tab.d.ts +1 -1
- package/{dist/components → components}/tds-inline-tab.js +2 -1
- package/{dist/components → components}/tds-inline-tabs.d.ts +1 -1
- package/{dist/components → components}/tds-inline-tabs.js +1 -0
- package/{dist/components → components}/tds-link.d.ts +1 -1
- package/{dist/components → components}/tds-link.js +4 -3
- package/{dist/components → components}/tds-message.d.ts +1 -1
- package/{dist/components → components}/tds-message.js +4 -3
- package/{dist/components → components}/tds-modal.d.ts +1 -1
- package/{dist/components → components}/tds-modal.js +1 -0
- package/{dist/components → components}/tds-navigation-tab.d.ts +1 -1
- package/{dist/components → components}/tds-navigation-tab.js +2 -1
- package/{dist/components → components}/tds-navigation-tabs.d.ts +1 -1
- package/{dist/components → components}/tds-navigation-tabs.js +1 -0
- package/{dist/components → components}/tds-popover-canvas.d.ts +1 -1
- package/{dist/components → components}/tds-popover-core.d.ts +1 -1
- package/{dist/components → components}/tds-popover-menu-item.d.ts +1 -1
- package/{dist/components → components}/tds-popover-menu-item.js +1 -0
- package/{dist/components → components}/tds-popover-menu.d.ts +1 -1
- package/{dist/components → components}/tds-popover-menu.js +1 -0
- package/{dist/components → components}/tds-radio-button.d.ts +1 -1
- package/{dist/components → components}/tds-radio-button.js +1 -0
- package/{dist/components → components}/tds-side-menu-close-button.d.ts +1 -1
- package/{dist/components → components}/tds-side-menu-close-button.js +1 -0
- package/{dist/components → components}/tds-side-menu-collapse-button.d.ts +1 -1
- package/{dist/components → components}/tds-side-menu-collapse-button.js +1 -0
- package/{dist/components → components}/tds-side-menu-dropdown-list-item.d.ts +1 -1
- package/{dist/components → components}/tds-side-menu-dropdown-list-item.js +1 -0
- package/{dist/components → components}/tds-side-menu-dropdown-list.d.ts +1 -1
- package/{dist/components → components}/tds-side-menu-dropdown-list.js +1 -0
- package/{dist/components → components}/tds-side-menu-dropdown.d.ts +1 -1
- package/{dist/components → components}/tds-side-menu-dropdown.js +1 -0
- package/{dist/components → components}/tds-side-menu-item.d.ts +1 -1
- package/{dist/components → components}/tds-side-menu-overlay.d.ts +1 -1
- package/{dist/components → components}/tds-side-menu-overlay.js +1 -0
- package/{dist/components → components}/tds-side-menu-user-image.d.ts +1 -1
- package/{dist/components → components}/tds-side-menu-user-label.d.ts +1 -1
- package/{dist/components → components}/tds-side-menu-user.d.ts +1 -1
- package/{dist/components → components}/tds-side-menu-user.js +1 -0
- package/{dist/components → components}/tds-side-menu.d.ts +1 -1
- package/{dist/components → components}/tds-side-menu.js +1 -0
- package/{dist/components → components}/tds-slider.d.ts +1 -1
- package/{dist/components → components}/tds-slider.js +1 -0
- package/{dist/components → components}/tds-spinner.d.ts +1 -1
- package/{dist/components → components}/tds-spinner.js +1 -0
- package/{dist/components → components}/tds-step.d.ts +1 -1
- package/{dist/components → components}/tds-step.js +1 -0
- package/{dist/components → components}/tds-stepper.d.ts +1 -1
- package/{dist/components → components}/tds-stepper.js +1 -0
- package/{dist/components → components}/tds-table-body-row-expandable.d.ts +1 -1
- package/{dist/components → components}/tds-table-body-row-expandable.js +1 -0
- package/{dist/components → components}/tds-table-body-row.d.ts +1 -1
- package/{dist/components → components}/tds-table-body-row.js +1 -0
- package/{dist/components → components}/tds-table-body.d.ts +1 -1
- package/{dist/components → components}/tds-table-body.js +1 -0
- package/{dist/components → components}/tds-table-footer.d.ts +1 -1
- package/{dist/components → components}/tds-table-footer.js +2 -1
- package/{dist/components → components}/tds-table-header.d.ts +1 -1
- package/{dist/components → components}/tds-table-header.js +1 -0
- package/{dist/components → components}/tds-table-toolbar.d.ts +1 -1
- package/{dist/components → components}/tds-table-toolbar.js +1 -0
- package/{dist/components → components}/tds-table.d.ts +1 -1
- package/{dist/components → components}/tds-table.js +1 -0
- package/{dist/components → components}/tds-text-field.d.ts +1 -1
- package/{dist/components → components}/tds-text-field.js +12 -11
- package/{dist/components → components}/tds-textarea.d.ts +1 -1
- package/{dist/components → components}/tds-textarea.js +11 -10
- package/{dist/components → components}/tds-toast.d.ts +1 -1
- package/{dist/components → components}/tds-toast.js +3 -2
- package/{dist/components → components}/tds-toggle.d.ts +1 -1
- package/{dist/components → components}/tds-toggle.js +1 -0
- package/{dist/components → components}/tds-tooltip.d.ts +1 -1
- package/{dist/components → components}/tds-tooltip.js +1 -0
- package/dist/cjs/tds-accordion-item.cjs.entry.js +5 -5
- package/dist/cjs/tds-banner.cjs.entry.js +0 -9
- package/dist/cjs/tds-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/tds-datetime.cjs.entry.js +8 -8
- package/dist/cjs/tds-dropdown-option.cjs.entry.js +5 -5
- package/dist/cjs/tds-dropdown.cjs.entry.js +17 -17
- package/dist/cjs/tds-folder-tab.cjs.entry.js +1 -1
- package/dist/cjs/tds-footer-group.cjs.entry.js +2 -2
- package/dist/cjs/tds-icon.cjs.entry.js +1 -1
- package/dist/cjs/tds-inline-tab.cjs.entry.js +1 -1
- package/dist/cjs/tds-link.cjs.entry.js +3 -3
- package/dist/cjs/tds-message.cjs.entry.js +3 -3
- package/dist/cjs/tds-navigation-tab.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-footer.cjs.entry.js +1 -1
- package/dist/cjs/tds-text-field.cjs.entry.js +11 -11
- package/dist/cjs/tds-textarea.cjs.entry.js +10 -10
- package/dist/cjs/tds-toast.cjs.entry.js +2 -2
- package/dist/collection/components/accordion/accordion-item/accordion-item.js +6 -6
- package/dist/collection/components/accordion/accordion.stories.js +21 -21
- package/dist/collection/components/badge/badge.stories.js +30 -30
- package/dist/collection/components/banner/banner.js +2 -25
- package/dist/collection/components/banner/banner.stories.js +16 -19
- package/dist/collection/components/block/block.stories.js +9 -9
- package/dist/collection/components/breadcrumbs/breadcrumbs.stories.js +12 -12
- package/dist/collection/components/button/button.stories.js +26 -26
- package/dist/collection/components/card/card.js +2 -2
- package/dist/collection/components/card/card.stories.js +31 -31
- package/dist/collection/components/checkbox/checkbox.css +14 -0
- package/dist/collection/components/checkbox/checkbox.js +1 -1
- package/dist/collection/components/checkbox/checkbox.stories.js +22 -22
- package/dist/collection/components/chip/chip.js +5 -5
- package/dist/collection/components/chip/chip.stories.js +93 -93
- package/dist/collection/components/datetime/datetime.js +8 -8
- package/dist/collection/components/datetime/datetime.stories.js +40 -40
- package/dist/collection/components/divider/divider.stories.js +4 -4
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.css +4 -4
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +5 -5
- package/dist/collection/components/dropdown/dropdown.js +18 -18
- package/dist/collection/components/dropdown/dropdown.stories.js +57 -57
- package/dist/collection/components/footer/footer-group/footer-group.js +2 -2
- package/dist/collection/components/footer/footer.stories.js +93 -93
- package/dist/collection/components/header/header-dropdown/header-dropdown.js +1 -1
- package/dist/collection/components/header/header-item/header-item.js +1 -1
- package/dist/collection/components/header/header-launcher-button/header-launcher-button.js +1 -1
- package/dist/collection/components/header/header.stories.js +31 -31
- package/dist/collection/components/icon/icon.stories.js +2 -2
- package/dist/collection/components/icon/iconsArray.js +115 -115
- package/dist/collection/components/link/link.js +3 -3
- package/dist/collection/components/link/link.stories.js +9 -9
- package/dist/collection/components/message/message.js +3 -3
- package/dist/collection/components/message/message.stories.js +18 -18
- package/dist/collection/components/modal/modal.js +1 -1
- package/dist/collection/components/modal/modal.stories.js +27 -27
- package/dist/collection/components/popover-canvas/popover-canvas.js +1 -1
- package/dist/collection/components/popover-canvas/popover-canvas.stories.js +33 -33
- package/dist/collection/components/popover-core/popover-core.js +1 -1
- package/dist/collection/components/popover-menu/popover-menu.js +1 -1
- package/dist/collection/components/popover-menu/popover-menu.stories.js +60 -60
- package/dist/collection/components/radio-button/radio-button.js +2 -2
- package/dist/collection/components/radio-button/radio-button.stories.js +44 -44
- package/dist/collection/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.js +1 -1
- package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.js +1 -1
- package/dist/collection/components/side-menu/side-menu-item/side-menu-item.js +1 -1
- package/dist/collection/components/side-menu/side-menu.js +4 -4
- package/dist/collection/components/side-menu/side-menu.stories.js +143 -143
- package/dist/collection/components/slider/slider.js +1 -1
- package/dist/collection/components/slider/slider.stories.js +38 -38
- package/dist/collection/components/spinner/spinner.stories.js +5 -5
- package/dist/collection/components/stepper/stepper.js +2 -2
- package/dist/collection/components/stepper/stepper.stories.js +14 -14
- package/dist/collection/components/table/table/table.js +2 -2
- package/dist/collection/components/table/table-body-row/table-body-row.js +1 -1
- package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +1 -1
- package/dist/collection/components/table/table-component-basic.stories.js +51 -51
- package/dist/collection/components/table/table-component-batch-actions.stories.js +58 -58
- package/dist/collection/components/table/table-component-custom-width.stories.js +52 -52
- package/dist/collection/components/table/table-component-expandable-rows.stories.js +38 -38
- package/dist/collection/components/table/table-component-filtering.stories.js +71 -71
- package/dist/collection/components/table/table-component-multiselect.stories.js +73 -73
- package/dist/collection/components/table/table-component-pagination.stories.js +72 -72
- package/dist/collection/components/table/table-component-sorting.stories.js +74 -74
- package/dist/collection/components/table/table-footer/table-footer.css +2 -1
- package/dist/collection/components/table/table-footer/table-footer.js +1 -1
- package/dist/collection/components/table/table-header/table-header.js +1 -1
- package/dist/collection/components/table/table-header-cell/table-header-cell.js +3 -3
- package/dist/collection/components/table/table-toolbar/table-toolbar.js +2 -2
- package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.js +1 -1
- package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +2 -2
- package/dist/collection/components/tabs/folder-tabs/folder-tabs.stories.js +34 -34
- package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.js +1 -1
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +2 -2
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.stories.js +34 -34
- package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.js +1 -1
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +2 -2
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.stories.js +36 -36
- package/dist/collection/components/text-field/text-field.js +12 -12
- package/dist/collection/components/text-field/text-field.stories.js +45 -45
- package/dist/collection/components/textarea/textarea.js +10 -10
- package/dist/collection/components/textarea/textarea.stories.js +40 -40
- package/dist/collection/components/toast/toast.js +3 -3
- package/dist/collection/components/toast/toast.stories.js +15 -15
- package/dist/collection/components/toggle/toggle.js +1 -1
- package/dist/collection/components/toggle/toggle.stories.js +17 -17
- package/dist/collection/components/tooltip/tooltip.stories.js +33 -33
- package/dist/collection/stories/Installation/installation.stories.js +205 -205
- package/dist/collection/stories/announcements/announce-tegel.stories.js +248 -248
- package/dist/collection/stories/announcements/prefix-change.stories.js +79 -79
- package/dist/collection/stories/foundations/color/color-brand.stories.js +24 -24
- package/dist/collection/stories/foundations/color/color-scales.stories.js +18 -18
- package/dist/collection/stories/foundations/color/color-semantic.stories.js +26 -26
- package/dist/collection/stories/foundations/grid/grid.stories.js +334 -334
- package/dist/collection/stories/foundations/spacing/spacing-element.stories.js +90 -90
- package/dist/collection/stories/foundations/spacing/spacing-layout.stories.js +84 -84
- package/dist/collection/stories/foundations/typography/typography-body.stories.js +7 -7
- package/dist/collection/stories/foundations/typography/typography-detail.stories.js +8 -8
- package/dist/collection/stories/foundations/typography/typography-headline.stories.js +17 -17
- package/dist/collection/stories/foundations/typography/typography-paragraph.stories.js +3 -3
- package/dist/collection/stories/patterns/navigation/navigation-basic.stories.js +53 -53
- package/dist/collection/stories/patterns/navigation/navigation-fewitems.stories.js +227 -227
- package/dist/collection/stories/patterns/navigation/navigation-manyitems.stories.js +202 -202
- package/dist/collection/stories/patterns/navigation/navigation-user-menu.stories.js +98 -98
- package/dist/collection/stories/tegel.stories.js +270 -279
- package/dist/collection/stories/utility/color/background-color.stories.js +13 -13
- package/dist/collection/stories/utility/color/text-color.stories.js +11 -11
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/tds-accordion-item.entry.js +5 -5
- package/dist/esm/tds-banner.entry.js +0 -9
- package/dist/esm/tds-checkbox.entry.js +1 -1
- package/dist/esm/tds-datetime.entry.js +8 -8
- package/dist/esm/tds-dropdown-option.entry.js +5 -5
- package/dist/esm/tds-dropdown.entry.js +17 -17
- package/dist/esm/tds-folder-tab.entry.js +1 -1
- package/dist/esm/tds-footer-group.entry.js +2 -2
- package/dist/esm/tds-icon.entry.js +1 -1
- package/dist/esm/tds-inline-tab.entry.js +1 -1
- package/dist/esm/tds-link.entry.js +3 -3
- package/dist/esm/tds-message.entry.js +3 -3
- package/dist/esm/tds-navigation-tab.entry.js +1 -1
- package/dist/esm/tds-table-footer.entry.js +1 -1
- package/dist/esm/tds-text-field.entry.js +11 -11
- package/dist/esm/tds-textarea.entry.js +10 -10
- package/dist/esm/tds-toast.entry.js +2 -2
- package/dist/tegel/p-2efaac74.entry.js +1 -0
- package/dist/tegel/{p-9b560c6d.entry.js → p-67fa6245.entry.js} +1 -1
- package/dist/tegel/p-e9ae12d7.entry.js +1 -0
- package/dist/tegel/{p-52edb8b7.entry.js → p-e9b8d1d5.entry.js} +1 -1
- package/dist/tegel/tegel.css +2 -4
- package/dist/tegel/tegel.esm.js +1 -1
- package/dist/types/components/banner/banner.d.ts +0 -5
- package/dist/types/components/text-field/text-field.d.ts +1 -1
- package/dist/types/components.d.ts +58 -64
- package/dist/types/global.d.ts +2 -2
- package/package.json +81 -80
- package/dist/components/checkbox.js +0 -74
- package/dist/tegel/p-cf75e7c1.entry.js +0 -1
- package/dist/tegel/p-faaa50c2.entry.js +0 -1
- /package/{dist/components → components}/index.d.ts +0 -0
- /package/{dist/components → components}/index.js +0 -0
- /package/{dist/components → components}/tds-checkbox.js +0 -0
- /package/{dist/components → components}/tds-core-header-item.js +0 -0
- /package/{dist/components → components}/tds-divider.js +0 -0
- /package/{dist/components → components}/tds-header-dropdown-list-item.js +0 -0
- /package/{dist/components → components}/tds-header-dropdown-list.js +0 -0
- /package/{dist/components → components}/tds-header-item.js +0 -0
- /package/{dist/components → components}/tds-header-launcher-button.js +0 -0
- /package/{dist/components → components}/tds-icon.js +0 -0
- /package/{dist/components → components}/tds-popover-canvas.js +0 -0
- /package/{dist/components → components}/tds-popover-core.js +0 -0
- /package/{dist/components → components}/tds-side-menu-item.js +0 -0
- /package/{dist/components → components}/tds-side-menu-user-image.js +0 -0
- /package/{dist/components → components}/tds-side-menu-user-label.js +0 -0
- /package/{dist/components → components}/utils.js +0 -0
|
@@ -5,96 +5,96 @@ export default {
|
|
|
5
5
|
layout: 'fullscreen',
|
|
6
6
|
},
|
|
7
7
|
};
|
|
8
|
-
const Template = () => formatHtmlPreview(`
|
|
9
|
-
<style>
|
|
10
|
-
/* Demo code for presentation purposes */
|
|
11
|
-
.tds-spacing-element-demo-box {
|
|
12
|
-
background-color: var(--tds-red-500);
|
|
13
|
-
display: inline-block;
|
|
14
|
-
}
|
|
15
|
-
table th, table td {
|
|
16
|
-
padding: 8px;
|
|
17
|
-
text-align: center;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
th:last-child {
|
|
21
|
-
text-align: left;
|
|
22
|
-
}
|
|
23
|
-
th:last-child,
|
|
24
|
-
td:last-child {
|
|
25
|
-
text-align: left;
|
|
26
|
-
}
|
|
27
|
-
</style>
|
|
28
|
-
|
|
29
|
-
<h4>Spacing Element</h4>
|
|
30
|
-
<table>
|
|
31
|
-
<tr>
|
|
32
|
-
<th>Px</th>
|
|
33
|
-
<th>Token</th>
|
|
34
|
-
<th>CSS</th>
|
|
35
|
-
<th>Scale</th>
|
|
36
|
-
</tr>
|
|
37
|
-
<tr>
|
|
38
|
-
<td>2px</td>
|
|
39
|
-
<td><code>$spacing-element-2</code></td>
|
|
40
|
-
<td><code>.tds-spacing-element-2</code></td>
|
|
41
|
-
<td><span class="tds-spacing-element-demo-box" style="width: var(--tds-spacing-element-2); height: var(--tds-spacing-element-2)"></span></td>
|
|
42
|
-
</tr>
|
|
43
|
-
<tr>
|
|
44
|
-
<td>4px</td>
|
|
45
|
-
<td><code>$spacing-element-4</code></td>
|
|
46
|
-
<td><code>.tds-spacing-element-4</code></td>
|
|
47
|
-
<td><span class="tds-spacing-element-demo-box" style="width: var(--tds-spacing-element-4); height: var(--tds-spacing-element-4)"></span></td>
|
|
48
|
-
</tr>
|
|
49
|
-
<tr>
|
|
50
|
-
<td>8px</td>
|
|
51
|
-
<td><code>$spacing-element-8</code></td>
|
|
52
|
-
<td><code>.tds-spacing-element-8</code></td>
|
|
53
|
-
<td><span class="tds-spacing-element-demo-box" style="width: var(--tds-spacing-element-8); height: var(--tds-spacing-element-8)"></span></td>
|
|
54
|
-
</tr>
|
|
55
|
-
<tr>
|
|
56
|
-
<td>12px</td>
|
|
57
|
-
<td><code>$spacing-element-12</code></td>
|
|
58
|
-
<td><code>.tds-spacing-element-12</code></td>
|
|
59
|
-
<td><span class="tds-spacing-element-demo-box" style="width: var(--tds-spacing-element-12); height: var(--tds-spacing-element-12);"></span></td>
|
|
60
|
-
</tr>
|
|
61
|
-
<tr>
|
|
62
|
-
<td>16px</td>
|
|
63
|
-
<td><code>$spacing-element-16</code></td>
|
|
64
|
-
<td><code>.tds-spacing-element-16</code></td>
|
|
65
|
-
<td><span class="tds-spacing-element-demo-box" style="width: var(--tds-spacing-element-16); height: var(--tds-spacing-element-16);"></span></td>
|
|
66
|
-
</tr>
|
|
67
|
-
<tr>
|
|
68
|
-
<td>20px</td>
|
|
69
|
-
<td><code>$spacing-element-20</code></td>
|
|
70
|
-
<td><code>.tds-spacing-element-20</code></td>
|
|
71
|
-
<td><span class="tds-spacing-element-demo-box" style="width: var(--tds-spacing-element-20); height: var(--tds-spacing-element-20);"></span></td>
|
|
72
|
-
</tr>
|
|
73
|
-
<tr>
|
|
74
|
-
<td>24px</td>
|
|
75
|
-
<td><code>$spacing-element-24</code></td>
|
|
76
|
-
<td><code>.tds-spacing-element-24</code></td>
|
|
77
|
-
<td><span class="tds-spacing-element-demo-box" style="width: var(--tds-spacing-element-24); height: var(--tds-spacing-element-24);"></span></td>
|
|
78
|
-
</tr>
|
|
79
|
-
<tr>
|
|
80
|
-
<td>32px</td>
|
|
81
|
-
<td><code>$spacing-element-32</code></td>
|
|
82
|
-
<td><code>.tds-spacing-element-32</code></td>
|
|
83
|
-
<td><span class="tds-spacing-element-demo-box" style="width: var(--tds-spacing-element-32); height: var(--tds-spacing-element-32);"></span></td>
|
|
84
|
-
</tr>
|
|
85
|
-
<tr>
|
|
86
|
-
<td>40px</td>
|
|
87
|
-
<td><code>$spacing-element-40</code></td>
|
|
88
|
-
<td><code>.tds-spacing-element-40</code></td>
|
|
89
|
-
<td><span class="tds-spacing-element-demo-box" style="width: var(--tds-spacing-element-40); height: var(--tds-spacing-element-40);"></span></td>
|
|
90
|
-
</tr>
|
|
91
|
-
<tr>
|
|
92
|
-
<td>48px</td>
|
|
93
|
-
<td><code>$spacing-element-48</code></td>
|
|
94
|
-
<td><code>.tds-spacing-element-48</code></td>
|
|
95
|
-
<td><span class="tds-spacing-element-demo-box" style="width: var(--tds-spacing-element-48); height: var(--tds-spacing-element-48);"></span></td>
|
|
96
|
-
</tr>
|
|
97
|
-
</table>
|
|
8
|
+
const Template = () => formatHtmlPreview(`
|
|
9
|
+
<style>
|
|
10
|
+
/* Demo code for presentation purposes */
|
|
11
|
+
.tds-spacing-element-demo-box {
|
|
12
|
+
background-color: var(--tds-red-500);
|
|
13
|
+
display: inline-block;
|
|
14
|
+
}
|
|
15
|
+
table th, table td {
|
|
16
|
+
padding: 8px;
|
|
17
|
+
text-align: center;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
th:last-child {
|
|
21
|
+
text-align: left;
|
|
22
|
+
}
|
|
23
|
+
th:last-child,
|
|
24
|
+
td:last-child {
|
|
25
|
+
text-align: left;
|
|
26
|
+
}
|
|
27
|
+
</style>
|
|
28
|
+
|
|
29
|
+
<h4>Spacing Element</h4>
|
|
30
|
+
<table>
|
|
31
|
+
<tr>
|
|
32
|
+
<th>Px</th>
|
|
33
|
+
<th>Token</th>
|
|
34
|
+
<th>CSS</th>
|
|
35
|
+
<th>Scale</th>
|
|
36
|
+
</tr>
|
|
37
|
+
<tr>
|
|
38
|
+
<td>2px</td>
|
|
39
|
+
<td><code>$spacing-element-2</code></td>
|
|
40
|
+
<td><code>.tds-spacing-element-2</code></td>
|
|
41
|
+
<td><span class="tds-spacing-element-demo-box" style="width: var(--tds-spacing-element-2); height: var(--tds-spacing-element-2)"></span></td>
|
|
42
|
+
</tr>
|
|
43
|
+
<tr>
|
|
44
|
+
<td>4px</td>
|
|
45
|
+
<td><code>$spacing-element-4</code></td>
|
|
46
|
+
<td><code>.tds-spacing-element-4</code></td>
|
|
47
|
+
<td><span class="tds-spacing-element-demo-box" style="width: var(--tds-spacing-element-4); height: var(--tds-spacing-element-4)"></span></td>
|
|
48
|
+
</tr>
|
|
49
|
+
<tr>
|
|
50
|
+
<td>8px</td>
|
|
51
|
+
<td><code>$spacing-element-8</code></td>
|
|
52
|
+
<td><code>.tds-spacing-element-8</code></td>
|
|
53
|
+
<td><span class="tds-spacing-element-demo-box" style="width: var(--tds-spacing-element-8); height: var(--tds-spacing-element-8)"></span></td>
|
|
54
|
+
</tr>
|
|
55
|
+
<tr>
|
|
56
|
+
<td>12px</td>
|
|
57
|
+
<td><code>$spacing-element-12</code></td>
|
|
58
|
+
<td><code>.tds-spacing-element-12</code></td>
|
|
59
|
+
<td><span class="tds-spacing-element-demo-box" style="width: var(--tds-spacing-element-12); height: var(--tds-spacing-element-12);"></span></td>
|
|
60
|
+
</tr>
|
|
61
|
+
<tr>
|
|
62
|
+
<td>16px</td>
|
|
63
|
+
<td><code>$spacing-element-16</code></td>
|
|
64
|
+
<td><code>.tds-spacing-element-16</code></td>
|
|
65
|
+
<td><span class="tds-spacing-element-demo-box" style="width: var(--tds-spacing-element-16); height: var(--tds-spacing-element-16);"></span></td>
|
|
66
|
+
</tr>
|
|
67
|
+
<tr>
|
|
68
|
+
<td>20px</td>
|
|
69
|
+
<td><code>$spacing-element-20</code></td>
|
|
70
|
+
<td><code>.tds-spacing-element-20</code></td>
|
|
71
|
+
<td><span class="tds-spacing-element-demo-box" style="width: var(--tds-spacing-element-20); height: var(--tds-spacing-element-20);"></span></td>
|
|
72
|
+
</tr>
|
|
73
|
+
<tr>
|
|
74
|
+
<td>24px</td>
|
|
75
|
+
<td><code>$spacing-element-24</code></td>
|
|
76
|
+
<td><code>.tds-spacing-element-24</code></td>
|
|
77
|
+
<td><span class="tds-spacing-element-demo-box" style="width: var(--tds-spacing-element-24); height: var(--tds-spacing-element-24);"></span></td>
|
|
78
|
+
</tr>
|
|
79
|
+
<tr>
|
|
80
|
+
<td>32px</td>
|
|
81
|
+
<td><code>$spacing-element-32</code></td>
|
|
82
|
+
<td><code>.tds-spacing-element-32</code></td>
|
|
83
|
+
<td><span class="tds-spacing-element-demo-box" style="width: var(--tds-spacing-element-32); height: var(--tds-spacing-element-32);"></span></td>
|
|
84
|
+
</tr>
|
|
85
|
+
<tr>
|
|
86
|
+
<td>40px</td>
|
|
87
|
+
<td><code>$spacing-element-40</code></td>
|
|
88
|
+
<td><code>.tds-spacing-element-40</code></td>
|
|
89
|
+
<td><span class="tds-spacing-element-demo-box" style="width: var(--tds-spacing-element-40); height: var(--tds-spacing-element-40);"></span></td>
|
|
90
|
+
</tr>
|
|
91
|
+
<tr>
|
|
92
|
+
<td>48px</td>
|
|
93
|
+
<td><code>$spacing-element-48</code></td>
|
|
94
|
+
<td><code>.tds-spacing-element-48</code></td>
|
|
95
|
+
<td><span class="tds-spacing-element-demo-box" style="width: var(--tds-spacing-element-48); height: var(--tds-spacing-element-48);"></span></td>
|
|
96
|
+
</tr>
|
|
97
|
+
</table>
|
|
98
98
|
`);
|
|
99
99
|
export const SpacingElement = Template.bind({});
|
|
100
100
|
SpacingElement.args = {};
|
|
@@ -5,90 +5,90 @@ export default {
|
|
|
5
5
|
layout: 'fullscreen',
|
|
6
6
|
},
|
|
7
7
|
};
|
|
8
|
-
const Template = () => formatHtmlPreview(`
|
|
9
|
-
<style>
|
|
10
|
-
/* Demo code for presentation purposes */
|
|
11
|
-
.demo-wrapper {
|
|
12
|
-
background-color: var(--tds-blue-500);
|
|
13
|
-
display: inline-block;
|
|
14
|
-
}
|
|
15
|
-
table th, table td {
|
|
16
|
-
padding: 8px;
|
|
17
|
-
}
|
|
18
|
-
th:last-child,
|
|
19
|
-
td:last-child {
|
|
20
|
-
text-align: left;
|
|
21
|
-
}
|
|
22
|
-
</style>
|
|
23
|
-
|
|
24
|
-
<table>
|
|
25
|
-
<tr>
|
|
26
|
-
<th>Px</th>
|
|
27
|
-
<th>Token</th>
|
|
28
|
-
<th>CSS</th>
|
|
29
|
-
<th>Scale</th>
|
|
30
|
-
</tr>
|
|
31
|
-
<tr>
|
|
32
|
-
<td>8px</td>
|
|
33
|
-
<td><code>$spacing-layout-8</code></td>
|
|
34
|
-
<td><code>.tds-spacing-layout-8</code></td>
|
|
35
|
-
<td><span class="demo-wrapper" style="width: var(--tds-spacing-layout-8); height: var(--tds-spacing-layout-8)"></span></td>
|
|
36
|
-
</tr>
|
|
37
|
-
<tr>
|
|
38
|
-
<td>16px</td>
|
|
39
|
-
<td><code>$spacing-layout-16</code></td>
|
|
40
|
-
<td><code>.tds-spacing-layout-16</code></td>
|
|
41
|
-
<td><span class="demo-wrapper" style="width: var(--tds-spacing-layout-16); height: var(--tds-spacing-layout-16);"></span></td>
|
|
42
|
-
</tr>
|
|
43
|
-
<tr>
|
|
44
|
-
<td>24px</td>
|
|
45
|
-
<td><code>$spacing-layout-24</code></td>
|
|
46
|
-
<td><code>.tds-spacing-layout-24</code></td>
|
|
47
|
-
<td><span class="demo-wrapper" style="width: var(--tds-spacing-layout-24); height: var(--tds-spacing-layout-24);"></span></td>
|
|
48
|
-
</tr>
|
|
49
|
-
<tr>
|
|
50
|
-
<td>32px</td>
|
|
51
|
-
<td><code>$spacing-layout-32</code></td>
|
|
52
|
-
<td><code>.tds-spacing-layout-32</code></td>
|
|
53
|
-
<td><span class="demo-wrapper" style="width: var(--tds-spacing-layout-32); height: var(--tds-spacing-layout-32);"></span></td>
|
|
54
|
-
</tr>
|
|
55
|
-
<tr>
|
|
56
|
-
<td>48px</td>
|
|
57
|
-
<td><code>$spacing-layout-48</code></td>
|
|
58
|
-
<td><code>.tds-spacing-layout-48</code></td>
|
|
59
|
-
<td><span class="demo-wrapper" style="width: var(--tds-spacing-layout-48); height: var(--tds-spacing-layout-48);"></span></td>
|
|
60
|
-
</tr>
|
|
61
|
-
<tr>
|
|
62
|
-
<td>64px</td>
|
|
63
|
-
<td><code>$spacing-layout-64</code></td>
|
|
64
|
-
<td><code>.tds-spacing-layout-64</code></td>
|
|
65
|
-
<td><span class="demo-wrapper" style="width: var(--tds-spacing-layout-64); height: var(--tds-spacing-layout-64);"></span></td>
|
|
66
|
-
</tr>
|
|
67
|
-
<tr>
|
|
68
|
-
<td>72px</td>
|
|
69
|
-
<td><code>$spacing-layout-72</code></td>
|
|
70
|
-
<td><code>.tds-spacing-layout-72</code></td>
|
|
71
|
-
<td><span class="demo-wrapper" style="width: var(--tds-spacing-layout-72); height: var(--tds-spacing-layout-72);"></span></td>
|
|
72
|
-
</tr>
|
|
73
|
-
<tr>
|
|
74
|
-
<td>96px</td>
|
|
75
|
-
<td><code>$spacing-layout-96</code></td>
|
|
76
|
-
<td><code>.tds-spacing-layout-96</code></td>
|
|
77
|
-
<td><span class="demo-wrapper" style="width: var(--tds-spacing-layout-96); height: var(--tds-spacing-layout-96);"></span></td>
|
|
78
|
-
</tr>
|
|
79
|
-
<tr>
|
|
80
|
-
<td>128px</td>
|
|
81
|
-
<td><code>$spacing-layout-128</code></td>
|
|
82
|
-
<td><code>.tds-spacing-layout-128</code></td>
|
|
83
|
-
<td><span class="demo-wrapper" style="width: var(--tds-spacing-layout-128); height: var(--tds-spacing-layout-128);"></span></td>
|
|
84
|
-
</tr>
|
|
85
|
-
<tr>
|
|
86
|
-
<td>160px</td>
|
|
87
|
-
<td><code>$spacing-layout-160</code></td>
|
|
88
|
-
<td><code>.tds-spacing-layout-160</code></td>
|
|
89
|
-
<td><span class="demo-wrapper" style="width: var(--tds-spacing-layout-160); height: var(--tds-spacing-layout-160);"></span></td>
|
|
90
|
-
</tr>
|
|
91
|
-
</table>
|
|
8
|
+
const Template = () => formatHtmlPreview(`
|
|
9
|
+
<style>
|
|
10
|
+
/* Demo code for presentation purposes */
|
|
11
|
+
.demo-wrapper {
|
|
12
|
+
background-color: var(--tds-blue-500);
|
|
13
|
+
display: inline-block;
|
|
14
|
+
}
|
|
15
|
+
table th, table td {
|
|
16
|
+
padding: 8px;
|
|
17
|
+
}
|
|
18
|
+
th:last-child,
|
|
19
|
+
td:last-child {
|
|
20
|
+
text-align: left;
|
|
21
|
+
}
|
|
22
|
+
</style>
|
|
23
|
+
|
|
24
|
+
<table>
|
|
25
|
+
<tr>
|
|
26
|
+
<th>Px</th>
|
|
27
|
+
<th>Token</th>
|
|
28
|
+
<th>CSS</th>
|
|
29
|
+
<th>Scale</th>
|
|
30
|
+
</tr>
|
|
31
|
+
<tr>
|
|
32
|
+
<td>8px</td>
|
|
33
|
+
<td><code>$spacing-layout-8</code></td>
|
|
34
|
+
<td><code>.tds-spacing-layout-8</code></td>
|
|
35
|
+
<td><span class="demo-wrapper" style="width: var(--tds-spacing-layout-8); height: var(--tds-spacing-layout-8)"></span></td>
|
|
36
|
+
</tr>
|
|
37
|
+
<tr>
|
|
38
|
+
<td>16px</td>
|
|
39
|
+
<td><code>$spacing-layout-16</code></td>
|
|
40
|
+
<td><code>.tds-spacing-layout-16</code></td>
|
|
41
|
+
<td><span class="demo-wrapper" style="width: var(--tds-spacing-layout-16); height: var(--tds-spacing-layout-16);"></span></td>
|
|
42
|
+
</tr>
|
|
43
|
+
<tr>
|
|
44
|
+
<td>24px</td>
|
|
45
|
+
<td><code>$spacing-layout-24</code></td>
|
|
46
|
+
<td><code>.tds-spacing-layout-24</code></td>
|
|
47
|
+
<td><span class="demo-wrapper" style="width: var(--tds-spacing-layout-24); height: var(--tds-spacing-layout-24);"></span></td>
|
|
48
|
+
</tr>
|
|
49
|
+
<tr>
|
|
50
|
+
<td>32px</td>
|
|
51
|
+
<td><code>$spacing-layout-32</code></td>
|
|
52
|
+
<td><code>.tds-spacing-layout-32</code></td>
|
|
53
|
+
<td><span class="demo-wrapper" style="width: var(--tds-spacing-layout-32); height: var(--tds-spacing-layout-32);"></span></td>
|
|
54
|
+
</tr>
|
|
55
|
+
<tr>
|
|
56
|
+
<td>48px</td>
|
|
57
|
+
<td><code>$spacing-layout-48</code></td>
|
|
58
|
+
<td><code>.tds-spacing-layout-48</code></td>
|
|
59
|
+
<td><span class="demo-wrapper" style="width: var(--tds-spacing-layout-48); height: var(--tds-spacing-layout-48);"></span></td>
|
|
60
|
+
</tr>
|
|
61
|
+
<tr>
|
|
62
|
+
<td>64px</td>
|
|
63
|
+
<td><code>$spacing-layout-64</code></td>
|
|
64
|
+
<td><code>.tds-spacing-layout-64</code></td>
|
|
65
|
+
<td><span class="demo-wrapper" style="width: var(--tds-spacing-layout-64); height: var(--tds-spacing-layout-64);"></span></td>
|
|
66
|
+
</tr>
|
|
67
|
+
<tr>
|
|
68
|
+
<td>72px</td>
|
|
69
|
+
<td><code>$spacing-layout-72</code></td>
|
|
70
|
+
<td><code>.tds-spacing-layout-72</code></td>
|
|
71
|
+
<td><span class="demo-wrapper" style="width: var(--tds-spacing-layout-72); height: var(--tds-spacing-layout-72);"></span></td>
|
|
72
|
+
</tr>
|
|
73
|
+
<tr>
|
|
74
|
+
<td>96px</td>
|
|
75
|
+
<td><code>$spacing-layout-96</code></td>
|
|
76
|
+
<td><code>.tds-spacing-layout-96</code></td>
|
|
77
|
+
<td><span class="demo-wrapper" style="width: var(--tds-spacing-layout-96); height: var(--tds-spacing-layout-96);"></span></td>
|
|
78
|
+
</tr>
|
|
79
|
+
<tr>
|
|
80
|
+
<td>128px</td>
|
|
81
|
+
<td><code>$spacing-layout-128</code></td>
|
|
82
|
+
<td><code>.tds-spacing-layout-128</code></td>
|
|
83
|
+
<td><span class="demo-wrapper" style="width: var(--tds-spacing-layout-128); height: var(--tds-spacing-layout-128);"></span></td>
|
|
84
|
+
</tr>
|
|
85
|
+
<tr>
|
|
86
|
+
<td>160px</td>
|
|
87
|
+
<td><code>$spacing-layout-160</code></td>
|
|
88
|
+
<td><code>.tds-spacing-layout-160</code></td>
|
|
89
|
+
<td><span class="demo-wrapper" style="width: var(--tds-spacing-layout-160); height: var(--tds-spacing-layout-160);"></span></td>
|
|
90
|
+
</tr>
|
|
91
|
+
</table>
|
|
92
92
|
`);
|
|
93
93
|
export const SpacingLayout = Template.bind({});
|
|
94
94
|
SpacingLayout.args = {};
|
|
@@ -5,12 +5,12 @@ export default {
|
|
|
5
5
|
layout: 'fullscreen',
|
|
6
6
|
},
|
|
7
7
|
};
|
|
8
|
-
const Template = () => formatHtmlPreview(`
|
|
9
|
-
<p class='tds-body-01'>
|
|
10
|
-
Our larger text style used for body text. We usually use it for paragraphs exceeding 3 lines. The size works well on both larger and smaller breakpoints for reading.
|
|
11
|
-
</p>
|
|
12
|
-
<p class='tds-body-02'>
|
|
13
|
-
Our smaller text style used for body text. We usually use it for paragraphs with less than 3 lines. The size works well on both larger and smaller breakpoints for reading. It could also be used within certain components.
|
|
14
|
-
</p>
|
|
8
|
+
const Template = () => formatHtmlPreview(`
|
|
9
|
+
<p class='tds-body-01'>
|
|
10
|
+
Our larger text style used for body text. We usually use it for paragraphs exceeding 3 lines. The size works well on both larger and smaller breakpoints for reading.
|
|
11
|
+
</p>
|
|
12
|
+
<p class='tds-body-02'>
|
|
13
|
+
Our smaller text style used for body text. We usually use it for paragraphs with less than 3 lines. The size works well on both larger and smaller breakpoints for reading. It could also be used within certain components.
|
|
14
|
+
</p>
|
|
15
15
|
`);
|
|
16
16
|
export const Body = Template.bind({});
|
|
@@ -5,13 +5,13 @@ export default {
|
|
|
5
5
|
layout: 'fullscreen',
|
|
6
6
|
},
|
|
7
7
|
};
|
|
8
|
-
const Template = () => formatHtmlPreview(`
|
|
9
|
-
<p class='tds-detail-01'>This text style is used in components, such as the cookie component.</p>
|
|
10
|
-
<p class='tds-detail-02'>This text style is used in components, such as data tables and buttons.</p>
|
|
11
|
-
<p class='tds-detail-03'>This text style is used for longer detailed text exceeding 3 lines within Functional applications.</p>
|
|
12
|
-
<p class='tds-detail-04'>THIS TEXT STYLE IS USED FOR LABELS AND POTENTIALLY COMPONENTS.</p>
|
|
13
|
-
<p class='tds-detail-05'>This text style is used in components, such as the tooltip and as a label for the text field component.</p>
|
|
14
|
-
<p class='tds-detail-06'>THIS TEXT STYLE IS USED FOR LABELS AND POTENTIALLY COMPONENTS.</p>
|
|
15
|
-
<p class='tds-detail-07'>This text style should only be used for very small instances, for instance as a label inside a text field.</p>
|
|
8
|
+
const Template = () => formatHtmlPreview(`
|
|
9
|
+
<p class='tds-detail-01'>This text style is used in components, such as the cookie component.</p>
|
|
10
|
+
<p class='tds-detail-02'>This text style is used in components, such as data tables and buttons.</p>
|
|
11
|
+
<p class='tds-detail-03'>This text style is used for longer detailed text exceeding 3 lines within Functional applications.</p>
|
|
12
|
+
<p class='tds-detail-04'>THIS TEXT STYLE IS USED FOR LABELS AND POTENTIALLY COMPONENTS.</p>
|
|
13
|
+
<p class='tds-detail-05'>This text style is used in components, such as the tooltip and as a label for the text field component.</p>
|
|
14
|
+
<p class='tds-detail-06'>THIS TEXT STYLE IS USED FOR LABELS AND POTENTIALLY COMPONENTS.</p>
|
|
15
|
+
<p class='tds-detail-07'>This text style should only be used for very small instances, for instance as a label inside a text field.</p>
|
|
16
16
|
`);
|
|
17
17
|
export const Detail = Template.bind({});
|
|
@@ -15,23 +15,23 @@ export default {
|
|
|
15
15
|
},
|
|
16
16
|
},
|
|
17
17
|
};
|
|
18
|
-
const Template = ({ type }) => formatHtmlPreview(`
|
|
19
|
-
<style>
|
|
20
|
-
/* Demo code for presentation purposes */
|
|
21
|
-
.demo-wrapper h1 {
|
|
22
|
-
margin: 0;
|
|
23
|
-
}
|
|
24
|
-
</style>
|
|
25
|
-
|
|
26
|
-
<div class="demo-wrapper">
|
|
27
|
-
<h1 class="tds-${type === 'expressive' ? `${type}-` : ''}headline-01">Headline</h1>
|
|
28
|
-
<h2 class="tds-${type === 'expressive' ? `${type}-` : ''}headline-02">Headline</h2>
|
|
29
|
-
<h3 class="tds-${type === 'expressive' ? `${type}-` : ''}headline-03">A headline for page layouts</h3>
|
|
30
|
-
<h4 class="tds-${type === 'expressive' ? `${type}-` : ''}headline-04">A headline for page layouts</h4>
|
|
31
|
-
<h5 class="tds-${type === 'expressive' ? `${type}-` : ''}headline-05">A sub headline, which is most commonly paired with body-01</h5>
|
|
32
|
-
<h6 class="tds-${type === 'expressive' ? `${type}-` : ''}headline-06">A sub headline, which is most commonly paired with body-02</h6>
|
|
33
|
-
<h7 class="tds-${type === 'expressive' ? `${type}-` : ''}headline-07">A sub headline, which is most commonly paired with detail-02 </h7>
|
|
34
|
-
</div>
|
|
18
|
+
const Template = ({ type }) => formatHtmlPreview(`
|
|
19
|
+
<style>
|
|
20
|
+
/* Demo code for presentation purposes */
|
|
21
|
+
.demo-wrapper h1 {
|
|
22
|
+
margin: 0;
|
|
23
|
+
}
|
|
24
|
+
</style>
|
|
25
|
+
|
|
26
|
+
<div class="demo-wrapper">
|
|
27
|
+
<h1 class="tds-${type === 'expressive' ? `${type}-` : ''}headline-01">Headline</h1>
|
|
28
|
+
<h2 class="tds-${type === 'expressive' ? `${type}-` : ''}headline-02">Headline</h2>
|
|
29
|
+
<h3 class="tds-${type === 'expressive' ? `${type}-` : ''}headline-03">A headline for page layouts</h3>
|
|
30
|
+
<h4 class="tds-${type === 'expressive' ? `${type}-` : ''}headline-04">A headline for page layouts</h4>
|
|
31
|
+
<h5 class="tds-${type === 'expressive' ? `${type}-` : ''}headline-05">A sub headline, which is most commonly paired with body-01</h5>
|
|
32
|
+
<h6 class="tds-${type === 'expressive' ? `${type}-` : ''}headline-06">A sub headline, which is most commonly paired with body-02</h6>
|
|
33
|
+
<h7 class="tds-${type === 'expressive' ? `${type}-` : ''}headline-07">A sub headline, which is most commonly paired with detail-02 </h7>
|
|
34
|
+
</div>
|
|
35
35
|
`);
|
|
36
36
|
export const Headlines = Template.bind({});
|
|
37
37
|
Headlines.args = {
|
|
@@ -5,8 +5,8 @@ export default {
|
|
|
5
5
|
layout: 'fullscreen',
|
|
6
6
|
},
|
|
7
7
|
};
|
|
8
|
-
const Template = () => formatHtmlPreview(`
|
|
9
|
-
<p class='tds-paragraph-01'>Our large paragraph, which should be used for introduction texts on page layouts.</p>
|
|
10
|
-
<p class='tds-paragraph-02'>Our smaller paragraph, mainly present on mobile breakpoints, which should be used for introduction texts on page layouts.</p>
|
|
8
|
+
const Template = () => formatHtmlPreview(`
|
|
9
|
+
<p class='tds-paragraph-01'>Our large paragraph, which should be used for introduction texts on page layouts.</p>
|
|
10
|
+
<p class='tds-paragraph-02'>Our smaller paragraph, mainly present on mobile breakpoints, which should be used for introduction texts on page layouts.</p>
|
|
11
11
|
`);
|
|
12
12
|
export const Paragraph = Template.bind({});
|
|
@@ -28,58 +28,58 @@ export default {
|
|
|
28
28
|
argTypes: {},
|
|
29
29
|
args: {},
|
|
30
30
|
};
|
|
31
|
-
const Template = () => formatHtmlPreview(`
|
|
32
|
-
<tds-header>
|
|
33
|
-
<tds-header-title>
|
|
34
|
-
Example: default
|
|
35
|
-
</tds-header-title>
|
|
36
|
-
<tds-header-launcher slot="end" aria-label="Application launcher">
|
|
37
|
-
<tds-header-launcher-list-title>Cool apps</tds-header-launcher-list-title>
|
|
38
|
-
<tds-header-launcher-list>
|
|
39
|
-
<tds-header-launcher-list-item>
|
|
40
|
-
<a href="https://tegel.scania.com">Button</a>
|
|
41
|
-
</tds-header-launcher-list-item>
|
|
42
|
-
<tds-header-launcher-list-item>
|
|
43
|
-
<a href="https://tegel.scania.com">Button</a>
|
|
44
|
-
</tds-header-launcher-list-item>
|
|
45
|
-
<tds-header-launcher-list-item>
|
|
46
|
-
<a href="https://tegel.scania.com">Button</a>
|
|
47
|
-
</tds-header-launcher-list-item>
|
|
48
|
-
<tds-header-launcher-list-item>
|
|
49
|
-
<a href="https://tegel.scania.com">Button</a>
|
|
50
|
-
</tds-header-launcher-list-item>
|
|
51
|
-
</tds-header-launcher-list>
|
|
52
|
-
<tds-header-launcher-list-title>Lame apps</tds-header-launcher-list-title>
|
|
53
|
-
<tds-header-launcher-list>
|
|
54
|
-
<tds-header-launcher-list-item>
|
|
55
|
-
<a href="https://tegel.scania.com">Button</a>
|
|
56
|
-
</tds-header-launcher-list-item>
|
|
57
|
-
<tds-header-launcher-list-item>
|
|
58
|
-
<a href="https://tegel.scania.com">Button</a>
|
|
59
|
-
</tds-header-launcher-list-item>
|
|
60
|
-
<tds-header-launcher-list-item>
|
|
61
|
-
<a href="https://tegel.scania.com">Button</a>
|
|
62
|
-
</tds-header-launcher-list-item>
|
|
63
|
-
<tds-header-launcher-list-item>
|
|
64
|
-
<a href="https://tegel.scania.com">Button</a>
|
|
65
|
-
</tds-header-launcher-list-item>
|
|
66
|
-
<tds-header-launcher-list-item>
|
|
67
|
-
<a href="https://tegel.scania.com">Button</a>
|
|
68
|
-
</tds-header-launcher-list-item>
|
|
69
|
-
<tds-header-launcher-list-item>
|
|
70
|
-
<a href="https://tegel.scania.com">Button</a>
|
|
71
|
-
</tds-header-launcher-list-item>
|
|
72
|
-
</tds-header-launcher-list>
|
|
73
|
-
</tds-header-launcher>
|
|
74
|
-
|
|
75
|
-
<tds-header-brand-symbol slot="end">
|
|
76
|
-
<a aria-label="Scania - red gryphon on blue shield" href="https://scania.com"></a>
|
|
77
|
-
</tds-header-brand-symbol>
|
|
78
|
-
|
|
79
|
-
</tds-header>
|
|
80
|
-
|
|
81
|
-
<main class="tds-u-w-100 tds-u-p3" style="box-sizing: border-box;">
|
|
82
|
-
<p>If the Header only contains a title, launcher, and logo, no side menu is needed.</p>
|
|
83
|
-
</main>
|
|
31
|
+
const Template = () => formatHtmlPreview(`
|
|
32
|
+
<tds-header>
|
|
33
|
+
<tds-header-title>
|
|
34
|
+
Example: default
|
|
35
|
+
</tds-header-title>
|
|
36
|
+
<tds-header-launcher slot="end" aria-label="Application launcher">
|
|
37
|
+
<tds-header-launcher-list-title>Cool apps</tds-header-launcher-list-title>
|
|
38
|
+
<tds-header-launcher-list>
|
|
39
|
+
<tds-header-launcher-list-item>
|
|
40
|
+
<a href="https://tegel.scania.com">Button</a>
|
|
41
|
+
</tds-header-launcher-list-item>
|
|
42
|
+
<tds-header-launcher-list-item>
|
|
43
|
+
<a href="https://tegel.scania.com">Button</a>
|
|
44
|
+
</tds-header-launcher-list-item>
|
|
45
|
+
<tds-header-launcher-list-item>
|
|
46
|
+
<a href="https://tegel.scania.com">Button</a>
|
|
47
|
+
</tds-header-launcher-list-item>
|
|
48
|
+
<tds-header-launcher-list-item>
|
|
49
|
+
<a href="https://tegel.scania.com">Button</a>
|
|
50
|
+
</tds-header-launcher-list-item>
|
|
51
|
+
</tds-header-launcher-list>
|
|
52
|
+
<tds-header-launcher-list-title>Lame apps</tds-header-launcher-list-title>
|
|
53
|
+
<tds-header-launcher-list>
|
|
54
|
+
<tds-header-launcher-list-item>
|
|
55
|
+
<a href="https://tegel.scania.com">Button</a>
|
|
56
|
+
</tds-header-launcher-list-item>
|
|
57
|
+
<tds-header-launcher-list-item>
|
|
58
|
+
<a href="https://tegel.scania.com">Button</a>
|
|
59
|
+
</tds-header-launcher-list-item>
|
|
60
|
+
<tds-header-launcher-list-item>
|
|
61
|
+
<a href="https://tegel.scania.com">Button</a>
|
|
62
|
+
</tds-header-launcher-list-item>
|
|
63
|
+
<tds-header-launcher-list-item>
|
|
64
|
+
<a href="https://tegel.scania.com">Button</a>
|
|
65
|
+
</tds-header-launcher-list-item>
|
|
66
|
+
<tds-header-launcher-list-item>
|
|
67
|
+
<a href="https://tegel.scania.com">Button</a>
|
|
68
|
+
</tds-header-launcher-list-item>
|
|
69
|
+
<tds-header-launcher-list-item>
|
|
70
|
+
<a href="https://tegel.scania.com">Button</a>
|
|
71
|
+
</tds-header-launcher-list-item>
|
|
72
|
+
</tds-header-launcher-list>
|
|
73
|
+
</tds-header-launcher>
|
|
74
|
+
|
|
75
|
+
<tds-header-brand-symbol slot="end">
|
|
76
|
+
<a aria-label="Scania - red gryphon on blue shield" href="https://scania.com"></a>
|
|
77
|
+
</tds-header-brand-symbol>
|
|
78
|
+
|
|
79
|
+
</tds-header>
|
|
80
|
+
|
|
81
|
+
<main class="tds-u-w-100 tds-u-p3" style="box-sizing: border-box;">
|
|
82
|
+
<p>If the Header only contains a title, launcher, and logo, no side menu is needed.</p>
|
|
83
|
+
</main>
|
|
84
84
|
`);
|
|
85
85
|
export const Basic = Template.bind({});
|