@telesign/boreal-web-components 0.1.0-alpha.4 → 0.1.0-alpha.5
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-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-card.d.ts +11 -0
- package/components-build/bds-checkbox-card.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-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-BSlaf0ff.js +1 -0
- package/components-build/p-CPvuMm5C.js +1 -0
- package/components-build/p-Cbibqaz0.js +1 -0
- package/components-build/p-ClR-wgiT.js +1 -0
- package/components-build/p-DfaYciGa.js +1 -0
- package/components-build/p-Dh8DSJs_.js +1 -0
- package/components-build/p-N_tqtRV2.js +1 -0
- package/components-build/p-bAMuJ4Jx.js +1 -0
- package/components-build/p-c2z3tneT.js +1 -0
- package/components-build/p-dz9-Q2N8.js +1 -0
- package/{dist/boreal-web-components/p-CaHOghy5.js → components-build/p-fUK0GCeC.js} +1 -1
- package/components-build/p-iq2UuV7c.js +1 -0
- package/components-build/p-nxYzL9uu.js +1 -0
- package/custom-elements.json +2603 -931
- package/dist/boreal-web-components/boreal-web-components.esm.js +1 -1
- package/dist/boreal-web-components/{p-7a4efddd.system.entry.js → p-024d90b0.system.entry.js} +1 -1
- package/dist/boreal-web-components/p-06DrzEMB.system.js +1 -0
- package/dist/boreal-web-components/p-11e4c0ec.system.entry.js +1 -0
- package/dist/boreal-web-components/p-147d6652.system.entry.js +1 -0
- package/dist/boreal-web-components/p-148d510f.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-41b48701.system.entry.js → p-277f142e.system.entry.js} +1 -1
- package/dist/boreal-web-components/{p-251b3002.entry.js → p-2adf2cd5.entry.js} +1 -1
- package/dist/boreal-web-components/p-2be4aa3a.system.entry.js +1 -0
- package/dist/boreal-web-components/p-340896b2.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-3d4ce8eb.system.entry.js +1 -0
- package/dist/boreal-web-components/p-44a8fde5.entry.js +1 -0
- package/dist/boreal-web-components/{p-52600375.system.entry.js → p-48ebbfbe.system.entry.js} +1 -1
- package/dist/boreal-web-components/{p-ab5ffa15.system.entry.js → p-4dc01078.system.entry.js} +1 -1
- package/dist/boreal-web-components/p-5681b294.system.entry.js +1 -0
- package/dist/boreal-web-components/p-5ed75075.entry.js +1 -0
- package/dist/boreal-web-components/p-635f676b.system.entry.js +1 -0
- package/dist/boreal-web-components/{p-7db870b7.entry.js → p-6629be14.entry.js} +1 -1
- package/dist/boreal-web-components/p-68b83680.system.entry.js +1 -0
- package/dist/boreal-web-components/p-6a60d134.system.entry.js +1 -0
- 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-80822731.system.entry.js → p-77658a5b.system.entry.js} +1 -1
- package/dist/boreal-web-components/p-7aff4c78.entry.js +1 -0
- package/dist/boreal-web-components/p-7bb88855.entry.js +1 -0
- package/dist/boreal-web-components/p-7d3a8f61.entry.js +1 -0
- package/dist/boreal-web-components/p-7e672cce.entry.js +1 -0
- package/dist/boreal-web-components/{p-1d1bb9d2.entry.js → p-7ebc67c9.entry.js} +1 -1
- package/dist/boreal-web-components/p-81401e2a.system.entry.js +1 -0
- package/dist/boreal-web-components/p-8289e506.entry.js +1 -0
- package/dist/boreal-web-components/p-82d15372.entry.js +1 -0
- package/dist/boreal-web-components/p-851c06f2.entry.js +1 -0
- package/dist/boreal-web-components/p-8a3716ec.entry.js +1 -0
- package/dist/boreal-web-components/p-8f4f8af0.system.entry.js +1 -0
- package/dist/boreal-web-components/{p-871c9a9f.system.entry.js → p-93066db4.system.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-BuxZeJbu.system.js → p-DSU8tkVw.system.js} +1 -1
- package/dist/boreal-web-components/p-DYlZcFrB.system.js +1 -0
- package/dist/boreal-web-components/p-DfaYciGa.js +1 -0
- package/dist/boreal-web-components/p-DlVzZK7o.js +1 -0
- package/dist/boreal-web-components/p-DlYG-OVB.js +1 -0
- package/dist/boreal-web-components/p-DnIhjwCH.system.js +1 -0
- package/dist/boreal-web-components/p-DpnBDSUm.system.js +1 -0
- package/dist/boreal-web-components/p-Dwo1hcd9.js +1 -0
- package/{components-build/p-CaHOghy5.js → dist/boreal-web-components/p-U9yfbs7i.js} +1 -1
- package/dist/boreal-web-components/p-a73659ac.system.entry.js +1 -0
- package/dist/boreal-web-components/p-b2ad9535.system.entry.js +1 -0
- package/dist/boreal-web-components/{p-731b88cc.entry.js → p-d4c30d2b.entry.js} +1 -1
- package/dist/boreal-web-components/p-db0c10b9.system.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-dca16a3d.entry.js +1 -0
- package/dist/boreal-web-components/p-de846c43.system.entry.js +1 -0
- package/dist/boreal-web-components/p-df087e23.system.entry.js +1 -0
- package/dist/boreal-web-components/p-dfb4854e.entry.js +1 -0
- package/dist/boreal-web-components/p-dz9-Q2N8.js +1 -0
- package/dist/boreal-web-components/p-e09b4d14.system.entry.js +1 -0
- package/dist/boreal-web-components/{p-edca16b6.system.entry.js → p-e0a41cab.system.entry.js} +1 -1
- package/dist/boreal-web-components/{p-127a4134.entry.js → p-e55f2a8b.entry.js} +1 -1
- package/dist/boreal-web-components/p-e7af1e1a.entry.js +1 -0
- package/dist/boreal-web-components/{p-e0bf8a6e.entry.js → p-efe159aa.entry.js} +1 -1
- package/dist/boreal-web-components/{p-44ceff4e.system.entry.js → p-f65e9d0c.system.entry.js} +1 -1
- package/dist/boreal-web-components/p-f792aa74.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-iq2UuV7c.js +1 -0
- package/dist/boreal-web-components/p-vzZJGcYF.system.js +1 -1
- package/dist/boreal-web-components/p-wREMI3WA.js +1 -0
- package/dist/cjs/Keys-rKl2za5q.js +18 -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-button-group.cjs.entry.js +95 -0
- package/dist/cjs/bds-button.cjs.entry.js +7 -13
- package/dist/cjs/bds-checkbox-card.cjs.entry.js +121 -0
- package/dist/cjs/bds-checkbox.cjs.entry.js +13 -6
- package/dist/cjs/bds-dialog.cjs.entry.js +3 -3
- 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 +47 -22
- package/dist/cjs/bds-list-menu.cjs.entry.js +90 -21
- package/dist/cjs/bds-popover.cjs.entry.js +5 -4
- 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 +285 -0
- package/dist/cjs/bds-radio.cjs.entry.js +60 -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 +1 -1
- package/dist/cjs/bds-text-field.cjs.entry.js +8 -7
- package/dist/cjs/bds-toggle.cjs.entry.js +6 -5
- package/dist/cjs/bds-tooltip_2.cjs.entry.js +9 -8
- package/dist/cjs/boreal-web-components.cjs.js +1 -1
- 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-k4ezB-eT.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/menu-BxKaEajh.js +8 -0
- package/dist/cjs/orientation-DQAIleEJ.js +8 -0
- package/dist/collection/collection-manifest.json +7 -1
- package/dist/collection/components/actions/bds-button/bds-button.css +19 -19
- package/dist/collection/components/actions/bds-button/bds-button.js +7 -7
- 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 +245 -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 +148 -49
- 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/types/types.js +1 -0
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu-item/bds-list-menu-item.css +25 -9
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu-item/bds-list-menu-item.js +53 -8
- 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.js +1 -1
- package/dist/collection/components/forms/bds-checkbox/bds-checkbox.css +9 -8
- package/dist/collection/components/forms/bds-checkbox/bds-checkbox.js +7 -1
- package/dist/collection/components/forms/bds-checkbox-card/bds-checkbox-card.css +127 -0
- package/dist/collection/components/forms/bds-checkbox-card/bds-checkbox-card.js +397 -0
- package/dist/collection/components/forms/bds-checkbox-card/types/ICheckboxCard.js +1 -0
- package/dist/collection/components/forms/bds-flag/bds-flag.js +1 -1
- package/dist/collection/components/forms/bds-radio/bds-radio.css +121 -0
- package/dist/collection/components/forms/bds-radio/bds-radio.js +238 -0
- package/dist/collection/components/forms/bds-radio/types/IRadio.js +1 -0
- package/dist/collection/components/forms/bds-radio-button/bds-radio-button.css +109 -0
- package/dist/collection/components/forms/bds-radio-button/bds-radio-button.js +238 -0
- package/dist/collection/components/forms/bds-radio-button/types/IRadioButton.js +1 -0
- package/dist/collection/components/forms/bds-radio-card/bds-radio-card.css +156 -0
- package/dist/collection/components/forms/bds-radio-card/bds-radio-card.js +307 -0
- package/dist/collection/components/forms/bds-radio-card/types/IRadioCard.js +1 -0
- package/dist/collection/components/forms/bds-radio-group/bds-radio-group.css +55 -0
- package/dist/collection/components/forms/bds-radio-group/bds-radio-group.js +620 -0
- package/dist/collection/components/forms/bds-radio-group/types/IRadioGroup.js +1 -0
- package/dist/collection/components/forms/bds-radio-group/types/enum.js +5 -0
- package/dist/collection/components/forms/bds-radio-group/types/types.js +1 -0
- package/dist/collection/components/forms/bds-text-field/bds-text-field.js +1 -1
- 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.js +1 -1
- package/dist/collection/components/layouts/bds-grid/grid-item/bds-grid-item.js +1 -1
- package/dist/collection/components/overlays/bds-dialog/bds-dialog.js +2 -2
- package/dist/collection/components/overlays/bds-popover/bds-popover.js +1 -1
- 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 +1 -1
- 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 +11 -5
- package/dist/collection/types/index.js +2 -0
- package/dist/collection/types/orientation.js +4 -0
- package/dist/collection/utils/constants/common/Keys.js +10 -24
- package/dist/collection/utils/menu/menu-item.utils.js +9 -8
- package/dist/collection/utils/testing/helpers.js +10 -0
- package/dist/esm/Keys-DlYG-OVB.js +16 -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-button-group.entry.js +93 -0
- package/dist/esm/bds-button.entry.js +5 -11
- package/dist/esm/bds-checkbox-card.entry.js +119 -0
- package/dist/esm/bds-checkbox.entry.js +11 -4
- package/dist/esm/bds-dialog.entry.js +3 -3
- 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 +47 -22
- package/dist/esm/bds-list-menu.entry.js +90 -21
- package/dist/esm/bds-popover.entry.js +5 -4
- 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 +283 -0
- package/dist/esm/bds-radio.entry.js +58 -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 +1 -1
- package/dist/esm/bds-text-field.entry.js +3 -2
- package/dist/esm/bds-toggle.entry.js +4 -3
- package/dist/esm/bds-tooltip_2.entry.js +9 -8
- package/dist/esm/boreal-web-components.js +1 -1
- 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-BYS3c13B.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/menu-dz9-Q2N8.js +6 -0
- package/dist/esm/orientation-CPvuMm5C.js +6 -0
- package/dist/esm-es5/Keys-DlYG-OVB.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-button-group.entry.js +1 -0
- package/dist/esm-es5/bds-button.entry.js +1 -1
- package/dist/esm-es5/bds-checkbox-card.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-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/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-BYS3c13B.js +1 -0
- package/dist/esm-es5/internals-DfaYciGa.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/menu-dz9-Q2N8.js +1 -0
- package/dist/esm-es5/orientation-CPvuMm5C.js +1 -0
- package/dist/types/components/actions/bds-button/bds-button.d.ts +4 -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 +36 -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 +19 -15
- package/dist/types/components/actions/bds-list-menu/bds-list-menu/types/IListMenu.d.ts +14 -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 +8 -2
- package/dist/types/components/actions/bds-list-menu/bds-list-menu-item/types/IListMenuItem.d.ts +1 -0
- package/dist/types/components/forms/bds-checkbox/bds-checkbox.d.ts +2 -0
- package/dist/types/components/forms/bds-checkbox-card/bds-checkbox-card.d.ts +70 -0
- package/dist/types/components/forms/bds-checkbox-card/types/ICheckboxCard.d.ts +8 -0
- package/dist/types/components/forms/bds-radio/bds-radio.d.ts +36 -0
- package/dist/types/components/forms/bds-radio/types/IRadio.d.ts +13 -0
- package/dist/types/components/forms/bds-radio-button/bds-radio-button.d.ts +36 -0
- package/dist/types/components/forms/bds-radio-button/types/IRadioButton.d.ts +13 -0
- package/dist/types/components/forms/bds-radio-card/bds-radio-card.d.ts +57 -0
- package/dist/types/components/forms/bds-radio-card/types/IRadioCard.d.ts +14 -0
- package/dist/types/components/forms/bds-radio-group/bds-radio-group.d.ts +82 -0
- package/dist/types/components/forms/bds-radio-group/types/IRadioGroup.d.ts +19 -0
- package/dist/types/components/forms/bds-radio-group/types/enum.d.ts +6 -0
- package/dist/types/components/forms/bds-radio-group/types/types.d.ts +3 -0
- package/dist/types/components.d.ts +941 -63
- package/dist/types/mixins/menu-behavior.mixin.d.ts +5 -1
- package/dist/types/types/index.d.ts +2 -0
- package/dist/types/types/orientation.d.ts +6 -0
- package/dist/types/utils/constants/common/Keys.d.ts +13 -16
- 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-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-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-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/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/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/helpers/{types → bds-divider/types}/enum.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
|
@@ -9,18 +9,26 @@ 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
11
|
import { IButton } from "./components/actions/bds-button/types/IButton";
|
|
12
|
+
import { IButtonGroup } from "./components/actions/bds-button-group/types/IButtonGroup";
|
|
12
13
|
import { CheckboxChangeDetail } from "./components/forms/bds-checkbox/types/ICheckbox";
|
|
14
|
+
import { ICheckboxCard } from "./components/forms/bds-checkbox-card/types/ICheckboxCard";
|
|
13
15
|
import { IDialog } from "./components/overlays/bds-dialog/types";
|
|
14
|
-
import { IDivider } from "./components/helpers/types/IDivider";
|
|
16
|
+
import { IDivider } from "./components/helpers/bds-divider/types/IDivider";
|
|
15
17
|
import { IFlag } from "./components/forms/bds-flag/interfaces/IFlag";
|
|
16
18
|
import { IGrid } from "./components/layouts/bds-grid/grid/types";
|
|
17
19
|
import { IGridItem } from "./components/layouts/bds-grid/grid-item/types";
|
|
20
|
+
import { IListMenu, ListMenuChangeDetail } from "./components/actions/bds-list-menu/bds-list-menu/types/IListMenu";
|
|
18
21
|
import { IListMenuItem, IListMenuItemEvent } from "./components/actions/bds-list-menu/bds-list-menu-item/types/IListMenuItem";
|
|
19
22
|
import { IPopover } from "./components/overlays/bds-popover/types/IPopover";
|
|
23
|
+
import { RadioChangeDetail } from "./components/forms/bds-radio/types/IRadio";
|
|
24
|
+
import { RadioButtonChangeDetail } from "./components/forms/bds-radio-button/types/IRadioButton";
|
|
25
|
+
import { IRadioCard, RadioCardChangeDetail } from "./components/forms/bds-radio-card/types/IRadioCard";
|
|
26
|
+
import { IFormValidator, Orientation } from "./types/index";
|
|
27
|
+
import { RadioGroupType } from "./components/forms/bds-radio-group/types/types";
|
|
28
|
+
import { RadioGroupChangeDetail } from "./components/forms/bds-radio-group/types/IRadioGroup";
|
|
20
29
|
import { ISpinner } from "./components/feedback/bds-spinner/types/ISpinner";
|
|
21
30
|
import { IStatus } from "./components/feedback/bds-status/types/IStatus";
|
|
22
31
|
import { ITag, TagEventPayload } from "./components/feedback/bds-tag/types";
|
|
23
|
-
import { IFormValidator } from "./types/index";
|
|
24
32
|
import { TextFieldType, TextFieldValidationTiming, TextFieldVariant } from "./components/forms/bds-text-field/types";
|
|
25
33
|
import { Event } from "./stencil-public-runtime";
|
|
26
34
|
import { IToggle } from "./components/actions/bds-toggle/types";
|
|
@@ -32,18 +40,26 @@ export { IAvatar } from "./components/images-icons/bds-avatar/types";
|
|
|
32
40
|
export { IBadge } from "./components/feedback/bds-badge/types/IBadge";
|
|
33
41
|
export { IBanner } from "./components/feedback/bds-banner/types/IBanner";
|
|
34
42
|
export { IButton } from "./components/actions/bds-button/types/IButton";
|
|
43
|
+
export { IButtonGroup } from "./components/actions/bds-button-group/types/IButtonGroup";
|
|
35
44
|
export { CheckboxChangeDetail } from "./components/forms/bds-checkbox/types/ICheckbox";
|
|
45
|
+
export { ICheckboxCard } from "./components/forms/bds-checkbox-card/types/ICheckboxCard";
|
|
36
46
|
export { IDialog } from "./components/overlays/bds-dialog/types";
|
|
37
|
-
export { IDivider } from "./components/helpers/types/IDivider";
|
|
47
|
+
export { IDivider } from "./components/helpers/bds-divider/types/IDivider";
|
|
38
48
|
export { IFlag } from "./components/forms/bds-flag/interfaces/IFlag";
|
|
39
49
|
export { IGrid } from "./components/layouts/bds-grid/grid/types";
|
|
40
50
|
export { IGridItem } from "./components/layouts/bds-grid/grid-item/types";
|
|
51
|
+
export { IListMenu, ListMenuChangeDetail } from "./components/actions/bds-list-menu/bds-list-menu/types/IListMenu";
|
|
41
52
|
export { IListMenuItem, IListMenuItemEvent } from "./components/actions/bds-list-menu/bds-list-menu-item/types/IListMenuItem";
|
|
42
53
|
export { IPopover } from "./components/overlays/bds-popover/types/IPopover";
|
|
54
|
+
export { RadioChangeDetail } from "./components/forms/bds-radio/types/IRadio";
|
|
55
|
+
export { RadioButtonChangeDetail } from "./components/forms/bds-radio-button/types/IRadioButton";
|
|
56
|
+
export { IRadioCard, RadioCardChangeDetail } from "./components/forms/bds-radio-card/types/IRadioCard";
|
|
57
|
+
export { IFormValidator, Orientation } from "./types/index";
|
|
58
|
+
export { RadioGroupType } from "./components/forms/bds-radio-group/types/types";
|
|
59
|
+
export { RadioGroupChangeDetail } from "./components/forms/bds-radio-group/types/IRadioGroup";
|
|
43
60
|
export { ISpinner } from "./components/feedback/bds-spinner/types/ISpinner";
|
|
44
61
|
export { IStatus } from "./components/feedback/bds-status/types/IStatus";
|
|
45
62
|
export { ITag, TagEventPayload } from "./components/feedback/bds-tag/types";
|
|
46
|
-
export { IFormValidator } from "./types/index";
|
|
47
63
|
export { TextFieldType, TextFieldValidationTiming, TextFieldVariant } from "./components/forms/bds-text-field/types";
|
|
48
64
|
export { Event } from "./stencil-public-runtime";
|
|
49
65
|
export { IToggle } from "./components/actions/bds-toggle/types";
|
|
@@ -154,7 +170,7 @@ export namespace Components {
|
|
|
154
170
|
* @attr {string} type - The type of the button, which can be 'button', 'submit', or 'reset'. Default is 'button'.
|
|
155
171
|
* @attr {string} color - The color theme of the button, which can be 'default', 'primary', 'success', or 'error'. Default is 'default'.
|
|
156
172
|
* @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 '
|
|
173
|
+
* @attr {string} size - The size of the button, which can be 'sm', 'md', or 'lg'. Default is 'md'.
|
|
158
174
|
* @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
175
|
* @attr {boolean} disclosure - Indicates if the button should show a chevron down at the end of the content.
|
|
160
176
|
* @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 +179,13 @@ export namespace Components {
|
|
|
163
179
|
* @property {string} type - The type of the button, which can be 'button', 'submit', or 'reset'. Default is 'button'.
|
|
164
180
|
* @property {string} color - The color theme of the button, which can be 'default', 'primary', 'success', or 'error'. Default is 'default'.
|
|
165
181
|
* @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 '
|
|
182
|
+
* @property {string} size - The size of the button, which can be 'sm', 'md', or 'lg'. Default is 'md'.
|
|
167
183
|
* @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
184
|
* @property {boolean} disclosure - Indicates if the button should show a chevron down at the end of the content.
|
|
169
185
|
* @default 'button' - Default type value
|
|
170
186
|
* @default 'default' - Default color value
|
|
171
187
|
* @default 'default' - Default variant value
|
|
172
|
-
* @default '
|
|
188
|
+
* @default 'md' - Default size value
|
|
173
189
|
* @default 'default' - Default status value
|
|
174
190
|
* @default false - Default disabled value
|
|
175
191
|
* @default '' - Default label value
|
|
@@ -209,7 +225,7 @@ export namespace Components {
|
|
|
209
225
|
*/
|
|
210
226
|
"name": IButton['name'];
|
|
211
227
|
/**
|
|
212
|
-
* size is a string attribute. The size of the button, which can be '
|
|
228
|
+
* size is a string attribute. The size of the button, which can be 'sm', 'md', or 'lg'. Default is 'md'.
|
|
213
229
|
* @default BUTTON_SIZES.MEDIUM
|
|
214
230
|
*/
|
|
215
231
|
"size": IButton['size'];
|
|
@@ -224,6 +240,36 @@ export namespace Components {
|
|
|
224
240
|
*/
|
|
225
241
|
"variant": IButton['variant'];
|
|
226
242
|
}
|
|
243
|
+
/**
|
|
244
|
+
* Button group component for grouping related buttons together in a unified visual unit.
|
|
245
|
+
*/
|
|
246
|
+
interface BdsButtonGroup {
|
|
247
|
+
/**
|
|
248
|
+
* Controls the color applied to all child `<bds-button>` elements. Accepted values: see `CoreColors`. Default is `default`.
|
|
249
|
+
* @default CORE_COLORS.DEFAULT
|
|
250
|
+
*/
|
|
251
|
+
"color": IButtonGroup['color'];
|
|
252
|
+
/**
|
|
253
|
+
* Provides an accessible label for the button group.
|
|
254
|
+
* @default 'Button group'
|
|
255
|
+
*/
|
|
256
|
+
"label": IButtonGroup['label'];
|
|
257
|
+
/**
|
|
258
|
+
* Controls the layout direction of the grouped buttons. Accepted values: `'horizontal'`, `'vertical'`. Default is `'horizontal'`.
|
|
259
|
+
* @default ORIENTATIONS.HORIZONTAL
|
|
260
|
+
*/
|
|
261
|
+
"orientation": IButtonGroup['orientation'];
|
|
262
|
+
/**
|
|
263
|
+
* Controls the size applied to all child `<bds-button>` elements. Accepted values: `'sm'`, `'md'`, `'lg'`. Default is `'md'`.
|
|
264
|
+
* @default BUTTON_SIZES.MEDIUM
|
|
265
|
+
*/
|
|
266
|
+
"size": IButtonGroup['size'];
|
|
267
|
+
/**
|
|
268
|
+
* Controls the variant applied to all child `<bds-button>` elements. Accepted values: `'default'`, `'outline'`, `'plain'`. Default is `'default'`.
|
|
269
|
+
* @default BUTTON_VARIANTS.DEFAULT
|
|
270
|
+
*/
|
|
271
|
+
"variant": IButtonGroup['variant'];
|
|
272
|
+
}
|
|
227
273
|
/**
|
|
228
274
|
* Checkbox component for boolean selection with three visual states.
|
|
229
275
|
* @summary A checkbox form control with default, selected, and indeterminate states.
|
|
@@ -276,6 +322,63 @@ export namespace Components {
|
|
|
276
322
|
*/
|
|
277
323
|
"value": string;
|
|
278
324
|
}
|
|
325
|
+
/**
|
|
326
|
+
* Checkbox card component is a selectable card-based checkbox option.
|
|
327
|
+
* It presents a non-exclusive choice with optional descriptive text and icon,
|
|
328
|
+
* supporting checked, indeterminate, disabled, and error states.
|
|
329
|
+
* Can be used standalone or within a checkbox group for orchestration.
|
|
330
|
+
* @property {string} name - Name of the form control, submitted as a key in the form data.
|
|
331
|
+
* @property {boolean} disabled - Disables the control. Defaults to `false`.
|
|
332
|
+
* @property {boolean} required - Marks the control as required for form submission. Defaults to `false`.
|
|
333
|
+
* @property {string} value - Value submitted with the form data when checked. Defaults to `"on"`.
|
|
334
|
+
* @property {string} label - Label displayed next to the checkbox. If not provided, the default slot is used.
|
|
335
|
+
* @property {boolean} checked - Whether the checkbox card is selected. Defaults to `false`.
|
|
336
|
+
* @property {boolean} indeterminate - Whether the checkbox card shows an indeterminate ("mixed") visual state. Defaults to `false`.
|
|
337
|
+
* @property {boolean} error - Whether the checkbox card is in an error state. Defaults to `false`.
|
|
338
|
+
* @fires valueChange - Emitted when the checked state changes (for 2-way binding / v-model). Payload: `boolean`.
|
|
339
|
+
* @fires bdsChange - Emitted when the user toggles the checkbox card. Payload: `{ checked: boolean, value: string }`.
|
|
340
|
+
*/
|
|
341
|
+
interface BdsCheckboxCard {
|
|
342
|
+
/**
|
|
343
|
+
* Whether this checkbox card is selected.
|
|
344
|
+
* @default false
|
|
345
|
+
*/
|
|
346
|
+
"checked": ICheckboxCard['checked'];
|
|
347
|
+
/**
|
|
348
|
+
* Disables the control.
|
|
349
|
+
* @default false
|
|
350
|
+
*/
|
|
351
|
+
"disabled": ICheckboxCard['disabled'];
|
|
352
|
+
/**
|
|
353
|
+
* Whether the checkbox card is in an error state.
|
|
354
|
+
* @default false
|
|
355
|
+
*/
|
|
356
|
+
"error": ICheckboxCard['error'];
|
|
357
|
+
/**
|
|
358
|
+
* Whether the checkbox card shows an indeterminate visual state.
|
|
359
|
+
* @default false
|
|
360
|
+
*/
|
|
361
|
+
"indeterminate": ICheckboxCard['indeterminate'];
|
|
362
|
+
/**
|
|
363
|
+
* Label text displayed next to the checkbox indicator. Falls back to the default slot when empty.
|
|
364
|
+
* @default ''
|
|
365
|
+
*/
|
|
366
|
+
"label": ICheckboxCard['label'];
|
|
367
|
+
/**
|
|
368
|
+
* Name of the form control, submitted as a key in the form data.
|
|
369
|
+
*/
|
|
370
|
+
"name": ICheckboxCard['name'];
|
|
371
|
+
/**
|
|
372
|
+
* Marks the control as required for form submission.
|
|
373
|
+
* @default false
|
|
374
|
+
*/
|
|
375
|
+
"required": ICheckboxCard['required'];
|
|
376
|
+
/**
|
|
377
|
+
* Value submitted with the form when this checkbox is selected.
|
|
378
|
+
* @default 'on'
|
|
379
|
+
*/
|
|
380
|
+
"value": ICheckboxCard['value'];
|
|
381
|
+
}
|
|
279
382
|
/**
|
|
280
383
|
* Modal dialog component for displaying content in an overlay.
|
|
281
384
|
* @summary Modal overlay for alerts, forms, and confirmations with customizable layout and behavior.
|
|
@@ -522,15 +625,10 @@ export namespace Components {
|
|
|
522
625
|
* Container component that manages a list of menu items.
|
|
523
626
|
* It handles selection logic (single/multiple) and maintains the data state.
|
|
524
627
|
* @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).
|
|
628
|
+
* @fires bdsChange - Emitted when the selection changes, providing the current selected value(s).
|
|
629
|
+
* @fires bdsSelect - Emmited when item is selected in menu-role="menu" is clicked
|
|
530
630
|
* @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
631
|
* @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
632
|
*/
|
|
535
633
|
interface BdsListMenu {
|
|
536
634
|
/**
|
|
@@ -541,14 +639,19 @@ export namespace Components {
|
|
|
541
639
|
"getSelectedValues": () => Promise<string | string[]>;
|
|
542
640
|
/**
|
|
543
641
|
* Defines the ARIA role of the menu. Can be 'menu' or 'listbox'. Default is 'menu'.
|
|
544
|
-
* @default
|
|
642
|
+
* @default MENU_ROLES.MENU
|
|
545
643
|
*/
|
|
546
|
-
"menuRole": '
|
|
644
|
+
"menuRole": IListMenu['menuRole'];
|
|
547
645
|
/**
|
|
548
|
-
*
|
|
646
|
+
* Determines if the menu items have selectall/deselectall controls
|
|
549
647
|
* @default false
|
|
550
648
|
*/
|
|
551
|
-
"
|
|
649
|
+
"selectControls": IListMenu['selectControls'];
|
|
650
|
+
/**
|
|
651
|
+
* The selection mode of the menu. Can be 'SINGLE' or 'MULTIPLE'. Default is 'SINGLE'.
|
|
652
|
+
* @default LIST_MENU_SELECTION_MODE.SINGLE
|
|
653
|
+
*/
|
|
654
|
+
"selectionMode": IListMenu['selectionMode'];
|
|
552
655
|
/**
|
|
553
656
|
* Sets the selected values programmatically. Useful for initializing the menu from an external data source or form reset.
|
|
554
657
|
* @method setSelectedValues
|
|
@@ -596,6 +699,11 @@ export namespace Components {
|
|
|
596
699
|
* @default false
|
|
597
700
|
*/
|
|
598
701
|
"activeItem": IListMenuItem['activeItem'];
|
|
702
|
+
/**
|
|
703
|
+
* Checkable state item, if is activated should be visible a checkbox
|
|
704
|
+
* @default false
|
|
705
|
+
*/
|
|
706
|
+
"checkable": IListMenuItem['checkable'];
|
|
599
707
|
/**
|
|
600
708
|
* Disabled state item
|
|
601
709
|
* @default false
|
|
@@ -682,6 +790,202 @@ export namespace Components {
|
|
|
682
790
|
*/
|
|
683
791
|
"width"?: IPopover['width'];
|
|
684
792
|
}
|
|
793
|
+
/**
|
|
794
|
+
* Radio button component for single-selection within a group.
|
|
795
|
+
* Use inside `bds-radio-group` for managed selection and form binding.
|
|
796
|
+
* Can also be used standalone with the `name`, `value`, and `checked` props.
|
|
797
|
+
*/
|
|
798
|
+
interface BdsRadio {
|
|
799
|
+
/**
|
|
800
|
+
* Whether this radio is selected. Managed by bds-radio-group; can be set directly when used standalone.
|
|
801
|
+
* @default false
|
|
802
|
+
*/
|
|
803
|
+
"checked": boolean;
|
|
804
|
+
/**
|
|
805
|
+
* Disables the radio, preventing interaction and selection.
|
|
806
|
+
* @default false
|
|
807
|
+
*/
|
|
808
|
+
"disabled": boolean;
|
|
809
|
+
/**
|
|
810
|
+
* Shows error styling on the radio indicator. Propagated by bds-radio-group.
|
|
811
|
+
* @default false
|
|
812
|
+
*/
|
|
813
|
+
"error": boolean;
|
|
814
|
+
/**
|
|
815
|
+
* Tooltip text shown on an info icon next to the label.
|
|
816
|
+
* @default ''
|
|
817
|
+
*/
|
|
818
|
+
"info": string;
|
|
819
|
+
/**
|
|
820
|
+
* Label text displayed next to the radio indicator. Falls back to the default slot when empty.
|
|
821
|
+
* @default ''
|
|
822
|
+
*/
|
|
823
|
+
"label": string;
|
|
824
|
+
/**
|
|
825
|
+
* Name attribute stamped by the parent bds-radio-group via setAttribute. Set directly when used standalone.
|
|
826
|
+
* @default ''
|
|
827
|
+
*/
|
|
828
|
+
"name": string;
|
|
829
|
+
/**
|
|
830
|
+
* Value submitted with the form when this radio is selected.
|
|
831
|
+
* @default 'on'
|
|
832
|
+
*/
|
|
833
|
+
"value": string;
|
|
834
|
+
}
|
|
835
|
+
/**
|
|
836
|
+
* Button-shaped radio option for use inside `bds-radio-group[type="radiobutton"]`.
|
|
837
|
+
* Creates a segmented control appearance when grouped. Not form-associated — the parent
|
|
838
|
+
* `bds-radio-group` owns form state and single-selection enforcement.
|
|
839
|
+
*/
|
|
840
|
+
interface BdsRadioButton {
|
|
841
|
+
/**
|
|
842
|
+
* Whether this button is selected. Managed by bds-radio-group; can be set directly when used standalone.
|
|
843
|
+
* @default false
|
|
844
|
+
*/
|
|
845
|
+
"checked": boolean;
|
|
846
|
+
/**
|
|
847
|
+
* Disables the button, preventing interaction and selection.
|
|
848
|
+
* @default false
|
|
849
|
+
*/
|
|
850
|
+
"disabled": boolean;
|
|
851
|
+
/**
|
|
852
|
+
* Shows error styling on the button. Propagated by bds-radio-group.
|
|
853
|
+
* @default false
|
|
854
|
+
*/
|
|
855
|
+
"error": boolean;
|
|
856
|
+
/**
|
|
857
|
+
* Tooltip text shown on an info icon next to the label.
|
|
858
|
+
* @default ''
|
|
859
|
+
*/
|
|
860
|
+
"info": string;
|
|
861
|
+
/**
|
|
862
|
+
* Label text displayed inside the button. Falls back to the default slot when empty.
|
|
863
|
+
* @default ''
|
|
864
|
+
*/
|
|
865
|
+
"label": string;
|
|
866
|
+
/**
|
|
867
|
+
* Name attribute stamped by the parent bds-radio-group via setAttribute. Set directly when used standalone.
|
|
868
|
+
* @default ''
|
|
869
|
+
*/
|
|
870
|
+
"name": string;
|
|
871
|
+
/**
|
|
872
|
+
* Value submitted with the form when this button is selected.
|
|
873
|
+
* @default 'on'
|
|
874
|
+
*/
|
|
875
|
+
"value": string;
|
|
876
|
+
}
|
|
877
|
+
/**
|
|
878
|
+
* Radio card component is a selectable card-based radio option.
|
|
879
|
+
* It presents a mutually exclusive choice with optional descriptive text and icon,
|
|
880
|
+
* designed for integration with bds-radio-group for orchestration.
|
|
881
|
+
* Can also be used standalone with the `name`, `value`, and `checked` props.
|
|
882
|
+
* @fires bdsChange - Emitted when the user selects this radio card. Listened to by the parent bds-radio-group to enforce single selection.
|
|
883
|
+
*/
|
|
884
|
+
interface BdsRadioCard {
|
|
885
|
+
/**
|
|
886
|
+
* Whether this radio card is selected. Managed by bds-radio-group; can be set directly when used standalone.
|
|
887
|
+
* @default false
|
|
888
|
+
*/
|
|
889
|
+
"checked": IRadioCard['checked'];
|
|
890
|
+
/**
|
|
891
|
+
* Disables the radio card, preventing it from being selected and interacted with.
|
|
892
|
+
* @default false
|
|
893
|
+
*/
|
|
894
|
+
"disabled": IRadioCard['disabled'];
|
|
895
|
+
/**
|
|
896
|
+
* Whether the radio card is in an error state.
|
|
897
|
+
* @default false
|
|
898
|
+
*/
|
|
899
|
+
"error": IRadioCard['error'];
|
|
900
|
+
/**
|
|
901
|
+
* Tooltip content attached to the radio card content. If empty, the info icon will not be rendered.
|
|
902
|
+
* @default ''
|
|
903
|
+
*/
|
|
904
|
+
"info": IRadioCard['info'];
|
|
905
|
+
/**
|
|
906
|
+
* Label text displayed next to the radio indicator. Falls back to the default slot when empty.
|
|
907
|
+
* @default ''
|
|
908
|
+
*/
|
|
909
|
+
"label": IRadioCard['label'];
|
|
910
|
+
/**
|
|
911
|
+
* Name attribute stamped by the parent bds-radio-group. Set directly when used standalone.
|
|
912
|
+
* @default ''
|
|
913
|
+
*/
|
|
914
|
+
"name": IRadioCard['name'];
|
|
915
|
+
/**
|
|
916
|
+
* Value submitted with the form when this radio is selected.
|
|
917
|
+
* @default 'on'
|
|
918
|
+
*/
|
|
919
|
+
"value": IRadioCard['value'];
|
|
920
|
+
}
|
|
921
|
+
/**
|
|
922
|
+
* Radio group component that orchestrates single-selection across a set of `bds-radio` children.
|
|
923
|
+
*/
|
|
924
|
+
interface BdsRadioGroup {
|
|
925
|
+
/**
|
|
926
|
+
* Returns whether the group's current value satisfies the browser's built-in constraint validation.
|
|
927
|
+
*/
|
|
928
|
+
"checkValidity": () => Promise<boolean>;
|
|
929
|
+
/**
|
|
930
|
+
* Disables all child radios and prevents selection. Also mirrored to isDisabled
|
|
931
|
+
* @State for form-level disable support.
|
|
932
|
+
* @default false
|
|
933
|
+
*/
|
|
934
|
+
"disabled": false;
|
|
935
|
+
/**
|
|
936
|
+
* Shows error styling on the group helper text. Propagated to all child radios.
|
|
937
|
+
* @default false
|
|
938
|
+
*/
|
|
939
|
+
"error": false;
|
|
940
|
+
/**
|
|
941
|
+
* Error message rendered below the radio options when error is true. Replaces helperText.
|
|
942
|
+
* @default ''
|
|
943
|
+
*/
|
|
944
|
+
"errorMessage": "";
|
|
945
|
+
/**
|
|
946
|
+
* Helper text rendered below the radio options. Shown in default state; replaced by errorMessage in error state.
|
|
947
|
+
* @default ''
|
|
948
|
+
*/
|
|
949
|
+
"helperText": "";
|
|
950
|
+
/**
|
|
951
|
+
* Tooltip text shown on the group label info icon.
|
|
952
|
+
* @default ''
|
|
953
|
+
*/
|
|
954
|
+
"info": "";
|
|
955
|
+
/**
|
|
956
|
+
* Group label rendered above the radio options.
|
|
957
|
+
* @default ''
|
|
958
|
+
*/
|
|
959
|
+
"label": "";
|
|
960
|
+
/**
|
|
961
|
+
* Name of the form control; submitted as the field key in FormData.
|
|
962
|
+
*/
|
|
963
|
+
"name": string;
|
|
964
|
+
/**
|
|
965
|
+
* Layout direction of the radio options.
|
|
966
|
+
* @default ORIENTATIONS.VERTICAL
|
|
967
|
+
*/
|
|
968
|
+
"orientation": Orientation;
|
|
969
|
+
/**
|
|
970
|
+
* Reports the group's validity state to the user, showing native validation UI if invalid.
|
|
971
|
+
*/
|
|
972
|
+
"reportValidity": () => Promise<boolean>;
|
|
973
|
+
/**
|
|
974
|
+
* Marks the group as required for form submission. Triggers validity error when no radio is selected.
|
|
975
|
+
* @default false
|
|
976
|
+
*/
|
|
977
|
+
"required": false;
|
|
978
|
+
/**
|
|
979
|
+
* Identifies this group variant. 'radio' renders circular bds-radio children; 'radiobutton' renders bds-radio-button segmented control; 'radiocard' renders bds-radio-card element.
|
|
980
|
+
* @default RADIO_GROUP_TYPES.RADIO
|
|
981
|
+
*/
|
|
982
|
+
"type": RadioGroupType;
|
|
983
|
+
/**
|
|
984
|
+
* Currently selected radio value. Synced to children on change.
|
|
985
|
+
* @default ''
|
|
986
|
+
*/
|
|
987
|
+
"value": string;
|
|
988
|
+
}
|
|
685
989
|
/**
|
|
686
990
|
* Spinner component used to indicate a loading or processing state.
|
|
687
991
|
* @summary Displays an animated circular spinner to communicate that content is loading.
|
|
@@ -1172,6 +1476,10 @@ export interface BdsCheckboxCustomEvent<T> extends CustomEvent<T> {
|
|
|
1172
1476
|
detail: T;
|
|
1173
1477
|
target: HTMLBdsCheckboxElement;
|
|
1174
1478
|
}
|
|
1479
|
+
export interface BdsCheckboxCardCustomEvent<T> extends CustomEvent<T> {
|
|
1480
|
+
detail: T;
|
|
1481
|
+
target: HTMLBdsCheckboxCardElement;
|
|
1482
|
+
}
|
|
1175
1483
|
export interface BdsDialogCustomEvent<T> extends CustomEvent<T> {
|
|
1176
1484
|
detail: T;
|
|
1177
1485
|
target: HTMLBdsDialogElement;
|
|
@@ -1184,6 +1492,22 @@ export interface BdsListMenuItemCustomEvent<T> extends CustomEvent<T> {
|
|
|
1184
1492
|
detail: T;
|
|
1185
1493
|
target: HTMLBdsListMenuItemElement;
|
|
1186
1494
|
}
|
|
1495
|
+
export interface BdsRadioCustomEvent<T> extends CustomEvent<T> {
|
|
1496
|
+
detail: T;
|
|
1497
|
+
target: HTMLBdsRadioElement;
|
|
1498
|
+
}
|
|
1499
|
+
export interface BdsRadioButtonCustomEvent<T> extends CustomEvent<T> {
|
|
1500
|
+
detail: T;
|
|
1501
|
+
target: HTMLBdsRadioButtonElement;
|
|
1502
|
+
}
|
|
1503
|
+
export interface BdsRadioCardCustomEvent<T> extends CustomEvent<T> {
|
|
1504
|
+
detail: T;
|
|
1505
|
+
target: HTMLBdsRadioCardElement;
|
|
1506
|
+
}
|
|
1507
|
+
export interface BdsRadioGroupCustomEvent<T> extends CustomEvent<T> {
|
|
1508
|
+
detail: T;
|
|
1509
|
+
target: HTMLBdsRadioGroupElement;
|
|
1510
|
+
}
|
|
1187
1511
|
export interface BdsTagCustomEvent<T> extends CustomEvent<T> {
|
|
1188
1512
|
detail: T;
|
|
1189
1513
|
target: HTMLBdsTagElement;
|
|
@@ -1272,7 +1596,7 @@ declare global {
|
|
|
1272
1596
|
* @attr {string} type - The type of the button, which can be 'button', 'submit', or 'reset'. Default is 'button'.
|
|
1273
1597
|
* @attr {string} color - The color theme of the button, which can be 'default', 'primary', 'success', or 'error'. Default is 'default'.
|
|
1274
1598
|
* @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 '
|
|
1599
|
+
* @attr {string} size - The size of the button, which can be 'sm', 'md', or 'lg'. Default is 'md'.
|
|
1276
1600
|
* @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
1601
|
* @attr {boolean} disclosure - Indicates if the button should show a chevron down at the end of the content.
|
|
1278
1602
|
* @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 +1605,13 @@ declare global {
|
|
|
1281
1605
|
* @property {string} type - The type of the button, which can be 'button', 'submit', or 'reset'. Default is 'button'.
|
|
1282
1606
|
* @property {string} color - The color theme of the button, which can be 'default', 'primary', 'success', or 'error'. Default is 'default'.
|
|
1283
1607
|
* @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 '
|
|
1608
|
+
* @property {string} size - The size of the button, which can be 'sm', 'md', or 'lg'. Default is 'md'.
|
|
1285
1609
|
* @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
1610
|
* @property {boolean} disclosure - Indicates if the button should show a chevron down at the end of the content.
|
|
1287
1611
|
* @default 'button' - Default type value
|
|
1288
1612
|
* @default 'default' - Default color value
|
|
1289
1613
|
* @default 'default' - Default variant value
|
|
1290
|
-
* @default '
|
|
1614
|
+
* @default 'md' - Default size value
|
|
1291
1615
|
* @default 'default' - Default status value
|
|
1292
1616
|
* @default false - Default disabled value
|
|
1293
1617
|
* @default '' - Default label value
|
|
@@ -1309,6 +1633,15 @@ declare global {
|
|
|
1309
1633
|
prototype: HTMLBdsButtonElement;
|
|
1310
1634
|
new (): HTMLBdsButtonElement;
|
|
1311
1635
|
};
|
|
1636
|
+
/**
|
|
1637
|
+
* Button group component for grouping related buttons together in a unified visual unit.
|
|
1638
|
+
*/
|
|
1639
|
+
interface HTMLBdsButtonGroupElement extends Components.BdsButtonGroup, HTMLStencilElement {
|
|
1640
|
+
}
|
|
1641
|
+
var HTMLBdsButtonGroupElement: {
|
|
1642
|
+
prototype: HTMLBdsButtonGroupElement;
|
|
1643
|
+
new (): HTMLBdsButtonGroupElement;
|
|
1644
|
+
};
|
|
1312
1645
|
interface HTMLBdsCheckboxElementEventMap {
|
|
1313
1646
|
"valueChange": boolean;
|
|
1314
1647
|
"bdsChange": CheckboxChangeDetail;
|
|
@@ -1338,6 +1671,40 @@ declare global {
|
|
|
1338
1671
|
prototype: HTMLBdsCheckboxElement;
|
|
1339
1672
|
new (): HTMLBdsCheckboxElement;
|
|
1340
1673
|
};
|
|
1674
|
+
interface HTMLBdsCheckboxCardElementEventMap {
|
|
1675
|
+
"valueChange": any;
|
|
1676
|
+
"bdsChange": any;
|
|
1677
|
+
}
|
|
1678
|
+
/**
|
|
1679
|
+
* Checkbox card component is a selectable card-based checkbox option.
|
|
1680
|
+
* It presents a non-exclusive choice with optional descriptive text and icon,
|
|
1681
|
+
* supporting checked, indeterminate, disabled, and error states.
|
|
1682
|
+
* Can be used standalone or within a checkbox group for orchestration.
|
|
1683
|
+
* @property {string} name - Name of the form control, submitted as a key in the form data.
|
|
1684
|
+
* @property {boolean} disabled - Disables the control. Defaults to `false`.
|
|
1685
|
+
* @property {boolean} required - Marks the control as required for form submission. Defaults to `false`.
|
|
1686
|
+
* @property {string} value - Value submitted with the form data when checked. Defaults to `"on"`.
|
|
1687
|
+
* @property {string} label - Label displayed next to the checkbox. If not provided, the default slot is used.
|
|
1688
|
+
* @property {boolean} checked - Whether the checkbox card is selected. Defaults to `false`.
|
|
1689
|
+
* @property {boolean} indeterminate - Whether the checkbox card shows an indeterminate ("mixed") visual state. Defaults to `false`.
|
|
1690
|
+
* @property {boolean} error - Whether the checkbox card is in an error state. Defaults to `false`.
|
|
1691
|
+
* @fires valueChange - Emitted when the checked state changes (for 2-way binding / v-model). Payload: `boolean`.
|
|
1692
|
+
* @fires bdsChange - Emitted when the user toggles the checkbox card. Payload: `{ checked: boolean, value: string }`.
|
|
1693
|
+
*/
|
|
1694
|
+
interface HTMLBdsCheckboxCardElement extends Components.BdsCheckboxCard, HTMLStencilElement {
|
|
1695
|
+
addEventListener<K extends keyof HTMLBdsCheckboxCardElementEventMap>(type: K, listener: (this: HTMLBdsCheckboxCardElement, ev: BdsCheckboxCardCustomEvent<HTMLBdsCheckboxCardElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1696
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1697
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1698
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1699
|
+
removeEventListener<K extends keyof HTMLBdsCheckboxCardElementEventMap>(type: K, listener: (this: HTMLBdsCheckboxCardElement, ev: BdsCheckboxCardCustomEvent<HTMLBdsCheckboxCardElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1700
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1701
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1702
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1703
|
+
}
|
|
1704
|
+
var HTMLBdsCheckboxCardElement: {
|
|
1705
|
+
prototype: HTMLBdsCheckboxCardElement;
|
|
1706
|
+
new (): HTMLBdsCheckboxCardElement;
|
|
1707
|
+
};
|
|
1341
1708
|
interface HTMLBdsDialogElementEventMap {
|
|
1342
1709
|
"bdsOpen": void;
|
|
1343
1710
|
"bdsClose": void;
|
|
@@ -1454,21 +1821,16 @@ declare global {
|
|
|
1454
1821
|
};
|
|
1455
1822
|
interface HTMLBdsListMenuElementEventMap {
|
|
1456
1823
|
"bdsChange": string | string[];
|
|
1457
|
-
"
|
|
1824
|
+
"bdsSelect": ListMenuChangeDetail;
|
|
1458
1825
|
}
|
|
1459
1826
|
/**
|
|
1460
1827
|
* Container component that manages a list of menu items.
|
|
1461
1828
|
* It handles selection logic (single/multiple) and maintains the data state.
|
|
1462
1829
|
* @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).
|
|
1830
|
+
* @fires bdsChange - Emitted when the selection changes, providing the current selected value(s).
|
|
1831
|
+
* @fires bdsSelect - Emmited when item is selected in menu-role="menu" is clicked
|
|
1468
1832
|
* @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
1833
|
* @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
1834
|
*/
|
|
1473
1835
|
interface HTMLBdsListMenuElement extends Components.BdsListMenu, HTMLStencilElement {
|
|
1474
1836
|
addEventListener<K extends keyof HTMLBdsListMenuElementEventMap>(type: K, listener: (this: HTMLBdsListMenuElement, ev: BdsListMenuCustomEvent<HTMLBdsListMenuElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -1485,7 +1847,7 @@ declare global {
|
|
|
1485
1847
|
new (): HTMLBdsListMenuElement;
|
|
1486
1848
|
};
|
|
1487
1849
|
interface HTMLBdsListMenuItemElementEventMap {
|
|
1488
|
-
"
|
|
1850
|
+
"bdsSelectItem": IListMenuItemEvent;
|
|
1489
1851
|
}
|
|
1490
1852
|
/**
|
|
1491
1853
|
* Component representing an individual item within a list menu for navigations and selection.
|
|
@@ -1554,6 +1916,95 @@ declare global {
|
|
|
1554
1916
|
prototype: HTMLBdsPopoverElement;
|
|
1555
1917
|
new (): HTMLBdsPopoverElement;
|
|
1556
1918
|
};
|
|
1919
|
+
interface HTMLBdsRadioElementEventMap {
|
|
1920
|
+
"bdsChange": RadioChangeDetail;
|
|
1921
|
+
}
|
|
1922
|
+
/**
|
|
1923
|
+
* Radio button component for single-selection within a group.
|
|
1924
|
+
* Use inside `bds-radio-group` for managed selection and form binding.
|
|
1925
|
+
* Can also be used standalone with the `name`, `value`, and `checked` props.
|
|
1926
|
+
*/
|
|
1927
|
+
interface HTMLBdsRadioElement extends Components.BdsRadio, HTMLStencilElement {
|
|
1928
|
+
addEventListener<K extends keyof HTMLBdsRadioElementEventMap>(type: K, listener: (this: HTMLBdsRadioElement, ev: BdsRadioCustomEvent<HTMLBdsRadioElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1929
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1930
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1931
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1932
|
+
removeEventListener<K extends keyof HTMLBdsRadioElementEventMap>(type: K, listener: (this: HTMLBdsRadioElement, ev: BdsRadioCustomEvent<HTMLBdsRadioElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1933
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1934
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1935
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1936
|
+
}
|
|
1937
|
+
var HTMLBdsRadioElement: {
|
|
1938
|
+
prototype: HTMLBdsRadioElement;
|
|
1939
|
+
new (): HTMLBdsRadioElement;
|
|
1940
|
+
};
|
|
1941
|
+
interface HTMLBdsRadioButtonElementEventMap {
|
|
1942
|
+
"bdsChange": RadioButtonChangeDetail;
|
|
1943
|
+
}
|
|
1944
|
+
/**
|
|
1945
|
+
* Button-shaped radio option for use inside `bds-radio-group[type="radiobutton"]`.
|
|
1946
|
+
* Creates a segmented control appearance when grouped. Not form-associated — the parent
|
|
1947
|
+
* `bds-radio-group` owns form state and single-selection enforcement.
|
|
1948
|
+
*/
|
|
1949
|
+
interface HTMLBdsRadioButtonElement extends Components.BdsRadioButton, HTMLStencilElement {
|
|
1950
|
+
addEventListener<K extends keyof HTMLBdsRadioButtonElementEventMap>(type: K, listener: (this: HTMLBdsRadioButtonElement, ev: BdsRadioButtonCustomEvent<HTMLBdsRadioButtonElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1951
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1952
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1953
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1954
|
+
removeEventListener<K extends keyof HTMLBdsRadioButtonElementEventMap>(type: K, listener: (this: HTMLBdsRadioButtonElement, ev: BdsRadioButtonCustomEvent<HTMLBdsRadioButtonElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1955
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1956
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1957
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1958
|
+
}
|
|
1959
|
+
var HTMLBdsRadioButtonElement: {
|
|
1960
|
+
prototype: HTMLBdsRadioButtonElement;
|
|
1961
|
+
new (): HTMLBdsRadioButtonElement;
|
|
1962
|
+
};
|
|
1963
|
+
interface HTMLBdsRadioCardElementEventMap {
|
|
1964
|
+
"bdsChange": RadioCardChangeDetail;
|
|
1965
|
+
}
|
|
1966
|
+
/**
|
|
1967
|
+
* Radio card component is a selectable card-based radio option.
|
|
1968
|
+
* It presents a mutually exclusive choice with optional descriptive text and icon,
|
|
1969
|
+
* designed for integration with bds-radio-group for orchestration.
|
|
1970
|
+
* Can also be used standalone with the `name`, `value`, and `checked` props.
|
|
1971
|
+
* @fires bdsChange - Emitted when the user selects this radio card. Listened to by the parent bds-radio-group to enforce single selection.
|
|
1972
|
+
*/
|
|
1973
|
+
interface HTMLBdsRadioCardElement extends Components.BdsRadioCard, HTMLStencilElement {
|
|
1974
|
+
addEventListener<K extends keyof HTMLBdsRadioCardElementEventMap>(type: K, listener: (this: HTMLBdsRadioCardElement, ev: BdsRadioCardCustomEvent<HTMLBdsRadioCardElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1975
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1976
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1977
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1978
|
+
removeEventListener<K extends keyof HTMLBdsRadioCardElementEventMap>(type: K, listener: (this: HTMLBdsRadioCardElement, ev: BdsRadioCardCustomEvent<HTMLBdsRadioCardElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1979
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1980
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1981
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1982
|
+
}
|
|
1983
|
+
var HTMLBdsRadioCardElement: {
|
|
1984
|
+
prototype: HTMLBdsRadioCardElement;
|
|
1985
|
+
new (): HTMLBdsRadioCardElement;
|
|
1986
|
+
};
|
|
1987
|
+
interface HTMLBdsRadioGroupElementEventMap {
|
|
1988
|
+
"bdsChange": RadioGroupChangeDetail;
|
|
1989
|
+
"valueChange": string;
|
|
1990
|
+
}
|
|
1991
|
+
/**
|
|
1992
|
+
* Radio group component that orchestrates single-selection across a set of `bds-radio` children.
|
|
1993
|
+
*/
|
|
1994
|
+
interface HTMLBdsRadioGroupElement extends Components.BdsRadioGroup, HTMLStencilElement {
|
|
1995
|
+
addEventListener<K extends keyof HTMLBdsRadioGroupElementEventMap>(type: K, listener: (this: HTMLBdsRadioGroupElement, ev: BdsRadioGroupCustomEvent<HTMLBdsRadioGroupElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1996
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1997
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1998
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1999
|
+
removeEventListener<K extends keyof HTMLBdsRadioGroupElementEventMap>(type: K, listener: (this: HTMLBdsRadioGroupElement, ev: BdsRadioGroupCustomEvent<HTMLBdsRadioGroupElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
2000
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2001
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2002
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2003
|
+
}
|
|
2004
|
+
var HTMLBdsRadioGroupElement: {
|
|
2005
|
+
prototype: HTMLBdsRadioGroupElement;
|
|
2006
|
+
new (): HTMLBdsRadioGroupElement;
|
|
2007
|
+
};
|
|
1557
2008
|
/**
|
|
1558
2009
|
* Spinner component used to indicate a loading or processing state.
|
|
1559
2010
|
* @summary Displays an animated circular spinner to communicate that content is loading.
|
|
@@ -1779,7 +2230,9 @@ declare global {
|
|
|
1779
2230
|
"bds-badge": HTMLBdsBadgeElement;
|
|
1780
2231
|
"bds-banner": HTMLBdsBannerElement;
|
|
1781
2232
|
"bds-button": HTMLBdsButtonElement;
|
|
2233
|
+
"bds-button-group": HTMLBdsButtonGroupElement;
|
|
1782
2234
|
"bds-checkbox": HTMLBdsCheckboxElement;
|
|
2235
|
+
"bds-checkbox-card": HTMLBdsCheckboxCardElement;
|
|
1783
2236
|
"bds-dialog": HTMLBdsDialogElement;
|
|
1784
2237
|
"bds-divider": HTMLBdsDividerElement;
|
|
1785
2238
|
"bds-flag": HTMLBdsFlagElement;
|
|
@@ -1788,6 +2241,10 @@ declare global {
|
|
|
1788
2241
|
"bds-list-menu": HTMLBdsListMenuElement;
|
|
1789
2242
|
"bds-list-menu-item": HTMLBdsListMenuItemElement;
|
|
1790
2243
|
"bds-popover": HTMLBdsPopoverElement;
|
|
2244
|
+
"bds-radio": HTMLBdsRadioElement;
|
|
2245
|
+
"bds-radio-button": HTMLBdsRadioButtonElement;
|
|
2246
|
+
"bds-radio-card": HTMLBdsRadioCardElement;
|
|
2247
|
+
"bds-radio-group": HTMLBdsRadioGroupElement;
|
|
1791
2248
|
"bds-spinner": HTMLBdsSpinnerElement;
|
|
1792
2249
|
"bds-status": HTMLBdsStatusElement;
|
|
1793
2250
|
"bds-tag": HTMLBdsTagElement;
|
|
@@ -1898,7 +2355,7 @@ declare namespace LocalJSX {
|
|
|
1898
2355
|
* @attr {string} type - The type of the button, which can be 'button', 'submit', or 'reset'. Default is 'button'.
|
|
1899
2356
|
* @attr {string} color - The color theme of the button, which can be 'default', 'primary', 'success', or 'error'. Default is 'default'.
|
|
1900
2357
|
* @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 '
|
|
2358
|
+
* @attr {string} size - The size of the button, which can be 'sm', 'md', or 'lg'. Default is 'md'.
|
|
1902
2359
|
* @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
2360
|
* @attr {boolean} disclosure - Indicates if the button should show a chevron down at the end of the content.
|
|
1904
2361
|
* @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 +2364,13 @@ declare namespace LocalJSX {
|
|
|
1907
2364
|
* @property {string} type - The type of the button, which can be 'button', 'submit', or 'reset'. Default is 'button'.
|
|
1908
2365
|
* @property {string} color - The color theme of the button, which can be 'default', 'primary', 'success', or 'error'. Default is 'default'.
|
|
1909
2366
|
* @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 '
|
|
2367
|
+
* @property {string} size - The size of the button, which can be 'sm', 'md', or 'lg'. Default is 'md'.
|
|
1911
2368
|
* @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
2369
|
* @property {boolean} disclosure - Indicates if the button should show a chevron down at the end of the content.
|
|
1913
2370
|
* @default 'button' - Default type value
|
|
1914
2371
|
* @default 'default' - Default color value
|
|
1915
2372
|
* @default 'default' - Default variant value
|
|
1916
|
-
* @default '
|
|
2373
|
+
* @default 'md' - Default size value
|
|
1917
2374
|
* @default 'default' - Default status value
|
|
1918
2375
|
* @default false - Default disabled value
|
|
1919
2376
|
* @default '' - Default label value
|
|
@@ -1961,7 +2418,7 @@ declare namespace LocalJSX {
|
|
|
1961
2418
|
*/
|
|
1962
2419
|
"onBdsClick"?: (event: BdsButtonCustomEvent<UIEvent>) => void;
|
|
1963
2420
|
/**
|
|
1964
|
-
* size is a string attribute. The size of the button, which can be '
|
|
2421
|
+
* size is a string attribute. The size of the button, which can be 'sm', 'md', or 'lg'. Default is 'md'.
|
|
1965
2422
|
* @default BUTTON_SIZES.MEDIUM
|
|
1966
2423
|
*/
|
|
1967
2424
|
"size"?: IButton['size'];
|
|
@@ -1976,6 +2433,36 @@ declare namespace LocalJSX {
|
|
|
1976
2433
|
*/
|
|
1977
2434
|
"variant"?: IButton['variant'];
|
|
1978
2435
|
}
|
|
2436
|
+
/**
|
|
2437
|
+
* Button group component for grouping related buttons together in a unified visual unit.
|
|
2438
|
+
*/
|
|
2439
|
+
interface BdsButtonGroup {
|
|
2440
|
+
/**
|
|
2441
|
+
* Controls the color applied to all child `<bds-button>` elements. Accepted values: see `CoreColors`. Default is `default`.
|
|
2442
|
+
* @default CORE_COLORS.DEFAULT
|
|
2443
|
+
*/
|
|
2444
|
+
"color"?: IButtonGroup['color'];
|
|
2445
|
+
/**
|
|
2446
|
+
* Provides an accessible label for the button group.
|
|
2447
|
+
* @default 'Button group'
|
|
2448
|
+
*/
|
|
2449
|
+
"label"?: IButtonGroup['label'];
|
|
2450
|
+
/**
|
|
2451
|
+
* Controls the layout direction of the grouped buttons. Accepted values: `'horizontal'`, `'vertical'`. Default is `'horizontal'`.
|
|
2452
|
+
* @default ORIENTATIONS.HORIZONTAL
|
|
2453
|
+
*/
|
|
2454
|
+
"orientation"?: IButtonGroup['orientation'];
|
|
2455
|
+
/**
|
|
2456
|
+
* Controls the size applied to all child `<bds-button>` elements. Accepted values: `'sm'`, `'md'`, `'lg'`. Default is `'md'`.
|
|
2457
|
+
* @default BUTTON_SIZES.MEDIUM
|
|
2458
|
+
*/
|
|
2459
|
+
"size"?: IButtonGroup['size'];
|
|
2460
|
+
/**
|
|
2461
|
+
* Controls the variant applied to all child `<bds-button>` elements. Accepted values: `'default'`, `'outline'`, `'plain'`. Default is `'default'`.
|
|
2462
|
+
* @default BUTTON_VARIANTS.DEFAULT
|
|
2463
|
+
*/
|
|
2464
|
+
"variant"?: IButtonGroup['variant'];
|
|
2465
|
+
}
|
|
1979
2466
|
/**
|
|
1980
2467
|
* Checkbox component for boolean selection with three visual states.
|
|
1981
2468
|
* @summary A checkbox form control with default, selected, and indeterminate states.
|
|
@@ -2040,6 +2527,75 @@ declare namespace LocalJSX {
|
|
|
2040
2527
|
*/
|
|
2041
2528
|
"value"?: string;
|
|
2042
2529
|
}
|
|
2530
|
+
/**
|
|
2531
|
+
* Checkbox card component is a selectable card-based checkbox option.
|
|
2532
|
+
* It presents a non-exclusive choice with optional descriptive text and icon,
|
|
2533
|
+
* supporting checked, indeterminate, disabled, and error states.
|
|
2534
|
+
* Can be used standalone or within a checkbox group for orchestration.
|
|
2535
|
+
* @property {string} name - Name of the form control, submitted as a key in the form data.
|
|
2536
|
+
* @property {boolean} disabled - Disables the control. Defaults to `false`.
|
|
2537
|
+
* @property {boolean} required - Marks the control as required for form submission. Defaults to `false`.
|
|
2538
|
+
* @property {string} value - Value submitted with the form data when checked. Defaults to `"on"`.
|
|
2539
|
+
* @property {string} label - Label displayed next to the checkbox. If not provided, the default slot is used.
|
|
2540
|
+
* @property {boolean} checked - Whether the checkbox card is selected. Defaults to `false`.
|
|
2541
|
+
* @property {boolean} indeterminate - Whether the checkbox card shows an indeterminate ("mixed") visual state. Defaults to `false`.
|
|
2542
|
+
* @property {boolean} error - Whether the checkbox card is in an error state. Defaults to `false`.
|
|
2543
|
+
* @fires valueChange - Emitted when the checked state changes (for 2-way binding / v-model). Payload: `boolean`.
|
|
2544
|
+
* @fires bdsChange - Emitted when the user toggles the checkbox card. Payload: `{ checked: boolean, value: string }`.
|
|
2545
|
+
*/
|
|
2546
|
+
interface BdsCheckboxCard {
|
|
2547
|
+
/**
|
|
2548
|
+
* Whether this checkbox card is selected.
|
|
2549
|
+
* @default false
|
|
2550
|
+
*/
|
|
2551
|
+
"checked"?: ICheckboxCard['checked'];
|
|
2552
|
+
/**
|
|
2553
|
+
* Disables the control.
|
|
2554
|
+
* @default false
|
|
2555
|
+
*/
|
|
2556
|
+
"disabled"?: ICheckboxCard['disabled'];
|
|
2557
|
+
/**
|
|
2558
|
+
* Whether the checkbox card is in an error state.
|
|
2559
|
+
* @default false
|
|
2560
|
+
*/
|
|
2561
|
+
"error"?: ICheckboxCard['error'];
|
|
2562
|
+
/**
|
|
2563
|
+
* The `id` of a `<form>` element to associate this element with.
|
|
2564
|
+
*/
|
|
2565
|
+
"form"?: string;
|
|
2566
|
+
/**
|
|
2567
|
+
* Whether the checkbox card shows an indeterminate visual state.
|
|
2568
|
+
* @default false
|
|
2569
|
+
*/
|
|
2570
|
+
"indeterminate"?: ICheckboxCard['indeterminate'];
|
|
2571
|
+
/**
|
|
2572
|
+
* Label text displayed next to the checkbox indicator. Falls back to the default slot when empty.
|
|
2573
|
+
* @default ''
|
|
2574
|
+
*/
|
|
2575
|
+
"label"?: ICheckboxCard['label'];
|
|
2576
|
+
/**
|
|
2577
|
+
* Name of the form control, submitted as a key in the form data.
|
|
2578
|
+
*/
|
|
2579
|
+
"name": ICheckboxCard['name'];
|
|
2580
|
+
/**
|
|
2581
|
+
* Emitted when the user toggles this checkbox card.
|
|
2582
|
+
*/
|
|
2583
|
+
"onBdsChange"?: (event: BdsCheckboxCardCustomEvent<any>) => void;
|
|
2584
|
+
/**
|
|
2585
|
+
* Emitted when the checked state changes. Useful for 2-way binding / v-model.
|
|
2586
|
+
*/
|
|
2587
|
+
"onValueChange"?: (event: BdsCheckboxCardCustomEvent<any>) => void;
|
|
2588
|
+
/**
|
|
2589
|
+
* Marks the control as required for form submission.
|
|
2590
|
+
* @default false
|
|
2591
|
+
*/
|
|
2592
|
+
"required"?: ICheckboxCard['required'];
|
|
2593
|
+
/**
|
|
2594
|
+
* Value submitted with the form when this checkbox is selected.
|
|
2595
|
+
* @default 'on'
|
|
2596
|
+
*/
|
|
2597
|
+
"value"?: ICheckboxCard['value'];
|
|
2598
|
+
}
|
|
2043
2599
|
/**
|
|
2044
2600
|
* Modal dialog component for displaying content in an overlay.
|
|
2045
2601
|
* @summary Modal overlay for alerts, forms, and confirmations with customizable layout and behavior.
|
|
@@ -2290,27 +2846,17 @@ declare namespace LocalJSX {
|
|
|
2290
2846
|
* Container component that manages a list of menu items.
|
|
2291
2847
|
* It handles selection logic (single/multiple) and maintains the data state.
|
|
2292
2848
|
* @summary A list menu component that can contain multiple menu items and manage their selection state.
|
|
2293
|
-
* @
|
|
2294
|
-
* @
|
|
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).
|
|
2849
|
+
* @fires bdsChange - Emitted when the selection changes, providing the current selected value(s).
|
|
2850
|
+
* @fires bdsSelect - Emmited when item is selected in menu-role="menu" is clicked
|
|
2298
2851
|
* @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
2852
|
* @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'.
|
|
2302
2853
|
*/
|
|
2303
2854
|
interface BdsListMenu {
|
|
2304
2855
|
/**
|
|
2305
2856
|
* Defines the ARIA role of the menu. Can be 'menu' or 'listbox'. Default is 'menu'.
|
|
2306
|
-
* @default
|
|
2307
|
-
*/
|
|
2308
|
-
"menuRole"?: 'menu' | 'listbox';
|
|
2309
|
-
/**
|
|
2310
|
-
* If true, allows multiple items to be selected. Default is false (single selection).
|
|
2311
|
-
* @default false
|
|
2857
|
+
* @default MENU_ROLES.MENU
|
|
2312
2858
|
*/
|
|
2313
|
-
"
|
|
2859
|
+
"menuRole"?: IListMenu['menuRole'];
|
|
2314
2860
|
/**
|
|
2315
2861
|
* Emitted when the selection changes, providing the current selected value(s).
|
|
2316
2862
|
*/
|
|
@@ -2318,7 +2864,17 @@ declare namespace LocalJSX {
|
|
|
2318
2864
|
/**
|
|
2319
2865
|
* Emitted when the selection changes, providing the current selected value(s).
|
|
2320
2866
|
*/
|
|
2321
|
-
"
|
|
2867
|
+
"onBdsSelect"?: (event: BdsListMenuCustomEvent<ListMenuChangeDetail>) => void;
|
|
2868
|
+
/**
|
|
2869
|
+
* Determines if the menu items have selectall/deselectall controls
|
|
2870
|
+
* @default false
|
|
2871
|
+
*/
|
|
2872
|
+
"selectControls"?: IListMenu['selectControls'];
|
|
2873
|
+
/**
|
|
2874
|
+
* The selection mode of the menu. Can be 'SINGLE' or 'MULTIPLE'. Default is 'SINGLE'.
|
|
2875
|
+
* @default LIST_MENU_SELECTION_MODE.SINGLE
|
|
2876
|
+
*/
|
|
2877
|
+
"selectionMode"?: IListMenu['selectionMode'];
|
|
2322
2878
|
}
|
|
2323
2879
|
/**
|
|
2324
2880
|
* Component representing an individual item within a list menu for navigations and selection.
|
|
@@ -2360,6 +2916,11 @@ declare namespace LocalJSX {
|
|
|
2360
2916
|
* @default false
|
|
2361
2917
|
*/
|
|
2362
2918
|
"activeItem"?: IListMenuItem['activeItem'];
|
|
2919
|
+
/**
|
|
2920
|
+
* Checkable state item, if is activated should be visible a checkbox
|
|
2921
|
+
* @default false
|
|
2922
|
+
*/
|
|
2923
|
+
"checkable"?: IListMenuItem['checkable'];
|
|
2363
2924
|
/**
|
|
2364
2925
|
* Disabled state item
|
|
2365
2926
|
* @default false
|
|
@@ -2388,7 +2949,7 @@ declare namespace LocalJSX {
|
|
|
2388
2949
|
/**
|
|
2389
2950
|
* Event handler for activation
|
|
2390
2951
|
*/
|
|
2391
|
-
"
|
|
2952
|
+
"onBdsSelectItem"?: (event: BdsListMenuItemCustomEvent<IListMenuItemEvent>) => void;
|
|
2392
2953
|
/**
|
|
2393
2954
|
* Selected item state
|
|
2394
2955
|
* @default false
|
|
@@ -2450,6 +3011,218 @@ declare namespace LocalJSX {
|
|
|
2450
3011
|
*/
|
|
2451
3012
|
"width"?: IPopover['width'];
|
|
2452
3013
|
}
|
|
3014
|
+
/**
|
|
3015
|
+
* Radio button component for single-selection within a group.
|
|
3016
|
+
* Use inside `bds-radio-group` for managed selection and form binding.
|
|
3017
|
+
* Can also be used standalone with the `name`, `value`, and `checked` props.
|
|
3018
|
+
*/
|
|
3019
|
+
interface BdsRadio {
|
|
3020
|
+
/**
|
|
3021
|
+
* Whether this radio is selected. Managed by bds-radio-group; can be set directly when used standalone.
|
|
3022
|
+
* @default false
|
|
3023
|
+
*/
|
|
3024
|
+
"checked"?: boolean;
|
|
3025
|
+
/**
|
|
3026
|
+
* Disables the radio, preventing interaction and selection.
|
|
3027
|
+
* @default false
|
|
3028
|
+
*/
|
|
3029
|
+
"disabled"?: boolean;
|
|
3030
|
+
/**
|
|
3031
|
+
* Shows error styling on the radio indicator. Propagated by bds-radio-group.
|
|
3032
|
+
* @default false
|
|
3033
|
+
*/
|
|
3034
|
+
"error"?: boolean;
|
|
3035
|
+
/**
|
|
3036
|
+
* Tooltip text shown on an info icon next to the label.
|
|
3037
|
+
* @default ''
|
|
3038
|
+
*/
|
|
3039
|
+
"info"?: string;
|
|
3040
|
+
/**
|
|
3041
|
+
* Label text displayed next to the radio indicator. Falls back to the default slot when empty.
|
|
3042
|
+
* @default ''
|
|
3043
|
+
*/
|
|
3044
|
+
"label"?: string;
|
|
3045
|
+
/**
|
|
3046
|
+
* Name attribute stamped by the parent bds-radio-group via setAttribute. Set directly when used standalone.
|
|
3047
|
+
* @default ''
|
|
3048
|
+
*/
|
|
3049
|
+
"name"?: string;
|
|
3050
|
+
/**
|
|
3051
|
+
* Emitted when the user selects this radio. Listened to by the parent bds-radio-group to enforce single selection.
|
|
3052
|
+
*/
|
|
3053
|
+
"onBdsChange"?: (event: BdsRadioCustomEvent<RadioChangeDetail>) => void;
|
|
3054
|
+
/**
|
|
3055
|
+
* Value submitted with the form when this radio is selected.
|
|
3056
|
+
* @default 'on'
|
|
3057
|
+
*/
|
|
3058
|
+
"value"?: string;
|
|
3059
|
+
}
|
|
3060
|
+
/**
|
|
3061
|
+
* Button-shaped radio option for use inside `bds-radio-group[type="radiobutton"]`.
|
|
3062
|
+
* Creates a segmented control appearance when grouped. Not form-associated — the parent
|
|
3063
|
+
* `bds-radio-group` owns form state and single-selection enforcement.
|
|
3064
|
+
*/
|
|
3065
|
+
interface BdsRadioButton {
|
|
3066
|
+
/**
|
|
3067
|
+
* Whether this button is selected. Managed by bds-radio-group; can be set directly when used standalone.
|
|
3068
|
+
* @default false
|
|
3069
|
+
*/
|
|
3070
|
+
"checked"?: boolean;
|
|
3071
|
+
/**
|
|
3072
|
+
* Disables the button, preventing interaction and selection.
|
|
3073
|
+
* @default false
|
|
3074
|
+
*/
|
|
3075
|
+
"disabled"?: boolean;
|
|
3076
|
+
/**
|
|
3077
|
+
* Shows error styling on the button. Propagated by bds-radio-group.
|
|
3078
|
+
* @default false
|
|
3079
|
+
*/
|
|
3080
|
+
"error"?: boolean;
|
|
3081
|
+
/**
|
|
3082
|
+
* Tooltip text shown on an info icon next to the label.
|
|
3083
|
+
* @default ''
|
|
3084
|
+
*/
|
|
3085
|
+
"info"?: string;
|
|
3086
|
+
/**
|
|
3087
|
+
* Label text displayed inside the button. Falls back to the default slot when empty.
|
|
3088
|
+
* @default ''
|
|
3089
|
+
*/
|
|
3090
|
+
"label"?: string;
|
|
3091
|
+
/**
|
|
3092
|
+
* Name attribute stamped by the parent bds-radio-group via setAttribute. Set directly when used standalone.
|
|
3093
|
+
* @default ''
|
|
3094
|
+
*/
|
|
3095
|
+
"name"?: string;
|
|
3096
|
+
/**
|
|
3097
|
+
* Emitted when the user selects this button. Listened to by the parent bds-radio-group to enforce single selection.
|
|
3098
|
+
*/
|
|
3099
|
+
"onBdsChange"?: (event: BdsRadioButtonCustomEvent<RadioButtonChangeDetail>) => void;
|
|
3100
|
+
/**
|
|
3101
|
+
* Value submitted with the form when this button is selected.
|
|
3102
|
+
* @default 'on'
|
|
3103
|
+
*/
|
|
3104
|
+
"value"?: string;
|
|
3105
|
+
}
|
|
3106
|
+
/**
|
|
3107
|
+
* Radio card component is a selectable card-based radio option.
|
|
3108
|
+
* It presents a mutually exclusive choice with optional descriptive text and icon,
|
|
3109
|
+
* designed for integration with bds-radio-group for orchestration.
|
|
3110
|
+
* Can also be used standalone with the `name`, `value`, and `checked` props.
|
|
3111
|
+
* @fires bdsChange - Emitted when the user selects this radio card. Listened to by the parent bds-radio-group to enforce single selection.
|
|
3112
|
+
*/
|
|
3113
|
+
interface BdsRadioCard {
|
|
3114
|
+
/**
|
|
3115
|
+
* Whether this radio card is selected. Managed by bds-radio-group; can be set directly when used standalone.
|
|
3116
|
+
* @default false
|
|
3117
|
+
*/
|
|
3118
|
+
"checked"?: IRadioCard['checked'];
|
|
3119
|
+
/**
|
|
3120
|
+
* Disables the radio card, preventing it from being selected and interacted with.
|
|
3121
|
+
* @default false
|
|
3122
|
+
*/
|
|
3123
|
+
"disabled"?: IRadioCard['disabled'];
|
|
3124
|
+
/**
|
|
3125
|
+
* Whether the radio card is in an error state.
|
|
3126
|
+
* @default false
|
|
3127
|
+
*/
|
|
3128
|
+
"error"?: IRadioCard['error'];
|
|
3129
|
+
/**
|
|
3130
|
+
* Tooltip content attached to the radio card content. If empty, the info icon will not be rendered.
|
|
3131
|
+
* @default ''
|
|
3132
|
+
*/
|
|
3133
|
+
"info"?: IRadioCard['info'];
|
|
3134
|
+
/**
|
|
3135
|
+
* Label text displayed next to the radio indicator. Falls back to the default slot when empty.
|
|
3136
|
+
* @default ''
|
|
3137
|
+
*/
|
|
3138
|
+
"label"?: IRadioCard['label'];
|
|
3139
|
+
/**
|
|
3140
|
+
* Name attribute stamped by the parent bds-radio-group. Set directly when used standalone.
|
|
3141
|
+
* @default ''
|
|
3142
|
+
*/
|
|
3143
|
+
"name"?: IRadioCard['name'];
|
|
3144
|
+
/**
|
|
3145
|
+
* Emitted when the user selects this radio. Listened to by the parent bds-radio-group to enforce single selection.
|
|
3146
|
+
*/
|
|
3147
|
+
"onBdsChange"?: (event: BdsRadioCardCustomEvent<RadioCardChangeDetail>) => void;
|
|
3148
|
+
/**
|
|
3149
|
+
* Value submitted with the form when this radio is selected.
|
|
3150
|
+
* @default 'on'
|
|
3151
|
+
*/
|
|
3152
|
+
"value"?: IRadioCard['value'];
|
|
3153
|
+
}
|
|
3154
|
+
/**
|
|
3155
|
+
* Radio group component that orchestrates single-selection across a set of `bds-radio` children.
|
|
3156
|
+
*/
|
|
3157
|
+
interface BdsRadioGroup {
|
|
3158
|
+
/**
|
|
3159
|
+
* Disables all child radios and prevents selection. Also mirrored to isDisabled
|
|
3160
|
+
* @State for form-level disable support.
|
|
3161
|
+
* @default false
|
|
3162
|
+
*/
|
|
3163
|
+
"disabled"?: false;
|
|
3164
|
+
/**
|
|
3165
|
+
* Shows error styling on the group helper text. Propagated to all child radios.
|
|
3166
|
+
* @default false
|
|
3167
|
+
*/
|
|
3168
|
+
"error"?: false;
|
|
3169
|
+
/**
|
|
3170
|
+
* Error message rendered below the radio options when error is true. Replaces helperText.
|
|
3171
|
+
* @default ''
|
|
3172
|
+
*/
|
|
3173
|
+
"errorMessage"?: "";
|
|
3174
|
+
/**
|
|
3175
|
+
* The `id` of a `<form>` element to associate this element with.
|
|
3176
|
+
*/
|
|
3177
|
+
"form"?: string;
|
|
3178
|
+
/**
|
|
3179
|
+
* Helper text rendered below the radio options. Shown in default state; replaced by errorMessage in error state.
|
|
3180
|
+
* @default ''
|
|
3181
|
+
*/
|
|
3182
|
+
"helperText"?: "";
|
|
3183
|
+
/**
|
|
3184
|
+
* Tooltip text shown on the group label info icon.
|
|
3185
|
+
* @default ''
|
|
3186
|
+
*/
|
|
3187
|
+
"info"?: "";
|
|
3188
|
+
/**
|
|
3189
|
+
* Group label rendered above the radio options.
|
|
3190
|
+
* @default ''
|
|
3191
|
+
*/
|
|
3192
|
+
"label"?: "";
|
|
3193
|
+
/**
|
|
3194
|
+
* Name of the form control; submitted as the field key in FormData.
|
|
3195
|
+
*/
|
|
3196
|
+
"name": string;
|
|
3197
|
+
/**
|
|
3198
|
+
* Emitted when the selected radio changes. Payload includes the new value.
|
|
3199
|
+
*/
|
|
3200
|
+
"onBdsChange"?: (event: BdsRadioGroupCustomEvent<RadioGroupChangeDetail>) => void;
|
|
3201
|
+
/**
|
|
3202
|
+
* Emitted when the selected radio changes. Used for v-model two-way binding in Vue.
|
|
3203
|
+
*/
|
|
3204
|
+
"onValueChange"?: (event: BdsRadioGroupCustomEvent<string>) => void;
|
|
3205
|
+
/**
|
|
3206
|
+
* Layout direction of the radio options.
|
|
3207
|
+
* @default ORIENTATIONS.VERTICAL
|
|
3208
|
+
*/
|
|
3209
|
+
"orientation"?: Orientation;
|
|
3210
|
+
/**
|
|
3211
|
+
* Marks the group as required for form submission. Triggers validity error when no radio is selected.
|
|
3212
|
+
* @default false
|
|
3213
|
+
*/
|
|
3214
|
+
"required"?: false;
|
|
3215
|
+
/**
|
|
3216
|
+
* Identifies this group variant. 'radio' renders circular bds-radio children; 'radiobutton' renders bds-radio-button segmented control; 'radiocard' renders bds-radio-card element.
|
|
3217
|
+
* @default RADIO_GROUP_TYPES.RADIO
|
|
3218
|
+
*/
|
|
3219
|
+
"type"?: RadioGroupType;
|
|
3220
|
+
/**
|
|
3221
|
+
* Currently selected radio value. Synced to children on change.
|
|
3222
|
+
* @default ''
|
|
3223
|
+
*/
|
|
3224
|
+
"value"?: string;
|
|
3225
|
+
}
|
|
2453
3226
|
/**
|
|
2454
3227
|
* Spinner component used to indicate a loading or processing state.
|
|
2455
3228
|
* @summary Displays an animated circular spinner to communicate that content is loading.
|
|
@@ -3004,6 +3777,13 @@ declare namespace LocalJSX {
|
|
|
3004
3777
|
"loading": IButton['loading'];
|
|
3005
3778
|
"disclosure": IButton['disclosure'];
|
|
3006
3779
|
}
|
|
3780
|
+
interface BdsButtonGroupAttributes {
|
|
3781
|
+
"size": IButtonGroup['size'];
|
|
3782
|
+
"orientation": IButtonGroup['orientation'];
|
|
3783
|
+
"label": IButtonGroup['label'];
|
|
3784
|
+
"color": IButtonGroup['color'];
|
|
3785
|
+
"variant": IButtonGroup['variant'];
|
|
3786
|
+
}
|
|
3007
3787
|
interface BdsCheckboxAttributes {
|
|
3008
3788
|
"name": string;
|
|
3009
3789
|
"disabled": boolean;
|
|
@@ -3014,6 +3794,16 @@ declare namespace LocalJSX {
|
|
|
3014
3794
|
"value": string;
|
|
3015
3795
|
"label": string;
|
|
3016
3796
|
}
|
|
3797
|
+
interface BdsCheckboxCardAttributes {
|
|
3798
|
+
"name": ICheckboxCard['name'];
|
|
3799
|
+
"disabled": ICheckboxCard['disabled'];
|
|
3800
|
+
"required": ICheckboxCard['required'];
|
|
3801
|
+
"value": ICheckboxCard['value'];
|
|
3802
|
+
"label": ICheckboxCard['label'];
|
|
3803
|
+
"checked": ICheckboxCard['checked'];
|
|
3804
|
+
"indeterminate": ICheckboxCard['indeterminate'];
|
|
3805
|
+
"error": ICheckboxCard['error'];
|
|
3806
|
+
}
|
|
3017
3807
|
interface BdsDialogAttributes {
|
|
3018
3808
|
"active": IDialog['active'];
|
|
3019
3809
|
"preventClose": IDialog['preventClose'];
|
|
@@ -3056,8 +3846,9 @@ declare namespace LocalJSX {
|
|
|
3056
3846
|
"offset": IGridItem['offset'];
|
|
3057
3847
|
}
|
|
3058
3848
|
interface BdsListMenuAttributes {
|
|
3059
|
-
"
|
|
3060
|
-
"menuRole": '
|
|
3849
|
+
"selectionMode": IListMenu['selectionMode'];
|
|
3850
|
+
"menuRole": IListMenu['menuRole'];
|
|
3851
|
+
"selectControls": IListMenu['selectControls'];
|
|
3061
3852
|
}
|
|
3062
3853
|
interface BdsListMenuItemAttributes {
|
|
3063
3854
|
"variant": IListMenuItem['variant'];
|
|
@@ -3065,6 +3856,7 @@ declare namespace LocalJSX {
|
|
|
3065
3856
|
"disabled": IListMenuItem['disabled'];
|
|
3066
3857
|
"selected": IListMenuItem['selected'];
|
|
3067
3858
|
"value": IListMenuItem['value'];
|
|
3859
|
+
"checkable": IListMenuItem['checkable'];
|
|
3068
3860
|
"activeItem": IListMenuItem['activeItem'];
|
|
3069
3861
|
"href": IListMenuItem['href'];
|
|
3070
3862
|
"newTab": IListMenuItem['newTab'];
|
|
@@ -3077,6 +3869,46 @@ declare namespace LocalJSX {
|
|
|
3077
3869
|
"footer": boolean;
|
|
3078
3870
|
"closable": boolean;
|
|
3079
3871
|
}
|
|
3872
|
+
interface BdsRadioAttributes {
|
|
3873
|
+
"checked": boolean;
|
|
3874
|
+
"disabled": boolean;
|
|
3875
|
+
"value": string;
|
|
3876
|
+
"name": string;
|
|
3877
|
+
"label": string;
|
|
3878
|
+
"error": boolean;
|
|
3879
|
+
"info": string;
|
|
3880
|
+
}
|
|
3881
|
+
interface BdsRadioButtonAttributes {
|
|
3882
|
+
"checked": boolean;
|
|
3883
|
+
"disabled": boolean;
|
|
3884
|
+
"error": boolean;
|
|
3885
|
+
"value": string;
|
|
3886
|
+
"name": string;
|
|
3887
|
+
"label": string;
|
|
3888
|
+
"info": string;
|
|
3889
|
+
}
|
|
3890
|
+
interface BdsRadioCardAttributes {
|
|
3891
|
+
"value": IRadioCard['value'];
|
|
3892
|
+
"info": IRadioCard['info'];
|
|
3893
|
+
"name": IRadioCard['name'];
|
|
3894
|
+
"label": IRadioCard['label'];
|
|
3895
|
+
"checked": IRadioCard['checked'];
|
|
3896
|
+
"disabled": IRadioCard['disabled'];
|
|
3897
|
+
"error": IRadioCard['error'];
|
|
3898
|
+
}
|
|
3899
|
+
interface BdsRadioGroupAttributes {
|
|
3900
|
+
"disabled": false;
|
|
3901
|
+
"error": false;
|
|
3902
|
+
"errorMessage": "";
|
|
3903
|
+
"helperText": "";
|
|
3904
|
+
"info": "";
|
|
3905
|
+
"label": "";
|
|
3906
|
+
"name": string;
|
|
3907
|
+
"orientation": Orientation;
|
|
3908
|
+
"required": false;
|
|
3909
|
+
"type": RadioGroupType;
|
|
3910
|
+
"value": string;
|
|
3911
|
+
}
|
|
3080
3912
|
interface BdsSpinnerAttributes {
|
|
3081
3913
|
"size": ISpinner['size'];
|
|
3082
3914
|
"label": ISpinner['label'];
|
|
@@ -3160,7 +3992,9 @@ declare namespace LocalJSX {
|
|
|
3160
3992
|
"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
3993
|
"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] };
|
|
3162
3994
|
"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] };
|
|
3995
|
+
"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] };
|
|
3163
3996
|
"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] } & OneOf<"name", BdsCheckbox["name"], BdsCheckboxAttributes["name"]>;
|
|
3997
|
+
"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"]>;
|
|
3164
3998
|
"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
3999
|
"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
4000
|
"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 +4003,10 @@ declare namespace LocalJSX {
|
|
|
3169
4003
|
"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
4004
|
"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
4005
|
"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] };
|
|
4006
|
+
"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] };
|
|
4007
|
+
"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] };
|
|
4008
|
+
"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] };
|
|
4009
|
+
"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"]>;
|
|
3172
4010
|
"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
4011
|
"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
4012
|
"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] };
|
|
@@ -3228,7 +4066,7 @@ declare module "@stencil/core" {
|
|
|
3228
4066
|
* @attr {string} type - The type of the button, which can be 'button', 'submit', or 'reset'. Default is 'button'.
|
|
3229
4067
|
* @attr {string} color - The color theme of the button, which can be 'default', 'primary', 'success', or 'error'. Default is 'default'.
|
|
3230
4068
|
* @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 '
|
|
4069
|
+
* @attr {string} size - The size of the button, which can be 'sm', 'md', or 'lg'. Default is 'md'.
|
|
3232
4070
|
* @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
4071
|
* @attr {boolean} disclosure - Indicates if the button should show a chevron down at the end of the content.
|
|
3234
4072
|
* @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 +4075,13 @@ declare module "@stencil/core" {
|
|
|
3237
4075
|
* @property {string} type - The type of the button, which can be 'button', 'submit', or 'reset'. Default is 'button'.
|
|
3238
4076
|
* @property {string} color - The color theme of the button, which can be 'default', 'primary', 'success', or 'error'. Default is 'default'.
|
|
3239
4077
|
* @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 '
|
|
4078
|
+
* @property {string} size - The size of the button, which can be 'sm', 'md', or 'lg'. Default is 'md'.
|
|
3241
4079
|
* @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
4080
|
* @property {boolean} disclosure - Indicates if the button should show a chevron down at the end of the content.
|
|
3243
4081
|
* @default 'button' - Default type value
|
|
3244
4082
|
* @default 'default' - Default color value
|
|
3245
4083
|
* @default 'default' - Default variant value
|
|
3246
|
-
* @default '
|
|
4084
|
+
* @default 'md' - Default size value
|
|
3247
4085
|
* @default 'default' - Default status value
|
|
3248
4086
|
* @default false - Default disabled value
|
|
3249
4087
|
* @default '' - Default label value
|
|
@@ -3252,6 +4090,10 @@ declare module "@stencil/core" {
|
|
|
3252
4090
|
* @default false - Default disclosure value
|
|
3253
4091
|
*/
|
|
3254
4092
|
"bds-button": LocalJSX.IntrinsicElements["bds-button"] & JSXBase.HTMLAttributes<HTMLBdsButtonElement>;
|
|
4093
|
+
/**
|
|
4094
|
+
* Button group component for grouping related buttons together in a unified visual unit.
|
|
4095
|
+
*/
|
|
4096
|
+
"bds-button-group": LocalJSX.IntrinsicElements["bds-button-group"] & JSXBase.HTMLAttributes<HTMLBdsButtonGroupElement>;
|
|
3255
4097
|
/**
|
|
3256
4098
|
* Checkbox component for boolean selection with three visual states.
|
|
3257
4099
|
* @summary A checkbox form control with default, selected, and indeterminate states.
|
|
@@ -3264,6 +4106,23 @@ declare module "@stencil/core" {
|
|
|
3264
4106
|
* @fires bdsChange - Emitted when the user toggles the checkbox. Payload: `{ checked: boolean, value: string }`.
|
|
3265
4107
|
*/
|
|
3266
4108
|
"bds-checkbox": LocalJSX.IntrinsicElements["bds-checkbox"] & JSXBase.HTMLAttributes<HTMLBdsCheckboxElement>;
|
|
4109
|
+
/**
|
|
4110
|
+
* Checkbox card component is a selectable card-based checkbox option.
|
|
4111
|
+
* It presents a non-exclusive choice with optional descriptive text and icon,
|
|
4112
|
+
* supporting checked, indeterminate, disabled, and error states.
|
|
4113
|
+
* Can be used standalone or within a checkbox group for orchestration.
|
|
4114
|
+
* @property {string} name - Name of the form control, submitted as a key in the form data.
|
|
4115
|
+
* @property {boolean} disabled - Disables the control. Defaults to `false`.
|
|
4116
|
+
* @property {boolean} required - Marks the control as required for form submission. Defaults to `false`.
|
|
4117
|
+
* @property {string} value - Value submitted with the form data when checked. Defaults to `"on"`.
|
|
4118
|
+
* @property {string} label - Label displayed next to the checkbox. If not provided, the default slot is used.
|
|
4119
|
+
* @property {boolean} checked - Whether the checkbox card is selected. Defaults to `false`.
|
|
4120
|
+
* @property {boolean} indeterminate - Whether the checkbox card shows an indeterminate ("mixed") visual state. Defaults to `false`.
|
|
4121
|
+
* @property {boolean} error - Whether the checkbox card is in an error state. Defaults to `false`.
|
|
4122
|
+
* @fires valueChange - Emitted when the checked state changes (for 2-way binding / v-model). Payload: `boolean`.
|
|
4123
|
+
* @fires bdsChange - Emitted when the user toggles the checkbox card. Payload: `{ checked: boolean, value: string }`.
|
|
4124
|
+
*/
|
|
4125
|
+
"bds-checkbox-card": LocalJSX.IntrinsicElements["bds-checkbox-card"] & JSXBase.HTMLAttributes<HTMLBdsCheckboxCardElement>;
|
|
3267
4126
|
/**
|
|
3268
4127
|
* Modal dialog component for displaying content in an overlay.
|
|
3269
4128
|
* @summary Modal overlay for alerts, forms, and confirmations with customizable layout and behavior.
|
|
@@ -3344,15 +4203,10 @@ declare module "@stencil/core" {
|
|
|
3344
4203
|
* Container component that manages a list of menu items.
|
|
3345
4204
|
* It handles selection logic (single/multiple) and maintains the data state.
|
|
3346
4205
|
* @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).
|
|
4206
|
+
* @fires bdsChange - Emitted when the selection changes, providing the current selected value(s).
|
|
4207
|
+
* @fires bdsSelect - Emmited when item is selected in menu-role="menu" is clicked
|
|
3352
4208
|
* @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
4209
|
* @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
4210
|
*/
|
|
3357
4211
|
"bds-list-menu": LocalJSX.IntrinsicElements["bds-list-menu"] & JSXBase.HTMLAttributes<HTMLBdsListMenuElement>;
|
|
3358
4212
|
/**
|
|
@@ -3404,6 +4258,30 @@ declare module "@stencil/core" {
|
|
|
3404
4258
|
* @cssprop data-hidearrow - Reflects the hideArrow option.
|
|
3405
4259
|
*/
|
|
3406
4260
|
"bds-popover": LocalJSX.IntrinsicElements["bds-popover"] & JSXBase.HTMLAttributes<HTMLBdsPopoverElement>;
|
|
4261
|
+
/**
|
|
4262
|
+
* Radio button component for single-selection within a group.
|
|
4263
|
+
* Use inside `bds-radio-group` for managed selection and form binding.
|
|
4264
|
+
* Can also be used standalone with the `name`, `value`, and `checked` props.
|
|
4265
|
+
*/
|
|
4266
|
+
"bds-radio": LocalJSX.IntrinsicElements["bds-radio"] & JSXBase.HTMLAttributes<HTMLBdsRadioElement>;
|
|
4267
|
+
/**
|
|
4268
|
+
* Button-shaped radio option for use inside `bds-radio-group[type="radiobutton"]`.
|
|
4269
|
+
* Creates a segmented control appearance when grouped. Not form-associated — the parent
|
|
4270
|
+
* `bds-radio-group` owns form state and single-selection enforcement.
|
|
4271
|
+
*/
|
|
4272
|
+
"bds-radio-button": LocalJSX.IntrinsicElements["bds-radio-button"] & JSXBase.HTMLAttributes<HTMLBdsRadioButtonElement>;
|
|
4273
|
+
/**
|
|
4274
|
+
* Radio card component is a selectable card-based radio option.
|
|
4275
|
+
* It presents a mutually exclusive choice with optional descriptive text and icon,
|
|
4276
|
+
* designed for integration with bds-radio-group for orchestration.
|
|
4277
|
+
* Can also be used standalone with the `name`, `value`, and `checked` props.
|
|
4278
|
+
* @fires bdsChange - Emitted when the user selects this radio card. Listened to by the parent bds-radio-group to enforce single selection.
|
|
4279
|
+
*/
|
|
4280
|
+
"bds-radio-card": LocalJSX.IntrinsicElements["bds-radio-card"] & JSXBase.HTMLAttributes<HTMLBdsRadioCardElement>;
|
|
4281
|
+
/**
|
|
4282
|
+
* Radio group component that orchestrates single-selection across a set of `bds-radio` children.
|
|
4283
|
+
*/
|
|
4284
|
+
"bds-radio-group": LocalJSX.IntrinsicElements["bds-radio-group"] & JSXBase.HTMLAttributes<HTMLBdsRadioGroupElement>;
|
|
3407
4285
|
/**
|
|
3408
4286
|
* Spinner component used to indicate a loading or processing state.
|
|
3409
4287
|
* @summary Displays an animated circular spinner to communicate that content is loading.
|