@scania/tegel 0.0.1-beta.7 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-e1c79686.js → index-b98965c7.js} +7 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/sdds-accordion-item.cjs.entry.js +21 -21
- package/dist/cjs/sdds-accordion.cjs.entry.js +12 -12
- package/dist/cjs/sdds-badges.cjs.entry.js +45 -46
- package/dist/cjs/sdds-banner.cjs.entry.js +79 -0
- package/dist/cjs/sdds-block.cjs.entry.js +32 -0
- package/dist/cjs/sdds-body-cell_2.cjs.entry.js +160 -160
- package/dist/cjs/sdds-breadcrumb-item.cjs.entry.js +25 -0
- package/dist/cjs/sdds-breadcrumb.cjs.entry.js +23 -0
- package/dist/cjs/sdds-button.cjs.entry.js +25 -24
- package/dist/cjs/sdds-card.cjs.entry.js +56 -0
- package/dist/cjs/sdds-checkbox.cjs.entry.js +55 -0
- package/dist/cjs/sdds-datetime.cjs.entry.js +78 -49
- package/dist/cjs/sdds-dropdown-filter.cjs.entry.js +83 -83
- package/dist/cjs/sdds-dropdown_2.cjs.entry.js +327 -321
- package/dist/cjs/sdds-header-cell.cjs.entry.js +130 -132
- package/dist/cjs/sdds-icon.cjs.entry.js +30 -30
- package/dist/cjs/sdds-inline-tab.cjs.entry.js +22 -0
- package/dist/cjs/sdds-inline-tabs-fullbleed.cjs.entry.js +89 -87
- package/dist/cjs/sdds-inline-tabs.cjs.entry.js +212 -202
- package/dist/cjs/sdds-link.cjs.entry.js +28 -0
- package/dist/cjs/sdds-message.cjs.entry.js +41 -0
- package/dist/cjs/sdds-modal.cjs.entry.js +42 -40
- package/dist/cjs/sdds-navigation-tabs.cjs.entry.js +89 -86
- package/dist/cjs/sdds-popover-canvas.cjs.entry.js +74 -66
- package/dist/cjs/sdds-popover-menu.cjs.entry.js +75 -65
- package/dist/cjs/sdds-radio-button.cjs.entry.js +32 -0
- package/dist/cjs/sdds-slider.cjs.entry.js +348 -327
- package/dist/cjs/sdds-spinner.cjs.entry.js +11 -11
- package/dist/cjs/sdds-table-body-row-expandable.cjs.entry.js +73 -72
- package/dist/cjs/sdds-table-body.cjs.entry.js +235 -235
- package/dist/cjs/sdds-table-footer.cjs.entry.js +155 -156
- package/dist/cjs/sdds-table-header.cjs.entry.js +90 -91
- package/dist/cjs/sdds-table-toolbar.cjs.entry.js +56 -57
- package/dist/cjs/sdds-table.cjs.entry.js +58 -59
- package/dist/cjs/sdds-textarea.cjs.entry.js +57 -44
- package/dist/cjs/sdds-textfield.cjs.entry.js +73 -64
- package/dist/cjs/sdds-toast.cjs.entry.js +86 -0
- package/dist/cjs/sdds-toggle.cjs.entry.js +44 -0
- package/dist/cjs/sdds-tooltip.cjs.entry.js +94 -85
- package/dist/cjs/tegel.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +12 -0
- package/dist/collection/components/accordion/accordion-item/accordion-item.css +30 -11
- package/dist/collection/components/accordion/accordion-item/accordion-item.js +142 -142
- package/dist/collection/components/accordion/accordion.css +2 -16
- package/dist/collection/components/accordion/accordion.js +62 -62
- package/dist/collection/components/accordion/accordion.stories.js +90 -0
- package/dist/collection/components/badge/badge.stories.js +102 -0
- package/dist/collection/components/badge/badges.css +2 -2
- package/dist/collection/components/badge/badges.js +147 -150
- package/dist/collection/components/banner/banner.stories.js +92 -0
- package/dist/collection/components/banner/sdds-banner.css +88 -0
- package/dist/collection/components/banner/sdds-banner.js +330 -0
- package/dist/collection/components/banner/sdds-banner.stories.js +129 -0
- package/dist/collection/components/block/block-native.stories.js +48 -0
- package/dist/collection/components/block/sdds-block.css +22 -0
- package/dist/collection/components/block/sdds-block.js +55 -0
- package/dist/collection/components/block/sdds-block.stories.js +48 -0
- package/dist/collection/components/breadcrumb/breadcrumb-component.css +30 -0
- package/dist/collection/components/breadcrumb/breadcrumb-item/breadcrumb-item.css +43 -0
- package/dist/collection/components/breadcrumb/breadcrumb-item/breadcrumb-item.js +83 -0
- package/dist/collection/components/breadcrumb/breadcrumb.js +22 -0
- package/dist/collection/components/breadcrumb/breadcrumb.stories.js +26 -0
- package/dist/collection/components/button/button-component.js +152 -151
- package/dist/collection/components/button/button-native.stories.js +187 -0
- package/dist/collection/components/button/button-webcomponent.stories.js +189 -0
- package/dist/collection/components/button/button.css +63 -51
- package/dist/collection/components/card/card.stories.js +167 -0
- package/dist/collection/components/card/sdds-card.css +78 -0
- package/dist/collection/components/card/sdds-card.js +276 -0
- package/dist/collection/components/card/sdds-card.stories.js +168 -0
- package/dist/collection/components/checkbox/checkbox.stories.js +54 -0
- package/dist/collection/components/checkbox/sdds-checkbox.css +95 -0
- package/dist/collection/components/checkbox/sdds-checkbox.js +239 -0
- package/dist/collection/components/checkbox/sdds-checkbox.stories.js +71 -0
- package/dist/collection/components/chips/chips.stories.js +106 -0
- package/dist/collection/components/data-table/native-table.stories.js +160 -0
- package/dist/collection/components/data-table/table/table.js +252 -253
- package/dist/collection/components/data-table/table-body/table-body.css +1 -1
- package/dist/collection/components/data-table/table-body/table-body.js +425 -425
- package/dist/collection/components/data-table/table-body-cell/table-body-cell.css +3 -3
- package/dist/collection/components/data-table/table-body-cell/table-body-cell.js +168 -169
- package/dist/collection/components/data-table/table-body-row/table-body-row.css +24 -45
- package/dist/collection/components/data-table/table-body-row/table-body-row.js +165 -164
- package/dist/collection/components/data-table/table-body-row-expandable/table-body-row-expandable.css +23 -24
- package/dist/collection/components/data-table/table-body-row-expandable/table-body-row-expandable.js +156 -155
- package/dist/collection/components/data-table/table-component-basic.stories.js +161 -0
- package/dist/collection/components/data-table/table-component-batch-actions.stories.js +128 -0
- package/dist/collection/components/data-table/table-component-bodydata.stories.js +58 -0
- package/dist/collection/components/data-table/table-component-custom-width.stories.js +197 -0
- package/dist/collection/components/data-table/table-component-event-listeners.stories.js +151 -0
- package/dist/collection/components/data-table/table-component-expandable-rows.stories.js +135 -0
- package/dist/collection/components/data-table/table-component-filtering.stories.js +137 -0
- package/dist/collection/components/data-table/table-component-multiselect.stories.js +158 -0
- package/dist/collection/components/data-table/table-component-pagination.stories.js +127 -0
- package/dist/collection/components/data-table/table-component-sorting.stories.js +126 -0
- package/dist/collection/components/data-table/table-footer/table-footer.css +9 -5
- package/dist/collection/components/data-table/table-footer/table-footer.js +354 -355
- package/dist/collection/components/data-table/table-header/table-header.css +22 -36
- package/dist/collection/components/data-table/table-header/table-header.js +152 -153
- package/dist/collection/components/data-table/table-header-cell/table-header-cell.css +9 -8
- package/dist/collection/components/data-table/table-header-cell/table-header-cell.js +317 -320
- package/dist/collection/components/data-table/table-toolbar/table-toolbar.css +7 -6
- package/dist/collection/components/data-table/table-toolbar/table-toolbar.js +141 -142
- package/dist/collection/components/datetime/datetime.css +68 -58
- package/dist/collection/components/datetime/datetime.js +344 -243
- package/dist/collection/components/datetime/datetime.stories.js +207 -0
- package/dist/collection/components/divider/divider.stories.js +133 -0
- package/dist/collection/components/dropdown/dropdown-filter/dropdown-filter.js +339 -339
- package/dist/collection/components/dropdown/dropdown-filter/dropdown-filter.stories.js +130 -0
- package/dist/collection/components/dropdown/dropdown-native.stories.js +90 -0
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +185 -185
- package/dist/collection/components/dropdown/dropdown-wc-default.stories.js +167 -0
- package/dist/collection/components/dropdown/dropdown-wc-multiselect.stories.js +146 -0
- package/dist/collection/components/dropdown/dropdown.css +146 -86
- package/dist/collection/components/dropdown/dropdown.js +576 -553
- package/dist/collection/components/footer/footer.stories.js +117 -0
- package/dist/collection/components/header/header-all.stories.js +217 -0
- package/dist/collection/components/header/header-default.stories.js +47 -0
- package/dist/collection/components/header/header-inline.stories.js +113 -0
- package/dist/collection/components/header/header-search.stories.js +263 -0
- package/dist/collection/components/header/header-toolbar.stories.js +204 -0
- package/dist/collection/components/icon/icon-font.stories.js +57 -0
- package/dist/collection/components/icon/icon-web-component.stories.js +51 -0
- package/dist/collection/components/icon/icon.js +89 -89
- package/dist/collection/components/link/link.stories.js +45 -0
- package/dist/collection/components/link/sdds-link.css +36 -0
- package/dist/collection/components/link/sdds-link.js +121 -0
- package/dist/collection/components/link/sdds-link.stories.js +70 -0
- package/dist/collection/components/message/message.stories.js +108 -0
- package/dist/collection/components/message/sdds-message.css +70 -0
- package/dist/collection/components/message/sdds-message.js +135 -0
- package/dist/collection/components/message/sdds-message.stories.js +106 -0
- package/dist/collection/components/modal/modal-native.stories.js +129 -0
- package/dist/collection/components/modal/modal-webcomponent.stories.js +86 -0
- package/dist/collection/components/modal/modal.css +63 -37
- package/dist/collection/components/modal/modal.js +148 -146
- package/dist/collection/components/popover-canvas/popover-canvas.css +3 -3
- package/dist/collection/components/popover-canvas/popover-canvas.js +219 -190
- package/dist/collection/components/popover-canvas/popover-canvas.stories.js +89 -0
- package/dist/collection/components/popover-menu/popover-menu-icons.stories.js +121 -0
- package/dist/collection/components/popover-menu/popover-menu.css +2 -2
- package/dist/collection/components/popover-menu/popover-menu.js +220 -189
- package/dist/collection/components/popover-menu/popover-menu.stories.js +114 -0
- package/dist/collection/components/radio-button/radio-button-component.css +123 -0
- package/dist/collection/components/radio-button/radio-button-component.stories.js +91 -0
- package/dist/collection/components/radio-button/radio-button.js +160 -0
- package/dist/collection/components/radio-button/radio-button.stories.js +68 -0
- package/dist/collection/components/side-menu/side-menu.stories.js +182 -0
- package/dist/collection/components/slider/slider.css +56 -19
- package/dist/collection/components/slider/slider.js +721 -682
- package/dist/collection/components/slider/slider.stories.js +208 -0
- package/dist/collection/components/spinner/spinner.js +61 -61
- package/dist/collection/components/spinner/spinner.stories.js +59 -0
- package/dist/collection/components/stepper/stepper.stories.js +139 -0
- package/dist/collection/components/tabs/inline-tabs-default/inline-tab/inline-tab.css +3 -0
- package/dist/collection/components/tabs/inline-tabs-default/inline-tab/inline-tab.js +80 -0
- package/dist/collection/components/tabs/inline-tabs-default/inline-tabs.css +21 -24
- package/dist/collection/components/tabs/inline-tabs-default/inline-tabs.js +312 -302
- package/dist/collection/components/tabs/inline-tabs-default/inline-tabs.stories.js +71 -0
- package/dist/collection/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.css +36 -67
- package/dist/collection/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.js +128 -126
- package/dist/collection/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.stories.js +46 -0
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.css +22 -18
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +128 -103
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.stories.js +32 -0
- package/dist/collection/components/textarea/textarea.css +60 -45
- package/dist/collection/components/textarea/textarea.js +394 -328
- package/dist/collection/components/textarea/textarea.stories.js +169 -0
- package/dist/collection/components/textfield/textfield.css +92 -84
- package/dist/collection/components/textfield/textfield.js +430 -350
- package/dist/collection/components/textfield/textfield.stories.js +239 -0
- package/dist/collection/components/toast/sdds-toast.css +102 -0
- package/dist/collection/components/toast/sdds-toast.js +256 -0
- package/dist/collection/components/toast/sdds-toast.stories.js +86 -0
- package/dist/collection/components/toast/toast.stories.js +129 -0
- package/dist/collection/components/toggle/sdds-toggle.css +104 -0
- package/dist/collection/components/toggle/sdds-toggle.js +261 -0
- package/dist/collection/components/toggle/sdds-toggle.stories.js +92 -0
- package/dist/collection/components/toggle/toggle.stories.js +72 -0
- package/dist/collection/components/tooltip/tooltip.css +3 -3
- package/dist/collection/components/tooltip/tooltip.js +229 -200
- package/dist/collection/components/tooltip/tooltip.stories.js +115 -0
- package/dist/collection/components/utility/colour/background-color.stories.js +96 -0
- package/dist/collection/components/utility/colour/text-color.stories.js +94 -0
- package/dist/collection/foundations-stories/colour/colour-brand.stories.js +38 -0
- package/dist/collection/foundations-stories/colour/colour-scales.stories.js +71 -0
- package/dist/collection/foundations-stories/colour/colour-semantic.stories.js +40 -0
- package/dist/collection/foundations-stories/grid/grid.stories.js +386 -0
- package/dist/collection/foundations-stories/spacing/spacing-element.stories.js +100 -0
- package/dist/collection/foundations-stories/spacing/spacing-layout.stories.js +94 -0
- package/dist/collection/foundations-stories/typography/typography-body.stories.js +16 -0
- package/dist/collection/foundations-stories/typography/typography-detail.stories.js +17 -0
- package/dist/collection/foundations-stories/typography/typography-headline.stories.js +39 -0
- package/dist/collection/foundations-stories/typography/typography-paragraph.stories.js +12 -0
- package/dist/collection/index.js +1 -1
- package/dist/collection/utils/utils.js +12 -12
- package/dist/components/dropdown-option.js +94 -94
- package/dist/components/dropdown.js +296 -289
- package/dist/components/icon.js +49 -49
- package/dist/components/index.d.ts +12 -0
- package/dist/components/index.js +12 -0
- package/dist/components/sdds-accordion-item.js +46 -46
- package/dist/components/sdds-accordion.js +29 -29
- package/dist/components/sdds-badges.js +66 -67
- package/dist/components/sdds-banner.d.ts +11 -0
- package/dist/components/sdds-banner.js +119 -0
- package/dist/components/sdds-block.d.ts +11 -0
- package/dist/components/sdds-block.js +48 -0
- package/dist/components/sdds-breadcrumb-item.d.ts +11 -0
- package/dist/components/sdds-breadcrumb-item.js +43 -0
- package/dist/components/sdds-breadcrumb.d.ts +11 -0
- package/dist/components/sdds-breadcrumb.js +37 -0
- package/dist/components/sdds-button.js +48 -47
- package/dist/components/sdds-card.d.ts +11 -0
- package/dist/components/sdds-card.js +84 -0
- package/dist/components/sdds-checkbox.d.ts +11 -0
- package/dist/components/sdds-checkbox.js +76 -0
- package/dist/components/sdds-datetime.js +112 -73
- package/dist/components/sdds-dropdown-filter.js +127 -127
- package/dist/components/sdds-header-cell.js +161 -164
- package/dist/components/sdds-inline-tab.d.ts +11 -0
- package/dist/components/sdds-inline-tab.js +40 -0
- package/dist/components/sdds-inline-tabs-fullbleed.js +108 -106
- package/dist/components/sdds-inline-tabs.js +236 -226
- package/dist/components/sdds-link.d.ts +11 -0
- package/dist/components/sdds-link.js +6 -0
- package/dist/components/sdds-link2.js +44 -0
- package/dist/components/sdds-message.d.ts +11 -0
- package/dist/components/sdds-message.js +67 -0
- package/dist/components/sdds-modal.js +68 -60
- package/dist/components/sdds-navigation-tabs.js +108 -104
- package/dist/components/sdds-popover-canvas.js +98 -87
- package/dist/components/sdds-popover-menu.js +99 -86
- package/dist/components/sdds-radio-button.d.ts +11 -0
- package/dist/components/sdds-radio-button.js +52 -0
- package/dist/components/sdds-slider.js +385 -357
- package/dist/components/sdds-spinner.js +27 -27
- package/dist/components/sdds-table-body-row-expandable.js +96 -95
- package/dist/components/sdds-table-body.js +281 -281
- package/dist/components/sdds-table-footer.js +186 -187
- package/dist/components/sdds-table-header.js +115 -116
- package/dist/components/sdds-table-toolbar.js +78 -79
- package/dist/components/sdds-table.js +81 -82
- package/dist/components/sdds-textarea.js +92 -73
- package/dist/components/sdds-textfield.js +109 -93
- package/dist/components/sdds-toast.d.ts +11 -0
- package/dist/components/sdds-toast.js +117 -0
- package/dist/components/sdds-toggle.d.ts +11 -0
- package/dist/components/sdds-toggle.js +69 -0
- package/dist/components/sdds-tooltip.js +117 -106
- package/dist/components/table-body-cell.js +95 -96
- package/dist/components/table-body-row.js +114 -113
- package/dist/esm/{index-b67b15a6.js → index-32571711.js} +7 -0
- package/dist/esm/loader.js +2 -2
- 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/sdds-accordion-item.entry.js +21 -21
- package/dist/esm/sdds-accordion.entry.js +12 -12
- package/dist/esm/sdds-badges.entry.js +45 -46
- package/dist/esm/sdds-banner.entry.js +75 -0
- package/dist/esm/sdds-block.entry.js +28 -0
- package/dist/esm/sdds-body-cell_2.entry.js +160 -160
- package/dist/esm/sdds-breadcrumb-item.entry.js +21 -0
- package/dist/esm/sdds-breadcrumb.entry.js +19 -0
- package/dist/esm/sdds-button.entry.js +25 -24
- package/dist/esm/sdds-card.entry.js +52 -0
- package/dist/esm/sdds-checkbox.entry.js +51 -0
- package/dist/esm/sdds-datetime.entry.js +78 -49
- package/dist/esm/sdds-dropdown-filter.entry.js +83 -83
- package/dist/esm/sdds-dropdown_2.entry.js +327 -321
- package/dist/esm/sdds-header-cell.entry.js +130 -132
- package/dist/esm/sdds-icon.entry.js +30 -30
- package/dist/esm/sdds-inline-tab.entry.js +18 -0
- package/dist/esm/sdds-inline-tabs-fullbleed.entry.js +89 -87
- package/dist/esm/sdds-inline-tabs.entry.js +212 -202
- package/dist/esm/sdds-link.entry.js +24 -0
- package/dist/esm/sdds-message.entry.js +37 -0
- package/dist/esm/sdds-modal.entry.js +42 -40
- package/dist/esm/sdds-navigation-tabs.entry.js +89 -86
- package/dist/esm/sdds-popover-canvas.entry.js +74 -66
- package/dist/esm/sdds-popover-menu.entry.js +75 -65
- package/dist/esm/sdds-radio-button.entry.js +28 -0
- package/dist/esm/sdds-slider.entry.js +348 -327
- package/dist/esm/sdds-spinner.entry.js +11 -11
- package/dist/esm/sdds-table-body-row-expandable.entry.js +73 -72
- package/dist/esm/sdds-table-body.entry.js +235 -235
- package/dist/esm/sdds-table-footer.entry.js +155 -156
- package/dist/esm/sdds-table-header.entry.js +90 -91
- package/dist/esm/sdds-table-toolbar.entry.js +56 -57
- package/dist/esm/sdds-table.entry.js +58 -59
- package/dist/esm/sdds-textarea.entry.js +57 -44
- package/dist/esm/sdds-textfield.entry.js +73 -64
- package/dist/esm/sdds-toast.entry.js +82 -0
- package/dist/esm/sdds-toggle.entry.js +40 -0
- package/dist/esm/sdds-tooltip.entry.js +94 -85
- package/dist/esm/tegel.js +2 -2
- package/dist/tegel/p-05d3cfc8.entry.js +1 -0
- package/dist/tegel/p-13a25c7f.entry.js +1 -0
- package/dist/tegel/p-13b783f1.js +2 -0
- package/dist/tegel/p-1dda8de9.entry.js +1 -0
- package/dist/tegel/p-2248b59e.entry.js +1 -0
- package/dist/tegel/p-232e5c9a.entry.js +1 -0
- package/dist/tegel/p-2375f0eb.entry.js +1 -0
- package/dist/tegel/p-29deedc6.entry.js +1 -0
- package/dist/tegel/p-2f52021b.entry.js +1 -0
- package/dist/tegel/p-3344582d.entry.js +1 -0
- package/dist/tegel/{p-040efb32.entry.js → p-4b14324d.entry.js} +1 -1
- package/dist/tegel/p-561fbe77.entry.js +1 -0
- package/dist/tegel/p-5a215722.entry.js +1 -0
- package/dist/tegel/p-5f7b1539.entry.js +1 -0
- package/dist/tegel/p-6f382b38.entry.js +1 -0
- package/dist/tegel/p-765e2719.entry.js +1 -0
- package/dist/tegel/p-76f60546.entry.js +1 -0
- package/dist/tegel/p-7a5244b6.entry.js +1 -0
- package/dist/tegel/p-816ff5f7.entry.js +1 -0
- package/dist/tegel/p-81d2d57b.entry.js +1 -0
- package/dist/tegel/p-87650f36.entry.js +1 -0
- package/dist/tegel/p-8e6f885c.entry.js +1 -0
- package/dist/tegel/p-8e9dcc20.entry.js +1 -0
- package/dist/tegel/p-997fc919.entry.js +1 -0
- package/dist/tegel/p-9a057c9a.entry.js +1 -0
- package/dist/tegel/p-9a95e92c.entry.js +1 -0
- package/dist/tegel/p-a75ff060.entry.js +1 -0
- package/dist/tegel/p-bf1216f9.entry.js +1 -0
- package/dist/tegel/p-bf597564.entry.js +1 -0
- package/dist/tegel/p-d2217bf0.entry.js +1 -0
- package/dist/tegel/p-e335137d.entry.js +1 -0
- package/dist/tegel/p-e34cce75.entry.js +1 -0
- package/dist/tegel/p-e55d09f2.entry.js +1 -0
- package/dist/tegel/p-ebbffa8a.entry.js +1 -0
- package/dist/tegel/{p-a5919930.entry.js → p-ed076d47.entry.js} +1 -1
- package/dist/tegel/p-ef887910.entry.js +1 -0
- package/dist/tegel/p-f4b70868.entry.js +1 -0
- package/dist/tegel/p-f52a0b63.entry.js +1 -0
- package/dist/tegel/p-f5bf214b.entry.js +1 -0
- package/dist/tegel/p-fd1b5923.entry.js +1 -0
- package/dist/tegel/tegel.css +13 -5
- package/dist/tegel/tegel.esm.js +1 -1
- package/dist/types/components/accordion/accordion-item/accordion-item.d.ts +17 -17
- package/dist/types/components/accordion/accordion.d.ts +7 -7
- package/dist/types/components/accordion/accordion.stories.d.ts +77 -0
- package/dist/types/components/badge/badge.stories.d.ts +66 -0
- package/dist/types/components/badge/badges.d.ts +16 -16
- package/dist/types/components/banner/banner.stories.d.ts +68 -0
- package/dist/types/components/banner/sdds-banner.d.ts +48 -0
- package/dist/types/components/banner/sdds-banner.stories.d.ts +109 -0
- package/dist/types/components/block/block-native.stories.d.ts +31 -0
- package/dist/types/components/block/sdds-block.d.ts +9 -0
- package/dist/types/components/block/sdds-block.stories.d.ts +32 -0
- package/dist/types/components/breadcrumb/breadcrumb-item/breadcrumb-item.d.ts +9 -0
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +5 -0
- package/dist/types/components/breadcrumb/breadcrumb.stories.d.ts +12 -0
- package/dist/types/components/button/button-component.d.ts +18 -15
- package/dist/types/components/button/button-native.stories.d.ts +148 -0
- package/dist/types/components/button/button-webcomponent.stories.d.ts +147 -0
- package/dist/types/components/card/card.stories.d.ts +138 -0
- package/dist/types/components/card/sdds-card.d.ts +39 -0
- package/dist/types/components/card/sdds-card.stories.d.ts +139 -0
- package/dist/types/components/checkbox/checkbox.stories.d.ts +39 -0
- package/dist/types/components/checkbox/sdds-checkbox.d.ts +38 -0
- package/dist/types/components/checkbox/sdds-checkbox.stories.d.ts +40 -0
- package/dist/types/components/chips/chips.stories.d.ts +77 -0
- package/dist/types/components/data-table/native-table.stories.d.ts +133 -0
- package/dist/types/components/data-table/table/table.d.ts +47 -47
- package/dist/types/components/data-table/table-body/table-body.d.ts +54 -54
- package/dist/types/components/data-table/table-body-cell/table-body-cell.d.ts +24 -24
- package/dist/types/components/data-table/table-body-row/table-body-row.d.ts +27 -27
- package/dist/types/components/data-table/table-body-row-expandable/table-body-row-expandable.d.ts +27 -27
- package/dist/types/components/data-table/table-component-basic.stories.d.ts +101 -0
- package/dist/types/components/data-table/table-component-batch-actions.stories.d.ts +99 -0
- package/dist/types/components/data-table/table-component-bodydata.stories.d.ts +38 -0
- package/dist/types/components/data-table/table-component-custom-width.stories.d.ts +148 -0
- package/dist/types/components/data-table/table-component-event-listeners.stories.d.ts +88 -0
- package/dist/types/components/data-table/table-component-expandable-rows.stories.d.ts +88 -0
- package/dist/types/components/data-table/table-component-filtering.stories.d.ts +101 -0
- package/dist/types/components/data-table/table-component-multiselect.stories.d.ts +101 -0
- package/dist/types/components/data-table/table-component-pagination.stories.d.ts +101 -0
- package/dist/types/components/data-table/table-component-sorting.stories.d.ts +100 -0
- package/dist/types/components/data-table/table-footer/table-footer.d.ts +50 -50
- package/dist/types/components/data-table/table-header/table-header.d.ts +27 -27
- package/dist/types/components/data-table/table-header-cell/table-header-cell.d.ts +44 -45
- package/dist/types/components/data-table/table-toolbar/table-toolbar.d.ts +22 -22
- package/dist/types/components/datetime/datetime.d.ts +42 -32
- package/dist/types/components/datetime/datetime.stories.d.ts +127 -0
- package/dist/types/components/divider/divider.stories.d.ts +65 -0
- package/dist/types/components/dropdown/dropdown-filter/dropdown-filter.d.ts +42 -42
- package/dist/types/components/dropdown/dropdown-filter/dropdown-filter.stories.d.ts +73 -0
- package/dist/types/components/dropdown/dropdown-native.stories.d.ts +57 -0
- package/dist/types/components/dropdown/dropdown-option/dropdown-option.d.ts +19 -19
- package/dist/types/components/dropdown/dropdown-wc-default.stories.d.ts +129 -0
- package/dist/types/components/dropdown/dropdown-wc-multiselect.stories.d.ts +115 -0
- package/dist/types/components/dropdown/dropdown.d.ts +58 -56
- package/dist/types/components/footer/footer.stories.d.ts +45 -0
- package/dist/types/components/header/header-all.stories.d.ts +29 -0
- package/dist/types/components/header/header-default.stories.d.ts +29 -0
- package/dist/types/components/header/header-inline.stories.d.ts +29 -0
- package/dist/types/components/header/header-search.stories.d.ts +29 -0
- package/dist/types/components/header/header-toolbar.stories.d.ts +29 -0
- package/dist/types/components/icon/icon-font.stories.d.ts +38 -0
- package/dist/types/components/icon/icon-web-component.stories.d.ts +38 -0
- package/dist/types/components/icon/icon.d.ts +12 -12
- package/dist/types/components/link/link.stories.d.ts +33 -0
- package/dist/types/components/link/sdds-link.d.ts +13 -0
- package/dist/types/components/link/sdds-link.stories.d.ts +58 -0
- package/dist/types/components/message/message.stories.d.ts +69 -0
- package/dist/types/components/message/sdds-message.d.ts +14 -0
- package/dist/types/components/message/sdds-message.stories.d.ts +87 -0
- package/dist/types/components/modal/modal-native.stories.d.ts +59 -0
- package/dist/types/components/modal/modal-webcomponent.stories.d.ts +52 -0
- package/dist/types/components/modal/modal.d.ts +17 -16
- package/dist/types/components/popover-canvas/popover-canvas.d.ts +24 -18
- package/dist/types/components/popover-canvas/popover-canvas.stories.d.ts +25 -0
- package/dist/types/components/popover-menu/popover-menu-icons.stories.d.ts +27 -0
- package/dist/types/components/popover-menu/popover-menu.d.ts +24 -18
- package/dist/types/components/popover-menu/popover-menu.stories.d.ts +27 -0
- package/dist/types/components/radio-button/radio-button-component.stories.d.ts +39 -0
- package/dist/types/components/radio-button/radio-button.d.ts +26 -0
- package/dist/types/components/radio-button/radio-button.stories.d.ts +33 -0
- package/dist/types/components/side-menu/side-menu.stories.d.ts +42 -0
- package/dist/types/components/slider/slider.d.ts +86 -82
- package/dist/types/components/slider/slider.stories.d.ts +169 -0
- package/dist/types/components/spinner/spinner.d.ts +7 -7
- package/dist/types/components/spinner/spinner.stories.d.ts +37 -0
- package/dist/types/components/stepper/stepper.stories.d.ts +56 -0
- package/dist/types/components/tabs/inline-tabs-default/inline-tab/inline-tab.d.ts +6 -0
- package/dist/types/components/tabs/inline-tabs-default/inline-tabs.d.ts +40 -41
- package/dist/types/components/tabs/inline-tabs-default/inline-tabs.stories.d.ts +49 -0
- package/dist/types/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.d.ts +20 -20
- package/dist/types/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.stories.d.ts +30 -0
- package/dist/types/components/tabs/navigation-tabs/navigation-tabs.d.ts +20 -18
- package/dist/types/components/tabs/navigation-tabs/navigation-tabs.stories.d.ts +13 -0
- package/dist/types/components/textarea/textarea.d.ts +48 -41
- package/dist/types/components/textarea/textarea.stories.d.ts +116 -0
- package/dist/types/components/textfield/textfield.d.ts +52 -42
- package/dist/types/components/textfield/textfield.stories.d.ts +180 -0
- package/dist/types/components/toast/sdds-toast.d.ts +36 -0
- package/dist/types/components/toast/sdds-toast.stories.d.ts +56 -0
- package/dist/types/components/toast/toast.stories.d.ts +69 -0
- package/dist/types/components/toggle/sdds-toggle.d.ts +34 -0
- package/dist/types/components/toggle/sdds-toggle.stories.d.ts +74 -0
- package/dist/types/components/toggle/toggle.stories.d.ts +55 -0
- package/dist/types/components/tooltip/tooltip.d.ts +24 -20
- package/dist/types/components/tooltip/tooltip.stories.d.ts +54 -0
- package/dist/types/components/utility/colour/background-color.stories.d.ts +58 -0
- package/dist/types/components/utility/colour/text-color.stories.d.ts +58 -0
- package/dist/types/components.d.ts +939 -48
- package/dist/types/foundations-stories/colour/colour-brand.stories.d.ts +13 -0
- package/dist/types/foundations-stories/colour/colour-scales.stories.d.ts +13 -0
- package/dist/types/foundations-stories/colour/colour-semantic.stories.d.ts +13 -0
- package/dist/types/foundations-stories/grid/grid.stories.d.ts +35 -0
- package/dist/types/foundations-stories/spacing/spacing-element.stories.d.ts +8 -0
- package/dist/types/foundations-stories/spacing/spacing-layout.stories.d.ts +8 -0
- package/dist/types/foundations-stories/typography/typography-body.stories.d.ts +8 -0
- package/dist/types/foundations-stories/typography/typography-detail.stories.d.ts +8 -0
- package/dist/types/foundations-stories/typography/typography-headline.stories.d.ts +21 -0
- package/dist/types/foundations-stories/typography/typography-paragraph.stories.d.ts +8 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/utils/utils.d.ts +2 -2
- package/package.json +1 -1
- package/readme.md +41 -8
- package/dist/tegel/p-12ca5cfa.entry.js +0 -1
- package/dist/tegel/p-157e1618.js +0 -2
- package/dist/tegel/p-1fe61cf6.entry.js +0 -1
- package/dist/tegel/p-2f376504.entry.js +0 -1
- package/dist/tegel/p-44ced895.entry.js +0 -1
- package/dist/tegel/p-4880f03d.entry.js +0 -1
- package/dist/tegel/p-4aba73a3.entry.js +0 -1
- package/dist/tegel/p-4b58a02c.entry.js +0 -1
- package/dist/tegel/p-4cb85347.entry.js +0 -1
- package/dist/tegel/p-52031b5a.entry.js +0 -1
- package/dist/tegel/p-677baf7f.entry.js +0 -1
- package/dist/tegel/p-71797eaf.entry.js +0 -1
- package/dist/tegel/p-7373284c.entry.js +0 -1
- package/dist/tegel/p-7451779b.entry.js +0 -1
- package/dist/tegel/p-77aeea3b.entry.js +0 -1
- package/dist/tegel/p-8582d6a7.entry.js +0 -1
- package/dist/tegel/p-96021bd0.entry.js +0 -1
- package/dist/tegel/p-9d8caf51.entry.js +0 -1
- package/dist/tegel/p-b01cface.entry.js +0 -1
- package/dist/tegel/p-bf896643.entry.js +0 -1
- package/dist/tegel/p-c311725c.entry.js +0 -1
- package/dist/tegel/p-cf72dfd9.entry.js +0 -1
- package/dist/tegel/p-d91caec6.entry.js +0 -1
- package/dist/tegel/p-e10eec33.entry.js +0 -1
- package/dist/tegel/p-f2262a69.entry.js +0 -1
- package/dist/tegel/p-f2f7aa45.entry.js +0 -1
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { formatHtmlPreview } from '../../utils/utils';
|
|
2
|
+
export default {
|
|
3
|
+
title: 'Foundations/Spacing',
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: 'fullscreen',
|
|
6
|
+
},
|
|
7
|
+
};
|
|
8
|
+
const Template = () => formatHtmlPreview(`
|
|
9
|
+
<style>
|
|
10
|
+
/* Demo code for presentation purposes */
|
|
11
|
+
.sdds-spacing-element-demo-box {
|
|
12
|
+
background-color: var(--sdds-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>.sdds-spacing-element-2</code></td>
|
|
41
|
+
<td><span class="sdds-spacing-element-demo-box" style="width: var(--sdds-spacing-element-2); height: var(--sdds-spacing-element-2)"></span></td>
|
|
42
|
+
</tr>
|
|
43
|
+
<tr>
|
|
44
|
+
<td>4px</td>
|
|
45
|
+
<td><code>$spacing-element-4</code></td>
|
|
46
|
+
<td><code>.sdds-spacing-element-4</code></td>
|
|
47
|
+
<td><span class="sdds-spacing-element-demo-box" style="width: var(--sdds-spacing-element-4); height: var(--sdds-spacing-element-4)"></span></td>
|
|
48
|
+
</tr>
|
|
49
|
+
<tr>
|
|
50
|
+
<td>8px</td>
|
|
51
|
+
<td><code>$spacing-element-8</code></td>
|
|
52
|
+
<td><code>.sdds-spacing-element-8</code></td>
|
|
53
|
+
<td><span class="sdds-spacing-element-demo-box" style="width: var(--sdds-spacing-element-8); height: var(--sdds-spacing-element-8)"></span></td>
|
|
54
|
+
</tr>
|
|
55
|
+
<tr>
|
|
56
|
+
<td>12px</td>
|
|
57
|
+
<td><code>$spacing-element-12</code></td>
|
|
58
|
+
<td><code>.sdds-spacing-element-12</code></td>
|
|
59
|
+
<td><span class="sdds-spacing-element-demo-box" style="width: var(--sdds-spacing-element-12); height: var(--sdds-spacing-element-12);"></span></td>
|
|
60
|
+
</tr>
|
|
61
|
+
<tr>
|
|
62
|
+
<td>16px</td>
|
|
63
|
+
<td><code>$spacing-element-16</code></td>
|
|
64
|
+
<td><code>.sdds-spacing-element-16</code></td>
|
|
65
|
+
<td><span class="sdds-spacing-element-demo-box" style="width: var(--sdds-spacing-element-16); height: var(--sdds-spacing-element-16);"></span></td>
|
|
66
|
+
</tr>
|
|
67
|
+
<tr>
|
|
68
|
+
<td>20px</td>
|
|
69
|
+
<td><code>$spacing-element-20</code></td>
|
|
70
|
+
<td><code>.sdds-spacing-element-20</code></td>
|
|
71
|
+
<td><span class="sdds-spacing-element-demo-box" style="width: var(--sdds-spacing-element-20); height: var(--sdds-spacing-element-20);"></span></td>
|
|
72
|
+
</tr>
|
|
73
|
+
<tr>
|
|
74
|
+
<td>24px</td>
|
|
75
|
+
<td><code>$spacing-element-24</code></td>
|
|
76
|
+
<td><code>.sdds-spacing-element-24</code></td>
|
|
77
|
+
<td><span class="sdds-spacing-element-demo-box" style="width: var(--sdds-spacing-element-24); height: var(--sdds-spacing-element-24);"></span></td>
|
|
78
|
+
</tr>
|
|
79
|
+
<tr>
|
|
80
|
+
<td>32px</td>
|
|
81
|
+
<td><code>$spacing-element-32</code></td>
|
|
82
|
+
<td><code>.sdds-spacing-element-32</code></td>
|
|
83
|
+
<td><span class="sdds-spacing-element-demo-box" style="width: var(--sdds-spacing-element-32); height: var(--sdds-spacing-element-32);"></span></td>
|
|
84
|
+
</tr>
|
|
85
|
+
<tr>
|
|
86
|
+
<td>40px</td>
|
|
87
|
+
<td><code>$spacing-element-40</code></td>
|
|
88
|
+
<td><code>.sdds-spacing-element-40</code></td>
|
|
89
|
+
<td><span class="sdds-spacing-element-demo-box" style="width: var(--sdds-spacing-element-40); height: var(--sdds-spacing-element-40);"></span></td>
|
|
90
|
+
</tr>
|
|
91
|
+
<tr>
|
|
92
|
+
<td>48px</td>
|
|
93
|
+
<td><code>$spacing-element-48</code></td>
|
|
94
|
+
<td><code>.sdds-spacing-element-48</code></td>
|
|
95
|
+
<td><span class="sdds-spacing-element-demo-box" style="width: var(--sdds-spacing-element-48); height: var(--sdds-spacing-element-48);"></span></td>
|
|
96
|
+
</tr>
|
|
97
|
+
</table>
|
|
98
|
+
`);
|
|
99
|
+
export const SpacingElement = Template.bind({});
|
|
100
|
+
SpacingElement.args = {};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { formatHtmlPreview } from '../../utils/utils';
|
|
2
|
+
export default {
|
|
3
|
+
title: 'Foundations/Spacing',
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: 'fullscreen',
|
|
6
|
+
},
|
|
7
|
+
};
|
|
8
|
+
const Template = () => formatHtmlPreview(`
|
|
9
|
+
<style>
|
|
10
|
+
/* Demo code for presentation purposes */
|
|
11
|
+
.demo-wrapper {
|
|
12
|
+
background-color: var(--sdds-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>.sdds-spacing-layout-8</code></td>
|
|
35
|
+
<td><span class="demo-wrapper" style="width: var(--sdds-spacing-layout-8); height: var(--sdds-spacing-layout-8)"></span></td>
|
|
36
|
+
</tr>
|
|
37
|
+
<tr>
|
|
38
|
+
<td>16px</td>
|
|
39
|
+
<td><code>$spacing-layout-16</code></td>
|
|
40
|
+
<td><code>.sdds-spacing-layout-16</code></td>
|
|
41
|
+
<td><span class="demo-wrapper" style="width: var(--sdds-spacing-layout-16); height: var(--sdds-spacing-layout-16);"></span></td>
|
|
42
|
+
</tr>
|
|
43
|
+
<tr>
|
|
44
|
+
<td>24px</td>
|
|
45
|
+
<td><code>$spacing-layout-24</code></td>
|
|
46
|
+
<td><code>.sdds-spacing-layout-24</code></td>
|
|
47
|
+
<td><span class="demo-wrapper" style="width: var(--sdds-spacing-layout-24); height: var(--sdds-spacing-layout-24);"></span></td>
|
|
48
|
+
</tr>
|
|
49
|
+
<tr>
|
|
50
|
+
<td>32px</td>
|
|
51
|
+
<td><code>$spacing-layout-32</code></td>
|
|
52
|
+
<td><code>.sdds-spacing-layout-32</code></td>
|
|
53
|
+
<td><span class="demo-wrapper" style="width: var(--sdds-spacing-layout-32); height: var(--sdds-spacing-layout-32);"></span></td>
|
|
54
|
+
</tr>
|
|
55
|
+
<tr>
|
|
56
|
+
<td>48px</td>
|
|
57
|
+
<td><code>$spacing-layout-48</code></td>
|
|
58
|
+
<td><code>.sdds-spacing-layout-48</code></td>
|
|
59
|
+
<td><span class="demo-wrapper" style="width: var(--sdds-spacing-layout-48); height: var(--sdds-spacing-layout-48);"></span></td>
|
|
60
|
+
</tr>
|
|
61
|
+
<tr>
|
|
62
|
+
<td>64px</td>
|
|
63
|
+
<td><code>$spacing-layout-64</code></td>
|
|
64
|
+
<td><code>.sdds-spacing-layout-64</code></td>
|
|
65
|
+
<td><span class="demo-wrapper" style="width: var(--sdds-spacing-layout-64); height: var(--sdds-spacing-layout-64);"></span></td>
|
|
66
|
+
</tr>
|
|
67
|
+
<tr>
|
|
68
|
+
<td>72px</td>
|
|
69
|
+
<td><code>$spacing-layout-72</code></td>
|
|
70
|
+
<td><code>.sdds-spacing-layout-72</code></td>
|
|
71
|
+
<td><span class="demo-wrapper" style="width: var(--sdds-spacing-layout-72); height: var(--sdds-spacing-layout-72);"></span></td>
|
|
72
|
+
</tr>
|
|
73
|
+
<tr>
|
|
74
|
+
<td>96px</td>
|
|
75
|
+
<td><code>$spacing-layout-96</code></td>
|
|
76
|
+
<td><code>.sdds-spacing-layout-96</code></td>
|
|
77
|
+
<td><span class="demo-wrapper" style="width: var(--sdds-spacing-layout-96); height: var(--sdds-spacing-layout-96);"></span></td>
|
|
78
|
+
</tr>
|
|
79
|
+
<tr>
|
|
80
|
+
<td>128px</td>
|
|
81
|
+
<td><code>$spacing-layout-128</code></td>
|
|
82
|
+
<td><code>.sdds-spacing-layout-128</code></td>
|
|
83
|
+
<td><span class="demo-wrapper" style="width: var(--sdds-spacing-layout-128); height: var(--sdds-spacing-layout-128);"></span></td>
|
|
84
|
+
</tr>
|
|
85
|
+
<tr>
|
|
86
|
+
<td>160px</td>
|
|
87
|
+
<td><code>$spacing-layout-160</code></td>
|
|
88
|
+
<td><code>.sdds-spacing-layout-160</code></td>
|
|
89
|
+
<td><span class="demo-wrapper" style="width: var(--sdds-spacing-layout-160); height: var(--sdds-spacing-layout-160);"></span></td>
|
|
90
|
+
</tr>
|
|
91
|
+
</table>
|
|
92
|
+
`);
|
|
93
|
+
export const SpacingLayout = Template.bind({});
|
|
94
|
+
SpacingLayout.args = {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { formatHtmlPreview } from '../../utils/utils';
|
|
2
|
+
export default {
|
|
3
|
+
title: 'Foundations/Typography',
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: 'fullscreen',
|
|
6
|
+
},
|
|
7
|
+
};
|
|
8
|
+
const Template = () => formatHtmlPreview(`
|
|
9
|
+
<p class='sdds-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='sdds-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
|
+
`);
|
|
16
|
+
export const Body = Template.bind({});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { formatHtmlPreview } from '../../utils/utils';
|
|
2
|
+
export default {
|
|
3
|
+
title: 'Foundations/Typography',
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: 'fullscreen',
|
|
6
|
+
},
|
|
7
|
+
};
|
|
8
|
+
const Template = () => formatHtmlPreview(`
|
|
9
|
+
<p class='sdds-detail-01'>This text style is used in components, such as the cookie component.</p>
|
|
10
|
+
<p class='sdds-detail-02'>This text style is used in components, such as data tables and buttons.</p>
|
|
11
|
+
<p class='sdds-detail-03'>This text style is used for longer detailed text exceeding 3 lines within Functional applications.</p>
|
|
12
|
+
<p class='sdds-detail-04'>THIS TEXT STYLE IS USED FOR LABELS AND POTENTIALLY COMPONENTS.</p>
|
|
13
|
+
<p class='sdds-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='sdds-detail-06'>THIS TEXT STYLE IS USED FOR LABELS AND POTENTIALLY COMPONENTS.</p>
|
|
15
|
+
<p class='sdds-detail-07'>This text style should only be used for very small instances, for instance as a label inside a text field.</p>
|
|
16
|
+
`);
|
|
17
|
+
export const Detail = Template.bind({});
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { formatHtmlPreview } from '../../utils/utils';
|
|
2
|
+
export default {
|
|
3
|
+
title: 'Foundations/Typography',
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: 'fullscreen',
|
|
6
|
+
},
|
|
7
|
+
argTypes: {
|
|
8
|
+
type: {
|
|
9
|
+
name: 'Type',
|
|
10
|
+
description: 'The type of headline. Functional/Expressive.',
|
|
11
|
+
control: {
|
|
12
|
+
type: 'radio',
|
|
13
|
+
},
|
|
14
|
+
options: { Functional: 'functional', Expressive: 'expressive' },
|
|
15
|
+
},
|
|
16
|
+
},
|
|
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="sdds-${type === 'expressive' ? `${type}-` : ''}headline-01">Headline</h1>
|
|
28
|
+
<h2 class="sdds-${type === 'expressive' ? `${type}-` : ''}headline-02">Headline</h2>
|
|
29
|
+
<h3 class="sdds-${type === 'expressive' ? `${type}-` : ''}headline-03">A headline for page layouts</h3>
|
|
30
|
+
<h4 class="sdds-${type === 'expressive' ? `${type}-` : ''}headline-04">A headline for page layouts</h4>
|
|
31
|
+
<h5 class="sdds-${type === 'expressive' ? `${type}-` : ''}headline-05">A sub headline, which is most commonly paired with body-01</h5>
|
|
32
|
+
<h6 class="sdds-${type === 'expressive' ? `${type}-` : ''}headline-06">A sub headline, which is most commonly paired with body-02</h6>
|
|
33
|
+
<h7 class="sdds-${type === 'expressive' ? `${type}-` : ''}headline-07">A sub headline, which is most commonly paired with detail-02 </h7>
|
|
34
|
+
</div>
|
|
35
|
+
`);
|
|
36
|
+
export const Headlines = Template.bind({});
|
|
37
|
+
Headlines.args = {
|
|
38
|
+
type: 'functional',
|
|
39
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { formatHtmlPreview } from '../../utils/utils';
|
|
2
|
+
export default {
|
|
3
|
+
title: 'Foundations/Typography',
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: 'fullscreen',
|
|
6
|
+
},
|
|
7
|
+
};
|
|
8
|
+
const Template = () => formatHtmlPreview(`
|
|
9
|
+
<p class='sdds-paragraph-01'>Our large paragraph, which should be used for introduction texts on page layouts.</p>
|
|
10
|
+
<p class='sdds-paragraph-02'>Our smaller paragraph, mainly present on mobile breakpoints, which should be used for introduction texts on page layouts.</p>
|
|
11
|
+
`);
|
|
12
|
+
export const Paragraph = Template.bind({});
|
package/dist/collection/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './components';
|
|
1
|
+
export * from './components';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import prettier from 'prettier/standalone';
|
|
2
|
-
import parserBabel from 'prettier/parser-babel';
|
|
3
|
-
import parserHtml from 'prettier/parser-html';
|
|
4
|
-
const prettierOptions = {
|
|
5
|
-
bracketSameLine: false,
|
|
6
|
-
htmlWhitespaceSensitivity: 'ignore',
|
|
7
|
-
printWidth: 100,
|
|
8
|
-
};
|
|
9
|
-
export const formatHtmlPreview = (htmlStr) => prettier.format(htmlStr, Object.assign({ parser: 'html', plugins: [parserBabel, parserHtml] }, prettierOptions));
|
|
10
|
-
export function demoFormat(first, middle, last) {
|
|
11
|
-
return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');
|
|
12
|
-
}
|
|
1
|
+
import prettier from 'prettier/standalone';
|
|
2
|
+
import parserBabel from 'prettier/parser-babel';
|
|
3
|
+
import parserHtml from 'prettier/parser-html';
|
|
4
|
+
const prettierOptions = {
|
|
5
|
+
bracketSameLine: false,
|
|
6
|
+
htmlWhitespaceSensitivity: 'ignore',
|
|
7
|
+
printWidth: 100,
|
|
8
|
+
};
|
|
9
|
+
export const formatHtmlPreview = (htmlStr) => prettier.format(htmlStr, Object.assign({ parser: 'html', plugins: [parserBabel, parserHtml] }, prettierOptions));
|
|
10
|
+
export function demoFormat(first, middle, last) {
|
|
11
|
+
return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');
|
|
12
|
+
}
|