@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
|
@@ -28,9 +28,9 @@ bds-checkbox .bds-checkbox__box {
|
|
|
28
28
|
display: flex;
|
|
29
29
|
align-items: center;
|
|
30
30
|
justify-content: center;
|
|
31
|
-
width:
|
|
32
|
-
height:
|
|
33
|
-
border:
|
|
31
|
+
width: var(--boreal-layout-m);
|
|
32
|
+
height: var(--boreal-layout-m);
|
|
33
|
+
border: var(--boreal-spacing-4xs) solid var(--boreal-stroke-default-light);
|
|
34
34
|
background: transparent;
|
|
35
35
|
transition: all 0.2s ease;
|
|
36
36
|
border-radius: 4px;
|
|
@@ -48,21 +48,21 @@ bds-checkbox:active .bds-checkbox__box {
|
|
|
48
48
|
background: var(--boreal-bg-neutral);
|
|
49
49
|
outline: 2px solid var(--boreal-stroke-primary-light);
|
|
50
50
|
}
|
|
51
|
-
bds-checkbox.bds-checkbox--checked .bds-checkbox__box
|
|
51
|
+
bds-checkbox.bds-checkbox--checked .bds-checkbox__box {
|
|
52
52
|
border-color: var(--boreal-ui-primary-base);
|
|
53
53
|
background: var(--boreal-ui-primary-base);
|
|
54
|
-
color:
|
|
54
|
+
color: var(--boreal-ui-inverse);
|
|
55
55
|
}
|
|
56
|
-
bds-checkbox.bds-checkbox--checked:hover .bds-checkbox__box
|
|
56
|
+
bds-checkbox.bds-checkbox--checked:hover .bds-checkbox__box {
|
|
57
57
|
border-color: var(--boreal-ui-primary-dark);
|
|
58
58
|
background: var(--boreal-ui-primary-dark);
|
|
59
59
|
}
|
|
60
|
-
bds-checkbox.bds-checkbox--checked:focus-visible .bds-checkbox__box
|
|
60
|
+
bds-checkbox.bds-checkbox--checked:focus-visible .bds-checkbox__box {
|
|
61
61
|
border-color: var(--boreal-ui-primary-base);
|
|
62
62
|
background: var(--boreal-ui-primary-base);
|
|
63
63
|
outline: 2px solid var(--boreal-stroke-focus);
|
|
64
64
|
}
|
|
65
|
-
bds-checkbox.bds-checkbox--checked:active .bds-checkbox__box
|
|
65
|
+
bds-checkbox.bds-checkbox--checked:active .bds-checkbox__box {
|
|
66
66
|
border-color: var(--boreal-ui-primary-dark);
|
|
67
67
|
background: var(--boreal-ui-primary-dark);
|
|
68
68
|
}
|
|
@@ -70,6 +70,7 @@ bds-checkbox.bds-checkbox--error .bds-checkbox__box {
|
|
|
70
70
|
border-color: var(--boreal-stroke-danger-base);
|
|
71
71
|
}
|
|
72
72
|
bds-checkbox.bds-checkbox--error.bds-checkbox--checked .bds-checkbox__box, bds-checkbox.bds-checkbox--error.bds-checkbox--indeterminate .bds-checkbox__box {
|
|
73
|
+
color: var(--boreal-ui-inverse);
|
|
73
74
|
border-color: var(--boreal-stroke-danger-base);
|
|
74
75
|
background: var(--boreal-stroke-danger-base);
|
|
75
76
|
}
|
|
@@ -110,6 +110,9 @@ export class BdsCheckbox extends Mixin(formAssociatedMixin) {
|
|
|
110
110
|
return 'mixed';
|
|
111
111
|
return this.checked ? 'true' : 'false';
|
|
112
112
|
}
|
|
113
|
+
get hideFromScreenReaders() {
|
|
114
|
+
return this.el.closest('bds-checkbox-card') !== null || this.isDisabled;
|
|
115
|
+
}
|
|
113
116
|
renderCheckIcon() {
|
|
114
117
|
if (this.indeterminate) {
|
|
115
118
|
return (h("svg", { class: "bds-checkbox__icon", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M4 8h8", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round" })));
|
|
@@ -119,6 +122,9 @@ export class BdsCheckbox extends Mixin(formAssociatedMixin) {
|
|
|
119
122
|
}
|
|
120
123
|
return null;
|
|
121
124
|
}
|
|
125
|
+
get canShowLabel() {
|
|
126
|
+
return this.label !== undefined && this.label !== null;
|
|
127
|
+
}
|
|
122
128
|
// ---------------------------------------------------------------------------
|
|
123
129
|
// Render
|
|
124
130
|
// ---------------------------------------------------------------------------
|
|
@@ -130,7 +136,7 @@ export class BdsCheckbox extends Mixin(formAssociatedMixin) {
|
|
|
130
136
|
'bds-checkbox--error': this.error,
|
|
131
137
|
'bds-checkbox--disabled': this.isDisabled,
|
|
132
138
|
};
|
|
133
|
-
return (h(Host, { key: '
|
|
139
|
+
return (h(Host, { key: 'd5346e9f5943d81df215268f2c9ad3253941c3c8', class: classes, ...this.inheritedAttributes, role: "checkbox", "aria-checked": this.getAriaChecked(), "aria-disabled": this.isDisabled ? 'true' : null, "aria-hidden": this.hideFromScreenReaders ? 'true' : null, tabindex: this.hideFromScreenReaders ? -1 : 0, onClick: this.handleClick, onKeyDown: this.handleKeyDown }, h("span", { key: '217759044655c827609956b4d574fce3ce90c996', class: "bds-checkbox__box" }, this.renderCheckIcon()), this.canShowLabel && (h("span", { key: '47b8120c25700fe6e07e8d626c0acb28ac9387d7', class: "bds-checkbox__label" }, this.label.trim() !== '' ? this.label : h("slot", null)))));
|
|
134
140
|
}
|
|
135
141
|
static get is() { return "bds-checkbox"; }
|
|
136
142
|
static get formAssociated() { return true; }
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/**
|
|
3
|
+
* Common SCSS placeholder selectors shared across form and layout components.
|
|
4
|
+
* This file is injected globally via `injectGlobalPaths` in `stencil.config.ts`,
|
|
5
|
+
* so all component stylesheets can `@extend` these placeholders without an explicit import.
|
|
6
|
+
*
|
|
7
|
+
* NOTE: Placeholders must only use raw CSS values — `$boreal-*` token variables
|
|
8
|
+
* are not available at this level util use style-guidelines.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* TODO: Refactor to use styleguidelines this work as first draft
|
|
12
|
+
**/
|
|
13
|
+
/**
|
|
14
|
+
* This file contains mixins and functions for common interactions styles such as focus rings and transitions.
|
|
15
|
+
* These are used across multiple components to ensure consistency in interaction feedback.
|
|
16
|
+
*/
|
|
17
|
+
.bds-checkbox-card {
|
|
18
|
+
position: relative;
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
font-family: var(--boreal-typography-font-family-primary);
|
|
21
|
+
display: inline-flex;
|
|
22
|
+
align-items: flex-start;
|
|
23
|
+
gap: var(--boreal-spacing-xs);
|
|
24
|
+
padding: var(--boreal-spacing-xs) var(--boreal-spacing-s) var(--boreal-spacing-s);
|
|
25
|
+
border-radius: var(--boreal-radius-xs);
|
|
26
|
+
border: var(--boreal-spacing-4xs) solid var(--boreal-stroke-default-light);
|
|
27
|
+
background-color: var(--boreal-ui-inverse);
|
|
28
|
+
transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
|
|
29
|
+
}
|
|
30
|
+
.bds-checkbox-card:hover {
|
|
31
|
+
background-color: var(--boreal-ui-default-lighter);
|
|
32
|
+
box-shadow: 0 1px 2px 0 rgba(19, 19, 22, 0.15);
|
|
33
|
+
}
|
|
34
|
+
.bds-checkbox-card:focus-within, .bds-checkbox-card:focus {
|
|
35
|
+
background-color: var(--boreal-ui-default-lighter);
|
|
36
|
+
box-shadow: 0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus);
|
|
37
|
+
}
|
|
38
|
+
.bds-checkbox-card:focus-visible {
|
|
39
|
+
outline: none;
|
|
40
|
+
}
|
|
41
|
+
.bds-checkbox-card:active bds-checkbox:not(.bds-checkbox--checked) .bds-checkbox__box, .bds-checkbox-card:hover bds-checkbox:not(.bds-checkbox--checked) .bds-checkbox__box, .bds-checkbox-card:focus-within bds-checkbox:not(.bds-checkbox--checked) .bds-checkbox__box, .bds-checkbox-card:focus bds-checkbox:not(.bds-checkbox--checked) .bds-checkbox__box, .bds-checkbox-card:focus-visible bds-checkbox:not(.bds-checkbox--checked) .bds-checkbox__box {
|
|
42
|
+
background: var(--boreal-ui-inverse);
|
|
43
|
+
}
|
|
44
|
+
.bds-checkbox-card__icon {
|
|
45
|
+
display: flex;
|
|
46
|
+
margin-top: var(--boreal-spacing-3xs);
|
|
47
|
+
height: var(--boreal-layout-m);
|
|
48
|
+
align-items: center;
|
|
49
|
+
margin-bottom: var(--boreal-spacing-2xs);
|
|
50
|
+
}
|
|
51
|
+
.bds-checkbox-card .bds-checkbox-card__checkbox {
|
|
52
|
+
pointer-events: none;
|
|
53
|
+
flex-shrink: 0;
|
|
54
|
+
margin-top: calc(var(--boreal-spacing-2xs) - var(--boreal-spacing-4xs));
|
|
55
|
+
}
|
|
56
|
+
.bds-checkbox-card .bds-checkbox-card__checkbox .bds-checkbox__label {
|
|
57
|
+
display: none;
|
|
58
|
+
}
|
|
59
|
+
.bds-checkbox-card__content {
|
|
60
|
+
display: flex;
|
|
61
|
+
flex-direction: column;
|
|
62
|
+
}
|
|
63
|
+
.bds-checkbox-card__header {
|
|
64
|
+
display: inline-flex;
|
|
65
|
+
gap: var(--boreal-spacing-3xs);
|
|
66
|
+
color: var(--boreal-text-default);
|
|
67
|
+
line-height: var(--boreal-typography-line-height-md);
|
|
68
|
+
}
|
|
69
|
+
.bds-checkbox-card__title {
|
|
70
|
+
font-weight: var(--boreal-typography-font-weight-semibold);
|
|
71
|
+
font-size: var(--boreal-typography-font-size-md);
|
|
72
|
+
}
|
|
73
|
+
.bds-checkbox-card__description {
|
|
74
|
+
color: var(--boreal-text-default-light);
|
|
75
|
+
font-size: var(--boreal-typography-font-size-xs);
|
|
76
|
+
line-height: var(--boreal-typography-line-height-xs);
|
|
77
|
+
}
|
|
78
|
+
.bds-checkbox-card--checked {
|
|
79
|
+
border-color: var(--boreal-stroke-primary-base);
|
|
80
|
+
}
|
|
81
|
+
.bds-checkbox-card--checked:hover, .bds-checkbox-card--checked:focus, .bds-checkbox-card--checked:focus-within, .bds-checkbox-card--checked:active {
|
|
82
|
+
background-color: var(--boreal-ui-primary-lighter);
|
|
83
|
+
}
|
|
84
|
+
.bds-checkbox-card--checked .bds-checkbox-card__header,
|
|
85
|
+
.bds-checkbox-card--checked .bds-checkbox-card__description {
|
|
86
|
+
color: var(--boreal-text-primary-base);
|
|
87
|
+
}
|
|
88
|
+
.bds-checkbox-card--indeterminate {
|
|
89
|
+
border-color: var(--boreal-stroke-default-light);
|
|
90
|
+
}
|
|
91
|
+
.bds-checkbox-card--indeterminate .bds-checkbox-card__header {
|
|
92
|
+
color: var(--boreal-text-default);
|
|
93
|
+
}
|
|
94
|
+
.bds-checkbox-card--indeterminate .bds-checkbox-card__description {
|
|
95
|
+
color: var(--boreal-text-default-light);
|
|
96
|
+
}
|
|
97
|
+
.bds-checkbox-card--disabled {
|
|
98
|
+
pointer-events: none;
|
|
99
|
+
}
|
|
100
|
+
.bds-checkbox-card--disabled .bds-checkbox-card__header,
|
|
101
|
+
.bds-checkbox-card--disabled .bds-checkbox-card__description {
|
|
102
|
+
color: var(--boreal-text-disabled);
|
|
103
|
+
}
|
|
104
|
+
.bds-checkbox-card--disabled.bds-checkbox-card--checked:not(.bds-checkbox-card--error) {
|
|
105
|
+
border-color: var(--boreal-stroke-primary-light);
|
|
106
|
+
}
|
|
107
|
+
.bds-checkbox-card--disabled.bds-checkbox-card--checked:not(.bds-checkbox-card--error) .bds-checkbox-card__header,
|
|
108
|
+
.bds-checkbox-card--disabled.bds-checkbox-card--checked:not(.bds-checkbox-card--error) .bds-checkbox-card__description {
|
|
109
|
+
color: var(--boreal-text-primary-light);
|
|
110
|
+
}
|
|
111
|
+
.bds-checkbox-card--disabled.bds-checkbox-card--error {
|
|
112
|
+
border-color: var(--boreal-stroke-danger-light);
|
|
113
|
+
}
|
|
114
|
+
.bds-checkbox-card--disabled.bds-checkbox-card--error .bds-checkbox-card__header,
|
|
115
|
+
.bds-checkbox-card--disabled.bds-checkbox-card--error .bds-checkbox-card__description {
|
|
116
|
+
color: var(--boreal-text-danger-light);
|
|
117
|
+
}
|
|
118
|
+
.bds-checkbox-card--error {
|
|
119
|
+
border-color: var(--boreal-stroke-danger-base);
|
|
120
|
+
}
|
|
121
|
+
.bds-checkbox-card--error:hover, .bds-checkbox-card--error:focus, .bds-checkbox-card--error:focus-within, .bds-checkbox-card--error:active {
|
|
122
|
+
background-color: var(--boreal-ui-danger-lighter);
|
|
123
|
+
}
|
|
124
|
+
.bds-checkbox-card--error .bds-checkbox-card__header,
|
|
125
|
+
.bds-checkbox-card--error .bds-checkbox-card__description {
|
|
126
|
+
color: var(--boreal-text-danger-base);
|
|
127
|
+
}
|
|
@@ -0,0 +1,397 @@
|
|
|
1
|
+
import { formAssociatedMixin } from "../../../mixins/index";
|
|
2
|
+
import { Host, Mixin, h } from "@stencil/core";
|
|
3
|
+
import { setFormValue } from "../../../utils/index";
|
|
4
|
+
/**
|
|
5
|
+
* Checkbox card component is a selectable card-based checkbox option.
|
|
6
|
+
* It presents a non-exclusive choice with optional descriptive text and icon,
|
|
7
|
+
* supporting checked, indeterminate, disabled, and error states.
|
|
8
|
+
* Can be used standalone or within a checkbox group for orchestration.
|
|
9
|
+
*
|
|
10
|
+
* @slot - Label content when no `label` prop is provided.
|
|
11
|
+
* @slot icon - Optional icon rendered to the left of the label.
|
|
12
|
+
* @slot description - Optional descriptive text rendered below the label.
|
|
13
|
+
*
|
|
14
|
+
* @property {string} name - Name of the form control, submitted as a key in the form data.
|
|
15
|
+
* @property {boolean} disabled - Disables the control. Defaults to `false`.
|
|
16
|
+
* @property {boolean} required - Marks the control as required for form submission. Defaults to `false`.
|
|
17
|
+
* @property {string} value - Value submitted with the form data when checked. Defaults to `"on"`.
|
|
18
|
+
* @property {string} label - Label displayed next to the checkbox. If not provided, the default slot is used.
|
|
19
|
+
* @property {boolean} checked - Whether the checkbox card is selected. Defaults to `false`.
|
|
20
|
+
* @property {boolean} indeterminate - Whether the checkbox card shows an indeterminate ("mixed") visual state. Defaults to `false`.
|
|
21
|
+
* @property {boolean} error - Whether the checkbox card is in an error state. Defaults to `false`.
|
|
22
|
+
*
|
|
23
|
+
* @fires valueChange - Emitted when the checked state changes (for 2-way binding / v-model). Payload: `boolean`.
|
|
24
|
+
* @fires bdsChange - Emitted when the user toggles the checkbox card. Payload: `{ checked: boolean, value: string }`.
|
|
25
|
+
*/
|
|
26
|
+
export class BdsCheckboxCard extends Mixin(formAssociatedMixin) {
|
|
27
|
+
constructor() {
|
|
28
|
+
this.isDisabled = false;
|
|
29
|
+
this.isIndeterminate = false;
|
|
30
|
+
this.isChecked = false;
|
|
31
|
+
/** Disables the control. */
|
|
32
|
+
this.disabled = false;
|
|
33
|
+
/** Marks the control as required for form submission. */
|
|
34
|
+
this.required = false;
|
|
35
|
+
// ---------------------------------------------------------------------------
|
|
36
|
+
// Props
|
|
37
|
+
// ---------------------------------------------------------------------------
|
|
38
|
+
/** Value submitted with the form when this checkbox is selected. */
|
|
39
|
+
this.value = 'on';
|
|
40
|
+
/** Label text displayed next to the checkbox indicator. Falls back to the default slot when empty. */
|
|
41
|
+
this.label = '';
|
|
42
|
+
/** Whether this checkbox card is selected. */
|
|
43
|
+
this.checked = false;
|
|
44
|
+
/** Whether the checkbox card shows an indeterminate visual state. */
|
|
45
|
+
this.indeterminate = false;
|
|
46
|
+
/** Whether the checkbox card is in an error state. */
|
|
47
|
+
this.error = false;
|
|
48
|
+
this.handleClick = () => this.toggle();
|
|
49
|
+
this.handleKeyDown = (e) => {
|
|
50
|
+
if (e.key === ' ') {
|
|
51
|
+
e.preventDefault();
|
|
52
|
+
this.toggle();
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
super();
|
|
56
|
+
}
|
|
57
|
+
componentWillLoad() {
|
|
58
|
+
this.isDisabled = this.disabled;
|
|
59
|
+
this.isIndeterminate = this.indeterminate;
|
|
60
|
+
this.isChecked = this.checked;
|
|
61
|
+
}
|
|
62
|
+
onDisabledChange(next) {
|
|
63
|
+
this.isDisabled = next;
|
|
64
|
+
}
|
|
65
|
+
onIndeterminateChange(next) {
|
|
66
|
+
this.isIndeterminate = next;
|
|
67
|
+
}
|
|
68
|
+
onCheckedChange(next) {
|
|
69
|
+
this.isChecked = next;
|
|
70
|
+
}
|
|
71
|
+
toggle() {
|
|
72
|
+
if (this.isDisabled)
|
|
73
|
+
return;
|
|
74
|
+
this.isIndeterminate = false;
|
|
75
|
+
this.isChecked = !this.isChecked;
|
|
76
|
+
this.bdsChange.emit({ checked: this.isChecked, value: this.value });
|
|
77
|
+
this.valueChange.emit(this.isChecked);
|
|
78
|
+
}
|
|
79
|
+
get hostClasses() {
|
|
80
|
+
return {
|
|
81
|
+
'bds-checkbox-card': true,
|
|
82
|
+
'bds-checkbox-card--checked': this.isChecked,
|
|
83
|
+
'bds-checkbox-card--indeterminate': this.isIndeterminate,
|
|
84
|
+
'bds-checkbox-card--disabled': this.isDisabled,
|
|
85
|
+
'bds-checkbox-card--error': this.error,
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
// ---------------------------------------------------------------------------
|
|
89
|
+
// Form-associated callbacks (IFormControl)
|
|
90
|
+
// ---------------------------------------------------------------------------
|
|
91
|
+
syncFormValue() {
|
|
92
|
+
setFormValue(this.internals, this.isChecked ? this.value : null);
|
|
93
|
+
}
|
|
94
|
+
formAssociatedCallback() {
|
|
95
|
+
this.syncFormValue();
|
|
96
|
+
}
|
|
97
|
+
formResetCallback() {
|
|
98
|
+
this.isChecked = false;
|
|
99
|
+
this.isIndeterminate = false;
|
|
100
|
+
setFormValue(this.internals, null);
|
|
101
|
+
}
|
|
102
|
+
formStateRestoreCallback(state, _mode) {
|
|
103
|
+
this.isChecked = state === this.value;
|
|
104
|
+
this.syncFormValue();
|
|
105
|
+
}
|
|
106
|
+
formDisabledCallback(disabled) {
|
|
107
|
+
this.isDisabled = disabled;
|
|
108
|
+
}
|
|
109
|
+
render() {
|
|
110
|
+
return (h(Host, { key: '9277e649285e38b491fe55bd8bc4eabf7b0725f8', class: this.hostClasses, role: "checkbox", "aria-checked": this.isIndeterminate ? 'mixed' : `${this.isChecked}`, "aria-disabled": this.isDisabled ? 'true' : 'false', "aria-invalid": this.error ? 'true' : 'false', "aria-label": this.label || this.name || undefined, tabIndex: this.isDisabled ? -1 : 0, onClick: this.handleClick, onKeyDown: this.handleKeyDown }, h("bds-checkbox", { key: 'e87685111aae53e368f37fde53994590bbdc0a69', class: "bds-checkbox-card__checkbox", name: this.name, value: this.value, checked: this.isChecked, indeterminate: this.isIndeterminate, disabled: this.isDisabled, error: this.error, tabIndex: -1, "aria-hidden": "true" }), h("div", { key: 'ca93933dddfbdbbf6ae96a9f0b2f7ec1b4014a3a', class: "bds-checkbox-card__card" }, h("div", { key: '952ca899553bc57a7f6b01cd65607d084c7869a9', class: "bds-checkbox-card__content" }, h("div", { key: 'bf913fdb5d5fab9e81b387113c7198514fdbe8de', class: "bds-checkbox-card__header" }, h("div", { key: 'd885e0eabf9ea9d425160ce88a4d76212b400a1d', class: "bds-checkbox-card__icon" }, h("slot", { key: '9c658f9823aa449e4e9138b2b86e937cc9ce3e1c', name: "icon" })), h("div", { key: 'e7c410ff15cb7bd62c2eba56683cf1b9b24c970a', class: "bds-checkbox-card__title" }, this.label || h("slot", { key: '59cce6d6bd050711af8a55a44252747a593b0a29' }))), h("div", { key: '1a574fde1998ebd5f2940c27dbc5e275ce7bb933', class: "bds-checkbox-card__description" }, h("slot", { key: 'ed53c06534344f9dfec0f0ffba067c16596d24d7', name: "description" }))))));
|
|
111
|
+
}
|
|
112
|
+
static get is() { return "bds-checkbox-card"; }
|
|
113
|
+
static get formAssociated() { return true; }
|
|
114
|
+
static get originalStyleUrls() {
|
|
115
|
+
return {
|
|
116
|
+
"$": ["bds-checkbox-card.scss"]
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
static get styleUrls() {
|
|
120
|
+
return {
|
|
121
|
+
"$": ["bds-checkbox-card.css"]
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
static get properties() {
|
|
125
|
+
return {
|
|
126
|
+
"name": {
|
|
127
|
+
"type": "string",
|
|
128
|
+
"mutable": false,
|
|
129
|
+
"complexType": {
|
|
130
|
+
"original": "ICheckboxCard['name']",
|
|
131
|
+
"resolved": "string",
|
|
132
|
+
"references": {
|
|
133
|
+
"ICheckboxCard": {
|
|
134
|
+
"location": "import",
|
|
135
|
+
"path": "./types/ICheckboxCard",
|
|
136
|
+
"id": "src/components/forms/bds-checkbox-card/types/ICheckboxCard.ts::ICheckboxCard",
|
|
137
|
+
"referenceLocation": "ICheckboxCard"
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"required": true,
|
|
142
|
+
"optional": false,
|
|
143
|
+
"docs": {
|
|
144
|
+
"tags": [],
|
|
145
|
+
"text": "Name of the form control, submitted as a key in the form data."
|
|
146
|
+
},
|
|
147
|
+
"getter": false,
|
|
148
|
+
"setter": false,
|
|
149
|
+
"reflect": true,
|
|
150
|
+
"attribute": "name"
|
|
151
|
+
},
|
|
152
|
+
"disabled": {
|
|
153
|
+
"type": "boolean",
|
|
154
|
+
"mutable": false,
|
|
155
|
+
"complexType": {
|
|
156
|
+
"original": "ICheckboxCard['disabled']",
|
|
157
|
+
"resolved": "boolean",
|
|
158
|
+
"references": {
|
|
159
|
+
"ICheckboxCard": {
|
|
160
|
+
"location": "import",
|
|
161
|
+
"path": "./types/ICheckboxCard",
|
|
162
|
+
"id": "src/components/forms/bds-checkbox-card/types/ICheckboxCard.ts::ICheckboxCard",
|
|
163
|
+
"referenceLocation": "ICheckboxCard"
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"required": false,
|
|
168
|
+
"optional": false,
|
|
169
|
+
"docs": {
|
|
170
|
+
"tags": [],
|
|
171
|
+
"text": "Disables the control."
|
|
172
|
+
},
|
|
173
|
+
"getter": false,
|
|
174
|
+
"setter": false,
|
|
175
|
+
"reflect": true,
|
|
176
|
+
"attribute": "disabled",
|
|
177
|
+
"defaultValue": "false"
|
|
178
|
+
},
|
|
179
|
+
"required": {
|
|
180
|
+
"type": "boolean",
|
|
181
|
+
"mutable": false,
|
|
182
|
+
"complexType": {
|
|
183
|
+
"original": "ICheckboxCard['required']",
|
|
184
|
+
"resolved": "boolean",
|
|
185
|
+
"references": {
|
|
186
|
+
"ICheckboxCard": {
|
|
187
|
+
"location": "import",
|
|
188
|
+
"path": "./types/ICheckboxCard",
|
|
189
|
+
"id": "src/components/forms/bds-checkbox-card/types/ICheckboxCard.ts::ICheckboxCard",
|
|
190
|
+
"referenceLocation": "ICheckboxCard"
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"required": false,
|
|
195
|
+
"optional": false,
|
|
196
|
+
"docs": {
|
|
197
|
+
"tags": [],
|
|
198
|
+
"text": "Marks the control as required for form submission."
|
|
199
|
+
},
|
|
200
|
+
"getter": false,
|
|
201
|
+
"setter": false,
|
|
202
|
+
"reflect": true,
|
|
203
|
+
"attribute": "required",
|
|
204
|
+
"defaultValue": "false"
|
|
205
|
+
},
|
|
206
|
+
"value": {
|
|
207
|
+
"type": "string",
|
|
208
|
+
"mutable": false,
|
|
209
|
+
"complexType": {
|
|
210
|
+
"original": "ICheckboxCard['value']",
|
|
211
|
+
"resolved": "string",
|
|
212
|
+
"references": {
|
|
213
|
+
"ICheckboxCard": {
|
|
214
|
+
"location": "import",
|
|
215
|
+
"path": "./types/ICheckboxCard",
|
|
216
|
+
"id": "src/components/forms/bds-checkbox-card/types/ICheckboxCard.ts::ICheckboxCard",
|
|
217
|
+
"referenceLocation": "ICheckboxCard"
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"required": false,
|
|
222
|
+
"optional": false,
|
|
223
|
+
"docs": {
|
|
224
|
+
"tags": [],
|
|
225
|
+
"text": "Value submitted with the form when this checkbox is selected."
|
|
226
|
+
},
|
|
227
|
+
"getter": false,
|
|
228
|
+
"setter": false,
|
|
229
|
+
"reflect": true,
|
|
230
|
+
"attribute": "value",
|
|
231
|
+
"defaultValue": "'on'"
|
|
232
|
+
},
|
|
233
|
+
"label": {
|
|
234
|
+
"type": "string",
|
|
235
|
+
"mutable": false,
|
|
236
|
+
"complexType": {
|
|
237
|
+
"original": "ICheckboxCard['label']",
|
|
238
|
+
"resolved": "string",
|
|
239
|
+
"references": {
|
|
240
|
+
"ICheckboxCard": {
|
|
241
|
+
"location": "import",
|
|
242
|
+
"path": "./types/ICheckboxCard",
|
|
243
|
+
"id": "src/components/forms/bds-checkbox-card/types/ICheckboxCard.ts::ICheckboxCard",
|
|
244
|
+
"referenceLocation": "ICheckboxCard"
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
"required": false,
|
|
249
|
+
"optional": false,
|
|
250
|
+
"docs": {
|
|
251
|
+
"tags": [],
|
|
252
|
+
"text": "Label text displayed next to the checkbox indicator. Falls back to the default slot when empty."
|
|
253
|
+
},
|
|
254
|
+
"getter": false,
|
|
255
|
+
"setter": false,
|
|
256
|
+
"reflect": false,
|
|
257
|
+
"attribute": "label",
|
|
258
|
+
"defaultValue": "''"
|
|
259
|
+
},
|
|
260
|
+
"checked": {
|
|
261
|
+
"type": "boolean",
|
|
262
|
+
"mutable": true,
|
|
263
|
+
"complexType": {
|
|
264
|
+
"original": "ICheckboxCard['checked']",
|
|
265
|
+
"resolved": "boolean",
|
|
266
|
+
"references": {
|
|
267
|
+
"ICheckboxCard": {
|
|
268
|
+
"location": "import",
|
|
269
|
+
"path": "./types/ICheckboxCard",
|
|
270
|
+
"id": "src/components/forms/bds-checkbox-card/types/ICheckboxCard.ts::ICheckboxCard",
|
|
271
|
+
"referenceLocation": "ICheckboxCard"
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
"required": false,
|
|
276
|
+
"optional": false,
|
|
277
|
+
"docs": {
|
|
278
|
+
"tags": [],
|
|
279
|
+
"text": "Whether this checkbox card is selected."
|
|
280
|
+
},
|
|
281
|
+
"getter": false,
|
|
282
|
+
"setter": false,
|
|
283
|
+
"reflect": true,
|
|
284
|
+
"attribute": "checked",
|
|
285
|
+
"defaultValue": "false"
|
|
286
|
+
},
|
|
287
|
+
"indeterminate": {
|
|
288
|
+
"type": "boolean",
|
|
289
|
+
"mutable": true,
|
|
290
|
+
"complexType": {
|
|
291
|
+
"original": "ICheckboxCard['indeterminate']",
|
|
292
|
+
"resolved": "boolean",
|
|
293
|
+
"references": {
|
|
294
|
+
"ICheckboxCard": {
|
|
295
|
+
"location": "import",
|
|
296
|
+
"path": "./types/ICheckboxCard",
|
|
297
|
+
"id": "src/components/forms/bds-checkbox-card/types/ICheckboxCard.ts::ICheckboxCard",
|
|
298
|
+
"referenceLocation": "ICheckboxCard"
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
"required": false,
|
|
303
|
+
"optional": false,
|
|
304
|
+
"docs": {
|
|
305
|
+
"tags": [],
|
|
306
|
+
"text": "Whether the checkbox card shows an indeterminate visual state."
|
|
307
|
+
},
|
|
308
|
+
"getter": false,
|
|
309
|
+
"setter": false,
|
|
310
|
+
"reflect": true,
|
|
311
|
+
"attribute": "indeterminate",
|
|
312
|
+
"defaultValue": "false"
|
|
313
|
+
},
|
|
314
|
+
"error": {
|
|
315
|
+
"type": "boolean",
|
|
316
|
+
"mutable": false,
|
|
317
|
+
"complexType": {
|
|
318
|
+
"original": "ICheckboxCard['error']",
|
|
319
|
+
"resolved": "boolean",
|
|
320
|
+
"references": {
|
|
321
|
+
"ICheckboxCard": {
|
|
322
|
+
"location": "import",
|
|
323
|
+
"path": "./types/ICheckboxCard",
|
|
324
|
+
"id": "src/components/forms/bds-checkbox-card/types/ICheckboxCard.ts::ICheckboxCard",
|
|
325
|
+
"referenceLocation": "ICheckboxCard"
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
"required": false,
|
|
330
|
+
"optional": false,
|
|
331
|
+
"docs": {
|
|
332
|
+
"tags": [],
|
|
333
|
+
"text": "Whether the checkbox card is in an error state."
|
|
334
|
+
},
|
|
335
|
+
"getter": false,
|
|
336
|
+
"setter": false,
|
|
337
|
+
"reflect": true,
|
|
338
|
+
"attribute": "error",
|
|
339
|
+
"defaultValue": "false"
|
|
340
|
+
}
|
|
341
|
+
};
|
|
342
|
+
}
|
|
343
|
+
static get states() {
|
|
344
|
+
return {
|
|
345
|
+
"isDisabled": {},
|
|
346
|
+
"isIndeterminate": {},
|
|
347
|
+
"isChecked": {}
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
static get events() {
|
|
351
|
+
return [{
|
|
352
|
+
"method": "valueChange",
|
|
353
|
+
"name": "valueChange",
|
|
354
|
+
"bubbles": true,
|
|
355
|
+
"cancelable": true,
|
|
356
|
+
"composed": true,
|
|
357
|
+
"docs": {
|
|
358
|
+
"tags": [],
|
|
359
|
+
"text": "Emitted when the checked state changes. Useful for 2-way binding / v-model."
|
|
360
|
+
},
|
|
361
|
+
"complexType": {
|
|
362
|
+
"original": "any",
|
|
363
|
+
"resolved": "any",
|
|
364
|
+
"references": {}
|
|
365
|
+
}
|
|
366
|
+
}, {
|
|
367
|
+
"method": "bdsChange",
|
|
368
|
+
"name": "bdsChange",
|
|
369
|
+
"bubbles": true,
|
|
370
|
+
"cancelable": true,
|
|
371
|
+
"composed": true,
|
|
372
|
+
"docs": {
|
|
373
|
+
"tags": [],
|
|
374
|
+
"text": "Emitted when the user toggles this checkbox card."
|
|
375
|
+
},
|
|
376
|
+
"complexType": {
|
|
377
|
+
"original": "any",
|
|
378
|
+
"resolved": "any",
|
|
379
|
+
"references": {}
|
|
380
|
+
}
|
|
381
|
+
}];
|
|
382
|
+
}
|
|
383
|
+
static get elementRef() { return "el"; }
|
|
384
|
+
static get watchers() {
|
|
385
|
+
return [{
|
|
386
|
+
"propName": "disabled",
|
|
387
|
+
"methodName": "onDisabledChange"
|
|
388
|
+
}, {
|
|
389
|
+
"propName": "indeterminate",
|
|
390
|
+
"methodName": "onIndeterminateChange"
|
|
391
|
+
}, {
|
|
392
|
+
"propName": "checked",
|
|
393
|
+
"methodName": "onCheckedChange"
|
|
394
|
+
}];
|
|
395
|
+
}
|
|
396
|
+
static get attachInternalsMemberName() { return "internals"; }
|
|
397
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -182,7 +182,7 @@ export class BdsFlag {
|
|
|
182
182
|
const flagContentClass = this.flagContentClass;
|
|
183
183
|
const flagClass = this.flagClass;
|
|
184
184
|
const flagStyle = !this.isGlobal ? { backgroundImage: `url(${this.flagUrl(flag)})` } : {};
|
|
185
|
-
return (h(Host, { key: '
|
|
185
|
+
return (h(Host, { key: 'a8a3ef0fefd3e7b1d4c9fd40bf5ea82ce9000815', class: flagClass, "aria-label": countryName, role: "img" }, flag && h("span", { key: 'ea653c06af2a3c3341c95acd1750bdbbbd08f268', class: flagContentClass, style: flagStyle, "aria-hidden": "true" }), h("span", { key: '289fcc0f0d247f02b79493fd34aca190c985ed45', class: "bds-flag__country", "aria-hidden": "true" }, countryName)));
|
|
186
186
|
}
|
|
187
187
|
static get is() { return "bds-flag"; }
|
|
188
188
|
static get originalStyleUrls() {
|