@scania/tegel 1.39.0 → 1.40.0-stencil-core-4.38.1-beta.0
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-Cpz8G-hs.js +2379 -0
- package/dist/cjs/{inheritAriaAttributes-dedbbc57.js → inheritAriaAttributes-D_xFGssc.js} +1 -1
- package/dist/cjs/{isHeadingElement-4f06b688.js → isHeadingElement-DihKNeqS.js} +1 -1
- package/dist/cjs/loader.cjs.js +3 -6
- package/dist/cjs/tds-accordion-item.cjs.entry.js +10 -7
- package/dist/cjs/tds-accordion.cjs.entry.js +4 -5
- package/dist/cjs/tds-badge.cjs.entry.js +6 -5
- package/dist/cjs/tds-banner.cjs.entry.js +18 -14
- package/dist/cjs/tds-block.cjs.entry.js +4 -5
- package/dist/cjs/tds-body-cell.cjs.entry.js +5 -11
- package/dist/cjs/tds-breadcrumb.cjs.entry.js +3 -5
- package/dist/cjs/tds-breadcrumbs.cjs.entry.js +2 -6
- package/dist/cjs/tds-button_2.cjs.entry.js +15 -14
- package/dist/cjs/tds-card.cjs.entry.js +28 -19
- package/dist/cjs/tds-checkbox.cjs.entry.js +13 -15
- package/dist/cjs/tds-chip.cjs.entry.js +19 -16
- package/dist/cjs/tds-core-header-item_2.cjs.entry.js +11 -12
- package/dist/cjs/tds-datetime.cjs.entry.js +29 -25
- package/dist/cjs/tds-dropdown_2.cjs.entry.js +65 -58
- package/dist/cjs/tds-folder-tab.cjs.entry.js +5 -8
- package/dist/cjs/tds-folder-tabs.cjs.entry.js +15 -15
- package/dist/cjs/tds-footer-group.cjs.entry.js +8 -13
- package/dist/cjs/tds-footer-item.cjs.entry.js +3 -6
- package/dist/cjs/tds-footer.cjs.entry.js +7 -9
- package/dist/cjs/tds-header-brand-symbol.cjs.entry.js +3 -6
- package/dist/cjs/tds-header-cell.cjs.entry.js +19 -23
- package/dist/cjs/tds-header-dropdown-list-item.cjs.entry.js +7 -8
- package/dist/cjs/tds-header-dropdown-list-user.cjs.entry.js +3 -10
- package/dist/cjs/tds-header-dropdown-list.cjs.entry.js +6 -9
- package/dist/cjs/tds-header-dropdown.cjs.entry.js +12 -16
- package/dist/cjs/tds-header-hamburger.cjs.entry.js +5 -9
- package/dist/cjs/tds-header-launcher-button.cjs.entry.js +7 -9
- package/dist/cjs/tds-header-launcher-grid-item.cjs.entry.js +3 -6
- package/dist/cjs/tds-header-launcher-grid-title.cjs.entry.js +4 -7
- package/dist/cjs/tds-header-launcher-grid.cjs.entry.js +5 -9
- package/dist/cjs/tds-header-launcher-list-item.cjs.entry.js +3 -6
- package/dist/cjs/tds-header-launcher-list-title.cjs.entry.js +4 -7
- package/dist/cjs/tds-header-launcher-list.cjs.entry.js +3 -5
- package/dist/cjs/tds-header-launcher.cjs.entry.js +8 -13
- package/dist/cjs/tds-header-title.cjs.entry.js +4 -7
- package/dist/cjs/tds-header.cjs.entry.js +5 -8
- package/dist/cjs/tds-icon.cjs.entry.js +11 -13
- package/dist/cjs/tds-inline-tab.cjs.entry.js +6 -8
- package/dist/cjs/tds-inline-tabs.cjs.entry.js +17 -16
- package/dist/cjs/tds-link.cjs.entry.js +7 -7
- package/dist/cjs/tds-message.cjs.entry.js +16 -16
- package/dist/cjs/tds-modal.cjs.entry.js +20 -20
- package/dist/cjs/tds-navigation-tab.cjs.entry.js +5 -7
- package/dist/cjs/tds-navigation-tabs.cjs.entry.js +18 -17
- package/dist/cjs/tds-popover-canvas.cjs.entry.js +19 -13
- package/dist/cjs/tds-popover-core.cjs.entry.js +40 -36
- package/dist/cjs/tds-popover-menu-item.cjs.entry.js +5 -7
- package/dist/cjs/tds-popover-menu.cjs.entry.js +18 -13
- package/dist/cjs/tds-radio-button.cjs.entry.js +12 -15
- package/dist/cjs/tds-side-menu-close-button.cjs.entry.js +5 -8
- package/dist/cjs/tds-side-menu-collapse-button.cjs.entry.js +6 -9
- package/dist/cjs/tds-side-menu-dropdown-list-item.cjs.entry.js +6 -8
- package/dist/cjs/tds-side-menu-dropdown-list.cjs.entry.js +4 -7
- package/dist/cjs/tds-side-menu-dropdown.cjs.entry.js +8 -10
- package/dist/cjs/tds-side-menu-item.cjs.entry.js +9 -9
- package/dist/cjs/tds-side-menu-overlay.cjs.entry.js +3 -6
- package/dist/cjs/tds-side-menu-user-image_2.cjs.entry.js +5 -13
- package/dist/cjs/tds-side-menu-user.cjs.entry.js +3 -10
- package/dist/cjs/tds-side-menu.cjs.entry.js +15 -12
- package/dist/cjs/tds-slider.cjs.entry.js +47 -32
- package/dist/cjs/tds-spinner.cjs.entry.js +5 -6
- package/dist/cjs/tds-step.cjs.entry.js +4 -12
- package/dist/cjs/tds-stepper.cjs.entry.js +13 -6
- package/dist/cjs/tds-table-body-input-wrapper.cjs.entry.js +4 -6
- package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +18 -14
- package/dist/cjs/tds-table-body-row.cjs.entry.js +7 -7
- package/dist/cjs/tds-table-body.cjs.entry.js +9 -13
- package/dist/cjs/tds-table-footer.cjs.entry.js +24 -20
- package/dist/cjs/tds-table-header-input-wrapper.cjs.entry.js +4 -6
- package/dist/cjs/tds-table-header.cjs.entry.js +7 -8
- package/dist/cjs/tds-table-toolbar.cjs.entry.js +7 -7
- package/dist/cjs/tds-table.cjs.entry.js +21 -7
- package/dist/cjs/tds-tag.cjs.entry.js +6 -8
- package/dist/cjs/tds-text-field.cjs.entry.js +29 -18
- package/dist/cjs/tds-textarea.cjs.entry.js +19 -16
- package/dist/cjs/tds-toast.cjs.entry.js +19 -19
- package/dist/cjs/tds-toggle.cjs.entry.js +16 -17
- package/dist/cjs/tds-tooltip.cjs.entry.js +21 -19
- package/dist/cjs/tegel.cjs.js +7 -8
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/accordion/accordion-item/accordion-item.css +9 -34
- package/dist/collection/components/accordion/accordion-item/accordion-item.js +24 -6
- package/dist/collection/components/accordion/accordion.js +8 -2
- package/dist/collection/components/badge/badge.js +16 -4
- package/dist/collection/components/banner/banner.js +39 -18
- package/dist/collection/components/block/block.js +8 -2
- package/dist/collection/components/breadcrumbs/breadcrumb/breadcrumb.js +4 -1
- package/dist/collection/components/breadcrumbs/breadcrumbs.js +4 -5
- package/dist/collection/components/button/button.css +14 -14
- package/dist/collection/components/button/button.js +44 -19
- package/dist/collection/components/card/card.js +64 -28
- package/dist/collection/components/checkbox/checkbox.js +41 -22
- package/dist/collection/components/chip/chip.css +23 -15
- package/dist/collection/components/chip/chip.js +41 -19
- package/dist/collection/components/datetime/datetime.css +21 -96
- package/dist/collection/components/datetime/datetime.js +77 -38
- package/dist/collection/components/divider/divider.js +9 -3
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.css +1 -1
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +34 -21
- package/dist/collection/components/dropdown/dropdown.js +91 -55
- package/dist/collection/components/footer/footer-group/footer-group.js +13 -11
- package/dist/collection/components/footer/footer-item/footer-item.js +1 -1
- package/dist/collection/components/footer/footer.js +7 -4
- package/dist/collection/components/header/core-header-item/core-header-item.js +1 -1
- package/dist/collection/components/header/header-brand-symbol/header-brand-symbol.js +1 -1
- package/dist/collection/components/header/header-dropdown/header-dropdown.css +5 -0
- package/dist/collection/components/header/header-dropdown/header-dropdown.js +22 -15
- package/dist/collection/components/header/header-dropdown-list/header-dropdown-list.js +5 -3
- package/dist/collection/components/header/header-dropdown-list-item/header-dropdown-list-item.css +5 -3
- package/dist/collection/components/header/header-dropdown-list-item/header-dropdown-list-item.js +10 -4
- package/dist/collection/components/header/header-dropdown-list-user/header-dropdown-list-user.js +17 -15
- package/dist/collection/components/header/header-hamburger/header-hamburger.js +5 -6
- package/dist/collection/components/header/header-item/header-item.css +12 -5
- package/dist/collection/components/header/header-item/header-item.js +11 -4
- package/dist/collection/components/header/header-launcher/header-launcher.js +7 -7
- package/dist/collection/components/header/header-launcher-button/header-launcher-button.js +10 -5
- package/dist/collection/components/header/header-launcher-grid/header-launcher-grid.js +1 -4
- package/dist/collection/components/header/header-launcher-grid-item/header-launcher-grid-item.js +1 -1
- package/dist/collection/components/header/header-launcher-grid-title/header-launcher-grid-title.js +1 -1
- package/dist/collection/components/header/header-launcher-list/header-launcher-list.js +1 -1
- package/dist/collection/components/header/header-launcher-list-item/header-launcher-list-item.js +1 -1
- package/dist/collection/components/header/header-launcher-list-title/header-launcher-list-title.js +1 -1
- package/dist/collection/components/header/header-title/header-title.css +2 -0
- package/dist/collection/components/header/header-title/header-title.js +1 -1
- package/dist/collection/components/header/header.js +1 -1
- package/dist/collection/components/icon/icon.js +27 -16
- package/dist/collection/components/link/link.js +14 -5
- package/dist/collection/components/message/message.css +9 -9
- package/dist/collection/components/message/message.js +35 -18
- package/dist/collection/components/modal/modal.js +46 -25
- package/dist/collection/components/popover-canvas/popover-canvas.js +49 -18
- package/dist/collection/components/popover-core/popover-core.js +61 -30
- package/dist/collection/components/popover-menu/popover-menu-item/popover-menu-item.js +6 -3
- package/dist/collection/components/popover-menu/popover-menu.js +46 -18
- package/dist/collection/components/radio-button/radio-button.js +37 -21
- package/dist/collection/components/side-menu/side-menu-close-button/side-menu-close-button.js +1 -1
- package/dist/collection/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.js +4 -4
- package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.js +19 -10
- package/dist/collection/components/side-menu/side-menu-dropdown-list/side-menu-dropdown-list.js +2 -2
- package/dist/collection/components/side-menu/side-menu-dropdown-list-item/side-menu-dropdown-list-item.css +1 -0
- package/dist/collection/components/side-menu/side-menu-dropdown-list-item/side-menu-dropdown-list-item.js +6 -3
- package/dist/collection/components/side-menu/side-menu-item/side-menu-item.css +1 -0
- package/dist/collection/components/side-menu/side-menu-item/side-menu-item.js +11 -4
- package/dist/collection/components/side-menu/side-menu-overlay/side-menu-overlay.js +1 -1
- package/dist/collection/components/side-menu/side-menu-user/side-menu-user.js +17 -15
- package/dist/collection/components/side-menu/side-menu-user-image/side-menu-user-image.js +9 -9
- package/dist/collection/components/side-menu/side-menu-user-label/side-menu-user-label.js +9 -9
- package/dist/collection/components/side-menu/side-menu.js +22 -10
- package/dist/collection/components/slider/slider.js +98 -44
- package/dist/collection/components/spinner/spinner.js +9 -3
- package/dist/collection/components/stepper/step/step.js +13 -12
- package/dist/collection/components/stepper/stepper.js +28 -6
- package/dist/collection/components/table/table/table.js +49 -12
- package/dist/collection/components/table/table-body/table-body.js +7 -8
- package/dist/collection/components/table/table-body-cell/table-body-cell.js +18 -13
- package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.js +5 -2
- package/dist/collection/components/table/table-body-row/table-body-row.js +14 -5
- package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +34 -15
- package/dist/collection/components/table/table-footer/table-footer.js +39 -20
- package/dist/collection/components/table/table-header/table-header.js +18 -8
- package/dist/collection/components/table/table-header-cell/table-header-cell.js +41 -28
- package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.js +8 -3
- package/dist/collection/components/table/table-toolbar/table-toolbar.js +14 -5
- package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.js +6 -4
- package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +29 -16
- package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.css +11 -12
- package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.js +6 -3
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.css +9 -2
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +33 -17
- package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.js +6 -3
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +35 -19
- package/dist/collection/components/tag/tag.js +13 -6
- package/dist/collection/components/text-field/text-field.js +128 -36
- package/dist/collection/components/textarea/textarea.js +71 -31
- package/dist/collection/components/toast/toast.js +45 -24
- package/dist/collection/components/toggle/toggle.js +40 -22
- package/dist/collection/components/tooltip/tooltip.js +53 -26
- package/dist/collection/utils/dom.js +7 -0
- package/dist/components/index.js +1790 -1
- package/dist/components/{p-f04f04b5.js → p-B569z5eW.js} +25 -15
- package/dist/components/{p-ad6babcd.js → p-BHBgkUfr.js} +15 -11
- package/dist/components/{p-9ad61cb5.js → p-BhLq7lgx.js} +8 -7
- package/dist/components/{p-de36fc8a.js → p-BiyghEA7.js} +40 -42
- package/dist/components/{p-92c2da85.js → p-BxmFjTxG.js} +14 -10
- package/dist/components/{p-927cf777.js → p-CMsPXG7a.js} +8 -9
- package/dist/components/{p-b390ece5.js → p-CPDv0bBc.js} +16 -14
- package/dist/components/{p-44f5b5e1.js → p-Ca3wGDna.js} +18 -16
- package/dist/components/p-ChCWm6If.js +95 -0
- package/dist/components/{p-859e3ebf.js → p-CuIyaNyT.js} +1 -1
- package/dist/components/{p-072bf53a.js → p-D1ati-pM.js} +14 -12
- package/dist/components/{p-40253725.js → p-DnzQe_HU.js} +27 -21
- package/dist/components/{p-b609e7a7.js → p-DuxH3vDC.js} +8 -9
- package/dist/components/{p-c4318e35.js → p-Ee9QeMgy.js} +41 -26
- package/dist/components/{p-6eecf159.js → p-FqP1yGh_.js} +10 -7
- package/dist/components/{p-71c3dfe9.js → p-HRj1DOvh.js} +12 -9
- package/dist/components/{p-3b58a9f3.js → p-Ip9G3co9.js} +39 -22
- package/dist/components/{p-0bd4c19c.js → p-Q3W78DlP.js} +1 -1
- package/dist/components/{p-d0cf68be.js → p-QnvG_QPu.js} +10 -9
- package/dist/components/{p-d3866be7.js → p-X1sPx4t5.js} +45 -37
- package/dist/components/tds-accordion-item.js +16 -9
- package/dist/components/tds-accordion.js +9 -6
- package/dist/components/tds-badge.js +11 -6
- package/dist/components/tds-banner.js +24 -16
- package/dist/components/tds-block.js +9 -6
- package/dist/components/tds-body-cell.js +10 -12
- package/dist/components/tds-breadcrumb.js +8 -6
- package/dist/components/tds-breadcrumbs.js +7 -7
- package/dist/components/tds-button.js +1 -1
- package/dist/components/tds-card.js +36 -23
- package/dist/components/tds-checkbox.js +1 -1
- package/dist/components/tds-chip.js +24 -17
- package/dist/components/tds-core-header-item.js +1 -1
- package/dist/components/tds-datetime.js +35 -27
- package/dist/components/tds-divider.js +1 -1
- package/dist/components/tds-dropdown-option.js +1 -1
- package/dist/components/tds-dropdown.js +1 -1
- package/dist/components/tds-folder-tab.js +10 -9
- package/dist/components/tds-folder-tabs.js +21 -17
- package/dist/components/tds-footer-group.js +14 -15
- package/dist/components/tds-footer-item.js +8 -7
- package/dist/components/tds-footer.js +12 -10
- package/dist/components/tds-header-brand-symbol.js +10 -9
- package/dist/components/tds-header-cell.js +25 -25
- package/dist/components/tds-header-dropdown-list-item.js +1 -1
- package/dist/components/tds-header-dropdown-list-user.js +8 -11
- package/dist/components/tds-header-dropdown-list.js +1 -1
- package/dist/components/tds-header-dropdown.js +22 -22
- package/dist/components/tds-header-hamburger.js +12 -12
- package/dist/components/tds-header-item.js +1 -1
- package/dist/components/tds-header-launcher-button.js +1 -1
- package/dist/components/tds-header-launcher-grid-item.js +8 -7
- package/dist/components/tds-header-launcher-grid-title.js +9 -8
- package/dist/components/tds-header-launcher-grid.js +9 -9
- package/dist/components/tds-header-launcher-list-item.js +9 -8
- package/dist/components/tds-header-launcher-list-title.js +9 -8
- package/dist/components/tds-header-launcher-list.js +9 -7
- package/dist/components/tds-header-launcher.js +18 -19
- package/dist/components/tds-header-title.js +9 -8
- package/dist/components/tds-header.js +9 -8
- package/dist/components/tds-icon.js +1 -1
- package/dist/components/tds-inline-tab.js +11 -9
- package/dist/components/tds-inline-tabs.js +23 -18
- package/dist/components/tds-link.js +12 -8
- package/dist/components/tds-message.js +22 -18
- package/dist/components/tds-modal.js +26 -22
- package/dist/components/tds-navigation-tab.js +10 -8
- package/dist/components/tds-navigation-tabs.js +24 -19
- package/dist/components/tds-popover-canvas.js +1 -1
- package/dist/components/tds-popover-core.js +1 -1
- package/dist/components/tds-popover-menu-item.js +10 -8
- package/dist/components/tds-popover-menu.js +24 -15
- package/dist/components/tds-radio-button.js +17 -16
- package/dist/components/tds-side-menu-close-button.js +10 -9
- package/dist/components/tds-side-menu-collapse-button.js +12 -11
- package/dist/components/tds-side-menu-dropdown-list-item.js +11 -9
- package/dist/components/tds-side-menu-dropdown-list.js +9 -8
- package/dist/components/tds-side-menu-dropdown.js +15 -13
- package/dist/components/tds-side-menu-item.js +1 -1
- package/dist/components/tds-side-menu-overlay.js +8 -7
- package/dist/components/tds-side-menu-user-image.js +1 -1
- package/dist/components/tds-side-menu-user-label.js +1 -1
- package/dist/components/tds-side-menu-user.js +10 -13
- package/dist/components/tds-side-menu.js +20 -13
- package/dist/components/tds-slider.js +56 -37
- package/dist/components/tds-spinner.js +10 -7
- package/dist/components/tds-step.js +10 -14
- package/dist/components/tds-stepper.js +18 -7
- package/dist/components/tds-table-body-input-wrapper.js +10 -8
- package/dist/components/tds-table-body-row-expandable.js +23 -15
- package/dist/components/tds-table-body-row.js +13 -9
- package/dist/components/tds-table-body.js +14 -14
- package/dist/components/tds-table-footer.js +33 -25
- package/dist/components/tds-table-header-input-wrapper.js +10 -8
- package/dist/components/tds-table-header.js +13 -10
- package/dist/components/tds-table-toolbar.js +13 -9
- package/dist/components/tds-table.js +26 -8
- package/dist/components/tds-tag.js +11 -9
- package/dist/components/tds-text-field.js +1 -1
- package/dist/components/tds-textarea.js +27 -20
- package/dist/components/tds-toast.js +25 -21
- package/dist/components/tds-toggle.js +21 -18
- package/dist/components/tds-tooltip.js +1 -1
- package/dist/esm/index-Cl9XBhQW.js +2350 -0
- package/dist/esm/{inheritAriaAttributes-04f2f252.js → inheritAriaAttributes-DyLhgCIg.js} +1 -1
- package/dist/esm/{isHeadingElement-8efea284.js → isHeadingElement-BQco7VNg.js} +1 -1
- package/dist/esm/loader.js +3 -4
- package/dist/esm/tds-accordion-item.entry.js +10 -5
- package/dist/esm/tds-accordion.entry.js +4 -3
- package/dist/esm/tds-badge.entry.js +6 -3
- package/dist/esm/tds-banner.entry.js +18 -12
- package/dist/esm/tds-block.entry.js +4 -3
- package/dist/esm/tds-body-cell.entry.js +5 -9
- package/dist/esm/tds-breadcrumb.entry.js +3 -3
- package/dist/esm/tds-breadcrumbs.entry.js +2 -4
- package/dist/esm/tds-button_2.entry.js +15 -12
- package/dist/esm/tds-card.entry.js +28 -17
- package/dist/esm/tds-checkbox.entry.js +13 -13
- package/dist/esm/tds-chip.entry.js +19 -14
- package/dist/esm/tds-core-header-item_2.entry.js +11 -10
- package/dist/esm/tds-datetime.entry.js +29 -23
- package/dist/esm/tds-dropdown_2.entry.js +65 -56
- package/dist/esm/tds-folder-tab.entry.js +5 -6
- package/dist/esm/tds-folder-tabs.entry.js +15 -13
- package/dist/esm/tds-footer-group.entry.js +8 -11
- package/dist/esm/tds-footer-item.entry.js +3 -4
- package/dist/esm/tds-footer.entry.js +7 -7
- package/dist/esm/tds-header-brand-symbol.entry.js +3 -4
- package/dist/esm/tds-header-cell.entry.js +19 -21
- package/dist/esm/tds-header-dropdown-list-item.entry.js +7 -6
- package/dist/esm/tds-header-dropdown-list-user.entry.js +3 -8
- package/dist/esm/tds-header-dropdown-list.entry.js +6 -7
- package/dist/esm/tds-header-dropdown.entry.js +12 -14
- package/dist/esm/tds-header-hamburger.entry.js +5 -7
- package/dist/esm/tds-header-launcher-button.entry.js +7 -7
- package/dist/esm/tds-header-launcher-grid-item.entry.js +3 -4
- package/dist/esm/tds-header-launcher-grid-title.entry.js +4 -5
- package/dist/esm/tds-header-launcher-grid.entry.js +5 -7
- package/dist/esm/tds-header-launcher-list-item.entry.js +3 -4
- package/dist/esm/tds-header-launcher-list-title.entry.js +4 -5
- package/dist/esm/tds-header-launcher-list.entry.js +3 -3
- package/dist/esm/tds-header-launcher.entry.js +8 -11
- package/dist/esm/tds-header-title.entry.js +4 -5
- package/dist/esm/tds-header.entry.js +5 -6
- package/dist/esm/tds-icon.entry.js +11 -11
- package/dist/esm/tds-inline-tab.entry.js +6 -6
- package/dist/esm/tds-inline-tabs.entry.js +17 -14
- package/dist/esm/tds-link.entry.js +7 -5
- package/dist/esm/tds-message.entry.js +16 -14
- package/dist/esm/tds-modal.entry.js +20 -18
- package/dist/esm/tds-navigation-tab.entry.js +5 -5
- package/dist/esm/tds-navigation-tabs.entry.js +18 -15
- package/dist/esm/tds-popover-canvas.entry.js +19 -11
- package/dist/esm/tds-popover-core.entry.js +40 -34
- package/dist/esm/tds-popover-menu-item.entry.js +5 -5
- package/dist/esm/tds-popover-menu.entry.js +18 -11
- package/dist/esm/tds-radio-button.entry.js +12 -13
- package/dist/esm/tds-side-menu-close-button.entry.js +5 -6
- package/dist/esm/tds-side-menu-collapse-button.entry.js +6 -7
- package/dist/esm/tds-side-menu-dropdown-list-item.entry.js +6 -6
- package/dist/esm/tds-side-menu-dropdown-list.entry.js +4 -5
- package/dist/esm/tds-side-menu-dropdown.entry.js +8 -8
- package/dist/esm/tds-side-menu-item.entry.js +9 -7
- package/dist/esm/tds-side-menu-overlay.entry.js +3 -4
- package/dist/esm/tds-side-menu-user-image_2.entry.js +5 -11
- package/dist/esm/tds-side-menu-user.entry.js +3 -8
- package/dist/esm/tds-side-menu.entry.js +15 -10
- package/dist/esm/tds-slider.entry.js +47 -30
- package/dist/esm/tds-spinner.entry.js +5 -4
- package/dist/esm/tds-step.entry.js +4 -10
- package/dist/esm/tds-stepper.entry.js +13 -4
- package/dist/esm/tds-table-body-input-wrapper.entry.js +4 -4
- package/dist/esm/tds-table-body-row-expandable.entry.js +18 -12
- package/dist/esm/tds-table-body-row.entry.js +7 -5
- package/dist/esm/tds-table-body.entry.js +9 -11
- package/dist/esm/tds-table-footer.entry.js +24 -18
- package/dist/esm/tds-table-header-input-wrapper.entry.js +4 -4
- package/dist/esm/tds-table-header.entry.js +7 -6
- package/dist/esm/tds-table-toolbar.entry.js +7 -5
- package/dist/esm/tds-table.entry.js +21 -5
- package/dist/esm/tds-tag.entry.js +6 -6
- package/dist/esm/tds-text-field.entry.js +29 -16
- package/dist/esm/tds-textarea.entry.js +19 -14
- package/dist/esm/tds-toast.entry.js +19 -17
- package/dist/esm/tds-toggle.entry.js +16 -15
- package/dist/esm/tds-tooltip.entry.js +21 -17
- package/dist/esm/tegel.js +5 -5
- package/dist/tegel/{p-6e57997e.entry.js → p-03d1456f.entry.js} +1 -1
- package/dist/tegel/p-07c5665c.entry.js +1 -0
- package/dist/tegel/p-08d8a464.entry.js +1 -0
- package/dist/tegel/{p-b734b309.entry.js → p-0a3bd804.entry.js} +1 -1
- package/dist/tegel/{p-72006dd7.entry.js → p-0ab44df9.entry.js} +1 -1
- package/dist/tegel/p-0e8721cf.entry.js +1 -0
- package/dist/tegel/p-1371f357.entry.js +1 -0
- package/dist/tegel/p-147d2c33.entry.js +1 -0
- package/dist/tegel/p-250a843a.entry.js +1 -0
- package/dist/tegel/p-2b89b750.entry.js +1 -0
- package/dist/tegel/p-2c5e101e.entry.js +1 -0
- package/dist/tegel/p-2ebac517.entry.js +1 -0
- package/dist/tegel/{p-2f9b15f6.entry.js → p-36ea4775.entry.js} +1 -1
- package/dist/tegel/p-37873e68.entry.js +1 -0
- package/dist/tegel/p-37aa4516.entry.js +1 -0
- package/dist/tegel/p-3910b9e0.entry.js +1 -0
- package/dist/tegel/p-39f80d1b.entry.js +1 -0
- package/dist/tegel/{p-3022d31d.entry.js → p-3c409856.entry.js} +1 -1
- package/dist/tegel/p-3e1edb21.entry.js +1 -0
- package/dist/tegel/p-3e27eee0.entry.js +1 -0
- package/dist/tegel/p-3f0c978a.entry.js +1 -0
- package/dist/tegel/p-41fa3671.entry.js +1 -0
- package/dist/tegel/{p-bcdf13e0.entry.js → p-449e8c13.entry.js} +1 -1
- package/dist/tegel/p-4b711300.entry.js +1 -0
- package/dist/tegel/p-4ebf13bf.entry.js +1 -0
- package/dist/tegel/{p-525c81b1.entry.js → p-57def79e.entry.js} +1 -1
- package/dist/tegel/p-599ae54d.entry.js +1 -0
- package/dist/tegel/{p-650b98bf.entry.js → p-59a1c10f.entry.js} +1 -1
- package/dist/tegel/p-5d64b236.entry.js +1 -0
- package/dist/tegel/p-6066b5be.entry.js +1 -0
- package/dist/tegel/p-620b157a.entry.js +1 -0
- package/dist/tegel/p-624a8ca4.entry.js +1 -0
- package/dist/tegel/p-628798d4.entry.js +1 -0
- package/dist/tegel/p-63646981.entry.js +1 -0
- package/dist/tegel/{p-87740f23.entry.js → p-69bf3133.entry.js} +1 -1
- package/dist/tegel/{p-d0f09796.entry.js → p-6cad127c.entry.js} +1 -1
- package/dist/tegel/{p-c465f9b8.entry.js → p-6d3447b7.entry.js} +1 -1
- package/dist/tegel/p-71943f32.entry.js +1 -0
- package/dist/tegel/p-7ba0b456.entry.js +1 -0
- package/dist/tegel/p-802e8d8a.entry.js +1 -0
- package/dist/tegel/p-80be1071.entry.js +1 -0
- package/dist/tegel/p-8501b0d7.entry.js +1 -0
- package/dist/tegel/{p-87219f00.entry.js → p-8ad8234f.entry.js} +1 -1
- package/dist/tegel/p-8d4d136f.entry.js +1 -0
- package/dist/tegel/{p-ecb34850.entry.js → p-8d98759c.entry.js} +1 -1
- package/dist/tegel/p-902183d7.entry.js +1 -0
- package/dist/tegel/p-936d77e4.entry.js +1 -0
- package/dist/tegel/p-942df5c4.entry.js +1 -0
- package/dist/tegel/{p-fbffe3aa.entry.js → p-99f46fe1.entry.js} +1 -1
- package/dist/tegel/p-9b7ad650.entry.js +1 -0
- package/dist/tegel/{p-3a92d554.entry.js → p-9c62f888.entry.js} +1 -1
- package/dist/tegel/p-9f25060e.entry.js +1 -0
- package/dist/tegel/{p-9332c225.js → p-Bx66i7RU.js} +1 -1
- package/dist/tegel/p-Cl9XBhQW.js +2 -0
- package/dist/tegel/{p-0bd4c19c.js → p-Q3W78DlP.js} +1 -1
- package/dist/tegel/p-a08baed5.entry.js +1 -0
- package/dist/tegel/p-a30159f5.entry.js +1 -0
- package/dist/tegel/{p-c7b0253c.entry.js → p-a3ef627e.entry.js} +1 -1
- package/dist/tegel/{p-bb1d069f.entry.js → p-a595dba7.entry.js} +1 -1
- package/dist/tegel/p-aaacbe31.entry.js +1 -0
- package/dist/tegel/p-b0f44fd9.entry.js +1 -0
- package/dist/tegel/p-b2bfe0fb.entry.js +1 -0
- package/dist/tegel/{p-eff87481.entry.js → p-b4df0131.entry.js} +1 -1
- package/dist/tegel/p-b509c734.entry.js +1 -0
- package/dist/tegel/{p-0cfe8671.entry.js → p-b82a11bf.entry.js} +1 -1
- package/dist/tegel/p-bbea0ac6.entry.js +1 -0
- package/dist/tegel/p-c0114238.entry.js +1 -0
- package/dist/tegel/p-c578be27.entry.js +1 -0
- package/dist/tegel/p-d5041602.entry.js +1 -0
- package/dist/tegel/p-dfd5a301.entry.js +1 -0
- package/dist/tegel/{p-5dd2aac8.entry.js → p-e22a2a9b.entry.js} +1 -1
- package/dist/tegel/p-e25343d7.entry.js +1 -0
- package/dist/tegel/p-e2ce7b37.entry.js +1 -0
- package/dist/tegel/p-e4d0d1cb.entry.js +1 -0
- package/dist/tegel/{p-bdc913a0.entry.js → p-e853d304.entry.js} +1 -1
- package/dist/tegel/p-eb479100.entry.js +1 -0
- package/dist/tegel/{p-3ec01fb3.entry.js → p-ec41cf1e.entry.js} +1 -1
- package/dist/tegel/p-ec60f391.entry.js +1 -0
- package/dist/tegel/p-ee227187.entry.js +1 -0
- package/dist/tegel/{p-336f2de3.entry.js → p-ee500e52.entry.js} +1 -1
- package/dist/tegel/p-f42f851e.entry.js +1 -0
- package/dist/tegel/p-f6cf2d52.entry.js +1 -0
- package/dist/tegel/tegel.css +4 -4
- package/dist/tegel/tegel.esm.js +1 -1
- package/dist/types/components/slider/slider-stories-setup.d.ts +1 -1
- package/dist/types/components/table/table-body-input-wrapper/table-body-input-wrapper.d.ts +1 -1
- package/dist/types/components/text-field/text-field.d.ts +5 -1
- package/dist/types/components.d.ts +560 -2
- package/dist/types/stencil-public-runtime.d.ts +78 -5
- package/dist/types/utils/dom.d.ts +2 -0
- package/package.json +5 -3
- package/dist/cjs/app-globals-3a1e7e63.js +0 -5
- package/dist/cjs/index-ca8040ad.js +0 -2039
- package/dist/components/p-28ef5186.js +0 -1507
- package/dist/components/p-c8dc3566.js +0 -91
- package/dist/esm/app-globals-0f993ce5.js +0 -3
- package/dist/esm/index-51d04e39.js +0 -2009
- package/dist/tegel/p-08f63e5d.entry.js +0 -1
- package/dist/tegel/p-0cac9ea6.entry.js +0 -1
- package/dist/tegel/p-177386d5.entry.js +0 -1
- package/dist/tegel/p-1859156f.entry.js +0 -1
- package/dist/tegel/p-1b471db7.entry.js +0 -1
- package/dist/tegel/p-1bbef1a5.entry.js +0 -1
- package/dist/tegel/p-1c75f8a7.entry.js +0 -1
- package/dist/tegel/p-2049fab2.js +0 -2
- package/dist/tegel/p-22b6223e.entry.js +0 -1
- package/dist/tegel/p-23fb4dee.entry.js +0 -1
- package/dist/tegel/p-25f4b4ca.entry.js +0 -1
- package/dist/tegel/p-27c2f109.entry.js +0 -1
- package/dist/tegel/p-2c9ea0be.entry.js +0 -1
- package/dist/tegel/p-303acf88.entry.js +0 -1
- package/dist/tegel/p-30901c4d.entry.js +0 -1
- package/dist/tegel/p-35293420.entry.js +0 -1
- package/dist/tegel/p-3ebe93ff.entry.js +0 -1
- package/dist/tegel/p-462a6049.entry.js +0 -1
- package/dist/tegel/p-46c9af0f.entry.js +0 -1
- package/dist/tegel/p-4a666337.entry.js +0 -1
- package/dist/tegel/p-5bca9fe7.entry.js +0 -1
- package/dist/tegel/p-601a74ad.entry.js +0 -1
- package/dist/tegel/p-614bcd4b.entry.js +0 -1
- package/dist/tegel/p-628dc7f7.entry.js +0 -1
- package/dist/tegel/p-6a615ac1.entry.js +0 -1
- package/dist/tegel/p-7013249b.entry.js +0 -1
- package/dist/tegel/p-704682d6.entry.js +0 -1
- package/dist/tegel/p-7caad569.entry.js +0 -1
- package/dist/tegel/p-7cb9790d.entry.js +0 -1
- package/dist/tegel/p-7d427dff.entry.js +0 -1
- package/dist/tegel/p-83e6e31f.entry.js +0 -1
- package/dist/tegel/p-84de314b.entry.js +0 -1
- package/dist/tegel/p-86e99fdb.entry.js +0 -1
- package/dist/tegel/p-8ae4e03c.entry.js +0 -1
- package/dist/tegel/p-8c2695af.entry.js +0 -1
- package/dist/tegel/p-9099d978.entry.js +0 -1
- package/dist/tegel/p-9b0c886e.entry.js +0 -1
- package/dist/tegel/p-9b2257f3.entry.js +0 -1
- package/dist/tegel/p-a6238890.entry.js +0 -1
- package/dist/tegel/p-a66a4a4e.entry.js +0 -1
- package/dist/tegel/p-a829417c.entry.js +0 -1
- package/dist/tegel/p-aec3e4cf.entry.js +0 -1
- package/dist/tegel/p-af63a774.entry.js +0 -1
- package/dist/tegel/p-b20f250b.entry.js +0 -1
- package/dist/tegel/p-b2b9561f.entry.js +0 -1
- package/dist/tegel/p-bb9445ff.entry.js +0 -1
- package/dist/tegel/p-bcd5e06d.entry.js +0 -1
- package/dist/tegel/p-bd935506.entry.js +0 -1
- package/dist/tegel/p-c15eba7d.entry.js +0 -1
- package/dist/tegel/p-c4f701f6.entry.js +0 -1
- package/dist/tegel/p-c61ecc8e.entry.js +0 -1
- package/dist/tegel/p-cf7af8f2.entry.js +0 -1
- package/dist/tegel/p-d184a3f0.entry.js +0 -1
- package/dist/tegel/p-debd6adc.entry.js +0 -1
- package/dist/tegel/p-e1255160.js +0 -1
- package/dist/tegel/p-f2232281.entry.js +0 -1
- package/dist/tegel/p-f4b5e80b.entry.js +0 -1
- package/dist/tegel/p-f9c17612.entry.js +0 -1
- package/loader/package.json +0 -11
- /package/dist/cjs/{dfs-84f7f63e.js → dfs-Clg9RCmq.js} +0 -0
- /package/dist/cjs/{generateUniqueId-e3fc9863.js → generateUniqueId-ComXTAM_.js} +0 -0
- /package/dist/cjs/{getAriaInvalid-66a2eade.js → getAriaInvalid-Bdg4qUb_.js} +0 -0
- /package/dist/cjs/{hasSlot-1c90e9ba.js → hasSlot-D-DVNhGg.js} +0 -0
- /package/dist/cjs/{inheritAttributes-ff9ad737.js → inheritAttributes-CGw91JfB.js} +0 -0
- /package/dist/components/{p-a1181b1f.js → p-CBZ6wC3m.js} +0 -0
- /package/dist/components/{p-3fe9cbbf.js → p-CF8bH08v.js} +0 -0
- /package/dist/components/{p-52bf0fdf.js → p-CLF3diNe.js} +0 -0
- /package/dist/components/{p-11648030.js → p-Cn4f8w1e.js} +0 -0
- /package/dist/components/{p-ae110fc2.js → p-DDX6uFcm.js} +0 -0
- /package/dist/components/{p-bbf9492a.js → p-wEP_nEaO.js} +0 -0
- /package/dist/esm/{dfs-1e574d5f.js → dfs-CLF3diNe.js} +0 -0
- /package/dist/esm/{generateUniqueId-7934d315.js → generateUniqueId-Cn4f8w1e.js} +0 -0
- /package/dist/esm/{getAriaInvalid-a9944cb9.js → getAriaInvalid-wEP_nEaO.js} +0 -0
- /package/dist/esm/{hasSlot-d52114d0.js → hasSlot-DDX6uFcm.js} +0 -0
- /package/dist/esm/{inheritAttributes-d21e267b.js → inheritAttributes-CF8bH08v.js} +0 -0
- /package/dist/tegel/{p-3fe9cbbf.js → p-CF8bH08v.js} +0 -0
- /package/dist/tegel/{p-52bf0fdf.js → p-CLF3diNe.js} +0 -0
- /package/dist/tegel/{p-11648030.js → p-Cn4f8w1e.js} +0 -0
- /package/dist/tegel/{p-ae110fc2.js → p-DDX6uFcm.js} +0 -0
- /package/dist/tegel/{p-bbf9492a.js → p-wEP_nEaO.js} +0 -0
|
@@ -21,16 +21,19 @@ export namespace Components {
|
|
|
21
21
|
interface TdsAccordion {
|
|
22
22
|
/**
|
|
23
23
|
* Removes the bottom border of the last Accordion item.
|
|
24
|
+
* @default false
|
|
24
25
|
*/
|
|
25
26
|
"hideLastBorder": boolean;
|
|
26
27
|
/**
|
|
27
28
|
* Set the variant of the Accordion.
|
|
29
|
+
* @default null
|
|
28
30
|
*/
|
|
29
31
|
"modeVariant": 'primary' | 'secondary';
|
|
30
32
|
}
|
|
31
33
|
interface TdsAccordionItem {
|
|
32
34
|
/**
|
|
33
35
|
* Specifies the heading level (aria-level) for accessibility. Only accepts values between 1 and 6.
|
|
36
|
+
* @default '6'
|
|
34
37
|
*/
|
|
35
38
|
"ariaLevelValue": '1' | '2' | '3' | '4' | '5' | '6';
|
|
36
39
|
/**
|
|
@@ -39,6 +42,7 @@ export namespace Components {
|
|
|
39
42
|
"collapse": () => Promise<void>;
|
|
40
43
|
/**
|
|
41
44
|
* Disabled option in `boolean`.
|
|
45
|
+
* @default false
|
|
42
46
|
*/
|
|
43
47
|
"disabled": boolean;
|
|
44
48
|
/**
|
|
@@ -47,14 +51,17 @@ export namespace Components {
|
|
|
47
51
|
"expand": () => Promise<void>;
|
|
48
52
|
/**
|
|
49
53
|
* Changes position of the expand icon.
|
|
54
|
+
* @default 'end'
|
|
50
55
|
*/
|
|
51
56
|
"expandIconPosition": 'start' | 'end';
|
|
52
57
|
/**
|
|
53
58
|
* Set to true to expand panel open
|
|
59
|
+
* @default false
|
|
54
60
|
*/
|
|
55
61
|
"expanded": boolean;
|
|
56
62
|
/**
|
|
57
63
|
* The header gives users the context about the additional information available inside the panel
|
|
64
|
+
* @default ''
|
|
58
65
|
*/
|
|
59
66
|
"header": string;
|
|
60
67
|
/**
|
|
@@ -63,6 +70,7 @@ export namespace Components {
|
|
|
63
70
|
"isExpanded": () => Promise<boolean>;
|
|
64
71
|
/**
|
|
65
72
|
* When true, 16px on right padding instead of 64px
|
|
73
|
+
* @default false
|
|
66
74
|
*/
|
|
67
75
|
"paddingReset": boolean;
|
|
68
76
|
/**
|
|
@@ -73,24 +81,29 @@ export namespace Components {
|
|
|
73
81
|
interface TdsBadge {
|
|
74
82
|
/**
|
|
75
83
|
* Changes visibility of Badge
|
|
84
|
+
* @default false
|
|
76
85
|
*/
|
|
77
86
|
"hidden": boolean;
|
|
78
87
|
/**
|
|
79
88
|
* Sets component size.
|
|
89
|
+
* @default 'lg'
|
|
80
90
|
*/
|
|
81
91
|
"size": 'lg' | 'sm';
|
|
82
92
|
/**
|
|
83
93
|
* Defines aria-live attribute
|
|
94
|
+
* @default 'polite'
|
|
84
95
|
*/
|
|
85
96
|
"tdsAriaLive": 'off' | 'polite' | 'assertive';
|
|
86
97
|
/**
|
|
87
98
|
* Value shown in Badge
|
|
99
|
+
* @default ''
|
|
88
100
|
*/
|
|
89
101
|
"value": string;
|
|
90
102
|
}
|
|
91
103
|
interface TdsBanner {
|
|
92
104
|
/**
|
|
93
105
|
* ID used for internal table functionality and events, must be unique. **NOTE**: If you're listening for Banner close events, you need to set this ID yourself to identify the Banner, as the default ID is random and will be different every time.
|
|
106
|
+
* @default generateUniqueId()
|
|
94
107
|
*/
|
|
95
108
|
"bannerId": string;
|
|
96
109
|
/**
|
|
@@ -99,6 +112,7 @@ export namespace Components {
|
|
|
99
112
|
"header": string;
|
|
100
113
|
/**
|
|
101
114
|
* Hides the Banner
|
|
115
|
+
* @default false
|
|
102
116
|
*/
|
|
103
117
|
"hidden": boolean;
|
|
104
118
|
/**
|
|
@@ -111,6 +125,7 @@ export namespace Components {
|
|
|
111
125
|
"icon": IconNames;
|
|
112
126
|
/**
|
|
113
127
|
* Defines the ARIA role of the banner. Defaults to "banner" for global use, but can be set to "region" or "alert" if used differently.
|
|
128
|
+
* @default 'banner'
|
|
114
129
|
*/
|
|
115
130
|
"roleType": 'banner' | 'region' | 'alert';
|
|
116
131
|
/**
|
|
@@ -123,6 +138,7 @@ export namespace Components {
|
|
|
123
138
|
"subheader": string;
|
|
124
139
|
/**
|
|
125
140
|
* Variant of Banner
|
|
141
|
+
* @default 'default'
|
|
126
142
|
*/
|
|
127
143
|
"variant": 'error' | 'information' | 'default';
|
|
128
144
|
}
|
|
@@ -134,6 +150,7 @@ export namespace Components {
|
|
|
134
150
|
interface TdsBlock {
|
|
135
151
|
/**
|
|
136
152
|
* Specifies the HTML tag to be used for the component wrapper.
|
|
153
|
+
* @default 'div'
|
|
137
154
|
*/
|
|
138
155
|
"componentTag": | 'section'
|
|
139
156
|
| 'div'
|
|
@@ -145,6 +162,7 @@ export namespace Components {
|
|
|
145
162
|
| 'main';
|
|
146
163
|
/**
|
|
147
164
|
* Mode variant of the component, based on current mode.
|
|
165
|
+
* @default null
|
|
148
166
|
*/
|
|
149
167
|
"modeVariant": 'primary' | 'secondary';
|
|
150
168
|
}
|
|
@@ -159,6 +177,7 @@ export namespace Components {
|
|
|
159
177
|
"cellValue": string | number;
|
|
160
178
|
/**
|
|
161
179
|
* Disables internal padding. Useful when passing other components to cell.
|
|
180
|
+
* @default false
|
|
162
181
|
*/
|
|
163
182
|
"disablePadding": boolean;
|
|
164
183
|
/**
|
|
@@ -169,6 +188,7 @@ export namespace Components {
|
|
|
169
188
|
interface TdsBreadcrumb {
|
|
170
189
|
/**
|
|
171
190
|
* Boolean for the current link
|
|
191
|
+
* @default false
|
|
172
192
|
*/
|
|
173
193
|
"current": boolean;
|
|
174
194
|
}
|
|
@@ -181,18 +201,22 @@ export namespace Components {
|
|
|
181
201
|
interface TdsButton {
|
|
182
202
|
/**
|
|
183
203
|
* Determines if and how the button should animate.
|
|
204
|
+
* @default 'none'
|
|
184
205
|
*/
|
|
185
206
|
"animation": 'none' | 'fade';
|
|
186
207
|
/**
|
|
187
208
|
* Control for disabled state of a component
|
|
209
|
+
* @default false
|
|
188
210
|
*/
|
|
189
211
|
"disabled": boolean;
|
|
190
212
|
/**
|
|
191
213
|
* When enabled, the Button takes 100% width
|
|
214
|
+
* @default false
|
|
192
215
|
*/
|
|
193
216
|
"fullbleed": boolean;
|
|
194
217
|
/**
|
|
195
218
|
* Set the mode variant of the Button.
|
|
219
|
+
* @default null
|
|
196
220
|
*/
|
|
197
221
|
"modeVariant": 'primary' | 'secondary';
|
|
198
222
|
/**
|
|
@@ -201,6 +225,7 @@ export namespace Components {
|
|
|
201
225
|
"name": string;
|
|
202
226
|
/**
|
|
203
227
|
* Size of a Button
|
|
228
|
+
* @default 'lg'
|
|
204
229
|
*/
|
|
205
230
|
"size": 'xs' | 'sm' | 'md' | 'lg';
|
|
206
231
|
/**
|
|
@@ -213,6 +238,7 @@ export namespace Components {
|
|
|
213
238
|
"text": string;
|
|
214
239
|
/**
|
|
215
240
|
* Button's type
|
|
241
|
+
* @default 'button'
|
|
216
242
|
*/
|
|
217
243
|
"type": 'button' | 'submit' | 'reset';
|
|
218
244
|
/**
|
|
@@ -221,12 +247,14 @@ export namespace Components {
|
|
|
221
247
|
"value": string;
|
|
222
248
|
/**
|
|
223
249
|
* Variation of Button's design
|
|
250
|
+
* @default 'primary'
|
|
224
251
|
*/
|
|
225
252
|
"variant": 'primary' | 'secondary' | 'ghost' | 'danger';
|
|
226
253
|
}
|
|
227
254
|
interface TdsCard {
|
|
228
255
|
/**
|
|
229
256
|
* Divider for the body
|
|
257
|
+
* @default false
|
|
230
258
|
*/
|
|
231
259
|
"bodyDivider": boolean;
|
|
232
260
|
/**
|
|
@@ -239,18 +267,22 @@ export namespace Components {
|
|
|
239
267
|
"bodyImgAlt": string;
|
|
240
268
|
/**
|
|
241
269
|
* ID for the Card, must be unique. **NOTE**: If you're listening for Card events, you need to set this ID yourself to identify the Card, as the default ID is random and will be different every time.
|
|
270
|
+
* @default generateUniqueId()
|
|
242
271
|
*/
|
|
243
272
|
"cardId": string;
|
|
244
273
|
/**
|
|
245
274
|
* Makes the Card clickable.
|
|
275
|
+
* @default false
|
|
246
276
|
*/
|
|
247
277
|
"clickable": boolean;
|
|
248
278
|
/**
|
|
249
279
|
* Enables expandable behaviour. When true, clicking the header toggles content visibility.
|
|
280
|
+
* @default false
|
|
250
281
|
*/
|
|
251
282
|
"expandable": boolean;
|
|
252
283
|
/**
|
|
253
284
|
* Tracks the current expanded state when expandable is enabled.
|
|
285
|
+
* @default false
|
|
254
286
|
*/
|
|
255
287
|
"expanded": boolean;
|
|
256
288
|
/**
|
|
@@ -259,12 +291,17 @@ export namespace Components {
|
|
|
259
291
|
"header": string;
|
|
260
292
|
/**
|
|
261
293
|
* Placement of the header
|
|
294
|
+
* @default 'below-header'
|
|
262
295
|
*/
|
|
263
296
|
"imagePlacement": 'above-header' | 'below-header';
|
|
264
297
|
/**
|
|
265
298
|
* Variant of the Card based on the theme used.
|
|
299
|
+
* @default null
|
|
266
300
|
*/
|
|
267
301
|
"modeVariant": 'primary' | 'secondary';
|
|
302
|
+
/**
|
|
303
|
+
* @default false
|
|
304
|
+
*/
|
|
268
305
|
"stretch": boolean;
|
|
269
306
|
/**
|
|
270
307
|
* Subheader text in the header
|
|
@@ -274,14 +311,17 @@ export namespace Components {
|
|
|
274
311
|
interface TdsCheckbox {
|
|
275
312
|
/**
|
|
276
313
|
* ID for the Checkbox's input element. Randomly generated if not specified.
|
|
314
|
+
* @default generateUniqueId()
|
|
277
315
|
*/
|
|
278
316
|
"checkboxId": string;
|
|
279
317
|
/**
|
|
280
318
|
* Sets the Checkbox as checked
|
|
319
|
+
* @default false
|
|
281
320
|
*/
|
|
282
321
|
"checked": boolean;
|
|
283
322
|
/**
|
|
284
323
|
* Sets the Checkbox in a disabled state
|
|
324
|
+
* @default false
|
|
285
325
|
*/
|
|
286
326
|
"disabled": boolean;
|
|
287
327
|
/**
|
|
@@ -290,6 +330,7 @@ export namespace Components {
|
|
|
290
330
|
"focusElement": () => Promise<void>;
|
|
291
331
|
/**
|
|
292
332
|
* Sets the Checkbox as indeterminate
|
|
333
|
+
* @default false
|
|
293
334
|
*/
|
|
294
335
|
"indeterminate": boolean;
|
|
295
336
|
/**
|
|
@@ -298,6 +339,7 @@ export namespace Components {
|
|
|
298
339
|
"name": string;
|
|
299
340
|
/**
|
|
300
341
|
* Make the Checkbox required
|
|
342
|
+
* @default false
|
|
301
343
|
*/
|
|
302
344
|
"required": boolean;
|
|
303
345
|
/**
|
|
@@ -320,14 +362,17 @@ export namespace Components {
|
|
|
320
362
|
interface TdsChip {
|
|
321
363
|
/**
|
|
322
364
|
* Controls component's checked attribute. Valid only for type checkbox and radio.
|
|
365
|
+
* @default false
|
|
323
366
|
*/
|
|
324
367
|
"checked": boolean;
|
|
325
368
|
/**
|
|
326
369
|
* ID used for internal Chip functionality and events, must be unique. **NOTE**: If you're listening for input events, you need to set this ID yourself to identify the input, as the default ID is random and will be different every time.
|
|
370
|
+
* @default generateUniqueId()
|
|
327
371
|
*/
|
|
328
372
|
"chipId": string;
|
|
329
373
|
/**
|
|
330
374
|
* Sets the Chip in a disabled state
|
|
375
|
+
* @default false
|
|
331
376
|
*/
|
|
332
377
|
"disabled": boolean;
|
|
333
378
|
/**
|
|
@@ -336,6 +381,7 @@ export namespace Components {
|
|
|
336
381
|
"name": string;
|
|
337
382
|
/**
|
|
338
383
|
* Size of the Chip component
|
|
384
|
+
* @default 'lg'
|
|
339
385
|
*/
|
|
340
386
|
"size": 'sm' | 'lg';
|
|
341
387
|
/**
|
|
@@ -344,6 +390,7 @@ export namespace Components {
|
|
|
344
390
|
"tdsAriaLabel": string;
|
|
345
391
|
/**
|
|
346
392
|
* Type of Chip, depends on usage
|
|
393
|
+
* @default 'button'
|
|
347
394
|
*/
|
|
348
395
|
"type": 'button' | 'radio' | 'checkbox';
|
|
349
396
|
/**
|
|
@@ -356,14 +403,17 @@ export namespace Components {
|
|
|
356
403
|
interface TdsDatetime {
|
|
357
404
|
/**
|
|
358
405
|
* Autofocus for input
|
|
406
|
+
* @default false
|
|
359
407
|
*/
|
|
360
408
|
"autofocus": boolean;
|
|
361
409
|
/**
|
|
362
410
|
* Default value of the component. Format for time: HH-MM. Format for date: YY-MM-DD. Format for month: YY-MM. Format for week: YY-Www Format for date-time: YY-MM-DDTHH-MM
|
|
411
|
+
* @default 'none'
|
|
363
412
|
*/
|
|
364
413
|
"defaultValue": string | 'none';
|
|
365
414
|
/**
|
|
366
415
|
* Set input in disabled state
|
|
416
|
+
* @default false
|
|
367
417
|
*/
|
|
368
418
|
"disabled": boolean;
|
|
369
419
|
/**
|
|
@@ -372,14 +422,17 @@ export namespace Components {
|
|
|
372
422
|
"focusElement": () => Promise<void>;
|
|
373
423
|
/**
|
|
374
424
|
* Helper text for the component
|
|
425
|
+
* @default ''
|
|
375
426
|
*/
|
|
376
427
|
"helper": string;
|
|
377
428
|
/**
|
|
378
429
|
* Label text for the component
|
|
430
|
+
* @default ''
|
|
379
431
|
*/
|
|
380
432
|
"label": string;
|
|
381
433
|
/**
|
|
382
434
|
* Position of the label
|
|
435
|
+
* @default 'no-label'
|
|
383
436
|
*/
|
|
384
437
|
"labelPosition": 'inside' | 'outside' | 'no-label';
|
|
385
438
|
/**
|
|
@@ -392,14 +445,17 @@ export namespace Components {
|
|
|
392
445
|
"min": string;
|
|
393
446
|
/**
|
|
394
447
|
* Set the variant of the Datetime component.
|
|
448
|
+
* @default null
|
|
395
449
|
*/
|
|
396
450
|
"modeVariant": 'primary' | 'secondary';
|
|
397
451
|
/**
|
|
398
452
|
* Name property. Uses a unique ID as fallback if not specified.
|
|
453
|
+
* @default `datetime-${generateUniqueId()}`
|
|
399
454
|
*/
|
|
400
455
|
"name": string;
|
|
401
456
|
/**
|
|
402
457
|
* Resets min width rule
|
|
458
|
+
* @default false
|
|
403
459
|
*/
|
|
404
460
|
"noMinWidth": boolean;
|
|
405
461
|
/**
|
|
@@ -412,6 +468,7 @@ export namespace Components {
|
|
|
412
468
|
"setValue": (newValue: string) => Promise<void>;
|
|
413
469
|
/**
|
|
414
470
|
* Size of the input
|
|
471
|
+
* @default 'lg'
|
|
415
472
|
*/
|
|
416
473
|
"size": 'sm' | 'md' | 'lg';
|
|
417
474
|
/**
|
|
@@ -424,24 +481,31 @@ export namespace Components {
|
|
|
424
481
|
"tdsAriaLabel": string;
|
|
425
482
|
/**
|
|
426
483
|
* Sets an input type
|
|
484
|
+
* @default 'datetime-local'
|
|
427
485
|
*/
|
|
428
486
|
"type": 'datetime-local' | 'date' | 'month' | 'week' | 'time';
|
|
429
487
|
/**
|
|
430
488
|
* Value of the input text
|
|
489
|
+
* @default ''
|
|
431
490
|
*/
|
|
432
491
|
"value": string;
|
|
433
492
|
}
|
|
434
493
|
interface TdsDivider {
|
|
435
494
|
/**
|
|
436
495
|
* Orientation of the Divider, horizontal if not specified.
|
|
496
|
+
* @default 'horizontal'
|
|
437
497
|
*/
|
|
438
498
|
"orientation": 'horizontal' | 'vertical';
|
|
439
499
|
/**
|
|
440
500
|
* Variant of the Divider, subtle if not specified.
|
|
501
|
+
* @default 'subtle'
|
|
441
502
|
*/
|
|
442
503
|
"variant": 'discrete' | 'subtle' | 'soft' | 'defined' | 'dark-blue';
|
|
443
504
|
}
|
|
444
505
|
interface TdsDropdown {
|
|
506
|
+
/**
|
|
507
|
+
* @default 'slide'
|
|
508
|
+
*/
|
|
445
509
|
"animation": 'none' | 'slide';
|
|
446
510
|
"appendValue": (value: string) => Promise<void>;
|
|
447
511
|
/**
|
|
@@ -454,14 +518,17 @@ export namespace Components {
|
|
|
454
518
|
"defaultValue": string | number;
|
|
455
519
|
/**
|
|
456
520
|
* Sets the Dropdown in a disabled state
|
|
521
|
+
* @default false
|
|
457
522
|
*/
|
|
458
523
|
"disabled": boolean;
|
|
459
524
|
/**
|
|
460
525
|
* Sets the Dropdown in an error state
|
|
526
|
+
* @default false
|
|
461
527
|
*/
|
|
462
528
|
"error": boolean;
|
|
463
529
|
/**
|
|
464
530
|
* Enables filtration in the Dropdown.
|
|
531
|
+
* @default false
|
|
465
532
|
*/
|
|
466
533
|
"filter": boolean;
|
|
467
534
|
/**
|
|
@@ -482,10 +549,12 @@ export namespace Components {
|
|
|
482
549
|
"labelPosition": 'inside' | 'outside';
|
|
483
550
|
/**
|
|
484
551
|
* Mode variant of the component, based on current mode.
|
|
552
|
+
* @default null
|
|
485
553
|
*/
|
|
486
554
|
"modeVariant": 'primary' | 'secondary';
|
|
487
555
|
/**
|
|
488
556
|
* Enables multiselect in the Dropdown.
|
|
557
|
+
* @default false
|
|
489
558
|
*/
|
|
490
559
|
"multiselect": boolean;
|
|
491
560
|
/**
|
|
@@ -494,14 +563,17 @@ export namespace Components {
|
|
|
494
563
|
"name": string;
|
|
495
564
|
/**
|
|
496
565
|
* Text that is displayed if filter is used and there are no options that matches the search. Setting it to an empty string disables message from showing up.
|
|
566
|
+
* @default 'No result'
|
|
497
567
|
*/
|
|
498
568
|
"noResultText"?: string;
|
|
499
569
|
/**
|
|
500
570
|
* Normalizes input text for fuzzier search
|
|
571
|
+
* @default true
|
|
501
572
|
*/
|
|
502
573
|
"normalizeText": boolean;
|
|
503
574
|
/**
|
|
504
575
|
* The direction the Dropdown should open, auto if not specified.
|
|
576
|
+
* @default 'auto'
|
|
505
577
|
*/
|
|
506
578
|
"openDirection": 'up' | 'down' | 'auto';
|
|
507
579
|
/**
|
|
@@ -516,6 +588,7 @@ export namespace Components {
|
|
|
516
588
|
"setValue": (value: string | number | string[] | number[], label?: string) => Promise<{ value: string | number; label: string; }[]>;
|
|
517
589
|
/**
|
|
518
590
|
* The size of the Dropdown.
|
|
591
|
+
* @default 'lg'
|
|
519
592
|
*/
|
|
520
593
|
"size": 'xs' | 'sm' | 'md' | 'lg';
|
|
521
594
|
/**
|
|
@@ -528,12 +601,14 @@ export namespace Components {
|
|
|
528
601
|
"updateDisplay": () => Promise<void>;
|
|
529
602
|
/**
|
|
530
603
|
* Value of the dropdown. For multiselect, provide array of strings/numbers. For single select, provide a string/number.
|
|
604
|
+
* @default null
|
|
531
605
|
*/
|
|
532
606
|
"value": string | number | (string | number)[];
|
|
533
607
|
}
|
|
534
608
|
interface TdsDropdownOption {
|
|
535
609
|
/**
|
|
536
610
|
* Sets the option as disabled.
|
|
611
|
+
* @default false
|
|
537
612
|
*/
|
|
538
613
|
"disabled": boolean;
|
|
539
614
|
/**
|
|
@@ -552,6 +627,7 @@ export namespace Components {
|
|
|
552
627
|
interface TdsFolderTab {
|
|
553
628
|
/**
|
|
554
629
|
* Disables the Tab.
|
|
630
|
+
* @default false
|
|
555
631
|
*/
|
|
556
632
|
"disabled": boolean;
|
|
557
633
|
"setSelected": (selected: boolean) => Promise<void>;
|
|
@@ -560,10 +636,12 @@ export namespace Components {
|
|
|
560
636
|
interface TdsFolderTabs {
|
|
561
637
|
/**
|
|
562
638
|
* Sets the default selected Tab.
|
|
639
|
+
* @default 0
|
|
563
640
|
*/
|
|
564
641
|
"defaultSelectedIndex": number;
|
|
565
642
|
/**
|
|
566
643
|
* Variant of the Tabs, primary= on white, secondary= on grey50
|
|
644
|
+
* @default null
|
|
567
645
|
*/
|
|
568
646
|
"modeVariant": 'primary' | 'secondary';
|
|
569
647
|
/**
|
|
@@ -580,16 +658,19 @@ export namespace Components {
|
|
|
580
658
|
"selectedIndex": number;
|
|
581
659
|
/**
|
|
582
660
|
* Defines aria-label on left scroll button
|
|
661
|
+
* @default 'Scroll left'
|
|
583
662
|
*/
|
|
584
663
|
"tdsScrollLeftAriaLabel": string;
|
|
585
664
|
/**
|
|
586
665
|
* Defines aria-label on right scroll button
|
|
666
|
+
* @default 'Scroll right'
|
|
587
667
|
*/
|
|
588
668
|
"tdsScrollRightAriaLabel": string;
|
|
589
669
|
}
|
|
590
670
|
interface TdsFooter {
|
|
591
671
|
/**
|
|
592
672
|
* Mode variant of the component, based on current mode.
|
|
673
|
+
* @default null
|
|
593
674
|
*/
|
|
594
675
|
"modeVariant": 'primary' | 'secondary';
|
|
595
676
|
}
|
|
@@ -624,18 +705,22 @@ export namespace Components {
|
|
|
624
705
|
"customWidth"?: string;
|
|
625
706
|
/**
|
|
626
707
|
* Disables internal padding. Useful when passing other components to cell.
|
|
708
|
+
* @default false
|
|
627
709
|
*/
|
|
628
710
|
"disablePadding": boolean;
|
|
629
711
|
/**
|
|
630
712
|
* Enables sorting on that column
|
|
713
|
+
* @default false
|
|
631
714
|
*/
|
|
632
715
|
"sortable": boolean;
|
|
633
716
|
/**
|
|
634
717
|
* Aria label for the sort button, providing an accessible description
|
|
718
|
+
* @default ''
|
|
635
719
|
*/
|
|
636
720
|
"tdsAriaLabelSortButton"?: string;
|
|
637
721
|
/**
|
|
638
722
|
* Setting for text align, default is "left". Other accepted values are "left", "start", "right" or "end".
|
|
723
|
+
* @default 'left'
|
|
639
724
|
*/
|
|
640
725
|
"textAlign": 'left' | 'start' | 'right' | 'end' | 'center';
|
|
641
726
|
}
|
|
@@ -646,10 +731,12 @@ export namespace Components {
|
|
|
646
731
|
"label": string;
|
|
647
732
|
/**
|
|
648
733
|
* If the dropdown icon (downwards chevron) should be hidden.
|
|
734
|
+
* @default false
|
|
649
735
|
*/
|
|
650
736
|
"noDropdownIcon": boolean;
|
|
651
737
|
/**
|
|
652
738
|
* If the button that opens the dropdown should appear selected.
|
|
739
|
+
* @default false
|
|
653
740
|
*/
|
|
654
741
|
"selected": boolean;
|
|
655
742
|
/**
|
|
@@ -660,16 +747,19 @@ export namespace Components {
|
|
|
660
747
|
interface TdsHeaderDropdownList {
|
|
661
748
|
/**
|
|
662
749
|
* The size of the component.
|
|
750
|
+
* @default 'md'
|
|
663
751
|
*/
|
|
664
752
|
"size": 'lg' | 'md';
|
|
665
753
|
}
|
|
666
754
|
interface TdsHeaderDropdownListItem {
|
|
667
755
|
/**
|
|
668
756
|
* If the link should appear selected.
|
|
757
|
+
* @default false
|
|
669
758
|
*/
|
|
670
759
|
"selected": boolean;
|
|
671
760
|
/**
|
|
672
761
|
* The size of the component.
|
|
762
|
+
* @default 'md'
|
|
673
763
|
*/
|
|
674
764
|
"size": 'md' | 'lg';
|
|
675
765
|
}
|
|
@@ -700,10 +790,12 @@ export namespace Components {
|
|
|
700
790
|
interface TdsHeaderItem {
|
|
701
791
|
/**
|
|
702
792
|
* If the button should appear active. Can be used when the button is triggering a dropdown, and the dropdown is open, for example.
|
|
793
|
+
* @default false
|
|
703
794
|
*/
|
|
704
795
|
"active": boolean;
|
|
705
796
|
/**
|
|
706
797
|
* If the button should appear selected.
|
|
798
|
+
* @default false
|
|
707
799
|
*/
|
|
708
800
|
"selected": boolean;
|
|
709
801
|
}
|
|
@@ -716,6 +808,7 @@ export namespace Components {
|
|
|
716
808
|
interface TdsHeaderLauncherButton {
|
|
717
809
|
/**
|
|
718
810
|
* If the button should appear active. Can be used when the button is triggering a dropdown, and the dropdown is open, for example.
|
|
811
|
+
* @default false
|
|
719
812
|
*/
|
|
720
813
|
"active": boolean;
|
|
721
814
|
/**
|
|
@@ -740,10 +833,12 @@ export namespace Components {
|
|
|
740
833
|
interface TdsIcon {
|
|
741
834
|
/**
|
|
742
835
|
* Pass the name of the icon. For icon names, refer to Storybook Icon controls dropdown or https://tegel.scania.com/foundations/icons/icon-library
|
|
836
|
+
* @default 'truck'
|
|
743
837
|
*/
|
|
744
838
|
"name": IconNames;
|
|
745
839
|
/**
|
|
746
840
|
* Pass a size of icon as a string, for example, 32px, 1rem, 4em...
|
|
841
|
+
* @default '16px'
|
|
747
842
|
*/
|
|
748
843
|
"size": string;
|
|
749
844
|
/**
|
|
@@ -756,12 +851,14 @@ export namespace Components {
|
|
|
756
851
|
"svgTitle"?: string;
|
|
757
852
|
/**
|
|
758
853
|
* Set aria-hidden attribute on svg
|
|
854
|
+
* @default false
|
|
759
855
|
*/
|
|
760
856
|
"tdsAriaHidden": boolean;
|
|
761
857
|
}
|
|
762
858
|
interface TdsInlineTab {
|
|
763
859
|
/**
|
|
764
860
|
* Disables the Tab.
|
|
861
|
+
* @default false
|
|
765
862
|
*/
|
|
766
863
|
"disabled": boolean;
|
|
767
864
|
"setSelected": (selected: boolean) => Promise<void>;
|
|
@@ -769,14 +866,17 @@ export namespace Components {
|
|
|
769
866
|
interface TdsInlineTabs {
|
|
770
867
|
/**
|
|
771
868
|
* Sets the default selected Tab.
|
|
869
|
+
* @default 0
|
|
772
870
|
*/
|
|
773
871
|
"defaultSelectedIndex": number;
|
|
774
872
|
/**
|
|
775
873
|
* Custom left padding value for the wrapper element.
|
|
874
|
+
* @default 32
|
|
776
875
|
*/
|
|
777
876
|
"leftPadding": number;
|
|
778
877
|
/**
|
|
779
878
|
* Variant of the Tabs, primary= on white, secondary= on grey50
|
|
879
|
+
* @default 'primary'
|
|
780
880
|
*/
|
|
781
881
|
"modeVariant": 'primary' | 'secondary';
|
|
782
882
|
/**
|
|
@@ -793,24 +893,29 @@ export namespace Components {
|
|
|
793
893
|
"selectedIndex": number;
|
|
794
894
|
/**
|
|
795
895
|
* Defines aria-label on left scroll button
|
|
896
|
+
* @default 'Scroll left'
|
|
796
897
|
*/
|
|
797
898
|
"tdsScrollLeftAriaLabel": string;
|
|
798
899
|
/**
|
|
799
900
|
* Defines aria-label on right scroll button
|
|
901
|
+
* @default 'Scroll right'
|
|
800
902
|
*/
|
|
801
903
|
"tdsScrollRightAriaLabel": string;
|
|
802
904
|
}
|
|
803
905
|
interface TdsLink {
|
|
804
906
|
/**
|
|
805
907
|
* Disables the Link
|
|
908
|
+
* @default false
|
|
806
909
|
*/
|
|
807
910
|
"disabled": boolean;
|
|
808
911
|
/**
|
|
809
912
|
* Displays the Link as a standalone component. Not part of a paragraph.
|
|
913
|
+
* @default false
|
|
810
914
|
*/
|
|
811
915
|
"standalone": boolean;
|
|
812
916
|
/**
|
|
813
917
|
* Displays the Link with an underline.
|
|
918
|
+
* @default true
|
|
814
919
|
*/
|
|
815
920
|
"underline": boolean;
|
|
816
921
|
}
|
|
@@ -821,18 +926,22 @@ export namespace Components {
|
|
|
821
926
|
"header": string;
|
|
822
927
|
/**
|
|
823
928
|
* Minimal Message styling.
|
|
929
|
+
* @default false
|
|
824
930
|
*/
|
|
825
931
|
"minimal": boolean;
|
|
826
932
|
/**
|
|
827
933
|
* Variant of the component, based on current mode.
|
|
934
|
+
* @default null
|
|
828
935
|
*/
|
|
829
936
|
"modeVariant": 'primary' | 'secondary';
|
|
830
937
|
/**
|
|
831
938
|
* Removes the icon in the Message.
|
|
939
|
+
* @default false
|
|
832
940
|
*/
|
|
833
941
|
"noIcon": boolean;
|
|
834
942
|
/**
|
|
835
943
|
* Role of the message component. Can be either 'alertdialog' for important messages that require immediate attention, or 'dialog' for regular messages.
|
|
944
|
+
* @default 'dialog'
|
|
836
945
|
*/
|
|
837
946
|
"tdsAlertDialog": 'alertdialog' | 'dialog';
|
|
838
947
|
/**
|
|
@@ -841,12 +950,14 @@ export namespace Components {
|
|
|
841
950
|
"tdsAriaLabel": string;
|
|
842
951
|
/**
|
|
843
952
|
* Variant of Message.
|
|
953
|
+
* @default 'information'
|
|
844
954
|
*/
|
|
845
955
|
"variant": 'information' | 'error' | 'warning' | 'success';
|
|
846
956
|
}
|
|
847
957
|
interface TdsModal {
|
|
848
958
|
/**
|
|
849
959
|
* Changes the position behaviour of the actions slot.
|
|
960
|
+
* @default 'static'
|
|
850
961
|
*/
|
|
851
962
|
"actionsPosition": 'sticky' | 'static';
|
|
852
963
|
/**
|
|
@@ -855,6 +966,7 @@ export namespace Components {
|
|
|
855
966
|
"cleanupModal": () => Promise<void>;
|
|
856
967
|
/**
|
|
857
968
|
* Shows or hides the close [X] button.
|
|
969
|
+
* @default true
|
|
858
970
|
*/
|
|
859
971
|
"closable": boolean;
|
|
860
972
|
/**
|
|
@@ -875,6 +987,7 @@ export namespace Components {
|
|
|
875
987
|
"isOpen": () => Promise<boolean>;
|
|
876
988
|
/**
|
|
877
989
|
* Disables closing Modal on clicking on overlay area.
|
|
990
|
+
* @default false
|
|
878
991
|
*/
|
|
879
992
|
"prevent": boolean;
|
|
880
993
|
/**
|
|
@@ -895,16 +1008,19 @@ export namespace Components {
|
|
|
895
1008
|
"showModal": () => Promise<void>;
|
|
896
1009
|
/**
|
|
897
1010
|
* Size of Modal
|
|
1011
|
+
* @default 'md'
|
|
898
1012
|
*/
|
|
899
1013
|
"size": 'xs' | 'sm' | 'md' | 'lg';
|
|
900
1014
|
/**
|
|
901
1015
|
* Role of the modal component. Can be either 'alertdialog' for important messages that require immediate attention, or 'dialog' for regular messages.
|
|
1016
|
+
* @default 'dialog'
|
|
902
1017
|
*/
|
|
903
1018
|
"tdsAlertDialog": 'alertdialog' | 'dialog';
|
|
904
1019
|
}
|
|
905
1020
|
interface TdsNavigationTab {
|
|
906
1021
|
/**
|
|
907
1022
|
* Disables the Tab.
|
|
1023
|
+
* @default false
|
|
908
1024
|
*/
|
|
909
1025
|
"disabled": boolean;
|
|
910
1026
|
"setSelected": (selected: boolean) => Promise<void>;
|
|
@@ -912,14 +1028,17 @@ export namespace Components {
|
|
|
912
1028
|
interface TdsNavigationTabs {
|
|
913
1029
|
/**
|
|
914
1030
|
* Sets the default selected Tab.
|
|
1031
|
+
* @default 0
|
|
915
1032
|
*/
|
|
916
1033
|
"defaultSelectedIndex": number;
|
|
917
1034
|
/**
|
|
918
1035
|
* Custom left padding value for the wrapper element.
|
|
1036
|
+
* @default 32
|
|
919
1037
|
*/
|
|
920
1038
|
"leftPadding": number;
|
|
921
1039
|
/**
|
|
922
1040
|
* Variant of the Tabs, primary= on white, secondary= on grey50
|
|
1041
|
+
* @default 'primary'
|
|
923
1042
|
*/
|
|
924
1043
|
"modeVariant": 'primary' | 'secondary';
|
|
925
1044
|
/**
|
|
@@ -936,16 +1055,19 @@ export namespace Components {
|
|
|
936
1055
|
"selectedIndex": number;
|
|
937
1056
|
/**
|
|
938
1057
|
* Defines aria-label on left scroll button
|
|
1058
|
+
* @default 'Scroll left'
|
|
939
1059
|
*/
|
|
940
1060
|
"tdsScrollLeftAriaLabel": string;
|
|
941
1061
|
/**
|
|
942
1062
|
* Defines aria-label on right scroll button
|
|
1063
|
+
* @default 'Scroll right'
|
|
943
1064
|
*/
|
|
944
1065
|
"tdsScrollRightAriaLabel": string;
|
|
945
1066
|
}
|
|
946
1067
|
interface TdsPopoverCanvas {
|
|
947
1068
|
/**
|
|
948
1069
|
* Whether the popover should animate when being opened/closed or not
|
|
1070
|
+
* @default 'none'
|
|
949
1071
|
*/
|
|
950
1072
|
"animation": 'none' | 'fade' | string;
|
|
951
1073
|
/**
|
|
@@ -954,26 +1076,32 @@ export namespace Components {
|
|
|
954
1076
|
"close": () => Promise<void>;
|
|
955
1077
|
/**
|
|
956
1078
|
* Decides if the component should be visible from the start.
|
|
1079
|
+
* @default false
|
|
957
1080
|
*/
|
|
958
1081
|
"defaultShow": boolean;
|
|
959
1082
|
/**
|
|
960
1083
|
* Mode variant of the component, based on current mode.
|
|
1084
|
+
* @default null
|
|
961
1085
|
*/
|
|
962
1086
|
"modeVariant": 'primary' | 'secondary';
|
|
963
1087
|
/**
|
|
964
1088
|
* Array of modifier objects to pass to popper.js. See https://popper.js.org/docs/v2/modifiers/
|
|
1089
|
+
* @default []
|
|
965
1090
|
*/
|
|
966
1091
|
"modifiers": object[];
|
|
967
1092
|
/**
|
|
968
1093
|
* Sets the offset distance
|
|
1094
|
+
* @default 8
|
|
969
1095
|
*/
|
|
970
1096
|
"offsetDistance": number;
|
|
971
1097
|
/**
|
|
972
1098
|
* Sets the offset skidding
|
|
1099
|
+
* @default 0
|
|
973
1100
|
*/
|
|
974
1101
|
"offsetSkidding": number;
|
|
975
1102
|
/**
|
|
976
1103
|
* Decides the placement of the Popover Canvas. See https://popper.js.org/docs/v2/constructors/#placement
|
|
1104
|
+
* @default 'auto'
|
|
977
1105
|
*/
|
|
978
1106
|
"placement": Placement;
|
|
979
1107
|
/**
|
|
@@ -986,20 +1114,24 @@ export namespace Components {
|
|
|
986
1114
|
"selector": string;
|
|
987
1115
|
/**
|
|
988
1116
|
* Controls whether the Popover is shown or not. If this is set hiding and showing will be decided by this prop and will need to be controlled from the outside. This also means that clicking outside of the popover won't close it. Takes precedence over `defaultShow` prop.
|
|
1117
|
+
* @default null
|
|
989
1118
|
*/
|
|
990
1119
|
"show": boolean;
|
|
991
1120
|
/**
|
|
992
1121
|
* Role of the popover canvas component. Can be either 'alertdialog' for important messages that require immediate attention, or 'dialog' for regular messages.
|
|
1122
|
+
* @default 'dialog'
|
|
993
1123
|
*/
|
|
994
1124
|
"tdsAlertDialog": 'alertdialog' | 'dialog';
|
|
995
1125
|
}
|
|
996
1126
|
interface TdsPopoverCore {
|
|
997
1127
|
/**
|
|
998
1128
|
* Whether the popover should animate when being opened/closed or not
|
|
1129
|
+
* @default 'none'
|
|
999
1130
|
*/
|
|
1000
1131
|
"animation": 'none' | 'fade' | string;
|
|
1001
1132
|
/**
|
|
1002
1133
|
* Decides if the popover should hide automatically. Alternatevly it can be hidden externally based on emitted events.
|
|
1134
|
+
* @default true
|
|
1003
1135
|
*/
|
|
1004
1136
|
"autoHide": boolean;
|
|
1005
1137
|
/**
|
|
@@ -1008,22 +1140,27 @@ export namespace Components {
|
|
|
1008
1140
|
"close": () => Promise<void>;
|
|
1009
1141
|
/**
|
|
1010
1142
|
* Decides if the component should be visible from the start.
|
|
1143
|
+
* @default false
|
|
1011
1144
|
*/
|
|
1012
1145
|
"defaultShow": boolean;
|
|
1013
1146
|
/**
|
|
1014
1147
|
* Array of modifier objects to pass to popper.js. See https://popper.js.org/docs/v2/modifiers/
|
|
1148
|
+
* @default []
|
|
1015
1149
|
*/
|
|
1016
1150
|
"modifiers": Object[];
|
|
1017
1151
|
/**
|
|
1018
1152
|
* Sets the offset distance
|
|
1153
|
+
* @default 8
|
|
1019
1154
|
*/
|
|
1020
1155
|
"offsetDistance": number;
|
|
1021
1156
|
/**
|
|
1022
1157
|
* Sets the offset skidding
|
|
1158
|
+
* @default 0
|
|
1023
1159
|
*/
|
|
1024
1160
|
"offsetSkidding": number;
|
|
1025
1161
|
/**
|
|
1026
1162
|
* Decides the placement of the Popover Menu
|
|
1163
|
+
* @default 'auto'
|
|
1027
1164
|
*/
|
|
1028
1165
|
"placement": Placement;
|
|
1029
1166
|
/**
|
|
@@ -1036,16 +1173,19 @@ export namespace Components {
|
|
|
1036
1173
|
"selector": string;
|
|
1037
1174
|
/**
|
|
1038
1175
|
* Controls whether the Popover is shown or not. If this is set hiding and showing will be decided by this prop and will need to be controlled from the outside. This also means that clicking outside of the popover won't close it. Takes precedence over `defaultShow` prop.
|
|
1176
|
+
* @default null
|
|
1039
1177
|
*/
|
|
1040
1178
|
"show": boolean;
|
|
1041
1179
|
/**
|
|
1042
1180
|
* What triggers the popover to show
|
|
1181
|
+
* @default 'click'
|
|
1043
1182
|
*/
|
|
1044
1183
|
"trigger": 'click' | 'hover' | 'hover-popover';
|
|
1045
1184
|
}
|
|
1046
1185
|
interface TdsPopoverMenu {
|
|
1047
1186
|
/**
|
|
1048
1187
|
* Whether the popover should animate when being opened/closed or not
|
|
1188
|
+
* @default 'none'
|
|
1049
1189
|
*/
|
|
1050
1190
|
"animation": 'none' | 'fade' | string;
|
|
1051
1191
|
/**
|
|
@@ -1054,26 +1194,32 @@ export namespace Components {
|
|
|
1054
1194
|
"close": () => Promise<void>;
|
|
1055
1195
|
/**
|
|
1056
1196
|
* Decides if the component should be visible from the start.
|
|
1197
|
+
* @default false
|
|
1057
1198
|
*/
|
|
1058
1199
|
"defaultShow": boolean;
|
|
1059
1200
|
/**
|
|
1060
1201
|
* If true this unsets the width (160px) of the Popover Menu
|
|
1202
|
+
* @default false
|
|
1061
1203
|
*/
|
|
1062
1204
|
"fluidWidth": boolean;
|
|
1063
1205
|
/**
|
|
1064
1206
|
* Mode variant of the component, based on current mode.
|
|
1207
|
+
* @default null
|
|
1065
1208
|
*/
|
|
1066
1209
|
"modeVariant": 'primary' | 'secondary';
|
|
1067
1210
|
/**
|
|
1068
1211
|
* Sets the offset distance
|
|
1212
|
+
* @default 8
|
|
1069
1213
|
*/
|
|
1070
1214
|
"offsetDistance": number;
|
|
1071
1215
|
/**
|
|
1072
1216
|
* Sets the offset skidding
|
|
1217
|
+
* @default 0
|
|
1073
1218
|
*/
|
|
1074
1219
|
"offsetSkidding": number;
|
|
1075
1220
|
/**
|
|
1076
1221
|
* Decides the placement of the Popover Menu
|
|
1222
|
+
* @default 'auto'
|
|
1077
1223
|
*/
|
|
1078
1224
|
"placement": Placement;
|
|
1079
1225
|
/**
|
|
@@ -1086,22 +1232,26 @@ export namespace Components {
|
|
|
1086
1232
|
"selector": string;
|
|
1087
1233
|
/**
|
|
1088
1234
|
* Controls whether the Popover is shown or not. If this is set hiding and showing will be decided by this prop and will need to be controlled from the outside. This also means that clicking outside of the popover won't close it. Takes precedence over `defaultShow` prop.
|
|
1235
|
+
* @default null
|
|
1089
1236
|
*/
|
|
1090
1237
|
"show": boolean;
|
|
1091
1238
|
}
|
|
1092
1239
|
interface TdsPopoverMenuItem {
|
|
1093
1240
|
/**
|
|
1094
1241
|
* Disables the Popover Menu Item
|
|
1242
|
+
* @default false
|
|
1095
1243
|
*/
|
|
1096
1244
|
"disabled": boolean;
|
|
1097
1245
|
}
|
|
1098
1246
|
interface TdsRadioButton {
|
|
1099
1247
|
/**
|
|
1100
1248
|
* Decides if the Radio Button is checked or not.
|
|
1249
|
+
* @default false
|
|
1101
1250
|
*/
|
|
1102
1251
|
"checked": boolean;
|
|
1103
1252
|
/**
|
|
1104
1253
|
* Decides if the Radio Button is disabled or not.
|
|
1254
|
+
* @default false
|
|
1105
1255
|
*/
|
|
1106
1256
|
"disabled": boolean;
|
|
1107
1257
|
/**
|
|
@@ -1114,10 +1264,12 @@ export namespace Components {
|
|
|
1114
1264
|
"name": string;
|
|
1115
1265
|
/**
|
|
1116
1266
|
* Unique Radio Button identifier.
|
|
1267
|
+
* @default generateUniqueId()
|
|
1117
1268
|
*/
|
|
1118
1269
|
"radioId": string;
|
|
1119
1270
|
/**
|
|
1120
1271
|
* Decides if the Radio Button is required or not.
|
|
1272
|
+
* @default false
|
|
1121
1273
|
*/
|
|
1122
1274
|
"required": boolean;
|
|
1123
1275
|
/**
|
|
@@ -1136,14 +1288,17 @@ export namespace Components {
|
|
|
1136
1288
|
interface TdsSideMenu {
|
|
1137
1289
|
/**
|
|
1138
1290
|
* If the Side Menu is collapsed. Only a persistent desktop menu can be collapsed. NOTE: Only use this if you have prevented the automatic collapsing with preventDefault on the tdsCollapse event.
|
|
1291
|
+
* @default false
|
|
1139
1292
|
*/
|
|
1140
1293
|
"collapsed": boolean;
|
|
1141
1294
|
/**
|
|
1142
1295
|
* Applicable only for mobile. If the Side Menu is open or not.
|
|
1296
|
+
* @default false
|
|
1143
1297
|
*/
|
|
1144
1298
|
"open": boolean;
|
|
1145
1299
|
/**
|
|
1146
1300
|
* Applicable only for desktop. If the Side Menu should always be shown.
|
|
1301
|
+
* @default false
|
|
1147
1302
|
*/
|
|
1148
1303
|
"persistent": boolean;
|
|
1149
1304
|
}
|
|
@@ -1158,14 +1313,17 @@ export namespace Components {
|
|
|
1158
1313
|
"buttonLabel": string;
|
|
1159
1314
|
/**
|
|
1160
1315
|
* If the dropdown should be open from the start.
|
|
1316
|
+
* @default false
|
|
1161
1317
|
*/
|
|
1162
1318
|
"defaultOpen": boolean;
|
|
1163
1319
|
/**
|
|
1164
1320
|
* Toggle open state programmatically
|
|
1321
|
+
* @default false
|
|
1165
1322
|
*/
|
|
1166
1323
|
"open": boolean;
|
|
1167
1324
|
/**
|
|
1168
1325
|
* If the button that opens the dropdown should appear selected.
|
|
1326
|
+
* @default false
|
|
1169
1327
|
*/
|
|
1170
1328
|
"selected": boolean;
|
|
1171
1329
|
}
|
|
@@ -1174,16 +1332,19 @@ export namespace Components {
|
|
|
1174
1332
|
interface TdsSideMenuDropdownListItem {
|
|
1175
1333
|
/**
|
|
1176
1334
|
* If the item should appear selected.
|
|
1335
|
+
* @default false
|
|
1177
1336
|
*/
|
|
1178
1337
|
"selected": boolean;
|
|
1179
1338
|
}
|
|
1180
1339
|
interface TdsSideMenuItem {
|
|
1181
1340
|
/**
|
|
1182
1341
|
* If the item should appear active. Can be used when the item is triggering a dropdown, and the dropdown is open, for example.
|
|
1342
|
+
* @default false
|
|
1183
1343
|
*/
|
|
1184
1344
|
"active": boolean;
|
|
1185
1345
|
/**
|
|
1186
1346
|
* If the item should appear selected.
|
|
1347
|
+
* @default false
|
|
1187
1348
|
*/
|
|
1188
1349
|
"selected": boolean;
|
|
1189
1350
|
}
|
|
@@ -1230,34 +1391,42 @@ export namespace Components {
|
|
|
1230
1391
|
interface TdsSlider {
|
|
1231
1392
|
/**
|
|
1232
1393
|
* Decide to show the controls or not
|
|
1394
|
+
* @default false
|
|
1233
1395
|
*/
|
|
1234
1396
|
"controls": boolean;
|
|
1235
1397
|
/**
|
|
1236
1398
|
* Sets the disabled state for the whole component
|
|
1399
|
+
* @default false
|
|
1237
1400
|
*/
|
|
1238
1401
|
"disabled": boolean;
|
|
1239
1402
|
/**
|
|
1240
1403
|
* Decide to show the input field or not
|
|
1404
|
+
* @default false
|
|
1241
1405
|
*/
|
|
1242
1406
|
"input": boolean;
|
|
1243
1407
|
/**
|
|
1244
1408
|
* Text for label
|
|
1409
|
+
* @default ''
|
|
1245
1410
|
*/
|
|
1246
1411
|
"label": string;
|
|
1247
1412
|
/**
|
|
1248
1413
|
* Maximum value
|
|
1414
|
+
* @default '100'
|
|
1249
1415
|
*/
|
|
1250
1416
|
"max": string;
|
|
1251
1417
|
/**
|
|
1252
1418
|
* Minimum value
|
|
1419
|
+
* @default '0'
|
|
1253
1420
|
*/
|
|
1254
1421
|
"min": string;
|
|
1255
1422
|
/**
|
|
1256
1423
|
* Name property (will be inherited by the native slider component)
|
|
1424
|
+
* @default ''
|
|
1257
1425
|
*/
|
|
1258
1426
|
"name": string;
|
|
1259
1427
|
/**
|
|
1260
1428
|
* Sets the read only state for the whole component
|
|
1429
|
+
* @default false
|
|
1261
1430
|
*/
|
|
1262
1431
|
"readOnly": boolean;
|
|
1263
1432
|
/**
|
|
@@ -1266,52 +1435,64 @@ export namespace Components {
|
|
|
1266
1435
|
"reset": () => Promise<void>;
|
|
1267
1436
|
/**
|
|
1268
1437
|
* Decide to show numbers above the tick markers or not
|
|
1438
|
+
* @default false
|
|
1269
1439
|
*/
|
|
1270
1440
|
"showTickNumbers": boolean;
|
|
1271
1441
|
/**
|
|
1272
1442
|
* ID for the Slider's input element, randomly generated if not specified.
|
|
1443
|
+
* @default generateUniqueId()
|
|
1273
1444
|
*/
|
|
1274
1445
|
"sliderId": string;
|
|
1275
1446
|
/**
|
|
1276
1447
|
* Snap to the tick's grid
|
|
1448
|
+
* @default false
|
|
1277
1449
|
*/
|
|
1278
1450
|
"snap": boolean;
|
|
1279
1451
|
/**
|
|
1280
1452
|
* Defines how much to increment/decrement the value when using controls
|
|
1453
|
+
* @default '1'
|
|
1281
1454
|
*/
|
|
1282
1455
|
"step": string;
|
|
1283
1456
|
/**
|
|
1284
1457
|
* Sets the aria-label for the slider control.
|
|
1458
|
+
* @default ''
|
|
1285
1459
|
*/
|
|
1286
1460
|
"tdsAriaLabel": string;
|
|
1287
1461
|
/**
|
|
1288
1462
|
* Sets the read only aria label for the input field
|
|
1463
|
+
* @default ''
|
|
1289
1464
|
*/
|
|
1290
1465
|
"tdsReadOnlyAriaLabel": string;
|
|
1291
1466
|
/**
|
|
1292
1467
|
* Sets the size of the thumb
|
|
1468
|
+
* @default 'lg'
|
|
1293
1469
|
*/
|
|
1294
1470
|
"thumbSize": 'sm' | 'lg';
|
|
1295
1471
|
/**
|
|
1296
1472
|
* Number of tick markers (tick for min- and max-value will be added automatically)
|
|
1473
|
+
* @default '0'
|
|
1297
1474
|
*/
|
|
1298
1475
|
"ticks": string;
|
|
1299
1476
|
/**
|
|
1300
1477
|
* Decide to show the tooltip or not
|
|
1478
|
+
* @default false
|
|
1301
1479
|
*/
|
|
1302
1480
|
"tooltip": boolean;
|
|
1303
1481
|
/**
|
|
1304
1482
|
* Initial value
|
|
1483
|
+
* @default '0'
|
|
1305
1484
|
*/
|
|
1306
1485
|
"value": string;
|
|
1307
1486
|
}
|
|
1308
1487
|
interface TdsSpinner {
|
|
1309
1488
|
/**
|
|
1310
1489
|
* Size of the Spinner
|
|
1490
|
+
* @default 'lg'
|
|
1311
1491
|
*/
|
|
1312
1492
|
"size": 'xs' | 'sm' | 'md' | 'lg';
|
|
1313
1493
|
/**
|
|
1314
1494
|
* Variant of the Spinner
|
|
1495
|
+
* @default 'standard'
|
|
1315
1496
|
*/
|
|
1316
1497
|
"variant": 'standard' | 'inverted';
|
|
1317
1498
|
}
|
|
@@ -1322,6 +1503,7 @@ export namespace Components {
|
|
|
1322
1503
|
"index": string;
|
|
1323
1504
|
/**
|
|
1324
1505
|
* State of the Step
|
|
1506
|
+
* @default 'upcoming'
|
|
1325
1507
|
*/
|
|
1326
1508
|
"state": 'current' | 'error' | 'success' | 'upcoming';
|
|
1327
1509
|
"tdsAriaCurrent": string;
|
|
@@ -1329,36 +1511,44 @@ export namespace Components {
|
|
|
1329
1511
|
interface TdsStepper {
|
|
1330
1512
|
/**
|
|
1331
1513
|
* Hides the label for the child components if true.
|
|
1514
|
+
* @default false
|
|
1332
1515
|
*/
|
|
1333
1516
|
"hideLabels": boolean;
|
|
1334
1517
|
/**
|
|
1335
1518
|
* Text position, only available on a direction: horizontal
|
|
1519
|
+
* @default 'below'
|
|
1336
1520
|
*/
|
|
1337
1521
|
"labelPosition": 'aside' | 'below';
|
|
1338
1522
|
/**
|
|
1339
1523
|
* The orientation the Steps
|
|
1524
|
+
* @default 'horizontal'
|
|
1340
1525
|
*/
|
|
1341
1526
|
"orientation": 'horizontal' | 'vertical';
|
|
1342
1527
|
/**
|
|
1343
1528
|
* Size of the component and it's children.
|
|
1529
|
+
* @default 'lg'
|
|
1344
1530
|
*/
|
|
1345
1531
|
"size": 'sm' | 'lg';
|
|
1346
1532
|
/**
|
|
1347
1533
|
* ID used for internal Stepper functionality and events, must be unique. **NOTE**: If you're listening for Stepper events, you need to set this ID yourself to identify the Stepper, as the default ID is random and will be different every time.
|
|
1534
|
+
* @default generateUniqueId()
|
|
1348
1535
|
*/
|
|
1349
1536
|
"stepperId": string;
|
|
1350
1537
|
/**
|
|
1351
1538
|
* Label for the stepper component, for screen reader users
|
|
1539
|
+
* @default 'Progress steps'
|
|
1352
1540
|
*/
|
|
1353
1541
|
"tdsAriaLabel": string;
|
|
1354
1542
|
}
|
|
1355
1543
|
interface TdsTable {
|
|
1356
1544
|
/**
|
|
1357
1545
|
* Enables style where Table toolbar, rows and footer are less high
|
|
1546
|
+
* @default false
|
|
1358
1547
|
*/
|
|
1359
1548
|
"compactDesign": boolean;
|
|
1360
1549
|
/**
|
|
1361
1550
|
* Enables extended row feature of Table
|
|
1551
|
+
* @default false
|
|
1362
1552
|
*/
|
|
1363
1553
|
"expandableRows": boolean;
|
|
1364
1554
|
/**
|
|
@@ -1367,14 +1557,17 @@ export namespace Components {
|
|
|
1367
1557
|
"getSelectedRows": () => Promise<any[]>;
|
|
1368
1558
|
/**
|
|
1369
1559
|
* Width of the table, used as the constraint for horizontal scrolling. **NOTE**: this will disable usage of the responsive flag
|
|
1560
|
+
* @default null
|
|
1370
1561
|
*/
|
|
1371
1562
|
"horizontalScrollWidth"?: string;
|
|
1372
1563
|
/**
|
|
1373
1564
|
* Variant of the component, based on current mode.
|
|
1565
|
+
* @default null
|
|
1374
1566
|
*/
|
|
1375
1567
|
"modeVariant": 'primary' | 'secondary';
|
|
1376
1568
|
/**
|
|
1377
1569
|
* Enables multiselect feature of Table
|
|
1570
|
+
* @default false
|
|
1378
1571
|
*/
|
|
1379
1572
|
"multiselect": boolean;
|
|
1380
1573
|
/**
|
|
@@ -1383,18 +1576,22 @@ export namespace Components {
|
|
|
1383
1576
|
"noMinWidth": boolean;
|
|
1384
1577
|
/**
|
|
1385
1578
|
* Enables Table to take 100% available width with equal spacing of columns
|
|
1579
|
+
* @default false
|
|
1386
1580
|
*/
|
|
1387
1581
|
"responsive": boolean;
|
|
1388
1582
|
/**
|
|
1389
1583
|
* ID used for internal Table functionality and events, must be unique. **NOTE**: If you're listening for Table events, you need to set this ID yourself to identify the Table, as the default ID is random and will be different every time.
|
|
1584
|
+
* @default generateUniqueId()
|
|
1390
1585
|
*/
|
|
1391
1586
|
"tableId": string;
|
|
1392
1587
|
/**
|
|
1393
1588
|
* Enables style with vertical dividers between columns
|
|
1589
|
+
* @default false
|
|
1394
1590
|
*/
|
|
1395
1591
|
"verticalDividers": boolean;
|
|
1396
1592
|
/**
|
|
1397
1593
|
* Enables zebra stripe mode on the table rows or columns.
|
|
1594
|
+
* @default 'none'
|
|
1398
1595
|
*/
|
|
1399
1596
|
"zebraMode": | 'rows-odd'
|
|
1400
1597
|
| 'rows-even'
|
|
@@ -1407,30 +1604,36 @@ export namespace Components {
|
|
|
1407
1604
|
interface TdsTableBodyInputWrapper {
|
|
1408
1605
|
/**
|
|
1409
1606
|
* Controls if the edit icon is shown
|
|
1607
|
+
* @default true
|
|
1410
1608
|
*/
|
|
1411
1609
|
"showIcon": boolean;
|
|
1412
1610
|
}
|
|
1413
1611
|
interface TdsTableBodyRow {
|
|
1414
1612
|
/**
|
|
1415
1613
|
* Makes the row clickable and tabbable for accessibility purposes.
|
|
1614
|
+
* @default false
|
|
1416
1615
|
*/
|
|
1417
1616
|
"clickable": boolean;
|
|
1418
1617
|
/**
|
|
1419
1618
|
* Marks the row as disabled, used for multiselect table.
|
|
1619
|
+
* @default false
|
|
1420
1620
|
*/
|
|
1421
1621
|
"disabled"?: boolean;
|
|
1422
1622
|
/**
|
|
1423
1623
|
* Marks the row as selected, used for multiselect table.
|
|
1624
|
+
* @default false
|
|
1424
1625
|
*/
|
|
1425
1626
|
"selected": boolean;
|
|
1426
1627
|
}
|
|
1427
1628
|
interface TdsTableBodyRowExpandable {
|
|
1428
1629
|
/**
|
|
1429
1630
|
* Enables auto-collapse of other expandable rows when one row is expanded
|
|
1631
|
+
* @default false
|
|
1430
1632
|
*/
|
|
1431
1633
|
"autoCollapse": boolean;
|
|
1432
1634
|
/**
|
|
1433
1635
|
* In case that automatic count of columns does not work, user can manually set this one. Take in mind that expandable control is column too
|
|
1636
|
+
* @default null
|
|
1434
1637
|
*/
|
|
1435
1638
|
"colSpan": number;
|
|
1436
1639
|
/**
|
|
@@ -1447,54 +1650,66 @@ export namespace Components {
|
|
|
1447
1650
|
"expanded": boolean;
|
|
1448
1651
|
/**
|
|
1449
1652
|
* Controls the overflow behavior of the expandable row content
|
|
1653
|
+
* @default 'auto'
|
|
1450
1654
|
*/
|
|
1451
1655
|
"overflow": 'auto' | 'hidden' | 'visible';
|
|
1452
1656
|
/**
|
|
1453
1657
|
* ID for the table row. Randomly generated if not specified.
|
|
1658
|
+
* @default generateUniqueId()
|
|
1454
1659
|
*/
|
|
1455
1660
|
"rowId": string;
|
|
1456
1661
|
/**
|
|
1457
1662
|
* Aria label for the expand button, providing an accessible description
|
|
1663
|
+
* @default ''
|
|
1458
1664
|
*/
|
|
1459
1665
|
"tdsAriaLabelExpandButton": string;
|
|
1460
1666
|
}
|
|
1461
1667
|
interface TdsTableFooter {
|
|
1462
1668
|
/**
|
|
1463
1669
|
* <b>Client override</b> Used to set the column span of the footer. Use as fallback if the automatic count of columns fails.
|
|
1670
|
+
* @default null
|
|
1464
1671
|
*/
|
|
1465
1672
|
"cols": number;
|
|
1466
1673
|
/**
|
|
1467
1674
|
* Sets the number of pages.
|
|
1675
|
+
* @default null
|
|
1468
1676
|
*/
|
|
1469
1677
|
"pages": number;
|
|
1470
1678
|
/**
|
|
1471
1679
|
* Enable pagination and show pagination controls
|
|
1680
|
+
* @default false
|
|
1472
1681
|
*/
|
|
1473
1682
|
"pagination": boolean;
|
|
1474
1683
|
/**
|
|
1475
1684
|
* Sets the pagination number.
|
|
1685
|
+
* @default 1
|
|
1476
1686
|
*/
|
|
1477
1687
|
"paginationValue": number;
|
|
1478
1688
|
/**
|
|
1479
1689
|
* Set available rows per page values
|
|
1690
|
+
* @default [10, 25, 50]
|
|
1480
1691
|
*/
|
|
1481
1692
|
"rowsPerPageValues": number[];
|
|
1482
1693
|
/**
|
|
1483
1694
|
* Enable rows per page dropdown
|
|
1695
|
+
* @default true
|
|
1484
1696
|
*/
|
|
1485
1697
|
"rowsperpage": boolean;
|
|
1486
1698
|
}
|
|
1487
1699
|
interface TdsTableHeader {
|
|
1488
1700
|
/**
|
|
1489
1701
|
* @deprecated Deprecated, use selected instead.
|
|
1702
|
+
* @default false
|
|
1490
1703
|
*/
|
|
1491
1704
|
"allSelected": boolean;
|
|
1492
1705
|
/**
|
|
1493
1706
|
* Prop for controlling the enabled/disabled state of the "All selected"-checkbox.
|
|
1707
|
+
* @default false
|
|
1494
1708
|
*/
|
|
1495
1709
|
"disabled"?: boolean;
|
|
1496
1710
|
/**
|
|
1497
1711
|
* Prop for controlling the indeterminate state of the "All selected"-checkbox.
|
|
1712
|
+
* @default false
|
|
1498
1713
|
*/
|
|
1499
1714
|
"indeterminate": boolean;
|
|
1500
1715
|
/**
|
|
@@ -1503,29 +1718,37 @@ export namespace Components {
|
|
|
1503
1718
|
"selected": boolean;
|
|
1504
1719
|
}
|
|
1505
1720
|
interface TdsTableHeaderInputWrapper {
|
|
1721
|
+
/**
|
|
1722
|
+
* @default false
|
|
1723
|
+
*/
|
|
1506
1724
|
"compactDesign": boolean;
|
|
1507
1725
|
/**
|
|
1508
1726
|
* Controls if the search icon is shown
|
|
1727
|
+
* @default true
|
|
1509
1728
|
*/
|
|
1510
1729
|
"showIcon": boolean;
|
|
1511
1730
|
}
|
|
1512
1731
|
interface TdsTableToolbar {
|
|
1513
1732
|
/**
|
|
1514
1733
|
* Enables preview of searchbar
|
|
1734
|
+
* @default false
|
|
1515
1735
|
*/
|
|
1516
1736
|
"filter": boolean;
|
|
1517
1737
|
/**
|
|
1518
1738
|
* Adds title to the Table
|
|
1739
|
+
* @default ''
|
|
1519
1740
|
*/
|
|
1520
1741
|
"tableTitle": string;
|
|
1521
1742
|
/**
|
|
1522
1743
|
* Aria label for the search input, providing an accessible description
|
|
1744
|
+
* @default ''
|
|
1523
1745
|
*/
|
|
1524
1746
|
"tdsSearchAriaLabel": string;
|
|
1525
1747
|
}
|
|
1526
1748
|
interface TdsTag {
|
|
1527
1749
|
/**
|
|
1528
1750
|
* Sets the size of the tag
|
|
1751
|
+
* @default 'lg'
|
|
1529
1752
|
*/
|
|
1530
1753
|
"size": 'lg' | 'sm';
|
|
1531
1754
|
/**
|
|
@@ -1534,16 +1757,24 @@ export namespace Components {
|
|
|
1534
1757
|
"text": string;
|
|
1535
1758
|
/**
|
|
1536
1759
|
* Sets the variant mode of the tag
|
|
1760
|
+
* @default 'Neutral'
|
|
1537
1761
|
*/
|
|
1538
1762
|
"variant": 'Success' | 'Warning' | 'New' | 'Neutral' | 'Information' | 'Error';
|
|
1539
1763
|
}
|
|
1540
1764
|
interface TdsTextField {
|
|
1765
|
+
/**
|
|
1766
|
+
* Value to be used for the text field's autocomplete attribute
|
|
1767
|
+
* @default 'off'
|
|
1768
|
+
*/
|
|
1769
|
+
"autocomplete": string;
|
|
1541
1770
|
/**
|
|
1542
1771
|
* Autofocus for input
|
|
1772
|
+
* @default false
|
|
1543
1773
|
*/
|
|
1544
1774
|
"autofocus": boolean;
|
|
1545
1775
|
/**
|
|
1546
1776
|
* Set input in disabled state
|
|
1777
|
+
* @default false
|
|
1547
1778
|
*/
|
|
1548
1779
|
"disabled": boolean;
|
|
1549
1780
|
/**
|
|
@@ -1556,14 +1787,17 @@ export namespace Components {
|
|
|
1556
1787
|
"helper": string;
|
|
1557
1788
|
/**
|
|
1558
1789
|
* Hides the read-only icon in the Text Field. Requires Read Only to be enabled.
|
|
1790
|
+
* @default false
|
|
1559
1791
|
*/
|
|
1560
1792
|
"hideReadOnlyIcon": boolean;
|
|
1561
1793
|
/**
|
|
1562
1794
|
* Label text
|
|
1795
|
+
* @default ''
|
|
1563
1796
|
*/
|
|
1564
1797
|
"label": string;
|
|
1565
1798
|
/**
|
|
1566
1799
|
* Position of the label for the Text Field.
|
|
1800
|
+
* @default 'no-label'
|
|
1567
1801
|
*/
|
|
1568
1802
|
"labelPosition": 'inside' | 'outside' | 'no-label';
|
|
1569
1803
|
/**
|
|
@@ -1580,30 +1814,42 @@ export namespace Components {
|
|
|
1580
1814
|
"min": string | number;
|
|
1581
1815
|
/**
|
|
1582
1816
|
* Mode variant of the Text Field
|
|
1817
|
+
* @default null
|
|
1583
1818
|
*/
|
|
1584
1819
|
"modeVariant": 'primary' | 'secondary';
|
|
1585
1820
|
/**
|
|
1586
1821
|
* Name property
|
|
1822
|
+
* @default ''
|
|
1587
1823
|
*/
|
|
1588
1824
|
"name": string;
|
|
1589
1825
|
/**
|
|
1590
1826
|
* Unset minimum width of 208px.
|
|
1827
|
+
* @default false
|
|
1591
1828
|
*/
|
|
1592
1829
|
"noMinWidth": boolean;
|
|
1593
1830
|
/**
|
|
1594
1831
|
* Placeholder text
|
|
1832
|
+
* @default ''
|
|
1595
1833
|
*/
|
|
1596
1834
|
"placeholder": string;
|
|
1597
1835
|
/**
|
|
1598
1836
|
* Set input in readonly state
|
|
1837
|
+
* @default false
|
|
1599
1838
|
*/
|
|
1600
1839
|
"readOnly": boolean;
|
|
1840
|
+
/**
|
|
1841
|
+
* Makes the text field required
|
|
1842
|
+
* @default false
|
|
1843
|
+
*/
|
|
1844
|
+
"required": boolean;
|
|
1601
1845
|
/**
|
|
1602
1846
|
* Size of the input
|
|
1847
|
+
* @default 'lg'
|
|
1603
1848
|
*/
|
|
1604
1849
|
"size": 'sm' | 'md' | 'lg';
|
|
1605
1850
|
/**
|
|
1606
1851
|
* Error state of input
|
|
1852
|
+
* @default 'default'
|
|
1607
1853
|
*/
|
|
1608
1854
|
"state": 'error' | 'success' | 'default';
|
|
1609
1855
|
/**
|
|
@@ -1612,16 +1858,19 @@ export namespace Components {
|
|
|
1612
1858
|
"tdsAriaLabel": string;
|
|
1613
1859
|
/**
|
|
1614
1860
|
* Which input type, text, password or similar
|
|
1861
|
+
* @default 'text'
|
|
1615
1862
|
*/
|
|
1616
|
-
"type": 'text' | 'password' | 'number';
|
|
1863
|
+
"type": 'text' | 'password' | 'number' | 'email' | 'tel';
|
|
1617
1864
|
/**
|
|
1618
1865
|
* Value of the input text
|
|
1866
|
+
* @default ''
|
|
1619
1867
|
*/
|
|
1620
1868
|
"value": string;
|
|
1621
1869
|
}
|
|
1622
1870
|
interface TdsTextarea {
|
|
1623
1871
|
/**
|
|
1624
1872
|
* Control of autofocus
|
|
1873
|
+
* @default false
|
|
1625
1874
|
*/
|
|
1626
1875
|
"autofocus": boolean;
|
|
1627
1876
|
/**
|
|
@@ -1630,6 +1879,7 @@ export namespace Components {
|
|
|
1630
1879
|
"cols": number;
|
|
1631
1880
|
/**
|
|
1632
1881
|
* Set input in disabled state
|
|
1882
|
+
* @default false
|
|
1633
1883
|
*/
|
|
1634
1884
|
"disabled": boolean;
|
|
1635
1885
|
/**
|
|
@@ -1642,14 +1892,17 @@ export namespace Components {
|
|
|
1642
1892
|
"helper": string;
|
|
1643
1893
|
/**
|
|
1644
1894
|
* Hide the readonly icon
|
|
1895
|
+
* @default false
|
|
1645
1896
|
*/
|
|
1646
1897
|
"hideReadOnlyIcon": boolean;
|
|
1647
1898
|
/**
|
|
1648
1899
|
* Label text
|
|
1900
|
+
* @default ''
|
|
1649
1901
|
*/
|
|
1650
1902
|
"label": string;
|
|
1651
1903
|
/**
|
|
1652
1904
|
* Position of the label for the Textarea.
|
|
1905
|
+
* @default 'no-label'
|
|
1653
1906
|
*/
|
|
1654
1907
|
"labelPosition": 'inside' | 'outside' | 'no-label';
|
|
1655
1908
|
/**
|
|
@@ -1658,22 +1911,27 @@ export namespace Components {
|
|
|
1658
1911
|
"maxLength": number;
|
|
1659
1912
|
/**
|
|
1660
1913
|
* Mode variant of the Textarea
|
|
1914
|
+
* @default null
|
|
1661
1915
|
*/
|
|
1662
1916
|
"modeVariant": 'primary' | 'secondary';
|
|
1663
1917
|
/**
|
|
1664
1918
|
* Name attribute
|
|
1919
|
+
* @default ''
|
|
1665
1920
|
*/
|
|
1666
1921
|
"name": string;
|
|
1667
1922
|
/**
|
|
1668
1923
|
* Unset minimum width of 208px.
|
|
1924
|
+
* @default false
|
|
1669
1925
|
*/
|
|
1670
1926
|
"noMinWidth": boolean;
|
|
1671
1927
|
/**
|
|
1672
1928
|
* Placeholder text
|
|
1929
|
+
* @default ''
|
|
1673
1930
|
*/
|
|
1674
1931
|
"placeholder": string;
|
|
1675
1932
|
/**
|
|
1676
1933
|
* Set input in readonly state
|
|
1934
|
+
* @default false
|
|
1677
1935
|
*/
|
|
1678
1936
|
"readOnly": boolean;
|
|
1679
1937
|
/**
|
|
@@ -1682,6 +1940,7 @@ export namespace Components {
|
|
|
1682
1940
|
"rows": number;
|
|
1683
1941
|
/**
|
|
1684
1942
|
* Error state of input
|
|
1943
|
+
* @default 'default'
|
|
1685
1944
|
*/
|
|
1686
1945
|
"state": 'error' | 'success' | 'default';
|
|
1687
1946
|
/**
|
|
@@ -1690,12 +1949,14 @@ export namespace Components {
|
|
|
1690
1949
|
"tdsAriaLabel": string;
|
|
1691
1950
|
/**
|
|
1692
1951
|
* Value of the input text
|
|
1952
|
+
* @default ''
|
|
1693
1953
|
*/
|
|
1694
1954
|
"value": string;
|
|
1695
1955
|
}
|
|
1696
1956
|
interface TdsToast {
|
|
1697
1957
|
/**
|
|
1698
1958
|
* Enables the close button.
|
|
1959
|
+
* @default true
|
|
1699
1960
|
*/
|
|
1700
1961
|
"closable": boolean;
|
|
1701
1962
|
/**
|
|
@@ -1704,6 +1965,7 @@ export namespace Components {
|
|
|
1704
1965
|
"header": string;
|
|
1705
1966
|
/**
|
|
1706
1967
|
* Hides the Toast.
|
|
1968
|
+
* @default false
|
|
1707
1969
|
*/
|
|
1708
1970
|
"hidden": boolean;
|
|
1709
1971
|
/**
|
|
@@ -1720,6 +1982,7 @@ export namespace Components {
|
|
|
1720
1982
|
"subheader": string;
|
|
1721
1983
|
/**
|
|
1722
1984
|
* ARIA live for the Toast.
|
|
1985
|
+
* @default 'polite'
|
|
1723
1986
|
*/
|
|
1724
1987
|
"tdsAriaLive": 'polite' | 'assertive';
|
|
1725
1988
|
/**
|
|
@@ -1728,24 +1991,29 @@ export namespace Components {
|
|
|
1728
1991
|
"tdsCloseAriaLabel": string;
|
|
1729
1992
|
/**
|
|
1730
1993
|
* ID for the Toast. Randomly generated if not specified.
|
|
1994
|
+
* @default generateUniqueId()
|
|
1731
1995
|
*/
|
|
1732
1996
|
"toastId": string;
|
|
1733
1997
|
/**
|
|
1734
1998
|
* ARIA role for the Toast.
|
|
1999
|
+
* @default 'alert'
|
|
1735
2000
|
*/
|
|
1736
2001
|
"toastRole": 'alert' | 'log' | 'status';
|
|
1737
2002
|
/**
|
|
1738
2003
|
* Type of Toast.
|
|
2004
|
+
* @default 'information'
|
|
1739
2005
|
*/
|
|
1740
2006
|
"variant": 'information' | 'error' | 'warning' | 'success';
|
|
1741
2007
|
}
|
|
1742
2008
|
interface TdsToggle {
|
|
1743
2009
|
/**
|
|
1744
2010
|
* Sets the Toggle as checked
|
|
2011
|
+
* @default false
|
|
1745
2012
|
*/
|
|
1746
2013
|
"checked": boolean;
|
|
1747
2014
|
/**
|
|
1748
2015
|
* Sets the Toggle in a disabled state
|
|
2016
|
+
* @default false
|
|
1749
2017
|
*/
|
|
1750
2018
|
"disabled": boolean;
|
|
1751
2019
|
/**
|
|
@@ -1762,10 +2030,12 @@ export namespace Components {
|
|
|
1762
2030
|
"name": string;
|
|
1763
2031
|
/**
|
|
1764
2032
|
* Make the Toggle required
|
|
2033
|
+
* @default false
|
|
1765
2034
|
*/
|
|
1766
2035
|
"required": boolean;
|
|
1767
2036
|
/**
|
|
1768
2037
|
* Size of the Toggle
|
|
2038
|
+
* @default 'lg'
|
|
1769
2039
|
*/
|
|
1770
2040
|
"size": 'sm' | 'lg';
|
|
1771
2041
|
/**
|
|
@@ -1778,28 +2048,34 @@ export namespace Components {
|
|
|
1778
2048
|
"toggle": () => Promise<{ toggleId: string; checked: boolean; }>;
|
|
1779
2049
|
/**
|
|
1780
2050
|
* ID of the Toggle's input element, if not specified, it's randomly generated
|
|
2051
|
+
* @default generateUniqueId()
|
|
1781
2052
|
*/
|
|
1782
2053
|
"toggleId": string;
|
|
1783
2054
|
}
|
|
1784
2055
|
interface TdsTooltip {
|
|
1785
2056
|
/**
|
|
1786
2057
|
* Decides if the component should be visible from the start.
|
|
2058
|
+
* @default false
|
|
1787
2059
|
*/
|
|
1788
2060
|
"defaultShow": boolean;
|
|
1789
2061
|
/**
|
|
1790
2062
|
* Allow mouse over Tooltip. Useful when Tooltip contains clickable elements like link or button.
|
|
2063
|
+
* @default false
|
|
1791
2064
|
*/
|
|
1792
2065
|
"mouseOverTooltip": boolean;
|
|
1793
2066
|
/**
|
|
1794
2067
|
* Sets the offset distance
|
|
2068
|
+
* @default 8
|
|
1795
2069
|
*/
|
|
1796
2070
|
"offsetDistance": number;
|
|
1797
2071
|
/**
|
|
1798
2072
|
* Sets the offset skidding
|
|
2073
|
+
* @default 0
|
|
1799
2074
|
*/
|
|
1800
2075
|
"offsetSkidding": number;
|
|
1801
2076
|
/**
|
|
1802
2077
|
* Placement of Tooltip.
|
|
2078
|
+
* @default 'bottom'
|
|
1803
2079
|
*/
|
|
1804
2080
|
"placement": Placement;
|
|
1805
2081
|
/**
|
|
@@ -1812,6 +2088,7 @@ export namespace Components {
|
|
|
1812
2088
|
"selector": string;
|
|
1813
2089
|
/**
|
|
1814
2090
|
* Prop in control of showing and hiding prop. Takes precedence over `defaultOpen` prop.
|
|
2091
|
+
* @default null
|
|
1815
2092
|
*/
|
|
1816
2093
|
"show": boolean;
|
|
1817
2094
|
/**
|
|
@@ -1820,10 +2097,12 @@ export namespace Components {
|
|
|
1820
2097
|
"tdsAriaDescribedby": string;
|
|
1821
2098
|
/**
|
|
1822
2099
|
* In case Tooltip contains only text, no HTML, a text can be passed by this prop
|
|
2100
|
+
* @default ''
|
|
1823
2101
|
*/
|
|
1824
2102
|
"text": string;
|
|
1825
2103
|
/**
|
|
1826
2104
|
* What triggers the popover to show
|
|
2105
|
+
* @default 'hover'
|
|
1827
2106
|
*/
|
|
1828
2107
|
"trigger": 'click' | 'hover';
|
|
1829
2108
|
}
|
|
@@ -2964,32 +3243,39 @@ declare namespace LocalJSX {
|
|
|
2964
3243
|
interface TdsAccordion {
|
|
2965
3244
|
/**
|
|
2966
3245
|
* Removes the bottom border of the last Accordion item.
|
|
3246
|
+
* @default false
|
|
2967
3247
|
*/
|
|
2968
3248
|
"hideLastBorder"?: boolean;
|
|
2969
3249
|
/**
|
|
2970
3250
|
* Set the variant of the Accordion.
|
|
3251
|
+
* @default null
|
|
2971
3252
|
*/
|
|
2972
3253
|
"modeVariant"?: 'primary' | 'secondary';
|
|
2973
3254
|
}
|
|
2974
3255
|
interface TdsAccordionItem {
|
|
2975
3256
|
/**
|
|
2976
3257
|
* Specifies the heading level (aria-level) for accessibility. Only accepts values between 1 and 6.
|
|
3258
|
+
* @default '6'
|
|
2977
3259
|
*/
|
|
2978
3260
|
"ariaLevelValue"?: '1' | '2' | '3' | '4' | '5' | '6';
|
|
2979
3261
|
/**
|
|
2980
3262
|
* Disabled option in `boolean`.
|
|
3263
|
+
* @default false
|
|
2981
3264
|
*/
|
|
2982
3265
|
"disabled"?: boolean;
|
|
2983
3266
|
/**
|
|
2984
3267
|
* Changes position of the expand icon.
|
|
3268
|
+
* @default 'end'
|
|
2985
3269
|
*/
|
|
2986
3270
|
"expandIconPosition"?: 'start' | 'end';
|
|
2987
3271
|
/**
|
|
2988
3272
|
* Set to true to expand panel open
|
|
3273
|
+
* @default false
|
|
2989
3274
|
*/
|
|
2990
3275
|
"expanded"?: boolean;
|
|
2991
3276
|
/**
|
|
2992
3277
|
* The header gives users the context about the additional information available inside the panel
|
|
3278
|
+
* @default ''
|
|
2993
3279
|
*/
|
|
2994
3280
|
"header"?: string;
|
|
2995
3281
|
/**
|
|
@@ -3000,30 +3286,36 @@ declare namespace LocalJSX {
|
|
|
3000
3286
|
}>) => void;
|
|
3001
3287
|
/**
|
|
3002
3288
|
* When true, 16px on right padding instead of 64px
|
|
3289
|
+
* @default false
|
|
3003
3290
|
*/
|
|
3004
3291
|
"paddingReset"?: boolean;
|
|
3005
3292
|
}
|
|
3006
3293
|
interface TdsBadge {
|
|
3007
3294
|
/**
|
|
3008
3295
|
* Changes visibility of Badge
|
|
3296
|
+
* @default false
|
|
3009
3297
|
*/
|
|
3010
3298
|
"hidden"?: boolean;
|
|
3011
3299
|
/**
|
|
3012
3300
|
* Sets component size.
|
|
3301
|
+
* @default 'lg'
|
|
3013
3302
|
*/
|
|
3014
3303
|
"size"?: 'lg' | 'sm';
|
|
3015
3304
|
/**
|
|
3016
3305
|
* Defines aria-live attribute
|
|
3306
|
+
* @default 'polite'
|
|
3017
3307
|
*/
|
|
3018
3308
|
"tdsAriaLive"?: 'off' | 'polite' | 'assertive';
|
|
3019
3309
|
/**
|
|
3020
3310
|
* Value shown in Badge
|
|
3311
|
+
* @default ''
|
|
3021
3312
|
*/
|
|
3022
3313
|
"value"?: string;
|
|
3023
3314
|
}
|
|
3024
3315
|
interface TdsBanner {
|
|
3025
3316
|
/**
|
|
3026
3317
|
* ID used for internal table functionality and events, must be unique. **NOTE**: If you're listening for Banner close events, you need to set this ID yourself to identify the Banner, as the default ID is random and will be different every time.
|
|
3318
|
+
* @default generateUniqueId()
|
|
3027
3319
|
*/
|
|
3028
3320
|
"bannerId"?: string;
|
|
3029
3321
|
/**
|
|
@@ -3032,6 +3324,7 @@ declare namespace LocalJSX {
|
|
|
3032
3324
|
"header"?: string;
|
|
3033
3325
|
/**
|
|
3034
3326
|
* Hides the Banner
|
|
3327
|
+
* @default false
|
|
3035
3328
|
*/
|
|
3036
3329
|
"hidden"?: boolean;
|
|
3037
3330
|
/**
|
|
@@ -3046,6 +3339,7 @@ declare namespace LocalJSX {
|
|
|
3046
3339
|
}>) => void;
|
|
3047
3340
|
/**
|
|
3048
3341
|
* Defines the ARIA role of the banner. Defaults to "banner" for global use, but can be set to "region" or "alert" if used differently.
|
|
3342
|
+
* @default 'banner'
|
|
3049
3343
|
*/
|
|
3050
3344
|
"roleType"?: 'banner' | 'region' | 'alert';
|
|
3051
3345
|
/**
|
|
@@ -3054,6 +3348,7 @@ declare namespace LocalJSX {
|
|
|
3054
3348
|
"subheader"?: string;
|
|
3055
3349
|
/**
|
|
3056
3350
|
* Variant of Banner
|
|
3351
|
+
* @default 'default'
|
|
3057
3352
|
*/
|
|
3058
3353
|
"variant"?: 'error' | 'information' | 'default';
|
|
3059
3354
|
}
|
|
@@ -3065,6 +3360,7 @@ declare namespace LocalJSX {
|
|
|
3065
3360
|
interface TdsBlock {
|
|
3066
3361
|
/**
|
|
3067
3362
|
* Specifies the HTML tag to be used for the component wrapper.
|
|
3363
|
+
* @default 'div'
|
|
3068
3364
|
*/
|
|
3069
3365
|
"componentTag"?: | 'section'
|
|
3070
3366
|
| 'div'
|
|
@@ -3076,6 +3372,7 @@ declare namespace LocalJSX {
|
|
|
3076
3372
|
| 'main';
|
|
3077
3373
|
/**
|
|
3078
3374
|
* Mode variant of the component, based on current mode.
|
|
3375
|
+
* @default null
|
|
3079
3376
|
*/
|
|
3080
3377
|
"modeVariant"?: 'primary' | 'secondary';
|
|
3081
3378
|
}
|
|
@@ -3090,6 +3387,7 @@ declare namespace LocalJSX {
|
|
|
3090
3387
|
"cellValue"?: string | number;
|
|
3091
3388
|
/**
|
|
3092
3389
|
* Disables internal padding. Useful when passing other components to cell.
|
|
3390
|
+
* @default false
|
|
3093
3391
|
*/
|
|
3094
3392
|
"disablePadding"?: boolean;
|
|
3095
3393
|
/**
|
|
@@ -3100,6 +3398,7 @@ declare namespace LocalJSX {
|
|
|
3100
3398
|
interface TdsBreadcrumb {
|
|
3101
3399
|
/**
|
|
3102
3400
|
* Boolean for the current link
|
|
3401
|
+
* @default false
|
|
3103
3402
|
*/
|
|
3104
3403
|
"current"?: boolean;
|
|
3105
3404
|
}
|
|
@@ -3112,18 +3411,22 @@ declare namespace LocalJSX {
|
|
|
3112
3411
|
interface TdsButton {
|
|
3113
3412
|
/**
|
|
3114
3413
|
* Determines if and how the button should animate.
|
|
3414
|
+
* @default 'none'
|
|
3115
3415
|
*/
|
|
3116
3416
|
"animation"?: 'none' | 'fade';
|
|
3117
3417
|
/**
|
|
3118
3418
|
* Control for disabled state of a component
|
|
3419
|
+
* @default false
|
|
3119
3420
|
*/
|
|
3120
3421
|
"disabled"?: boolean;
|
|
3121
3422
|
/**
|
|
3122
3423
|
* When enabled, the Button takes 100% width
|
|
3424
|
+
* @default false
|
|
3123
3425
|
*/
|
|
3124
3426
|
"fullbleed"?: boolean;
|
|
3125
3427
|
/**
|
|
3126
3428
|
* Set the mode variant of the Button.
|
|
3429
|
+
* @default null
|
|
3127
3430
|
*/
|
|
3128
3431
|
"modeVariant"?: 'primary' | 'secondary';
|
|
3129
3432
|
/**
|
|
@@ -3132,6 +3435,7 @@ declare namespace LocalJSX {
|
|
|
3132
3435
|
"name"?: string;
|
|
3133
3436
|
/**
|
|
3134
3437
|
* Size of a Button
|
|
3438
|
+
* @default 'lg'
|
|
3135
3439
|
*/
|
|
3136
3440
|
"size"?: 'xs' | 'sm' | 'md' | 'lg';
|
|
3137
3441
|
/**
|
|
@@ -3144,6 +3448,7 @@ declare namespace LocalJSX {
|
|
|
3144
3448
|
"text"?: string;
|
|
3145
3449
|
/**
|
|
3146
3450
|
* Button's type
|
|
3451
|
+
* @default 'button'
|
|
3147
3452
|
*/
|
|
3148
3453
|
"type"?: 'button' | 'submit' | 'reset';
|
|
3149
3454
|
/**
|
|
@@ -3152,12 +3457,14 @@ declare namespace LocalJSX {
|
|
|
3152
3457
|
"value"?: string;
|
|
3153
3458
|
/**
|
|
3154
3459
|
* Variation of Button's design
|
|
3460
|
+
* @default 'primary'
|
|
3155
3461
|
*/
|
|
3156
3462
|
"variant"?: 'primary' | 'secondary' | 'ghost' | 'danger';
|
|
3157
3463
|
}
|
|
3158
3464
|
interface TdsCard {
|
|
3159
3465
|
/**
|
|
3160
3466
|
* Divider for the body
|
|
3467
|
+
* @default false
|
|
3161
3468
|
*/
|
|
3162
3469
|
"bodyDivider"?: boolean;
|
|
3163
3470
|
/**
|
|
@@ -3170,18 +3477,22 @@ declare namespace LocalJSX {
|
|
|
3170
3477
|
"bodyImgAlt"?: string;
|
|
3171
3478
|
/**
|
|
3172
3479
|
* ID for the Card, must be unique. **NOTE**: If you're listening for Card events, you need to set this ID yourself to identify the Card, as the default ID is random and will be different every time.
|
|
3480
|
+
* @default generateUniqueId()
|
|
3173
3481
|
*/
|
|
3174
3482
|
"cardId"?: string;
|
|
3175
3483
|
/**
|
|
3176
3484
|
* Makes the Card clickable.
|
|
3485
|
+
* @default false
|
|
3177
3486
|
*/
|
|
3178
3487
|
"clickable"?: boolean;
|
|
3179
3488
|
/**
|
|
3180
3489
|
* Enables expandable behaviour. When true, clicking the header toggles content visibility.
|
|
3490
|
+
* @default false
|
|
3181
3491
|
*/
|
|
3182
3492
|
"expandable"?: boolean;
|
|
3183
3493
|
/**
|
|
3184
3494
|
* Tracks the current expanded state when expandable is enabled.
|
|
3495
|
+
* @default false
|
|
3185
3496
|
*/
|
|
3186
3497
|
"expanded"?: boolean;
|
|
3187
3498
|
/**
|
|
@@ -3190,10 +3501,12 @@ declare namespace LocalJSX {
|
|
|
3190
3501
|
"header"?: string;
|
|
3191
3502
|
/**
|
|
3192
3503
|
* Placement of the header
|
|
3504
|
+
* @default 'below-header'
|
|
3193
3505
|
*/
|
|
3194
3506
|
"imagePlacement"?: 'above-header' | 'below-header';
|
|
3195
3507
|
/**
|
|
3196
3508
|
* Variant of the Card based on the theme used.
|
|
3509
|
+
* @default null
|
|
3197
3510
|
*/
|
|
3198
3511
|
"modeVariant"?: 'primary' | 'secondary';
|
|
3199
3512
|
/**
|
|
@@ -3202,6 +3515,9 @@ declare namespace LocalJSX {
|
|
|
3202
3515
|
"onTdsClick"?: (event: TdsCardCustomEvent<{
|
|
3203
3516
|
cardId: string;
|
|
3204
3517
|
}>) => void;
|
|
3518
|
+
/**
|
|
3519
|
+
* @default false
|
|
3520
|
+
*/
|
|
3205
3521
|
"stretch"?: boolean;
|
|
3206
3522
|
/**
|
|
3207
3523
|
* Subheader text in the header
|
|
@@ -3211,18 +3527,22 @@ declare namespace LocalJSX {
|
|
|
3211
3527
|
interface TdsCheckbox {
|
|
3212
3528
|
/**
|
|
3213
3529
|
* ID for the Checkbox's input element. Randomly generated if not specified.
|
|
3530
|
+
* @default generateUniqueId()
|
|
3214
3531
|
*/
|
|
3215
3532
|
"checkboxId"?: string;
|
|
3216
3533
|
/**
|
|
3217
3534
|
* Sets the Checkbox as checked
|
|
3535
|
+
* @default false
|
|
3218
3536
|
*/
|
|
3219
3537
|
"checked"?: boolean;
|
|
3220
3538
|
/**
|
|
3221
3539
|
* Sets the Checkbox in a disabled state
|
|
3540
|
+
* @default false
|
|
3222
3541
|
*/
|
|
3223
3542
|
"disabled"?: boolean;
|
|
3224
3543
|
/**
|
|
3225
3544
|
* Sets the Checkbox as indeterminate
|
|
3545
|
+
* @default false
|
|
3226
3546
|
*/
|
|
3227
3547
|
"indeterminate"?: boolean;
|
|
3228
3548
|
/**
|
|
@@ -3248,6 +3568,7 @@ declare namespace LocalJSX {
|
|
|
3248
3568
|
"onTdsFocus"?: (event: TdsCheckboxCustomEvent<FocusEvent>) => void;
|
|
3249
3569
|
/**
|
|
3250
3570
|
* Make the Checkbox required
|
|
3571
|
+
* @default false
|
|
3251
3572
|
*/
|
|
3252
3573
|
"required"?: boolean;
|
|
3253
3574
|
/**
|
|
@@ -3266,14 +3587,17 @@ declare namespace LocalJSX {
|
|
|
3266
3587
|
interface TdsChip {
|
|
3267
3588
|
/**
|
|
3268
3589
|
* Controls component's checked attribute. Valid only for type checkbox and radio.
|
|
3590
|
+
* @default false
|
|
3269
3591
|
*/
|
|
3270
3592
|
"checked"?: boolean;
|
|
3271
3593
|
/**
|
|
3272
3594
|
* ID used for internal Chip functionality and events, must be unique. **NOTE**: If you're listening for input events, you need to set this ID yourself to identify the input, as the default ID is random and will be different every time.
|
|
3595
|
+
* @default generateUniqueId()
|
|
3273
3596
|
*/
|
|
3274
3597
|
"chipId"?: string;
|
|
3275
3598
|
/**
|
|
3276
3599
|
* Sets the Chip in a disabled state
|
|
3600
|
+
* @default false
|
|
3277
3601
|
*/
|
|
3278
3602
|
"disabled"?: boolean;
|
|
3279
3603
|
/**
|
|
@@ -3296,6 +3620,7 @@ declare namespace LocalJSX {
|
|
|
3296
3620
|
}>) => void;
|
|
3297
3621
|
/**
|
|
3298
3622
|
* Size of the Chip component
|
|
3623
|
+
* @default 'lg'
|
|
3299
3624
|
*/
|
|
3300
3625
|
"size"?: 'sm' | 'lg';
|
|
3301
3626
|
/**
|
|
@@ -3304,6 +3629,7 @@ declare namespace LocalJSX {
|
|
|
3304
3629
|
"tdsAriaLabel"?: string;
|
|
3305
3630
|
/**
|
|
3306
3631
|
* Type of Chip, depends on usage
|
|
3632
|
+
* @default 'button'
|
|
3307
3633
|
*/
|
|
3308
3634
|
"type"?: 'button' | 'radio' | 'checkbox';
|
|
3309
3635
|
/**
|
|
@@ -3316,26 +3642,32 @@ declare namespace LocalJSX {
|
|
|
3316
3642
|
interface TdsDatetime {
|
|
3317
3643
|
/**
|
|
3318
3644
|
* Autofocus for input
|
|
3645
|
+
* @default false
|
|
3319
3646
|
*/
|
|
3320
3647
|
"autofocus"?: boolean;
|
|
3321
3648
|
/**
|
|
3322
3649
|
* Default value of the component. Format for time: HH-MM. Format for date: YY-MM-DD. Format for month: YY-MM. Format for week: YY-Www Format for date-time: YY-MM-DDTHH-MM
|
|
3650
|
+
* @default 'none'
|
|
3323
3651
|
*/
|
|
3324
3652
|
"defaultValue"?: string | 'none';
|
|
3325
3653
|
/**
|
|
3326
3654
|
* Set input in disabled state
|
|
3655
|
+
* @default false
|
|
3327
3656
|
*/
|
|
3328
3657
|
"disabled"?: boolean;
|
|
3329
3658
|
/**
|
|
3330
3659
|
* Helper text for the component
|
|
3660
|
+
* @default ''
|
|
3331
3661
|
*/
|
|
3332
3662
|
"helper"?: string;
|
|
3333
3663
|
/**
|
|
3334
3664
|
* Label text for the component
|
|
3665
|
+
* @default ''
|
|
3335
3666
|
*/
|
|
3336
3667
|
"label"?: string;
|
|
3337
3668
|
/**
|
|
3338
3669
|
* Position of the label
|
|
3670
|
+
* @default 'no-label'
|
|
3339
3671
|
*/
|
|
3340
3672
|
"labelPosition"?: 'inside' | 'outside' | 'no-label';
|
|
3341
3673
|
/**
|
|
@@ -3348,14 +3680,17 @@ declare namespace LocalJSX {
|
|
|
3348
3680
|
"min"?: string;
|
|
3349
3681
|
/**
|
|
3350
3682
|
* Set the variant of the Datetime component.
|
|
3683
|
+
* @default null
|
|
3351
3684
|
*/
|
|
3352
3685
|
"modeVariant"?: 'primary' | 'secondary';
|
|
3353
3686
|
/**
|
|
3354
3687
|
* Name property. Uses a unique ID as fallback if not specified.
|
|
3688
|
+
* @default `datetime-${generateUniqueId()}`
|
|
3355
3689
|
*/
|
|
3356
3690
|
"name"?: string;
|
|
3357
3691
|
/**
|
|
3358
3692
|
* Resets min width rule
|
|
3693
|
+
* @default false
|
|
3359
3694
|
*/
|
|
3360
3695
|
"noMinWidth"?: boolean;
|
|
3361
3696
|
/**
|
|
@@ -3376,6 +3711,7 @@ declare namespace LocalJSX {
|
|
|
3376
3711
|
"onTdsInput"?: (event: TdsDatetimeCustomEvent<InputEvent>) => void;
|
|
3377
3712
|
/**
|
|
3378
3713
|
* Size of the input
|
|
3714
|
+
* @default 'lg'
|
|
3379
3715
|
*/
|
|
3380
3716
|
"size"?: 'sm' | 'md' | 'lg';
|
|
3381
3717
|
/**
|
|
@@ -3388,24 +3724,31 @@ declare namespace LocalJSX {
|
|
|
3388
3724
|
"tdsAriaLabel"?: string;
|
|
3389
3725
|
/**
|
|
3390
3726
|
* Sets an input type
|
|
3727
|
+
* @default 'datetime-local'
|
|
3391
3728
|
*/
|
|
3392
3729
|
"type"?: 'datetime-local' | 'date' | 'month' | 'week' | 'time';
|
|
3393
3730
|
/**
|
|
3394
3731
|
* Value of the input text
|
|
3732
|
+
* @default ''
|
|
3395
3733
|
*/
|
|
3396
3734
|
"value"?: string;
|
|
3397
3735
|
}
|
|
3398
3736
|
interface TdsDivider {
|
|
3399
3737
|
/**
|
|
3400
3738
|
* Orientation of the Divider, horizontal if not specified.
|
|
3739
|
+
* @default 'horizontal'
|
|
3401
3740
|
*/
|
|
3402
3741
|
"orientation"?: 'horizontal' | 'vertical';
|
|
3403
3742
|
/**
|
|
3404
3743
|
* Variant of the Divider, subtle if not specified.
|
|
3744
|
+
* @default 'subtle'
|
|
3405
3745
|
*/
|
|
3406
3746
|
"variant"?: 'discrete' | 'subtle' | 'soft' | 'defined' | 'dark-blue';
|
|
3407
3747
|
}
|
|
3408
3748
|
interface TdsDropdown {
|
|
3749
|
+
/**
|
|
3750
|
+
* @default 'slide'
|
|
3751
|
+
*/
|
|
3409
3752
|
"animation"?: 'none' | 'slide';
|
|
3410
3753
|
/**
|
|
3411
3754
|
* Default value selected in the Dropdown.
|
|
@@ -3413,14 +3756,17 @@ declare namespace LocalJSX {
|
|
|
3413
3756
|
"defaultValue"?: string | number;
|
|
3414
3757
|
/**
|
|
3415
3758
|
* Sets the Dropdown in a disabled state
|
|
3759
|
+
* @default false
|
|
3416
3760
|
*/
|
|
3417
3761
|
"disabled"?: boolean;
|
|
3418
3762
|
/**
|
|
3419
3763
|
* Sets the Dropdown in an error state
|
|
3764
|
+
* @default false
|
|
3420
3765
|
*/
|
|
3421
3766
|
"error"?: boolean;
|
|
3422
3767
|
/**
|
|
3423
3768
|
* Enables filtration in the Dropdown.
|
|
3769
|
+
* @default false
|
|
3424
3770
|
*/
|
|
3425
3771
|
"filter"?: boolean;
|
|
3426
3772
|
/**
|
|
@@ -3437,10 +3783,12 @@ declare namespace LocalJSX {
|
|
|
3437
3783
|
"labelPosition"?: 'inside' | 'outside';
|
|
3438
3784
|
/**
|
|
3439
3785
|
* Mode variant of the component, based on current mode.
|
|
3786
|
+
* @default null
|
|
3440
3787
|
*/
|
|
3441
3788
|
"modeVariant"?: 'primary' | 'secondary';
|
|
3442
3789
|
/**
|
|
3443
3790
|
* Enables multiselect in the Dropdown.
|
|
3791
|
+
* @default false
|
|
3444
3792
|
*/
|
|
3445
3793
|
"multiselect"?: boolean;
|
|
3446
3794
|
/**
|
|
@@ -3449,10 +3797,12 @@ declare namespace LocalJSX {
|
|
|
3449
3797
|
"name"?: string;
|
|
3450
3798
|
/**
|
|
3451
3799
|
* Text that is displayed if filter is used and there are no options that matches the search. Setting it to an empty string disables message from showing up.
|
|
3800
|
+
* @default 'No result'
|
|
3452
3801
|
*/
|
|
3453
3802
|
"noResultText"?: string;
|
|
3454
3803
|
/**
|
|
3455
3804
|
* Normalizes input text for fuzzier search
|
|
3805
|
+
* @default true
|
|
3456
3806
|
*/
|
|
3457
3807
|
"normalizeText"?: boolean;
|
|
3458
3808
|
/**
|
|
@@ -3476,6 +3826,7 @@ declare namespace LocalJSX {
|
|
|
3476
3826
|
"onTdsInput"?: (event: TdsDropdownCustomEvent<InputEvent>) => void;
|
|
3477
3827
|
/**
|
|
3478
3828
|
* The direction the Dropdown should open, auto if not specified.
|
|
3829
|
+
* @default 'auto'
|
|
3479
3830
|
*/
|
|
3480
3831
|
"openDirection"?: 'up' | 'down' | 'auto';
|
|
3481
3832
|
/**
|
|
@@ -3484,6 +3835,7 @@ declare namespace LocalJSX {
|
|
|
3484
3835
|
"placeholder"?: string;
|
|
3485
3836
|
/**
|
|
3486
3837
|
* The size of the Dropdown.
|
|
3838
|
+
* @default 'lg'
|
|
3487
3839
|
*/
|
|
3488
3840
|
"size"?: 'xs' | 'sm' | 'md' | 'lg';
|
|
3489
3841
|
/**
|
|
@@ -3492,12 +3844,14 @@ declare namespace LocalJSX {
|
|
|
3492
3844
|
"tdsAriaLabel"?: string;
|
|
3493
3845
|
/**
|
|
3494
3846
|
* Value of the dropdown. For multiselect, provide array of strings/numbers. For single select, provide a string/number.
|
|
3847
|
+
* @default null
|
|
3495
3848
|
*/
|
|
3496
3849
|
"value"?: string | number | (string | number)[];
|
|
3497
3850
|
}
|
|
3498
3851
|
interface TdsDropdownOption {
|
|
3499
3852
|
/**
|
|
3500
3853
|
* Sets the option as disabled.
|
|
3854
|
+
* @default false
|
|
3501
3855
|
*/
|
|
3502
3856
|
"disabled"?: boolean;
|
|
3503
3857
|
/**
|
|
@@ -3527,16 +3881,19 @@ declare namespace LocalJSX {
|
|
|
3527
3881
|
interface TdsFolderTab {
|
|
3528
3882
|
/**
|
|
3529
3883
|
* Disables the Tab.
|
|
3884
|
+
* @default false
|
|
3530
3885
|
*/
|
|
3531
3886
|
"disabled"?: boolean;
|
|
3532
3887
|
}
|
|
3533
3888
|
interface TdsFolderTabs {
|
|
3534
3889
|
/**
|
|
3535
3890
|
* Sets the default selected Tab.
|
|
3891
|
+
* @default 0
|
|
3536
3892
|
*/
|
|
3537
3893
|
"defaultSelectedIndex"?: number;
|
|
3538
3894
|
/**
|
|
3539
3895
|
* Variant of the Tabs, primary= on white, secondary= on grey50
|
|
3896
|
+
* @default null
|
|
3540
3897
|
*/
|
|
3541
3898
|
"modeVariant"?: 'primary' | 'secondary';
|
|
3542
3899
|
/**
|
|
@@ -3551,16 +3908,19 @@ declare namespace LocalJSX {
|
|
|
3551
3908
|
"selectedIndex"?: number;
|
|
3552
3909
|
/**
|
|
3553
3910
|
* Defines aria-label on left scroll button
|
|
3911
|
+
* @default 'Scroll left'
|
|
3554
3912
|
*/
|
|
3555
3913
|
"tdsScrollLeftAriaLabel"?: string;
|
|
3556
3914
|
/**
|
|
3557
3915
|
* Defines aria-label on right scroll button
|
|
3916
|
+
* @default 'Scroll right'
|
|
3558
3917
|
*/
|
|
3559
3918
|
"tdsScrollRightAriaLabel"?: string;
|
|
3560
3919
|
}
|
|
3561
3920
|
interface TdsFooter {
|
|
3562
3921
|
/**
|
|
3563
3922
|
* Mode variant of the component, based on current mode.
|
|
3923
|
+
* @default null
|
|
3564
3924
|
*/
|
|
3565
3925
|
"modeVariant"?: 'primary' | 'secondary';
|
|
3566
3926
|
}
|
|
@@ -3595,6 +3955,7 @@ declare namespace LocalJSX {
|
|
|
3595
3955
|
"customWidth"?: string;
|
|
3596
3956
|
/**
|
|
3597
3957
|
* Disables internal padding. Useful when passing other components to cell.
|
|
3958
|
+
* @default false
|
|
3598
3959
|
*/
|
|
3599
3960
|
"disablePadding"?: boolean;
|
|
3600
3961
|
/**
|
|
@@ -3607,14 +3968,17 @@ declare namespace LocalJSX {
|
|
|
3607
3968
|
}>) => void;
|
|
3608
3969
|
/**
|
|
3609
3970
|
* Enables sorting on that column
|
|
3971
|
+
* @default false
|
|
3610
3972
|
*/
|
|
3611
3973
|
"sortable"?: boolean;
|
|
3612
3974
|
/**
|
|
3613
3975
|
* Aria label for the sort button, providing an accessible description
|
|
3976
|
+
* @default ''
|
|
3614
3977
|
*/
|
|
3615
3978
|
"tdsAriaLabelSortButton"?: string;
|
|
3616
3979
|
/**
|
|
3617
3980
|
* Setting for text align, default is "left". Other accepted values are "left", "start", "right" or "end".
|
|
3981
|
+
* @default 'left'
|
|
3618
3982
|
*/
|
|
3619
3983
|
"textAlign"?: 'left' | 'start' | 'right' | 'end' | 'center';
|
|
3620
3984
|
}
|
|
@@ -3625,10 +3989,12 @@ declare namespace LocalJSX {
|
|
|
3625
3989
|
"label"?: string;
|
|
3626
3990
|
/**
|
|
3627
3991
|
* If the dropdown icon (downwards chevron) should be hidden.
|
|
3992
|
+
* @default false
|
|
3628
3993
|
*/
|
|
3629
3994
|
"noDropdownIcon"?: boolean;
|
|
3630
3995
|
/**
|
|
3631
3996
|
* If the button that opens the dropdown should appear selected.
|
|
3997
|
+
* @default false
|
|
3632
3998
|
*/
|
|
3633
3999
|
"selected"?: boolean;
|
|
3634
4000
|
/**
|
|
@@ -3639,16 +4005,19 @@ declare namespace LocalJSX {
|
|
|
3639
4005
|
interface TdsHeaderDropdownList {
|
|
3640
4006
|
/**
|
|
3641
4007
|
* The size of the component.
|
|
4008
|
+
* @default 'md'
|
|
3642
4009
|
*/
|
|
3643
4010
|
"size"?: 'lg' | 'md';
|
|
3644
4011
|
}
|
|
3645
4012
|
interface TdsHeaderDropdownListItem {
|
|
3646
4013
|
/**
|
|
3647
4014
|
* If the link should appear selected.
|
|
4015
|
+
* @default false
|
|
3648
4016
|
*/
|
|
3649
4017
|
"selected"?: boolean;
|
|
3650
4018
|
/**
|
|
3651
4019
|
* The size of the component.
|
|
4020
|
+
* @default 'md'
|
|
3652
4021
|
*/
|
|
3653
4022
|
"size"?: 'md' | 'lg';
|
|
3654
4023
|
}
|
|
@@ -3679,10 +4048,12 @@ declare namespace LocalJSX {
|
|
|
3679
4048
|
interface TdsHeaderItem {
|
|
3680
4049
|
/**
|
|
3681
4050
|
* If the button should appear active. Can be used when the button is triggering a dropdown, and the dropdown is open, for example.
|
|
4051
|
+
* @default false
|
|
3682
4052
|
*/
|
|
3683
4053
|
"active"?: boolean;
|
|
3684
4054
|
/**
|
|
3685
4055
|
* If the button should appear selected.
|
|
4056
|
+
* @default false
|
|
3686
4057
|
*/
|
|
3687
4058
|
"selected"?: boolean;
|
|
3688
4059
|
}
|
|
@@ -3695,6 +4066,7 @@ declare namespace LocalJSX {
|
|
|
3695
4066
|
interface TdsHeaderLauncherButton {
|
|
3696
4067
|
/**
|
|
3697
4068
|
* If the button should appear active. Can be used when the button is triggering a dropdown, and the dropdown is open, for example.
|
|
4069
|
+
* @default false
|
|
3698
4070
|
*/
|
|
3699
4071
|
"active"?: boolean;
|
|
3700
4072
|
/**
|
|
@@ -3719,10 +4091,12 @@ declare namespace LocalJSX {
|
|
|
3719
4091
|
interface TdsIcon {
|
|
3720
4092
|
/**
|
|
3721
4093
|
* Pass the name of the icon. For icon names, refer to Storybook Icon controls dropdown or https://tegel.scania.com/foundations/icons/icon-library
|
|
4094
|
+
* @default 'truck'
|
|
3722
4095
|
*/
|
|
3723
4096
|
"name"?: IconNames;
|
|
3724
4097
|
/**
|
|
3725
4098
|
* Pass a size of icon as a string, for example, 32px, 1rem, 4em...
|
|
4099
|
+
* @default '16px'
|
|
3726
4100
|
*/
|
|
3727
4101
|
"size"?: string;
|
|
3728
4102
|
/**
|
|
@@ -3735,26 +4109,31 @@ declare namespace LocalJSX {
|
|
|
3735
4109
|
"svgTitle"?: string;
|
|
3736
4110
|
/**
|
|
3737
4111
|
* Set aria-hidden attribute on svg
|
|
4112
|
+
* @default false
|
|
3738
4113
|
*/
|
|
3739
4114
|
"tdsAriaHidden"?: boolean;
|
|
3740
4115
|
}
|
|
3741
4116
|
interface TdsInlineTab {
|
|
3742
4117
|
/**
|
|
3743
4118
|
* Disables the Tab.
|
|
4119
|
+
* @default false
|
|
3744
4120
|
*/
|
|
3745
4121
|
"disabled"?: boolean;
|
|
3746
4122
|
}
|
|
3747
4123
|
interface TdsInlineTabs {
|
|
3748
4124
|
/**
|
|
3749
4125
|
* Sets the default selected Tab.
|
|
4126
|
+
* @default 0
|
|
3750
4127
|
*/
|
|
3751
4128
|
"defaultSelectedIndex"?: number;
|
|
3752
4129
|
/**
|
|
3753
4130
|
* Custom left padding value for the wrapper element.
|
|
4131
|
+
* @default 32
|
|
3754
4132
|
*/
|
|
3755
4133
|
"leftPadding"?: number;
|
|
3756
4134
|
/**
|
|
3757
4135
|
* Variant of the Tabs, primary= on white, secondary= on grey50
|
|
4136
|
+
* @default 'primary'
|
|
3758
4137
|
*/
|
|
3759
4138
|
"modeVariant"?: 'primary' | 'secondary';
|
|
3760
4139
|
/**
|
|
@@ -3769,24 +4148,29 @@ declare namespace LocalJSX {
|
|
|
3769
4148
|
"selectedIndex"?: number;
|
|
3770
4149
|
/**
|
|
3771
4150
|
* Defines aria-label on left scroll button
|
|
4151
|
+
* @default 'Scroll left'
|
|
3772
4152
|
*/
|
|
3773
4153
|
"tdsScrollLeftAriaLabel"?: string;
|
|
3774
4154
|
/**
|
|
3775
4155
|
* Defines aria-label on right scroll button
|
|
4156
|
+
* @default 'Scroll right'
|
|
3776
4157
|
*/
|
|
3777
4158
|
"tdsScrollRightAriaLabel"?: string;
|
|
3778
4159
|
}
|
|
3779
4160
|
interface TdsLink {
|
|
3780
4161
|
/**
|
|
3781
4162
|
* Disables the Link
|
|
4163
|
+
* @default false
|
|
3782
4164
|
*/
|
|
3783
4165
|
"disabled"?: boolean;
|
|
3784
4166
|
/**
|
|
3785
4167
|
* Displays the Link as a standalone component. Not part of a paragraph.
|
|
4168
|
+
* @default false
|
|
3786
4169
|
*/
|
|
3787
4170
|
"standalone"?: boolean;
|
|
3788
4171
|
/**
|
|
3789
4172
|
* Displays the Link with an underline.
|
|
4173
|
+
* @default true
|
|
3790
4174
|
*/
|
|
3791
4175
|
"underline"?: boolean;
|
|
3792
4176
|
}
|
|
@@ -3797,18 +4181,22 @@ declare namespace LocalJSX {
|
|
|
3797
4181
|
"header"?: string;
|
|
3798
4182
|
/**
|
|
3799
4183
|
* Minimal Message styling.
|
|
4184
|
+
* @default false
|
|
3800
4185
|
*/
|
|
3801
4186
|
"minimal"?: boolean;
|
|
3802
4187
|
/**
|
|
3803
4188
|
* Variant of the component, based on current mode.
|
|
4189
|
+
* @default null
|
|
3804
4190
|
*/
|
|
3805
4191
|
"modeVariant"?: 'primary' | 'secondary';
|
|
3806
4192
|
/**
|
|
3807
4193
|
* Removes the icon in the Message.
|
|
4194
|
+
* @default false
|
|
3808
4195
|
*/
|
|
3809
4196
|
"noIcon"?: boolean;
|
|
3810
4197
|
/**
|
|
3811
4198
|
* Role of the message component. Can be either 'alertdialog' for important messages that require immediate attention, or 'dialog' for regular messages.
|
|
4199
|
+
* @default 'dialog'
|
|
3812
4200
|
*/
|
|
3813
4201
|
"tdsAlertDialog"?: 'alertdialog' | 'dialog';
|
|
3814
4202
|
/**
|
|
@@ -3817,16 +4205,19 @@ declare namespace LocalJSX {
|
|
|
3817
4205
|
"tdsAriaLabel"?: string;
|
|
3818
4206
|
/**
|
|
3819
4207
|
* Variant of Message.
|
|
4208
|
+
* @default 'information'
|
|
3820
4209
|
*/
|
|
3821
4210
|
"variant"?: 'information' | 'error' | 'warning' | 'success';
|
|
3822
4211
|
}
|
|
3823
4212
|
interface TdsModal {
|
|
3824
4213
|
/**
|
|
3825
4214
|
* Changes the position behaviour of the actions slot.
|
|
4215
|
+
* @default 'static'
|
|
3826
4216
|
*/
|
|
3827
4217
|
"actionsPosition"?: 'sticky' | 'static';
|
|
3828
4218
|
/**
|
|
3829
4219
|
* Shows or hides the close [X] button.
|
|
4220
|
+
* @default true
|
|
3830
4221
|
*/
|
|
3831
4222
|
"closable"?: boolean;
|
|
3832
4223
|
/**
|
|
@@ -3843,6 +4234,7 @@ declare namespace LocalJSX {
|
|
|
3843
4234
|
"onTdsOpen"?: (event: TdsModalCustomEvent<void>) => void;
|
|
3844
4235
|
/**
|
|
3845
4236
|
* Disables closing Modal on clicking on overlay area.
|
|
4237
|
+
* @default false
|
|
3846
4238
|
*/
|
|
3847
4239
|
"prevent"?: boolean;
|
|
3848
4240
|
/**
|
|
@@ -3859,30 +4251,36 @@ declare namespace LocalJSX {
|
|
|
3859
4251
|
"show"?: boolean;
|
|
3860
4252
|
/**
|
|
3861
4253
|
* Size of Modal
|
|
4254
|
+
* @default 'md'
|
|
3862
4255
|
*/
|
|
3863
4256
|
"size"?: 'xs' | 'sm' | 'md' | 'lg';
|
|
3864
4257
|
/**
|
|
3865
4258
|
* Role of the modal component. Can be either 'alertdialog' for important messages that require immediate attention, or 'dialog' for regular messages.
|
|
4259
|
+
* @default 'dialog'
|
|
3866
4260
|
*/
|
|
3867
4261
|
"tdsAlertDialog"?: 'alertdialog' | 'dialog';
|
|
3868
4262
|
}
|
|
3869
4263
|
interface TdsNavigationTab {
|
|
3870
4264
|
/**
|
|
3871
4265
|
* Disables the Tab.
|
|
4266
|
+
* @default false
|
|
3872
4267
|
*/
|
|
3873
4268
|
"disabled"?: boolean;
|
|
3874
4269
|
}
|
|
3875
4270
|
interface TdsNavigationTabs {
|
|
3876
4271
|
/**
|
|
3877
4272
|
* Sets the default selected Tab.
|
|
4273
|
+
* @default 0
|
|
3878
4274
|
*/
|
|
3879
4275
|
"defaultSelectedIndex"?: number;
|
|
3880
4276
|
/**
|
|
3881
4277
|
* Custom left padding value for the wrapper element.
|
|
4278
|
+
* @default 32
|
|
3882
4279
|
*/
|
|
3883
4280
|
"leftPadding"?: number;
|
|
3884
4281
|
/**
|
|
3885
4282
|
* Variant of the Tabs, primary= on white, secondary= on grey50
|
|
4283
|
+
* @default 'primary'
|
|
3886
4284
|
*/
|
|
3887
4285
|
"modeVariant"?: 'primary' | 'secondary';
|
|
3888
4286
|
/**
|
|
@@ -3897,40 +4295,49 @@ declare namespace LocalJSX {
|
|
|
3897
4295
|
"selectedIndex"?: number;
|
|
3898
4296
|
/**
|
|
3899
4297
|
* Defines aria-label on left scroll button
|
|
4298
|
+
* @default 'Scroll left'
|
|
3900
4299
|
*/
|
|
3901
4300
|
"tdsScrollLeftAriaLabel"?: string;
|
|
3902
4301
|
/**
|
|
3903
4302
|
* Defines aria-label on right scroll button
|
|
4303
|
+
* @default 'Scroll right'
|
|
3904
4304
|
*/
|
|
3905
4305
|
"tdsScrollRightAriaLabel"?: string;
|
|
3906
4306
|
}
|
|
3907
4307
|
interface TdsPopoverCanvas {
|
|
3908
4308
|
/**
|
|
3909
4309
|
* Whether the popover should animate when being opened/closed or not
|
|
4310
|
+
* @default 'none'
|
|
3910
4311
|
*/
|
|
3911
4312
|
"animation"?: 'none' | 'fade' | string;
|
|
3912
4313
|
/**
|
|
3913
4314
|
* Decides if the component should be visible from the start.
|
|
4315
|
+
* @default false
|
|
3914
4316
|
*/
|
|
3915
4317
|
"defaultShow"?: boolean;
|
|
3916
4318
|
/**
|
|
3917
4319
|
* Mode variant of the component, based on current mode.
|
|
4320
|
+
* @default null
|
|
3918
4321
|
*/
|
|
3919
4322
|
"modeVariant"?: 'primary' | 'secondary';
|
|
3920
4323
|
/**
|
|
3921
4324
|
* Array of modifier objects to pass to popper.js. See https://popper.js.org/docs/v2/modifiers/
|
|
4325
|
+
* @default []
|
|
3922
4326
|
*/
|
|
3923
4327
|
"modifiers"?: object[];
|
|
3924
4328
|
/**
|
|
3925
4329
|
* Sets the offset distance
|
|
4330
|
+
* @default 8
|
|
3926
4331
|
*/
|
|
3927
4332
|
"offsetDistance"?: number;
|
|
3928
4333
|
/**
|
|
3929
4334
|
* Sets the offset skidding
|
|
4335
|
+
* @default 0
|
|
3930
4336
|
*/
|
|
3931
4337
|
"offsetSkidding"?: number;
|
|
3932
4338
|
/**
|
|
3933
4339
|
* Decides the placement of the Popover Canvas. See https://popper.js.org/docs/v2/constructors/#placement
|
|
4340
|
+
* @default 'auto'
|
|
3934
4341
|
*/
|
|
3935
4342
|
"placement"?: Placement;
|
|
3936
4343
|
/**
|
|
@@ -3943,40 +4350,49 @@ declare namespace LocalJSX {
|
|
|
3943
4350
|
"selector"?: string;
|
|
3944
4351
|
/**
|
|
3945
4352
|
* Controls whether the Popover is shown or not. If this is set hiding and showing will be decided by this prop and will need to be controlled from the outside. This also means that clicking outside of the popover won't close it. Takes precedence over `defaultShow` prop.
|
|
4353
|
+
* @default null
|
|
3946
4354
|
*/
|
|
3947
4355
|
"show"?: boolean;
|
|
3948
4356
|
/**
|
|
3949
4357
|
* Role of the popover canvas component. Can be either 'alertdialog' for important messages that require immediate attention, or 'dialog' for regular messages.
|
|
4358
|
+
* @default 'dialog'
|
|
3950
4359
|
*/
|
|
3951
4360
|
"tdsAlertDialog"?: 'alertdialog' | 'dialog';
|
|
3952
4361
|
}
|
|
3953
4362
|
interface TdsPopoverCore {
|
|
3954
4363
|
/**
|
|
3955
4364
|
* Whether the popover should animate when being opened/closed or not
|
|
4365
|
+
* @default 'none'
|
|
3956
4366
|
*/
|
|
3957
4367
|
"animation"?: 'none' | 'fade' | string;
|
|
3958
4368
|
/**
|
|
3959
4369
|
* Decides if the popover should hide automatically. Alternatevly it can be hidden externally based on emitted events.
|
|
4370
|
+
* @default true
|
|
3960
4371
|
*/
|
|
3961
4372
|
"autoHide"?: boolean;
|
|
3962
4373
|
/**
|
|
3963
4374
|
* Decides if the component should be visible from the start.
|
|
4375
|
+
* @default false
|
|
3964
4376
|
*/
|
|
3965
4377
|
"defaultShow"?: boolean;
|
|
3966
4378
|
/**
|
|
3967
4379
|
* Array of modifier objects to pass to popper.js. See https://popper.js.org/docs/v2/modifiers/
|
|
4380
|
+
* @default []
|
|
3968
4381
|
*/
|
|
3969
4382
|
"modifiers"?: Object[];
|
|
3970
4383
|
/**
|
|
3971
4384
|
* Sets the offset distance
|
|
4385
|
+
* @default 8
|
|
3972
4386
|
*/
|
|
3973
4387
|
"offsetDistance"?: number;
|
|
3974
4388
|
/**
|
|
3975
4389
|
* Sets the offset skidding
|
|
4390
|
+
* @default 0
|
|
3976
4391
|
*/
|
|
3977
4392
|
"offsetSkidding"?: number;
|
|
3978
4393
|
/**
|
|
3979
4394
|
* Decides the placement of the Popover Menu
|
|
4395
|
+
* @default 'auto'
|
|
3980
4396
|
*/
|
|
3981
4397
|
"placement"?: Placement;
|
|
3982
4398
|
/**
|
|
@@ -3989,40 +4405,49 @@ declare namespace LocalJSX {
|
|
|
3989
4405
|
"selector"?: string;
|
|
3990
4406
|
/**
|
|
3991
4407
|
* Controls whether the Popover is shown or not. If this is set hiding and showing will be decided by this prop and will need to be controlled from the outside. This also means that clicking outside of the popover won't close it. Takes precedence over `defaultShow` prop.
|
|
4408
|
+
* @default null
|
|
3992
4409
|
*/
|
|
3993
4410
|
"show"?: boolean;
|
|
3994
4411
|
/**
|
|
3995
4412
|
* What triggers the popover to show
|
|
4413
|
+
* @default 'click'
|
|
3996
4414
|
*/
|
|
3997
4415
|
"trigger"?: 'click' | 'hover' | 'hover-popover';
|
|
3998
4416
|
}
|
|
3999
4417
|
interface TdsPopoverMenu {
|
|
4000
4418
|
/**
|
|
4001
4419
|
* Whether the popover should animate when being opened/closed or not
|
|
4420
|
+
* @default 'none'
|
|
4002
4421
|
*/
|
|
4003
4422
|
"animation"?: 'none' | 'fade' | string;
|
|
4004
4423
|
/**
|
|
4005
4424
|
* Decides if the component should be visible from the start.
|
|
4425
|
+
* @default false
|
|
4006
4426
|
*/
|
|
4007
4427
|
"defaultShow"?: boolean;
|
|
4008
4428
|
/**
|
|
4009
4429
|
* If true this unsets the width (160px) of the Popover Menu
|
|
4430
|
+
* @default false
|
|
4010
4431
|
*/
|
|
4011
4432
|
"fluidWidth"?: boolean;
|
|
4012
4433
|
/**
|
|
4013
4434
|
* Mode variant of the component, based on current mode.
|
|
4435
|
+
* @default null
|
|
4014
4436
|
*/
|
|
4015
4437
|
"modeVariant"?: 'primary' | 'secondary';
|
|
4016
4438
|
/**
|
|
4017
4439
|
* Sets the offset distance
|
|
4440
|
+
* @default 8
|
|
4018
4441
|
*/
|
|
4019
4442
|
"offsetDistance"?: number;
|
|
4020
4443
|
/**
|
|
4021
4444
|
* Sets the offset skidding
|
|
4445
|
+
* @default 0
|
|
4022
4446
|
*/
|
|
4023
4447
|
"offsetSkidding"?: number;
|
|
4024
4448
|
/**
|
|
4025
4449
|
* Decides the placement of the Popover Menu
|
|
4450
|
+
* @default 'auto'
|
|
4026
4451
|
*/
|
|
4027
4452
|
"placement"?: Placement;
|
|
4028
4453
|
/**
|
|
@@ -4035,22 +4460,26 @@ declare namespace LocalJSX {
|
|
|
4035
4460
|
"selector"?: string;
|
|
4036
4461
|
/**
|
|
4037
4462
|
* Controls whether the Popover is shown or not. If this is set hiding and showing will be decided by this prop and will need to be controlled from the outside. This also means that clicking outside of the popover won't close it. Takes precedence over `defaultShow` prop.
|
|
4463
|
+
* @default null
|
|
4038
4464
|
*/
|
|
4039
4465
|
"show"?: boolean;
|
|
4040
4466
|
}
|
|
4041
4467
|
interface TdsPopoverMenuItem {
|
|
4042
4468
|
/**
|
|
4043
4469
|
* Disables the Popover Menu Item
|
|
4470
|
+
* @default false
|
|
4044
4471
|
*/
|
|
4045
4472
|
"disabled"?: boolean;
|
|
4046
4473
|
}
|
|
4047
4474
|
interface TdsRadioButton {
|
|
4048
4475
|
/**
|
|
4049
4476
|
* Decides if the Radio Button is checked or not.
|
|
4477
|
+
* @default false
|
|
4050
4478
|
*/
|
|
4051
4479
|
"checked"?: boolean;
|
|
4052
4480
|
/**
|
|
4053
4481
|
* Decides if the Radio Button is disabled or not.
|
|
4482
|
+
* @default false
|
|
4054
4483
|
*/
|
|
4055
4484
|
"disabled"?: boolean;
|
|
4056
4485
|
/**
|
|
@@ -4066,10 +4495,12 @@ declare namespace LocalJSX {
|
|
|
4066
4495
|
}>) => void;
|
|
4067
4496
|
/**
|
|
4068
4497
|
* Unique Radio Button identifier.
|
|
4498
|
+
* @default generateUniqueId()
|
|
4069
4499
|
*/
|
|
4070
4500
|
"radioId"?: string;
|
|
4071
4501
|
/**
|
|
4072
4502
|
* Decides if the Radio Button is required or not.
|
|
4503
|
+
* @default false
|
|
4073
4504
|
*/
|
|
4074
4505
|
"required"?: boolean;
|
|
4075
4506
|
/**
|
|
@@ -4088,6 +4519,7 @@ declare namespace LocalJSX {
|
|
|
4088
4519
|
interface TdsSideMenu {
|
|
4089
4520
|
/**
|
|
4090
4521
|
* If the Side Menu is collapsed. Only a persistent desktop menu can be collapsed. NOTE: Only use this if you have prevented the automatic collapsing with preventDefault on the tdsCollapse event.
|
|
4522
|
+
* @default false
|
|
4091
4523
|
*/
|
|
4092
4524
|
"collapsed"?: boolean;
|
|
4093
4525
|
/**
|
|
@@ -4096,10 +4528,12 @@ declare namespace LocalJSX {
|
|
|
4096
4528
|
"onTdsCollapse"?: (event: TdsSideMenuCustomEvent<CollapseEvent>) => void;
|
|
4097
4529
|
/**
|
|
4098
4530
|
* Applicable only for mobile. If the Side Menu is open or not.
|
|
4531
|
+
* @default false
|
|
4099
4532
|
*/
|
|
4100
4533
|
"open"?: boolean;
|
|
4101
4534
|
/**
|
|
4102
4535
|
* Applicable only for desktop. If the Side Menu should always be shown.
|
|
4536
|
+
* @default false
|
|
4103
4537
|
*/
|
|
4104
4538
|
"persistent"?: boolean;
|
|
4105
4539
|
}
|
|
@@ -4118,14 +4552,17 @@ declare namespace LocalJSX {
|
|
|
4118
4552
|
"buttonLabel"?: string;
|
|
4119
4553
|
/**
|
|
4120
4554
|
* If the dropdown should be open from the start.
|
|
4555
|
+
* @default false
|
|
4121
4556
|
*/
|
|
4122
4557
|
"defaultOpen"?: boolean;
|
|
4123
4558
|
/**
|
|
4124
4559
|
* Toggle open state programmatically
|
|
4560
|
+
* @default false
|
|
4125
4561
|
*/
|
|
4126
4562
|
"open"?: boolean;
|
|
4127
4563
|
/**
|
|
4128
4564
|
* If the button that opens the dropdown should appear selected.
|
|
4565
|
+
* @default false
|
|
4129
4566
|
*/
|
|
4130
4567
|
"selected"?: boolean;
|
|
4131
4568
|
}
|
|
@@ -4134,16 +4571,19 @@ declare namespace LocalJSX {
|
|
|
4134
4571
|
interface TdsSideMenuDropdownListItem {
|
|
4135
4572
|
/**
|
|
4136
4573
|
* If the item should appear selected.
|
|
4574
|
+
* @default false
|
|
4137
4575
|
*/
|
|
4138
4576
|
"selected"?: boolean;
|
|
4139
4577
|
}
|
|
4140
4578
|
interface TdsSideMenuItem {
|
|
4141
4579
|
/**
|
|
4142
4580
|
* If the item should appear active. Can be used when the item is triggering a dropdown, and the dropdown is open, for example.
|
|
4581
|
+
* @default false
|
|
4143
4582
|
*/
|
|
4144
4583
|
"active"?: boolean;
|
|
4145
4584
|
/**
|
|
4146
4585
|
* If the item should appear selected.
|
|
4586
|
+
* @default false
|
|
4147
4587
|
*/
|
|
4148
4588
|
"selected"?: boolean;
|
|
4149
4589
|
}
|
|
@@ -4190,30 +4630,37 @@ declare namespace LocalJSX {
|
|
|
4190
4630
|
interface TdsSlider {
|
|
4191
4631
|
/**
|
|
4192
4632
|
* Decide to show the controls or not
|
|
4633
|
+
* @default false
|
|
4193
4634
|
*/
|
|
4194
4635
|
"controls"?: boolean;
|
|
4195
4636
|
/**
|
|
4196
4637
|
* Sets the disabled state for the whole component
|
|
4638
|
+
* @default false
|
|
4197
4639
|
*/
|
|
4198
4640
|
"disabled"?: boolean;
|
|
4199
4641
|
/**
|
|
4200
4642
|
* Decide to show the input field or not
|
|
4643
|
+
* @default false
|
|
4201
4644
|
*/
|
|
4202
4645
|
"input"?: boolean;
|
|
4203
4646
|
/**
|
|
4204
4647
|
* Text for label
|
|
4648
|
+
* @default ''
|
|
4205
4649
|
*/
|
|
4206
4650
|
"label"?: string;
|
|
4207
4651
|
/**
|
|
4208
4652
|
* Maximum value
|
|
4653
|
+
* @default '100'
|
|
4209
4654
|
*/
|
|
4210
4655
|
"max"?: string;
|
|
4211
4656
|
/**
|
|
4212
4657
|
* Minimum value
|
|
4658
|
+
* @default '0'
|
|
4213
4659
|
*/
|
|
4214
4660
|
"min"?: string;
|
|
4215
4661
|
/**
|
|
4216
4662
|
* Name property (will be inherited by the native slider component)
|
|
4663
|
+
* @default ''
|
|
4217
4664
|
*/
|
|
4218
4665
|
"name"?: string;
|
|
4219
4666
|
/**
|
|
@@ -4230,56 +4677,69 @@ declare namespace LocalJSX {
|
|
|
4230
4677
|
}>) => void;
|
|
4231
4678
|
/**
|
|
4232
4679
|
* Sets the read only state for the whole component
|
|
4680
|
+
* @default false
|
|
4233
4681
|
*/
|
|
4234
4682
|
"readOnly"?: boolean;
|
|
4235
4683
|
/**
|
|
4236
4684
|
* Decide to show numbers above the tick markers or not
|
|
4685
|
+
* @default false
|
|
4237
4686
|
*/
|
|
4238
4687
|
"showTickNumbers"?: boolean;
|
|
4239
4688
|
/**
|
|
4240
4689
|
* ID for the Slider's input element, randomly generated if not specified.
|
|
4690
|
+
* @default generateUniqueId()
|
|
4241
4691
|
*/
|
|
4242
4692
|
"sliderId"?: string;
|
|
4243
4693
|
/**
|
|
4244
4694
|
* Snap to the tick's grid
|
|
4695
|
+
* @default false
|
|
4245
4696
|
*/
|
|
4246
4697
|
"snap"?: boolean;
|
|
4247
4698
|
/**
|
|
4248
4699
|
* Defines how much to increment/decrement the value when using controls
|
|
4700
|
+
* @default '1'
|
|
4249
4701
|
*/
|
|
4250
4702
|
"step"?: string;
|
|
4251
4703
|
/**
|
|
4252
4704
|
* Sets the aria-label for the slider control.
|
|
4705
|
+
* @default ''
|
|
4253
4706
|
*/
|
|
4254
4707
|
"tdsAriaLabel"?: string;
|
|
4255
4708
|
/**
|
|
4256
4709
|
* Sets the read only aria label for the input field
|
|
4710
|
+
* @default ''
|
|
4257
4711
|
*/
|
|
4258
4712
|
"tdsReadOnlyAriaLabel"?: string;
|
|
4259
4713
|
/**
|
|
4260
4714
|
* Sets the size of the thumb
|
|
4715
|
+
* @default 'lg'
|
|
4261
4716
|
*/
|
|
4262
4717
|
"thumbSize"?: 'sm' | 'lg';
|
|
4263
4718
|
/**
|
|
4264
4719
|
* Number of tick markers (tick for min- and max-value will be added automatically)
|
|
4720
|
+
* @default '0'
|
|
4265
4721
|
*/
|
|
4266
4722
|
"ticks"?: string;
|
|
4267
4723
|
/**
|
|
4268
4724
|
* Decide to show the tooltip or not
|
|
4725
|
+
* @default false
|
|
4269
4726
|
*/
|
|
4270
4727
|
"tooltip"?: boolean;
|
|
4271
4728
|
/**
|
|
4272
4729
|
* Initial value
|
|
4730
|
+
* @default '0'
|
|
4273
4731
|
*/
|
|
4274
4732
|
"value"?: string;
|
|
4275
4733
|
}
|
|
4276
4734
|
interface TdsSpinner {
|
|
4277
4735
|
/**
|
|
4278
4736
|
* Size of the Spinner
|
|
4737
|
+
* @default 'lg'
|
|
4279
4738
|
*/
|
|
4280
4739
|
"size"?: 'xs' | 'sm' | 'md' | 'lg';
|
|
4281
4740
|
/**
|
|
4282
4741
|
* Variant of the Spinner
|
|
4742
|
+
* @default 'standard'
|
|
4283
4743
|
*/
|
|
4284
4744
|
"variant"?: 'standard' | 'inverted';
|
|
4285
4745
|
}
|
|
@@ -4290,6 +4750,7 @@ declare namespace LocalJSX {
|
|
|
4290
4750
|
"index"?: string;
|
|
4291
4751
|
/**
|
|
4292
4752
|
* State of the Step
|
|
4753
|
+
* @default 'upcoming'
|
|
4293
4754
|
*/
|
|
4294
4755
|
"state"?: 'current' | 'error' | 'success' | 'upcoming';
|
|
4295
4756
|
"tdsAriaCurrent"?: string;
|
|
@@ -4297,48 +4758,59 @@ declare namespace LocalJSX {
|
|
|
4297
4758
|
interface TdsStepper {
|
|
4298
4759
|
/**
|
|
4299
4760
|
* Hides the label for the child components if true.
|
|
4761
|
+
* @default false
|
|
4300
4762
|
*/
|
|
4301
4763
|
"hideLabels"?: boolean;
|
|
4302
4764
|
/**
|
|
4303
4765
|
* Text position, only available on a direction: horizontal
|
|
4766
|
+
* @default 'below'
|
|
4304
4767
|
*/
|
|
4305
4768
|
"labelPosition"?: 'aside' | 'below';
|
|
4306
4769
|
/**
|
|
4307
4770
|
* The orientation the Steps
|
|
4771
|
+
* @default 'horizontal'
|
|
4308
4772
|
*/
|
|
4309
4773
|
"orientation"?: 'horizontal' | 'vertical';
|
|
4310
4774
|
/**
|
|
4311
4775
|
* Size of the component and it's children.
|
|
4776
|
+
* @default 'lg'
|
|
4312
4777
|
*/
|
|
4313
4778
|
"size"?: 'sm' | 'lg';
|
|
4314
4779
|
/**
|
|
4315
4780
|
* ID used for internal Stepper functionality and events, must be unique. **NOTE**: If you're listening for Stepper events, you need to set this ID yourself to identify the Stepper, as the default ID is random and will be different every time.
|
|
4781
|
+
* @default generateUniqueId()
|
|
4316
4782
|
*/
|
|
4317
4783
|
"stepperId"?: string;
|
|
4318
4784
|
/**
|
|
4319
4785
|
* Label for the stepper component, for screen reader users
|
|
4786
|
+
* @default 'Progress steps'
|
|
4320
4787
|
*/
|
|
4321
4788
|
"tdsAriaLabel"?: string;
|
|
4322
4789
|
}
|
|
4323
4790
|
interface TdsTable {
|
|
4324
4791
|
/**
|
|
4325
4792
|
* Enables style where Table toolbar, rows and footer are less high
|
|
4793
|
+
* @default false
|
|
4326
4794
|
*/
|
|
4327
4795
|
"compactDesign"?: boolean;
|
|
4328
4796
|
/**
|
|
4329
4797
|
* Enables extended row feature of Table
|
|
4798
|
+
* @default false
|
|
4330
4799
|
*/
|
|
4331
4800
|
"expandableRows"?: boolean;
|
|
4332
4801
|
/**
|
|
4333
4802
|
* Width of the table, used as the constraint for horizontal scrolling. **NOTE**: this will disable usage of the responsive flag
|
|
4803
|
+
* @default null
|
|
4334
4804
|
*/
|
|
4335
4805
|
"horizontalScrollWidth"?: string;
|
|
4336
4806
|
/**
|
|
4337
4807
|
* Variant of the component, based on current mode.
|
|
4808
|
+
* @default null
|
|
4338
4809
|
*/
|
|
4339
4810
|
"modeVariant"?: 'primary' | 'secondary';
|
|
4340
4811
|
/**
|
|
4341
4812
|
* Enables multiselect feature of Table
|
|
4813
|
+
* @default false
|
|
4342
4814
|
*/
|
|
4343
4815
|
"multiselect"?: boolean;
|
|
4344
4816
|
/**
|
|
@@ -4347,18 +4819,22 @@ declare namespace LocalJSX {
|
|
|
4347
4819
|
"noMinWidth"?: boolean;
|
|
4348
4820
|
/**
|
|
4349
4821
|
* Enables Table to take 100% available width with equal spacing of columns
|
|
4822
|
+
* @default false
|
|
4350
4823
|
*/
|
|
4351
4824
|
"responsive"?: boolean;
|
|
4352
4825
|
/**
|
|
4353
4826
|
* ID used for internal Table functionality and events, must be unique. **NOTE**: If you're listening for Table events, you need to set this ID yourself to identify the Table, as the default ID is random and will be different every time.
|
|
4827
|
+
* @default generateUniqueId()
|
|
4354
4828
|
*/
|
|
4355
4829
|
"tableId"?: string;
|
|
4356
4830
|
/**
|
|
4357
4831
|
* Enables style with vertical dividers between columns
|
|
4832
|
+
* @default false
|
|
4358
4833
|
*/
|
|
4359
4834
|
"verticalDividers"?: boolean;
|
|
4360
4835
|
/**
|
|
4361
4836
|
* Enables zebra stripe mode on the table rows or columns.
|
|
4837
|
+
* @default 'none'
|
|
4362
4838
|
*/
|
|
4363
4839
|
"zebraMode"?: | 'rows-odd'
|
|
4364
4840
|
| 'rows-even'
|
|
@@ -4371,16 +4847,19 @@ declare namespace LocalJSX {
|
|
|
4371
4847
|
interface TdsTableBodyInputWrapper {
|
|
4372
4848
|
/**
|
|
4373
4849
|
* Controls if the edit icon is shown
|
|
4850
|
+
* @default true
|
|
4374
4851
|
*/
|
|
4375
4852
|
"showIcon"?: boolean;
|
|
4376
4853
|
}
|
|
4377
4854
|
interface TdsTableBodyRow {
|
|
4378
4855
|
/**
|
|
4379
4856
|
* Makes the row clickable and tabbable for accessibility purposes.
|
|
4857
|
+
* @default false
|
|
4380
4858
|
*/
|
|
4381
4859
|
"clickable"?: boolean;
|
|
4382
4860
|
/**
|
|
4383
4861
|
* Marks the row as disabled, used for multiselect table.
|
|
4862
|
+
* @default false
|
|
4384
4863
|
*/
|
|
4385
4864
|
"disabled"?: boolean;
|
|
4386
4865
|
/**
|
|
@@ -4401,16 +4880,19 @@ declare namespace LocalJSX {
|
|
|
4401
4880
|
}>) => void;
|
|
4402
4881
|
/**
|
|
4403
4882
|
* Marks the row as selected, used for multiselect table.
|
|
4883
|
+
* @default false
|
|
4404
4884
|
*/
|
|
4405
4885
|
"selected"?: boolean;
|
|
4406
4886
|
}
|
|
4407
4887
|
interface TdsTableBodyRowExpandable {
|
|
4408
4888
|
/**
|
|
4409
4889
|
* Enables auto-collapse of other expandable rows when one row is expanded
|
|
4890
|
+
* @default false
|
|
4410
4891
|
*/
|
|
4411
4892
|
"autoCollapse"?: boolean;
|
|
4412
4893
|
/**
|
|
4413
4894
|
* In case that automatic count of columns does not work, user can manually set this one. Take in mind that expandable control is column too
|
|
4895
|
+
* @default null
|
|
4414
4896
|
*/
|
|
4415
4897
|
"colSpan"?: number;
|
|
4416
4898
|
/**
|
|
@@ -4427,20 +4909,24 @@ declare namespace LocalJSX {
|
|
|
4427
4909
|
}>) => void;
|
|
4428
4910
|
/**
|
|
4429
4911
|
* Controls the overflow behavior of the expandable row content
|
|
4912
|
+
* @default 'auto'
|
|
4430
4913
|
*/
|
|
4431
4914
|
"overflow"?: 'auto' | 'hidden' | 'visible';
|
|
4432
4915
|
/**
|
|
4433
4916
|
* ID for the table row. Randomly generated if not specified.
|
|
4917
|
+
* @default generateUniqueId()
|
|
4434
4918
|
*/
|
|
4435
4919
|
"rowId"?: string;
|
|
4436
4920
|
/**
|
|
4437
4921
|
* Aria label for the expand button, providing an accessible description
|
|
4922
|
+
* @default ''
|
|
4438
4923
|
*/
|
|
4439
4924
|
"tdsAriaLabelExpandButton"?: string;
|
|
4440
4925
|
}
|
|
4441
4926
|
interface TdsTableFooter {
|
|
4442
4927
|
/**
|
|
4443
4928
|
* <b>Client override</b> Used to set the column span of the footer. Use as fallback if the automatic count of columns fails.
|
|
4929
|
+
* @default null
|
|
4444
4930
|
*/
|
|
4445
4931
|
"cols"?: number;
|
|
4446
4932
|
/**
|
|
@@ -4453,36 +4939,44 @@ declare namespace LocalJSX {
|
|
|
4453
4939
|
}>) => void;
|
|
4454
4940
|
/**
|
|
4455
4941
|
* Sets the number of pages.
|
|
4942
|
+
* @default null
|
|
4456
4943
|
*/
|
|
4457
4944
|
"pages"?: number;
|
|
4458
4945
|
/**
|
|
4459
4946
|
* Enable pagination and show pagination controls
|
|
4947
|
+
* @default false
|
|
4460
4948
|
*/
|
|
4461
4949
|
"pagination"?: boolean;
|
|
4462
4950
|
/**
|
|
4463
4951
|
* Sets the pagination number.
|
|
4952
|
+
* @default 1
|
|
4464
4953
|
*/
|
|
4465
4954
|
"paginationValue"?: number;
|
|
4466
4955
|
/**
|
|
4467
4956
|
* Set available rows per page values
|
|
4957
|
+
* @default [10, 25, 50]
|
|
4468
4958
|
*/
|
|
4469
4959
|
"rowsPerPageValues"?: number[];
|
|
4470
4960
|
/**
|
|
4471
4961
|
* Enable rows per page dropdown
|
|
4962
|
+
* @default true
|
|
4472
4963
|
*/
|
|
4473
4964
|
"rowsperpage"?: boolean;
|
|
4474
4965
|
}
|
|
4475
4966
|
interface TdsTableHeader {
|
|
4476
4967
|
/**
|
|
4477
4968
|
* @deprecated Deprecated, use selected instead.
|
|
4969
|
+
* @default false
|
|
4478
4970
|
*/
|
|
4479
4971
|
"allSelected"?: boolean;
|
|
4480
4972
|
/**
|
|
4481
4973
|
* Prop for controlling the enabled/disabled state of the "All selected"-checkbox.
|
|
4974
|
+
* @default false
|
|
4482
4975
|
*/
|
|
4483
4976
|
"disabled"?: boolean;
|
|
4484
4977
|
/**
|
|
4485
4978
|
* Prop for controlling the indeterminate state of the "All selected"-checkbox.
|
|
4979
|
+
* @default false
|
|
4486
4980
|
*/
|
|
4487
4981
|
"indeterminate"?: boolean;
|
|
4488
4982
|
/**
|
|
@@ -4499,15 +4993,20 @@ declare namespace LocalJSX {
|
|
|
4499
4993
|
"selected"?: boolean;
|
|
4500
4994
|
}
|
|
4501
4995
|
interface TdsTableHeaderInputWrapper {
|
|
4996
|
+
/**
|
|
4997
|
+
* @default false
|
|
4998
|
+
*/
|
|
4502
4999
|
"compactDesign"?: boolean;
|
|
4503
5000
|
/**
|
|
4504
5001
|
* Controls if the search icon is shown
|
|
5002
|
+
* @default true
|
|
4505
5003
|
*/
|
|
4506
5004
|
"showIcon"?: boolean;
|
|
4507
5005
|
}
|
|
4508
5006
|
interface TdsTableToolbar {
|
|
4509
5007
|
/**
|
|
4510
5008
|
* Enables preview of searchbar
|
|
5009
|
+
* @default false
|
|
4511
5010
|
*/
|
|
4512
5011
|
"filter"?: boolean;
|
|
4513
5012
|
/**
|
|
@@ -4519,16 +5018,19 @@ declare namespace LocalJSX {
|
|
|
4519
5018
|
}>) => void;
|
|
4520
5019
|
/**
|
|
4521
5020
|
* Adds title to the Table
|
|
5021
|
+
* @default ''
|
|
4522
5022
|
*/
|
|
4523
5023
|
"tableTitle"?: string;
|
|
4524
5024
|
/**
|
|
4525
5025
|
* Aria label for the search input, providing an accessible description
|
|
5026
|
+
* @default ''
|
|
4526
5027
|
*/
|
|
4527
5028
|
"tdsSearchAriaLabel"?: string;
|
|
4528
5029
|
}
|
|
4529
5030
|
interface TdsTag {
|
|
4530
5031
|
/**
|
|
4531
5032
|
* Sets the size of the tag
|
|
5033
|
+
* @default 'lg'
|
|
4532
5034
|
*/
|
|
4533
5035
|
"size"?: 'lg' | 'sm';
|
|
4534
5036
|
/**
|
|
@@ -4537,16 +5039,24 @@ declare namespace LocalJSX {
|
|
|
4537
5039
|
"text": string;
|
|
4538
5040
|
/**
|
|
4539
5041
|
* Sets the variant mode of the tag
|
|
5042
|
+
* @default 'Neutral'
|
|
4540
5043
|
*/
|
|
4541
5044
|
"variant"?: 'Success' | 'Warning' | 'New' | 'Neutral' | 'Information' | 'Error';
|
|
4542
5045
|
}
|
|
4543
5046
|
interface TdsTextField {
|
|
5047
|
+
/**
|
|
5048
|
+
* Value to be used for the text field's autocomplete attribute
|
|
5049
|
+
* @default 'off'
|
|
5050
|
+
*/
|
|
5051
|
+
"autocomplete"?: string;
|
|
4544
5052
|
/**
|
|
4545
5053
|
* Autofocus for input
|
|
5054
|
+
* @default false
|
|
4546
5055
|
*/
|
|
4547
5056
|
"autofocus"?: boolean;
|
|
4548
5057
|
/**
|
|
4549
5058
|
* Set input in disabled state
|
|
5059
|
+
* @default false
|
|
4550
5060
|
*/
|
|
4551
5061
|
"disabled"?: boolean;
|
|
4552
5062
|
/**
|
|
@@ -4555,14 +5065,17 @@ declare namespace LocalJSX {
|
|
|
4555
5065
|
"helper"?: string;
|
|
4556
5066
|
/**
|
|
4557
5067
|
* Hides the read-only icon in the Text Field. Requires Read Only to be enabled.
|
|
5068
|
+
* @default false
|
|
4558
5069
|
*/
|
|
4559
5070
|
"hideReadOnlyIcon"?: boolean;
|
|
4560
5071
|
/**
|
|
4561
5072
|
* Label text
|
|
5073
|
+
* @default ''
|
|
4562
5074
|
*/
|
|
4563
5075
|
"label"?: string;
|
|
4564
5076
|
/**
|
|
4565
5077
|
* Position of the label for the Text Field.
|
|
5078
|
+
* @default 'no-label'
|
|
4566
5079
|
*/
|
|
4567
5080
|
"labelPosition"?: 'inside' | 'outside' | 'no-label';
|
|
4568
5081
|
/**
|
|
@@ -4579,14 +5092,17 @@ declare namespace LocalJSX {
|
|
|
4579
5092
|
"min"?: string | number;
|
|
4580
5093
|
/**
|
|
4581
5094
|
* Mode variant of the Text Field
|
|
5095
|
+
* @default null
|
|
4582
5096
|
*/
|
|
4583
5097
|
"modeVariant"?: 'primary' | 'secondary';
|
|
4584
5098
|
/**
|
|
4585
5099
|
* Name property
|
|
5100
|
+
* @default ''
|
|
4586
5101
|
*/
|
|
4587
5102
|
"name"?: string;
|
|
4588
5103
|
/**
|
|
4589
5104
|
* Unset minimum width of 208px.
|
|
5105
|
+
* @default false
|
|
4590
5106
|
*/
|
|
4591
5107
|
"noMinWidth"?: boolean;
|
|
4592
5108
|
/**
|
|
@@ -4607,18 +5123,27 @@ declare namespace LocalJSX {
|
|
|
4607
5123
|
"onTdsInput"?: (event: TdsTextFieldCustomEvent<InputEvent>) => void;
|
|
4608
5124
|
/**
|
|
4609
5125
|
* Placeholder text
|
|
5126
|
+
* @default ''
|
|
4610
5127
|
*/
|
|
4611
5128
|
"placeholder"?: string;
|
|
4612
5129
|
/**
|
|
4613
5130
|
* Set input in readonly state
|
|
5131
|
+
* @default false
|
|
4614
5132
|
*/
|
|
4615
5133
|
"readOnly"?: boolean;
|
|
5134
|
+
/**
|
|
5135
|
+
* Makes the text field required
|
|
5136
|
+
* @default false
|
|
5137
|
+
*/
|
|
5138
|
+
"required"?: boolean;
|
|
4616
5139
|
/**
|
|
4617
5140
|
* Size of the input
|
|
5141
|
+
* @default 'lg'
|
|
4618
5142
|
*/
|
|
4619
5143
|
"size"?: 'sm' | 'md' | 'lg';
|
|
4620
5144
|
/**
|
|
4621
5145
|
* Error state of input
|
|
5146
|
+
* @default 'default'
|
|
4622
5147
|
*/
|
|
4623
5148
|
"state"?: 'error' | 'success' | 'default';
|
|
4624
5149
|
/**
|
|
@@ -4627,16 +5152,19 @@ declare namespace LocalJSX {
|
|
|
4627
5152
|
"tdsAriaLabel"?: string;
|
|
4628
5153
|
/**
|
|
4629
5154
|
* Which input type, text, password or similar
|
|
5155
|
+
* @default 'text'
|
|
4630
5156
|
*/
|
|
4631
|
-
"type"?: 'text' | 'password' | 'number';
|
|
5157
|
+
"type"?: 'text' | 'password' | 'number' | 'email' | 'tel';
|
|
4632
5158
|
/**
|
|
4633
5159
|
* Value of the input text
|
|
5160
|
+
* @default ''
|
|
4634
5161
|
*/
|
|
4635
5162
|
"value"?: string;
|
|
4636
5163
|
}
|
|
4637
5164
|
interface TdsTextarea {
|
|
4638
5165
|
/**
|
|
4639
5166
|
* Control of autofocus
|
|
5167
|
+
* @default false
|
|
4640
5168
|
*/
|
|
4641
5169
|
"autofocus"?: boolean;
|
|
4642
5170
|
/**
|
|
@@ -4645,6 +5173,7 @@ declare namespace LocalJSX {
|
|
|
4645
5173
|
"cols"?: number;
|
|
4646
5174
|
/**
|
|
4647
5175
|
* Set input in disabled state
|
|
5176
|
+
* @default false
|
|
4648
5177
|
*/
|
|
4649
5178
|
"disabled"?: boolean;
|
|
4650
5179
|
/**
|
|
@@ -4653,14 +5182,17 @@ declare namespace LocalJSX {
|
|
|
4653
5182
|
"helper"?: string;
|
|
4654
5183
|
/**
|
|
4655
5184
|
* Hide the readonly icon
|
|
5185
|
+
* @default false
|
|
4656
5186
|
*/
|
|
4657
5187
|
"hideReadOnlyIcon"?: boolean;
|
|
4658
5188
|
/**
|
|
4659
5189
|
* Label text
|
|
5190
|
+
* @default ''
|
|
4660
5191
|
*/
|
|
4661
5192
|
"label"?: string;
|
|
4662
5193
|
/**
|
|
4663
5194
|
* Position of the label for the Textarea.
|
|
5195
|
+
* @default 'no-label'
|
|
4664
5196
|
*/
|
|
4665
5197
|
"labelPosition"?: 'inside' | 'outside' | 'no-label';
|
|
4666
5198
|
/**
|
|
@@ -4669,14 +5201,17 @@ declare namespace LocalJSX {
|
|
|
4669
5201
|
"maxLength"?: number;
|
|
4670
5202
|
/**
|
|
4671
5203
|
* Mode variant of the Textarea
|
|
5204
|
+
* @default null
|
|
4672
5205
|
*/
|
|
4673
5206
|
"modeVariant"?: 'primary' | 'secondary';
|
|
4674
5207
|
/**
|
|
4675
5208
|
* Name attribute
|
|
5209
|
+
* @default ''
|
|
4676
5210
|
*/
|
|
4677
5211
|
"name"?: string;
|
|
4678
5212
|
/**
|
|
4679
5213
|
* Unset minimum width of 208px.
|
|
5214
|
+
* @default false
|
|
4680
5215
|
*/
|
|
4681
5216
|
"noMinWidth"?: boolean;
|
|
4682
5217
|
/**
|
|
@@ -4697,10 +5232,12 @@ declare namespace LocalJSX {
|
|
|
4697
5232
|
"onTdsInput"?: (event: TdsTextareaCustomEvent<InputEvent>) => void;
|
|
4698
5233
|
/**
|
|
4699
5234
|
* Placeholder text
|
|
5235
|
+
* @default ''
|
|
4700
5236
|
*/
|
|
4701
5237
|
"placeholder"?: string;
|
|
4702
5238
|
/**
|
|
4703
5239
|
* Set input in readonly state
|
|
5240
|
+
* @default false
|
|
4704
5241
|
*/
|
|
4705
5242
|
"readOnly"?: boolean;
|
|
4706
5243
|
/**
|
|
@@ -4709,6 +5246,7 @@ declare namespace LocalJSX {
|
|
|
4709
5246
|
"rows"?: number;
|
|
4710
5247
|
/**
|
|
4711
5248
|
* Error state of input
|
|
5249
|
+
* @default 'default'
|
|
4712
5250
|
*/
|
|
4713
5251
|
"state"?: 'error' | 'success' | 'default';
|
|
4714
5252
|
/**
|
|
@@ -4717,12 +5255,14 @@ declare namespace LocalJSX {
|
|
|
4717
5255
|
"tdsAriaLabel"?: string;
|
|
4718
5256
|
/**
|
|
4719
5257
|
* Value of the input text
|
|
5258
|
+
* @default ''
|
|
4720
5259
|
*/
|
|
4721
5260
|
"value"?: string;
|
|
4722
5261
|
}
|
|
4723
5262
|
interface TdsToast {
|
|
4724
5263
|
/**
|
|
4725
5264
|
* Enables the close button.
|
|
5265
|
+
* @default true
|
|
4726
5266
|
*/
|
|
4727
5267
|
"closable"?: boolean;
|
|
4728
5268
|
/**
|
|
@@ -4731,6 +5271,7 @@ declare namespace LocalJSX {
|
|
|
4731
5271
|
"header"?: string;
|
|
4732
5272
|
/**
|
|
4733
5273
|
* Hides the Toast.
|
|
5274
|
+
* @default false
|
|
4734
5275
|
*/
|
|
4735
5276
|
"hidden"?: boolean;
|
|
4736
5277
|
/**
|
|
@@ -4745,6 +5286,7 @@ declare namespace LocalJSX {
|
|
|
4745
5286
|
"subheader"?: string;
|
|
4746
5287
|
/**
|
|
4747
5288
|
* ARIA live for the Toast.
|
|
5289
|
+
* @default 'polite'
|
|
4748
5290
|
*/
|
|
4749
5291
|
"tdsAriaLive"?: 'polite' | 'assertive';
|
|
4750
5292
|
/**
|
|
@@ -4753,24 +5295,29 @@ declare namespace LocalJSX {
|
|
|
4753
5295
|
"tdsCloseAriaLabel"?: string;
|
|
4754
5296
|
/**
|
|
4755
5297
|
* ID for the Toast. Randomly generated if not specified.
|
|
5298
|
+
* @default generateUniqueId()
|
|
4756
5299
|
*/
|
|
4757
5300
|
"toastId"?: string;
|
|
4758
5301
|
/**
|
|
4759
5302
|
* ARIA role for the Toast.
|
|
5303
|
+
* @default 'alert'
|
|
4760
5304
|
*/
|
|
4761
5305
|
"toastRole"?: 'alert' | 'log' | 'status';
|
|
4762
5306
|
/**
|
|
4763
5307
|
* Type of Toast.
|
|
5308
|
+
* @default 'information'
|
|
4764
5309
|
*/
|
|
4765
5310
|
"variant"?: 'information' | 'error' | 'warning' | 'success';
|
|
4766
5311
|
}
|
|
4767
5312
|
interface TdsToggle {
|
|
4768
5313
|
/**
|
|
4769
5314
|
* Sets the Toggle as checked
|
|
5315
|
+
* @default false
|
|
4770
5316
|
*/
|
|
4771
5317
|
"checked"?: boolean;
|
|
4772
5318
|
/**
|
|
4773
5319
|
* Sets the Toggle in a disabled state
|
|
5320
|
+
* @default false
|
|
4774
5321
|
*/
|
|
4775
5322
|
"disabled"?: boolean;
|
|
4776
5323
|
/**
|
|
@@ -4790,10 +5337,12 @@ declare namespace LocalJSX {
|
|
|
4790
5337
|
}>) => void;
|
|
4791
5338
|
/**
|
|
4792
5339
|
* Make the Toggle required
|
|
5340
|
+
* @default false
|
|
4793
5341
|
*/
|
|
4794
5342
|
"required"?: boolean;
|
|
4795
5343
|
/**
|
|
4796
5344
|
* Size of the Toggle
|
|
5345
|
+
* @default 'lg'
|
|
4797
5346
|
*/
|
|
4798
5347
|
"size"?: 'sm' | 'lg';
|
|
4799
5348
|
/**
|
|
@@ -4802,28 +5351,34 @@ declare namespace LocalJSX {
|
|
|
4802
5351
|
"tdsAriaLabel"?: string;
|
|
4803
5352
|
/**
|
|
4804
5353
|
* ID of the Toggle's input element, if not specified, it's randomly generated
|
|
5354
|
+
* @default generateUniqueId()
|
|
4805
5355
|
*/
|
|
4806
5356
|
"toggleId"?: string;
|
|
4807
5357
|
}
|
|
4808
5358
|
interface TdsTooltip {
|
|
4809
5359
|
/**
|
|
4810
5360
|
* Decides if the component should be visible from the start.
|
|
5361
|
+
* @default false
|
|
4811
5362
|
*/
|
|
4812
5363
|
"defaultShow"?: boolean;
|
|
4813
5364
|
/**
|
|
4814
5365
|
* Allow mouse over Tooltip. Useful when Tooltip contains clickable elements like link or button.
|
|
5366
|
+
* @default false
|
|
4815
5367
|
*/
|
|
4816
5368
|
"mouseOverTooltip"?: boolean;
|
|
4817
5369
|
/**
|
|
4818
5370
|
* Sets the offset distance
|
|
5371
|
+
* @default 8
|
|
4819
5372
|
*/
|
|
4820
5373
|
"offsetDistance"?: number;
|
|
4821
5374
|
/**
|
|
4822
5375
|
* Sets the offset skidding
|
|
5376
|
+
* @default 0
|
|
4823
5377
|
*/
|
|
4824
5378
|
"offsetSkidding"?: number;
|
|
4825
5379
|
/**
|
|
4826
5380
|
* Placement of Tooltip.
|
|
5381
|
+
* @default 'bottom'
|
|
4827
5382
|
*/
|
|
4828
5383
|
"placement"?: Placement;
|
|
4829
5384
|
/**
|
|
@@ -4836,6 +5391,7 @@ declare namespace LocalJSX {
|
|
|
4836
5391
|
"selector"?: string;
|
|
4837
5392
|
/**
|
|
4838
5393
|
* Prop in control of showing and hiding prop. Takes precedence over `defaultOpen` prop.
|
|
5394
|
+
* @default null
|
|
4839
5395
|
*/
|
|
4840
5396
|
"show"?: boolean;
|
|
4841
5397
|
/**
|
|
@@ -4844,10 +5400,12 @@ declare namespace LocalJSX {
|
|
|
4844
5400
|
"tdsAriaDescribedby"?: string;
|
|
4845
5401
|
/**
|
|
4846
5402
|
* In case Tooltip contains only text, no HTML, a text can be passed by this prop
|
|
5403
|
+
* @default ''
|
|
4847
5404
|
*/
|
|
4848
5405
|
"text"?: string;
|
|
4849
5406
|
/**
|
|
4850
5407
|
* What triggers the popover to show
|
|
5408
|
+
* @default 'hover'
|
|
4851
5409
|
*/
|
|
4852
5410
|
"trigger"?: 'click' | 'hover';
|
|
4853
5411
|
}
|