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