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