@scania/tegel 0.0.1-beta.6 → 0.0.1-beta.9
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/package.json +4 -4
- package/readme.md +7 -8
- package/dist/cjs/index-e1c79686.js +0 -1912
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/loader.cjs.js +0 -21
- package/dist/cjs/popper-11d5f714.js +0 -1801
- package/dist/cjs/sdds-accordion-item.cjs.entry.js +0 -34
- package/dist/cjs/sdds-accordion.cjs.entry.js +0 -21
- package/dist/cjs/sdds-badges.cjs.entry.js +0 -55
- package/dist/cjs/sdds-body-cell_2.cjs.entry.js +0 -173
- package/dist/cjs/sdds-button.cjs.entry.js +0 -36
- package/dist/cjs/sdds-datetime.cjs.entry.js +0 -66
- package/dist/cjs/sdds-dropdown-filter.cjs.entry.js +0 -92
- package/dist/cjs/sdds-dropdown_2.cjs.entry.js +0 -335
- package/dist/cjs/sdds-header-cell.cjs.entry.js +0 -141
- package/dist/cjs/sdds-icon.cjs.entry.js +0 -42
- package/dist/cjs/sdds-inline-tabs-fullbleed.cjs.entry.js +0 -96
- package/dist/cjs/sdds-inline-tabs.cjs.entry.js +0 -211
- package/dist/cjs/sdds-modal.cjs.entry.js +0 -49
- package/dist/cjs/sdds-navigation-tabs.cjs.entry.js +0 -95
- package/dist/cjs/sdds-popover-canvas.cjs.entry.js +0 -76
- package/dist/cjs/sdds-popover-menu.cjs.entry.js +0 -75
- package/dist/cjs/sdds-slider.cjs.entry.js +0 -336
- package/dist/cjs/sdds-spinner.cjs.entry.js +0 -21
- package/dist/cjs/sdds-table-body-row-expandable.cjs.entry.js +0 -81
- package/dist/cjs/sdds-table-body.cjs.entry.js +0 -289
- package/dist/cjs/sdds-table-footer.cjs.entry.js +0 -165
- package/dist/cjs/sdds-table-header.cjs.entry.js +0 -100
- package/dist/cjs/sdds-table-toolbar.cjs.entry.js +0 -66
- package/dist/cjs/sdds-table.cjs.entry.js +0 -69
- package/dist/cjs/sdds-textarea.cjs.entry.js +0 -61
- package/dist/cjs/sdds-textfield.cjs.entry.js +0 -82
- package/dist/cjs/sdds-tooltip.cjs.entry.js +0 -95
- package/dist/cjs/tegel.cjs.js +0 -19
- package/dist/collection/collection-manifest.json +0 -40
- package/dist/collection/components/accordion/accordion-item/accordion-item.css +0 -134
- package/dist/collection/components/accordion/accordion-item/accordion-item.js +0 -146
- package/dist/collection/components/accordion/accordion.css +0 -77
- package/dist/collection/components/accordion/accordion.js +0 -62
- package/dist/collection/components/accordion/accordion.stories.js +0 -91
- package/dist/collection/components/badge/badge.stories.js +0 -101
- package/dist/collection/components/badge/badges.css +0 -42
- package/dist/collection/components/badge/badges.js +0 -150
- package/dist/collection/components/banner/banner.stories.js +0 -93
- package/dist/collection/components/block/block.stories.js +0 -46
- package/dist/collection/components/breadcrumb/breadcrumb.stories.js +0 -26
- package/dist/collection/components/button/button-component.js +0 -154
- package/dist/collection/components/button/button-native.stories.js +0 -183
- package/dist/collection/components/button/button-webcomponent.stories.js +0 -182
- package/dist/collection/components/button/button.css +0 -658
- package/dist/collection/components/card/card.stories.js +0 -181
- package/dist/collection/components/checkbox/checkbox.stories.js +0 -54
- package/dist/collection/components/chips/chips.stories.js +0 -124
- package/dist/collection/components/data-table/native-table.stories.js +0 -182
- package/dist/collection/components/data-table/table/table.css +0 -15
- package/dist/collection/components/data-table/table/table.js +0 -253
- package/dist/collection/components/data-table/table-body/table-body.css +0 -22
- package/dist/collection/components/data-table/table-body/table-body.js +0 -425
- package/dist/collection/components/data-table/table-body-cell/table-body-cell.css +0 -40
- package/dist/collection/components/data-table/table-body-cell/table-body-cell.js +0 -169
- package/dist/collection/components/data-table/table-body-row/table-body-row.css +0 -196
- package/dist/collection/components/data-table/table-body-row/table-body-row.js +0 -164
- package/dist/collection/components/data-table/table-body-row-expandable/table-body-row-expandable.css +0 -79
- package/dist/collection/components/data-table/table-body-row-expandable/table-body-row-expandable.js +0 -155
- package/dist/collection/components/data-table/table-component-basic.stories.js +0 -163
- package/dist/collection/components/data-table/table-component-batch-actions.stories.js +0 -129
- package/dist/collection/components/data-table/table-component-bodydata.stories.js +0 -58
- package/dist/collection/components/data-table/table-component-custom-width.stories.js +0 -198
- package/dist/collection/components/data-table/table-component-event-listeners.stories.js +0 -153
- package/dist/collection/components/data-table/table-component-expandable-rows.stories.js +0 -137
- package/dist/collection/components/data-table/table-component-filtering.stories.js +0 -139
- package/dist/collection/components/data-table/table-component-multiselect.stories.js +0 -160
- package/dist/collection/components/data-table/table-component-pagination.stories.js +0 -129
- package/dist/collection/components/data-table/table-component-sorting.stories.js +0 -107
- package/dist/collection/components/data-table/table-footer/table-footer.css +0 -93
- package/dist/collection/components/data-table/table-footer/table-footer.js +0 -355
- package/dist/collection/components/data-table/table-header/table-header.css +0 -204
- package/dist/collection/components/data-table/table-header/table-header.js +0 -153
- package/dist/collection/components/data-table/table-header-cell/table-header-cell.css +0 -126
- package/dist/collection/components/data-table/table-header-cell/table-header-cell.js +0 -320
- package/dist/collection/components/data-table/table-toolbar/table-toolbar.css +0 -92
- package/dist/collection/components/data-table/table-toolbar/table-toolbar.js +0 -142
- package/dist/collection/components/datetime/datetime.css +0 -375
- package/dist/collection/components/datetime/datetime.js +0 -251
- package/dist/collection/components/datetime/datetime.stories.js +0 -149
- package/dist/collection/components/divider/divider.stories.js +0 -116
- package/dist/collection/components/dropdown/dropdown-filter/dropdown-filter.js +0 -339
- package/dist/collection/components/dropdown/dropdown-filter/dropdown-filter.stories.js +0 -130
- package/dist/collection/components/dropdown/dropdown-native.stories.js +0 -90
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +0 -185
- package/dist/collection/components/dropdown/dropdown-wc-default.stories.js +0 -151
- package/dist/collection/components/dropdown/dropdown-wc-multiselect.stories.js +0 -146
- package/dist/collection/components/dropdown/dropdown.css +0 -891
- package/dist/collection/components/dropdown/dropdown.js +0 -554
- package/dist/collection/components/footer/footer.stories.js +0 -100
- package/dist/collection/components/header/header-all.stories.js +0 -217
- package/dist/collection/components/header/header-default.stories.js +0 -47
- package/dist/collection/components/header/header-inline.stories.js +0 -113
- package/dist/collection/components/header/header-search.stories.js +0 -263
- package/dist/collection/components/header/header-toolbar.stories.js +0 -204
- package/dist/collection/components/icon/icon-font.stories.js +0 -57
- package/dist/collection/components/icon/icon-web-component.stories.js +0 -51
- package/dist/collection/components/icon/icon.css +0 -16
- package/dist/collection/components/icon/icon.js +0 -89
- package/dist/collection/components/icon/iconsArray.js +0 -2
- package/dist/collection/components/link/link.stories.js +0 -45
- package/dist/collection/components/message/message.stories.js +0 -117
- package/dist/collection/components/modal/modal-native.stories.js +0 -121
- package/dist/collection/components/modal/modal-webcomponent.stories.js +0 -78
- package/dist/collection/components/modal/modal.css +0 -324
- package/dist/collection/components/modal/modal.js +0 -146
- package/dist/collection/components/popover-canvas/popover-canvas.css +0 -20
- package/dist/collection/components/popover-canvas/popover-canvas.js +0 -190
- package/dist/collection/components/popover-canvas/popover-canvas.stories.js +0 -87
- package/dist/collection/components/popover-menu/popover-menu-icons.stories.js +0 -132
- package/dist/collection/components/popover-menu/popover-menu.css +0 -19
- package/dist/collection/components/popover-menu/popover-menu.js +0 -189
- package/dist/collection/components/popover-menu/popover-menu.stories.js +0 -109
- package/dist/collection/components/radio-button/radio-button.stories.js +0 -68
- package/dist/collection/components/side-menu/side-menu.stories.js +0 -182
- package/dist/collection/components/slider/slider.css +0 -260
- package/dist/collection/components/slider/slider.js +0 -682
- package/dist/collection/components/slider/slider.stories.js +0 -251
- package/dist/collection/components/spinner/spinner.css +0 -79
- package/dist/collection/components/spinner/spinner.js +0 -61
- package/dist/collection/components/spinner/spinner.stories.js +0 -59
- package/dist/collection/components/stepper/stepper.stories.js +0 -139
- package/dist/collection/components/tabs/inline-tabs-default/inline-tabs.css +0 -159
- package/dist/collection/components/tabs/inline-tabs-default/inline-tabs.js +0 -302
- package/dist/collection/components/tabs/inline-tabs-default/inline-tabs.stories.js +0 -65
- package/dist/collection/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.css +0 -172
- package/dist/collection/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.js +0 -126
- package/dist/collection/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.stories.js +0 -43
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.css +0 -153
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +0 -103
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.stories.js +0 -32
- package/dist/collection/components/textarea/textarea.css +0 -283
- package/dist/collection/components/textarea/textarea.js +0 -336
- package/dist/collection/components/textarea/textarea.stories.js +0 -149
- package/dist/collection/components/textfield/textfield.css +0 -494
- package/dist/collection/components/textfield/textfield.js +0 -359
- package/dist/collection/components/textfield/textfield.stories.js +0 -222
- package/dist/collection/components/toast/toast.stories.js +0 -119
- package/dist/collection/components/toggle/toggle.stories.js +0 -62
- package/dist/collection/components/tooltip/tooltip.css +0 -46
- package/dist/collection/components/tooltip/tooltip.js +0 -200
- package/dist/collection/components/tooltip/tooltip.stories.js +0 -113
- package/dist/collection/components/utility/colour/background-color.stories.js +0 -96
- package/dist/collection/components/utility/colour/text-color.stories.js +0 -94
- package/dist/collection/foundations-stories/colour/colour-brand.stories.js +0 -38
- package/dist/collection/foundations-stories/colour/colour-scales.stories.js +0 -71
- package/dist/collection/foundations-stories/colour/colour-semantic.stories.js +0 -40
- package/dist/collection/foundations-stories/grid/grid.stories.js +0 -386
- package/dist/collection/foundations-stories/spacing/spacing-element.stories.js +0 -100
- package/dist/collection/foundations-stories/spacing/spacing-layout.stories.js +0 -94
- package/dist/collection/foundations-stories/typography/typography-body.stories.js +0 -16
- package/dist/collection/foundations-stories/typography/typography-detail.stories.js +0 -17
- package/dist/collection/foundations-stories/typography/typography-headline.stories.js +0 -39
- package/dist/collection/foundations-stories/typography/typography-paragraph.stories.js +0 -12
- package/dist/collection/index.js +0 -1
- package/dist/collection/stories/assets/code-brackets.svg +0 -1
- package/dist/collection/stories/assets/colors.svg +0 -1
- package/dist/collection/stories/assets/comments.svg +0 -1
- package/dist/collection/stories/assets/direction.svg +0 -1
- package/dist/collection/stories/assets/flow.svg +0 -1
- package/dist/collection/stories/assets/plugin.svg +0 -1
- package/dist/collection/stories/assets/repo.svg +0 -1
- package/dist/collection/stories/assets/stackalt.svg +0 -1
- package/dist/collection/utils/utils.js +0 -12
- package/dist/components/dropdown-option.js +0 -100
- package/dist/components/dropdown.js +0 -296
- package/dist/components/icon.js +0 -58
- package/dist/components/index.d.ts +0 -50
- package/dist/components/index.js +0 -30
- package/dist/components/popper.js +0 -1799
- package/dist/components/sdds-accordion-item.d.ts +0 -11
- package/dist/components/sdds-accordion-item.js +0 -60
- package/dist/components/sdds-accordion.d.ts +0 -11
- package/dist/components/sdds-accordion.js +0 -38
- package/dist/components/sdds-badges.d.ts +0 -11
- package/dist/components/sdds-badges.js +0 -76
- package/dist/components/sdds-body-cell.d.ts +0 -11
- package/dist/components/sdds-body-cell.js +0 -6
- package/dist/components/sdds-button.d.ts +0 -11
- package/dist/components/sdds-button.js +0 -58
- package/dist/components/sdds-datetime.d.ts +0 -11
- package/dist/components/sdds-datetime.js +0 -90
- package/dist/components/sdds-dropdown-filter.d.ts +0 -11
- package/dist/components/sdds-dropdown-filter.js +0 -138
- package/dist/components/sdds-dropdown-option.d.ts +0 -11
- package/dist/components/sdds-dropdown-option.js +0 -6
- package/dist/components/sdds-dropdown.d.ts +0 -11
- package/dist/components/sdds-dropdown.js +0 -6
- package/dist/components/sdds-header-cell.d.ts +0 -11
- package/dist/components/sdds-header-cell.js +0 -173
- package/dist/components/sdds-icon.d.ts +0 -11
- package/dist/components/sdds-icon.js +0 -6
- package/dist/components/sdds-inline-tabs-fullbleed.d.ts +0 -11
- package/dist/components/sdds-inline-tabs-fullbleed.js +0 -115
- package/dist/components/sdds-inline-tabs.d.ts +0 -11
- package/dist/components/sdds-inline-tabs.js +0 -235
- package/dist/components/sdds-modal.d.ts +0 -11
- package/dist/components/sdds-modal.js +0 -69
- package/dist/components/sdds-navigation-tabs.d.ts +0 -11
- package/dist/components/sdds-navigation-tabs.js +0 -113
- package/dist/components/sdds-popover-canvas.d.ts +0 -11
- package/dist/components/sdds-popover-canvas.js +0 -97
- package/dist/components/sdds-popover-menu.d.ts +0 -11
- package/dist/components/sdds-popover-menu.js +0 -96
- package/dist/components/sdds-slider.d.ts +0 -11
- package/dist/components/sdds-slider.js +0 -366
- package/dist/components/sdds-spinner.d.ts +0 -11
- package/dist/components/sdds-spinner.js +0 -37
- package/dist/components/sdds-table-body-row-expandable.d.ts +0 -11
- package/dist/components/sdds-table-body-row-expandable.js +0 -104
- package/dist/components/sdds-table-body-row.d.ts +0 -11
- package/dist/components/sdds-table-body-row.js +0 -6
- package/dist/components/sdds-table-body.d.ts +0 -11
- package/dist/components/sdds-table-body.js +0 -337
- package/dist/components/sdds-table-footer.d.ts +0 -11
- package/dist/components/sdds-table-footer.js +0 -196
- package/dist/components/sdds-table-header.d.ts +0 -11
- package/dist/components/sdds-table-header.js +0 -125
- package/dist/components/sdds-table-toolbar.d.ts +0 -11
- package/dist/components/sdds-table-toolbar.js +0 -88
- package/dist/components/sdds-table.d.ts +0 -11
- package/dist/components/sdds-table.js +0 -92
- package/dist/components/sdds-textarea.d.ts +0 -11
- package/dist/components/sdds-textarea.js +0 -90
- package/dist/components/sdds-textfield.d.ts +0 -11
- package/dist/components/sdds-textfield.js +0 -111
- package/dist/components/sdds-tooltip.d.ts +0 -11
- package/dist/components/sdds-tooltip.js +0 -116
- package/dist/components/table-body-cell.js +0 -102
- package/dist/components/table-body-row.js +0 -119
- package/dist/esm/index-b67b15a6.js +0 -1884
- package/dist/esm/index.js +0 -1
- package/dist/esm/loader.js +0 -17
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/popper-f860750c.js +0 -1799
- package/dist/esm/sdds-accordion-item.entry.js +0 -30
- package/dist/esm/sdds-accordion.entry.js +0 -17
- package/dist/esm/sdds-badges.entry.js +0 -51
- package/dist/esm/sdds-body-cell_2.entry.js +0 -168
- package/dist/esm/sdds-button.entry.js +0 -32
- package/dist/esm/sdds-datetime.entry.js +0 -62
- package/dist/esm/sdds-dropdown-filter.entry.js +0 -88
- package/dist/esm/sdds-dropdown_2.entry.js +0 -330
- package/dist/esm/sdds-header-cell.entry.js +0 -137
- package/dist/esm/sdds-icon.entry.js +0 -38
- package/dist/esm/sdds-inline-tabs-fullbleed.entry.js +0 -92
- package/dist/esm/sdds-inline-tabs.entry.js +0 -207
- package/dist/esm/sdds-modal.entry.js +0 -45
- package/dist/esm/sdds-navigation-tabs.entry.js +0 -91
- package/dist/esm/sdds-popover-canvas.entry.js +0 -72
- package/dist/esm/sdds-popover-menu.entry.js +0 -71
- package/dist/esm/sdds-slider.entry.js +0 -332
- package/dist/esm/sdds-spinner.entry.js +0 -17
- package/dist/esm/sdds-table-body-row-expandable.entry.js +0 -77
- package/dist/esm/sdds-table-body.entry.js +0 -285
- package/dist/esm/sdds-table-footer.entry.js +0 -161
- package/dist/esm/sdds-table-header.entry.js +0 -96
- package/dist/esm/sdds-table-toolbar.entry.js +0 -62
- package/dist/esm/sdds-table.entry.js +0 -65
- package/dist/esm/sdds-textarea.entry.js +0 -57
- package/dist/esm/sdds-textfield.entry.js +0 -78
- package/dist/esm/sdds-tooltip.entry.js +0 -91
- package/dist/esm/tegel.js +0 -17
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/node_modules/@types/jest/index.d.ts +0 -1512
- package/dist/tegel/index.esm.js +0 -0
- package/dist/tegel/p-040efb32.entry.js +0 -1
- 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-a5919930.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-ec26fc38.js +0 -1
- package/dist/tegel/p-f2262a69.entry.js +0 -1
- package/dist/tegel/p-f2f7aa45.entry.js +0 -1
- package/dist/tegel/tegel.css +0 -101
- package/dist/tegel/tegel.esm.js +0 -1
- package/dist/types/components/accordion/accordion-item/accordion-item.d.ts +0 -17
- package/dist/types/components/accordion/accordion.d.ts +0 -7
- package/dist/types/components/accordion/accordion.stories.d.ts +0 -77
- package/dist/types/components/badge/badge.stories.d.ts +0 -66
- package/dist/types/components/badge/badges.d.ts +0 -16
- package/dist/types/components/banner/banner.stories.d.ts +0 -68
- package/dist/types/components/block/block.stories.d.ts +0 -31
- package/dist/types/components/breadcrumb/breadcrumb.stories.d.ts +0 -12
- package/dist/types/components/button/button-component.d.ts +0 -15
- package/dist/types/components/button/button-native.stories.d.ts +0 -144
- package/dist/types/components/button/button-webcomponent.stories.d.ts +0 -143
- package/dist/types/components/card/card.stories.d.ts +0 -114
- package/dist/types/components/checkbox/checkbox.stories.d.ts +0 -39
- package/dist/types/components/chips/chips.stories.d.ts +0 -81
- package/dist/types/components/data-table/native-table.stories.d.ts +0 -147
- package/dist/types/components/data-table/table/table.d.ts +0 -47
- package/dist/types/components/data-table/table-body/table-body.d.ts +0 -54
- package/dist/types/components/data-table/table-body-cell/table-body-cell.d.ts +0 -24
- package/dist/types/components/data-table/table-body-row/table-body-row.d.ts +0 -27
- package/dist/types/components/data-table/table-body-row-expandable/table-body-row-expandable.d.ts +0 -27
- package/dist/types/components/data-table/table-component-basic.stories.d.ts +0 -100
- package/dist/types/components/data-table/table-component-batch-actions.stories.d.ts +0 -98
- package/dist/types/components/data-table/table-component-bodydata.stories.d.ts +0 -38
- package/dist/types/components/data-table/table-component-custom-width.stories.d.ts +0 -147
- package/dist/types/components/data-table/table-component-event-listeners.stories.d.ts +0 -87
- package/dist/types/components/data-table/table-component-expandable-rows.stories.d.ts +0 -87
- package/dist/types/components/data-table/table-component-filtering.stories.d.ts +0 -100
- package/dist/types/components/data-table/table-component-multiselect.stories.d.ts +0 -100
- package/dist/types/components/data-table/table-component-pagination.stories.d.ts +0 -100
- package/dist/types/components/data-table/table-component-sorting.stories.d.ts +0 -79
- package/dist/types/components/data-table/table-footer/table-footer.d.ts +0 -50
- package/dist/types/components/data-table/table-header/table-header.d.ts +0 -27
- package/dist/types/components/data-table/table-header-cell/table-header-cell.d.ts +0 -45
- package/dist/types/components/data-table/table-toolbar/table-toolbar.d.ts +0 -22
- package/dist/types/components/datetime/datetime.d.ts +0 -32
- package/dist/types/components/datetime/datetime.stories.d.ts +0 -80
- package/dist/types/components/divider/divider.stories.d.ts +0 -72
- package/dist/types/components/dropdown/dropdown-filter/dropdown-filter.d.ts +0 -42
- package/dist/types/components/dropdown/dropdown-filter/dropdown-filter.stories.d.ts +0 -73
- package/dist/types/components/dropdown/dropdown-native.stories.d.ts +0 -57
- package/dist/types/components/dropdown/dropdown-option/dropdown-option.d.ts +0 -19
- package/dist/types/components/dropdown/dropdown-wc-default.stories.d.ts +0 -115
- package/dist/types/components/dropdown/dropdown-wc-multiselect.stories.d.ts +0 -115
- package/dist/types/components/dropdown/dropdown.d.ts +0 -56
- package/dist/types/components/footer/footer.stories.d.ts +0 -23
- package/dist/types/components/header/header-all.stories.d.ts +0 -29
- package/dist/types/components/header/header-default.stories.d.ts +0 -29
- package/dist/types/components/header/header-inline.stories.d.ts +0 -29
- package/dist/types/components/header/header-search.stories.d.ts +0 -29
- package/dist/types/components/header/header-toolbar.stories.d.ts +0 -29
- package/dist/types/components/icon/icon-font.stories.d.ts +0 -38
- package/dist/types/components/icon/icon-web-component.stories.d.ts +0 -38
- package/dist/types/components/icon/icon.d.ts +0 -12
- package/dist/types/components/link/link.stories.d.ts +0 -33
- package/dist/types/components/message/message.stories.d.ts +0 -67
- package/dist/types/components/modal/modal-native.stories.d.ts +0 -51
- package/dist/types/components/modal/modal-webcomponent.stories.d.ts +0 -44
- package/dist/types/components/modal/modal.d.ts +0 -16
- package/dist/types/components/popover-canvas/popover-canvas.d.ts +0 -18
- package/dist/types/components/popover-canvas/popover-canvas.stories.d.ts +0 -25
- package/dist/types/components/popover-menu/popover-menu-icons.stories.d.ts +0 -27
- package/dist/types/components/popover-menu/popover-menu.d.ts +0 -18
- package/dist/types/components/popover-menu/popover-menu.stories.d.ts +0 -27
- package/dist/types/components/radio-button/radio-button.stories.d.ts +0 -41
- package/dist/types/components/side-menu/side-menu.stories.d.ts +0 -42
- package/dist/types/components/slider/slider.d.ts +0 -82
- package/dist/types/components/slider/slider.stories.d.ts +0 -156
- package/dist/types/components/spinner/spinner.d.ts +0 -7
- package/dist/types/components/spinner/spinner.stories.d.ts +0 -37
- package/dist/types/components/stepper/stepper.stories.d.ts +0 -56
- package/dist/types/components/tabs/inline-tabs-default/inline-tabs.d.ts +0 -41
- package/dist/types/components/tabs/inline-tabs-default/inline-tabs.stories.d.ts +0 -41
- package/dist/types/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.d.ts +0 -20
- package/dist/types/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.stories.d.ts +0 -25
- package/dist/types/components/tabs/navigation-tabs/navigation-tabs.d.ts +0 -18
- package/dist/types/components/tabs/navigation-tabs/navigation-tabs.stories.d.ts +0 -13
- package/dist/types/components/textarea/textarea.d.ts +0 -41
- package/dist/types/components/textarea/textarea.stories.d.ts +0 -111
- package/dist/types/components/textfield/textfield.d.ts +0 -42
- package/dist/types/components/textfield/textfield.stories.d.ts +0 -176
- package/dist/types/components/toast/toast.stories.d.ts +0 -58
- package/dist/types/components/toggle/toggle.stories.d.ts +0 -42
- package/dist/types/components/tooltip/tooltip.d.ts +0 -20
- package/dist/types/components/tooltip/tooltip.stories.d.ts +0 -54
- package/dist/types/components/utility/colour/background-color.stories.d.ts +0 -58
- package/dist/types/components/utility/colour/text-color.stories.d.ts +0 -58
- package/dist/types/components.d.ts +0 -1752
- package/dist/types/foundations-stories/colour/colour-brand.stories.d.ts +0 -13
- package/dist/types/foundations-stories/colour/colour-scales.stories.d.ts +0 -13
- package/dist/types/foundations-stories/colour/colour-semantic.stories.d.ts +0 -13
- package/dist/types/foundations-stories/grid/grid.stories.d.ts +0 -35
- package/dist/types/foundations-stories/spacing/spacing-element.stories.d.ts +0 -8
- package/dist/types/foundations-stories/spacing/spacing-layout.stories.d.ts +0 -8
- package/dist/types/foundations-stories/typography/typography-body.stories.d.ts +0 -8
- package/dist/types/foundations-stories/typography/typography-detail.stories.d.ts +0 -8
- package/dist/types/foundations-stories/typography/typography-headline.stories.d.ts +0 -21
- package/dist/types/foundations-stories/typography/typography-paragraph.stories.d.ts +0 -8
- package/dist/types/global.d.ts +0 -2
- package/dist/types/index.d.ts +0 -1
- package/dist/types/stencil-public-runtime.d.ts +0 -1581
- package/dist/types/utils/utils.d.ts +0 -2
- package/loader/cdn.js +0 -3
- package/loader/index.cjs.js +0 -3
- package/loader/index.d.ts +0 -12
- package/loader/index.es2017.js +0 -3
- package/loader/index.js +0 -4
- package/loader/package.json +0 -11
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
import CardImage from '../../stories/assets/image/card-img.png';
|
|
2
|
-
import { formatHtmlPreview } from '../../utils/utils';
|
|
3
|
-
export default {
|
|
4
|
-
title: 'Components/Card',
|
|
5
|
-
parameters: {
|
|
6
|
-
layout: 'centered',
|
|
7
|
-
design: [
|
|
8
|
-
{
|
|
9
|
-
name: 'Figma',
|
|
10
|
-
type: 'figma',
|
|
11
|
-
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=2891%3A125&t=rVXuTOgTmXPauyHd-1',
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
name: 'Link',
|
|
15
|
-
type: 'link',
|
|
16
|
-
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=2891%3A125&t=rVXuTOgTmXPauyHd-1',
|
|
17
|
-
},
|
|
18
|
-
],
|
|
19
|
-
},
|
|
20
|
-
argTypes: {
|
|
21
|
-
headline: {
|
|
22
|
-
name: 'Header text',
|
|
23
|
-
description: 'The header text',
|
|
24
|
-
control: {
|
|
25
|
-
type: 'text',
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
subheadline: {
|
|
29
|
-
name: 'Subheader text',
|
|
30
|
-
description: 'The subheader text',
|
|
31
|
-
control: {
|
|
32
|
-
type: 'text',
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
text: {
|
|
36
|
-
name: 'Body text',
|
|
37
|
-
description: 'The body text for the card',
|
|
38
|
-
control: {
|
|
39
|
-
type: 'text',
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
divider: {
|
|
43
|
-
name: 'Divider',
|
|
44
|
-
description: 'Add a divider to the card',
|
|
45
|
-
control: {
|
|
46
|
-
type: 'boolean',
|
|
47
|
-
},
|
|
48
|
-
table: {
|
|
49
|
-
defaultValue: { summary: false },
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
footer: {
|
|
53
|
-
name: 'Footer',
|
|
54
|
-
description: 'The footer of the card',
|
|
55
|
-
control: {
|
|
56
|
-
type: 'text',
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
clickable: {
|
|
60
|
-
name: 'Clickable',
|
|
61
|
-
description: 'Toggles if the card is clickable or not.',
|
|
62
|
-
control: {
|
|
63
|
-
type: 'boolean',
|
|
64
|
-
},
|
|
65
|
-
table: {
|
|
66
|
-
defaultValue: { summary: false },
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
image: {
|
|
70
|
-
name: 'Image',
|
|
71
|
-
description: 'Image on card',
|
|
72
|
-
control: {
|
|
73
|
-
type: 'boolean',
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
imageTop: {
|
|
77
|
-
name: 'Image on top',
|
|
78
|
-
description: 'Sets the image on top',
|
|
79
|
-
control: {
|
|
80
|
-
type: 'boolean',
|
|
81
|
-
},
|
|
82
|
-
table: {
|
|
83
|
-
defaultValue: { summary: false },
|
|
84
|
-
},
|
|
85
|
-
if: { arg: 'image', eq: true },
|
|
86
|
-
},
|
|
87
|
-
avatar: {
|
|
88
|
-
name: 'Avatar',
|
|
89
|
-
description: 'An avatar image for the card',
|
|
90
|
-
control: {
|
|
91
|
-
type: 'boolean',
|
|
92
|
-
},
|
|
93
|
-
},
|
|
94
|
-
},
|
|
95
|
-
args: {
|
|
96
|
-
headline: 'Header text',
|
|
97
|
-
subheadline: 'Subheader text',
|
|
98
|
-
text: '',
|
|
99
|
-
divider: false,
|
|
100
|
-
footer: '<sdds-icon style="font-size: 20px;" name="arrow_left"></sdds-icon>',
|
|
101
|
-
clickable: false,
|
|
102
|
-
image: false,
|
|
103
|
-
imageTop: false,
|
|
104
|
-
avatar: false,
|
|
105
|
-
},
|
|
106
|
-
};
|
|
107
|
-
const Template = ({ headline, subheadline, footer, clickable, text, divider, imageTop, avatar }) => formatHtmlPreview(`
|
|
108
|
-
<style>
|
|
109
|
-
/* demo-wrapper is for demonstration purposes only*/
|
|
110
|
-
.demo-wrapper {
|
|
111
|
-
width: 300px;
|
|
112
|
-
}
|
|
113
|
-
</style>
|
|
114
|
-
|
|
115
|
-
<div class="demo-wrapper">
|
|
116
|
-
<div class="sdds-card${clickable ? ' sdds-clickable' : ''}">
|
|
117
|
-
${imageTop === true
|
|
118
|
-
? `<img class="sdds-card-img" src="${CardImage}" alt="Add description to image"/>`
|
|
119
|
-
: ''}
|
|
120
|
-
<div class="${avatar ? 'sdds-card-header-avatar' : 'sdds-card-header'}">
|
|
121
|
-
${avatar
|
|
122
|
-
? `
|
|
123
|
-
<div class="sdds-card-avatar">
|
|
124
|
-
<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="18" cy="18" r="18" fill="#E2E2E4"/></svg>
|
|
125
|
-
</div>`
|
|
126
|
-
: ''}
|
|
127
|
-
${avatar
|
|
128
|
-
? `<div class="sdds-card-headlines">
|
|
129
|
-
${headline ? `<h6 class="sdds-card-headline">${headline}</h6>` : ''}
|
|
130
|
-
${subheadline ? `<h6 class="sdds-card-sub-headline" >${subheadline}</h6>` : ''}
|
|
131
|
-
</div>`
|
|
132
|
-
: `${headline ? `<h6 class="sdds-card-headline">${headline}</h6>` : ''}
|
|
133
|
-
${subheadline ? `<h6 class="sdds-card-sub-headline" >${subheadline}</h6>` : ''}
|
|
134
|
-
`}
|
|
135
|
-
</div>
|
|
136
|
-
${imageTop === false
|
|
137
|
-
? `<img class="sdds-card-img" src="${CardImage}" alt="Add description to image"/>`
|
|
138
|
-
: ''}
|
|
139
|
-
${divider ? '<div class="sdds-divider-light-border-top"></div>' : ''}
|
|
140
|
-
${text ? `<div class="sdds-card-body">${text}</div>` : ''}
|
|
141
|
-
${footer ? `<div class="sdds-card-footer">${footer}</div>` : ''}
|
|
142
|
-
</div>
|
|
143
|
-
</div>
|
|
144
|
-
`);
|
|
145
|
-
export const Default = Template.bind({});
|
|
146
|
-
Default.args = {};
|
|
147
|
-
export const SupportText = Template.bind({});
|
|
148
|
-
SupportText.args = {
|
|
149
|
-
text: 'This is a short and consist detail text describing for the user what this text is really about.',
|
|
150
|
-
};
|
|
151
|
-
export const Divider = Template.bind({});
|
|
152
|
-
Divider.args = {
|
|
153
|
-
divider: true,
|
|
154
|
-
text: 'This is a short and consist detail text describing for the user what this text is really about.',
|
|
155
|
-
};
|
|
156
|
-
export const Link = Template.bind({});
|
|
157
|
-
Link.args = {
|
|
158
|
-
divider: true,
|
|
159
|
-
text: 'This is a short and consist detail text describing for the user what this text is really about.',
|
|
160
|
-
footer: '<a class="sdds-link sdds-link--no-underline" href="#">Link text</a><a class="sdds-link sdds-link--no-underline" href="#">Link text</a>',
|
|
161
|
-
};
|
|
162
|
-
export const Button = Template.bind({});
|
|
163
|
-
Button.args = {
|
|
164
|
-
divider: true,
|
|
165
|
-
text: 'This is a short and consist detail text describing for the user what this text is really about.',
|
|
166
|
-
footer: '<button class="sdds-btn sdds-btn-sm sdds-btn-primary">Button text</button>',
|
|
167
|
-
};
|
|
168
|
-
export const Image = Template.bind({});
|
|
169
|
-
Image.args = {
|
|
170
|
-
divider: true,
|
|
171
|
-
text: 'This is a short and consist detail text describing for the user what this text is really about.',
|
|
172
|
-
image: true,
|
|
173
|
-
imageTop: true,
|
|
174
|
-
};
|
|
175
|
-
export const Avatar = Template.bind({});
|
|
176
|
-
Avatar.args = {
|
|
177
|
-
avatar: true,
|
|
178
|
-
divider: false,
|
|
179
|
-
text: 'This is a short and consist detail text describing for the user what this text is really about.',
|
|
180
|
-
imageTop: false,
|
|
181
|
-
};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { formatHtmlPreview } from '../../utils/utils';
|
|
2
|
-
export default {
|
|
3
|
-
title: 'Components/Checkbox',
|
|
4
|
-
parameters: {
|
|
5
|
-
layout: 'centered',
|
|
6
|
-
design: [
|
|
7
|
-
{
|
|
8
|
-
name: 'Figma',
|
|
9
|
-
type: 'figma',
|
|
10
|
-
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=9266%3A17409&t=rVXuTOgTmXPauyHd-1',
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
name: 'Link',
|
|
14
|
-
type: 'link',
|
|
15
|
-
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=9266%3A17409&t=rVXuTOgTmXPauyHd-1',
|
|
16
|
-
},
|
|
17
|
-
],
|
|
18
|
-
},
|
|
19
|
-
argTypes: {
|
|
20
|
-
disabled: {
|
|
21
|
-
name: 'Disabled',
|
|
22
|
-
description: 'Disables the checkbox',
|
|
23
|
-
control: {
|
|
24
|
-
type: 'boolean',
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
checked: {
|
|
28
|
-
name: 'Checked',
|
|
29
|
-
description: 'Checks the checkbox',
|
|
30
|
-
control: {
|
|
31
|
-
type: 'boolean',
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
label: {
|
|
35
|
-
name: 'Label text',
|
|
36
|
-
description: 'The label of the component',
|
|
37
|
-
type: 'string',
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
args: {
|
|
41
|
-
disabled: false,
|
|
42
|
-
checked: false,
|
|
43
|
-
label: 'Label',
|
|
44
|
-
},
|
|
45
|
-
};
|
|
46
|
-
const Template = ({ checked, disabled, label }) => formatHtmlPreview(`
|
|
47
|
-
<div class="sdds-checkbox-item">
|
|
48
|
-
<input class="sdds-form-input" type="checkbox" id="unique-id" ${checked ? 'checked="checked"' : ''} ${disabled ? 'disabled' : ''}>
|
|
49
|
-
${label
|
|
50
|
-
? `<label class="sdds-form-label" for="unique-id" ${disabled ? 'disabled' : ''}> ${label} </label>`
|
|
51
|
-
: ''}
|
|
52
|
-
</div>
|
|
53
|
-
`);
|
|
54
|
-
export const Default = Template.bind({});
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import { formatHtmlPreview } from '../../utils/utils';
|
|
2
|
-
export default {
|
|
3
|
-
title: 'Components/Chips',
|
|
4
|
-
parameters: {
|
|
5
|
-
layout: 'centered',
|
|
6
|
-
design: [
|
|
7
|
-
{
|
|
8
|
-
name: 'Figma',
|
|
9
|
-
type: 'figma',
|
|
10
|
-
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=11268%3A39456&t=rVXuTOgTmXPauyHd-1',
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
name: 'Link',
|
|
14
|
-
type: 'link',
|
|
15
|
-
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=11268%3A39456&t=rVXuTOgTmXPauyHd-1',
|
|
16
|
-
},
|
|
17
|
-
],
|
|
18
|
-
},
|
|
19
|
-
argTypes: {
|
|
20
|
-
placeholderText: {
|
|
21
|
-
name: 'Placeholder',
|
|
22
|
-
description: 'Set custom chip text',
|
|
23
|
-
control: {
|
|
24
|
-
type: 'text',
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
icon: {
|
|
28
|
-
name: 'Icon',
|
|
29
|
-
description: 'Add an icon to the chip.',
|
|
30
|
-
control: {
|
|
31
|
-
type: 'boolean',
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
iconType: {
|
|
35
|
-
name: 'Icon type',
|
|
36
|
-
description: 'Choose what icon type to use',
|
|
37
|
-
control: {
|
|
38
|
-
type: 'radio',
|
|
39
|
-
},
|
|
40
|
-
options: ['Native', 'Web Component'],
|
|
41
|
-
if: { arg: 'icon', eq: true },
|
|
42
|
-
},
|
|
43
|
-
iconPosition: {
|
|
44
|
-
name: 'Icon position',
|
|
45
|
-
description: 'Set the placement of the icon',
|
|
46
|
-
control: {
|
|
47
|
-
type: 'radio',
|
|
48
|
-
},
|
|
49
|
-
options: ['Icon left', 'Icon right'],
|
|
50
|
-
if: { arg: 'icon', eq: true },
|
|
51
|
-
},
|
|
52
|
-
state: {
|
|
53
|
-
name: 'State',
|
|
54
|
-
description: 'Set the chips state as active or default',
|
|
55
|
-
control: {
|
|
56
|
-
type: 'radio',
|
|
57
|
-
},
|
|
58
|
-
options: ['Default', 'Active'],
|
|
59
|
-
},
|
|
60
|
-
size: {
|
|
61
|
-
name: 'Size',
|
|
62
|
-
description: 'Set the chip size',
|
|
63
|
-
control: {
|
|
64
|
-
type: 'radio',
|
|
65
|
-
},
|
|
66
|
-
options: ['Default', 'Small'],
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
args: {
|
|
70
|
-
placeholderText: 'Chip text',
|
|
71
|
-
icon: false,
|
|
72
|
-
iconType: 'Native',
|
|
73
|
-
iconPosition: 'Icon right',
|
|
74
|
-
state: 'Default',
|
|
75
|
-
size: 'Default',
|
|
76
|
-
},
|
|
77
|
-
};
|
|
78
|
-
const Template = ({ icon, iconPosition, iconType, state, placeholderText, size }) => {
|
|
79
|
-
const stateValue = state === 'Active' ? 'sdds-chip__active' : '';
|
|
80
|
-
const sizeValue = size === 'Small' ? 'sdds-chip-sm' : '';
|
|
81
|
-
const iconPositionLookup = {
|
|
82
|
-
'Icon left': 'sdds-chip__icon-left',
|
|
83
|
-
'Icon right': 'sdds-chip__icon-right',
|
|
84
|
-
};
|
|
85
|
-
// TODO - Add dark theme to story
|
|
86
|
-
const iconSvg = `
|
|
87
|
-
${iconType === 'Native'
|
|
88
|
-
? '<i class="sdds-chip-icon sdds-icon notification"></i>'
|
|
89
|
-
: '<sdds-icon class="sdds-chip-icon" name="notification" size="16px"></sdds-icon>'}
|
|
90
|
-
`;
|
|
91
|
-
return formatHtmlPreview(`
|
|
92
|
-
${iconType === 'Native'
|
|
93
|
-
? `<style>
|
|
94
|
-
/* Note: In case you are using WebFont icons, please make sure to import icons css file in your implementation */
|
|
95
|
-
@import url('https://cdn.digitaldesign.scania.com/icons/webfont/css/sdds-icons.css');
|
|
96
|
-
|
|
97
|
-
</style>`
|
|
98
|
-
: ''}
|
|
99
|
-
|
|
100
|
-
<div class="sdds-chip ${icon ? iconPositionLookup[iconPosition] : ''} ${stateValue} ${sizeValue}">
|
|
101
|
-
${icon ? iconSvg : ''}<span class="sdds-chip-text">${placeholderText}</span>
|
|
102
|
-
</div>
|
|
103
|
-
`);
|
|
104
|
-
};
|
|
105
|
-
export const Default = Template.bind({});
|
|
106
|
-
Default.args = {};
|
|
107
|
-
export const IconRight = Template.bind({});
|
|
108
|
-
IconRight.args = {
|
|
109
|
-
icon: true,
|
|
110
|
-
iconPosition: 'Icon right',
|
|
111
|
-
};
|
|
112
|
-
export const IconLeft = Template.bind({});
|
|
113
|
-
IconLeft.args = {
|
|
114
|
-
icon: true,
|
|
115
|
-
iconPosition: 'Icon left',
|
|
116
|
-
};
|
|
117
|
-
export const Active = Template.bind({});
|
|
118
|
-
Active.args = {
|
|
119
|
-
state: 'Active',
|
|
120
|
-
};
|
|
121
|
-
export const Small = Template.bind({});
|
|
122
|
-
Small.args = {
|
|
123
|
-
size: 'Small',
|
|
124
|
-
};
|
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
import { formatHtmlPreview } from '../../utils/utils';
|
|
2
|
-
export default {
|
|
3
|
-
title: 'Components/Data Table/Native',
|
|
4
|
-
argTypes: {
|
|
5
|
-
tableTitle: {
|
|
6
|
-
name: 'Table title',
|
|
7
|
-
description: 'Text that appears in table caption area.',
|
|
8
|
-
control: {
|
|
9
|
-
type: 'text',
|
|
10
|
-
},
|
|
11
|
-
table: {
|
|
12
|
-
defaultValue: {
|
|
13
|
-
summary: '',
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
isCompact: {
|
|
18
|
-
name: 'Compact design',
|
|
19
|
-
description: 'Enables compact design of the table, rows with less height.',
|
|
20
|
-
control: {
|
|
21
|
-
type: 'boolean',
|
|
22
|
-
},
|
|
23
|
-
table: {
|
|
24
|
-
defaultValue: {
|
|
25
|
-
summary: false,
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
dividers: {
|
|
30
|
-
name: 'Vertical dividers',
|
|
31
|
-
description: 'When enabled, table has vertical dividers between columns.',
|
|
32
|
-
control: {
|
|
33
|
-
type: 'boolean',
|
|
34
|
-
},
|
|
35
|
-
table: {
|
|
36
|
-
defaultValue: {
|
|
37
|
-
summary: false,
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
onWhiteBG: {
|
|
42
|
-
name: 'On white background',
|
|
43
|
-
description: 'Changes BG color of table element to grey variation for better visibility on white layouts',
|
|
44
|
-
control: {
|
|
45
|
-
type: 'boolean',
|
|
46
|
-
},
|
|
47
|
-
table: {
|
|
48
|
-
defaultValue: {
|
|
49
|
-
summary: false,
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
responsiveTable: {
|
|
54
|
-
name: 'Responsive table',
|
|
55
|
-
description: 'Table takes 100% of available width. For column values less then 192px, "No minimum width" has to be enabled too. ',
|
|
56
|
-
control: {
|
|
57
|
-
type: 'boolean',
|
|
58
|
-
},
|
|
59
|
-
table: {
|
|
60
|
-
defaultValue: {
|
|
61
|
-
summary: false,
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
noMinWidthArg: {
|
|
66
|
-
name: 'No minimum width',
|
|
67
|
-
description: 'Resets min-width rule and enabled setting column width value less then 192px which is default one. When enabled, controls for columns width will show here.',
|
|
68
|
-
control: {
|
|
69
|
-
type: 'boolean',
|
|
70
|
-
},
|
|
71
|
-
table: {
|
|
72
|
-
defaultValue: {
|
|
73
|
-
summary: false,
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
column1Width: {
|
|
78
|
-
name: 'Column 1 width',
|
|
79
|
-
description: 'Value of width for column 1. In order to work correctly "No minimum width" has to be enabled too. When editing please provide a unit too next tot the value, eg. 200px.',
|
|
80
|
-
type: 'string',
|
|
81
|
-
table: {
|
|
82
|
-
defaultValue: {
|
|
83
|
-
summary: '192px',
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
if: { arg: 'noMinWidthArg', eq: true },
|
|
87
|
-
},
|
|
88
|
-
column2Width: {
|
|
89
|
-
name: 'Column 2 width',
|
|
90
|
-
description: 'Value of width for column 2. In order to work correctly "No minimum width" has to be enabled too. When editing please provide a unit too next tot the value, eg. 200px.',
|
|
91
|
-
type: 'string',
|
|
92
|
-
table: {
|
|
93
|
-
defaultValue: {
|
|
94
|
-
summary: '192px',
|
|
95
|
-
},
|
|
96
|
-
},
|
|
97
|
-
if: { arg: 'noMinWidthArg', eq: true },
|
|
98
|
-
},
|
|
99
|
-
column3Width: {
|
|
100
|
-
name: 'Column 3 width',
|
|
101
|
-
description: 'Value of width for column 3. In order to work correctly "No minimum width" has to be enabled too. When editing please provide a unit too next tot the value, eg. 200px.',
|
|
102
|
-
type: 'string',
|
|
103
|
-
table: {
|
|
104
|
-
defaultValue: {
|
|
105
|
-
summary: '192px',
|
|
106
|
-
},
|
|
107
|
-
},
|
|
108
|
-
if: { arg: 'noMinWidthArg', eq: true },
|
|
109
|
-
},
|
|
110
|
-
column4Width: {
|
|
111
|
-
name: 'Column 4 width',
|
|
112
|
-
description: 'Value of width for column 4. In order to work correctly "No minimum width" has to be enabled too. When editing please provide a unit too next tot the value, eg. 200px.',
|
|
113
|
-
type: 'string',
|
|
114
|
-
table: {
|
|
115
|
-
defaultValue: {
|
|
116
|
-
summary: '192px',
|
|
117
|
-
},
|
|
118
|
-
},
|
|
119
|
-
if: { arg: 'noMinWidthArg', eq: true },
|
|
120
|
-
},
|
|
121
|
-
},
|
|
122
|
-
args: {
|
|
123
|
-
tableTitle: 'Native table',
|
|
124
|
-
isCompact: false,
|
|
125
|
-
dividers: false,
|
|
126
|
-
onWhiteBG: false,
|
|
127
|
-
noMinWidthArg: false,
|
|
128
|
-
responsiveTable: false,
|
|
129
|
-
column1Width: '',
|
|
130
|
-
column2Width: '',
|
|
131
|
-
column3Width: '',
|
|
132
|
-
column4Width: '',
|
|
133
|
-
},
|
|
134
|
-
};
|
|
135
|
-
const Template = (args) => formatHtmlPreview(`
|
|
136
|
-
<table class="
|
|
137
|
-
sdds-table
|
|
138
|
-
${args.isCompact ? 'sdds-table--compact' : ''}
|
|
139
|
-
${args.dividers ? 'sdds-table--divider' : ''}
|
|
140
|
-
${args.onWhiteBG ? 'sdds-table--on-white-bg' : ''}
|
|
141
|
-
${args.noMinWidthArg ? 'sdds-table--no-min-width' : ''}
|
|
142
|
-
${args.responsiveTable ? 'sdds-table--responsive' : ''}
|
|
143
|
-
" >
|
|
144
|
-
${args.tableTitle && `<caption class="sdds-table__title">${args.tableTitle}</caption>`}
|
|
145
|
-
<thead class="sdds-table__header">
|
|
146
|
-
<tr class="sdds-table__row">
|
|
147
|
-
<th class="sdds-table__header-cell" ${args.column1Width ? `style="width: ${args.column1Width};"` : ''}>Header</th>
|
|
148
|
-
<th class="sdds-table__header-cell" ${args.column2Width ? `style="width: ${args.column2Width};"` : ''}>Header</th>
|
|
149
|
-
<th class="sdds-table__header-cell" ${args.column3Width ? `style="width: ${args.column3Width};"` : ''}>Header</th>
|
|
150
|
-
<th class="sdds-table__header-cell" ${args.column4Width ? `style="width: ${args.column4Width};"` : ''}>Header</th>
|
|
151
|
-
</tr>
|
|
152
|
-
</thead>
|
|
153
|
-
<tbody class="sdds-table__body">
|
|
154
|
-
<tr class="sdds-table__row">
|
|
155
|
-
<td class="sdds-table__body-cell">Text</td>
|
|
156
|
-
<td class="sdds-table__body-cell">Text</td>
|
|
157
|
-
<td class="sdds-table__body-cell">Text</td>
|
|
158
|
-
<td class="sdds-table__body-cell">Text</td>
|
|
159
|
-
</tr>
|
|
160
|
-
<tr class="sdds-table__row">
|
|
161
|
-
<td class="sdds-table__body-cell">Text</td>
|
|
162
|
-
<td class="sdds-table__body-cell">Text</td>
|
|
163
|
-
<td class="sdds-table__body-cell">Text</td>
|
|
164
|
-
<td class="sdds-table__body-cell">Text</td>
|
|
165
|
-
</tr>
|
|
166
|
-
<tr class="sdds-table__row">
|
|
167
|
-
<td class="sdds-table__body-cell">Text</td>
|
|
168
|
-
<td class="sdds-table__body-cell">Text</td>
|
|
169
|
-
<td class="sdds-table__body-cell">Text</td>
|
|
170
|
-
<td class="sdds-table__body-cell">Text</td>
|
|
171
|
-
</tr>
|
|
172
|
-
<tr class="sdds-table__row">
|
|
173
|
-
<td class="sdds-table__body-cell">Text</td>
|
|
174
|
-
<td class="sdds-table__body-cell">Text</td>
|
|
175
|
-
<td class="sdds-table__body-cell">Text</td>
|
|
176
|
-
<td class="sdds-table__body-cell">Text</td>
|
|
177
|
-
</tr>
|
|
178
|
-
</tbody>
|
|
179
|
-
</table>
|
|
180
|
-
`);
|
|
181
|
-
export const Default = Template.bind({});
|
|
182
|
-
Default.args = {};
|