@telesign/boreal-web-components 0.1.0-alpha.4 → 0.1.0-alpha.6
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/components-build/bds-avatar.js +1 -1
- package/components-build/bds-badge.js +1 -1
- package/components-build/bds-banner.js +1 -1
- package/components-build/bds-breadcrumb-item.d.ts +11 -0
- package/components-build/bds-breadcrumb-item.js +1 -0
- package/components-build/bds-breadcrumb.d.ts +11 -0
- package/components-build/bds-breadcrumb.js +1 -0
- package/components-build/bds-button-group.d.ts +11 -0
- package/components-build/bds-button-group.js +1 -0
- package/components-build/bds-button.js +1 -1
- package/components-build/bds-checkbox-button.d.ts +11 -0
- package/components-build/bds-checkbox-button.js +1 -0
- package/components-build/bds-checkbox-card.d.ts +11 -0
- package/components-build/bds-checkbox-card.js +1 -0
- package/components-build/bds-checkbox-group.d.ts +11 -0
- package/components-build/bds-checkbox-group.js +1 -0
- package/components-build/bds-checkbox.js +1 -1
- package/components-build/bds-dialog.js +1 -1
- package/components-build/bds-divider.js +1 -1
- package/components-build/bds-flag.js +1 -1
- package/components-build/bds-grid-item.js +1 -1
- package/components-build/bds-grid.js +1 -1
- package/components-build/bds-list-menu-item.js +1 -1
- package/components-build/bds-list-menu.js +1 -1
- package/components-build/bds-popover.js +1 -1
- package/components-build/bds-radio-button.d.ts +11 -0
- package/components-build/bds-radio-button.js +1 -0
- package/components-build/bds-radio-card.d.ts +11 -0
- package/components-build/bds-radio-card.js +1 -0
- package/components-build/bds-radio-group.d.ts +11 -0
- package/components-build/bds-radio-group.js +1 -0
- package/components-build/bds-radio.d.ts +11 -0
- package/components-build/bds-radio.js +1 -0
- package/components-build/bds-select.d.ts +11 -0
- package/components-build/bds-select.js +1 -0
- package/components-build/bds-slider.d.ts +11 -0
- package/components-build/bds-slider.js +1 -0
- package/components-build/bds-spinner.js +1 -1
- package/components-build/bds-status.js +1 -1
- package/components-build/bds-tag.js +1 -1
- package/components-build/bds-text-field.js +1 -1
- package/components-build/bds-toggle.js +1 -1
- package/components-build/bds-tooltip.js +1 -1
- package/components-build/bds-typography.js +1 -1
- package/components-build/index.js +1 -1
- package/components-build/p-B6e9eIHB.js +1 -0
- package/components-build/p-CJBdGD_4.js +1 -0
- package/components-build/p-CPvuMm5C.js +1 -0
- package/components-build/p-DcR7mHFE.js +1 -0
- package/components-build/p-DdOPD9wW.js +1 -0
- package/components-build/p-DfaYciGa.js +1 -0
- package/components-build/p-Dh8DSJs_.js +1 -0
- package/components-build/p-DoNZM78n.js +1 -0
- package/components-build/p-DrkDx75U.js +1 -0
- package/components-build/p-DuBzr05c.js +1 -0
- package/components-build/p-PmjPRW8X.js +1 -0
- package/components-build/p-cgdh1LO-.js +1 -0
- package/{dist/boreal-web-components/p-CaHOghy5.js → components-build/p-fUK0GCeC.js} +1 -1
- package/components-build/p-nxYzL9uu.js +1 -0
- package/components-build/p-yLNcMg2E.js +1 -0
- package/custom-elements.json +5078 -1524
- package/dist/boreal-web-components/boreal-web-components.esm.js +1 -1
- package/dist/boreal-web-components/css/boreal.css +60 -0
- package/dist/boreal-web-components/css/theme-connect.css +15 -0
- package/dist/boreal-web-components/css/theme-engage.css +15 -0
- package/dist/boreal-web-components/css/theme-protect.css +15 -0
- package/dist/boreal-web-components/css/theme-proximus.css +15 -0
- package/dist/boreal-web-components/p-02e53626.entry.js +1 -0
- package/dist/boreal-web-components/p-0357450d.system.entry.js +1 -0
- package/dist/boreal-web-components/{p-e0bf8a6e.entry.js → p-1250ba53.entry.js} +1 -1
- package/dist/boreal-web-components/p-1911b978.entry.js +1 -0
- package/dist/boreal-web-components/{p-2158a7cd.entry.js → p-19f9352d.entry.js} +1 -1
- package/dist/boreal-web-components/p-1mOd23lT.system.js +1 -0
- package/dist/boreal-web-components/{p-52600375.system.entry.js → p-25823f7d.system.entry.js} +1 -1
- package/dist/boreal-web-components/p-2db71382.system.entry.js +1 -0
- package/dist/boreal-web-components/{p-251d35df.system.entry.js → p-365e8e5c.system.entry.js} +1 -1
- package/dist/boreal-web-components/p-367e40f9.entry.js +1 -0
- package/dist/boreal-web-components/p-3946d587.entry.js +1 -0
- package/dist/boreal-web-components/p-44b6fe6c.system.entry.js +1 -0
- package/dist/boreal-web-components/{p-7a4efddd.system.entry.js → p-48712a63.system.entry.js} +1 -1
- package/dist/boreal-web-components/{p-251b3002.entry.js → p-49ea207a.entry.js} +1 -1
- package/dist/boreal-web-components/p-4b028406.entry.js +1 -0
- package/dist/boreal-web-components/p-4b615de8.system.entry.js +1 -0
- package/dist/boreal-web-components/{p-edca16b6.system.entry.js → p-4f431941.system.entry.js} +1 -1
- package/dist/boreal-web-components/p-524421f7.system.entry.js +1 -0
- package/dist/boreal-web-components/p-530c8c7f.entry.js +1 -0
- package/dist/boreal-web-components/p-55aeff0c.system.entry.js +1 -0
- package/dist/boreal-web-components/p-5c8650b3.system.entry.js +1 -0
- package/dist/boreal-web-components/p-5e590291.system.entry.js +1 -0
- package/dist/boreal-web-components/p-5ee0841f.entry.js +1 -0
- package/dist/boreal-web-components/{p-871c9a9f.system.entry.js → p-65923619.system.entry.js} +1 -1
- package/dist/boreal-web-components/p-66ec16d9.entry.js +1 -0
- package/dist/boreal-web-components/{p-127a4134.entry.js → p-714bf70d.entry.js} +1 -1
- package/dist/boreal-web-components/{p-66360e63.entry.js → p-71ed1e1d.entry.js} +1 -1
- package/dist/boreal-web-components/{p-b12d4788.system.entry.js → p-732e98f1.system.entry.js} +1 -1
- package/dist/boreal-web-components/p-7626338e.system.entry.js +1 -0
- package/dist/boreal-web-components/{p-80822731.system.entry.js → p-77658a5b.system.entry.js} +1 -1
- package/dist/boreal-web-components/p-7G4h4DI7.js +1 -0
- package/dist/boreal-web-components/p-800fc096.system.entry.js +1 -0
- package/dist/boreal-web-components/p-824485ad.entry.js +1 -0
- package/dist/boreal-web-components/p-8dfe3a9f.entry.js +1 -0
- package/dist/boreal-web-components/p-90022071.entry.js +1 -0
- package/dist/boreal-web-components/{p-1d1bb9d2.entry.js → p-9d02057d.entry.js} +1 -1
- package/dist/boreal-web-components/p-C-g3hhl_.system.js +1 -0
- package/dist/boreal-web-components/p-C0P3gzq5.system.js +1 -0
- package/dist/boreal-web-components/p-C4HM8wQe.js +1 -0
- package/dist/boreal-web-components/p-CPvuMm5C.js +1 -0
- package/dist/boreal-web-components/p-CRMH6mfq.system.js +1 -0
- package/dist/boreal-web-components/p-CU_dRLdk.system.js +1 -0
- package/dist/boreal-web-components/p-CW4-dkCF.system.js +1 -0
- package/dist/boreal-web-components/p-CcENtewr.js +1 -0
- package/dist/boreal-web-components/{p-BuxZeJbu.system.js → p-DSU8tkVw.system.js} +1 -1
- package/dist/boreal-web-components/p-DfaYciGa.js +1 -0
- package/dist/boreal-web-components/p-Dk9dfU9-.system.js +1 -0
- package/dist/boreal-web-components/p-DlVzZK7o.js +1 -0
- package/dist/boreal-web-components/p-DnIhjwCH.system.js +1 -0
- package/dist/boreal-web-components/p-Dwo1hcd9.js +1 -0
- package/dist/boreal-web-components/p-K7DvMlRo.system.js +1 -0
- package/{components-build/p-CaHOghy5.js → dist/boreal-web-components/p-U9yfbs7i.js} +1 -1
- package/dist/boreal-web-components/p-UEj9YHof.system.js +1 -0
- package/dist/boreal-web-components/p-b54fe67f.system.entry.js +1 -0
- package/dist/boreal-web-components/p-bbcd3a30.system.entry.js +1 -0
- package/dist/boreal-web-components/p-bea25d3d.system.entry.js +1 -0
- package/dist/boreal-web-components/p-bed506d3.entry.js +1 -0
- package/dist/boreal-web-components/p-bfd62034.system.entry.js +1 -0
- package/dist/boreal-web-components/p-c07d6b82.system.entry.js +1 -0
- package/dist/boreal-web-components/p-cc5c359f.entry.js +1 -0
- package/dist/boreal-web-components/p-cgdh1LO-.js +1 -0
- package/dist/boreal-web-components/p-d2b6ae79.entry.js +1 -0
- package/dist/boreal-web-components/{p-695d0830.entry.js → p-dc7d429c.entry.js} +1 -1
- package/dist/boreal-web-components/p-e21b8416.entry.js +1 -0
- package/dist/boreal-web-components/p-e4364a44.system.entry.js +1 -0
- package/dist/boreal-web-components/p-e51407b2.system.entry.js +1 -0
- package/dist/boreal-web-components/p-e8cde179.system.entry.js +1 -0
- package/dist/boreal-web-components/p-eecc3028.system.entry.js +1 -0
- package/dist/boreal-web-components/p-f3bd824d.system.entry.js +1 -0
- package/dist/boreal-web-components/{p-44ceff4e.system.entry.js → p-f65e9d0c.system.entry.js} +1 -1
- package/dist/boreal-web-components/p-f6eabb16.entry.js +1 -0
- package/dist/boreal-web-components/p-f7acf6e5.system.entry.js +1 -0
- package/dist/boreal-web-components/{p-7db870b7.entry.js → p-f9560509.entry.js} +1 -1
- package/dist/boreal-web-components/p-fa128cad.system.entry.js +1 -0
- package/dist/boreal-web-components/p-fab1a01d.entry.js +1 -0
- package/dist/boreal-web-components/{p-fc24d963.entry.js → p-fb9a0e94.entry.js} +1 -1
- package/dist/boreal-web-components/p-fb9ba833.entry.js +1 -0
- package/dist/boreal-web-components/p-fbe0c9f2.entry.js +1 -0
- package/dist/boreal-web-components/p-fbe88555.entry.js +1 -0
- package/dist/boreal-web-components/p-fc1fa966.system.entry.js +1 -0
- package/dist/boreal-web-components/p-fc4ffa0e.entry.js +1 -0
- package/dist/boreal-web-components/p-fef13445.entry.js +1 -0
- package/dist/boreal-web-components/p-iq2UuV7c.js +1 -0
- package/dist/boreal-web-components/p-qGhMe8Hk.js +1 -0
- package/dist/boreal-web-components/p-vzZJGcYF.system.js +1 -1
- package/dist/boreal-web-components/scss/maps/_theme-connect.scss +16 -1
- package/dist/boreal-web-components/scss/maps/_theme-engage.scss +16 -1
- package/dist/boreal-web-components/scss/maps/_theme-protect.scss +16 -1
- package/dist/boreal-web-components/scss/maps/_theme-proximus.scss +16 -1
- package/dist/boreal-web-components/scss/variables/_theme-connect.scss +16 -1
- package/dist/boreal-web-components/scss/variables/_theme-engage.scss +16 -1
- package/dist/boreal-web-components/scss/variables/_theme-protect.scss +16 -1
- package/dist/boreal-web-components/scss/variables/_theme-proximus.scss +16 -1
- package/dist/cjs/KeyboardController-B_g3peyB.js +1067 -0
- package/dist/cjs/Keys-DXn16dlA.js +34 -0
- package/dist/cjs/Logger-DnziItRH.js +51 -0
- package/dist/cjs/{attributes-wIHueigW.js → attributes-CgRFplrN.js} +3 -0
- package/dist/cjs/bds-avatar.cjs.entry.js +2 -2
- package/dist/cjs/bds-badge.cjs.entry.js +1 -1
- package/dist/cjs/bds-banner.cjs.entry.js +2 -2
- package/dist/cjs/bds-breadcrumb-item.cjs.entry.js +106 -0
- package/dist/cjs/bds-breadcrumb.cjs.entry.js +127 -0
- package/dist/cjs/bds-button-group.cjs.entry.js +116 -0
- package/dist/cjs/bds-button.cjs.entry.js +38 -17
- package/dist/cjs/bds-checkbox-button.cjs.entry.js +119 -0
- package/dist/cjs/bds-checkbox-card.cjs.entry.js +135 -0
- package/dist/cjs/bds-checkbox-group.cjs.entry.js +292 -0
- package/dist/cjs/bds-checkbox.cjs.entry.js +67 -29
- package/dist/cjs/bds-dialog.cjs.entry.js +4 -4
- package/dist/cjs/bds-divider.cjs.entry.js +2 -2
- package/dist/cjs/bds-flag.cjs.entry.js +1 -1
- package/dist/cjs/bds-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/bds-grid.cjs.entry.js +1 -1
- package/dist/cjs/bds-list-menu-item.cjs.entry.js +59 -23
- package/dist/cjs/bds-list-menu.cjs.entry.js +126 -22
- package/dist/cjs/bds-popover.cjs.entry.js +15 -6
- package/dist/cjs/bds-radio-button.cjs.entry.js +60 -0
- package/dist/cjs/bds-radio-card.cjs.entry.js +76 -0
- package/dist/cjs/bds-radio-group.cjs.entry.js +291 -0
- package/dist/cjs/bds-radio.cjs.entry.js +60 -0
- package/dist/cjs/bds-select.cjs.entry.js +394 -0
- package/dist/cjs/bds-slider.cjs.entry.js +655 -0
- package/dist/cjs/bds-spinner.cjs.entry.js +1 -1
- package/dist/cjs/bds-status.cjs.entry.js +1 -1
- package/dist/cjs/bds-tag.cjs.entry.js +2 -2
- package/dist/cjs/bds-text-field.cjs.entry.js +15 -9
- package/dist/cjs/bds-toggle.cjs.entry.js +7 -6
- package/dist/cjs/bds-tooltip_2.cjs.entry.js +12 -9
- package/dist/cjs/boreal-web-components.cjs.js +1 -1
- package/dist/cjs/checkbox-form-association-DTEpHXUD.js +43 -0
- package/dist/cjs/coreColors-CQGojc0l.js +10 -0
- package/dist/cjs/{enum-DLblRCkQ.js → enum-DeTWfR0D.js} +3 -3
- package/dist/cjs/form-associated.mixin-BCR6bj29.js +33 -0
- package/dist/cjs/{getOffset-m4hBgyVP.js → getOffset-CsDHFjPW.js} +6 -53
- package/dist/cjs/{form-associated.mixin-DXwvF_vW.js → internals-D8x7GMfR.js} +0 -31
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/orientation-DQAIleEJ.js +8 -0
- package/dist/collection/collection-manifest.json +18 -6
- package/dist/collection/components/actions/bds-button/bds-button.css +55 -55
- package/dist/collection/components/actions/bds-button/bds-button.js +35 -11
- package/dist/collection/components/actions/bds-button/types/enum.js +3 -3
- package/dist/collection/components/actions/bds-button-group/bds-button-group.css +77 -0
- package/dist/collection/components/actions/bds-button-group/bds-button-group.js +264 -0
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu/bds-list-menu.css +27 -1
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu/bds-list-menu.js +283 -51
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu/types/enum.js +4 -0
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu-item/bds-list-menu-item.css +30 -11
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu-item/bds-list-menu-item.js +65 -7
- package/dist/collection/components/actions/bds-toggle/bds-toggle.css +3 -3
- package/dist/collection/components/actions/bds-toggle/bds-toggle.js +1 -1
- package/dist/collection/components/feedback/bds-badge/bds-badge.js +1 -1
- package/dist/collection/components/feedback/bds-banner/bds-banner.js +1 -1
- package/dist/collection/components/feedback/bds-spinner/bds-spinner.js +1 -1
- package/dist/collection/components/feedback/bds-status/bds-status.js +1 -1
- package/dist/collection/components/feedback/bds-tag/bds-tag.css +6 -6
- package/dist/collection/components/feedback/bds-tag/bds-tag.js +1 -1
- package/dist/collection/components/forms/bds-checkbox/bds-checkbox/bds-checkbox.css +132 -0
- package/dist/collection/components/forms/bds-checkbox/{bds-checkbox.js → bds-checkbox/bds-checkbox.js} +138 -35
- package/dist/collection/components/forms/bds-checkbox/bds-checkbox-button/bds-checkbox-button.css +113 -0
- package/dist/collection/components/forms/bds-checkbox/bds-checkbox-button/bds-checkbox-button.js +382 -0
- package/dist/collection/components/forms/bds-checkbox/bds-checkbox-card/bds-checkbox-card.css +139 -0
- package/dist/collection/components/forms/bds-checkbox/bds-checkbox-card/bds-checkbox-card.js +443 -0
- package/dist/collection/components/forms/bds-checkbox/bds-checkbox-group/bds-checkbox-group.css +55 -0
- package/dist/collection/components/forms/bds-checkbox/bds-checkbox-group/bds-checkbox-group.js +648 -0
- package/dist/collection/components/forms/bds-checkbox/bds-checkbox-group/types/enum.js +5 -0
- package/dist/collection/components/forms/bds-checkbox/bds-checkbox-group/types/index.js +3 -0
- package/dist/collection/components/forms/bds-checkbox/utils/checkbox-form-association.js +39 -0
- package/dist/collection/components/forms/bds-checkbox/utils/index.js +1 -0
- package/dist/collection/components/forms/bds-flag/bds-flag.js +1 -1
- package/dist/collection/components/forms/bds-radio/bds-radio/bds-radio.css +121 -0
- package/dist/collection/components/forms/bds-radio/bds-radio/bds-radio.js +238 -0
- package/dist/collection/components/forms/bds-radio/bds-radio/types/IRadio.js +1 -0
- package/dist/collection/components/forms/bds-radio/bds-radio-button/bds-radio-button.css +113 -0
- package/dist/collection/components/forms/bds-radio/bds-radio-button/bds-radio-button.js +238 -0
- package/dist/collection/components/forms/bds-radio/bds-radio-button/types/IRadioButton.js +1 -0
- package/dist/collection/components/forms/bds-radio/bds-radio-card/bds-radio-card.css +156 -0
- package/dist/collection/components/forms/bds-radio/bds-radio-card/bds-radio-card.js +307 -0
- package/dist/collection/components/forms/bds-radio/bds-radio-card/types/IRadioCard.js +1 -0
- package/dist/collection/components/forms/bds-radio/bds-radio-group/bds-radio-group.css +55 -0
- package/dist/collection/components/forms/bds-radio/bds-radio-group/bds-radio-group.js +648 -0
- package/dist/collection/components/forms/bds-radio/bds-radio-group/types/IRadioGroup.js +1 -0
- package/dist/collection/components/forms/bds-radio/bds-radio-group/types/enum.js +5 -0
- package/dist/collection/components/forms/bds-radio/bds-radio-group/types/types.js +1 -0
- package/dist/collection/components/forms/bds-select/bds-select.css +23 -0
- package/dist/collection/components/forms/bds-select/bds-select.js +431 -0
- package/dist/collection/components/forms/bds-select/types/ISelect.js +1 -0
- package/dist/collection/components/forms/bds-slider/bds-slider.css +213 -0
- package/dist/collection/components/forms/bds-slider/bds-slider.js +847 -0
- package/dist/collection/components/forms/bds-slider/helpers/SliderDOMController.js +61 -0
- package/dist/collection/components/forms/bds-slider/helpers/SliderService.js +93 -0
- package/dist/collection/components/forms/bds-slider/helpers/index.js +3 -0
- package/dist/collection/components/forms/bds-slider/helpers/parseValues.js +43 -0
- package/dist/collection/components/forms/bds-slider/types/ChangeDetail.js +1 -0
- package/dist/collection/components/forms/bds-slider/types/ISlider.js +1 -0
- package/dist/collection/components/forms/bds-slider/types/ISliderOptions.js +1 -0
- package/dist/collection/components/forms/bds-slider/types/enum.js +16 -0
- package/dist/collection/components/forms/bds-slider/types/index.js +5 -0
- package/dist/collection/components/forms/bds-slider/types/types.js +1 -0
- package/dist/collection/components/forms/bds-text-field/bds-text-field.css +10 -3
- package/dist/collection/components/forms/bds-text-field/bds-text-field.js +47 -2
- package/dist/collection/components/helpers/{bds-divider.css → bds-divider/bds-divider.css} +12 -4
- package/dist/collection/components/helpers/{bds-divider.js → bds-divider/bds-divider.js} +3 -3
- package/dist/collection/components/helpers/bds-divider/types/IDivider.js +1 -0
- package/dist/collection/components/helpers/bds-divider/types/types.js +1 -0
- package/dist/collection/components/images-icons/bds-avatar/bds-avatar.js +1 -1
- package/dist/collection/components/layouts/bds-grid/{grid → bds-grid}/bds-grid.js +3 -3
- package/dist/collection/components/layouts/bds-grid/bds-grid/types/IGrid.js +1 -0
- package/dist/collection/components/layouts/bds-grid/bds-grid/types/types.js +1 -0
- package/dist/collection/components/layouts/bds-grid/{grid-item → bds-grid-item}/bds-grid-item.js +9 -9
- package/dist/collection/components/layouts/bds-grid/bds-grid-item/types/IGridItem.js +1 -0
- package/dist/collection/components/layouts/bds-grid/bds-grid-item/types/types.js +1 -0
- package/dist/collection/components/navigation/bds-breadcrumb/bds-breadcrumb.css +21 -0
- package/dist/collection/components/navigation/bds-breadcrumb/bds-breadcrumb.js +292 -0
- package/dist/collection/components/navigation/bds-breadcrumb/types/IBreadcrumb.js +1 -0
- package/dist/collection/components/navigation/bds-breadcrumb-item/bds-breadcrumb-item.css +64 -0
- package/dist/collection/components/navigation/bds-breadcrumb-item/bds-breadcrumb-item.js +369 -0
- package/dist/collection/components/navigation/bds-breadcrumb-item/types/IBreadcrumbItem.js +1 -0
- package/dist/collection/components/overlays/bds-dialog/bds-dialog.css +1 -1
- package/dist/collection/components/overlays/bds-dialog/bds-dialog.js +2 -2
- package/dist/collection/components/overlays/bds-popover/bds-popover.js +49 -3
- package/dist/collection/components/overlays/bds-tooltip/bds-tooltip.js +3 -3
- package/dist/collection/components/titles-text/bds-typography/bds-typography.css +5 -0
- package/dist/collection/components/titles-text/bds-typography/bds-typography.js +30 -47
- package/dist/collection/components/titles-text/bds-typography/utils/bds-typography-utils.js +1 -1
- package/dist/collection/css/boreal.css +60 -0
- package/dist/collection/css/theme-connect.css +15 -0
- package/dist/collection/css/theme-engage.css +15 -0
- package/dist/collection/css/theme-protect.css +15 -0
- package/dist/collection/css/theme-proximus.css +15 -0
- package/dist/collection/mixins/anchored.mixin.js +2 -2
- package/dist/collection/mixins/links.mixin.js +1 -2
- package/dist/collection/mixins/menu-behavior.mixin.js +12 -6
- package/dist/collection/scss/maps/_theme-connect.scss +16 -1
- package/dist/collection/scss/maps/_theme-engage.scss +16 -1
- package/dist/collection/scss/maps/_theme-protect.scss +16 -1
- package/dist/collection/scss/maps/_theme-proximus.scss +16 -1
- package/dist/collection/scss/variables/_theme-connect.scss +16 -1
- package/dist/collection/scss/variables/_theme-engage.scss +16 -1
- package/dist/collection/scss/variables/_theme-protect.scss +16 -1
- package/dist/collection/scss/variables/_theme-proximus.scss +16 -1
- package/dist/collection/types/index.js +2 -1
- package/dist/collection/types/orientation.js +4 -0
- package/dist/collection/utils/a11y/index.js +4 -0
- package/dist/collection/utils/a11y/keyboard/KeyboardController.js +566 -0
- package/dist/collection/utils/a11y/keyboard/_constants.js +30 -0
- package/dist/collection/utils/a11y/keyboard/focus/aria-activedescendant.js +41 -0
- package/dist/collection/utils/a11y/keyboard/focus/resolve.js +48 -0
- package/dist/collection/utils/a11y/keyboard/focus/roving-tabindex.js +55 -0
- package/dist/collection/utils/a11y/keyboard/navigation/grid-navigation.js +194 -0
- package/dist/collection/utils/a11y/keyboard/navigation/linear-navigation.js +137 -0
- package/dist/collection/utils/a11y/keyboard/types/IKeyboardController.js +1 -0
- package/dist/collection/utils/a11y/keyboard/types/index.js +2 -0
- package/dist/collection/utils/a11y/keyboard/types/types.js +1 -0
- package/dist/collection/utils/constants/common/Keys.js +29 -24
- package/dist/collection/utils/dom/elements.js +63 -0
- package/dist/collection/utils/menu/menu-item.utils.js +9 -8
- package/dist/collection/utils/testing/helpers.js +10 -0
- package/dist/css/boreal.css +60 -0
- package/dist/css/theme-connect.css +15 -0
- package/dist/css/theme-engage.css +15 -0
- package/dist/css/theme-protect.css +15 -0
- package/dist/css/theme-proximus.css +15 -0
- package/dist/esm/KeyboardController-DcnXb5F5.js +1064 -0
- package/dist/esm/Keys-7G4h4DI7.js +31 -0
- package/dist/esm/Logger-iq2UuV7c.js +49 -0
- package/dist/esm/{attributes-CaHOghy5.js → attributes-U9yfbs7i.js} +3 -0
- package/dist/esm/bds-avatar.entry.js +2 -2
- package/dist/esm/bds-badge.entry.js +1 -1
- package/dist/esm/bds-banner.entry.js +2 -2
- package/dist/esm/bds-breadcrumb-item.entry.js +104 -0
- package/dist/esm/bds-breadcrumb.entry.js +125 -0
- package/dist/esm/bds-button-group.entry.js +114 -0
- package/dist/esm/bds-button.entry.js +36 -15
- package/dist/esm/bds-checkbox-button.entry.js +117 -0
- package/dist/esm/bds-checkbox-card.entry.js +133 -0
- package/dist/esm/bds-checkbox-group.entry.js +290 -0
- package/dist/esm/bds-checkbox.entry.js +67 -29
- package/dist/esm/bds-dialog.entry.js +4 -4
- package/dist/esm/bds-divider.entry.js +2 -2
- package/dist/esm/bds-flag.entry.js +1 -1
- package/dist/esm/bds-grid-item.entry.js +1 -1
- package/dist/esm/bds-grid.entry.js +1 -1
- package/dist/esm/bds-list-menu-item.entry.js +59 -23
- package/dist/esm/bds-list-menu.entry.js +126 -22
- package/dist/esm/bds-popover.entry.js +15 -6
- package/dist/esm/bds-radio-button.entry.js +58 -0
- package/dist/esm/bds-radio-card.entry.js +74 -0
- package/dist/esm/bds-radio-group.entry.js +289 -0
- package/dist/esm/bds-radio.entry.js +58 -0
- package/dist/esm/bds-select.entry.js +392 -0
- package/dist/esm/bds-slider.entry.js +653 -0
- package/dist/esm/bds-spinner.entry.js +1 -1
- package/dist/esm/bds-status.entry.js +1 -1
- package/dist/esm/bds-tag.entry.js +2 -2
- package/dist/esm/bds-text-field.entry.js +10 -4
- package/dist/esm/bds-toggle.entry.js +5 -4
- package/dist/esm/bds-tooltip_2.entry.js +12 -9
- package/dist/esm/boreal-web-components.js +1 -1
- package/dist/esm/checkbox-form-association-cgdh1LO-.js +41 -0
- package/dist/esm/coreColors-Dwo1hcd9.js +8 -0
- package/dist/esm/{enum-C8mRvnTA.js → enum-DlVzZK7o.js} +4 -4
- package/dist/esm/form-associated.mixin-C4HM8wQe.js +31 -0
- package/dist/esm/{getOffset-DKPjeBHi.js → getOffset-DCLpJBcp.js} +4 -51
- package/dist/esm/{form-associated.mixin-CvK2d92c.js → internals-DfaYciGa.js} +1 -31
- package/dist/esm/loader.js +1 -1
- package/dist/esm/orientation-CPvuMm5C.js +6 -0
- package/dist/esm-es5/KeyboardController-DcnXb5F5.js +1 -0
- package/dist/esm-es5/Keys-7G4h4DI7.js +1 -0
- package/dist/esm-es5/Logger-iq2UuV7c.js +1 -0
- package/dist/esm-es5/{attributes-CaHOghy5.js → attributes-U9yfbs7i.js} +1 -1
- package/dist/esm-es5/bds-avatar.entry.js +1 -1
- package/dist/esm-es5/bds-badge.entry.js +1 -1
- package/dist/esm-es5/bds-banner.entry.js +1 -1
- package/dist/esm-es5/bds-breadcrumb-item.entry.js +1 -0
- package/dist/esm-es5/bds-breadcrumb.entry.js +1 -0
- package/dist/esm-es5/bds-button-group.entry.js +1 -0
- package/dist/esm-es5/bds-button.entry.js +1 -1
- package/dist/esm-es5/bds-checkbox-button.entry.js +1 -0
- package/dist/esm-es5/bds-checkbox-card.entry.js +1 -0
- package/dist/esm-es5/bds-checkbox-group.entry.js +1 -0
- package/dist/esm-es5/bds-checkbox.entry.js +1 -1
- package/dist/esm-es5/bds-dialog.entry.js +1 -1
- package/dist/esm-es5/bds-divider.entry.js +1 -1
- package/dist/esm-es5/bds-flag.entry.js +1 -1
- package/dist/esm-es5/bds-grid-item.entry.js +1 -1
- package/dist/esm-es5/bds-grid.entry.js +1 -1
- package/dist/esm-es5/bds-list-menu-item.entry.js +1 -1
- package/dist/esm-es5/bds-list-menu.entry.js +1 -1
- package/dist/esm-es5/bds-popover.entry.js +1 -1
- package/dist/esm-es5/bds-radio-button.entry.js +1 -0
- package/dist/esm-es5/bds-radio-card.entry.js +1 -0
- package/dist/esm-es5/bds-radio-group.entry.js +1 -0
- package/dist/esm-es5/bds-radio.entry.js +1 -0
- package/dist/esm-es5/bds-select.entry.js +1 -0
- package/dist/esm-es5/bds-slider.entry.js +1 -0
- package/dist/esm-es5/bds-spinner.entry.js +1 -1
- package/dist/esm-es5/bds-status.entry.js +1 -1
- package/dist/esm-es5/bds-tag.entry.js +1 -1
- package/dist/esm-es5/bds-text-field.entry.js +1 -1
- package/dist/esm-es5/bds-toggle.entry.js +1 -1
- package/dist/esm-es5/bds-tooltip_2.entry.js +1 -1
- package/dist/esm-es5/boreal-web-components.js +1 -1
- package/dist/esm-es5/checkbox-form-association-cgdh1LO-.js +1 -0
- package/dist/esm-es5/coreColors-Dwo1hcd9.js +1 -0
- package/dist/esm-es5/enum-DlVzZK7o.js +1 -0
- package/dist/esm-es5/form-associated.mixin-C4HM8wQe.js +1 -0
- package/dist/esm-es5/getOffset-DCLpJBcp.js +1 -0
- package/dist/esm-es5/internals-DfaYciGa.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/orientation-CPvuMm5C.js +1 -0
- package/dist/scss/maps/_theme-connect.scss +16 -1
- package/dist/scss/maps/_theme-engage.scss +16 -1
- package/dist/scss/maps/_theme-protect.scss +16 -1
- package/dist/scss/maps/_theme-proximus.scss +16 -1
- package/dist/scss/variables/_theme-connect.scss +16 -1
- package/dist/scss/variables/_theme-engage.scss +16 -1
- package/dist/scss/variables/_theme-protect.scss +16 -1
- package/dist/scss/variables/_theme-proximus.scss +16 -1
- package/dist/types/components/actions/bds-button/bds-button.d.ts +8 -4
- package/dist/types/components/actions/bds-button/types/enum.d.ts +3 -3
- package/dist/types/components/actions/bds-button-group/bds-button-group.d.ts +40 -0
- package/dist/types/components/actions/bds-button-group/types/IButtonGroup.d.ts +11 -0
- package/dist/types/components/actions/bds-list-menu/bds-list-menu/bds-list-menu.d.ts +32 -15
- package/dist/types/components/actions/bds-list-menu/bds-list-menu/types/IListMenu.d.ts +17 -0
- package/dist/types/components/actions/bds-list-menu/bds-list-menu/types/enum.d.ts +5 -0
- package/dist/types/components/actions/bds-list-menu/bds-list-menu/types/types.d.ts +3 -0
- package/dist/types/components/actions/bds-list-menu/bds-list-menu-item/bds-list-menu-item.d.ts +10 -1
- package/dist/types/components/actions/bds-list-menu/bds-list-menu-item/types/IListMenuItem.d.ts +2 -0
- package/dist/types/components/actions/bds-toggle/types/IToggle.d.ts +1 -1
- package/dist/types/components/forms/bds-checkbox/{bds-checkbox.d.ts → bds-checkbox/bds-checkbox.d.ts} +24 -9
- package/dist/types/components/forms/bds-checkbox/bds-checkbox-button/bds-checkbox-button.d.ts +68 -0
- package/dist/types/components/forms/bds-checkbox/bds-checkbox-button/types/ICheckboxButton.d.ts +15 -0
- package/dist/types/components/forms/bds-checkbox/bds-checkbox-card/bds-checkbox-card.d.ts +63 -0
- package/dist/types/components/forms/bds-checkbox/bds-checkbox-card/types/ICheckboxCard.d.ts +9 -0
- package/dist/types/components/forms/bds-checkbox/bds-checkbox-group/bds-checkbox-group.d.ts +86 -0
- package/dist/types/components/forms/bds-checkbox/bds-checkbox-group/types/ICheckboxGroup.d.ts +27 -0
- package/dist/types/components/forms/bds-checkbox/bds-checkbox-group/types/enum.d.ts +6 -0
- package/dist/types/components/forms/bds-checkbox/bds-checkbox-group/types/index.d.ts +4 -0
- package/dist/types/components/forms/bds-checkbox/bds-checkbox-group/types/types.d.ts +4 -0
- package/dist/types/components/forms/bds-checkbox/types/ICheckbox.d.ts +7 -22
- package/dist/types/components/forms/bds-checkbox/utils/checkbox-form-association.d.ts +10 -0
- package/dist/types/components/forms/bds-checkbox/utils/index.d.ts +2 -0
- package/dist/types/components/forms/bds-radio/bds-radio/bds-radio.d.ts +36 -0
- package/dist/types/components/forms/bds-radio/bds-radio/types/IRadio.d.ts +13 -0
- package/dist/types/components/forms/bds-radio/bds-radio-button/bds-radio-button.d.ts +36 -0
- package/dist/types/components/forms/bds-radio/bds-radio-button/types/IRadioButton.d.ts +14 -0
- package/dist/types/components/forms/bds-radio/bds-radio-card/bds-radio-card.d.ts +57 -0
- package/dist/types/components/forms/bds-radio/bds-radio-card/types/IRadioCard.d.ts +14 -0
- package/dist/types/components/forms/bds-radio/bds-radio-group/bds-radio-group.d.ts +85 -0
- package/dist/types/components/forms/bds-radio/bds-radio-group/types/IRadioGroup.d.ts +20 -0
- package/dist/types/components/forms/bds-radio/bds-radio-group/types/enum.d.ts +6 -0
- package/dist/types/components/forms/bds-radio/bds-radio-group/types/types.d.ts +3 -0
- package/dist/types/components/forms/bds-select/bds-select.d.ts +98 -0
- package/dist/types/components/forms/bds-select/types/ISelect.d.ts +6 -0
- package/dist/types/components/forms/bds-slider/bds-slider.d.ts +176 -0
- package/dist/types/components/forms/bds-slider/helpers/SliderDOMController.d.ts +38 -0
- package/dist/types/components/forms/bds-slider/helpers/SliderService.d.ts +44 -0
- package/dist/types/components/forms/bds-slider/helpers/index.d.ts +4 -0
- package/dist/types/components/forms/bds-slider/helpers/parseValues.d.ts +18 -0
- package/dist/types/components/forms/bds-slider/types/ChangeDetail.d.ts +9 -0
- package/dist/types/components/forms/bds-slider/types/ISlider.d.ts +17 -0
- package/dist/types/components/forms/bds-slider/types/ISliderOptions.d.ts +31 -0
- package/dist/types/components/forms/bds-slider/types/enum.d.ts +17 -0
- package/dist/types/components/forms/bds-slider/types/index.d.ts +6 -0
- package/dist/types/components/forms/bds-slider/types/types.d.ts +5 -0
- package/dist/types/components/forms/bds-text-field/bds-text-field.d.ts +4 -0
- package/dist/types/components/navigation/bds-breadcrumb/bds-breadcrumb.d.ts +57 -0
- package/dist/types/components/navigation/bds-breadcrumb/types/IBreadcrumb.d.ts +17 -0
- package/dist/types/components/navigation/bds-breadcrumb-item/bds-breadcrumb-item.d.ts +83 -0
- package/dist/types/components/navigation/bds-breadcrumb-item/types/IBreadcrumbItem.d.ts +20 -0
- package/dist/types/components/overlays/bds-popover/bds-popover.d.ts +4 -0
- package/dist/types/components/titles-text/bds-typography/bds-typography.d.ts +2 -46
- package/dist/types/components/titles-text/bds-typography/types/ITypography.d.ts +1 -0
- package/dist/types/components.d.ts +2187 -450
- package/dist/types/mixins/menu-behavior.mixin.d.ts +5 -1
- package/dist/types/types/form.d.ts +24 -0
- package/dist/types/types/index.d.ts +2 -1
- package/dist/types/types/orientation.d.ts +6 -0
- package/dist/types/utils/a11y/index.d.ts +4 -0
- package/dist/types/utils/a11y/keyboard/KeyboardController.d.ts +321 -0
- package/dist/types/utils/a11y/keyboard/_constants.d.ts +28 -0
- package/dist/types/utils/a11y/keyboard/focus/aria-activedescendant.d.ts +17 -0
- package/dist/types/utils/a11y/keyboard/focus/resolve.d.ts +23 -0
- package/dist/types/utils/a11y/keyboard/focus/roving-tabindex.d.ts +20 -0
- package/dist/types/utils/a11y/keyboard/navigation/grid-navigation.d.ts +9 -0
- package/dist/types/utils/a11y/keyboard/navigation/linear-navigation.d.ts +13 -0
- package/dist/types/utils/a11y/keyboard/types/IKeyboardController.d.ts +125 -0
- package/dist/types/utils/a11y/keyboard/types/index.d.ts +3 -0
- package/dist/types/utils/a11y/keyboard/types/types.d.ts +6 -0
- package/dist/types/utils/constants/common/Keys.d.ts +28 -14
- package/dist/types/utils/dom/elements.d.ts +41 -0
- package/dist/types/utils/menu/menu-item.utils.d.ts +2 -2
- package/dist/types/utils/testing/helpers.d.ts +8 -0
- package/package.json +1 -1
- package/components-build/p-B8n1ru5i.js +0 -1
- package/components-build/p-CGdxFth9.js +0 -1
- package/components-build/p-CrAt6pGl.js +0 -1
- package/components-build/p-DCwT43Kz.js +0 -1
- package/components-build/p-DIY3CDNL.js +0 -1
- package/dist/boreal-web-components/p-0028481c.entry.js +0 -1
- package/dist/boreal-web-components/p-1466de58.system.entry.js +0 -1
- package/dist/boreal-web-components/p-2b8bd1dd.entry.js +0 -1
- package/dist/boreal-web-components/p-32c23246.system.entry.js +0 -1
- package/dist/boreal-web-components/p-3fbcc233.entry.js +0 -1
- package/dist/boreal-web-components/p-401f1aee.system.entry.js +0 -1
- package/dist/boreal-web-components/p-41b48701.system.entry.js +0 -1
- package/dist/boreal-web-components/p-41cac1b8.system.entry.js +0 -1
- package/dist/boreal-web-components/p-627b19a5.system.entry.js +0 -1
- package/dist/boreal-web-components/p-649737e5.entry.js +0 -1
- package/dist/boreal-web-components/p-64cb5825.entry.js +0 -1
- package/dist/boreal-web-components/p-6a99f4c6.system.entry.js +0 -1
- package/dist/boreal-web-components/p-731b88cc.entry.js +0 -1
- package/dist/boreal-web-components/p-74c13bed.system.entry.js +0 -1
- package/dist/boreal-web-components/p-7f7ac40f.entry.js +0 -1
- package/dist/boreal-web-components/p-82d49661.entry.js +0 -1
- package/dist/boreal-web-components/p-83ca193e.entry.js +0 -1
- package/dist/boreal-web-components/p-BQ_zoZa2.js +0 -1
- package/dist/boreal-web-components/p-C8mRvnTA.js +0 -1
- package/dist/boreal-web-components/p-CdKFZYxk.system.js +0 -1
- package/dist/boreal-web-components/p-CtknSula.system.js +0 -1
- package/dist/boreal-web-components/p-CvK2d92c.js +0 -1
- package/dist/boreal-web-components/p-CzYQb3pP.js +0 -1
- package/dist/boreal-web-components/p-DZcx75cy.system.js +0 -1
- package/dist/boreal-web-components/p-Dme-NuTD.system.js +0 -1
- package/dist/boreal-web-components/p-ab5ffa15.system.entry.js +0 -1
- package/dist/boreal-web-components/p-ba2b625a.system.entry.js +0 -1
- package/dist/boreal-web-components/p-bf2ef10b.entry.js +0 -1
- package/dist/boreal-web-components/p-c7aee9f4.system.entry.js +0 -1
- package/dist/cjs/Keys-DbIXSJF2.js +0 -22
- package/dist/collection/components/forms/bds-checkbox/bds-checkbox.css +0 -90
- package/dist/esm/Keys-CzYQb3pP.js +0 -20
- package/dist/esm-es5/Keys-CzYQb3pP.js +0 -1
- package/dist/esm-es5/enum-C8mRvnTA.js +0 -1
- package/dist/esm-es5/form-associated.mixin-CvK2d92c.js +0 -1
- package/dist/esm-es5/getOffset-DKPjeBHi.js +0 -1
- package/dist/types/types/IFormProps.d.ts +0 -25
- /package/dist/collection/components/{helpers/types/IDivider.js → actions/bds-button-group/types/IButtonGroup.js} +0 -0
- /package/dist/collection/components/{helpers/types/types.js → actions/bds-list-menu/bds-list-menu/types/IListMenu.js} +0 -0
- /package/dist/collection/components/{layouts/bds-grid/grid-item → actions/bds-list-menu/bds-list-menu}/types/types.js +0 -0
- /package/dist/collection/components/{layouts/bds-grid/grid-item/types/IGridItem.js → forms/bds-checkbox/bds-checkbox-button/types/ICheckboxButton.js} +0 -0
- /package/dist/collection/components/{layouts/bds-grid/grid/types/IGrid.js → forms/bds-checkbox/bds-checkbox-card/types/ICheckboxCard.js} +0 -0
- /package/dist/collection/components/{layouts/bds-grid/grid/types/types.js → forms/bds-checkbox/bds-checkbox-group/types/ICheckboxGroup.js} +0 -0
- /package/dist/collection/{types/IFormProps.js → components/forms/bds-checkbox/bds-checkbox-group/types/types.js} +0 -0
- /package/dist/collection/components/helpers/{types → bds-divider/types}/enum.js +0 -0
- /package/dist/collection/components/layouts/bds-grid/{grid → bds-grid}/bds-grid.css +0 -0
- /package/dist/collection/components/layouts/bds-grid/{grid → bds-grid}/types/enum.js +0 -0
- /package/dist/collection/components/layouts/bds-grid/{grid → bds-grid}/types/index.js +0 -0
- /package/dist/collection/components/layouts/bds-grid/{grid-item → bds-grid-item}/bds-grid-item.css +0 -0
- /package/dist/collection/components/layouts/bds-grid/{grid-item → bds-grid-item}/types/enum.js +0 -0
- /package/dist/collection/components/layouts/bds-grid/{grid-item → bds-grid-item}/types/index.js +0 -0
- /package/dist/types/components/helpers/{bds-divider.d.ts → bds-divider/bds-divider.d.ts} +0 -0
- /package/dist/types/components/helpers/{types → bds-divider/types}/IDivider.d.ts +0 -0
- /package/dist/types/components/helpers/{types → bds-divider/types}/enum.d.ts +0 -0
- /package/dist/types/components/helpers/{types → bds-divider/types}/types.d.ts +0 -0
- /package/dist/types/components/layouts/bds-grid/{grid → bds-grid}/bds-grid.d.ts +0 -0
- /package/dist/types/components/layouts/bds-grid/{grid → bds-grid}/types/IGrid.d.ts +0 -0
- /package/dist/types/components/layouts/bds-grid/{grid → bds-grid}/types/enum.d.ts +0 -0
- /package/dist/types/components/layouts/bds-grid/{grid → bds-grid}/types/index.d.ts +0 -0
- /package/dist/types/components/layouts/bds-grid/{grid → bds-grid}/types/types.d.ts +0 -0
- /package/dist/types/components/layouts/bds-grid/{grid-item → bds-grid-item}/bds-grid-item.d.ts +0 -0
- /package/dist/types/components/layouts/bds-grid/{grid-item → bds-grid-item}/types/IGridItem.d.ts +0 -0
- /package/dist/types/components/layouts/bds-grid/{grid-item → bds-grid-item}/types/enum.d.ts +0 -0
- /package/dist/types/components/layouts/bds-grid/{grid-item → bds-grid-item}/types/index.d.ts +0 -0
- /package/dist/types/components/layouts/bds-grid/{grid-item → bds-grid-item}/types/types.d.ts +0 -0
|
@@ -8,19 +8,32 @@ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
|
8
8
|
import { IAvatar } from "./components/images-icons/bds-avatar/types";
|
|
9
9
|
import { IBadge } from "./components/feedback/bds-badge/types/IBadge";
|
|
10
10
|
import { IBanner } from "./components/feedback/bds-banner/types/IBanner";
|
|
11
|
+
import { BdsClickBreadcrumbEvent, BdsClickCollapsedEvent } from "./components/navigation/bds-breadcrumb/types/IBreadcrumb";
|
|
12
|
+
import { BdsClickCollapseEvent, BdsClickItemEvent } from "./components/navigation/bds-breadcrumb-item/types/IBreadcrumbItem";
|
|
11
13
|
import { IButton } from "./components/actions/bds-button/types/IButton";
|
|
14
|
+
import { IButtonGroup } from "./components/actions/bds-button-group/types/IButtonGroup";
|
|
12
15
|
import { CheckboxChangeDetail } from "./components/forms/bds-checkbox/types/ICheckbox";
|
|
16
|
+
import { CheckboxButtonChangeDetail } from "./components/forms/bds-checkbox/bds-checkbox-button/types/ICheckboxButton";
|
|
17
|
+
import { ICheckboxCard } from "./components/forms/bds-checkbox/bds-checkbox-card/types/ICheckboxCard";
|
|
18
|
+
import { IFormValidator, Orientation } from "./types/index";
|
|
19
|
+
import { CheckboxGroupChangeDetail, CheckboxGroupType } from "./components/forms/bds-checkbox/bds-checkbox-group/types";
|
|
13
20
|
import { IDialog } from "./components/overlays/bds-dialog/types";
|
|
14
|
-
import { IDivider } from "./components/helpers/types/IDivider";
|
|
21
|
+
import { IDivider } from "./components/helpers/bds-divider/types/IDivider";
|
|
15
22
|
import { IFlag } from "./components/forms/bds-flag/interfaces/IFlag";
|
|
16
|
-
import { IGrid } from "./components/layouts/bds-grid/grid/types";
|
|
17
|
-
import { IGridItem } from "./components/layouts/bds-grid/grid-item/types";
|
|
23
|
+
import { IGrid } from "./components/layouts/bds-grid/bds-grid/types";
|
|
24
|
+
import { IGridItem } from "./components/layouts/bds-grid/bds-grid-item/types";
|
|
25
|
+
import { IListMenu, ListMenuChangeDetail } from "./components/actions/bds-list-menu/bds-list-menu/types/IListMenu";
|
|
18
26
|
import { IListMenuItem, IListMenuItemEvent } from "./components/actions/bds-list-menu/bds-list-menu-item/types/IListMenuItem";
|
|
19
27
|
import { IPopover } from "./components/overlays/bds-popover/types/IPopover";
|
|
28
|
+
import { RadioChangeDetail } from "./components/forms/bds-radio/bds-radio/types/IRadio";
|
|
29
|
+
import { RadioButtonChangeDetail } from "./components/forms/bds-radio/bds-radio-button/types/IRadioButton";
|
|
30
|
+
import { IRadioCard, RadioCardChangeDetail } from "./components/forms/bds-radio/bds-radio-card/types/IRadioCard";
|
|
31
|
+
import { RadioGroupType } from "./components/forms/bds-radio/bds-radio-group/types/types";
|
|
32
|
+
import { RadioGroupChangeDetail } from "./components/forms/bds-radio/bds-radio-group/types/IRadioGroup";
|
|
33
|
+
import { SliderChangeDetail, SliderRawValue, SliderTooltipType, SliderType } from "./components/forms/bds-slider/types";
|
|
20
34
|
import { ISpinner } from "./components/feedback/bds-spinner/types/ISpinner";
|
|
21
35
|
import { IStatus } from "./components/feedback/bds-status/types/IStatus";
|
|
22
36
|
import { ITag, TagEventPayload } from "./components/feedback/bds-tag/types";
|
|
23
|
-
import { IFormValidator } from "./types/index";
|
|
24
37
|
import { TextFieldType, TextFieldValidationTiming, TextFieldVariant } from "./components/forms/bds-text-field/types";
|
|
25
38
|
import { Event } from "./stencil-public-runtime";
|
|
26
39
|
import { IToggle } from "./components/actions/bds-toggle/types";
|
|
@@ -31,19 +44,32 @@ import { ITypography } from "./components/titles-text/bds-typography/types/ITypo
|
|
|
31
44
|
export { IAvatar } from "./components/images-icons/bds-avatar/types";
|
|
32
45
|
export { IBadge } from "./components/feedback/bds-badge/types/IBadge";
|
|
33
46
|
export { IBanner } from "./components/feedback/bds-banner/types/IBanner";
|
|
47
|
+
export { BdsClickBreadcrumbEvent, BdsClickCollapsedEvent } from "./components/navigation/bds-breadcrumb/types/IBreadcrumb";
|
|
48
|
+
export { BdsClickCollapseEvent, BdsClickItemEvent } from "./components/navigation/bds-breadcrumb-item/types/IBreadcrumbItem";
|
|
34
49
|
export { IButton } from "./components/actions/bds-button/types/IButton";
|
|
50
|
+
export { IButtonGroup } from "./components/actions/bds-button-group/types/IButtonGroup";
|
|
35
51
|
export { CheckboxChangeDetail } from "./components/forms/bds-checkbox/types/ICheckbox";
|
|
52
|
+
export { CheckboxButtonChangeDetail } from "./components/forms/bds-checkbox/bds-checkbox-button/types/ICheckboxButton";
|
|
53
|
+
export { ICheckboxCard } from "./components/forms/bds-checkbox/bds-checkbox-card/types/ICheckboxCard";
|
|
54
|
+
export { IFormValidator, Orientation } from "./types/index";
|
|
55
|
+
export { CheckboxGroupChangeDetail, CheckboxGroupType } from "./components/forms/bds-checkbox/bds-checkbox-group/types";
|
|
36
56
|
export { IDialog } from "./components/overlays/bds-dialog/types";
|
|
37
|
-
export { IDivider } from "./components/helpers/types/IDivider";
|
|
57
|
+
export { IDivider } from "./components/helpers/bds-divider/types/IDivider";
|
|
38
58
|
export { IFlag } from "./components/forms/bds-flag/interfaces/IFlag";
|
|
39
|
-
export { IGrid } from "./components/layouts/bds-grid/grid/types";
|
|
40
|
-
export { IGridItem } from "./components/layouts/bds-grid/grid-item/types";
|
|
59
|
+
export { IGrid } from "./components/layouts/bds-grid/bds-grid/types";
|
|
60
|
+
export { IGridItem } from "./components/layouts/bds-grid/bds-grid-item/types";
|
|
61
|
+
export { IListMenu, ListMenuChangeDetail } from "./components/actions/bds-list-menu/bds-list-menu/types/IListMenu";
|
|
41
62
|
export { IListMenuItem, IListMenuItemEvent } from "./components/actions/bds-list-menu/bds-list-menu-item/types/IListMenuItem";
|
|
42
63
|
export { IPopover } from "./components/overlays/bds-popover/types/IPopover";
|
|
64
|
+
export { RadioChangeDetail } from "./components/forms/bds-radio/bds-radio/types/IRadio";
|
|
65
|
+
export { RadioButtonChangeDetail } from "./components/forms/bds-radio/bds-radio-button/types/IRadioButton";
|
|
66
|
+
export { IRadioCard, RadioCardChangeDetail } from "./components/forms/bds-radio/bds-radio-card/types/IRadioCard";
|
|
67
|
+
export { RadioGroupType } from "./components/forms/bds-radio/bds-radio-group/types/types";
|
|
68
|
+
export { RadioGroupChangeDetail } from "./components/forms/bds-radio/bds-radio-group/types/IRadioGroup";
|
|
69
|
+
export { SliderChangeDetail, SliderRawValue, SliderTooltipType, SliderType } from "./components/forms/bds-slider/types";
|
|
43
70
|
export { ISpinner } from "./components/feedback/bds-spinner/types/ISpinner";
|
|
44
71
|
export { IStatus } from "./components/feedback/bds-status/types/IStatus";
|
|
45
72
|
export { ITag, TagEventPayload } from "./components/feedback/bds-tag/types";
|
|
46
|
-
export { IFormValidator } from "./types/index";
|
|
47
73
|
export { TextFieldType, TextFieldValidationTiming, TextFieldVariant } from "./components/forms/bds-text-field/types";
|
|
48
74
|
export { Event } from "./stencil-public-runtime";
|
|
49
75
|
export { IToggle } from "./components/actions/bds-toggle/types";
|
|
@@ -145,6 +171,82 @@ export namespace Components {
|
|
|
145
171
|
*/
|
|
146
172
|
"variant": IBanner['variant'];
|
|
147
173
|
}
|
|
174
|
+
/**
|
|
175
|
+
* @summary Breadcrumb navigation container component. Provides a structured navigation trail and
|
|
176
|
+
* handles overflow using a collapse mechanism when the number of items exceeds `maxItems`.
|
|
177
|
+
*/
|
|
178
|
+
interface BdsBreadcrumb {
|
|
179
|
+
/**
|
|
180
|
+
* Number of items visible at the end after collapse occurs.
|
|
181
|
+
* @default 1
|
|
182
|
+
*/
|
|
183
|
+
"itemsAfterCollapse": number;
|
|
184
|
+
/**
|
|
185
|
+
* Number of items visible at the start before collapse occurs.
|
|
186
|
+
* @default 1
|
|
187
|
+
*/
|
|
188
|
+
"itemsBeforeCollapse": number;
|
|
189
|
+
/**
|
|
190
|
+
* Maximum number of breadcrumb items visible before collapsing. If set to 0 or undefined, no collapsing is applied.
|
|
191
|
+
* @default 0
|
|
192
|
+
*/
|
|
193
|
+
"maxItems": number;
|
|
194
|
+
/**
|
|
195
|
+
* Separator rendered between breadcrumb items.
|
|
196
|
+
* @default "/"
|
|
197
|
+
*/
|
|
198
|
+
"separator": string;
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* @summary Breadcrumb navigation item component that represents a single step within a breadcrumb navigation trail.
|
|
202
|
+
*/
|
|
203
|
+
interface BdsBreadcrumbItem {
|
|
204
|
+
/**
|
|
205
|
+
* Marks this breadcrumb item as the current page. When true, the item is non-interactive and has aria-current="page".
|
|
206
|
+
* @default false
|
|
207
|
+
*/
|
|
208
|
+
"active": boolean;
|
|
209
|
+
/**
|
|
210
|
+
* Internal prop controlled by the parent breadcrumb. Indicates that this item is part of a collapsed range.
|
|
211
|
+
* @default false
|
|
212
|
+
*/
|
|
213
|
+
"collapsed": boolean;
|
|
214
|
+
/**
|
|
215
|
+
* Enables download behavior for the link.
|
|
216
|
+
* @default false
|
|
217
|
+
*/
|
|
218
|
+
"downloadable": boolean;
|
|
219
|
+
/**
|
|
220
|
+
* Suggested filename for the downloaded file.
|
|
221
|
+
* @default 'filename'
|
|
222
|
+
*/
|
|
223
|
+
"filename": string;
|
|
224
|
+
/**
|
|
225
|
+
* URL for the breadcrumb link.
|
|
226
|
+
* @default ''
|
|
227
|
+
*/
|
|
228
|
+
"href": string;
|
|
229
|
+
/**
|
|
230
|
+
* Relationship between the current document and the linked resource.
|
|
231
|
+
* @default ''
|
|
232
|
+
*/
|
|
233
|
+
"rel": string;
|
|
234
|
+
/**
|
|
235
|
+
* Enables router-based navigation instead of native link navigation.
|
|
236
|
+
* @default false
|
|
237
|
+
*/
|
|
238
|
+
"router": boolean;
|
|
239
|
+
/**
|
|
240
|
+
* Internal prop controlled by the parent breadcrumb. Renders the collapse indicator ("...") for hidden items.
|
|
241
|
+
* @default false
|
|
242
|
+
*/
|
|
243
|
+
"showCollapse": boolean;
|
|
244
|
+
/**
|
|
245
|
+
* Specifies where to open the linked document.
|
|
246
|
+
* @default '_self'
|
|
247
|
+
*/
|
|
248
|
+
"target": '_blank' | '_parent' | '_self' | '_top';
|
|
249
|
+
}
|
|
148
250
|
/**
|
|
149
251
|
* Button component for user interactions, form submissions, supporting various styles, sizes, and states.
|
|
150
252
|
* @summary A versatile button component that can be customized with different colors, sizes, variants and states to fit various use cases in the application.
|
|
@@ -154,7 +256,7 @@ export namespace Components {
|
|
|
154
256
|
* @attr {string} type - The type of the button, which can be 'button', 'submit', or 'reset'. Default is 'button'.
|
|
155
257
|
* @attr {string} color - The color theme of the button, which can be 'default', 'primary', 'success', or 'error'. Default is 'default'.
|
|
156
258
|
* @attr {string} variant - The visual style of the button, which can be 'default', 'outline', or 'plain'. Default is 'default'.
|
|
157
|
-
* @attr {string} size - The size of the button, which can be '
|
|
259
|
+
* @attr {string} size - The size of the button, which can be 'sm', 'md', or 'lg'. Default is 'md'.
|
|
158
260
|
* @attr {boolean} loading - Indicates whether the button is in a loading state, which can be used to show a loading spinner and disable the button. Default is false.
|
|
159
261
|
* @attr {boolean} disclosure - Indicates if the button should show a chevron down at the end of the content.
|
|
160
262
|
* @property {string} label - The accessible name for the button, used for screen readers. It should be provided by the user for accessibility purposes.
|
|
@@ -163,13 +265,13 @@ export namespace Components {
|
|
|
163
265
|
* @property {string} type - The type of the button, which can be 'button', 'submit', or 'reset'. Default is 'button'.
|
|
164
266
|
* @property {string} color - The color theme of the button, which can be 'default', 'primary', 'success', or 'error'. Default is 'default'.
|
|
165
267
|
* @property {string} variant - The visual style of the button, which can be 'default', 'outline', or 'plain'. Default is 'default'.
|
|
166
|
-
* @property {string} size - The size of the button, which can be '
|
|
268
|
+
* @property {string} size - The size of the button, which can be 'sm', 'md', or 'lg'. Default is 'md'.
|
|
167
269
|
* @property {boolean} loading - Indicates whether the button is in a loading state, which can be used to show a loading spinner and disable the button. Default is false.
|
|
168
270
|
* @property {boolean} disclosure - Indicates if the button should show a chevron down at the end of the content.
|
|
169
271
|
* @default 'button' - Default type value
|
|
170
272
|
* @default 'default' - Default color value
|
|
171
273
|
* @default 'default' - Default variant value
|
|
172
|
-
* @default '
|
|
274
|
+
* @default 'md' - Default size value
|
|
173
275
|
* @default 'default' - Default status value
|
|
174
276
|
* @default false - Default disabled value
|
|
175
277
|
* @default '' - Default label value
|
|
@@ -209,7 +311,7 @@ export namespace Components {
|
|
|
209
311
|
*/
|
|
210
312
|
"name": IButton['name'];
|
|
211
313
|
/**
|
|
212
|
-
* size is a string attribute. The size of the button, which can be '
|
|
314
|
+
* size is a string attribute. The size of the button, which can be 'sm', 'md', or 'lg'. Default is 'md'.
|
|
213
315
|
* @default BUTTON_SIZES.MEDIUM
|
|
214
316
|
*/
|
|
215
317
|
"size": IButton['size'];
|
|
@@ -224,6 +326,36 @@ export namespace Components {
|
|
|
224
326
|
*/
|
|
225
327
|
"variant": IButton['variant'];
|
|
226
328
|
}
|
|
329
|
+
/**
|
|
330
|
+
* Button group component for grouping related buttons together in a unified visual unit.
|
|
331
|
+
*/
|
|
332
|
+
interface BdsButtonGroup {
|
|
333
|
+
/**
|
|
334
|
+
* Controls the color applied to all child `<bds-button>` elements. Accepted values: see `CoreColors`. Default is `default`.
|
|
335
|
+
* @default CORE_COLORS.DEFAULT
|
|
336
|
+
*/
|
|
337
|
+
"color": IButtonGroup['color'];
|
|
338
|
+
/**
|
|
339
|
+
* Provides an accessible label for the button group.
|
|
340
|
+
* @default 'Button group'
|
|
341
|
+
*/
|
|
342
|
+
"label": IButtonGroup['label'];
|
|
343
|
+
/**
|
|
344
|
+
* Controls the layout direction of the grouped buttons. Accepted values: `'horizontal'`, `'vertical'`. Default is `'horizontal'`.
|
|
345
|
+
* @default ORIENTATIONS.HORIZONTAL
|
|
346
|
+
*/
|
|
347
|
+
"orientation": IButtonGroup['orientation'];
|
|
348
|
+
/**
|
|
349
|
+
* Controls the size applied to all child `<bds-button>` elements. Accepted values: `'sm'`, `'md'`, `'lg'`. Default is `'md'`.
|
|
350
|
+
* @default BUTTON_SIZES.MEDIUM
|
|
351
|
+
*/
|
|
352
|
+
"size": IButtonGroup['size'];
|
|
353
|
+
/**
|
|
354
|
+
* Controls the variant applied to all child `<bds-button>` elements. Accepted values: `'default'`, `'outline'`, `'plain'`. Default is `'default'`.
|
|
355
|
+
* @default BUTTON_VARIANTS.DEFAULT
|
|
356
|
+
*/
|
|
357
|
+
"variant": IButtonGroup['variant'];
|
|
358
|
+
}
|
|
227
359
|
/**
|
|
228
360
|
* Checkbox component for boolean selection with three visual states.
|
|
229
361
|
* @summary A checkbox form control with default, selected, and indeterminate states.
|
|
@@ -236,13 +368,17 @@ export namespace Components {
|
|
|
236
368
|
* @fires bdsChange - Emitted when the user toggles the checkbox. Payload: `{ checked: boolean, value: string }`.
|
|
237
369
|
*/
|
|
238
370
|
interface BdsCheckbox {
|
|
371
|
+
/**
|
|
372
|
+
* Reports the group's validity state to the user, showing native validation UI if invalid.
|
|
373
|
+
*/
|
|
374
|
+
"checkValidity": () => Promise<boolean>;
|
|
239
375
|
/**
|
|
240
376
|
* Whether the checkbox is selected.
|
|
241
377
|
* @default false
|
|
242
378
|
*/
|
|
243
379
|
"checked": boolean;
|
|
244
380
|
/**
|
|
245
|
-
* Disables the
|
|
381
|
+
* Disables the checkbox.
|
|
246
382
|
* @default false
|
|
247
383
|
*/
|
|
248
384
|
"disabled": boolean;
|
|
@@ -256,6 +392,11 @@ export namespace Components {
|
|
|
256
392
|
* @default false
|
|
257
393
|
*/
|
|
258
394
|
"indeterminate": boolean;
|
|
395
|
+
/**
|
|
396
|
+
* Tooltip text for the checkbox.
|
|
397
|
+
* @default ''
|
|
398
|
+
*/
|
|
399
|
+
"info": string;
|
|
259
400
|
/**
|
|
260
401
|
* Label displayed next to the checkbox. If not provided, the default slot is used.
|
|
261
402
|
* @default ''
|
|
@@ -263,10 +404,15 @@ export namespace Components {
|
|
|
263
404
|
"label": string;
|
|
264
405
|
/**
|
|
265
406
|
* Name of the form control, submitted as a key in the form data.
|
|
407
|
+
* @default ''
|
|
266
408
|
*/
|
|
267
409
|
"name": string;
|
|
268
410
|
/**
|
|
269
|
-
*
|
|
411
|
+
* Reports the group's validity state to the user, showing native validation UI if invalid.
|
|
412
|
+
*/
|
|
413
|
+
"reportValidity": () => Promise<boolean>;
|
|
414
|
+
/**
|
|
415
|
+
* Marks the checkbox as required for form submission.
|
|
270
416
|
* @default false
|
|
271
417
|
*/
|
|
272
418
|
"required": boolean;
|
|
@@ -276,6 +422,188 @@ export namespace Components {
|
|
|
276
422
|
*/
|
|
277
423
|
"value": string;
|
|
278
424
|
}
|
|
425
|
+
/**
|
|
426
|
+
* Button-shaped checkbox option that toggles independently on each interaction.
|
|
427
|
+
* Renders as a pill-button with the same visual language as `bds-radio-button`, but uses
|
|
428
|
+
* `role="checkbox"` and multi-select semantics — toggling one button has no effect on others.
|
|
429
|
+
* Can be used standalone (with `name` and optional `required`) or inside a `bds-checkbox-group`,
|
|
430
|
+
* which is the recommended approach for coordinated form state and group-level validation.
|
|
431
|
+
*/
|
|
432
|
+
interface BdsCheckboxButton {
|
|
433
|
+
/**
|
|
434
|
+
* Returns whether this button satisfies its validation constraints.
|
|
435
|
+
*/
|
|
436
|
+
"checkValidity": () => Promise<boolean>;
|
|
437
|
+
/**
|
|
438
|
+
* Toggle state of this button. Flips on every interaction when not disabled.
|
|
439
|
+
* @default false
|
|
440
|
+
*/
|
|
441
|
+
"checked": boolean;
|
|
442
|
+
/**
|
|
443
|
+
* Disables the button, preventing interaction. Propagated by `bds-checkbox-group` when the group is disabled.
|
|
444
|
+
* @default false
|
|
445
|
+
*/
|
|
446
|
+
"disabled": boolean;
|
|
447
|
+
/**
|
|
448
|
+
* Shows error styling on the button.
|
|
449
|
+
* @default false
|
|
450
|
+
*/
|
|
451
|
+
"error": boolean;
|
|
452
|
+
/**
|
|
453
|
+
* Tooltip text shown on an info icon next to the label.
|
|
454
|
+
* @default ''
|
|
455
|
+
*/
|
|
456
|
+
"info": string;
|
|
457
|
+
/**
|
|
458
|
+
* Label text displayed inside the button. Falls back to the default slot when empty.
|
|
459
|
+
* @default ''
|
|
460
|
+
*/
|
|
461
|
+
"label": string;
|
|
462
|
+
/**
|
|
463
|
+
* Name of the form control, submitted as a key in the form data.
|
|
464
|
+
* @default ''
|
|
465
|
+
*/
|
|
466
|
+
"name": string;
|
|
467
|
+
/**
|
|
468
|
+
* Reports validity to the user, showing native validation UI if invalid.
|
|
469
|
+
*/
|
|
470
|
+
"reportValidity": () => Promise<boolean>;
|
|
471
|
+
/**
|
|
472
|
+
* Marks this button as required for form submission. Has no effect when used inside `bds-checkbox-group`.
|
|
473
|
+
* @default false
|
|
474
|
+
*/
|
|
475
|
+
"required": boolean;
|
|
476
|
+
/**
|
|
477
|
+
* Value associated with this button; submitted with form data when checked.
|
|
478
|
+
* @default 'on'
|
|
479
|
+
*/
|
|
480
|
+
"value": string;
|
|
481
|
+
}
|
|
482
|
+
/**
|
|
483
|
+
* @summary Checkbox card component is a selectable card-based checkbox option.
|
|
484
|
+
*/
|
|
485
|
+
interface BdsCheckboxCard {
|
|
486
|
+
/**
|
|
487
|
+
* Reports the group's validity state to the user, showing native validation UI if invalid.
|
|
488
|
+
*/
|
|
489
|
+
"checkValidity": () => Promise<boolean>;
|
|
490
|
+
/**
|
|
491
|
+
* Whether this checkbox card is selected.
|
|
492
|
+
* @default false
|
|
493
|
+
*/
|
|
494
|
+
"checked": ICheckboxCard['checked'];
|
|
495
|
+
/**
|
|
496
|
+
* Disables the control.
|
|
497
|
+
* @default false
|
|
498
|
+
*/
|
|
499
|
+
"disabled": ICheckboxCard['disabled'];
|
|
500
|
+
/**
|
|
501
|
+
* Whether the checkbox card is in an error state.
|
|
502
|
+
* @default false
|
|
503
|
+
*/
|
|
504
|
+
"error": ICheckboxCard['error'];
|
|
505
|
+
/**
|
|
506
|
+
* Whether the checkbox card shows an indeterminate visual state.
|
|
507
|
+
* @default false
|
|
508
|
+
*/
|
|
509
|
+
"indeterminate": ICheckboxCard['indeterminate'];
|
|
510
|
+
/**
|
|
511
|
+
* Label text displayed next to the checkbox indicator. Falls back to the default slot when empty.
|
|
512
|
+
* @default ''
|
|
513
|
+
*/
|
|
514
|
+
"label": ICheckboxCard['label'];
|
|
515
|
+
/**
|
|
516
|
+
* Name of the form control, submitted as a key in the form data.
|
|
517
|
+
*/
|
|
518
|
+
"name": ICheckboxCard['name'];
|
|
519
|
+
/**
|
|
520
|
+
* Reports the group's validity state to the user, showing native validation UI if invalid.
|
|
521
|
+
*/
|
|
522
|
+
"reportValidity": () => Promise<boolean>;
|
|
523
|
+
/**
|
|
524
|
+
* Marks the control as required for form submission.
|
|
525
|
+
* @default false
|
|
526
|
+
*/
|
|
527
|
+
"required": ICheckboxCard['required'];
|
|
528
|
+
/**
|
|
529
|
+
* Value submitted with the form when this checkbox is selected.
|
|
530
|
+
* @default 'on'
|
|
531
|
+
*/
|
|
532
|
+
"value": ICheckboxCard['value'];
|
|
533
|
+
}
|
|
534
|
+
/**
|
|
535
|
+
* Checkbox group component that orchestrates multi-selection across a set of `bds-checkbox`, `bds-checkbox-button`, `bds-checkbox-card` children.
|
|
536
|
+
*/
|
|
537
|
+
interface BdsCheckboxGroup {
|
|
538
|
+
/**
|
|
539
|
+
* Returns whether the group's current value satisfies the browser's built-in constraint validation.
|
|
540
|
+
*/
|
|
541
|
+
"checkValidity": () => Promise<boolean>;
|
|
542
|
+
/**
|
|
543
|
+
* Disables all child checkboxes and prevents selection. Also mirrored to isDisabled
|
|
544
|
+
* @State for form-level disable support.
|
|
545
|
+
* @default false
|
|
546
|
+
*/
|
|
547
|
+
"disabled": boolean;
|
|
548
|
+
/**
|
|
549
|
+
* Shows error styling on the group helper text. Propagated to all child checkboxes.
|
|
550
|
+
* @default false
|
|
551
|
+
*/
|
|
552
|
+
"error": boolean;
|
|
553
|
+
/**
|
|
554
|
+
* Error message rendered below the checkbox options when error is true. Replaces helperText.
|
|
555
|
+
* @default ''
|
|
556
|
+
*/
|
|
557
|
+
"errorMessage": string;
|
|
558
|
+
/**
|
|
559
|
+
* Helper text rendered below the checkbox options. Shown in default state; replaced by errorMessage in error state.
|
|
560
|
+
* @default ''
|
|
561
|
+
*/
|
|
562
|
+
"helperText": string;
|
|
563
|
+
/**
|
|
564
|
+
* Tooltip text shown on the group label info icon.
|
|
565
|
+
* @default ''
|
|
566
|
+
*/
|
|
567
|
+
"info": string;
|
|
568
|
+
/**
|
|
569
|
+
* Hides the divider between checkbox buttons when type is 'checkboxbutton'.
|
|
570
|
+
* @default false
|
|
571
|
+
*/
|
|
572
|
+
"joined": false;
|
|
573
|
+
/**
|
|
574
|
+
* Group label rendered above the checkbox options.
|
|
575
|
+
* @default ''
|
|
576
|
+
*/
|
|
577
|
+
"label": string;
|
|
578
|
+
/**
|
|
579
|
+
* Name of the form control; submitted as the field key in FormData.
|
|
580
|
+
*/
|
|
581
|
+
"name": string;
|
|
582
|
+
/**
|
|
583
|
+
* Layout direction of the checkbox options.
|
|
584
|
+
* @default 'horizontal'
|
|
585
|
+
*/
|
|
586
|
+
"orientation": Orientation;
|
|
587
|
+
/**
|
|
588
|
+
* Reports the group's validity state to the user, showing native validation UI if invalid.
|
|
589
|
+
*/
|
|
590
|
+
"reportValidity": () => Promise<boolean>;
|
|
591
|
+
/**
|
|
592
|
+
* Marks the group as required for form submission. Triggers validity error when no checkboxes are selected.
|
|
593
|
+
* @default false
|
|
594
|
+
*/
|
|
595
|
+
"required": boolean;
|
|
596
|
+
/**
|
|
597
|
+
* Identifies this group variant. 'checkbox' renders bds-checkbox children; 'checkboxbutton' renders bds-checkbox-button segmented control; 'checkboxcard' renders bds-checkbox-card element.
|
|
598
|
+
* @default 'checkbox'
|
|
599
|
+
*/
|
|
600
|
+
"type": CheckboxGroupType;
|
|
601
|
+
/**
|
|
602
|
+
* Currently selected checkbox values. Synced to children on change.
|
|
603
|
+
* @default []
|
|
604
|
+
*/
|
|
605
|
+
"value": string[];
|
|
606
|
+
}
|
|
279
607
|
/**
|
|
280
608
|
* Modal dialog component for displaying content in an overlay.
|
|
281
609
|
* @summary Modal overlay for alerts, forms, and confirmations with customizable layout and behavior.
|
|
@@ -522,17 +850,31 @@ export namespace Components {
|
|
|
522
850
|
* Container component that manages a list of menu items.
|
|
523
851
|
* It handles selection logic (single/multiple) and maintains the data state.
|
|
524
852
|
* @summary A list menu component that can contain multiple menu items and manage their selection state.
|
|
525
|
-
* @
|
|
526
|
-
* @
|
|
527
|
-
* @property {boolean} multiple - If true, allows multiple items to be selected. Default is false (single selection).
|
|
528
|
-
* @property {string} menuRole - Defines the ARIA role of the menu. Can be 'menu' or 'listbox'. Default is 'menu'.
|
|
529
|
-
* @event bdsChange - Emitted when the selection changes, providing the current selected value(s).
|
|
853
|
+
* @fires bdsChange - Emitted when the selection changes, providing the current selected value(s).
|
|
854
|
+
* @fires bdsSelect - Emmited when item is selected in menu-role="menu" is clicked
|
|
530
855
|
* @method getSelectedValues - Returns the currently selected value(s). If multiple is true, returns an array of strings; otherwise, returns a single string or undefined.
|
|
531
856
|
* @method setSelectedValues - Sets the selected value(s). Accepts a string for single selection or an array of strings for multiple selection.
|
|
532
|
-
* @default false - By default, the menu does not allow multiple selections (single selection mode).
|
|
533
|
-
* @default 'menu' - The default ARIA role for the menu is 'menu'.
|
|
534
857
|
*/
|
|
535
858
|
interface BdsListMenu {
|
|
859
|
+
/**
|
|
860
|
+
* Prop to show in all items a checkbox
|
|
861
|
+
* @default false
|
|
862
|
+
*/
|
|
863
|
+
"checkable": IListMenu['checkable'];
|
|
864
|
+
/**
|
|
865
|
+
* is empty state item
|
|
866
|
+
* @default false
|
|
867
|
+
*/
|
|
868
|
+
"empty": IListMenu['empty'];
|
|
869
|
+
/**
|
|
870
|
+
* Prop to show empty text
|
|
871
|
+
* @default 'No options available'
|
|
872
|
+
*/
|
|
873
|
+
"emptyText": IListMenu['emptyText'];
|
|
874
|
+
/**
|
|
875
|
+
* Retrieves all child menu items.
|
|
876
|
+
*/
|
|
877
|
+
"getAllItems": () => Promise<HTMLBdsListMenuItemElement[]>;
|
|
536
878
|
/**
|
|
537
879
|
* Retrieves the currently selected value(s) programmatically.
|
|
538
880
|
* @method getSelectedValues
|
|
@@ -541,14 +883,19 @@ export namespace Components {
|
|
|
541
883
|
"getSelectedValues": () => Promise<string | string[]>;
|
|
542
884
|
/**
|
|
543
885
|
* Defines the ARIA role of the menu. Can be 'menu' or 'listbox'. Default is 'menu'.
|
|
544
|
-
* @default
|
|
886
|
+
* @default MENU_ROLES.MENU
|
|
545
887
|
*/
|
|
546
|
-
"menuRole": '
|
|
888
|
+
"menuRole": IListMenu['menuRole'];
|
|
547
889
|
/**
|
|
548
|
-
*
|
|
890
|
+
* Determines if the menu items have selectall/deselectall controls
|
|
549
891
|
* @default false
|
|
550
892
|
*/
|
|
551
|
-
"
|
|
893
|
+
"selectControls": IListMenu['selectControls'];
|
|
894
|
+
/**
|
|
895
|
+
* The selection mode of the menu. Can be 'SINGLE' or 'MULTIPLE'. Default is 'SINGLE'.
|
|
896
|
+
* @default LIST_MENU_SELECTION_MODE.SINGLE
|
|
897
|
+
*/
|
|
898
|
+
"selectionMode": IListMenu['selectionMode'];
|
|
552
899
|
/**
|
|
553
900
|
* Sets the selected values programmatically. Useful for initializing the menu from an external data source or form reset.
|
|
554
901
|
* @method setSelectedValues
|
|
@@ -596,6 +943,11 @@ export namespace Components {
|
|
|
596
943
|
* @default false
|
|
597
944
|
*/
|
|
598
945
|
"activeItem": IListMenuItem['activeItem'];
|
|
946
|
+
/**
|
|
947
|
+
* Checkable state item, if is activated should be visible a checkbox
|
|
948
|
+
* @default false
|
|
949
|
+
*/
|
|
950
|
+
"checkable": IListMenuItem['checkable'];
|
|
599
951
|
/**
|
|
600
952
|
* Disabled state item
|
|
601
953
|
* @default false
|
|
@@ -656,6 +1008,10 @@ export namespace Components {
|
|
|
656
1008
|
* @default false
|
|
657
1009
|
*/
|
|
658
1010
|
"closable"?: boolean;
|
|
1011
|
+
/**
|
|
1012
|
+
* Programmatically closes the popover, running the full hide lifecycle.
|
|
1013
|
+
*/
|
|
1014
|
+
"closePopover": () => Promise<void>;
|
|
659
1015
|
/**
|
|
660
1016
|
* If true, disables the popover.
|
|
661
1017
|
* @default false
|
|
@@ -676,6 +1032,10 @@ export namespace Components {
|
|
|
676
1032
|
* @default false
|
|
677
1033
|
*/
|
|
678
1034
|
"header"?: boolean;
|
|
1035
|
+
/**
|
|
1036
|
+
* Programmatically opens the popover, running the full show lifecycle.
|
|
1037
|
+
*/
|
|
1038
|
+
"openPopover": () => Promise<void>;
|
|
679
1039
|
/**
|
|
680
1040
|
* Width of the popover content. - number: width in pixels (e.g. 320 → "320px") - 'full': 100% of the trigger/parent width - 'auto': fits the content
|
|
681
1041
|
* @default 320
|
|
@@ -683,46 +1043,356 @@ export namespace Components {
|
|
|
683
1043
|
"width"?: IPopover['width'];
|
|
684
1044
|
}
|
|
685
1045
|
/**
|
|
686
|
-
*
|
|
687
|
-
*
|
|
688
|
-
*
|
|
689
|
-
* @attr {string} label - Accessible label announced by screen readers. Defaults to "Loading".
|
|
690
|
-
* @property {"small"|"medium"|"large"} size - Controls the visual size of the spinner.
|
|
691
|
-
* @property {string} label - Text used as the accessible label for screen readers.
|
|
1046
|
+
* Radio button component for single-selection within a group.
|
|
1047
|
+
* Use inside `bds-radio-group` for managed selection and form binding.
|
|
1048
|
+
* Can also be used standalone with the `name`, `value`, and `checked` props.
|
|
692
1049
|
*/
|
|
693
|
-
interface
|
|
1050
|
+
interface BdsRadio {
|
|
694
1051
|
/**
|
|
695
|
-
*
|
|
696
|
-
* @default
|
|
1052
|
+
* Whether this radio is selected. Managed by bds-radio-group; can be set directly when used standalone.
|
|
1053
|
+
* @default false
|
|
697
1054
|
*/
|
|
698
|
-
"
|
|
1055
|
+
"checked": boolean;
|
|
699
1056
|
/**
|
|
700
|
-
*
|
|
701
|
-
* @default
|
|
1057
|
+
* Disables the radio, preventing interaction and selection.
|
|
1058
|
+
* @default false
|
|
702
1059
|
*/
|
|
703
|
-
"
|
|
704
|
-
}
|
|
705
|
-
/**
|
|
706
|
-
* Status badge component for communicating the current state of an item or process.
|
|
707
|
-
*/
|
|
708
|
-
interface BdsStatus {
|
|
1060
|
+
"disabled": boolean;
|
|
709
1061
|
/**
|
|
710
|
-
*
|
|
711
|
-
* @default
|
|
1062
|
+
* Shows error styling on the radio indicator. Propagated by bds-radio-group.
|
|
1063
|
+
* @default false
|
|
712
1064
|
*/
|
|
713
|
-
"
|
|
1065
|
+
"error": boolean;
|
|
714
1066
|
/**
|
|
715
|
-
*
|
|
716
|
-
* @default
|
|
1067
|
+
* Tooltip text shown on an info icon next to the label.
|
|
1068
|
+
* @default ''
|
|
717
1069
|
*/
|
|
718
|
-
"
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
1070
|
+
"info": string;
|
|
1071
|
+
/**
|
|
1072
|
+
* Label text displayed next to the radio indicator. Falls back to the default slot when empty.
|
|
1073
|
+
* @default ''
|
|
1074
|
+
*/
|
|
1075
|
+
"label": string;
|
|
1076
|
+
/**
|
|
1077
|
+
* Name attribute stamped by the parent bds-radio-group via setAttribute. Set directly when used standalone.
|
|
1078
|
+
* @default ''
|
|
1079
|
+
*/
|
|
1080
|
+
"name": string;
|
|
1081
|
+
/**
|
|
1082
|
+
* Value submitted with the form when this radio is selected.
|
|
1083
|
+
* @default 'on'
|
|
1084
|
+
*/
|
|
1085
|
+
"value": string;
|
|
1086
|
+
}
|
|
1087
|
+
/**
|
|
1088
|
+
* Button-shaped radio option for use inside `bds-radio-group[type="radiobutton"]`.
|
|
1089
|
+
* Creates a segmented control appearance when grouped. Not form-associated — the parent
|
|
1090
|
+
* `bds-radio-group` owns form state and single-selection enforcement.
|
|
1091
|
+
*/
|
|
1092
|
+
interface BdsRadioButton {
|
|
1093
|
+
/**
|
|
1094
|
+
* Whether this button is selected. Managed by bds-radio-group; can be set directly when used standalone.
|
|
1095
|
+
* @default false
|
|
1096
|
+
*/
|
|
1097
|
+
"checked": boolean;
|
|
1098
|
+
/**
|
|
1099
|
+
* Disables the button, preventing interaction and selection.
|
|
1100
|
+
* @default false
|
|
1101
|
+
*/
|
|
1102
|
+
"disabled": boolean;
|
|
1103
|
+
/**
|
|
1104
|
+
* Shows error styling on the button. Propagated by bds-radio-group.
|
|
1105
|
+
* @default false
|
|
1106
|
+
*/
|
|
1107
|
+
"error": boolean;
|
|
1108
|
+
/**
|
|
1109
|
+
* Tooltip text shown on an info icon next to the label.
|
|
1110
|
+
* @default ''
|
|
1111
|
+
*/
|
|
1112
|
+
"info": string;
|
|
1113
|
+
/**
|
|
1114
|
+
* Label text displayed inside the button. Falls back to the default slot when empty.
|
|
1115
|
+
* @default ''
|
|
1116
|
+
*/
|
|
1117
|
+
"label": string;
|
|
1118
|
+
/**
|
|
1119
|
+
* Name attribute stamped by the parent bds-radio-group via setAttribute. Set directly when used standalone.
|
|
1120
|
+
* @default ''
|
|
1121
|
+
*/
|
|
1122
|
+
"name": string;
|
|
1123
|
+
/**
|
|
1124
|
+
* Value submitted with the form when this button is selected.
|
|
1125
|
+
* @default 'on'
|
|
1126
|
+
*/
|
|
1127
|
+
"value": string;
|
|
1128
|
+
}
|
|
1129
|
+
/**
|
|
1130
|
+
* Radio card component is a selectable card-based radio option.
|
|
1131
|
+
* It presents a mutually exclusive choice with optional descriptive text and icon,
|
|
1132
|
+
* designed for integration with bds-radio-group for orchestration.
|
|
1133
|
+
* Can also be used standalone with the `name`, `value`, and `checked` props.
|
|
1134
|
+
* @fires bdsChange - Emitted when the user selects this radio card. Listened to by the parent bds-radio-group to enforce single selection.
|
|
1135
|
+
*/
|
|
1136
|
+
interface BdsRadioCard {
|
|
1137
|
+
/**
|
|
1138
|
+
* Whether this radio card is selected. Managed by bds-radio-group; can be set directly when used standalone.
|
|
1139
|
+
* @default false
|
|
1140
|
+
*/
|
|
1141
|
+
"checked": IRadioCard['checked'];
|
|
1142
|
+
/**
|
|
1143
|
+
* Disables the radio card, preventing it from being selected and interacted with.
|
|
1144
|
+
* @default false
|
|
1145
|
+
*/
|
|
1146
|
+
"disabled": IRadioCard['disabled'];
|
|
1147
|
+
/**
|
|
1148
|
+
* Whether the radio card is in an error state.
|
|
1149
|
+
* @default false
|
|
1150
|
+
*/
|
|
1151
|
+
"error": IRadioCard['error'];
|
|
1152
|
+
/**
|
|
1153
|
+
* Tooltip content attached to the radio card content. If empty, the info icon will not be rendered.
|
|
1154
|
+
* @default ''
|
|
1155
|
+
*/
|
|
1156
|
+
"info": IRadioCard['info'];
|
|
1157
|
+
/**
|
|
1158
|
+
* Label text displayed next to the radio indicator. Falls back to the default slot when empty.
|
|
1159
|
+
* @default ''
|
|
1160
|
+
*/
|
|
1161
|
+
"label": IRadioCard['label'];
|
|
1162
|
+
/**
|
|
1163
|
+
* Name attribute stamped by the parent bds-radio-group. Set directly when used standalone.
|
|
1164
|
+
* @default ''
|
|
1165
|
+
*/
|
|
1166
|
+
"name": IRadioCard['name'];
|
|
1167
|
+
/**
|
|
1168
|
+
* Value submitted with the form when this radio is selected.
|
|
1169
|
+
* @default 'on'
|
|
1170
|
+
*/
|
|
1171
|
+
"value": IRadioCard['value'];
|
|
1172
|
+
}
|
|
1173
|
+
/**
|
|
1174
|
+
* Radio group component that orchestrates single-selection across a set of `bds-radio` children.
|
|
1175
|
+
*/
|
|
1176
|
+
interface BdsRadioGroup {
|
|
1177
|
+
/**
|
|
1178
|
+
* Returns whether the group's current value satisfies the browser's built-in constraint validation.
|
|
1179
|
+
*/
|
|
1180
|
+
"checkValidity": () => Promise<boolean>;
|
|
1181
|
+
/**
|
|
1182
|
+
* Disables all child radios and prevents selection. Also mirrored to isDisabled
|
|
1183
|
+
* @State for form-level disable support.
|
|
1184
|
+
* @default false
|
|
1185
|
+
*/
|
|
1186
|
+
"disabled": boolean;
|
|
1187
|
+
/**
|
|
1188
|
+
* Shows error styling on the group helper text. Propagated to all child radios.
|
|
1189
|
+
* @default false
|
|
1190
|
+
*/
|
|
1191
|
+
"error": boolean;
|
|
1192
|
+
/**
|
|
1193
|
+
* Error message rendered below the radio options when error is true. Replaces helperText.
|
|
1194
|
+
* @default ''
|
|
1195
|
+
*/
|
|
1196
|
+
"errorMessage": string;
|
|
1197
|
+
/**
|
|
1198
|
+
* Helper text rendered below the radio options. Shown in default state; replaced by errorMessage in error state.
|
|
1199
|
+
* @default ''
|
|
1200
|
+
*/
|
|
1201
|
+
"helperText": string;
|
|
1202
|
+
/**
|
|
1203
|
+
* Tooltip text shown on the group label info icon.
|
|
1204
|
+
* @default ''
|
|
1205
|
+
*/
|
|
1206
|
+
"info": string;
|
|
1207
|
+
/**
|
|
1208
|
+
* Hides the divider between radio buttons when type is 'radiobutton'.
|
|
1209
|
+
* @default false
|
|
1210
|
+
*/
|
|
1211
|
+
"joined": boolean;
|
|
1212
|
+
/**
|
|
1213
|
+
* Group label rendered above the radio options.
|
|
1214
|
+
* @default ''
|
|
1215
|
+
*/
|
|
1216
|
+
"label": string;
|
|
1217
|
+
/**
|
|
1218
|
+
* Name of the form control; submitted as the field key in FormData.
|
|
1219
|
+
*/
|
|
1220
|
+
"name": string;
|
|
1221
|
+
/**
|
|
1222
|
+
* Layout direction of the radio options.
|
|
1223
|
+
* @default 'vertical'
|
|
1224
|
+
*/
|
|
1225
|
+
"orientation": Orientation;
|
|
1226
|
+
/**
|
|
1227
|
+
* Reports the group's validity state to the user, showing native validation UI if invalid.
|
|
1228
|
+
*/
|
|
1229
|
+
"reportValidity": () => Promise<boolean>;
|
|
1230
|
+
/**
|
|
1231
|
+
* Marks the group as required for form submission. Triggers validity error when no radio is selected.
|
|
1232
|
+
* @default false
|
|
1233
|
+
*/
|
|
1234
|
+
"required": boolean;
|
|
1235
|
+
/**
|
|
1236
|
+
* Identifies this group variant. 'radio' renders circular bds-radio children; 'radiobutton' renders bds-radio-button segmented control; 'radiocard' renders bds-radio-card element.
|
|
1237
|
+
* @default 'radio'
|
|
1238
|
+
*/
|
|
1239
|
+
"type": RadioGroupType;
|
|
1240
|
+
/**
|
|
1241
|
+
* Currently selected radio value. Synced to children on change.
|
|
1242
|
+
* @default ''
|
|
1243
|
+
*/
|
|
1244
|
+
"value": string;
|
|
1245
|
+
}
|
|
1246
|
+
/**
|
|
1247
|
+
* Component representing a select dropdown, allowing users to choose an option from a list.
|
|
1248
|
+
* It consists of a text field that triggers the dropdown and a list menu that contains the options.
|
|
1249
|
+
* The component supports both single selection and searchable functionality.
|
|
1250
|
+
*/
|
|
1251
|
+
interface BdsSelect {
|
|
1252
|
+
/**
|
|
1253
|
+
* Name to assign in form
|
|
1254
|
+
* @default ''
|
|
1255
|
+
*/
|
|
1256
|
+
"name": string;
|
|
1257
|
+
/**
|
|
1258
|
+
* Prop to define if its searchable. It allows to write and filter the options
|
|
1259
|
+
* @default false
|
|
1260
|
+
*/
|
|
1261
|
+
"searchable": boolean;
|
|
1262
|
+
/**
|
|
1263
|
+
* The value of the select component.
|
|
1264
|
+
* @default ''
|
|
1265
|
+
*/
|
|
1266
|
+
"value": string;
|
|
1267
|
+
}
|
|
1268
|
+
/**
|
|
1269
|
+
* Slider component for selecting a numeric value or a range of values.
|
|
1270
|
+
* @summary An accessible, single or multi-handle range slider built on HTML `<input type="range">`.
|
|
1271
|
+
* Supports discrete tick marks, tooltips, disabled state, and N-handle multi-value mode
|
|
1272
|
+
* with automatic collision prevention between handles.
|
|
1273
|
+
* @property {number} min - Minimum selectable value. Defaults to `0`.
|
|
1274
|
+
* @property {number} max - Maximum selectable value. Defaults to `100`.
|
|
1275
|
+
* @property {number} step - Step size for each increment/decrement. Defaults to `1`.
|
|
1276
|
+
* @property {number[]} value - Current value(s). A single number for one handle;
|
|
1277
|
+
* an array for multi-handle mode. Defaults to `0`.
|
|
1278
|
+
* @property {boolean} disabled - Disables interaction with the slider. Defaults to `false`.
|
|
1279
|
+
* @property {boolean} discrete - Shows tick marks at each step position along the track. Defaults to `false`.
|
|
1280
|
+
* @property {string} tooltip - Controls tooltip visibility: `"never"`, or `"focus"`. Defaults to `"focus"`.
|
|
1281
|
+
* @method getValues - Returns the current value(s) as `number | number[]`.
|
|
1282
|
+
* @method setValues - Programmatically sets the slider value(s).
|
|
1283
|
+
*/
|
|
1284
|
+
interface BdsSlider {
|
|
1285
|
+
/**
|
|
1286
|
+
* Disables the slider, preventing all user interaction. Defaults to `false`.
|
|
1287
|
+
* @default false
|
|
1288
|
+
*/
|
|
1289
|
+
"disabled": boolean;
|
|
1290
|
+
/**
|
|
1291
|
+
* JSON string array of handle values that should be individually disabled. Each number must match a value present in the `value` prop. Accepts `number`, `number[]`, or JSON string: `"[5, 30]"`. Defaults to `"[]"`.
|
|
1292
|
+
* @default '[]'
|
|
1293
|
+
*/
|
|
1294
|
+
"disabledHandlers": SliderRawValue;
|
|
1295
|
+
/**
|
|
1296
|
+
* When `true`, renders discrete tick marks along the track at every step position between `min` and `max`. Defaults to `false`.
|
|
1297
|
+
* @default false
|
|
1298
|
+
*/
|
|
1299
|
+
"discrete": boolean;
|
|
1300
|
+
/**
|
|
1301
|
+
* Returns the current value(s) of the slider. - Single-handle → `number` - Multi-handle → `number[]`
|
|
1302
|
+
*/
|
|
1303
|
+
"getValues": () => Promise<number[]>;
|
|
1304
|
+
/**
|
|
1305
|
+
* Label for the slider. Defaults to `""`.
|
|
1306
|
+
* @default ''
|
|
1307
|
+
*/
|
|
1308
|
+
"label": string;
|
|
1309
|
+
/**
|
|
1310
|
+
* Maximum selectable value. Defaults to `100`.
|
|
1311
|
+
* @default 100
|
|
1312
|
+
*/
|
|
1313
|
+
"max": number;
|
|
1314
|
+
/**
|
|
1315
|
+
* Minimum selectable value. Defaults to `0`.
|
|
1316
|
+
* @default 0
|
|
1317
|
+
*/
|
|
1318
|
+
"min": number;
|
|
1319
|
+
/**
|
|
1320
|
+
* Name of the form control, submitted as a key in the form data.
|
|
1321
|
+
* @default ''
|
|
1322
|
+
*/
|
|
1323
|
+
"name": string;
|
|
1324
|
+
/**
|
|
1325
|
+
* Programmatically sets the slider value(s).
|
|
1326
|
+
* @param next - A single `number` or an array of `number[]` matching the number of handles.
|
|
1327
|
+
*/
|
|
1328
|
+
"setValues": (next: SliderRawValue) => Promise<void>;
|
|
1329
|
+
/**
|
|
1330
|
+
* Shows the min and max values of the slider. Defaults to `false`.
|
|
1331
|
+
* @default false
|
|
1332
|
+
*/
|
|
1333
|
+
"showLimits": boolean;
|
|
1334
|
+
/**
|
|
1335
|
+
* Step size for each increment/decrement. Must be a positive number. Defaults to `1`.
|
|
1336
|
+
* @default 1
|
|
1337
|
+
*/
|
|
1338
|
+
"step": number;
|
|
1339
|
+
/**
|
|
1340
|
+
* Controls tooltip visibility on each handle. - `"never"` — tooltip is hidden. - `"focus"` — tooltip appears only when the handle is active/focused. Defa ults to `"focus"`.
|
|
1341
|
+
* @default SLIDER_TOOLTIP.FOCUS
|
|
1342
|
+
*/
|
|
1343
|
+
"tooltip": SliderTooltipType;
|
|
1344
|
+
/**
|
|
1345
|
+
* Slider type that defines the slider behavior. Defaults to `single`.
|
|
1346
|
+
* @default SLIDER_TYPE.SINGLE
|
|
1347
|
+
*/
|
|
1348
|
+
"type": SliderType;
|
|
1349
|
+
/**
|
|
1350
|
+
* Current value(s) of the slider. Accepts `number`, `number[]`, or a JSON string for HTML vanilla usage. - Single handle: `50` or `"50"` - Multi-handle: `[10, 50, 80]` or `"[10, 50, 80]"` - Defaults to `0`.
|
|
1351
|
+
* @default [0]
|
|
1352
|
+
*/
|
|
1353
|
+
"value": SliderRawValue;
|
|
1354
|
+
}
|
|
1355
|
+
/**
|
|
1356
|
+
* Spinner component used to indicate a loading or processing state.
|
|
1357
|
+
* @summary Displays an animated circular spinner to communicate that content is loading.
|
|
1358
|
+
* @attr {"small"|"medium"|"large"} size - Size of the spinner. Defaults to "small".
|
|
1359
|
+
* @attr {string} label - Accessible label announced by screen readers. Defaults to "Loading".
|
|
1360
|
+
* @property {"small"|"medium"|"large"} size - Controls the visual size of the spinner.
|
|
1361
|
+
* @property {string} label - Text used as the accessible label for screen readers.
|
|
1362
|
+
*/
|
|
1363
|
+
interface BdsSpinner {
|
|
1364
|
+
/**
|
|
1365
|
+
* Accessible label announced by screen readers to describe the loading state.
|
|
1366
|
+
* @default "Loading"
|
|
1367
|
+
*/
|
|
1368
|
+
"label": ISpinner['label'];
|
|
1369
|
+
/**
|
|
1370
|
+
* Controls the visual size of the spinner.
|
|
1371
|
+
* @default "small"
|
|
1372
|
+
*/
|
|
1373
|
+
"size": ISpinner['size'];
|
|
1374
|
+
}
|
|
1375
|
+
/**
|
|
1376
|
+
* Status badge component for communicating the current state of an item or process.
|
|
1377
|
+
*/
|
|
1378
|
+
interface BdsStatus {
|
|
1379
|
+
/**
|
|
1380
|
+
* indicator is a string attribute. Controls the type of indicator rendered before the slotted label. An invalid value falls back to `"none"` and a warning is set on the host element.
|
|
1381
|
+
* @default INDICATOR_TYPES.NONE
|
|
1382
|
+
*/
|
|
1383
|
+
"indicator": IStatus['indicator'];
|
|
1384
|
+
/**
|
|
1385
|
+
* state is a string attribute. Controls the visual state variant of the status badge. Determines the background, accent, and text colors applied to the element. An invalid value falls back to `"neutral"` and a warning is set on the host element.
|
|
1386
|
+
* @default PROCESS_STATUS.NEUTRAL
|
|
1387
|
+
*/
|
|
1388
|
+
"state": IStatus['state'];
|
|
1389
|
+
}
|
|
1390
|
+
/**
|
|
1391
|
+
* Tag component used to represent categories, metadata, or removable filters.
|
|
1392
|
+
* @summary Displays a label with optional leading/trailing icons and dismissal capability.
|
|
1393
|
+
* @fires bdsClose - Emitted when the tag is closed via the close button or Delete key.
|
|
1394
|
+
* @fires bdsSelect - Emitted when the tag is selected via a click or Space/Enter key.
|
|
1395
|
+
*/
|
|
726
1396
|
interface BdsTag {
|
|
727
1397
|
/**
|
|
728
1398
|
* Aria label for the close button when visible.
|
|
@@ -860,6 +1530,11 @@ export namespace Components {
|
|
|
860
1530
|
* @default ''
|
|
861
1531
|
*/
|
|
862
1532
|
"icon": string;
|
|
1533
|
+
/**
|
|
1534
|
+
* Icon rendered on the right side of the input, on the actions containers. (e.g., 'bds-icon-settings')
|
|
1535
|
+
* @default ''
|
|
1536
|
+
*/
|
|
1537
|
+
"iconRight": string;
|
|
863
1538
|
/**
|
|
864
1539
|
* Tooltip content attached to the label. Rendered via `bds-typography` `tooltipText` prop.
|
|
865
1540
|
* @default ''
|
|
@@ -909,6 +1584,11 @@ export namespace Components {
|
|
|
909
1584
|
* @default false
|
|
910
1585
|
*/
|
|
911
1586
|
"required": boolean;
|
|
1587
|
+
/**
|
|
1588
|
+
* Set mode readonly to use in selects
|
|
1589
|
+
* @default false
|
|
1590
|
+
*/
|
|
1591
|
+
"selectable": boolean;
|
|
912
1592
|
/**
|
|
913
1593
|
* Sublabel rendered inside the input container, before the text area.
|
|
914
1594
|
* @default ''
|
|
@@ -1038,49 +1718,6 @@ export namespace Components {
|
|
|
1038
1718
|
/**
|
|
1039
1719
|
* Typography component for displaying text with various styles, sizes, and interactive features.
|
|
1040
1720
|
* @summary A comprehensive typography component that supports multiple text variants, sizes, alignments, states, and link functionality.
|
|
1041
|
-
* @attr {string} variant - The variant of the typography for styling the text. Options: label, display, heading, subheading, helper, link, code, caption
|
|
1042
|
-
* @attr {string} element - Defines the HTML element. For `heading` variant, the text size adjusts to the HTML heading level (`h1` through `h6`).
|
|
1043
|
-
* @attr {string} state - The state of the typography. Only available for the `helper` and `label` variants. Options: default, error, disabled, hover, active, focus, visited
|
|
1044
|
-
* @attr {string} align - The text alignment. Options: start, center, end, inherit
|
|
1045
|
-
* @attr {string} size - The size of the typography. For `display` variant all options are available (`xl`, `lg`, `md`, `sm`), while for `link` variant only `md` and `sm` are available.
|
|
1046
|
-
* @attr {boolean} required - Shows a required indicator when used with `label` variant.
|
|
1047
|
-
* @attr {boolean} ellipsis - Truncates text with an ellipsis when it overflows.
|
|
1048
|
-
* @attr {number} max-lines - Maximum number of lines to show before truncating with ellipsis.
|
|
1049
|
-
* @attr {string} href - URL when the typography is an `a` element and a `link` variant.
|
|
1050
|
-
* @attr {string} target - Specifies where to open the link. Options: _self, _blank, _top, _parent
|
|
1051
|
-
* @attr {boolean} downloadable - Makes the `link` download a file.
|
|
1052
|
-
* @attr {string} filename - Suggested filename when downloading a file from the `link`.
|
|
1053
|
-
* @attr {string} html-for - The for attribute when rendered as a label
|
|
1054
|
-
* @attr {string} tooltip-text - Text to display inside the tooltip when hovering the info icon. Only applicable for `heading`, `subheading`, and `label` variants.
|
|
1055
|
-
* @attr {string} custom-class - Additional custom CSS class
|
|
1056
|
-
* @property {string} variant - The variant of the typography for styling the text. Options: label, display, heading, subheading, helper, link, code, caption
|
|
1057
|
-
* @property {string} element - Defines the HTML element. For `heading` variant, the text size adjusts to the HTML heading level (`h1` through `h6`).
|
|
1058
|
-
* @property {string} state - The state of the typography. Only available for the `helper` and `label` variants. Options: default, error, disabled, hover, active, focus, visited
|
|
1059
|
-
* @property {string} align - The text alignment. Options: start, center, end, inherit
|
|
1060
|
-
* @property {string} size - The size of the typography. For `display` variant all options are available (`xl`, `lg`, `md`, `sm`), while for `link` variant only `md` and `sm` are available.
|
|
1061
|
-
* @property {boolean} required - Shows a required indicator when used with `label` variant.
|
|
1062
|
-
* @property {boolean} ellipsis - Truncates text with an ellipsis when it overflows.
|
|
1063
|
-
* @property {number} maxLines - Maximum number of lines to show before truncating with ellipsis.
|
|
1064
|
-
* @property {string} href - URL when the typography is an `a` element and a `link` variant.
|
|
1065
|
-
* @property {string} target - Specifies where to open the link. Options: _self, _blank, _top, _parent
|
|
1066
|
-
* @property {boolean} downloadable - Makes the `link` download a file.
|
|
1067
|
-
* @property {string} filename - Suggested filename when downloading a file from the `link`.
|
|
1068
|
-
* @property {string} htmlFor - The for attribute when rendered as a label
|
|
1069
|
-
* @property {string} tooltipText - Text to display inside the tooltip when hovering the info icon. Only applicable for `heading`, `subheading`, and `label` variants.
|
|
1070
|
-
* @property {string} customClass - Additional custom CSS class
|
|
1071
|
-
* @default 'display' - Default variant value
|
|
1072
|
-
* @default 'p' - Default element value
|
|
1073
|
-
* @default 'start' - Default align value
|
|
1074
|
-
* @default 'md' - Default size value
|
|
1075
|
-
* @default 'default' - Default state value
|
|
1076
|
-
* @default false - Default required state
|
|
1077
|
-
* @default false - Default ellipsis state
|
|
1078
|
-
* @default 1 - Default maxLines value
|
|
1079
|
-
* @default '' - Default href value
|
|
1080
|
-
* @default '' - Default target value
|
|
1081
|
-
* @default false - Default downloadable state
|
|
1082
|
-
* @default 'download' - Default filename value
|
|
1083
|
-
* @default '' - Default tooltipText value
|
|
1084
1721
|
*/
|
|
1085
1722
|
interface BdsTypography {
|
|
1086
1723
|
/**
|
|
@@ -1128,6 +1765,11 @@ export namespace Components {
|
|
|
1128
1765
|
* @default 1
|
|
1129
1766
|
*/
|
|
1130
1767
|
"maxLines": ITypography['maxLines'];
|
|
1768
|
+
/**
|
|
1769
|
+
* Relationship between the current document and the linked resource.
|
|
1770
|
+
* @default ''
|
|
1771
|
+
*/
|
|
1772
|
+
"rel": ITypography['rel'];
|
|
1131
1773
|
/**
|
|
1132
1774
|
* Marks the field as required.
|
|
1133
1775
|
* @default false
|
|
@@ -1164,6 +1806,14 @@ export interface BdsBannerCustomEvent<T> extends CustomEvent<T> {
|
|
|
1164
1806
|
detail: T;
|
|
1165
1807
|
target: HTMLBdsBannerElement;
|
|
1166
1808
|
}
|
|
1809
|
+
export interface BdsBreadcrumbCustomEvent<T> extends CustomEvent<T> {
|
|
1810
|
+
detail: T;
|
|
1811
|
+
target: HTMLBdsBreadcrumbElement;
|
|
1812
|
+
}
|
|
1813
|
+
export interface BdsBreadcrumbItemCustomEvent<T> extends CustomEvent<T> {
|
|
1814
|
+
detail: T;
|
|
1815
|
+
target: HTMLBdsBreadcrumbItemElement;
|
|
1816
|
+
}
|
|
1167
1817
|
export interface BdsButtonCustomEvent<T> extends CustomEvent<T> {
|
|
1168
1818
|
detail: T;
|
|
1169
1819
|
target: HTMLBdsButtonElement;
|
|
@@ -1172,6 +1822,18 @@ export interface BdsCheckboxCustomEvent<T> extends CustomEvent<T> {
|
|
|
1172
1822
|
detail: T;
|
|
1173
1823
|
target: HTMLBdsCheckboxElement;
|
|
1174
1824
|
}
|
|
1825
|
+
export interface BdsCheckboxButtonCustomEvent<T> extends CustomEvent<T> {
|
|
1826
|
+
detail: T;
|
|
1827
|
+
target: HTMLBdsCheckboxButtonElement;
|
|
1828
|
+
}
|
|
1829
|
+
export interface BdsCheckboxCardCustomEvent<T> extends CustomEvent<T> {
|
|
1830
|
+
detail: T;
|
|
1831
|
+
target: HTMLBdsCheckboxCardElement;
|
|
1832
|
+
}
|
|
1833
|
+
export interface BdsCheckboxGroupCustomEvent<T> extends CustomEvent<T> {
|
|
1834
|
+
detail: T;
|
|
1835
|
+
target: HTMLBdsCheckboxGroupElement;
|
|
1836
|
+
}
|
|
1175
1837
|
export interface BdsDialogCustomEvent<T> extends CustomEvent<T> {
|
|
1176
1838
|
detail: T;
|
|
1177
1839
|
target: HTMLBdsDialogElement;
|
|
@@ -1184,6 +1846,30 @@ export interface BdsListMenuItemCustomEvent<T> extends CustomEvent<T> {
|
|
|
1184
1846
|
detail: T;
|
|
1185
1847
|
target: HTMLBdsListMenuItemElement;
|
|
1186
1848
|
}
|
|
1849
|
+
export interface BdsRadioCustomEvent<T> extends CustomEvent<T> {
|
|
1850
|
+
detail: T;
|
|
1851
|
+
target: HTMLBdsRadioElement;
|
|
1852
|
+
}
|
|
1853
|
+
export interface BdsRadioButtonCustomEvent<T> extends CustomEvent<T> {
|
|
1854
|
+
detail: T;
|
|
1855
|
+
target: HTMLBdsRadioButtonElement;
|
|
1856
|
+
}
|
|
1857
|
+
export interface BdsRadioCardCustomEvent<T> extends CustomEvent<T> {
|
|
1858
|
+
detail: T;
|
|
1859
|
+
target: HTMLBdsRadioCardElement;
|
|
1860
|
+
}
|
|
1861
|
+
export interface BdsRadioGroupCustomEvent<T> extends CustomEvent<T> {
|
|
1862
|
+
detail: T;
|
|
1863
|
+
target: HTMLBdsRadioGroupElement;
|
|
1864
|
+
}
|
|
1865
|
+
export interface BdsSelectCustomEvent<T> extends CustomEvent<T> {
|
|
1866
|
+
detail: T;
|
|
1867
|
+
target: HTMLBdsSelectElement;
|
|
1868
|
+
}
|
|
1869
|
+
export interface BdsSliderCustomEvent<T> extends CustomEvent<T> {
|
|
1870
|
+
detail: T;
|
|
1871
|
+
target: HTMLBdsSliderElement;
|
|
1872
|
+
}
|
|
1187
1873
|
export interface BdsTagCustomEvent<T> extends CustomEvent<T> {
|
|
1188
1874
|
detail: T;
|
|
1189
1875
|
target: HTMLBdsTagElement;
|
|
@@ -1260,19 +1946,62 @@ declare global {
|
|
|
1260
1946
|
prototype: HTMLBdsBannerElement;
|
|
1261
1947
|
new (): HTMLBdsBannerElement;
|
|
1262
1948
|
};
|
|
1263
|
-
interface
|
|
1264
|
-
"
|
|
1949
|
+
interface HTMLBdsBreadcrumbElementEventMap {
|
|
1950
|
+
"bdsClickCollapsed": BdsClickCollapsedEvent;
|
|
1951
|
+
"bdsClickBreadcrumb": BdsClickBreadcrumbEvent;
|
|
1265
1952
|
}
|
|
1266
1953
|
/**
|
|
1267
|
-
*
|
|
1268
|
-
*
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1954
|
+
* @summary Breadcrumb navigation container component. Provides a structured navigation trail and
|
|
1955
|
+
* handles overflow using a collapse mechanism when the number of items exceeds `maxItems`.
|
|
1956
|
+
*/
|
|
1957
|
+
interface HTMLBdsBreadcrumbElement extends Components.BdsBreadcrumb, HTMLStencilElement {
|
|
1958
|
+
addEventListener<K extends keyof HTMLBdsBreadcrumbElementEventMap>(type: K, listener: (this: HTMLBdsBreadcrumbElement, ev: BdsBreadcrumbCustomEvent<HTMLBdsBreadcrumbElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1959
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1960
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1961
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1962
|
+
removeEventListener<K extends keyof HTMLBdsBreadcrumbElementEventMap>(type: K, listener: (this: HTMLBdsBreadcrumbElement, ev: BdsBreadcrumbCustomEvent<HTMLBdsBreadcrumbElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1963
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1964
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1965
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1966
|
+
}
|
|
1967
|
+
var HTMLBdsBreadcrumbElement: {
|
|
1968
|
+
prototype: HTMLBdsBreadcrumbElement;
|
|
1969
|
+
new (): HTMLBdsBreadcrumbElement;
|
|
1970
|
+
};
|
|
1971
|
+
interface HTMLBdsBreadcrumbItemElementEventMap {
|
|
1972
|
+
"bdsClick": BdsClickItemEvent;
|
|
1973
|
+
"bdsClickCollapse": BdsClickCollapseEvent;
|
|
1974
|
+
}
|
|
1975
|
+
/**
|
|
1976
|
+
* @summary Breadcrumb navigation item component that represents a single step within a breadcrumb navigation trail.
|
|
1977
|
+
*/
|
|
1978
|
+
interface HTMLBdsBreadcrumbItemElement extends Components.BdsBreadcrumbItem, HTMLStencilElement {
|
|
1979
|
+
addEventListener<K extends keyof HTMLBdsBreadcrumbItemElementEventMap>(type: K, listener: (this: HTMLBdsBreadcrumbItemElement, ev: BdsBreadcrumbItemCustomEvent<HTMLBdsBreadcrumbItemElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1980
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1981
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1982
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1983
|
+
removeEventListener<K extends keyof HTMLBdsBreadcrumbItemElementEventMap>(type: K, listener: (this: HTMLBdsBreadcrumbItemElement, ev: BdsBreadcrumbItemCustomEvent<HTMLBdsBreadcrumbItemElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1984
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1985
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1986
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1987
|
+
}
|
|
1988
|
+
var HTMLBdsBreadcrumbItemElement: {
|
|
1989
|
+
prototype: HTMLBdsBreadcrumbItemElement;
|
|
1990
|
+
new (): HTMLBdsBreadcrumbItemElement;
|
|
1991
|
+
};
|
|
1992
|
+
interface HTMLBdsButtonElementEventMap {
|
|
1993
|
+
"bdsClick": UIEvent;
|
|
1994
|
+
}
|
|
1995
|
+
/**
|
|
1996
|
+
* Button component for user interactions, form submissions, supporting various styles, sizes, and states.
|
|
1997
|
+
* @summary A versatile button component that can be customized with different colors, sizes, variants and states to fit various use cases in the application.
|
|
1998
|
+
* @attr {string} label - The accessible name for the button, used for screen readers. It should be provided by the user for accessibility purposes.
|
|
1999
|
+
* @attr {boolean} disabled - Disables the button when true, preventing user interaction and applying disabled styles.
|
|
2000
|
+
* @attr {string} name - The name attribute for the button, useful for form submissions.
|
|
1272
2001
|
* @attr {string} type - The type of the button, which can be 'button', 'submit', or 'reset'. Default is 'button'.
|
|
1273
2002
|
* @attr {string} color - The color theme of the button, which can be 'default', 'primary', 'success', or 'error'. Default is 'default'.
|
|
1274
2003
|
* @attr {string} variant - The visual style of the button, which can be 'default', 'outline', or 'plain'. Default is 'default'.
|
|
1275
|
-
* @attr {string} size - The size of the button, which can be '
|
|
2004
|
+
* @attr {string} size - The size of the button, which can be 'sm', 'md', or 'lg'. Default is 'md'.
|
|
1276
2005
|
* @attr {boolean} loading - Indicates whether the button is in a loading state, which can be used to show a loading spinner and disable the button. Default is false.
|
|
1277
2006
|
* @attr {boolean} disclosure - Indicates if the button should show a chevron down at the end of the content.
|
|
1278
2007
|
* @property {string} label - The accessible name for the button, used for screen readers. It should be provided by the user for accessibility purposes.
|
|
@@ -1281,13 +2010,13 @@ declare global {
|
|
|
1281
2010
|
* @property {string} type - The type of the button, which can be 'button', 'submit', or 'reset'. Default is 'button'.
|
|
1282
2011
|
* @property {string} color - The color theme of the button, which can be 'default', 'primary', 'success', or 'error'. Default is 'default'.
|
|
1283
2012
|
* @property {string} variant - The visual style of the button, which can be 'default', 'outline', or 'plain'. Default is 'default'.
|
|
1284
|
-
* @property {string} size - The size of the button, which can be '
|
|
2013
|
+
* @property {string} size - The size of the button, which can be 'sm', 'md', or 'lg'. Default is 'md'.
|
|
1285
2014
|
* @property {boolean} loading - Indicates whether the button is in a loading state, which can be used to show a loading spinner and disable the button. Default is false.
|
|
1286
2015
|
* @property {boolean} disclosure - Indicates if the button should show a chevron down at the end of the content.
|
|
1287
2016
|
* @default 'button' - Default type value
|
|
1288
2017
|
* @default 'default' - Default color value
|
|
1289
2018
|
* @default 'default' - Default variant value
|
|
1290
|
-
* @default '
|
|
2019
|
+
* @default 'md' - Default size value
|
|
1291
2020
|
* @default 'default' - Default status value
|
|
1292
2021
|
* @default false - Default disabled value
|
|
1293
2022
|
* @default '' - Default label value
|
|
@@ -1309,6 +2038,15 @@ declare global {
|
|
|
1309
2038
|
prototype: HTMLBdsButtonElement;
|
|
1310
2039
|
new (): HTMLBdsButtonElement;
|
|
1311
2040
|
};
|
|
2041
|
+
/**
|
|
2042
|
+
* Button group component for grouping related buttons together in a unified visual unit.
|
|
2043
|
+
*/
|
|
2044
|
+
interface HTMLBdsButtonGroupElement extends Components.BdsButtonGroup, HTMLStencilElement {
|
|
2045
|
+
}
|
|
2046
|
+
var HTMLBdsButtonGroupElement: {
|
|
2047
|
+
prototype: HTMLBdsButtonGroupElement;
|
|
2048
|
+
new (): HTMLBdsButtonGroupElement;
|
|
2049
|
+
};
|
|
1312
2050
|
interface HTMLBdsCheckboxElementEventMap {
|
|
1313
2051
|
"valueChange": boolean;
|
|
1314
2052
|
"bdsChange": CheckboxChangeDetail;
|
|
@@ -1338,6 +2076,73 @@ declare global {
|
|
|
1338
2076
|
prototype: HTMLBdsCheckboxElement;
|
|
1339
2077
|
new (): HTMLBdsCheckboxElement;
|
|
1340
2078
|
};
|
|
2079
|
+
interface HTMLBdsCheckboxButtonElementEventMap {
|
|
2080
|
+
"valueChange": boolean;
|
|
2081
|
+
"bdsChange": CheckboxButtonChangeDetail;
|
|
2082
|
+
}
|
|
2083
|
+
/**
|
|
2084
|
+
* Button-shaped checkbox option that toggles independently on each interaction.
|
|
2085
|
+
* Renders as a pill-button with the same visual language as `bds-radio-button`, but uses
|
|
2086
|
+
* `role="checkbox"` and multi-select semantics — toggling one button has no effect on others.
|
|
2087
|
+
* Can be used standalone (with `name` and optional `required`) or inside a `bds-checkbox-group`,
|
|
2088
|
+
* which is the recommended approach for coordinated form state and group-level validation.
|
|
2089
|
+
*/
|
|
2090
|
+
interface HTMLBdsCheckboxButtonElement extends Components.BdsCheckboxButton, HTMLStencilElement {
|
|
2091
|
+
addEventListener<K extends keyof HTMLBdsCheckboxButtonElementEventMap>(type: K, listener: (this: HTMLBdsCheckboxButtonElement, ev: BdsCheckboxButtonCustomEvent<HTMLBdsCheckboxButtonElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2092
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2093
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2094
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2095
|
+
removeEventListener<K extends keyof HTMLBdsCheckboxButtonElementEventMap>(type: K, listener: (this: HTMLBdsCheckboxButtonElement, ev: BdsCheckboxButtonCustomEvent<HTMLBdsCheckboxButtonElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
2096
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2097
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2098
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2099
|
+
}
|
|
2100
|
+
var HTMLBdsCheckboxButtonElement: {
|
|
2101
|
+
prototype: HTMLBdsCheckboxButtonElement;
|
|
2102
|
+
new (): HTMLBdsCheckboxButtonElement;
|
|
2103
|
+
};
|
|
2104
|
+
interface HTMLBdsCheckboxCardElementEventMap {
|
|
2105
|
+
"valueChange": any;
|
|
2106
|
+
"bdsChange": any;
|
|
2107
|
+
}
|
|
2108
|
+
/**
|
|
2109
|
+
* @summary Checkbox card component is a selectable card-based checkbox option.
|
|
2110
|
+
*/
|
|
2111
|
+
interface HTMLBdsCheckboxCardElement extends Components.BdsCheckboxCard, HTMLStencilElement {
|
|
2112
|
+
addEventListener<K extends keyof HTMLBdsCheckboxCardElementEventMap>(type: K, listener: (this: HTMLBdsCheckboxCardElement, ev: BdsCheckboxCardCustomEvent<HTMLBdsCheckboxCardElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2113
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2114
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2115
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2116
|
+
removeEventListener<K extends keyof HTMLBdsCheckboxCardElementEventMap>(type: K, listener: (this: HTMLBdsCheckboxCardElement, ev: BdsCheckboxCardCustomEvent<HTMLBdsCheckboxCardElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
2117
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2118
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2119
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2120
|
+
}
|
|
2121
|
+
var HTMLBdsCheckboxCardElement: {
|
|
2122
|
+
prototype: HTMLBdsCheckboxCardElement;
|
|
2123
|
+
new (): HTMLBdsCheckboxCardElement;
|
|
2124
|
+
};
|
|
2125
|
+
interface HTMLBdsCheckboxGroupElementEventMap {
|
|
2126
|
+
"bdsChange": CheckboxGroupChangeDetail;
|
|
2127
|
+
"valueChange": string[];
|
|
2128
|
+
}
|
|
2129
|
+
/**
|
|
2130
|
+
* Checkbox group component that orchestrates multi-selection across a set of `bds-checkbox`, `bds-checkbox-button`, `bds-checkbox-card` children.
|
|
2131
|
+
*/
|
|
2132
|
+
interface HTMLBdsCheckboxGroupElement extends Components.BdsCheckboxGroup, HTMLStencilElement {
|
|
2133
|
+
addEventListener<K extends keyof HTMLBdsCheckboxGroupElementEventMap>(type: K, listener: (this: HTMLBdsCheckboxGroupElement, ev: BdsCheckboxGroupCustomEvent<HTMLBdsCheckboxGroupElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2134
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2135
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2136
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2137
|
+
removeEventListener<K extends keyof HTMLBdsCheckboxGroupElementEventMap>(type: K, listener: (this: HTMLBdsCheckboxGroupElement, ev: BdsCheckboxGroupCustomEvent<HTMLBdsCheckboxGroupElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
2138
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2139
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2140
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2141
|
+
}
|
|
2142
|
+
var HTMLBdsCheckboxGroupElement: {
|
|
2143
|
+
prototype: HTMLBdsCheckboxGroupElement;
|
|
2144
|
+
new (): HTMLBdsCheckboxGroupElement;
|
|
2145
|
+
};
|
|
1341
2146
|
interface HTMLBdsDialogElementEventMap {
|
|
1342
2147
|
"bdsOpen": void;
|
|
1343
2148
|
"bdsClose": void;
|
|
@@ -1454,21 +2259,16 @@ declare global {
|
|
|
1454
2259
|
};
|
|
1455
2260
|
interface HTMLBdsListMenuElementEventMap {
|
|
1456
2261
|
"bdsChange": string | string[];
|
|
1457
|
-
"
|
|
2262
|
+
"bdsSelect": ListMenuChangeDetail;
|
|
1458
2263
|
}
|
|
1459
2264
|
/**
|
|
1460
2265
|
* Container component that manages a list of menu items.
|
|
1461
2266
|
* It handles selection logic (single/multiple) and maintains the data state.
|
|
1462
2267
|
* @summary A list menu component that can contain multiple menu items and manage their selection state.
|
|
1463
|
-
* @
|
|
1464
|
-
* @
|
|
1465
|
-
* @property {boolean} multiple - If true, allows multiple items to be selected. Default is false (single selection).
|
|
1466
|
-
* @property {string} menuRole - Defines the ARIA role of the menu. Can be 'menu' or 'listbox'. Default is 'menu'.
|
|
1467
|
-
* @event bdsChange - Emitted when the selection changes, providing the current selected value(s).
|
|
2268
|
+
* @fires bdsChange - Emitted when the selection changes, providing the current selected value(s).
|
|
2269
|
+
* @fires bdsSelect - Emmited when item is selected in menu-role="menu" is clicked
|
|
1468
2270
|
* @method getSelectedValues - Returns the currently selected value(s). If multiple is true, returns an array of strings; otherwise, returns a single string or undefined.
|
|
1469
2271
|
* @method setSelectedValues - Sets the selected value(s). Accepts a string for single selection or an array of strings for multiple selection.
|
|
1470
|
-
* @default false - By default, the menu does not allow multiple selections (single selection mode).
|
|
1471
|
-
* @default 'menu' - The default ARIA role for the menu is 'menu'.
|
|
1472
2272
|
*/
|
|
1473
2273
|
interface HTMLBdsListMenuElement extends Components.BdsListMenu, HTMLStencilElement {
|
|
1474
2274
|
addEventListener<K extends keyof HTMLBdsListMenuElementEventMap>(type: K, listener: (this: HTMLBdsListMenuElement, ev: BdsListMenuCustomEvent<HTMLBdsListMenuElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -1485,7 +2285,7 @@ declare global {
|
|
|
1485
2285
|
new (): HTMLBdsListMenuElement;
|
|
1486
2286
|
};
|
|
1487
2287
|
interface HTMLBdsListMenuItemElementEventMap {
|
|
1488
|
-
"
|
|
2288
|
+
"bdsSelectItem": IListMenuItemEvent;
|
|
1489
2289
|
}
|
|
1490
2290
|
/**
|
|
1491
2291
|
* Component representing an individual item within a list menu for navigations and selection.
|
|
@@ -1554,6 +2354,153 @@ declare global {
|
|
|
1554
2354
|
prototype: HTMLBdsPopoverElement;
|
|
1555
2355
|
new (): HTMLBdsPopoverElement;
|
|
1556
2356
|
};
|
|
2357
|
+
interface HTMLBdsRadioElementEventMap {
|
|
2358
|
+
"bdsChange": RadioChangeDetail;
|
|
2359
|
+
}
|
|
2360
|
+
/**
|
|
2361
|
+
* Radio button component for single-selection within a group.
|
|
2362
|
+
* Use inside `bds-radio-group` for managed selection and form binding.
|
|
2363
|
+
* Can also be used standalone with the `name`, `value`, and `checked` props.
|
|
2364
|
+
*/
|
|
2365
|
+
interface HTMLBdsRadioElement extends Components.BdsRadio, HTMLStencilElement {
|
|
2366
|
+
addEventListener<K extends keyof HTMLBdsRadioElementEventMap>(type: K, listener: (this: HTMLBdsRadioElement, ev: BdsRadioCustomEvent<HTMLBdsRadioElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2367
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2368
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2369
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2370
|
+
removeEventListener<K extends keyof HTMLBdsRadioElementEventMap>(type: K, listener: (this: HTMLBdsRadioElement, ev: BdsRadioCustomEvent<HTMLBdsRadioElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
2371
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2372
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2373
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2374
|
+
}
|
|
2375
|
+
var HTMLBdsRadioElement: {
|
|
2376
|
+
prototype: HTMLBdsRadioElement;
|
|
2377
|
+
new (): HTMLBdsRadioElement;
|
|
2378
|
+
};
|
|
2379
|
+
interface HTMLBdsRadioButtonElementEventMap {
|
|
2380
|
+
"bdsChange": RadioButtonChangeDetail;
|
|
2381
|
+
}
|
|
2382
|
+
/**
|
|
2383
|
+
* Button-shaped radio option for use inside `bds-radio-group[type="radiobutton"]`.
|
|
2384
|
+
* Creates a segmented control appearance when grouped. Not form-associated — the parent
|
|
2385
|
+
* `bds-radio-group` owns form state and single-selection enforcement.
|
|
2386
|
+
*/
|
|
2387
|
+
interface HTMLBdsRadioButtonElement extends Components.BdsRadioButton, HTMLStencilElement {
|
|
2388
|
+
addEventListener<K extends keyof HTMLBdsRadioButtonElementEventMap>(type: K, listener: (this: HTMLBdsRadioButtonElement, ev: BdsRadioButtonCustomEvent<HTMLBdsRadioButtonElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2389
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2390
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2391
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2392
|
+
removeEventListener<K extends keyof HTMLBdsRadioButtonElementEventMap>(type: K, listener: (this: HTMLBdsRadioButtonElement, ev: BdsRadioButtonCustomEvent<HTMLBdsRadioButtonElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
2393
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2394
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2395
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2396
|
+
}
|
|
2397
|
+
var HTMLBdsRadioButtonElement: {
|
|
2398
|
+
prototype: HTMLBdsRadioButtonElement;
|
|
2399
|
+
new (): HTMLBdsRadioButtonElement;
|
|
2400
|
+
};
|
|
2401
|
+
interface HTMLBdsRadioCardElementEventMap {
|
|
2402
|
+
"bdsChange": RadioCardChangeDetail;
|
|
2403
|
+
}
|
|
2404
|
+
/**
|
|
2405
|
+
* Radio card component is a selectable card-based radio option.
|
|
2406
|
+
* It presents a mutually exclusive choice with optional descriptive text and icon,
|
|
2407
|
+
* designed for integration with bds-radio-group for orchestration.
|
|
2408
|
+
* Can also be used standalone with the `name`, `value`, and `checked` props.
|
|
2409
|
+
* @fires bdsChange - Emitted when the user selects this radio card. Listened to by the parent bds-radio-group to enforce single selection.
|
|
2410
|
+
*/
|
|
2411
|
+
interface HTMLBdsRadioCardElement extends Components.BdsRadioCard, HTMLStencilElement {
|
|
2412
|
+
addEventListener<K extends keyof HTMLBdsRadioCardElementEventMap>(type: K, listener: (this: HTMLBdsRadioCardElement, ev: BdsRadioCardCustomEvent<HTMLBdsRadioCardElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2413
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2414
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2415
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2416
|
+
removeEventListener<K extends keyof HTMLBdsRadioCardElementEventMap>(type: K, listener: (this: HTMLBdsRadioCardElement, ev: BdsRadioCardCustomEvent<HTMLBdsRadioCardElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
2417
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2418
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2419
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2420
|
+
}
|
|
2421
|
+
var HTMLBdsRadioCardElement: {
|
|
2422
|
+
prototype: HTMLBdsRadioCardElement;
|
|
2423
|
+
new (): HTMLBdsRadioCardElement;
|
|
2424
|
+
};
|
|
2425
|
+
interface HTMLBdsRadioGroupElementEventMap {
|
|
2426
|
+
"bdsChange": RadioGroupChangeDetail;
|
|
2427
|
+
"valueChange": string;
|
|
2428
|
+
}
|
|
2429
|
+
/**
|
|
2430
|
+
* Radio group component that orchestrates single-selection across a set of `bds-radio` children.
|
|
2431
|
+
*/
|
|
2432
|
+
interface HTMLBdsRadioGroupElement extends Components.BdsRadioGroup, HTMLStencilElement {
|
|
2433
|
+
addEventListener<K extends keyof HTMLBdsRadioGroupElementEventMap>(type: K, listener: (this: HTMLBdsRadioGroupElement, ev: BdsRadioGroupCustomEvent<HTMLBdsRadioGroupElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2434
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2435
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2436
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2437
|
+
removeEventListener<K extends keyof HTMLBdsRadioGroupElementEventMap>(type: K, listener: (this: HTMLBdsRadioGroupElement, ev: BdsRadioGroupCustomEvent<HTMLBdsRadioGroupElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
2438
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2439
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2440
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2441
|
+
}
|
|
2442
|
+
var HTMLBdsRadioGroupElement: {
|
|
2443
|
+
prototype: HTMLBdsRadioGroupElement;
|
|
2444
|
+
new (): HTMLBdsRadioGroupElement;
|
|
2445
|
+
};
|
|
2446
|
+
interface HTMLBdsSelectElementEventMap {
|
|
2447
|
+
"bdsChange": string;
|
|
2448
|
+
"valueChange": string;
|
|
2449
|
+
}
|
|
2450
|
+
/**
|
|
2451
|
+
* Component representing a select dropdown, allowing users to choose an option from a list.
|
|
2452
|
+
* It consists of a text field that triggers the dropdown and a list menu that contains the options.
|
|
2453
|
+
* The component supports both single selection and searchable functionality.
|
|
2454
|
+
*/
|
|
2455
|
+
interface HTMLBdsSelectElement extends Components.BdsSelect, HTMLStencilElement {
|
|
2456
|
+
addEventListener<K extends keyof HTMLBdsSelectElementEventMap>(type: K, listener: (this: HTMLBdsSelectElement, ev: BdsSelectCustomEvent<HTMLBdsSelectElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2457
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2458
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2459
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2460
|
+
removeEventListener<K extends keyof HTMLBdsSelectElementEventMap>(type: K, listener: (this: HTMLBdsSelectElement, ev: BdsSelectCustomEvent<HTMLBdsSelectElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
2461
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2462
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2463
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2464
|
+
}
|
|
2465
|
+
var HTMLBdsSelectElement: {
|
|
2466
|
+
prototype: HTMLBdsSelectElement;
|
|
2467
|
+
new (): HTMLBdsSelectElement;
|
|
2468
|
+
};
|
|
2469
|
+
interface HTMLBdsSliderElementEventMap {
|
|
2470
|
+
"bdsChange": SliderChangeDetail;
|
|
2471
|
+
"valueChange": number[];
|
|
2472
|
+
"bdsClick": { target: HTMLElement; value: number[] };
|
|
2473
|
+
}
|
|
2474
|
+
/**
|
|
2475
|
+
* Slider component for selecting a numeric value or a range of values.
|
|
2476
|
+
* @summary An accessible, single or multi-handle range slider built on HTML `<input type="range">`.
|
|
2477
|
+
* Supports discrete tick marks, tooltips, disabled state, and N-handle multi-value mode
|
|
2478
|
+
* with automatic collision prevention between handles.
|
|
2479
|
+
* @property {number} min - Minimum selectable value. Defaults to `0`.
|
|
2480
|
+
* @property {number} max - Maximum selectable value. Defaults to `100`.
|
|
2481
|
+
* @property {number} step - Step size for each increment/decrement. Defaults to `1`.
|
|
2482
|
+
* @property {number[]} value - Current value(s). A single number for one handle;
|
|
2483
|
+
* an array for multi-handle mode. Defaults to `0`.
|
|
2484
|
+
* @property {boolean} disabled - Disables interaction with the slider. Defaults to `false`.
|
|
2485
|
+
* @property {boolean} discrete - Shows tick marks at each step position along the track. Defaults to `false`.
|
|
2486
|
+
* @property {string} tooltip - Controls tooltip visibility: `"never"`, or `"focus"`. Defaults to `"focus"`.
|
|
2487
|
+
* @method getValues - Returns the current value(s) as `number | number[]`.
|
|
2488
|
+
* @method setValues - Programmatically sets the slider value(s).
|
|
2489
|
+
*/
|
|
2490
|
+
interface HTMLBdsSliderElement extends Components.BdsSlider, HTMLStencilElement {
|
|
2491
|
+
addEventListener<K extends keyof HTMLBdsSliderElementEventMap>(type: K, listener: (this: HTMLBdsSliderElement, ev: BdsSliderCustomEvent<HTMLBdsSliderElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2492
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2493
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2494
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2495
|
+
removeEventListener<K extends keyof HTMLBdsSliderElementEventMap>(type: K, listener: (this: HTMLBdsSliderElement, ev: BdsSliderCustomEvent<HTMLBdsSliderElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
2496
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2497
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2498
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2499
|
+
}
|
|
2500
|
+
var HTMLBdsSliderElement: {
|
|
2501
|
+
prototype: HTMLBdsSliderElement;
|
|
2502
|
+
new (): HTMLBdsSliderElement;
|
|
2503
|
+
};
|
|
1557
2504
|
/**
|
|
1558
2505
|
* Spinner component used to indicate a loading or processing state.
|
|
1559
2506
|
* @summary Displays an animated circular spinner to communicate that content is loading.
|
|
@@ -1724,49 +2671,6 @@ declare global {
|
|
|
1724
2671
|
/**
|
|
1725
2672
|
* Typography component for displaying text with various styles, sizes, and interactive features.
|
|
1726
2673
|
* @summary A comprehensive typography component that supports multiple text variants, sizes, alignments, states, and link functionality.
|
|
1727
|
-
* @attr {string} variant - The variant of the typography for styling the text. Options: label, display, heading, subheading, helper, link, code, caption
|
|
1728
|
-
* @attr {string} element - Defines the HTML element. For `heading` variant, the text size adjusts to the HTML heading level (`h1` through `h6`).
|
|
1729
|
-
* @attr {string} state - The state of the typography. Only available for the `helper` and `label` variants. Options: default, error, disabled, hover, active, focus, visited
|
|
1730
|
-
* @attr {string} align - The text alignment. Options: start, center, end, inherit
|
|
1731
|
-
* @attr {string} size - The size of the typography. For `display` variant all options are available (`xl`, `lg`, `md`, `sm`), while for `link` variant only `md` and `sm` are available.
|
|
1732
|
-
* @attr {boolean} required - Shows a required indicator when used with `label` variant.
|
|
1733
|
-
* @attr {boolean} ellipsis - Truncates text with an ellipsis when it overflows.
|
|
1734
|
-
* @attr {number} max-lines - Maximum number of lines to show before truncating with ellipsis.
|
|
1735
|
-
* @attr {string} href - URL when the typography is an `a` element and a `link` variant.
|
|
1736
|
-
* @attr {string} target - Specifies where to open the link. Options: _self, _blank, _top, _parent
|
|
1737
|
-
* @attr {boolean} downloadable - Makes the `link` download a file.
|
|
1738
|
-
* @attr {string} filename - Suggested filename when downloading a file from the `link`.
|
|
1739
|
-
* @attr {string} html-for - The for attribute when rendered as a label
|
|
1740
|
-
* @attr {string} tooltip-text - Text to display inside the tooltip when hovering the info icon. Only applicable for `heading`, `subheading`, and `label` variants.
|
|
1741
|
-
* @attr {string} custom-class - Additional custom CSS class
|
|
1742
|
-
* @property {string} variant - The variant of the typography for styling the text. Options: label, display, heading, subheading, helper, link, code, caption
|
|
1743
|
-
* @property {string} element - Defines the HTML element. For `heading` variant, the text size adjusts to the HTML heading level (`h1` through `h6`).
|
|
1744
|
-
* @property {string} state - The state of the typography. Only available for the `helper` and `label` variants. Options: default, error, disabled, hover, active, focus, visited
|
|
1745
|
-
* @property {string} align - The text alignment. Options: start, center, end, inherit
|
|
1746
|
-
* @property {string} size - The size of the typography. For `display` variant all options are available (`xl`, `lg`, `md`, `sm`), while for `link` variant only `md` and `sm` are available.
|
|
1747
|
-
* @property {boolean} required - Shows a required indicator when used with `label` variant.
|
|
1748
|
-
* @property {boolean} ellipsis - Truncates text with an ellipsis when it overflows.
|
|
1749
|
-
* @property {number} maxLines - Maximum number of lines to show before truncating with ellipsis.
|
|
1750
|
-
* @property {string} href - URL when the typography is an `a` element and a `link` variant.
|
|
1751
|
-
* @property {string} target - Specifies where to open the link. Options: _self, _blank, _top, _parent
|
|
1752
|
-
* @property {boolean} downloadable - Makes the `link` download a file.
|
|
1753
|
-
* @property {string} filename - Suggested filename when downloading a file from the `link`.
|
|
1754
|
-
* @property {string} htmlFor - The for attribute when rendered as a label
|
|
1755
|
-
* @property {string} tooltipText - Text to display inside the tooltip when hovering the info icon. Only applicable for `heading`, `subheading`, and `label` variants.
|
|
1756
|
-
* @property {string} customClass - Additional custom CSS class
|
|
1757
|
-
* @default 'display' - Default variant value
|
|
1758
|
-
* @default 'p' - Default element value
|
|
1759
|
-
* @default 'start' - Default align value
|
|
1760
|
-
* @default 'md' - Default size value
|
|
1761
|
-
* @default 'default' - Default state value
|
|
1762
|
-
* @default false - Default required state
|
|
1763
|
-
* @default false - Default ellipsis state
|
|
1764
|
-
* @default 1 - Default maxLines value
|
|
1765
|
-
* @default '' - Default href value
|
|
1766
|
-
* @default '' - Default target value
|
|
1767
|
-
* @default false - Default downloadable state
|
|
1768
|
-
* @default 'download' - Default filename value
|
|
1769
|
-
* @default '' - Default tooltipText value
|
|
1770
2674
|
*/
|
|
1771
2675
|
interface HTMLBdsTypographyElement extends Components.BdsTypography, HTMLStencilElement {
|
|
1772
2676
|
}
|
|
@@ -1778,8 +2682,14 @@ declare global {
|
|
|
1778
2682
|
"bds-avatar": HTMLBdsAvatarElement;
|
|
1779
2683
|
"bds-badge": HTMLBdsBadgeElement;
|
|
1780
2684
|
"bds-banner": HTMLBdsBannerElement;
|
|
2685
|
+
"bds-breadcrumb": HTMLBdsBreadcrumbElement;
|
|
2686
|
+
"bds-breadcrumb-item": HTMLBdsBreadcrumbItemElement;
|
|
1781
2687
|
"bds-button": HTMLBdsButtonElement;
|
|
2688
|
+
"bds-button-group": HTMLBdsButtonGroupElement;
|
|
1782
2689
|
"bds-checkbox": HTMLBdsCheckboxElement;
|
|
2690
|
+
"bds-checkbox-button": HTMLBdsCheckboxButtonElement;
|
|
2691
|
+
"bds-checkbox-card": HTMLBdsCheckboxCardElement;
|
|
2692
|
+
"bds-checkbox-group": HTMLBdsCheckboxGroupElement;
|
|
1783
2693
|
"bds-dialog": HTMLBdsDialogElement;
|
|
1784
2694
|
"bds-divider": HTMLBdsDividerElement;
|
|
1785
2695
|
"bds-flag": HTMLBdsFlagElement;
|
|
@@ -1788,6 +2698,12 @@ declare global {
|
|
|
1788
2698
|
"bds-list-menu": HTMLBdsListMenuElement;
|
|
1789
2699
|
"bds-list-menu-item": HTMLBdsListMenuItemElement;
|
|
1790
2700
|
"bds-popover": HTMLBdsPopoverElement;
|
|
2701
|
+
"bds-radio": HTMLBdsRadioElement;
|
|
2702
|
+
"bds-radio-button": HTMLBdsRadioButtonElement;
|
|
2703
|
+
"bds-radio-card": HTMLBdsRadioCardElement;
|
|
2704
|
+
"bds-radio-group": HTMLBdsRadioGroupElement;
|
|
2705
|
+
"bds-select": HTMLBdsSelectElement;
|
|
2706
|
+
"bds-slider": HTMLBdsSliderElement;
|
|
1791
2707
|
"bds-spinner": HTMLBdsSpinnerElement;
|
|
1792
2708
|
"bds-status": HTMLBdsStatusElement;
|
|
1793
2709
|
"bds-tag": HTMLBdsTagElement;
|
|
@@ -1889,6 +2805,98 @@ declare namespace LocalJSX {
|
|
|
1889
2805
|
*/
|
|
1890
2806
|
"variant"?: IBanner['variant'];
|
|
1891
2807
|
}
|
|
2808
|
+
/**
|
|
2809
|
+
* @summary Breadcrumb navigation container component. Provides a structured navigation trail and
|
|
2810
|
+
* handles overflow using a collapse mechanism when the number of items exceeds `maxItems`.
|
|
2811
|
+
*/
|
|
2812
|
+
interface BdsBreadcrumb {
|
|
2813
|
+
/**
|
|
2814
|
+
* Number of items visible at the end after collapse occurs.
|
|
2815
|
+
* @default 1
|
|
2816
|
+
*/
|
|
2817
|
+
"itemsAfterCollapse"?: number;
|
|
2818
|
+
/**
|
|
2819
|
+
* Number of items visible at the start before collapse occurs.
|
|
2820
|
+
* @default 1
|
|
2821
|
+
*/
|
|
2822
|
+
"itemsBeforeCollapse"?: number;
|
|
2823
|
+
/**
|
|
2824
|
+
* Maximum number of breadcrumb items visible before collapsing. If set to 0 or undefined, no collapsing is applied.
|
|
2825
|
+
* @default 0
|
|
2826
|
+
*/
|
|
2827
|
+
"maxItems"?: number;
|
|
2828
|
+
/**
|
|
2829
|
+
* Emitted when a breadcrumb item is clicked.
|
|
2830
|
+
*/
|
|
2831
|
+
"onBdsClickBreadcrumb"?: (event: BdsBreadcrumbCustomEvent<BdsClickBreadcrumbEvent>) => void;
|
|
2832
|
+
/**
|
|
2833
|
+
* Emitted when the collapse indicator ("...") is clicked. Returns a reference to the clicked element and the list of collapsed breadcrumb items.
|
|
2834
|
+
*/
|
|
2835
|
+
"onBdsClickCollapsed"?: (event: BdsBreadcrumbCustomEvent<BdsClickCollapsedEvent>) => void;
|
|
2836
|
+
/**
|
|
2837
|
+
* Separator rendered between breadcrumb items.
|
|
2838
|
+
* @default "/"
|
|
2839
|
+
*/
|
|
2840
|
+
"separator"?: string;
|
|
2841
|
+
}
|
|
2842
|
+
/**
|
|
2843
|
+
* @summary Breadcrumb navigation item component that represents a single step within a breadcrumb navigation trail.
|
|
2844
|
+
*/
|
|
2845
|
+
interface BdsBreadcrumbItem {
|
|
2846
|
+
/**
|
|
2847
|
+
* Marks this breadcrumb item as the current page. When true, the item is non-interactive and has aria-current="page".
|
|
2848
|
+
* @default false
|
|
2849
|
+
*/
|
|
2850
|
+
"active"?: boolean;
|
|
2851
|
+
/**
|
|
2852
|
+
* Internal prop controlled by the parent breadcrumb. Indicates that this item is part of a collapsed range.
|
|
2853
|
+
* @default false
|
|
2854
|
+
*/
|
|
2855
|
+
"collapsed"?: boolean;
|
|
2856
|
+
/**
|
|
2857
|
+
* Enables download behavior for the link.
|
|
2858
|
+
* @default false
|
|
2859
|
+
*/
|
|
2860
|
+
"downloadable"?: boolean;
|
|
2861
|
+
/**
|
|
2862
|
+
* Suggested filename for the downloaded file.
|
|
2863
|
+
* @default 'filename'
|
|
2864
|
+
*/
|
|
2865
|
+
"filename"?: string;
|
|
2866
|
+
/**
|
|
2867
|
+
* URL for the breadcrumb link.
|
|
2868
|
+
* @default ''
|
|
2869
|
+
*/
|
|
2870
|
+
"href"?: string;
|
|
2871
|
+
/**
|
|
2872
|
+
* Emitted when a breadcrumb item is clicked.
|
|
2873
|
+
*/
|
|
2874
|
+
"onBdsClick"?: (event: BdsBreadcrumbItemCustomEvent<BdsClickItemEvent>) => void;
|
|
2875
|
+
/**
|
|
2876
|
+
* Emitted when the collapse indicator ("...") is activated.
|
|
2877
|
+
*/
|
|
2878
|
+
"onBdsClickCollapse"?: (event: BdsBreadcrumbItemCustomEvent<BdsClickCollapseEvent>) => void;
|
|
2879
|
+
/**
|
|
2880
|
+
* Relationship between the current document and the linked resource.
|
|
2881
|
+
* @default ''
|
|
2882
|
+
*/
|
|
2883
|
+
"rel"?: string;
|
|
2884
|
+
/**
|
|
2885
|
+
* Enables router-based navigation instead of native link navigation.
|
|
2886
|
+
* @default false
|
|
2887
|
+
*/
|
|
2888
|
+
"router"?: boolean;
|
|
2889
|
+
/**
|
|
2890
|
+
* Internal prop controlled by the parent breadcrumb. Renders the collapse indicator ("...") for hidden items.
|
|
2891
|
+
* @default false
|
|
2892
|
+
*/
|
|
2893
|
+
"showCollapse"?: boolean;
|
|
2894
|
+
/**
|
|
2895
|
+
* Specifies where to open the linked document.
|
|
2896
|
+
* @default '_self'
|
|
2897
|
+
*/
|
|
2898
|
+
"target"?: '_blank' | '_parent' | '_self' | '_top';
|
|
2899
|
+
}
|
|
1892
2900
|
/**
|
|
1893
2901
|
* Button component for user interactions, form submissions, supporting various styles, sizes, and states.
|
|
1894
2902
|
* @summary A versatile button component that can be customized with different colors, sizes, variants and states to fit various use cases in the application.
|
|
@@ -1898,7 +2906,7 @@ declare namespace LocalJSX {
|
|
|
1898
2906
|
* @attr {string} type - The type of the button, which can be 'button', 'submit', or 'reset'. Default is 'button'.
|
|
1899
2907
|
* @attr {string} color - The color theme of the button, which can be 'default', 'primary', 'success', or 'error'. Default is 'default'.
|
|
1900
2908
|
* @attr {string} variant - The visual style of the button, which can be 'default', 'outline', or 'plain'. Default is 'default'.
|
|
1901
|
-
* @attr {string} size - The size of the button, which can be '
|
|
2909
|
+
* @attr {string} size - The size of the button, which can be 'sm', 'md', or 'lg'. Default is 'md'.
|
|
1902
2910
|
* @attr {boolean} loading - Indicates whether the button is in a loading state, which can be used to show a loading spinner and disable the button. Default is false.
|
|
1903
2911
|
* @attr {boolean} disclosure - Indicates if the button should show a chevron down at the end of the content.
|
|
1904
2912
|
* @property {string} label - The accessible name for the button, used for screen readers. It should be provided by the user for accessibility purposes.
|
|
@@ -1907,13 +2915,13 @@ declare namespace LocalJSX {
|
|
|
1907
2915
|
* @property {string} type - The type of the button, which can be 'button', 'submit', or 'reset'. Default is 'button'.
|
|
1908
2916
|
* @property {string} color - The color theme of the button, which can be 'default', 'primary', 'success', or 'error'. Default is 'default'.
|
|
1909
2917
|
* @property {string} variant - The visual style of the button, which can be 'default', 'outline', or 'plain'. Default is 'default'.
|
|
1910
|
-
* @property {string} size - The size of the button, which can be '
|
|
2918
|
+
* @property {string} size - The size of the button, which can be 'sm', 'md', or 'lg'. Default is 'md'.
|
|
1911
2919
|
* @property {boolean} loading - Indicates whether the button is in a loading state, which can be used to show a loading spinner and disable the button. Default is false.
|
|
1912
2920
|
* @property {boolean} disclosure - Indicates if the button should show a chevron down at the end of the content.
|
|
1913
2921
|
* @default 'button' - Default type value
|
|
1914
2922
|
* @default 'default' - Default color value
|
|
1915
2923
|
* @default 'default' - Default variant value
|
|
1916
|
-
* @default '
|
|
2924
|
+
* @default 'md' - Default size value
|
|
1917
2925
|
* @default 'default' - Default status value
|
|
1918
2926
|
* @default false - Default disabled value
|
|
1919
2927
|
* @default '' - Default label value
|
|
@@ -1961,7 +2969,7 @@ declare namespace LocalJSX {
|
|
|
1961
2969
|
*/
|
|
1962
2970
|
"onBdsClick"?: (event: BdsButtonCustomEvent<UIEvent>) => void;
|
|
1963
2971
|
/**
|
|
1964
|
-
* size is a string attribute. The size of the button, which can be '
|
|
2972
|
+
* size is a string attribute. The size of the button, which can be 'sm', 'md', or 'lg'. Default is 'md'.
|
|
1965
2973
|
* @default BUTTON_SIZES.MEDIUM
|
|
1966
2974
|
*/
|
|
1967
2975
|
"size"?: IButton['size'];
|
|
@@ -1976,6 +2984,36 @@ declare namespace LocalJSX {
|
|
|
1976
2984
|
*/
|
|
1977
2985
|
"variant"?: IButton['variant'];
|
|
1978
2986
|
}
|
|
2987
|
+
/**
|
|
2988
|
+
* Button group component for grouping related buttons together in a unified visual unit.
|
|
2989
|
+
*/
|
|
2990
|
+
interface BdsButtonGroup {
|
|
2991
|
+
/**
|
|
2992
|
+
* Controls the color applied to all child `<bds-button>` elements. Accepted values: see `CoreColors`. Default is `default`.
|
|
2993
|
+
* @default CORE_COLORS.DEFAULT
|
|
2994
|
+
*/
|
|
2995
|
+
"color"?: IButtonGroup['color'];
|
|
2996
|
+
/**
|
|
2997
|
+
* Provides an accessible label for the button group.
|
|
2998
|
+
* @default 'Button group'
|
|
2999
|
+
*/
|
|
3000
|
+
"label"?: IButtonGroup['label'];
|
|
3001
|
+
/**
|
|
3002
|
+
* Controls the layout direction of the grouped buttons. Accepted values: `'horizontal'`, `'vertical'`. Default is `'horizontal'`.
|
|
3003
|
+
* @default ORIENTATIONS.HORIZONTAL
|
|
3004
|
+
*/
|
|
3005
|
+
"orientation"?: IButtonGroup['orientation'];
|
|
3006
|
+
/**
|
|
3007
|
+
* Controls the size applied to all child `<bds-button>` elements. Accepted values: `'sm'`, `'md'`, `'lg'`. Default is `'md'`.
|
|
3008
|
+
* @default BUTTON_SIZES.MEDIUM
|
|
3009
|
+
*/
|
|
3010
|
+
"size"?: IButtonGroup['size'];
|
|
3011
|
+
/**
|
|
3012
|
+
* Controls the variant applied to all child `<bds-button>` elements. Accepted values: `'default'`, `'outline'`, `'plain'`. Default is `'default'`.
|
|
3013
|
+
* @default BUTTON_VARIANTS.DEFAULT
|
|
3014
|
+
*/
|
|
3015
|
+
"variant"?: IButtonGroup['variant'];
|
|
3016
|
+
}
|
|
1979
3017
|
/**
|
|
1980
3018
|
* Checkbox component for boolean selection with three visual states.
|
|
1981
3019
|
* @summary A checkbox form control with default, selected, and indeterminate states.
|
|
@@ -1994,7 +3032,7 @@ declare namespace LocalJSX {
|
|
|
1994
3032
|
*/
|
|
1995
3033
|
"checked"?: boolean;
|
|
1996
3034
|
/**
|
|
1997
|
-
* Disables the
|
|
3035
|
+
* Disables the checkbox.
|
|
1998
3036
|
* @default false
|
|
1999
3037
|
*/
|
|
2000
3038
|
"disabled"?: boolean;
|
|
@@ -2012,6 +3050,11 @@ declare namespace LocalJSX {
|
|
|
2012
3050
|
* @default false
|
|
2013
3051
|
*/
|
|
2014
3052
|
"indeterminate"?: boolean;
|
|
3053
|
+
/**
|
|
3054
|
+
* Tooltip text for the checkbox.
|
|
3055
|
+
* @default ''
|
|
3056
|
+
*/
|
|
3057
|
+
"info"?: string;
|
|
2015
3058
|
/**
|
|
2016
3059
|
* Label displayed next to the checkbox. If not provided, the default slot is used.
|
|
2017
3060
|
* @default ''
|
|
@@ -2019,8 +3062,9 @@ declare namespace LocalJSX {
|
|
|
2019
3062
|
"label"?: string;
|
|
2020
3063
|
/**
|
|
2021
3064
|
* Name of the form control, submitted as a key in the form data.
|
|
3065
|
+
* @default ''
|
|
2022
3066
|
*/
|
|
2023
|
-
"name"
|
|
3067
|
+
"name"?: string;
|
|
2024
3068
|
/**
|
|
2025
3069
|
* Emitted when the user toggles the checkbox.
|
|
2026
3070
|
*/
|
|
@@ -2030,7 +3074,7 @@ declare namespace LocalJSX {
|
|
|
2030
3074
|
*/
|
|
2031
3075
|
"onValueChange"?: (event: BdsCheckboxCustomEvent<boolean>) => void;
|
|
2032
3076
|
/**
|
|
2033
|
-
* Marks the
|
|
3077
|
+
* Marks the checkbox as required for form submission.
|
|
2034
3078
|
* @default false
|
|
2035
3079
|
*/
|
|
2036
3080
|
"required"?: boolean;
|
|
@@ -2041,56 +3085,250 @@ declare namespace LocalJSX {
|
|
|
2041
3085
|
"value"?: string;
|
|
2042
3086
|
}
|
|
2043
3087
|
/**
|
|
2044
|
-
*
|
|
2045
|
-
*
|
|
2046
|
-
*
|
|
2047
|
-
*
|
|
2048
|
-
*
|
|
2049
|
-
* @attr {string} content-padding - Content padding: 'default' or 'none'.
|
|
2050
|
-
* @attr {boolean} backdrop-close - Close on backdrop click.
|
|
2051
|
-
* @attr {boolean} escape-close - Close on Escape key.
|
|
2052
|
-
* @attr {string} size - Dialog size: 'sm', 'md', 'lg', or 'full'.
|
|
2053
|
-
* @attr {string} variant - Visual variant: 'default', 'info', 'success', 'warning', or 'danger'.
|
|
2054
|
-
* @attr {string} title-dialog - Dialog title text.
|
|
2055
|
-
* @attr {boolean} maximizable - Show maximize button.
|
|
2056
|
-
* @attr {boolean} closable - Show close button.
|
|
2057
|
-
* @attr {string} width - Custom width for the dialog.
|
|
2058
|
-
* @attr {string} height - Custom height for the dialog.
|
|
2059
|
-
* @property {boolean} active - Controls whether the dialog is open.
|
|
2060
|
-
* @property {boolean} preventClose - Disables closing the dialog.
|
|
2061
|
-
* @property {string} height - Custom height for the dialog.
|
|
2062
|
-
* @property {string} width - Custom width for the dialog.
|
|
2063
|
-
* @property {string} layout - Layout type: 'default', 'headerless', or 'footerless'.
|
|
2064
|
-
* @property {string} contentPadding - Content padding: 'default' or 'none'.
|
|
2065
|
-
* @property {boolean} backdropClose - Close dialog when clicking the backdrop.
|
|
2066
|
-
* @property {boolean} escapeClose - Close dialog when pressing Escape.
|
|
2067
|
-
* @property {string} size - Dialog size: 'sm', 'md', 'lg', or 'full'.
|
|
2068
|
-
* @property {string} variant - Visual variant: 'default', 'info', 'success', 'warning', or 'danger'.
|
|
2069
|
-
* @property {string} titleDialog - Title text displayed in the header.
|
|
2070
|
-
* @property {boolean} maximizable - Show maximize button.
|
|
2071
|
-
* @property {boolean} closable - Hide the close button in the header.
|
|
2072
|
-
* @fires bdsOpen - Emitted when the dialog opens.
|
|
2073
|
-
* @fires bdsClose - Emitted when the dialog closes.
|
|
2074
|
-
* @fires bdsMaximize - Emitted when the maximize button is clicked.
|
|
2075
|
-
* @cssprop --bds-dialog-width - Custom width for the dialog.
|
|
2076
|
-
* @cssprop --bds-dialog-height - Custom height for the dialog.
|
|
3088
|
+
* Button-shaped checkbox option that toggles independently on each interaction.
|
|
3089
|
+
* Renders as a pill-button with the same visual language as `bds-radio-button`, but uses
|
|
3090
|
+
* `role="checkbox"` and multi-select semantics — toggling one button has no effect on others.
|
|
3091
|
+
* Can be used standalone (with `name` and optional `required`) or inside a `bds-checkbox-group`,
|
|
3092
|
+
* which is the recommended approach for coordinated form state and group-level validation.
|
|
2077
3093
|
*/
|
|
2078
|
-
interface
|
|
3094
|
+
interface BdsCheckboxButton {
|
|
2079
3095
|
/**
|
|
2080
|
-
*
|
|
3096
|
+
* Toggle state of this button. Flips on every interaction when not disabled.
|
|
2081
3097
|
* @default false
|
|
2082
3098
|
*/
|
|
2083
|
-
"
|
|
3099
|
+
"checked"?: boolean;
|
|
2084
3100
|
/**
|
|
2085
|
-
*
|
|
3101
|
+
* Disables the button, preventing interaction. Propagated by `bds-checkbox-group` when the group is disabled.
|
|
2086
3102
|
* @default false
|
|
2087
3103
|
*/
|
|
2088
|
-
"
|
|
3104
|
+
"disabled"?: boolean;
|
|
2089
3105
|
/**
|
|
2090
|
-
*
|
|
3106
|
+
* Shows error styling on the button.
|
|
2091
3107
|
* @default false
|
|
2092
3108
|
*/
|
|
2093
|
-
"
|
|
3109
|
+
"error"?: boolean;
|
|
3110
|
+
/**
|
|
3111
|
+
* The `id` of a `<form>` element to associate this element with.
|
|
3112
|
+
*/
|
|
3113
|
+
"form"?: string;
|
|
3114
|
+
/**
|
|
3115
|
+
* Tooltip text shown on an info icon next to the label.
|
|
3116
|
+
* @default ''
|
|
3117
|
+
*/
|
|
3118
|
+
"info"?: string;
|
|
3119
|
+
/**
|
|
3120
|
+
* Label text displayed inside the button. Falls back to the default slot when empty.
|
|
3121
|
+
* @default ''
|
|
3122
|
+
*/
|
|
3123
|
+
"label"?: string;
|
|
3124
|
+
/**
|
|
3125
|
+
* Name of the form control, submitted as a key in the form data.
|
|
3126
|
+
* @default ''
|
|
3127
|
+
*/
|
|
3128
|
+
"name"?: string;
|
|
3129
|
+
/**
|
|
3130
|
+
* Emitted on every toggle — both when the button becomes checked and when it becomes unchecked. Payload: `{ checked: boolean, value: string }`.
|
|
3131
|
+
*/
|
|
3132
|
+
"onBdsChange"?: (event: BdsCheckboxButtonCustomEvent<CheckboxButtonChangeDetail>) => void;
|
|
3133
|
+
/**
|
|
3134
|
+
* Emitted when the checked state changes. Used for `v-model` two-way binding in Vue. Payload: `boolean`.
|
|
3135
|
+
*/
|
|
3136
|
+
"onValueChange"?: (event: BdsCheckboxButtonCustomEvent<boolean>) => void;
|
|
3137
|
+
/**
|
|
3138
|
+
* Marks this button as required for form submission. Has no effect when used inside `bds-checkbox-group`.
|
|
3139
|
+
* @default false
|
|
3140
|
+
*/
|
|
3141
|
+
"required"?: boolean;
|
|
3142
|
+
/**
|
|
3143
|
+
* Value associated with this button; submitted with form data when checked.
|
|
3144
|
+
* @default 'on'
|
|
3145
|
+
*/
|
|
3146
|
+
"value"?: string;
|
|
3147
|
+
}
|
|
3148
|
+
/**
|
|
3149
|
+
* @summary Checkbox card component is a selectable card-based checkbox option.
|
|
3150
|
+
*/
|
|
3151
|
+
interface BdsCheckboxCard {
|
|
3152
|
+
/**
|
|
3153
|
+
* Whether this checkbox card is selected.
|
|
3154
|
+
* @default false
|
|
3155
|
+
*/
|
|
3156
|
+
"checked"?: ICheckboxCard['checked'];
|
|
3157
|
+
/**
|
|
3158
|
+
* Disables the control.
|
|
3159
|
+
* @default false
|
|
3160
|
+
*/
|
|
3161
|
+
"disabled"?: ICheckboxCard['disabled'];
|
|
3162
|
+
/**
|
|
3163
|
+
* Whether the checkbox card is in an error state.
|
|
3164
|
+
* @default false
|
|
3165
|
+
*/
|
|
3166
|
+
"error"?: ICheckboxCard['error'];
|
|
3167
|
+
/**
|
|
3168
|
+
* The `id` of a `<form>` element to associate this element with.
|
|
3169
|
+
*/
|
|
3170
|
+
"form"?: string;
|
|
3171
|
+
/**
|
|
3172
|
+
* Whether the checkbox card shows an indeterminate visual state.
|
|
3173
|
+
* @default false
|
|
3174
|
+
*/
|
|
3175
|
+
"indeterminate"?: ICheckboxCard['indeterminate'];
|
|
3176
|
+
/**
|
|
3177
|
+
* Label text displayed next to the checkbox indicator. Falls back to the default slot when empty.
|
|
3178
|
+
* @default ''
|
|
3179
|
+
*/
|
|
3180
|
+
"label"?: ICheckboxCard['label'];
|
|
3181
|
+
/**
|
|
3182
|
+
* Name of the form control, submitted as a key in the form data.
|
|
3183
|
+
*/
|
|
3184
|
+
"name": ICheckboxCard['name'];
|
|
3185
|
+
/**
|
|
3186
|
+
* Emitted when the user toggles this checkbox card.
|
|
3187
|
+
*/
|
|
3188
|
+
"onBdsChange"?: (event: BdsCheckboxCardCustomEvent<any>) => void;
|
|
3189
|
+
/**
|
|
3190
|
+
* Emitted when the checked state changes. Useful for 2-way binding / v-model.
|
|
3191
|
+
*/
|
|
3192
|
+
"onValueChange"?: (event: BdsCheckboxCardCustomEvent<any>) => void;
|
|
3193
|
+
/**
|
|
3194
|
+
* Marks the control as required for form submission.
|
|
3195
|
+
* @default false
|
|
3196
|
+
*/
|
|
3197
|
+
"required"?: ICheckboxCard['required'];
|
|
3198
|
+
/**
|
|
3199
|
+
* Value submitted with the form when this checkbox is selected.
|
|
3200
|
+
* @default 'on'
|
|
3201
|
+
*/
|
|
3202
|
+
"value"?: ICheckboxCard['value'];
|
|
3203
|
+
}
|
|
3204
|
+
/**
|
|
3205
|
+
* Checkbox group component that orchestrates multi-selection across a set of `bds-checkbox`, `bds-checkbox-button`, `bds-checkbox-card` children.
|
|
3206
|
+
*/
|
|
3207
|
+
interface BdsCheckboxGroup {
|
|
3208
|
+
/**
|
|
3209
|
+
* Disables all child checkboxes and prevents selection. Also mirrored to isDisabled
|
|
3210
|
+
* @State for form-level disable support.
|
|
3211
|
+
* @default false
|
|
3212
|
+
*/
|
|
3213
|
+
"disabled"?: boolean;
|
|
3214
|
+
/**
|
|
3215
|
+
* Shows error styling on the group helper text. Propagated to all child checkboxes.
|
|
3216
|
+
* @default false
|
|
3217
|
+
*/
|
|
3218
|
+
"error"?: boolean;
|
|
3219
|
+
/**
|
|
3220
|
+
* Error message rendered below the checkbox options when error is true. Replaces helperText.
|
|
3221
|
+
* @default ''
|
|
3222
|
+
*/
|
|
3223
|
+
"errorMessage"?: string;
|
|
3224
|
+
/**
|
|
3225
|
+
* The `id` of a `<form>` element to associate this element with.
|
|
3226
|
+
*/
|
|
3227
|
+
"form"?: string;
|
|
3228
|
+
/**
|
|
3229
|
+
* Helper text rendered below the checkbox options. Shown in default state; replaced by errorMessage in error state.
|
|
3230
|
+
* @default ''
|
|
3231
|
+
*/
|
|
3232
|
+
"helperText"?: string;
|
|
3233
|
+
/**
|
|
3234
|
+
* Tooltip text shown on the group label info icon.
|
|
3235
|
+
* @default ''
|
|
3236
|
+
*/
|
|
3237
|
+
"info"?: string;
|
|
3238
|
+
/**
|
|
3239
|
+
* Hides the divider between checkbox buttons when type is 'checkboxbutton'.
|
|
3240
|
+
* @default false
|
|
3241
|
+
*/
|
|
3242
|
+
"joined"?: false;
|
|
3243
|
+
/**
|
|
3244
|
+
* Group label rendered above the checkbox options.
|
|
3245
|
+
* @default ''
|
|
3246
|
+
*/
|
|
3247
|
+
"label"?: string;
|
|
3248
|
+
/**
|
|
3249
|
+
* Name of the form control; submitted as the field key in FormData.
|
|
3250
|
+
*/
|
|
3251
|
+
"name": string;
|
|
3252
|
+
/**
|
|
3253
|
+
* Emitted when any checkbox is toggled. Payload includes the complete updated values array.
|
|
3254
|
+
*/
|
|
3255
|
+
"onBdsChange"?: (event: BdsCheckboxGroupCustomEvent<CheckboxGroupChangeDetail>) => void;
|
|
3256
|
+
/**
|
|
3257
|
+
* Emitted when any checkbox is toggled. Used for v-model two-way binding in Vue.
|
|
3258
|
+
*/
|
|
3259
|
+
"onValueChange"?: (event: BdsCheckboxGroupCustomEvent<string[]>) => void;
|
|
3260
|
+
/**
|
|
3261
|
+
* Layout direction of the checkbox options.
|
|
3262
|
+
* @default 'horizontal'
|
|
3263
|
+
*/
|
|
3264
|
+
"orientation"?: Orientation;
|
|
3265
|
+
/**
|
|
3266
|
+
* Marks the group as required for form submission. Triggers validity error when no checkboxes are selected.
|
|
3267
|
+
* @default false
|
|
3268
|
+
*/
|
|
3269
|
+
"required"?: boolean;
|
|
3270
|
+
/**
|
|
3271
|
+
* Identifies this group variant. 'checkbox' renders bds-checkbox children; 'checkboxbutton' renders bds-checkbox-button segmented control; 'checkboxcard' renders bds-checkbox-card element.
|
|
3272
|
+
* @default 'checkbox'
|
|
3273
|
+
*/
|
|
3274
|
+
"type"?: CheckboxGroupType;
|
|
3275
|
+
/**
|
|
3276
|
+
* Currently selected checkbox values. Synced to children on change.
|
|
3277
|
+
* @default []
|
|
3278
|
+
*/
|
|
3279
|
+
"value"?: string[];
|
|
3280
|
+
}
|
|
3281
|
+
/**
|
|
3282
|
+
* Modal dialog component for displaying content in an overlay.
|
|
3283
|
+
* @summary Modal overlay for alerts, forms, and confirmations with customizable layout and behavior.
|
|
3284
|
+
* @attr {boolean} active - Controls dialog visibility.
|
|
3285
|
+
* @attr {boolean} prevent-close - Disables closing the dialog.
|
|
3286
|
+
* @attr {string} layout - Layout type: 'default', 'headerless', or 'footerless'.
|
|
3287
|
+
* @attr {string} content-padding - Content padding: 'default' or 'none'.
|
|
3288
|
+
* @attr {boolean} backdrop-close - Close on backdrop click.
|
|
3289
|
+
* @attr {boolean} escape-close - Close on Escape key.
|
|
3290
|
+
* @attr {string} size - Dialog size: 'sm', 'md', 'lg', or 'full'.
|
|
3291
|
+
* @attr {string} variant - Visual variant: 'default', 'info', 'success', 'warning', or 'danger'.
|
|
3292
|
+
* @attr {string} title-dialog - Dialog title text.
|
|
3293
|
+
* @attr {boolean} maximizable - Show maximize button.
|
|
3294
|
+
* @attr {boolean} closable - Show close button.
|
|
3295
|
+
* @attr {string} width - Custom width for the dialog.
|
|
3296
|
+
* @attr {string} height - Custom height for the dialog.
|
|
3297
|
+
* @property {boolean} active - Controls whether the dialog is open.
|
|
3298
|
+
* @property {boolean} preventClose - Disables closing the dialog.
|
|
3299
|
+
* @property {string} height - Custom height for the dialog.
|
|
3300
|
+
* @property {string} width - Custom width for the dialog.
|
|
3301
|
+
* @property {string} layout - Layout type: 'default', 'headerless', or 'footerless'.
|
|
3302
|
+
* @property {string} contentPadding - Content padding: 'default' or 'none'.
|
|
3303
|
+
* @property {boolean} backdropClose - Close dialog when clicking the backdrop.
|
|
3304
|
+
* @property {boolean} escapeClose - Close dialog when pressing Escape.
|
|
3305
|
+
* @property {string} size - Dialog size: 'sm', 'md', 'lg', or 'full'.
|
|
3306
|
+
* @property {string} variant - Visual variant: 'default', 'info', 'success', 'warning', or 'danger'.
|
|
3307
|
+
* @property {string} titleDialog - Title text displayed in the header.
|
|
3308
|
+
* @property {boolean} maximizable - Show maximize button.
|
|
3309
|
+
* @property {boolean} closable - Hide the close button in the header.
|
|
3310
|
+
* @fires bdsOpen - Emitted when the dialog opens.
|
|
3311
|
+
* @fires bdsClose - Emitted when the dialog closes.
|
|
3312
|
+
* @fires bdsMaximize - Emitted when the maximize button is clicked.
|
|
3313
|
+
* @cssprop --bds-dialog-width - Custom width for the dialog.
|
|
3314
|
+
* @cssprop --bds-dialog-height - Custom height for the dialog.
|
|
3315
|
+
*/
|
|
3316
|
+
interface BdsDialog {
|
|
3317
|
+
/**
|
|
3318
|
+
* Controls whether the dialog is open.
|
|
3319
|
+
* @default false
|
|
3320
|
+
*/
|
|
3321
|
+
"active"?: IDialog['active'];
|
|
3322
|
+
/**
|
|
3323
|
+
* Close dialog when clicking the backdrop.
|
|
3324
|
+
* @default false
|
|
3325
|
+
*/
|
|
3326
|
+
"backdropClose"?: IDialog['backdropClose'];
|
|
3327
|
+
/**
|
|
3328
|
+
* Hide the close button in the header.
|
|
3329
|
+
* @default false
|
|
3330
|
+
*/
|
|
3331
|
+
"closable"?: IDialog['closable'];
|
|
2094
3332
|
/**
|
|
2095
3333
|
* Content padding: 'default' or 'none'.
|
|
2096
3334
|
* @default DIALOG_CONTENT_PADDING.DEFAULT
|
|
@@ -2238,217 +3476,578 @@ declare namespace LocalJSX {
|
|
|
2238
3476
|
*/
|
|
2239
3477
|
interface BdsGrid {
|
|
2240
3478
|
/**
|
|
2241
|
-
* `'fluid'` fills full width; `'fixed'` caps the column area at 960px and centres the container.
|
|
2242
|
-
* @default GRID_LAYOUT.FLUID
|
|
3479
|
+
* `'fluid'` fills full width; `'fixed'` caps the column area at 960px and centres the container.
|
|
3480
|
+
* @default GRID_LAYOUT.FLUID
|
|
3481
|
+
*/
|
|
3482
|
+
"layout"?: IGrid['layout'];
|
|
3483
|
+
/**
|
|
3484
|
+
* Overrides the row gap independently of the column gutter.
|
|
3485
|
+
*/
|
|
3486
|
+
"rowGap"?: IGrid['rowGap'];
|
|
3487
|
+
}
|
|
3488
|
+
/**
|
|
3489
|
+
* Grid item child of `bds-grid`. Must be a direct child of `bds-grid`.
|
|
3490
|
+
*/
|
|
3491
|
+
interface BdsGridItem {
|
|
3492
|
+
/**
|
|
3493
|
+
* Column span at all breakpoints (fallback). `'full'` spans all columns (`grid-column: 1 / -1`).
|
|
3494
|
+
* @default GRID_ITEM_COL_SPAN.DEFAULT
|
|
3495
|
+
*/
|
|
3496
|
+
"colSpan"?: IGridItem['colSpan'];
|
|
3497
|
+
/**
|
|
3498
|
+
* Override col-span at the `2xl` breakpoint (≥1344px).
|
|
3499
|
+
*/
|
|
3500
|
+
"colSpan2xl"?: IGridItem['colSpan2xl'];
|
|
3501
|
+
/**
|
|
3502
|
+
* Override col-span at the `lg` breakpoint (≥960px).
|
|
3503
|
+
*/
|
|
3504
|
+
"colSpanLg"?: IGridItem['colSpanLg'];
|
|
3505
|
+
/**
|
|
3506
|
+
* Override col-span at the `md` breakpoint (≥769px).
|
|
3507
|
+
*/
|
|
3508
|
+
"colSpanMd"?: IGridItem['colSpanMd'];
|
|
3509
|
+
/**
|
|
3510
|
+
* Override col-span at the `sm` breakpoint (≥320px).
|
|
3511
|
+
*/
|
|
3512
|
+
"colSpanSm"?: IGridItem['colSpanSm'];
|
|
3513
|
+
/**
|
|
3514
|
+
* Override col-span at the `xl` breakpoint (≥1152px).
|
|
3515
|
+
*/
|
|
3516
|
+
"colSpanXl"?: IGridItem['colSpanXl'];
|
|
3517
|
+
/**
|
|
3518
|
+
* Column offset: shifts the item right by N columns (0–11).
|
|
3519
|
+
* @default 0
|
|
3520
|
+
*/
|
|
3521
|
+
"offset"?: IGridItem['offset'];
|
|
3522
|
+
/**
|
|
3523
|
+
* Row span. `'full'` maps to `grid-row: 1 / -1`.
|
|
3524
|
+
*/
|
|
3525
|
+
"rowSpan"?: IGridItem['rowSpan'];
|
|
3526
|
+
}
|
|
3527
|
+
/**
|
|
3528
|
+
* Container component that manages a list of menu items.
|
|
3529
|
+
* It handles selection logic (single/multiple) and maintains the data state.
|
|
3530
|
+
* @summary A list menu component that can contain multiple menu items and manage their selection state.
|
|
3531
|
+
* @fires bdsChange - Emitted when the selection changes, providing the current selected value(s).
|
|
3532
|
+
* @fires bdsSelect - Emmited when item is selected in menu-role="menu" is clicked
|
|
3533
|
+
* @method getSelectedValues - Returns the currently selected value(s). If multiple is true, returns an array of strings; otherwise, returns a single string or undefined.
|
|
3534
|
+
* @method setSelectedValues - Sets the selected value(s). Accepts a string for single selection or an array of strings for multiple selection.
|
|
3535
|
+
*/
|
|
3536
|
+
interface BdsListMenu {
|
|
3537
|
+
/**
|
|
3538
|
+
* Prop to show in all items a checkbox
|
|
3539
|
+
* @default false
|
|
3540
|
+
*/
|
|
3541
|
+
"checkable"?: IListMenu['checkable'];
|
|
3542
|
+
/**
|
|
3543
|
+
* is empty state item
|
|
3544
|
+
* @default false
|
|
3545
|
+
*/
|
|
3546
|
+
"empty"?: IListMenu['empty'];
|
|
3547
|
+
/**
|
|
3548
|
+
* Prop to show empty text
|
|
3549
|
+
* @default 'No options available'
|
|
3550
|
+
*/
|
|
3551
|
+
"emptyText"?: IListMenu['emptyText'];
|
|
3552
|
+
/**
|
|
3553
|
+
* Defines the ARIA role of the menu. Can be 'menu' or 'listbox'. Default is 'menu'.
|
|
3554
|
+
* @default MENU_ROLES.MENU
|
|
3555
|
+
*/
|
|
3556
|
+
"menuRole"?: IListMenu['menuRole'];
|
|
3557
|
+
/**
|
|
3558
|
+
* Emitted when the selection changes, providing the current selected value(s).
|
|
3559
|
+
*/
|
|
3560
|
+
"onBdsChange"?: (event: BdsListMenuCustomEvent<string | string[]>) => void;
|
|
3561
|
+
/**
|
|
3562
|
+
* Emitted when the selection changes, providing the current selected value(s).
|
|
3563
|
+
*/
|
|
3564
|
+
"onBdsSelect"?: (event: BdsListMenuCustomEvent<ListMenuChangeDetail>) => void;
|
|
3565
|
+
/**
|
|
3566
|
+
* Determines if the menu items have selectall/deselectall controls
|
|
3567
|
+
* @default false
|
|
3568
|
+
*/
|
|
3569
|
+
"selectControls"?: IListMenu['selectControls'];
|
|
3570
|
+
/**
|
|
3571
|
+
* The selection mode of the menu. Can be 'SINGLE' or 'MULTIPLE'. Default is 'SINGLE'.
|
|
3572
|
+
* @default LIST_MENU_SELECTION_MODE.SINGLE
|
|
3573
|
+
*/
|
|
3574
|
+
"selectionMode"?: IListMenu['selectionMode'];
|
|
3575
|
+
}
|
|
3576
|
+
/**
|
|
3577
|
+
* Component representing an individual item within a list menu for navigations and selection.
|
|
3578
|
+
* @summary A menu item component that supports different variants, disabled state, and selection state, it also supports link behavior when the href prop is provided.
|
|
3579
|
+
* @attr {string} variant - Defines the visual style of the list menu item. Can be 'button' or 'label'. Default is 'button'.
|
|
3580
|
+
* @attr {string} name - The name of the list menu item.
|
|
3581
|
+
* @attr {boolean} disabled - If true, the menu item is non-interactive and styled as disabled.
|
|
3582
|
+
* @attr {boolean} selected - If true, the menu item is styled as selected.
|
|
3583
|
+
* @attr {boolean} activeItem - If true, the menu item is styled as active.
|
|
3584
|
+
* @attr {string} value - The value associated with the menu item, emitted in events when activated.\
|
|
3585
|
+
* @attr {string} href - The URL for the link. If provided, the menu item will behave as a link.
|
|
3586
|
+
* @attr {boolean} newTab - If true, the link will open in a new tab. Only applicable if href is provided.
|
|
3587
|
+
* @attr {boolean} downloadable - If true, the link will be treated as a download link. Only applicable if href is provided.
|
|
3588
|
+
* @attr {string} filename - The suggested filename for the download. Only applicable if downloadable is true.
|
|
3589
|
+
* @property {string} variant - Defines the visual style of the list menu item. Can be 'button' or 'label'. Default is 'button'.
|
|
3590
|
+
* @property {string} name - The name of the list menu item.
|
|
3591
|
+
* @property {boolean} disabled - If true, the menu item is non-interactive and styled as disabled.
|
|
3592
|
+
* @property {boolean} selected - If true, the menu item is styled as selected.
|
|
3593
|
+
* @property {boolean} activeItem - If true, the menu item is styled as active.
|
|
3594
|
+
* @property {string} value - The value associated with the menu item, emitted in events when activated.
|
|
3595
|
+
* @property {string} href - The URL for the link. If provided, the menu item will behave as a link.
|
|
3596
|
+
* @property {boolean} newTab - If true, the link will open in a new tab. Only applicable if href is provided.
|
|
3597
|
+
* @property {boolean} downloadable - If true, the link will be treated as a download link. Only applicable if href is provided.
|
|
3598
|
+
* @property {string} filename - The suggested filename for the download. Only applicable if downloadable is true.
|
|
3599
|
+
* @default 'button' - The default variant for the menu item is 'button', which is a standard clickable item.
|
|
3600
|
+
* @default '' - By default, the name of the menu item is an empty string.
|
|
3601
|
+
* @default false - By default, the menu item is not disabled and is interactive.
|
|
3602
|
+
* @default false - By default, the menu item is not selected.
|
|
3603
|
+
* @default false - By default, the menu item is not active.
|
|
3604
|
+
* @default '' - By default, the value of the menu item is an empty string.
|
|
3605
|
+
* @default '' - By default, the href is an empty string, meaning the menu item will not behave as a link.
|
|
3606
|
+
* @default false - By default, the newTab property is false, meaning links will open in the same tab.
|
|
3607
|
+
* @default false - By default, the downloadable property is false, meaning links will not be treated as download links.
|
|
3608
|
+
* @default '' - By default, the filename is an empty string, meaning no suggested filename for downloads.
|
|
3609
|
+
*/
|
|
3610
|
+
interface BdsListMenuItem {
|
|
3611
|
+
/**
|
|
3612
|
+
* Active state item
|
|
3613
|
+
* @default false
|
|
3614
|
+
*/
|
|
3615
|
+
"activeItem"?: IListMenuItem['activeItem'];
|
|
3616
|
+
/**
|
|
3617
|
+
* Checkable state item, if is activated should be visible a checkbox
|
|
3618
|
+
* @default false
|
|
3619
|
+
*/
|
|
3620
|
+
"checkable"?: IListMenuItem['checkable'];
|
|
3621
|
+
/**
|
|
3622
|
+
* Disabled state item
|
|
3623
|
+
* @default false
|
|
3624
|
+
*/
|
|
3625
|
+
"disabled"?: IListMenuItem['disabled'];
|
|
3626
|
+
/**
|
|
3627
|
+
* Makes the link downloadable if true
|
|
3628
|
+
* @default ''
|
|
3629
|
+
*/
|
|
3630
|
+
"download"?: IListMenuItem['download'];
|
|
3631
|
+
/**
|
|
3632
|
+
* Link behavior props
|
|
3633
|
+
* @default ''
|
|
3634
|
+
*/
|
|
3635
|
+
"href"?: IListMenuItem['href'];
|
|
3636
|
+
/**
|
|
3637
|
+
* The name of the list menu item
|
|
3638
|
+
* @default ''
|
|
3639
|
+
*/
|
|
3640
|
+
"name"?: IListMenuItem['name'];
|
|
3641
|
+
/**
|
|
3642
|
+
* Opens the link in a new tab if true
|
|
3643
|
+
* @default false
|
|
3644
|
+
*/
|
|
3645
|
+
"newTab"?: IListMenuItem['newTab'];
|
|
3646
|
+
/**
|
|
3647
|
+
* Event handler for activation
|
|
3648
|
+
*/
|
|
3649
|
+
"onBdsSelectItem"?: (event: BdsListMenuItemCustomEvent<IListMenuItemEvent>) => void;
|
|
3650
|
+
/**
|
|
3651
|
+
* Selected item state
|
|
3652
|
+
* @default false
|
|
3653
|
+
*/
|
|
3654
|
+
"selected"?: IListMenuItem['selected'];
|
|
3655
|
+
/**
|
|
3656
|
+
* Value associated with the menu item
|
|
3657
|
+
* @default ''
|
|
3658
|
+
*/
|
|
3659
|
+
"value"?: IListMenuItem['value'];
|
|
3660
|
+
/**
|
|
3661
|
+
* Defines the visual style of the list menu item. - 'button': A standard clickable item. - 'label': A non-interactive label, typically used for grouping items.
|
|
3662
|
+
* @default LIST_MENU_ITEM_VARIANTS.BUTTON
|
|
3663
|
+
*/
|
|
3664
|
+
"variant"?: IListMenuItem['variant'];
|
|
3665
|
+
}
|
|
3666
|
+
/**
|
|
3667
|
+
* @attr {boolean} disabled - When true, prevents the popover from being shown.
|
|
3668
|
+
* @attr {number | 'full' | 'auto'} width - Controls the width of the popover content.
|
|
3669
|
+
* @attr {boolean} header - When true, displays the popover header.
|
|
3670
|
+
* @attr {boolean} footer - When true, displays the popover footer.
|
|
3671
|
+
* @attr {boolean} closable - When true, displays the close button in the header.
|
|
3672
|
+
* @attr {IPopoverFloatingOptions} floatingOptions - Configuration object for floating behavior.
|
|
3673
|
+
* @csspart popover-content - The main popover container element.
|
|
3674
|
+
* @csspart arrow - The arrow element pointing toward the trigger.
|
|
3675
|
+
* @csspart popover-trigger - The trigger element for the popover.
|
|
3676
|
+
* @cssprop data-placement - Reflects the resolved placement on the popover element.
|
|
3677
|
+
* @cssprop data-hidearrow - Reflects the hideArrow option.
|
|
3678
|
+
*/
|
|
3679
|
+
interface BdsPopover {
|
|
3680
|
+
/**
|
|
3681
|
+
* If true, displays a close button inside the header. Requires `header` to be true.
|
|
3682
|
+
* @default false
|
|
3683
|
+
*/
|
|
3684
|
+
"closable"?: boolean;
|
|
3685
|
+
/**
|
|
3686
|
+
* If true, disables the popover.
|
|
3687
|
+
* @default false
|
|
3688
|
+
*/
|
|
3689
|
+
"disabled"?: IPopover['disabled'];
|
|
3690
|
+
/**
|
|
3691
|
+
* Override default options for the floating mixin. This can be overridden by passing a different object to the `floatingOptions` prop.
|
|
3692
|
+
* @default {}
|
|
3693
|
+
*/
|
|
3694
|
+
"floatingOptions"?: IPopover['floatingOptions'];
|
|
3695
|
+
/**
|
|
3696
|
+
* If true, displays the footer section with helper and button slots.
|
|
3697
|
+
* @default false
|
|
3698
|
+
*/
|
|
3699
|
+
"footer"?: boolean;
|
|
3700
|
+
/**
|
|
3701
|
+
* If true, displays the header section with icon and title slots.
|
|
3702
|
+
* @default false
|
|
3703
|
+
*/
|
|
3704
|
+
"header"?: boolean;
|
|
3705
|
+
/**
|
|
3706
|
+
* Width of the popover content. - number: width in pixels (e.g. 320 → "320px") - 'full': 100% of the trigger/parent width - 'auto': fits the content
|
|
3707
|
+
* @default 320
|
|
3708
|
+
*/
|
|
3709
|
+
"width"?: IPopover['width'];
|
|
3710
|
+
}
|
|
3711
|
+
/**
|
|
3712
|
+
* Radio button component for single-selection within a group.
|
|
3713
|
+
* Use inside `bds-radio-group` for managed selection and form binding.
|
|
3714
|
+
* Can also be used standalone with the `name`, `value`, and `checked` props.
|
|
3715
|
+
*/
|
|
3716
|
+
interface BdsRadio {
|
|
3717
|
+
/**
|
|
3718
|
+
* Whether this radio is selected. Managed by bds-radio-group; can be set directly when used standalone.
|
|
3719
|
+
* @default false
|
|
3720
|
+
*/
|
|
3721
|
+
"checked"?: boolean;
|
|
3722
|
+
/**
|
|
3723
|
+
* Disables the radio, preventing interaction and selection.
|
|
3724
|
+
* @default false
|
|
3725
|
+
*/
|
|
3726
|
+
"disabled"?: boolean;
|
|
3727
|
+
/**
|
|
3728
|
+
* Shows error styling on the radio indicator. Propagated by bds-radio-group.
|
|
3729
|
+
* @default false
|
|
3730
|
+
*/
|
|
3731
|
+
"error"?: boolean;
|
|
3732
|
+
/**
|
|
3733
|
+
* Tooltip text shown on an info icon next to the label.
|
|
3734
|
+
* @default ''
|
|
3735
|
+
*/
|
|
3736
|
+
"info"?: string;
|
|
3737
|
+
/**
|
|
3738
|
+
* Label text displayed next to the radio indicator. Falls back to the default slot when empty.
|
|
3739
|
+
* @default ''
|
|
3740
|
+
*/
|
|
3741
|
+
"label"?: string;
|
|
3742
|
+
/**
|
|
3743
|
+
* Name attribute stamped by the parent bds-radio-group via setAttribute. Set directly when used standalone.
|
|
3744
|
+
* @default ''
|
|
3745
|
+
*/
|
|
3746
|
+
"name"?: string;
|
|
3747
|
+
/**
|
|
3748
|
+
* Emitted when the user selects this radio. Listened to by the parent bds-radio-group to enforce single selection.
|
|
3749
|
+
*/
|
|
3750
|
+
"onBdsChange"?: (event: BdsRadioCustomEvent<RadioChangeDetail>) => void;
|
|
3751
|
+
/**
|
|
3752
|
+
* Value submitted with the form when this radio is selected.
|
|
3753
|
+
* @default 'on'
|
|
3754
|
+
*/
|
|
3755
|
+
"value"?: string;
|
|
3756
|
+
}
|
|
3757
|
+
/**
|
|
3758
|
+
* Button-shaped radio option for use inside `bds-radio-group[type="radiobutton"]`.
|
|
3759
|
+
* Creates a segmented control appearance when grouped. Not form-associated — the parent
|
|
3760
|
+
* `bds-radio-group` owns form state and single-selection enforcement.
|
|
3761
|
+
*/
|
|
3762
|
+
interface BdsRadioButton {
|
|
3763
|
+
/**
|
|
3764
|
+
* Whether this button is selected. Managed by bds-radio-group; can be set directly when used standalone.
|
|
3765
|
+
* @default false
|
|
3766
|
+
*/
|
|
3767
|
+
"checked"?: boolean;
|
|
3768
|
+
/**
|
|
3769
|
+
* Disables the button, preventing interaction and selection.
|
|
3770
|
+
* @default false
|
|
3771
|
+
*/
|
|
3772
|
+
"disabled"?: boolean;
|
|
3773
|
+
/**
|
|
3774
|
+
* Shows error styling on the button. Propagated by bds-radio-group.
|
|
3775
|
+
* @default false
|
|
3776
|
+
*/
|
|
3777
|
+
"error"?: boolean;
|
|
3778
|
+
/**
|
|
3779
|
+
* Tooltip text shown on an info icon next to the label.
|
|
3780
|
+
* @default ''
|
|
3781
|
+
*/
|
|
3782
|
+
"info"?: string;
|
|
3783
|
+
/**
|
|
3784
|
+
* Label text displayed inside the button. Falls back to the default slot when empty.
|
|
3785
|
+
* @default ''
|
|
3786
|
+
*/
|
|
3787
|
+
"label"?: string;
|
|
3788
|
+
/**
|
|
3789
|
+
* Name attribute stamped by the parent bds-radio-group via setAttribute. Set directly when used standalone.
|
|
3790
|
+
* @default ''
|
|
3791
|
+
*/
|
|
3792
|
+
"name"?: string;
|
|
3793
|
+
/**
|
|
3794
|
+
* Emitted when the user selects this button. Listened to by the parent bds-radio-group to enforce single selection.
|
|
3795
|
+
*/
|
|
3796
|
+
"onBdsChange"?: (event: BdsRadioButtonCustomEvent<RadioButtonChangeDetail>) => void;
|
|
3797
|
+
/**
|
|
3798
|
+
* Value submitted with the form when this button is selected.
|
|
3799
|
+
* @default 'on'
|
|
3800
|
+
*/
|
|
3801
|
+
"value"?: string;
|
|
3802
|
+
}
|
|
3803
|
+
/**
|
|
3804
|
+
* Radio card component is a selectable card-based radio option.
|
|
3805
|
+
* It presents a mutually exclusive choice with optional descriptive text and icon,
|
|
3806
|
+
* designed for integration with bds-radio-group for orchestration.
|
|
3807
|
+
* Can also be used standalone with the `name`, `value`, and `checked` props.
|
|
3808
|
+
* @fires bdsChange - Emitted when the user selects this radio card. Listened to by the parent bds-radio-group to enforce single selection.
|
|
3809
|
+
*/
|
|
3810
|
+
interface BdsRadioCard {
|
|
3811
|
+
/**
|
|
3812
|
+
* Whether this radio card is selected. Managed by bds-radio-group; can be set directly when used standalone.
|
|
3813
|
+
* @default false
|
|
3814
|
+
*/
|
|
3815
|
+
"checked"?: IRadioCard['checked'];
|
|
3816
|
+
/**
|
|
3817
|
+
* Disables the radio card, preventing it from being selected and interacted with.
|
|
3818
|
+
* @default false
|
|
3819
|
+
*/
|
|
3820
|
+
"disabled"?: IRadioCard['disabled'];
|
|
3821
|
+
/**
|
|
3822
|
+
* Whether the radio card is in an error state.
|
|
3823
|
+
* @default false
|
|
3824
|
+
*/
|
|
3825
|
+
"error"?: IRadioCard['error'];
|
|
3826
|
+
/**
|
|
3827
|
+
* Tooltip content attached to the radio card content. If empty, the info icon will not be rendered.
|
|
3828
|
+
* @default ''
|
|
3829
|
+
*/
|
|
3830
|
+
"info"?: IRadioCard['info'];
|
|
3831
|
+
/**
|
|
3832
|
+
* Label text displayed next to the radio indicator. Falls back to the default slot when empty.
|
|
3833
|
+
* @default ''
|
|
3834
|
+
*/
|
|
3835
|
+
"label"?: IRadioCard['label'];
|
|
3836
|
+
/**
|
|
3837
|
+
* Name attribute stamped by the parent bds-radio-group. Set directly when used standalone.
|
|
3838
|
+
* @default ''
|
|
3839
|
+
*/
|
|
3840
|
+
"name"?: IRadioCard['name'];
|
|
3841
|
+
/**
|
|
3842
|
+
* Emitted when the user selects this radio. Listened to by the parent bds-radio-group to enforce single selection.
|
|
3843
|
+
*/
|
|
3844
|
+
"onBdsChange"?: (event: BdsRadioCardCustomEvent<RadioCardChangeDetail>) => void;
|
|
3845
|
+
/**
|
|
3846
|
+
* Value submitted with the form when this radio is selected.
|
|
3847
|
+
* @default 'on'
|
|
3848
|
+
*/
|
|
3849
|
+
"value"?: IRadioCard['value'];
|
|
3850
|
+
}
|
|
3851
|
+
/**
|
|
3852
|
+
* Radio group component that orchestrates single-selection across a set of `bds-radio` children.
|
|
3853
|
+
*/
|
|
3854
|
+
interface BdsRadioGroup {
|
|
3855
|
+
/**
|
|
3856
|
+
* Disables all child radios and prevents selection. Also mirrored to isDisabled
|
|
3857
|
+
* @State for form-level disable support.
|
|
3858
|
+
* @default false
|
|
3859
|
+
*/
|
|
3860
|
+
"disabled"?: boolean;
|
|
3861
|
+
/**
|
|
3862
|
+
* Shows error styling on the group helper text. Propagated to all child radios.
|
|
3863
|
+
* @default false
|
|
3864
|
+
*/
|
|
3865
|
+
"error"?: boolean;
|
|
3866
|
+
/**
|
|
3867
|
+
* Error message rendered below the radio options when error is true. Replaces helperText.
|
|
3868
|
+
* @default ''
|
|
3869
|
+
*/
|
|
3870
|
+
"errorMessage"?: string;
|
|
3871
|
+
/**
|
|
3872
|
+
* The `id` of a `<form>` element to associate this element with.
|
|
3873
|
+
*/
|
|
3874
|
+
"form"?: string;
|
|
3875
|
+
/**
|
|
3876
|
+
* Helper text rendered below the radio options. Shown in default state; replaced by errorMessage in error state.
|
|
3877
|
+
* @default ''
|
|
2243
3878
|
*/
|
|
2244
|
-
"
|
|
3879
|
+
"helperText"?: string;
|
|
2245
3880
|
/**
|
|
2246
|
-
*
|
|
3881
|
+
* Tooltip text shown on the group label info icon.
|
|
3882
|
+
* @default ''
|
|
2247
3883
|
*/
|
|
2248
|
-
"
|
|
2249
|
-
}
|
|
2250
|
-
/**
|
|
2251
|
-
* Grid item child of `bds-grid`. Must be a direct child of `bds-grid`.
|
|
2252
|
-
*/
|
|
2253
|
-
interface BdsGridItem {
|
|
3884
|
+
"info"?: string;
|
|
2254
3885
|
/**
|
|
2255
|
-
*
|
|
2256
|
-
* @default
|
|
3886
|
+
* Hides the divider between radio buttons when type is 'radiobutton'.
|
|
3887
|
+
* @default false
|
|
2257
3888
|
*/
|
|
2258
|
-
"
|
|
3889
|
+
"joined"?: boolean;
|
|
2259
3890
|
/**
|
|
2260
|
-
*
|
|
3891
|
+
* Group label rendered above the radio options.
|
|
3892
|
+
* @default ''
|
|
2261
3893
|
*/
|
|
2262
|
-
"
|
|
3894
|
+
"label"?: string;
|
|
2263
3895
|
/**
|
|
2264
|
-
*
|
|
3896
|
+
* Name of the form control; submitted as the field key in FormData.
|
|
2265
3897
|
*/
|
|
2266
|
-
"
|
|
3898
|
+
"name": string;
|
|
2267
3899
|
/**
|
|
2268
|
-
*
|
|
3900
|
+
* Emitted when the selected radio changes. Payload includes the new value.
|
|
2269
3901
|
*/
|
|
2270
|
-
"
|
|
3902
|
+
"onBdsChange"?: (event: BdsRadioGroupCustomEvent<RadioGroupChangeDetail>) => void;
|
|
2271
3903
|
/**
|
|
2272
|
-
*
|
|
3904
|
+
* Emitted when the selected radio changes. Used for v-model two-way binding in Vue.
|
|
2273
3905
|
*/
|
|
2274
|
-
"
|
|
3906
|
+
"onValueChange"?: (event: BdsRadioGroupCustomEvent<string>) => void;
|
|
2275
3907
|
/**
|
|
2276
|
-
*
|
|
3908
|
+
* Layout direction of the radio options.
|
|
3909
|
+
* @default 'vertical'
|
|
2277
3910
|
*/
|
|
2278
|
-
"
|
|
3911
|
+
"orientation"?: Orientation;
|
|
2279
3912
|
/**
|
|
2280
|
-
*
|
|
2281
|
-
* @default
|
|
3913
|
+
* Marks the group as required for form submission. Triggers validity error when no radio is selected.
|
|
3914
|
+
* @default false
|
|
2282
3915
|
*/
|
|
2283
|
-
"
|
|
3916
|
+
"required"?: boolean;
|
|
2284
3917
|
/**
|
|
2285
|
-
*
|
|
3918
|
+
* Identifies this group variant. 'radio' renders circular bds-radio children; 'radiobutton' renders bds-radio-button segmented control; 'radiocard' renders bds-radio-card element.
|
|
3919
|
+
* @default 'radio'
|
|
2286
3920
|
*/
|
|
2287
|
-
"
|
|
3921
|
+
"type"?: RadioGroupType;
|
|
3922
|
+
/**
|
|
3923
|
+
* Currently selected radio value. Synced to children on change.
|
|
3924
|
+
* @default ''
|
|
3925
|
+
*/
|
|
3926
|
+
"value"?: string;
|
|
2288
3927
|
}
|
|
2289
3928
|
/**
|
|
2290
|
-
*
|
|
2291
|
-
* It
|
|
2292
|
-
*
|
|
2293
|
-
* @attr {boolean} multiple - If true, allows multiple items to be selected. Default is false (single selection).
|
|
2294
|
-
* @attr {string} menuRole - Defines the ARIA role of the menu. Can be 'menu' or 'listbox'. Default is 'menu'.
|
|
2295
|
-
* @property {boolean} multiple - If true, allows multiple items to be selected. Default is false (single selection).
|
|
2296
|
-
* @property {string} menuRole - Defines the ARIA role of the menu. Can be 'menu' or 'listbox'. Default is 'menu'.
|
|
2297
|
-
* @event bdsChange - Emitted when the selection changes, providing the current selected value(s).
|
|
2298
|
-
* @method getSelectedValues - Returns the currently selected value(s). If multiple is true, returns an array of strings; otherwise, returns a single string or undefined.
|
|
2299
|
-
* @method setSelectedValues - Sets the selected value(s). Accepts a string for single selection or an array of strings for multiple selection.
|
|
2300
|
-
* @default false - By default, the menu does not allow multiple selections (single selection mode).
|
|
2301
|
-
* @default 'menu' - The default ARIA role for the menu is 'menu'.
|
|
3929
|
+
* Component representing a select dropdown, allowing users to choose an option from a list.
|
|
3930
|
+
* It consists of a text field that triggers the dropdown and a list menu that contains the options.
|
|
3931
|
+
* The component supports both single selection and searchable functionality.
|
|
2302
3932
|
*/
|
|
2303
|
-
interface
|
|
3933
|
+
interface BdsSelect {
|
|
2304
3934
|
/**
|
|
2305
|
-
*
|
|
2306
|
-
* @default '
|
|
3935
|
+
* Name to assign in form
|
|
3936
|
+
* @default ''
|
|
2307
3937
|
*/
|
|
2308
|
-
"
|
|
3938
|
+
"name"?: string;
|
|
2309
3939
|
/**
|
|
2310
|
-
*
|
|
2311
|
-
* @default false
|
|
3940
|
+
* Emitted when the selection change the value
|
|
2312
3941
|
*/
|
|
2313
|
-
"
|
|
3942
|
+
"onBdsChange"?: (event: BdsSelectCustomEvent<string>) => void;
|
|
2314
3943
|
/**
|
|
2315
|
-
*
|
|
3944
|
+
* Emit value Change for vue implementation
|
|
2316
3945
|
*/
|
|
2317
|
-
"
|
|
3946
|
+
"onValueChange"?: (event: BdsSelectCustomEvent<string>) => void;
|
|
2318
3947
|
/**
|
|
2319
|
-
*
|
|
3948
|
+
* Prop to define if its searchable. It allows to write and filter the options
|
|
3949
|
+
* @default false
|
|
3950
|
+
*/
|
|
3951
|
+
"searchable"?: boolean;
|
|
3952
|
+
/**
|
|
3953
|
+
* The value of the select component.
|
|
3954
|
+
* @default ''
|
|
2320
3955
|
*/
|
|
2321
|
-
"
|
|
3956
|
+
"value"?: string;
|
|
2322
3957
|
}
|
|
2323
3958
|
/**
|
|
2324
|
-
*
|
|
2325
|
-
* @summary
|
|
2326
|
-
*
|
|
2327
|
-
*
|
|
2328
|
-
* @
|
|
2329
|
-
* @
|
|
2330
|
-
* @
|
|
2331
|
-
* @
|
|
2332
|
-
*
|
|
2333
|
-
* @
|
|
2334
|
-
* @
|
|
2335
|
-
* @
|
|
2336
|
-
* @
|
|
2337
|
-
* @
|
|
2338
|
-
* @property {boolean} disabled - If true, the menu item is non-interactive and styled as disabled.
|
|
2339
|
-
* @property {boolean} selected - If true, the menu item is styled as selected.
|
|
2340
|
-
* @property {boolean} activeItem - If true, the menu item is styled as active.
|
|
2341
|
-
* @property {string} value - The value associated with the menu item, emitted in events when activated.
|
|
2342
|
-
* @property {string} href - The URL for the link. If provided, the menu item will behave as a link.
|
|
2343
|
-
* @property {boolean} newTab - If true, the link will open in a new tab. Only applicable if href is provided.
|
|
2344
|
-
* @property {boolean} downloadable - If true, the link will be treated as a download link. Only applicable if href is provided.
|
|
2345
|
-
* @property {string} filename - The suggested filename for the download. Only applicable if downloadable is true.
|
|
2346
|
-
* @default 'button' - The default variant for the menu item is 'button', which is a standard clickable item.
|
|
2347
|
-
* @default '' - By default, the name of the menu item is an empty string.
|
|
2348
|
-
* @default false - By default, the menu item is not disabled and is interactive.
|
|
2349
|
-
* @default false - By default, the menu item is not selected.
|
|
2350
|
-
* @default false - By default, the menu item is not active.
|
|
2351
|
-
* @default '' - By default, the value of the menu item is an empty string.
|
|
2352
|
-
* @default '' - By default, the href is an empty string, meaning the menu item will not behave as a link.
|
|
2353
|
-
* @default false - By default, the newTab property is false, meaning links will open in the same tab.
|
|
2354
|
-
* @default false - By default, the downloadable property is false, meaning links will not be treated as download links.
|
|
2355
|
-
* @default '' - By default, the filename is an empty string, meaning no suggested filename for downloads.
|
|
3959
|
+
* Slider component for selecting a numeric value or a range of values.
|
|
3960
|
+
* @summary An accessible, single or multi-handle range slider built on HTML `<input type="range">`.
|
|
3961
|
+
* Supports discrete tick marks, tooltips, disabled state, and N-handle multi-value mode
|
|
3962
|
+
* with automatic collision prevention between handles.
|
|
3963
|
+
* @property {number} min - Minimum selectable value. Defaults to `0`.
|
|
3964
|
+
* @property {number} max - Maximum selectable value. Defaults to `100`.
|
|
3965
|
+
* @property {number} step - Step size for each increment/decrement. Defaults to `1`.
|
|
3966
|
+
* @property {number[]} value - Current value(s). A single number for one handle;
|
|
3967
|
+
* an array for multi-handle mode. Defaults to `0`.
|
|
3968
|
+
* @property {boolean} disabled - Disables interaction with the slider. Defaults to `false`.
|
|
3969
|
+
* @property {boolean} discrete - Shows tick marks at each step position along the track. Defaults to `false`.
|
|
3970
|
+
* @property {string} tooltip - Controls tooltip visibility: `"never"`, or `"focus"`. Defaults to `"focus"`.
|
|
3971
|
+
* @method getValues - Returns the current value(s) as `number | number[]`.
|
|
3972
|
+
* @method setValues - Programmatically sets the slider value(s).
|
|
2356
3973
|
*/
|
|
2357
|
-
interface
|
|
3974
|
+
interface BdsSlider {
|
|
2358
3975
|
/**
|
|
2359
|
-
*
|
|
3976
|
+
* Disables the slider, preventing all user interaction. Defaults to `false`.
|
|
2360
3977
|
* @default false
|
|
2361
3978
|
*/
|
|
2362
|
-
"
|
|
3979
|
+
"disabled"?: boolean;
|
|
2363
3980
|
/**
|
|
2364
|
-
*
|
|
2365
|
-
* @default
|
|
3981
|
+
* JSON string array of handle values that should be individually disabled. Each number must match a value present in the `value` prop. Accepts `number`, `number[]`, or JSON string: `"[5, 30]"`. Defaults to `"[]"`.
|
|
3982
|
+
* @default '[]'
|
|
2366
3983
|
*/
|
|
2367
|
-
"
|
|
3984
|
+
"disabledHandlers"?: SliderRawValue;
|
|
2368
3985
|
/**
|
|
2369
|
-
*
|
|
2370
|
-
* @default
|
|
3986
|
+
* When `true`, renders discrete tick marks along the track at every step position between `min` and `max`. Defaults to `false`.
|
|
3987
|
+
* @default false
|
|
2371
3988
|
*/
|
|
2372
|
-
"
|
|
3989
|
+
"discrete"?: boolean;
|
|
2373
3990
|
/**
|
|
2374
|
-
*
|
|
2375
|
-
* @default ''
|
|
3991
|
+
* The `id` of a `<form>` element to associate this element with.
|
|
2376
3992
|
*/
|
|
2377
|
-
"
|
|
3993
|
+
"form"?: string;
|
|
2378
3994
|
/**
|
|
2379
|
-
*
|
|
3995
|
+
* Label for the slider. Defaults to `""`.
|
|
2380
3996
|
* @default ''
|
|
2381
3997
|
*/
|
|
2382
|
-
"
|
|
3998
|
+
"label"?: string;
|
|
2383
3999
|
/**
|
|
2384
|
-
*
|
|
2385
|
-
* @default
|
|
4000
|
+
* Maximum selectable value. Defaults to `100`.
|
|
4001
|
+
* @default 100
|
|
2386
4002
|
*/
|
|
2387
|
-
"
|
|
4003
|
+
"max"?: number;
|
|
2388
4004
|
/**
|
|
2389
|
-
*
|
|
4005
|
+
* Minimum selectable value. Defaults to `0`.
|
|
4006
|
+
* @default 0
|
|
2390
4007
|
*/
|
|
2391
|
-
"
|
|
4008
|
+
"min"?: number;
|
|
2392
4009
|
/**
|
|
2393
|
-
*
|
|
2394
|
-
* @default
|
|
4010
|
+
* Name of the form control, submitted as a key in the form data.
|
|
4011
|
+
* @default ''
|
|
2395
4012
|
*/
|
|
2396
|
-
"
|
|
4013
|
+
"name"?: string;
|
|
2397
4014
|
/**
|
|
2398
|
-
*
|
|
2399
|
-
* @default ''
|
|
4015
|
+
* Emitted whenever the slider value(s) change due to user interaction. Payload: `{ value: number }` for single handle, `{ value: number[] }` for multi-handle.
|
|
2400
4016
|
*/
|
|
2401
|
-
"
|
|
4017
|
+
"onBdsChange"?: (event: BdsSliderCustomEvent<SliderChangeDetail>) => void;
|
|
2402
4018
|
/**
|
|
2403
|
-
*
|
|
2404
|
-
* @default LIST_MENU_ITEM_VARIANTS.BUTTON
|
|
4019
|
+
* Emitted when the user clicks on the slider. Payload: `{ target: HTMLElement }` and `{ value: number[] }` for multi-handle.
|
|
2405
4020
|
*/
|
|
2406
|
-
"
|
|
2407
|
-
}
|
|
2408
|
-
/**
|
|
2409
|
-
* @attr {boolean} disabled - When true, prevents the popover from being shown.
|
|
2410
|
-
* @attr {number | 'full' | 'auto'} width - Controls the width of the popover content.
|
|
2411
|
-
* @attr {boolean} header - When true, displays the popover header.
|
|
2412
|
-
* @attr {boolean} footer - When true, displays the popover footer.
|
|
2413
|
-
* @attr {boolean} closable - When true, displays the close button in the header.
|
|
2414
|
-
* @attr {IPopoverFloatingOptions} floatingOptions - Configuration object for floating behavior.
|
|
2415
|
-
* @csspart popover-content - The main popover container element.
|
|
2416
|
-
* @csspart arrow - The arrow element pointing toward the trigger.
|
|
2417
|
-
* @csspart popover-trigger - The trigger element for the popover.
|
|
2418
|
-
* @cssprop data-placement - Reflects the resolved placement on the popover element.
|
|
2419
|
-
* @cssprop data-hidearrow - Reflects the hideArrow option.
|
|
2420
|
-
*/
|
|
2421
|
-
interface BdsPopover {
|
|
4021
|
+
"onBdsClick"?: (event: BdsSliderCustomEvent<{ target: HTMLElement; value: number[] }>) => void;
|
|
2422
4022
|
/**
|
|
2423
|
-
*
|
|
2424
|
-
* @default false
|
|
4023
|
+
* Native-style alias of `bdsChange`. Emitted simultaneously. Payload: `{ value: number[] }` for multi-handle.
|
|
2425
4024
|
*/
|
|
2426
|
-
"
|
|
4025
|
+
"onValueChange"?: (event: BdsSliderCustomEvent<number[]>) => void;
|
|
2427
4026
|
/**
|
|
2428
|
-
*
|
|
4027
|
+
* Shows the min and max values of the slider. Defaults to `false`.
|
|
2429
4028
|
* @default false
|
|
2430
4029
|
*/
|
|
2431
|
-
"
|
|
4030
|
+
"showLimits"?: boolean;
|
|
2432
4031
|
/**
|
|
2433
|
-
*
|
|
2434
|
-
* @default
|
|
4032
|
+
* Step size for each increment/decrement. Must be a positive number. Defaults to `1`.
|
|
4033
|
+
* @default 1
|
|
2435
4034
|
*/
|
|
2436
|
-
"
|
|
4035
|
+
"step"?: number;
|
|
2437
4036
|
/**
|
|
2438
|
-
*
|
|
2439
|
-
* @default
|
|
4037
|
+
* Controls tooltip visibility on each handle. - `"never"` — tooltip is hidden. - `"focus"` — tooltip appears only when the handle is active/focused. Defa ults to `"focus"`.
|
|
4038
|
+
* @default SLIDER_TOOLTIP.FOCUS
|
|
2440
4039
|
*/
|
|
2441
|
-
"
|
|
4040
|
+
"tooltip"?: SliderTooltipType;
|
|
2442
4041
|
/**
|
|
2443
|
-
*
|
|
2444
|
-
* @default
|
|
4042
|
+
* Slider type that defines the slider behavior. Defaults to `single`.
|
|
4043
|
+
* @default SLIDER_TYPE.SINGLE
|
|
2445
4044
|
*/
|
|
2446
|
-
"
|
|
4045
|
+
"type"?: SliderType;
|
|
2447
4046
|
/**
|
|
2448
|
-
*
|
|
2449
|
-
* @default
|
|
4047
|
+
* Current value(s) of the slider. Accepts `number`, `number[]`, or a JSON string for HTML vanilla usage. - Single handle: `50` or `"50"` - Multi-handle: `[10, 50, 80]` or `"[10, 50, 80]"` - Defaults to `0`.
|
|
4048
|
+
* @default [0]
|
|
2450
4049
|
*/
|
|
2451
|
-
"
|
|
4050
|
+
"value"?: SliderRawValue;
|
|
2452
4051
|
}
|
|
2453
4052
|
/**
|
|
2454
4053
|
* Spinner component used to indicate a loading or processing state.
|
|
@@ -2636,6 +4235,11 @@ declare namespace LocalJSX {
|
|
|
2636
4235
|
* @default ''
|
|
2637
4236
|
*/
|
|
2638
4237
|
"icon"?: string;
|
|
4238
|
+
/**
|
|
4239
|
+
* Icon rendered on the right side of the input, on the actions containers. (e.g., 'bds-icon-settings')
|
|
4240
|
+
* @default ''
|
|
4241
|
+
*/
|
|
4242
|
+
"iconRight"?: string;
|
|
2639
4243
|
/**
|
|
2640
4244
|
* Tooltip content attached to the label. Rendered via `bds-typography` `tooltipText` prop.
|
|
2641
4245
|
* @default ''
|
|
@@ -2715,6 +4319,11 @@ declare namespace LocalJSX {
|
|
|
2715
4319
|
* @default false
|
|
2716
4320
|
*/
|
|
2717
4321
|
"required"?: boolean;
|
|
4322
|
+
/**
|
|
4323
|
+
* Set mode readonly to use in selects
|
|
4324
|
+
* @default false
|
|
4325
|
+
*/
|
|
4326
|
+
"selectable"?: boolean;
|
|
2718
4327
|
/**
|
|
2719
4328
|
* Sublabel rendered inside the input container, before the text area.
|
|
2720
4329
|
* @default ''
|
|
@@ -2856,49 +4465,6 @@ declare namespace LocalJSX {
|
|
|
2856
4465
|
/**
|
|
2857
4466
|
* Typography component for displaying text with various styles, sizes, and interactive features.
|
|
2858
4467
|
* @summary A comprehensive typography component that supports multiple text variants, sizes, alignments, states, and link functionality.
|
|
2859
|
-
* @attr {string} variant - The variant of the typography for styling the text. Options: label, display, heading, subheading, helper, link, code, caption
|
|
2860
|
-
* @attr {string} element - Defines the HTML element. For `heading` variant, the text size adjusts to the HTML heading level (`h1` through `h6`).
|
|
2861
|
-
* @attr {string} state - The state of the typography. Only available for the `helper` and `label` variants. Options: default, error, disabled, hover, active, focus, visited
|
|
2862
|
-
* @attr {string} align - The text alignment. Options: start, center, end, inherit
|
|
2863
|
-
* @attr {string} size - The size of the typography. For `display` variant all options are available (`xl`, `lg`, `md`, `sm`), while for `link` variant only `md` and `sm` are available.
|
|
2864
|
-
* @attr {boolean} required - Shows a required indicator when used with `label` variant.
|
|
2865
|
-
* @attr {boolean} ellipsis - Truncates text with an ellipsis when it overflows.
|
|
2866
|
-
* @attr {number} max-lines - Maximum number of lines to show before truncating with ellipsis.
|
|
2867
|
-
* @attr {string} href - URL when the typography is an `a` element and a `link` variant.
|
|
2868
|
-
* @attr {string} target - Specifies where to open the link. Options: _self, _blank, _top, _parent
|
|
2869
|
-
* @attr {boolean} downloadable - Makes the `link` download a file.
|
|
2870
|
-
* @attr {string} filename - Suggested filename when downloading a file from the `link`.
|
|
2871
|
-
* @attr {string} html-for - The for attribute when rendered as a label
|
|
2872
|
-
* @attr {string} tooltip-text - Text to display inside the tooltip when hovering the info icon. Only applicable for `heading`, `subheading`, and `label` variants.
|
|
2873
|
-
* @attr {string} custom-class - Additional custom CSS class
|
|
2874
|
-
* @property {string} variant - The variant of the typography for styling the text. Options: label, display, heading, subheading, helper, link, code, caption
|
|
2875
|
-
* @property {string} element - Defines the HTML element. For `heading` variant, the text size adjusts to the HTML heading level (`h1` through `h6`).
|
|
2876
|
-
* @property {string} state - The state of the typography. Only available for the `helper` and `label` variants. Options: default, error, disabled, hover, active, focus, visited
|
|
2877
|
-
* @property {string} align - The text alignment. Options: start, center, end, inherit
|
|
2878
|
-
* @property {string} size - The size of the typography. For `display` variant all options are available (`xl`, `lg`, `md`, `sm`), while for `link` variant only `md` and `sm` are available.
|
|
2879
|
-
* @property {boolean} required - Shows a required indicator when used with `label` variant.
|
|
2880
|
-
* @property {boolean} ellipsis - Truncates text with an ellipsis when it overflows.
|
|
2881
|
-
* @property {number} maxLines - Maximum number of lines to show before truncating with ellipsis.
|
|
2882
|
-
* @property {string} href - URL when the typography is an `a` element and a `link` variant.
|
|
2883
|
-
* @property {string} target - Specifies where to open the link. Options: _self, _blank, _top, _parent
|
|
2884
|
-
* @property {boolean} downloadable - Makes the `link` download a file.
|
|
2885
|
-
* @property {string} filename - Suggested filename when downloading a file from the `link`.
|
|
2886
|
-
* @property {string} htmlFor - The for attribute when rendered as a label
|
|
2887
|
-
* @property {string} tooltipText - Text to display inside the tooltip when hovering the info icon. Only applicable for `heading`, `subheading`, and `label` variants.
|
|
2888
|
-
* @property {string} customClass - Additional custom CSS class
|
|
2889
|
-
* @default 'display' - Default variant value
|
|
2890
|
-
* @default 'p' - Default element value
|
|
2891
|
-
* @default 'start' - Default align value
|
|
2892
|
-
* @default 'md' - Default size value
|
|
2893
|
-
* @default 'default' - Default state value
|
|
2894
|
-
* @default false - Default required state
|
|
2895
|
-
* @default false - Default ellipsis state
|
|
2896
|
-
* @default 1 - Default maxLines value
|
|
2897
|
-
* @default '' - Default href value
|
|
2898
|
-
* @default '' - Default target value
|
|
2899
|
-
* @default false - Default downloadable state
|
|
2900
|
-
* @default 'download' - Default filename value
|
|
2901
|
-
* @default '' - Default tooltipText value
|
|
2902
4468
|
*/
|
|
2903
4469
|
interface BdsTypography {
|
|
2904
4470
|
/**
|
|
@@ -2946,6 +4512,11 @@ declare namespace LocalJSX {
|
|
|
2946
4512
|
* @default 1
|
|
2947
4513
|
*/
|
|
2948
4514
|
"maxLines"?: ITypography['maxLines'];
|
|
4515
|
+
/**
|
|
4516
|
+
* Relationship between the current document and the linked resource.
|
|
4517
|
+
* @default ''
|
|
4518
|
+
*/
|
|
4519
|
+
"rel"?: ITypography['rel'];
|
|
2949
4520
|
/**
|
|
2950
4521
|
* Marks the field as required.
|
|
2951
4522
|
* @default false
|
|
@@ -2993,6 +4564,23 @@ declare namespace LocalJSX {
|
|
|
2993
4564
|
"closable": boolean;
|
|
2994
4565
|
"closeButtonLabel": IBanner['closeButtonLabel'];
|
|
2995
4566
|
}
|
|
4567
|
+
interface BdsBreadcrumbAttributes {
|
|
4568
|
+
"separator": string;
|
|
4569
|
+
"maxItems": number;
|
|
4570
|
+
"itemsBeforeCollapse": number;
|
|
4571
|
+
"itemsAfterCollapse": number;
|
|
4572
|
+
}
|
|
4573
|
+
interface BdsBreadcrumbItemAttributes {
|
|
4574
|
+
"active": boolean;
|
|
4575
|
+
"router": boolean;
|
|
4576
|
+
"collapsed": boolean;
|
|
4577
|
+
"showCollapse": boolean;
|
|
4578
|
+
"href": string;
|
|
4579
|
+
"target": '_blank' | '_parent' | '_self' | '_top';
|
|
4580
|
+
"downloadable": boolean;
|
|
4581
|
+
"filename": string;
|
|
4582
|
+
"rel": string;
|
|
4583
|
+
}
|
|
2996
4584
|
interface BdsButtonAttributes {
|
|
2997
4585
|
"label": IButton['label'];
|
|
2998
4586
|
"disabled": IButton['disabled'];
|
|
@@ -3004,8 +4592,16 @@ declare namespace LocalJSX {
|
|
|
3004
4592
|
"loading": IButton['loading'];
|
|
3005
4593
|
"disclosure": IButton['disclosure'];
|
|
3006
4594
|
}
|
|
4595
|
+
interface BdsButtonGroupAttributes {
|
|
4596
|
+
"size": IButtonGroup['size'];
|
|
4597
|
+
"orientation": IButtonGroup['orientation'];
|
|
4598
|
+
"label": IButtonGroup['label'];
|
|
4599
|
+
"color": IButtonGroup['color'];
|
|
4600
|
+
"variant": IButtonGroup['variant'];
|
|
4601
|
+
}
|
|
3007
4602
|
interface BdsCheckboxAttributes {
|
|
3008
4603
|
"name": string;
|
|
4604
|
+
"info": string;
|
|
3009
4605
|
"disabled": boolean;
|
|
3010
4606
|
"required": boolean;
|
|
3011
4607
|
"checked": boolean;
|
|
@@ -3014,6 +4610,39 @@ declare namespace LocalJSX {
|
|
|
3014
4610
|
"value": string;
|
|
3015
4611
|
"label": string;
|
|
3016
4612
|
}
|
|
4613
|
+
interface BdsCheckboxButtonAttributes {
|
|
4614
|
+
"name": string;
|
|
4615
|
+
"disabled": boolean;
|
|
4616
|
+
"required": boolean;
|
|
4617
|
+
"checked": boolean;
|
|
4618
|
+
"error": boolean;
|
|
4619
|
+
"value": string;
|
|
4620
|
+
"label": string;
|
|
4621
|
+
"info": string;
|
|
4622
|
+
}
|
|
4623
|
+
interface BdsCheckboxCardAttributes {
|
|
4624
|
+
"name": ICheckboxCard['name'];
|
|
4625
|
+
"disabled": ICheckboxCard['disabled'];
|
|
4626
|
+
"required": ICheckboxCard['required'];
|
|
4627
|
+
"value": ICheckboxCard['value'];
|
|
4628
|
+
"label": ICheckboxCard['label'];
|
|
4629
|
+
"checked": ICheckboxCard['checked'];
|
|
4630
|
+
"indeterminate": ICheckboxCard['indeterminate'];
|
|
4631
|
+
"error": ICheckboxCard['error'];
|
|
4632
|
+
}
|
|
4633
|
+
interface BdsCheckboxGroupAttributes {
|
|
4634
|
+
"disabled": boolean;
|
|
4635
|
+
"error": boolean;
|
|
4636
|
+
"errorMessage": string;
|
|
4637
|
+
"helperText": string;
|
|
4638
|
+
"info": string;
|
|
4639
|
+
"label": string;
|
|
4640
|
+
"name": string;
|
|
4641
|
+
"orientation": Orientation;
|
|
4642
|
+
"required": boolean;
|
|
4643
|
+
"type": CheckboxGroupType;
|
|
4644
|
+
"joined": false;
|
|
4645
|
+
}
|
|
3017
4646
|
interface BdsDialogAttributes {
|
|
3018
4647
|
"active": IDialog['active'];
|
|
3019
4648
|
"preventClose": IDialog['preventClose'];
|
|
@@ -3056,8 +4685,12 @@ declare namespace LocalJSX {
|
|
|
3056
4685
|
"offset": IGridItem['offset'];
|
|
3057
4686
|
}
|
|
3058
4687
|
interface BdsListMenuAttributes {
|
|
3059
|
-
"
|
|
3060
|
-
"menuRole": '
|
|
4688
|
+
"selectionMode": IListMenu['selectionMode'];
|
|
4689
|
+
"menuRole": IListMenu['menuRole'];
|
|
4690
|
+
"selectControls": IListMenu['selectControls'];
|
|
4691
|
+
"empty": IListMenu['empty'];
|
|
4692
|
+
"checkable": IListMenu['checkable'];
|
|
4693
|
+
"emptyText": IListMenu['emptyText'];
|
|
3061
4694
|
}
|
|
3062
4695
|
interface BdsListMenuItemAttributes {
|
|
3063
4696
|
"variant": IListMenuItem['variant'];
|
|
@@ -3065,6 +4698,7 @@ declare namespace LocalJSX {
|
|
|
3065
4698
|
"disabled": IListMenuItem['disabled'];
|
|
3066
4699
|
"selected": IListMenuItem['selected'];
|
|
3067
4700
|
"value": IListMenuItem['value'];
|
|
4701
|
+
"checkable": IListMenuItem['checkable'];
|
|
3068
4702
|
"activeItem": IListMenuItem['activeItem'];
|
|
3069
4703
|
"href": IListMenuItem['href'];
|
|
3070
4704
|
"newTab": IListMenuItem['newTab'];
|
|
@@ -3077,6 +4711,66 @@ declare namespace LocalJSX {
|
|
|
3077
4711
|
"footer": boolean;
|
|
3078
4712
|
"closable": boolean;
|
|
3079
4713
|
}
|
|
4714
|
+
interface BdsRadioAttributes {
|
|
4715
|
+
"checked": boolean;
|
|
4716
|
+
"disabled": boolean;
|
|
4717
|
+
"value": string;
|
|
4718
|
+
"name": string;
|
|
4719
|
+
"label": string;
|
|
4720
|
+
"error": boolean;
|
|
4721
|
+
"info": string;
|
|
4722
|
+
}
|
|
4723
|
+
interface BdsRadioButtonAttributes {
|
|
4724
|
+
"checked": boolean;
|
|
4725
|
+
"disabled": boolean;
|
|
4726
|
+
"error": boolean;
|
|
4727
|
+
"value": string;
|
|
4728
|
+
"name": string;
|
|
4729
|
+
"label": string;
|
|
4730
|
+
"info": string;
|
|
4731
|
+
}
|
|
4732
|
+
interface BdsRadioCardAttributes {
|
|
4733
|
+
"value": IRadioCard['value'];
|
|
4734
|
+
"info": IRadioCard['info'];
|
|
4735
|
+
"name": IRadioCard['name'];
|
|
4736
|
+
"label": IRadioCard['label'];
|
|
4737
|
+
"checked": IRadioCard['checked'];
|
|
4738
|
+
"disabled": IRadioCard['disabled'];
|
|
4739
|
+
"error": IRadioCard['error'];
|
|
4740
|
+
}
|
|
4741
|
+
interface BdsRadioGroupAttributes {
|
|
4742
|
+
"disabled": boolean;
|
|
4743
|
+
"error": boolean;
|
|
4744
|
+
"errorMessage": string;
|
|
4745
|
+
"helperText": string;
|
|
4746
|
+
"info": string;
|
|
4747
|
+
"label": string;
|
|
4748
|
+
"name": string;
|
|
4749
|
+
"orientation": Orientation;
|
|
4750
|
+
"required": boolean;
|
|
4751
|
+
"type": RadioGroupType;
|
|
4752
|
+
"value": string;
|
|
4753
|
+
"joined": boolean;
|
|
4754
|
+
}
|
|
4755
|
+
interface BdsSelectAttributes {
|
|
4756
|
+
"value": string;
|
|
4757
|
+
"searchable": boolean;
|
|
4758
|
+
"name": string;
|
|
4759
|
+
}
|
|
4760
|
+
interface BdsSliderAttributes {
|
|
4761
|
+
"min": number;
|
|
4762
|
+
"max": number;
|
|
4763
|
+
"type": SliderType;
|
|
4764
|
+
"label": string;
|
|
4765
|
+
"step": number;
|
|
4766
|
+
"showLimits": boolean;
|
|
4767
|
+
"value": SliderRawValue;
|
|
4768
|
+
"disabled": boolean;
|
|
4769
|
+
"name": string;
|
|
4770
|
+
"disabledHandlers": SliderRawValue;
|
|
4771
|
+
"discrete": boolean;
|
|
4772
|
+
"tooltip": SliderTooltipType;
|
|
4773
|
+
}
|
|
3080
4774
|
interface BdsSpinnerAttributes {
|
|
3081
4775
|
"size": ISpinner['size'];
|
|
3082
4776
|
"label": ISpinner['label'];
|
|
@@ -3119,6 +4813,8 @@ declare namespace LocalJSX {
|
|
|
3119
4813
|
"charCount": number;
|
|
3120
4814
|
"counter": boolean;
|
|
3121
4815
|
"customWidth": string;
|
|
4816
|
+
"selectable": boolean;
|
|
4817
|
+
"iconRight": string;
|
|
3122
4818
|
}
|
|
3123
4819
|
interface BdsToggleAttributes {
|
|
3124
4820
|
"name": IToggle['name'];
|
|
@@ -3141,6 +4837,7 @@ declare namespace LocalJSX {
|
|
|
3141
4837
|
"variant": ITypography['variant'];
|
|
3142
4838
|
"size": ITypography['size'];
|
|
3143
4839
|
"state": ITypography['state'];
|
|
4840
|
+
"rel": ITypography['rel'];
|
|
3144
4841
|
"customClass": string;
|
|
3145
4842
|
"element": ITypography['element'];
|
|
3146
4843
|
"align": ITypography['align'];
|
|
@@ -3159,8 +4856,14 @@ declare namespace LocalJSX {
|
|
|
3159
4856
|
"bds-avatar": Omit<BdsAvatar, keyof BdsAvatarAttributes> & { [K in keyof BdsAvatar & keyof BdsAvatarAttributes]?: BdsAvatar[K] } & { [K in keyof BdsAvatar & keyof BdsAvatarAttributes as `attr:${K}`]?: BdsAvatarAttributes[K] } & { [K in keyof BdsAvatar & keyof BdsAvatarAttributes as `prop:${K}`]?: BdsAvatar[K] };
|
|
3160
4857
|
"bds-badge": Omit<BdsBadge, keyof BdsBadgeAttributes> & { [K in keyof BdsBadge & keyof BdsBadgeAttributes]?: BdsBadge[K] } & { [K in keyof BdsBadge & keyof BdsBadgeAttributes as `attr:${K}`]?: BdsBadgeAttributes[K] } & { [K in keyof BdsBadge & keyof BdsBadgeAttributes as `prop:${K}`]?: BdsBadge[K] };
|
|
3161
4858
|
"bds-banner": Omit<BdsBanner, keyof BdsBannerAttributes> & { [K in keyof BdsBanner & keyof BdsBannerAttributes]?: BdsBanner[K] } & { [K in keyof BdsBanner & keyof BdsBannerAttributes as `attr:${K}`]?: BdsBannerAttributes[K] } & { [K in keyof BdsBanner & keyof BdsBannerAttributes as `prop:${K}`]?: BdsBanner[K] };
|
|
4859
|
+
"bds-breadcrumb": Omit<BdsBreadcrumb, keyof BdsBreadcrumbAttributes> & { [K in keyof BdsBreadcrumb & keyof BdsBreadcrumbAttributes]?: BdsBreadcrumb[K] } & { [K in keyof BdsBreadcrumb & keyof BdsBreadcrumbAttributes as `attr:${K}`]?: BdsBreadcrumbAttributes[K] } & { [K in keyof BdsBreadcrumb & keyof BdsBreadcrumbAttributes as `prop:${K}`]?: BdsBreadcrumb[K] };
|
|
4860
|
+
"bds-breadcrumb-item": Omit<BdsBreadcrumbItem, keyof BdsBreadcrumbItemAttributes> & { [K in keyof BdsBreadcrumbItem & keyof BdsBreadcrumbItemAttributes]?: BdsBreadcrumbItem[K] } & { [K in keyof BdsBreadcrumbItem & keyof BdsBreadcrumbItemAttributes as `attr:${K}`]?: BdsBreadcrumbItemAttributes[K] } & { [K in keyof BdsBreadcrumbItem & keyof BdsBreadcrumbItemAttributes as `prop:${K}`]?: BdsBreadcrumbItem[K] };
|
|
3162
4861
|
"bds-button": Omit<BdsButton, keyof BdsButtonAttributes> & { [K in keyof BdsButton & keyof BdsButtonAttributes]?: BdsButton[K] } & { [K in keyof BdsButton & keyof BdsButtonAttributes as `attr:${K}`]?: BdsButtonAttributes[K] } & { [K in keyof BdsButton & keyof BdsButtonAttributes as `prop:${K}`]?: BdsButton[K] };
|
|
3163
|
-
"bds-
|
|
4862
|
+
"bds-button-group": Omit<BdsButtonGroup, keyof BdsButtonGroupAttributes> & { [K in keyof BdsButtonGroup & keyof BdsButtonGroupAttributes]?: BdsButtonGroup[K] } & { [K in keyof BdsButtonGroup & keyof BdsButtonGroupAttributes as `attr:${K}`]?: BdsButtonGroupAttributes[K] } & { [K in keyof BdsButtonGroup & keyof BdsButtonGroupAttributes as `prop:${K}`]?: BdsButtonGroup[K] };
|
|
4863
|
+
"bds-checkbox": Omit<BdsCheckbox, keyof BdsCheckboxAttributes> & { [K in keyof BdsCheckbox & keyof BdsCheckboxAttributes]?: BdsCheckbox[K] } & { [K in keyof BdsCheckbox & keyof BdsCheckboxAttributes as `attr:${K}`]?: BdsCheckboxAttributes[K] } & { [K in keyof BdsCheckbox & keyof BdsCheckboxAttributes as `prop:${K}`]?: BdsCheckbox[K] };
|
|
4864
|
+
"bds-checkbox-button": Omit<BdsCheckboxButton, keyof BdsCheckboxButtonAttributes> & { [K in keyof BdsCheckboxButton & keyof BdsCheckboxButtonAttributes]?: BdsCheckboxButton[K] } & { [K in keyof BdsCheckboxButton & keyof BdsCheckboxButtonAttributes as `attr:${K}`]?: BdsCheckboxButtonAttributes[K] } & { [K in keyof BdsCheckboxButton & keyof BdsCheckboxButtonAttributes as `prop:${K}`]?: BdsCheckboxButton[K] };
|
|
4865
|
+
"bds-checkbox-card": Omit<BdsCheckboxCard, keyof BdsCheckboxCardAttributes> & { [K in keyof BdsCheckboxCard & keyof BdsCheckboxCardAttributes]?: BdsCheckboxCard[K] } & { [K in keyof BdsCheckboxCard & keyof BdsCheckboxCardAttributes as `attr:${K}`]?: BdsCheckboxCardAttributes[K] } & { [K in keyof BdsCheckboxCard & keyof BdsCheckboxCardAttributes as `prop:${K}`]?: BdsCheckboxCard[K] } & OneOf<"name", BdsCheckboxCard["name"], BdsCheckboxCardAttributes["name"]>;
|
|
4866
|
+
"bds-checkbox-group": Omit<BdsCheckboxGroup, keyof BdsCheckboxGroupAttributes> & { [K in keyof BdsCheckboxGroup & keyof BdsCheckboxGroupAttributes]?: BdsCheckboxGroup[K] } & { [K in keyof BdsCheckboxGroup & keyof BdsCheckboxGroupAttributes as `attr:${K}`]?: BdsCheckboxGroupAttributes[K] } & { [K in keyof BdsCheckboxGroup & keyof BdsCheckboxGroupAttributes as `prop:${K}`]?: BdsCheckboxGroup[K] } & OneOf<"name", BdsCheckboxGroup["name"], BdsCheckboxGroupAttributes["name"]>;
|
|
3164
4867
|
"bds-dialog": Omit<BdsDialog, keyof BdsDialogAttributes> & { [K in keyof BdsDialog & keyof BdsDialogAttributes]?: BdsDialog[K] } & { [K in keyof BdsDialog & keyof BdsDialogAttributes as `attr:${K}`]?: BdsDialogAttributes[K] } & { [K in keyof BdsDialog & keyof BdsDialogAttributes as `prop:${K}`]?: BdsDialog[K] };
|
|
3165
4868
|
"bds-divider": Omit<BdsDivider, keyof BdsDividerAttributes> & { [K in keyof BdsDivider & keyof BdsDividerAttributes]?: BdsDivider[K] } & { [K in keyof BdsDivider & keyof BdsDividerAttributes as `attr:${K}`]?: BdsDividerAttributes[K] } & { [K in keyof BdsDivider & keyof BdsDividerAttributes as `prop:${K}`]?: BdsDivider[K] };
|
|
3166
4869
|
"bds-flag": Omit<BdsFlag, keyof BdsFlagAttributes> & { [K in keyof BdsFlag & keyof BdsFlagAttributes]?: BdsFlag[K] } & { [K in keyof BdsFlag & keyof BdsFlagAttributes as `attr:${K}`]?: BdsFlagAttributes[K] } & { [K in keyof BdsFlag & keyof BdsFlagAttributes as `prop:${K}`]?: BdsFlag[K] };
|
|
@@ -3169,6 +4872,12 @@ declare namespace LocalJSX {
|
|
|
3169
4872
|
"bds-list-menu": Omit<BdsListMenu, keyof BdsListMenuAttributes> & { [K in keyof BdsListMenu & keyof BdsListMenuAttributes]?: BdsListMenu[K] } & { [K in keyof BdsListMenu & keyof BdsListMenuAttributes as `attr:${K}`]?: BdsListMenuAttributes[K] } & { [K in keyof BdsListMenu & keyof BdsListMenuAttributes as `prop:${K}`]?: BdsListMenu[K] };
|
|
3170
4873
|
"bds-list-menu-item": Omit<BdsListMenuItem, keyof BdsListMenuItemAttributes> & { [K in keyof BdsListMenuItem & keyof BdsListMenuItemAttributes]?: BdsListMenuItem[K] } & { [K in keyof BdsListMenuItem & keyof BdsListMenuItemAttributes as `attr:${K}`]?: BdsListMenuItemAttributes[K] } & { [K in keyof BdsListMenuItem & keyof BdsListMenuItemAttributes as `prop:${K}`]?: BdsListMenuItem[K] };
|
|
3171
4874
|
"bds-popover": Omit<BdsPopover, keyof BdsPopoverAttributes> & { [K in keyof BdsPopover & keyof BdsPopoverAttributes]?: BdsPopover[K] } & { [K in keyof BdsPopover & keyof BdsPopoverAttributes as `attr:${K}`]?: BdsPopoverAttributes[K] } & { [K in keyof BdsPopover & keyof BdsPopoverAttributes as `prop:${K}`]?: BdsPopover[K] };
|
|
4875
|
+
"bds-radio": Omit<BdsRadio, keyof BdsRadioAttributes> & { [K in keyof BdsRadio & keyof BdsRadioAttributes]?: BdsRadio[K] } & { [K in keyof BdsRadio & keyof BdsRadioAttributes as `attr:${K}`]?: BdsRadioAttributes[K] } & { [K in keyof BdsRadio & keyof BdsRadioAttributes as `prop:${K}`]?: BdsRadio[K] };
|
|
4876
|
+
"bds-radio-button": Omit<BdsRadioButton, keyof BdsRadioButtonAttributes> & { [K in keyof BdsRadioButton & keyof BdsRadioButtonAttributes]?: BdsRadioButton[K] } & { [K in keyof BdsRadioButton & keyof BdsRadioButtonAttributes as `attr:${K}`]?: BdsRadioButtonAttributes[K] } & { [K in keyof BdsRadioButton & keyof BdsRadioButtonAttributes as `prop:${K}`]?: BdsRadioButton[K] };
|
|
4877
|
+
"bds-radio-card": Omit<BdsRadioCard, keyof BdsRadioCardAttributes> & { [K in keyof BdsRadioCard & keyof BdsRadioCardAttributes]?: BdsRadioCard[K] } & { [K in keyof BdsRadioCard & keyof BdsRadioCardAttributes as `attr:${K}`]?: BdsRadioCardAttributes[K] } & { [K in keyof BdsRadioCard & keyof BdsRadioCardAttributes as `prop:${K}`]?: BdsRadioCard[K] };
|
|
4878
|
+
"bds-radio-group": Omit<BdsRadioGroup, keyof BdsRadioGroupAttributes> & { [K in keyof BdsRadioGroup & keyof BdsRadioGroupAttributes]?: BdsRadioGroup[K] } & { [K in keyof BdsRadioGroup & keyof BdsRadioGroupAttributes as `attr:${K}`]?: BdsRadioGroupAttributes[K] } & { [K in keyof BdsRadioGroup & keyof BdsRadioGroupAttributes as `prop:${K}`]?: BdsRadioGroup[K] } & OneOf<"name", BdsRadioGroup["name"], BdsRadioGroupAttributes["name"]>;
|
|
4879
|
+
"bds-select": Omit<BdsSelect, keyof BdsSelectAttributes> & { [K in keyof BdsSelect & keyof BdsSelectAttributes]?: BdsSelect[K] } & { [K in keyof BdsSelect & keyof BdsSelectAttributes as `attr:${K}`]?: BdsSelectAttributes[K] } & { [K in keyof BdsSelect & keyof BdsSelectAttributes as `prop:${K}`]?: BdsSelect[K] };
|
|
4880
|
+
"bds-slider": Omit<BdsSlider, keyof BdsSliderAttributes> & { [K in keyof BdsSlider & keyof BdsSliderAttributes]?: BdsSlider[K] } & { [K in keyof BdsSlider & keyof BdsSliderAttributes as `attr:${K}`]?: BdsSliderAttributes[K] } & { [K in keyof BdsSlider & keyof BdsSliderAttributes as `prop:${K}`]?: BdsSlider[K] };
|
|
3172
4881
|
"bds-spinner": Omit<BdsSpinner, keyof BdsSpinnerAttributes> & { [K in keyof BdsSpinner & keyof BdsSpinnerAttributes]?: BdsSpinner[K] } & { [K in keyof BdsSpinner & keyof BdsSpinnerAttributes as `attr:${K}`]?: BdsSpinnerAttributes[K] } & { [K in keyof BdsSpinner & keyof BdsSpinnerAttributes as `prop:${K}`]?: BdsSpinner[K] };
|
|
3173
4882
|
"bds-status": Omit<BdsStatus, keyof BdsStatusAttributes> & { [K in keyof BdsStatus & keyof BdsStatusAttributes]?: BdsStatus[K] } & { [K in keyof BdsStatus & keyof BdsStatusAttributes as `attr:${K}`]?: BdsStatusAttributes[K] } & { [K in keyof BdsStatus & keyof BdsStatusAttributes as `prop:${K}`]?: BdsStatus[K] };
|
|
3174
4883
|
"bds-tag": Omit<BdsTag, keyof BdsTagAttributes> & { [K in keyof BdsTag & keyof BdsTagAttributes]?: BdsTag[K] } & { [K in keyof BdsTag & keyof BdsTagAttributes as `attr:${K}`]?: BdsTagAttributes[K] } & { [K in keyof BdsTag & keyof BdsTagAttributes as `prop:${K}`]?: BdsTag[K] };
|
|
@@ -3219,6 +4928,15 @@ declare module "@stencil/core" {
|
|
|
3219
4928
|
* @method close - Programmatic method to close the banner and emit the `bdsClose` event.
|
|
3220
4929
|
*/
|
|
3221
4930
|
"bds-banner": LocalJSX.IntrinsicElements["bds-banner"] & JSXBase.HTMLAttributes<HTMLBdsBannerElement>;
|
|
4931
|
+
/**
|
|
4932
|
+
* @summary Breadcrumb navigation container component. Provides a structured navigation trail and
|
|
4933
|
+
* handles overflow using a collapse mechanism when the number of items exceeds `maxItems`.
|
|
4934
|
+
*/
|
|
4935
|
+
"bds-breadcrumb": LocalJSX.IntrinsicElements["bds-breadcrumb"] & JSXBase.HTMLAttributes<HTMLBdsBreadcrumbElement>;
|
|
4936
|
+
/**
|
|
4937
|
+
* @summary Breadcrumb navigation item component that represents a single step within a breadcrumb navigation trail.
|
|
4938
|
+
*/
|
|
4939
|
+
"bds-breadcrumb-item": LocalJSX.IntrinsicElements["bds-breadcrumb-item"] & JSXBase.HTMLAttributes<HTMLBdsBreadcrumbItemElement>;
|
|
3222
4940
|
/**
|
|
3223
4941
|
* Button component for user interactions, form submissions, supporting various styles, sizes, and states.
|
|
3224
4942
|
* @summary A versatile button component that can be customized with different colors, sizes, variants and states to fit various use cases in the application.
|
|
@@ -3228,7 +4946,7 @@ declare module "@stencil/core" {
|
|
|
3228
4946
|
* @attr {string} type - The type of the button, which can be 'button', 'submit', or 'reset'. Default is 'button'.
|
|
3229
4947
|
* @attr {string} color - The color theme of the button, which can be 'default', 'primary', 'success', or 'error'. Default is 'default'.
|
|
3230
4948
|
* @attr {string} variant - The visual style of the button, which can be 'default', 'outline', or 'plain'. Default is 'default'.
|
|
3231
|
-
* @attr {string} size - The size of the button, which can be '
|
|
4949
|
+
* @attr {string} size - The size of the button, which can be 'sm', 'md', or 'lg'. Default is 'md'.
|
|
3232
4950
|
* @attr {boolean} loading - Indicates whether the button is in a loading state, which can be used to show a loading spinner and disable the button. Default is false.
|
|
3233
4951
|
* @attr {boolean} disclosure - Indicates if the button should show a chevron down at the end of the content.
|
|
3234
4952
|
* @property {string} label - The accessible name for the button, used for screen readers. It should be provided by the user for accessibility purposes.
|
|
@@ -3237,13 +4955,13 @@ declare module "@stencil/core" {
|
|
|
3237
4955
|
* @property {string} type - The type of the button, which can be 'button', 'submit', or 'reset'. Default is 'button'.
|
|
3238
4956
|
* @property {string} color - The color theme of the button, which can be 'default', 'primary', 'success', or 'error'. Default is 'default'.
|
|
3239
4957
|
* @property {string} variant - The visual style of the button, which can be 'default', 'outline', or 'plain'. Default is 'default'.
|
|
3240
|
-
* @property {string} size - The size of the button, which can be '
|
|
4958
|
+
* @property {string} size - The size of the button, which can be 'sm', 'md', or 'lg'. Default is 'md'.
|
|
3241
4959
|
* @property {boolean} loading - Indicates whether the button is in a loading state, which can be used to show a loading spinner and disable the button. Default is false.
|
|
3242
4960
|
* @property {boolean} disclosure - Indicates if the button should show a chevron down at the end of the content.
|
|
3243
4961
|
* @default 'button' - Default type value
|
|
3244
4962
|
* @default 'default' - Default color value
|
|
3245
4963
|
* @default 'default' - Default variant value
|
|
3246
|
-
* @default '
|
|
4964
|
+
* @default 'md' - Default size value
|
|
3247
4965
|
* @default 'default' - Default status value
|
|
3248
4966
|
* @default false - Default disabled value
|
|
3249
4967
|
* @default '' - Default label value
|
|
@@ -3252,6 +4970,10 @@ declare module "@stencil/core" {
|
|
|
3252
4970
|
* @default false - Default disclosure value
|
|
3253
4971
|
*/
|
|
3254
4972
|
"bds-button": LocalJSX.IntrinsicElements["bds-button"] & JSXBase.HTMLAttributes<HTMLBdsButtonElement>;
|
|
4973
|
+
/**
|
|
4974
|
+
* Button group component for grouping related buttons together in a unified visual unit.
|
|
4975
|
+
*/
|
|
4976
|
+
"bds-button-group": LocalJSX.IntrinsicElements["bds-button-group"] & JSXBase.HTMLAttributes<HTMLBdsButtonGroupElement>;
|
|
3255
4977
|
/**
|
|
3256
4978
|
* Checkbox component for boolean selection with three visual states.
|
|
3257
4979
|
* @summary A checkbox form control with default, selected, and indeterminate states.
|
|
@@ -3264,6 +4986,22 @@ declare module "@stencil/core" {
|
|
|
3264
4986
|
* @fires bdsChange - Emitted when the user toggles the checkbox. Payload: `{ checked: boolean, value: string }`.
|
|
3265
4987
|
*/
|
|
3266
4988
|
"bds-checkbox": LocalJSX.IntrinsicElements["bds-checkbox"] & JSXBase.HTMLAttributes<HTMLBdsCheckboxElement>;
|
|
4989
|
+
/**
|
|
4990
|
+
* Button-shaped checkbox option that toggles independently on each interaction.
|
|
4991
|
+
* Renders as a pill-button with the same visual language as `bds-radio-button`, but uses
|
|
4992
|
+
* `role="checkbox"` and multi-select semantics — toggling one button has no effect on others.
|
|
4993
|
+
* Can be used standalone (with `name` and optional `required`) or inside a `bds-checkbox-group`,
|
|
4994
|
+
* which is the recommended approach for coordinated form state and group-level validation.
|
|
4995
|
+
*/
|
|
4996
|
+
"bds-checkbox-button": LocalJSX.IntrinsicElements["bds-checkbox-button"] & JSXBase.HTMLAttributes<HTMLBdsCheckboxButtonElement>;
|
|
4997
|
+
/**
|
|
4998
|
+
* @summary Checkbox card component is a selectable card-based checkbox option.
|
|
4999
|
+
*/
|
|
5000
|
+
"bds-checkbox-card": LocalJSX.IntrinsicElements["bds-checkbox-card"] & JSXBase.HTMLAttributes<HTMLBdsCheckboxCardElement>;
|
|
5001
|
+
/**
|
|
5002
|
+
* Checkbox group component that orchestrates multi-selection across a set of `bds-checkbox`, `bds-checkbox-button`, `bds-checkbox-card` children.
|
|
5003
|
+
*/
|
|
5004
|
+
"bds-checkbox-group": LocalJSX.IntrinsicElements["bds-checkbox-group"] & JSXBase.HTMLAttributes<HTMLBdsCheckboxGroupElement>;
|
|
3267
5005
|
/**
|
|
3268
5006
|
* Modal dialog component for displaying content in an overlay.
|
|
3269
5007
|
* @summary Modal overlay for alerts, forms, and confirmations with customizable layout and behavior.
|
|
@@ -3344,15 +5082,10 @@ declare module "@stencil/core" {
|
|
|
3344
5082
|
* Container component that manages a list of menu items.
|
|
3345
5083
|
* It handles selection logic (single/multiple) and maintains the data state.
|
|
3346
5084
|
* @summary A list menu component that can contain multiple menu items and manage their selection state.
|
|
3347
|
-
* @
|
|
3348
|
-
* @
|
|
3349
|
-
* @property {boolean} multiple - If true, allows multiple items to be selected. Default is false (single selection).
|
|
3350
|
-
* @property {string} menuRole - Defines the ARIA role of the menu. Can be 'menu' or 'listbox'. Default is 'menu'.
|
|
3351
|
-
* @event bdsChange - Emitted when the selection changes, providing the current selected value(s).
|
|
5085
|
+
* @fires bdsChange - Emitted when the selection changes, providing the current selected value(s).
|
|
5086
|
+
* @fires bdsSelect - Emmited when item is selected in menu-role="menu" is clicked
|
|
3352
5087
|
* @method getSelectedValues - Returns the currently selected value(s). If multiple is true, returns an array of strings; otherwise, returns a single string or undefined.
|
|
3353
5088
|
* @method setSelectedValues - Sets the selected value(s). Accepts a string for single selection or an array of strings for multiple selection.
|
|
3354
|
-
* @default false - By default, the menu does not allow multiple selections (single selection mode).
|
|
3355
|
-
* @default 'menu' - The default ARIA role for the menu is 'menu'.
|
|
3356
5089
|
*/
|
|
3357
5090
|
"bds-list-menu": LocalJSX.IntrinsicElements["bds-list-menu"] & JSXBase.HTMLAttributes<HTMLBdsListMenuElement>;
|
|
3358
5091
|
/**
|
|
@@ -3404,6 +5137,53 @@ declare module "@stencil/core" {
|
|
|
3404
5137
|
* @cssprop data-hidearrow - Reflects the hideArrow option.
|
|
3405
5138
|
*/
|
|
3406
5139
|
"bds-popover": LocalJSX.IntrinsicElements["bds-popover"] & JSXBase.HTMLAttributes<HTMLBdsPopoverElement>;
|
|
5140
|
+
/**
|
|
5141
|
+
* Radio button component for single-selection within a group.
|
|
5142
|
+
* Use inside `bds-radio-group` for managed selection and form binding.
|
|
5143
|
+
* Can also be used standalone with the `name`, `value`, and `checked` props.
|
|
5144
|
+
*/
|
|
5145
|
+
"bds-radio": LocalJSX.IntrinsicElements["bds-radio"] & JSXBase.HTMLAttributes<HTMLBdsRadioElement>;
|
|
5146
|
+
/**
|
|
5147
|
+
* Button-shaped radio option for use inside `bds-radio-group[type="radiobutton"]`.
|
|
5148
|
+
* Creates a segmented control appearance when grouped. Not form-associated — the parent
|
|
5149
|
+
* `bds-radio-group` owns form state and single-selection enforcement.
|
|
5150
|
+
*/
|
|
5151
|
+
"bds-radio-button": LocalJSX.IntrinsicElements["bds-radio-button"] & JSXBase.HTMLAttributes<HTMLBdsRadioButtonElement>;
|
|
5152
|
+
/**
|
|
5153
|
+
* Radio card component is a selectable card-based radio option.
|
|
5154
|
+
* It presents a mutually exclusive choice with optional descriptive text and icon,
|
|
5155
|
+
* designed for integration with bds-radio-group for orchestration.
|
|
5156
|
+
* Can also be used standalone with the `name`, `value`, and `checked` props.
|
|
5157
|
+
* @fires bdsChange - Emitted when the user selects this radio card. Listened to by the parent bds-radio-group to enforce single selection.
|
|
5158
|
+
*/
|
|
5159
|
+
"bds-radio-card": LocalJSX.IntrinsicElements["bds-radio-card"] & JSXBase.HTMLAttributes<HTMLBdsRadioCardElement>;
|
|
5160
|
+
/**
|
|
5161
|
+
* Radio group component that orchestrates single-selection across a set of `bds-radio` children.
|
|
5162
|
+
*/
|
|
5163
|
+
"bds-radio-group": LocalJSX.IntrinsicElements["bds-radio-group"] & JSXBase.HTMLAttributes<HTMLBdsRadioGroupElement>;
|
|
5164
|
+
/**
|
|
5165
|
+
* Component representing a select dropdown, allowing users to choose an option from a list.
|
|
5166
|
+
* It consists of a text field that triggers the dropdown and a list menu that contains the options.
|
|
5167
|
+
* The component supports both single selection and searchable functionality.
|
|
5168
|
+
*/
|
|
5169
|
+
"bds-select": LocalJSX.IntrinsicElements["bds-select"] & JSXBase.HTMLAttributes<HTMLBdsSelectElement>;
|
|
5170
|
+
/**
|
|
5171
|
+
* Slider component for selecting a numeric value or a range of values.
|
|
5172
|
+
* @summary An accessible, single or multi-handle range slider built on HTML `<input type="range">`.
|
|
5173
|
+
* Supports discrete tick marks, tooltips, disabled state, and N-handle multi-value mode
|
|
5174
|
+
* with automatic collision prevention between handles.
|
|
5175
|
+
* @property {number} min - Minimum selectable value. Defaults to `0`.
|
|
5176
|
+
* @property {number} max - Maximum selectable value. Defaults to `100`.
|
|
5177
|
+
* @property {number} step - Step size for each increment/decrement. Defaults to `1`.
|
|
5178
|
+
* @property {number[]} value - Current value(s). A single number for one handle;
|
|
5179
|
+
* an array for multi-handle mode. Defaults to `0`.
|
|
5180
|
+
* @property {boolean} disabled - Disables interaction with the slider. Defaults to `false`.
|
|
5181
|
+
* @property {boolean} discrete - Shows tick marks at each step position along the track. Defaults to `false`.
|
|
5182
|
+
* @property {string} tooltip - Controls tooltip visibility: `"never"`, or `"focus"`. Defaults to `"focus"`.
|
|
5183
|
+
* @method getValues - Returns the current value(s) as `number | number[]`.
|
|
5184
|
+
* @method setValues - Programmatically sets the slider value(s).
|
|
5185
|
+
*/
|
|
5186
|
+
"bds-slider": LocalJSX.IntrinsicElements["bds-slider"] & JSXBase.HTMLAttributes<HTMLBdsSliderElement>;
|
|
3407
5187
|
/**
|
|
3408
5188
|
* Spinner component used to indicate a loading or processing state.
|
|
3409
5189
|
* @summary Displays an animated circular spinner to communicate that content is loading.
|
|
@@ -3497,49 +5277,6 @@ declare module "@stencil/core" {
|
|
|
3497
5277
|
/**
|
|
3498
5278
|
* Typography component for displaying text with various styles, sizes, and interactive features.
|
|
3499
5279
|
* @summary A comprehensive typography component that supports multiple text variants, sizes, alignments, states, and link functionality.
|
|
3500
|
-
* @attr {string} variant - The variant of the typography for styling the text. Options: label, display, heading, subheading, helper, link, code, caption
|
|
3501
|
-
* @attr {string} element - Defines the HTML element. For `heading` variant, the text size adjusts to the HTML heading level (`h1` through `h6`).
|
|
3502
|
-
* @attr {string} state - The state of the typography. Only available for the `helper` and `label` variants. Options: default, error, disabled, hover, active, focus, visited
|
|
3503
|
-
* @attr {string} align - The text alignment. Options: start, center, end, inherit
|
|
3504
|
-
* @attr {string} size - The size of the typography. For `display` variant all options are available (`xl`, `lg`, `md`, `sm`), while for `link` variant only `md` and `sm` are available.
|
|
3505
|
-
* @attr {boolean} required - Shows a required indicator when used with `label` variant.
|
|
3506
|
-
* @attr {boolean} ellipsis - Truncates text with an ellipsis when it overflows.
|
|
3507
|
-
* @attr {number} max-lines - Maximum number of lines to show before truncating with ellipsis.
|
|
3508
|
-
* @attr {string} href - URL when the typography is an `a` element and a `link` variant.
|
|
3509
|
-
* @attr {string} target - Specifies where to open the link. Options: _self, _blank, _top, _parent
|
|
3510
|
-
* @attr {boolean} downloadable - Makes the `link` download a file.
|
|
3511
|
-
* @attr {string} filename - Suggested filename when downloading a file from the `link`.
|
|
3512
|
-
* @attr {string} html-for - The for attribute when rendered as a label
|
|
3513
|
-
* @attr {string} tooltip-text - Text to display inside the tooltip when hovering the info icon. Only applicable for `heading`, `subheading`, and `label` variants.
|
|
3514
|
-
* @attr {string} custom-class - Additional custom CSS class
|
|
3515
|
-
* @property {string} variant - The variant of the typography for styling the text. Options: label, display, heading, subheading, helper, link, code, caption
|
|
3516
|
-
* @property {string} element - Defines the HTML element. For `heading` variant, the text size adjusts to the HTML heading level (`h1` through `h6`).
|
|
3517
|
-
* @property {string} state - The state of the typography. Only available for the `helper` and `label` variants. Options: default, error, disabled, hover, active, focus, visited
|
|
3518
|
-
* @property {string} align - The text alignment. Options: start, center, end, inherit
|
|
3519
|
-
* @property {string} size - The size of the typography. For `display` variant all options are available (`xl`, `lg`, `md`, `sm`), while for `link` variant only `md` and `sm` are available.
|
|
3520
|
-
* @property {boolean} required - Shows a required indicator when used with `label` variant.
|
|
3521
|
-
* @property {boolean} ellipsis - Truncates text with an ellipsis when it overflows.
|
|
3522
|
-
* @property {number} maxLines - Maximum number of lines to show before truncating with ellipsis.
|
|
3523
|
-
* @property {string} href - URL when the typography is an `a` element and a `link` variant.
|
|
3524
|
-
* @property {string} target - Specifies where to open the link. Options: _self, _blank, _top, _parent
|
|
3525
|
-
* @property {boolean} downloadable - Makes the `link` download a file.
|
|
3526
|
-
* @property {string} filename - Suggested filename when downloading a file from the `link`.
|
|
3527
|
-
* @property {string} htmlFor - The for attribute when rendered as a label
|
|
3528
|
-
* @property {string} tooltipText - Text to display inside the tooltip when hovering the info icon. Only applicable for `heading`, `subheading`, and `label` variants.
|
|
3529
|
-
* @property {string} customClass - Additional custom CSS class
|
|
3530
|
-
* @default 'display' - Default variant value
|
|
3531
|
-
* @default 'p' - Default element value
|
|
3532
|
-
* @default 'start' - Default align value
|
|
3533
|
-
* @default 'md' - Default size value
|
|
3534
|
-
* @default 'default' - Default state value
|
|
3535
|
-
* @default false - Default required state
|
|
3536
|
-
* @default false - Default ellipsis state
|
|
3537
|
-
* @default 1 - Default maxLines value
|
|
3538
|
-
* @default '' - Default href value
|
|
3539
|
-
* @default '' - Default target value
|
|
3540
|
-
* @default false - Default downloadable state
|
|
3541
|
-
* @default 'download' - Default filename value
|
|
3542
|
-
* @default '' - Default tooltipText value
|
|
3543
5280
|
*/
|
|
3544
5281
|
"bds-typography": LocalJSX.IntrinsicElements["bds-typography"] & JSXBase.HTMLAttributes<HTMLBdsTypographyElement>;
|
|
3545
5282
|
}
|