@adyen/bento-vue3 1.26.0 → 1.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/components.d.ts +8 -0
- package/dist/@types/packages/core/src/utils/ts/storybook.d.ts +12 -0
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/code-snippet/utils/get-lang-loader.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/dashed-underline/dashed-underline.vue.d.ts +91 -0
- package/dist/@types/packages/vue2/src/components/dashed-underline/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-static-icon/data-grid-static-icon.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-static-icon/data-grid-static-icon.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-static-icon/data-grid-static-icon.vue.d.ts +65 -0
- package/dist/@types/packages/vue2/src/components/data-grid/components/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-hovering/use-column-hovering.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-reorderer/use-column-reorderer.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-config-settings/use-config-settings.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-resizer.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +15 -0
- package/dist/@types/packages/vue2/src/components/data-grid/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +1 -18
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +12 -0
- package/dist/@types/packages/vue2/src/components/internal/avatar/avatar.vue.d.ts +38 -42
- package/dist/@types/packages/vue2/src/components/internal/radio-input/index.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/internal/radio-input/radio-input.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/segmented-control/components/segmented-control-button/segmented-control-button.vue.d.ts +59 -85
- package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.types.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.vue.d.ts +48 -80
- package/dist/@types/packages/vue2/src/components/status/status.vue.d.ts +19 -16
- package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +36 -54
- package/dist/@types/packages/vue2/src/components/structured-list/structured-list.vue.d.ts +27 -22
- package/dist/@types/packages/vue2/src/components/tabs/tabs.vue.d.ts +76 -1
- package/dist/@types/packages/vue2/src/components/tutorial/tutorial.vue.d.ts +21 -2
- package/dist/@types/packages/vue2/src/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/templates/dashboard-template/components/dashboard-section/dashboard-section.vue.d.ts +78 -0
- package/dist/@types/packages/vue2/src/templates/dashboard-template/dashboard-template.types.d.ts +8 -0
- package/dist/@types/packages/vue2/src/templates/dashboard-template/dashboard-template.vue.d.ts +103 -0
- package/dist/@types/packages/vue2/src/templates/dashboard-template/index.d.ts +3 -0
- package/dist/@types/packages/vue2/src/utils/ts/storybook.d.ts +1 -12
- package/dist/accordion.js +3 -125
- package/dist/accordion.js.map +1 -1
- package/dist/action-bar.js +2 -270
- package/dist/action-bar.js.map +1 -1
- package/dist/alert.js +5 -181
- package/dist/alert.js.map +1 -1
- package/dist/assets/{index10.css → accordion-item.css} +1 -1
- package/dist/assets/{index17.css → action-bar.css} +1 -1
- package/dist/assets/alert.css +1 -0
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/{index26.css → card.css} +1 -1
- package/dist/assets/checkbox-input.css +1 -1
- package/dist/assets/{index14.css → code-snippet.css} +1 -1
- package/dist/assets/dashboard-section.css +1 -0
- package/dist/assets/dashed-underline.css +1 -0
- package/dist/assets/data-grid-template.css +1 -0
- package/dist/assets/data-grid.css +1 -0
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/filter-bar.css +1 -0
- package/dist/assets/{index43.css → form-layout-title.css} +1 -1
- package/dist/assets/{index39.css → input-field.css} +1 -1
- package/dist/assets/link.css +1 -0
- package/dist/assets/listbox-option-tag.css +1 -1
- package/dist/assets/{index7.css → menu.css} +1 -1
- package/dist/assets/{index27.css → modal-fullscreen.css} +1 -1
- package/dist/assets/{index19.css → popover.css} +1 -1
- package/dist/assets/radio-input.css +1 -1
- package/dist/assets/segmented-control.css +1 -0
- package/dist/assets/selection-card-group.css +1 -0
- package/dist/assets/{index44.css → sidepanel.css} +1 -1
- package/dist/assets/status.css +1 -0
- package/dist/assets/structured-list-item.css +1 -0
- package/dist/assets/{index32.css → tabs.css} +1 -1
- package/dist/assets/toggle.css +1 -0
- package/dist/assets/tutorial.css +1 -0
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +13 -14
- package/dist/badge.js.map +1 -1
- package/dist/button.js +14 -89
- package/dist/button.js.map +1 -1
- package/dist/card.js +4 -203
- package/dist/card.js.map +1 -1
- package/dist/checkbox.js +8 -194
- package/dist/checkbox.js.map +1 -1
- package/dist/chunks/1-generic-use.CZhwP2Yc.js +5 -0
- package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +1 -0
- package/dist/chunks/1-generic-use.R6x8PEGA.js +5 -0
- package/dist/chunks/1-generic-use.R6x8PEGA.js.map +1 -0
- package/dist/chunks/2-generic-use.CNKjB4B7.js +5 -0
- package/dist/chunks/2-generic-use.CNKjB4B7.js.map +1 -0
- package/dist/chunks/2-generic-use.w0fUhovx.js +5 -0
- package/dist/chunks/2-generic-use.w0fUhovx.js.map +1 -0
- package/dist/chunks/3-generic-use.BLEzR04g.js +5 -0
- package/dist/chunks/3-generic-use.BLEzR04g.js.map +1 -0
- package/dist/chunks/3-generic-use.D3NFHgI4.js +5 -0
- package/dist/chunks/3-generic-use.D3NFHgI4.js.map +1 -0
- package/dist/chunks/4-generic-use.CULEpvgj.js +5 -0
- package/dist/chunks/4-generic-use.CULEpvgj.js.map +1 -0
- package/dist/chunks/4-generic-use.D82y3n39.js +5 -0
- package/dist/chunks/4-generic-use.D82y3n39.js.map +1 -0
- package/dist/chunks/{_plugin-vue_export-helper.dad06003.js → _plugin-vue_export-helper.CHgC5LLL.js} +1 -1
- package/dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js.map +1 -0
- package/dist/chunks/accordion-item.BcfGYvjn.js +126 -0
- package/dist/chunks/accordion-item.BcfGYvjn.js.map +1 -0
- package/dist/chunks/action-bar.BvAtk-jI.js +188 -0
- package/dist/chunks/action-bar.BvAtk-jI.js.map +1 -0
- package/dist/chunks/adding-payment-methods.BJZLPxtM.js +5 -0
- package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +1 -0
- package/dist/chunks/adding-payment-methods.Dle8zt43.js +5 -0
- package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +1 -0
- package/dist/chunks/adyen-giving.Ffw_DlJK.js +5 -0
- package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +1 -0
- package/dist/chunks/adyen-giving.LiKHj_jY.js +5 -0
- package/dist/chunks/adyen-giving.LiKHj_jY.js.map +1 -0
- package/dist/chunks/alert.C0gIf7Ka.js +162 -0
- package/dist/chunks/alert.C0gIf7Ka.js.map +1 -0
- package/dist/chunks/{aria-label.ac9651a5.js → aria-label.CaUURpnB.js} +1 -1
- package/dist/chunks/{aria-label.ac9651a5.js.map → aria-label.CaUURpnB.js.map} +1 -1
- package/dist/chunks/avatar-image.DO4w_loj.js +61 -0
- package/dist/chunks/avatar-image.DO4w_loj.js.map +1 -0
- package/dist/chunks/{base-button.e84acf30.js → base-button.ewkxHD6W.js} +24 -25
- package/dist/chunks/{base-button.e84acf30.js.map → base-button.ewkxHD6W.js.map} +1 -1
- package/dist/chunks/{base-modal.29e062d0.js → base-modal.BgYlnM_Q.js} +81 -83
- package/dist/chunks/{base-modal.29e062d0.js.map → base-modal.BgYlnM_Q.js.map} +1 -1
- package/dist/chunks/{base-modal.keys.b08a6bdf.js → base-modal.keys.C2PQXcE2.js} +1 -1
- package/dist/chunks/{base-modal.keys.b08a6bdf.js.map → base-modal.keys.C2PQXcE2.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.7fce47a2.js → button-actions-with-menu.C14zvgVo.js} +14 -15
- package/dist/chunks/{button-actions-with-menu.7fce47a2.js.map → button-actions-with-menu.C14zvgVo.js.map} +1 -1
- package/dist/chunks/{button-actions.642b37de.js → button-actions.hGhRdgC2.js} +41 -40
- package/dist/chunks/button-actions.hGhRdgC2.js.map +1 -0
- package/dist/chunks/{button.60dad578.js → button.DoqHEvPh.js} +38 -38
- package/dist/chunks/button.DoqHEvPh.js.map +1 -0
- package/dist/chunks/{calendar.f38cdab9.js → calendar.CwULNbSL.js} +285 -326
- package/dist/chunks/{calendar.f38cdab9.js.map → calendar.CwULNbSL.js.map} +1 -1
- package/dist/chunks/card.C7zLKdcy.js +205 -0
- package/dist/chunks/card.C7zLKdcy.js.map +1 -0
- package/dist/chunks/checkbox-group.BcT-eZ2p.js +192 -0
- package/dist/chunks/checkbox-group.BcT-eZ2p.js.map +1 -0
- package/dist/chunks/{checkbox-input.ab758a81.js → checkbox-input.CR1lHf7f.js} +43 -43
- package/dist/chunks/{checkbox-input.ab758a81.js.map → checkbox-input.CR1lHf7f.js.map} +1 -1
- package/dist/chunks/{checkbox.f55ee3a5.js → checkbox.xjIFibII.js} +38 -39
- package/dist/chunks/{checkbox.f55ee3a5.js.map → checkbox.xjIFibII.js.map} +1 -1
- package/dist/chunks/checkmark-circle-fill.D29b-JWj.js +44 -0
- package/dist/chunks/{checkmark-circle-fill.f3a69c6a.js.map → checkmark-circle-fill.D29b-JWj.js.map} +1 -1
- package/dist/chunks/{checkmark-small.d7e31e5e.js → checkmark-small.BCeGkayS.js} +10 -10
- package/dist/chunks/{checkmark-small.d7e31e5e.js.map → checkmark-small.BCeGkayS.js.map} +1 -1
- package/dist/chunks/{chevron-left.963d35e9.js → chevron-left.4JHuWe7i.js} +18 -18
- package/dist/chunks/{chevron-left.963d35e9.js.map → chevron-left.4JHuWe7i.js.map} +1 -1
- package/dist/chunks/{chevron-up.05ca20db.js → chevron-up.5-KtIp8i.js} +19 -19
- package/dist/chunks/{chevron-up.05ca20db.js.map → chevron-up.5-KtIp8i.js.map} +1 -1
- package/dist/chunks/click-outside.DABh6NLr.js +23 -0
- package/dist/chunks/click-outside.DABh6NLr.js.map +1 -0
- package/dist/chunks/code-snippet.e8bxDBCO.js +1052 -0
- package/dist/chunks/code-snippet.e8bxDBCO.js.map +1 -0
- package/dist/chunks/{controls-group.9e0f17b2.js → controls-group.DWu8NqKL.js} +17 -18
- package/dist/chunks/{controls-group.9e0f17b2.js.map → controls-group.DWu8NqKL.js.map} +1 -1
- package/dist/chunks/{copy.852d4cb8.js → copy.BhO7oRgC.js} +39 -40
- package/dist/chunks/{copy.852d4cb8.js.map → copy.BhO7oRgC.js.map} +1 -1
- package/dist/chunks/{country.types.002caff2.js → country.types.Br0AjxGy.js} +5 -5
- package/dist/chunks/{country.types.002caff2.js.map → country.types.Br0AjxGy.js.map} +1 -1
- package/dist/chunks/country.vX94O3uR.js +98 -0
- package/dist/chunks/country.vX94O3uR.js.map +1 -0
- package/dist/chunks/{cross-circle-fill.81925c7f.js → cross-circle-fill.vLaelNTN.js} +12 -12
- package/dist/chunks/{cross-circle-fill.81925c7f.js.map → cross-circle-fill.vLaelNTN.js.map} +1 -1
- package/dist/chunks/cross-small.48UCoOqB.js +29 -0
- package/dist/chunks/{cross-small.9bc6a02f.js.map → cross-small.48UCoOqB.js.map} +1 -1
- package/dist/chunks/cross.BlL0FyHo.js +29 -0
- package/dist/chunks/{cross.a60533f6.js.map → cross.BlL0FyHo.js.map} +1 -1
- package/dist/chunks/currency.CgVd9fQN.js +121 -0
- package/dist/chunks/currency.CgVd9fQN.js.map +1 -0
- package/dist/chunks/dashboard-section.DKeDjvkB.js +167 -0
- package/dist/chunks/dashboard-section.DKeDjvkB.js.map +1 -0
- package/dist/chunks/dashed-underline.DGTW7Y_-.js +79 -0
- package/dist/chunks/dashed-underline.DGTW7Y_-.js.map +1 -0
- package/dist/chunks/data-grid-template.6Nls-D4o.js +89 -0
- package/dist/chunks/data-grid-template.6Nls-D4o.js.map +1 -0
- package/dist/chunks/{data-grid-template.keys.a819a991.js → data-grid-template.keys.2_AkxuNT.js} +1 -1
- package/dist/chunks/{data-grid-template.keys.a819a991.js.map → data-grid-template.keys.2_AkxuNT.js.map} +1 -1
- package/dist/chunks/data-grid.BwfZhc09.js +2733 -0
- package/dist/chunks/data-grid.BwfZhc09.js.map +1 -0
- package/dist/chunks/{date-input.9186a0bf.js → date-input.BqBdAO1E.js} +1 -1
- package/dist/chunks/{date-input.9186a0bf.js.map → date-input.BqBdAO1E.js.map} +1 -1
- package/dist/chunks/date-picker.CoPmllNh.js +273 -0
- package/dist/chunks/date-picker.CoPmllNh.js.map +1 -0
- package/dist/chunks/{index.96cd0d4c.js → date-range-picker.CiwDo2jW.js} +216 -218
- package/dist/chunks/date-range-picker.CiwDo2jW.js.map +1 -0
- package/dist/chunks/{index.146f967e.js → date.2ndGvIGE.js} +36 -41
- package/dist/chunks/date.2ndGvIGE.js.map +1 -0
- package/dist/chunks/{debounce.b5ef6acf.js → debounce.DUTu11PS.js} +1 -1
- package/dist/chunks/{debounce.b5ef6acf.js.map → debounce.DUTu11PS.js.map} +1 -1
- package/dist/chunks/{dialog-page.ea67bb14.js → dialog-page.BLqqR73w.js} +48 -49
- package/dist/chunks/{dialog-page.ea67bb14.js.map → dialog-page.BLqqR73w.js.map} +1 -1
- package/dist/chunks/divider.CnwfddJD.js +22 -0
- package/dist/chunks/divider.CnwfddJD.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.ad5063c2.js → dropdown-default-textbox.-Oy2eT40.js} +75 -77
- package/dist/chunks/{dropdown-default-textbox.ad5063c2.js.map → dropdown-default-textbox.-Oy2eT40.js.map} +1 -1
- package/dist/chunks/dropdown-tag.C-LxVWlt.js +201 -0
- package/dist/chunks/dropdown-tag.C-LxVWlt.js.map +1 -0
- package/dist/chunks/{dropdown.d8587f36.js → dropdown.CxBlK83Q.js} +221 -233
- package/dist/chunks/dropdown.CxBlK83Q.js.map +1 -0
- package/dist/chunks/empty-state.BBxgpI-D.js +185 -0
- package/dist/chunks/empty-state.BBxgpI-D.js.map +1 -0
- package/dist/chunks/{error-message.3fb5573a.js → error-message.DyjHMyEZ.js} +30 -32
- package/dist/chunks/{error-message.3fb5573a.js.map → error-message.DyjHMyEZ.js.map} +1 -1
- package/dist/chunks/events.CMzGybJJ.js +47 -0
- package/dist/chunks/events.CMzGybJJ.js.map +1 -0
- package/dist/chunks/filter-bar.U2ZcPmSU.js +2775 -0
- package/dist/chunks/filter-bar.U2ZcPmSU.js.map +1 -0
- package/dist/chunks/{fixed-scroller.59aefd1b.js → fixed-scroller.DV7HtKDr.js} +20 -21
- package/dist/chunks/{fixed-scroller.59aefd1b.js.map → fixed-scroller.DV7HtKDr.js.map} +1 -1
- package/dist/chunks/{index.8be283d5.js → focus-trap.CwkbHfT8.js} +20 -20
- package/dist/chunks/focus-trap.CwkbHfT8.js.map +1 -0
- package/dist/chunks/{footer-actions.89e68269.js → footer-actions.D9nQFagi.js} +20 -21
- package/dist/chunks/{footer-actions.89e68269.js.map → footer-actions.D9nQFagi.js.map} +1 -1
- package/dist/chunks/form-layout-title.4Gz8-dJv.js +204 -0
- package/dist/chunks/form-layout-title.4Gz8-dJv.js.map +1 -0
- package/dist/chunks/{form-layout.types.a7a1438d.js → form-layout.types.D3EKzbE7.js} +1 -1
- package/dist/chunks/{form-layout.types.a7a1438d.js.map → form-layout.types.D3EKzbE7.js.map} +1 -1
- package/dist/chunks/{get-slot-text.bead058f.js → get-slot-text.D5WBGjic.js} +1 -1
- package/dist/chunks/{get-slot-text.bead058f.js.map → get-slot-text.D5WBGjic.js.map} +1 -1
- package/dist/chunks/{grid-layout.c2fe3057.js → grid-layout.CqLbbEzI.js} +15 -15
- package/dist/chunks/{grid-layout.c2fe3057.js.map → grid-layout.CqLbbEzI.js.map} +1 -1
- package/dist/chunks/header.Cr7115vM.js +307 -0
- package/dist/chunks/header.Cr7115vM.js.map +1 -0
- package/dist/chunks/{i18n.f7e6533e.js → i18n.DY5YXG5f.js} +46 -89
- package/dist/chunks/{i18n.f7e6533e.js.map → i18n.DY5YXG5f.js.map} +1 -1
- package/dist/chunks/image.0KzfycGE.js +78 -0
- package/dist/chunks/image.0KzfycGE.js.map +1 -0
- package/dist/chunks/{index.fdf12170.js → index.B_EJflcs.js} +2 -2
- package/dist/chunks/{index.fdf12170.js.map → index.B_EJflcs.js.map} +1 -1
- package/dist/chunks/{index.f55fdc32.js → index.B_UZQ6qF.js} +209 -243
- package/dist/chunks/{index.f55fdc32.js.map → index.B_UZQ6qF.js.map} +1 -1
- package/dist/chunks/index.Dytpif0G.js +125 -0
- package/dist/chunks/index.Dytpif0G.js.map +1 -0
- package/dist/chunks/{index.d80206ed.js → index.Z84QE0E2.js} +2 -2
- package/dist/chunks/{index.d80206ed.js.map → index.Z84QE0E2.js.map} +1 -1
- package/dist/chunks/{index.86453263.js → index.xqFSZOAb.js} +2 -2
- package/dist/chunks/{index.86453263.js.map → index.xqFSZOAb.js.map} +1 -1
- package/dist/chunks/info-icon.DvL1e5Iu.js +45 -0
- package/dist/chunks/info-icon.DvL1e5Iu.js.map +1 -0
- package/dist/chunks/{info.205b4496.js → info.CNegCnli.js} +17 -17
- package/dist/chunks/{info.205b4496.js.map → info.CNegCnli.js.map} +1 -1
- package/dist/chunks/input-field.iH1ICJkQ.js +344 -0
- package/dist/chunks/input-field.iH1ICJkQ.js.map +1 -0
- package/dist/chunks/internal-error.BLZodVBE.js +5 -0
- package/dist/chunks/internal-error.BLZodVBE.js.map +1 -0
- package/dist/chunks/internal-error.BmrwJFpR.js +5 -0
- package/dist/chunks/internal-error.BmrwJFpR.js.map +1 -0
- package/dist/chunks/{keyboard-navigation.ca47dfa8.js → keyboard-navigation.Clz1jOaA.js} +2 -2
- package/dist/chunks/{keyboard-navigation.ca47dfa8.js.map → keyboard-navigation.Clz1jOaA.js.map} +1 -1
- package/dist/chunks/link.DeNN3Amu.js +111 -0
- package/dist/chunks/link.DeNN3Amu.js.map +1 -0
- package/dist/chunks/listbox-option-tag.Bv4-hXnG.js +94 -0
- package/dist/chunks/listbox-option-tag.Bv4-hXnG.js.map +1 -0
- package/dist/chunks/{loading-button.0391ad8b.js → loading-button.BI32pZiW.js} +19 -20
- package/dist/chunks/{loading-button.0391ad8b.js.map → loading-button.BI32pZiW.js.map} +1 -1
- package/dist/chunks/loading-indicator.BFMEf39U.js +44 -0
- package/dist/chunks/loading-indicator.BFMEf39U.js.map +1 -0
- package/dist/chunks/{index.030c1dd7.js → menu.DN-xhDQU.js} +80 -82
- package/dist/chunks/menu.DN-xhDQU.js.map +1 -0
- package/dist/chunks/modal-fullscreen.CeogBGfr.js +264 -0
- package/dist/chunks/modal-fullscreen.CeogBGfr.js.map +1 -0
- package/dist/chunks/{modal-fullscreen.keys.b9f31632.js → modal-fullscreen.keys.CMba3hYp.js} +1 -1
- package/dist/chunks/{modal-fullscreen.keys.b9f31632.js.map → modal-fullscreen.keys.CMba3hYp.js.map} +1 -1
- package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.BBef1Rl9.js +495 -0
- package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.BBef1Rl9.js.map +1 -0
- package/dist/chunks/no-results-found.Bg_ZcEid.js +5 -0
- package/dist/chunks/no-results-found.Bg_ZcEid.js.map +1 -0
- package/dist/chunks/no-results-found.BqvYsBR6.js +5 -0
- package/dist/chunks/no-results-found.BqvYsBR6.js.map +1 -0
- package/dist/chunks/notifications-cleared.BMZk37uf.js +5 -0
- package/dist/chunks/notifications-cleared.BMZk37uf.js.map +1 -0
- package/dist/chunks/notifications-cleared.C7W9ZXY7.js +5 -0
- package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +1 -0
- package/dist/chunks/{on-click-outside.3e0c3e2a.js → on-click-outside.CcNG5w7_.js} +1 -1
- package/dist/chunks/{on-click-outside.3e0c3e2a.js.map → on-click-outside.CcNG5w7_.js.map} +1 -1
- package/dist/chunks/page-not-found.COJLPVaU.js +5 -0
- package/dist/chunks/page-not-found.COJLPVaU.js.map +1 -0
- package/dist/chunks/page-not-found.DWW6W-PZ.js +5 -0
- package/dist/chunks/page-not-found.DWW6W-PZ.js.map +1 -0
- package/dist/chunks/pagination.BwG1MF4j.js +633 -0
- package/dist/chunks/pagination.BwG1MF4j.js.map +1 -0
- package/dist/chunks/{payment-method.31a68b9b.js → payment-method.NCItxw1D.js} +26 -27
- package/dist/chunks/{payment-method.31a68b9b.js.map → payment-method.NCItxw1D.js.map} +1 -1
- package/dist/chunks/payment-method.types.CJKfZQN5.js +5 -0
- package/dist/chunks/payment-method.types.CJKfZQN5.js.map +1 -0
- package/dist/chunks/planned-maintenance.C61sWB9h.js +5 -0
- package/dist/chunks/planned-maintenance.C61sWB9h.js.map +1 -0
- package/dist/chunks/planned-maintenance.jmWYTdet.js +5 -0
- package/dist/chunks/planned-maintenance.jmWYTdet.js.map +1 -0
- package/dist/chunks/{index.5bdebf9d.js → popover.DRb2GW7t.js} +48 -49
- package/dist/chunks/popover.DRb2GW7t.js.map +1 -0
- package/dist/chunks/{index.9bf04b01.js → popper-container.B76aE-3-.js} +180 -182
- package/dist/chunks/popper-container.B76aE-3-.js.map +1 -0
- package/dist/chunks/radio-group.B9HCffiZ.js +296 -0
- package/dist/chunks/radio-group.B9HCffiZ.js.map +1 -0
- package/dist/chunks/{radio-input.1dd15424.js → radio-input.BEzK-fgR.js} +13 -14
- package/dist/chunks/radio-input.BEzK-fgR.js.map +1 -0
- package/dist/chunks/referrals.BvtT-kQS.js +5 -0
- package/dist/chunks/referrals.BvtT-kQS.js.map +1 -0
- package/dist/chunks/referrals.aX8WZigH.js +5 -0
- package/dist/chunks/referrals.aX8WZigH.js.map +1 -0
- package/dist/chunks/refresh.BfxRdaQb.js +29 -0
- package/dist/chunks/{refresh.53691839.js.map → refresh.BfxRdaQb.js.map} +1 -1
- package/dist/chunks/{resize.a041304d.js → resize.Bqks3WUm.js} +1 -1
- package/dist/chunks/{resize.a041304d.js.map → resize.Bqks3WUm.js.map} +1 -1
- package/dist/chunks/search-bar.DxskyM4e.js +107 -0
- package/dist/chunks/search-bar.DxskyM4e.js.map +1 -0
- package/dist/chunks/{search.4e4ee4dd.js → search.0lh99z1F.js} +16 -16
- package/dist/chunks/{search.4e4ee4dd.js.map → search.0lh99z1F.js.map} +1 -1
- package/dist/chunks/secondary-nav.D66nxbU-.js +112 -0
- package/dist/chunks/secondary-nav.D66nxbU-.js.map +1 -0
- package/dist/chunks/segmented-control.NnFfAdTq.js +142 -0
- package/dist/chunks/segmented-control.NnFfAdTq.js.map +1 -0
- package/dist/chunks/segmented-control.types.BHRLV8KU.js +5 -0
- package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -0
- package/dist/chunks/selection-card-group.C-YLePO4.js +385 -0
- package/dist/chunks/selection-card-group.C-YLePO4.js.map +1 -0
- package/dist/chunks/sidepanel.B-LtA15e.js +230 -0
- package/dist/chunks/sidepanel.B-LtA15e.js.map +1 -0
- package/dist/chunks/{sidepanel.keys.1ed8a57c.js → sidepanel.keys.R0DKQuYx.js} +1 -1
- package/dist/chunks/{sidepanel.keys.1ed8a57c.js.map → sidepanel.keys.R0DKQuYx.js.map} +1 -1
- package/dist/chunks/status.types.Bqdcr1WO.js +42 -0
- package/dist/chunks/status.types.Bqdcr1WO.js.map +1 -0
- package/dist/chunks/step.CVoaYmVZ.js +284 -0
- package/dist/chunks/step.CVoaYmVZ.js.map +1 -0
- package/dist/chunks/structured-list-item.DQiPKhOI.js +101 -0
- package/dist/chunks/structured-list-item.DQiPKhOI.js.map +1 -0
- package/dist/chunks/success.DhioLvPD.js +5 -0
- package/dist/chunks/success.DhioLvPD.js.map +1 -0
- package/dist/chunks/success.nNwxJRBS.js +5 -0
- package/dist/chunks/success.nNwxJRBS.js.map +1 -0
- package/dist/chunks/summary-grid-item-custom.B941Kdvq.js +720 -0
- package/dist/chunks/summary-grid-item-custom.B941Kdvq.js.map +1 -0
- package/dist/chunks/{summary-grid.keys.1d1028c2.js → summary-grid.keys.BBbFrFGF.js} +1 -1
- package/dist/chunks/{summary-grid.keys.1d1028c2.js.map → summary-grid.keys.BBbFrFGF.js.map} +1 -1
- package/dist/chunks/tabs.TNKpNgTM.js +185 -0
- package/dist/chunks/tabs.TNKpNgTM.js.map +1 -0
- package/dist/chunks/{tabs.keys.358742f2.js → tabs.keys.Bc2pSKRw.js} +1 -1
- package/dist/chunks/{tabs.keys.358742f2.js.map → tabs.keys.Bc2pSKRw.js.map} +1 -1
- package/dist/chunks/tag.CPhtHjDD.js +75 -0
- package/dist/chunks/tag.CPhtHjDD.js.map +1 -0
- package/dist/chunks/{teleport.afeb4c3b.js → teleport.L8qFCYpr.js} +20 -21
- package/dist/chunks/{teleport.afeb4c3b.js.map → teleport.L8qFCYpr.js.map} +1 -1
- package/dist/chunks/textarea.CJ8xiMjv.js +288 -0
- package/dist/chunks/textarea.CJ8xiMjv.js.map +1 -0
- package/dist/chunks/timeline-item.Cap9MXkH.js +531 -0
- package/dist/chunks/timeline-item.Cap9MXkH.js.map +1 -0
- package/dist/chunks/toast.Bwo57uNy.js +215 -0
- package/dist/chunks/toast.Bwo57uNy.js.map +1 -0
- package/dist/chunks/toggle-button.q9F2dsIi.js +79 -0
- package/dist/chunks/toggle-button.q9F2dsIi.js.map +1 -0
- package/dist/chunks/toggle.DmTjGY0a.js +161 -0
- package/dist/chunks/toggle.DmTjGY0a.js.map +1 -0
- package/dist/chunks/{tooltip.1084d92b.js → tooltip.CTR3s-Rm.js} +60 -61
- package/dist/chunks/tooltip.CTR3s-Rm.js.map +1 -0
- package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.WNVsOZdp.js +408 -0
- package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.WNVsOZdp.js.map +1 -0
- package/dist/chunks/typography.D7onlQ9v.js +73 -0
- package/dist/chunks/typography.D7onlQ9v.js.map +1 -0
- package/dist/chunks/{unique-id.a2a2b458.js → unique-id.XFfoKuc2.js} +14 -20
- package/dist/chunks/{unique-id.a2a2b458.js.map → unique-id.XFfoKuc2.js.map} +1 -1
- package/dist/chunks/upload-files.5wQwbfkp.js +5 -0
- package/dist/chunks/upload-files.5wQwbfkp.js.map +1 -0
- package/dist/chunks/upload-files.jTQY6y2X.js +5 -0
- package/dist/chunks/upload-files.jTQY6y2X.js.map +1 -0
- package/dist/chunks/{use-bento-toast-controller.98d8613c.js → use-bento-toast-controller.C0A5tZgd.js} +3 -3
- package/dist/chunks/{use-bento-toast-controller.98d8613c.js.map → use-bento-toast-controller.C0A5tZgd.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.852aeafe.js → use-cached-selected-values.BQBWFTvi.js} +490 -476
- package/dist/chunks/use-cached-selected-values.BQBWFTvi.js.map +1 -0
- package/dist/chunks/{use-click-outside.941d1600.js → use-click-outside.DbjR7Lh4.js} +2 -2
- package/dist/chunks/{use-click-outside.941d1600.js.map → use-click-outside.DbjR7Lh4.js.map} +1 -1
- package/dist/chunks/{use-country-items.32e30471.js → use-country-items.CongYNiX.js} +4 -4
- package/dist/chunks/{use-country-items.32e30471.js.map → use-country-items.CongYNiX.js.map} +1 -1
- package/dist/chunks/{use-default-slot-validator.1169c221.js → use-default-slot-validator.O02rzsob.js} +1 -1
- package/dist/chunks/{use-default-slot-validator.1169c221.js.map → use-default-slot-validator.O02rzsob.js.map} +1 -1
- package/dist/chunks/{use-expandable-content-height.62fc84e5.js → use-expandable-content-height.GkjjbmPy.js} +1 -1
- package/dist/chunks/{use-expandable-content-height.62fc84e5.js.map → use-expandable-content-height.GkjjbmPy.js.map} +1 -1
- package/dist/chunks/{use-form-layout-loading.d03e5d48.js → use-form-layout-loading.D3lALhtC.js} +2 -2
- package/dist/chunks/{use-form-layout-loading.d03e5d48.js.map → use-form-layout-loading.D3lALhtC.js.map} +1 -1
- package/dist/chunks/{use-has-slot.4d98bf29.js → use-has-slot.B7eQSabc.js} +1 -1
- package/dist/chunks/{use-has-slot.4d98bf29.js.map → use-has-slot.B7eQSabc.js.map} +1 -1
- package/dist/chunks/warning-filled.DHw1rVWs.js +29 -0
- package/dist/chunks/warning-filled.DHw1rVWs.js.map +1 -0
- package/dist/chunks/wrong-environment.BOsyKdRI.js +5 -0
- package/dist/chunks/wrong-environment.BOsyKdRI.js.map +1 -0
- package/dist/chunks/wrong-environment.BiHTPtbJ.js +5 -0
- package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +1 -0
- package/dist/click-outside.js +2 -20
- package/dist/click-outside.js.map +1 -1
- package/dist/code-snippet.js +5 -2131
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +8 -101
- package/dist/country.js.map +1 -1
- package/dist/currency.js +3 -118
- package/dist/currency.js.map +1 -1
- package/dist/dashboard-template.js +6 -0
- package/dist/dashboard-template.js.map +1 -0
- package/dist/dashed-underline.js +5 -0
- package/dist/dashed-underline.js.map +1 -0
- package/dist/data-grid-template.js +2 -87
- package/dist/data-grid-template.js.map +1 -1
- package/dist/data-grid.js +8 -2643
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +5 -272
- package/dist/date-picker.js.map +1 -1
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +12 -205
- package/dist/dropdown.js.map +1 -1
- package/dist/empty-state.js +5 -176
- package/dist/empty-state.js.map +1 -1
- package/dist/filter-bar.js +5 -2778
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +5 -205
- package/dist/form-layout.js.map +1 -1
- package/dist/header.js +2 -306
- package/dist/header.js.map +1 -1
- package/dist/image.js +4 -75
- package/dist/image.js.map +1 -1
- package/dist/index.js +263 -256
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +2 -43
- package/dist/info-icon.js.map +1 -1
- package/dist/input-field.js +7 -342
- package/dist/input-field.js.map +1 -1
- package/dist/internal.js +15 -15
- package/dist/link.js +1 -1
- package/dist/loading-indicator.js +3 -41
- package/dist/loading-indicator.js.map +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +3 -263
- package/dist/modal-fullscreen.js.map +1 -1
- package/dist/modal.js +11 -501
- package/dist/modal.js.map +1 -1
- package/dist/pagination.js +2 -634
- package/dist/pagination.js.map +1 -1
- package/dist/payment-method.js +4 -4
- package/dist/payment-method.js.map +1 -1
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/radio-group.js +6 -296
- package/dist/radio-group.js.map +1 -1
- package/dist/search-bar.js +6 -107
- package/dist/search-bar.js.map +1 -1
- package/dist/secondary-nav.js +2 -112
- package/dist/secondary-nav.js.map +1 -1
- package/dist/segmented-control.js +4 -255
- package/dist/segmented-control.js.map +1 -1
- package/dist/selection-card.js +4 -384
- package/dist/selection-card.js.map +1 -1
- package/dist/sidepanel.js +4 -229
- package/dist/sidepanel.js.map +1 -1
- package/dist/status.js +3 -50
- package/dist/status.js.map +1 -1
- package/dist/stepper.js +5 -283
- package/dist/stepper.js.map +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +9 -720
- package/dist/summary-grid.js.map +1 -1
- package/dist/tabs.js +3 -182
- package/dist/tabs.js.map +1 -1
- package/dist/tag.js +3 -73
- package/dist/tag.js.map +1 -1
- package/dist/textarea.js +2 -286
- package/dist/textarea.js.map +1 -1
- package/dist/timeline.js +7 -530
- package/dist/timeline.js.map +1 -1
- package/dist/toast.js +2 -215
- package/dist/toast.js.map +1 -1
- package/dist/toggle.js +4 -159
- package/dist/toggle.js.map +1 -1
- package/dist/tutorial.js +2 -392
- package/dist/tutorial.js.map +1 -1
- package/dist/typography.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +10 -10
- package/dist/assets/index11.css +0 -1
- package/dist/assets/index16.css +0 -1
- package/dist/assets/index18.css +0 -1
- package/dist/assets/index24.css +0 -1
- package/dist/assets/index25.css +0 -1
- package/dist/assets/index37.css +0 -1
- package/dist/assets/index40.css +0 -1
- package/dist/assets/index42.css +0 -1
- package/dist/assets/index46.css +0 -1
- package/dist/assets/index47.css +0 -1
- package/dist/assets/index9.css +0 -1
- package/dist/chunks/1-generic-use.3ea646cd.js +0 -5
- package/dist/chunks/1-generic-use.3ea646cd.js.map +0 -1
- package/dist/chunks/1-generic-use.ccca5813.js +0 -5
- package/dist/chunks/1-generic-use.ccca5813.js.map +0 -1
- package/dist/chunks/2-generic-use.443db127.js +0 -5
- package/dist/chunks/2-generic-use.443db127.js.map +0 -1
- package/dist/chunks/2-generic-use.d69d7c08.js +0 -5
- package/dist/chunks/2-generic-use.d69d7c08.js.map +0 -1
- package/dist/chunks/3-generic-use.9f74667f.js +0 -5
- package/dist/chunks/3-generic-use.9f74667f.js.map +0 -1
- package/dist/chunks/3-generic-use.fe7ae2ce.js +0 -5
- package/dist/chunks/3-generic-use.fe7ae2ce.js.map +0 -1
- package/dist/chunks/4-generic-use.0356f4a1.js +0 -5
- package/dist/chunks/4-generic-use.0356f4a1.js.map +0 -1
- package/dist/chunks/4-generic-use.cd04bad0.js +0 -5
- package/dist/chunks/4-generic-use.cd04bad0.js.map +0 -1
- package/dist/chunks/_plugin-vue_export-helper.dad06003.js.map +0 -1
- package/dist/chunks/adding-payment-methods.d570e03e.js +0 -5
- package/dist/chunks/adding-payment-methods.d570e03e.js.map +0 -1
- package/dist/chunks/adding-payment-methods.e419d6c0.js +0 -5
- package/dist/chunks/adding-payment-methods.e419d6c0.js.map +0 -1
- package/dist/chunks/adyen-giving.480913b5.js +0 -5
- package/dist/chunks/adyen-giving.480913b5.js.map +0 -1
- package/dist/chunks/adyen-giving.54ed984c.js +0 -5
- package/dist/chunks/adyen-giving.54ed984c.js.map +0 -1
- package/dist/chunks/button-actions.642b37de.js.map +0 -1
- package/dist/chunks/button.60dad578.js.map +0 -1
- package/dist/chunks/checkmark-circle-fill.f3a69c6a.js +0 -44
- package/dist/chunks/checkmark.87919b24.js +0 -29
- package/dist/chunks/checkmark.87919b24.js.map +0 -1
- package/dist/chunks/cross-small.9bc6a02f.js +0 -29
- package/dist/chunks/cross.a60533f6.js +0 -29
- package/dist/chunks/dropdown.d8587f36.js.map +0 -1
- package/dist/chunks/events.58c00e6d.js +0 -50
- package/dist/chunks/events.58c00e6d.js.map +0 -1
- package/dist/chunks/index.030c1dd7.js.map +0 -1
- package/dist/chunks/index.07122048.js +0 -23
- package/dist/chunks/index.07122048.js.map +0 -1
- package/dist/chunks/index.146f967e.js.map +0 -1
- package/dist/chunks/index.5bdebf9d.js.map +0 -1
- package/dist/chunks/index.6e0e9d21.js +0 -118
- package/dist/chunks/index.6e0e9d21.js.map +0 -1
- package/dist/chunks/index.8be283d5.js.map +0 -1
- package/dist/chunks/index.96cd0d4c.js.map +0 -1
- package/dist/chunks/index.9bf04b01.js.map +0 -1
- package/dist/chunks/index.a3d60e4f.js +0 -74
- package/dist/chunks/index.a3d60e4f.js.map +0 -1
- package/dist/chunks/index.ba3396d3.js +0 -62
- package/dist/chunks/index.ba3396d3.js.map +0 -1
- package/dist/chunks/index.c8ffede1.js +0 -168
- package/dist/chunks/index.c8ffede1.js.map +0 -1
- package/dist/chunks/internal-error.35cbb071.js +0 -5
- package/dist/chunks/internal-error.35cbb071.js.map +0 -1
- package/dist/chunks/internal-error.9a4823ed.js +0 -5
- package/dist/chunks/internal-error.9a4823ed.js.map +0 -1
- package/dist/chunks/listbox-option-tag.b6182b2e.js +0 -129
- package/dist/chunks/listbox-option-tag.b6182b2e.js.map +0 -1
- package/dist/chunks/no-results-found.58856d70.js +0 -5
- package/dist/chunks/no-results-found.58856d70.js.map +0 -1
- package/dist/chunks/no-results-found.cbb12f78.js +0 -5
- package/dist/chunks/no-results-found.cbb12f78.js.map +0 -1
- package/dist/chunks/notifications-cleared.71025c22.js +0 -5
- package/dist/chunks/notifications-cleared.71025c22.js.map +0 -1
- package/dist/chunks/notifications-cleared.c4f4bed4.js +0 -5
- package/dist/chunks/notifications-cleared.c4f4bed4.js.map +0 -1
- package/dist/chunks/page-not-found.a500440d.js +0 -5
- package/dist/chunks/page-not-found.a500440d.js.map +0 -1
- package/dist/chunks/page-not-found.d1a84ba7.js +0 -5
- package/dist/chunks/page-not-found.d1a84ba7.js.map +0 -1
- package/dist/chunks/planned-maintenance.7fa5ac16.js +0 -5
- package/dist/chunks/planned-maintenance.7fa5ac16.js.map +0 -1
- package/dist/chunks/planned-maintenance.cff01aed.js +0 -5
- package/dist/chunks/planned-maintenance.cff01aed.js.map +0 -1
- package/dist/chunks/radio-input.1dd15424.js.map +0 -1
- package/dist/chunks/referrals.178ce0eb.js +0 -5
- package/dist/chunks/referrals.178ce0eb.js.map +0 -1
- package/dist/chunks/referrals.599047da.js +0 -5
- package/dist/chunks/referrals.599047da.js.map +0 -1
- package/dist/chunks/refresh.53691839.js +0 -29
- package/dist/chunks/success.41981fe8.js +0 -5
- package/dist/chunks/success.41981fe8.js.map +0 -1
- package/dist/chunks/success.77fac78b.js +0 -5
- package/dist/chunks/success.77fac78b.js.map +0 -1
- package/dist/chunks/tooltip.1084d92b.js.map +0 -1
- package/dist/chunks/upload-files.2708eca7.js +0 -5
- package/dist/chunks/upload-files.2708eca7.js.map +0 -1
- package/dist/chunks/upload-files.b4cd9f8b.js +0 -5
- package/dist/chunks/upload-files.b4cd9f8b.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.852aeafe.js.map +0 -1
- package/dist/chunks/wrong-environment.c73b0bc0.js +0 -5
- package/dist/chunks/wrong-environment.c73b0bc0.js.map +0 -1
- package/dist/chunks/wrong-environment.f890a237.js +0 -5
- package/dist/chunks/wrong-environment.f890a237.js.map +0 -1
- /package/dist/@types/packages/{vue2/src/components/internal → core/src/components}/radio-input/radio-input.types.d.ts +0 -0
- /package/dist/assets/{index13.css → avatar-image.css} +0 -0
- /package/dist/assets/{index21.css → badge.css} +0 -0
- /package/dist/assets/{index5.css → checkbox-group.css} +0 -0
- /package/dist/assets/{index4.css → country.css} +0 -0
- /package/dist/assets/{checkmark-circle-fill.css → cross.css} +0 -0
- /package/dist/assets/{index2.css → date-picker.css} +0 -0
- /package/dist/assets/{index20.css → date-range-picker.css} +0 -0
- /package/dist/assets/{index3.css → divider.css} +0 -0
- /package/dist/assets/{index48.css → dropdown-tag.css} +0 -0
- /package/dist/assets/{index8.css → empty-state.css} +0 -0
- /package/dist/assets/{index.css → focus-trap.css} +0 -0
- /package/dist/assets/{index15.css → header.css} +0 -0
- /package/dist/assets/{index6.css → info-icon.css} +0 -0
- /package/dist/assets/{index41.css → loading-indicator.css} +0 -0
- /package/dist/assets/{index28.css → pagination.css} +0 -0
- /package/dist/assets/{index29.css → popper-container.css} +0 -0
- /package/dist/assets/{index30.css → radio-group.css} +0 -0
- /package/dist/assets/{index22.css → search-bar.css} +0 -0
- /package/dist/assets/{index23.css → secondary-nav.css} +0 -0
- /package/dist/assets/{index45.css → step.css} +0 -0
- /package/dist/assets/{index31.css → summary-grid-item-custom.css} +0 -0
- /package/dist/assets/{index33.css → tag.css} +0 -0
- /package/dist/assets/{index34.css → textarea.css} +0 -0
- /package/dist/assets/{index35.css → timeline-item.css} +0 -0
- /package/dist/assets/{index36.css → toast.css} +0 -0
- /package/dist/assets/{index12.css → toggle-button.css} +0 -0
- /package/dist/assets/{index38.css → typography.css} +0 -0
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { defineComponent as W, useSlots as Y, ref as S, watch as B, computed as d, openBlock as s, createElementBlock as i, normalizeClass as c, unref as a, renderSlot as p, createCommentVNode as l, withKeys as L, createElementVNode as m, createBlock as h, mergeProps as j, withCtx as f, createVNode as A, Transition as q, normalizeStyle as G } from "vue";
|
|
2
|
+
import { B as E } from "./typography.D7onlQ9v.js";
|
|
3
|
+
import { C as J, a as Q } from "./chevron-up.5-KtIp8i.js";
|
|
4
|
+
import { u as X } from "./use-expandable-content-height.GkjjbmPy.js";
|
|
5
|
+
import { u as Z } from "./use-has-slot.B7eQSabc.js";
|
|
6
|
+
import { g as ee } from "./unique-id.XFfoKuc2.js";
|
|
7
|
+
import { u as ae } from "./i18n.DY5YXG5f.js";
|
|
8
|
+
import { o as te } from "./resize.Bqks3WUm.js";
|
|
9
|
+
import { c as ne, B as oe } from "./button-actions.hGhRdgC2.js";
|
|
10
|
+
import { _ as de } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
11
|
+
import "../assets/card.css";
|
|
12
|
+
var T = /* @__PURE__ */ ((t) => (t.PRIMARY = "primary", t.SECONDARY = "secondary", t))(T || {}), b = /* @__PURE__ */ ((t) => (t.DEFAULT = "default", t.SMALL = "small", t))(b || {});
|
|
13
|
+
const D = {
|
|
14
|
+
"en-US": {
|
|
15
|
+
showCardContent: "Show card content",
|
|
16
|
+
hideCardContent: "Hide card content"
|
|
17
|
+
}
|
|
18
|
+
}, se = {
|
|
19
|
+
key: 0,
|
|
20
|
+
class: "b-card__image"
|
|
21
|
+
}, le = ["tabindex", "aria-controls", "aria-expanded", "role", "onKeypress"], re = { class: "b-card__header-wrapper" }, ie = {
|
|
22
|
+
key: 0,
|
|
23
|
+
class: "b-card__header-slot-wrapper"
|
|
24
|
+
}, ce = ["id"], ue = {
|
|
25
|
+
i18n: { messages: D },
|
|
26
|
+
name: "bento-card"
|
|
27
|
+
}, be = /* @__PURE__ */ W({
|
|
28
|
+
...ue,
|
|
29
|
+
props: {
|
|
30
|
+
actions: { default: null },
|
|
31
|
+
actionsLayout: { default: ne.BUTTONS_END },
|
|
32
|
+
background: { default: T.PRIMARY },
|
|
33
|
+
closed: { type: Boolean, default: !1 },
|
|
34
|
+
disabled: { type: Boolean, default: !1 },
|
|
35
|
+
expandable: { type: Boolean, default: !1 },
|
|
36
|
+
titleSize: { default: b.DEFAULT }
|
|
37
|
+
},
|
|
38
|
+
emits: ["click", "expanded"],
|
|
39
|
+
setup(t, { emit: y }) {
|
|
40
|
+
const e = t, { t: x } = ae({ messages: D }), H = Y(), o = Z(H), u = S(null), C = ee("card"), r = S(!e.closed);
|
|
41
|
+
B(
|
|
42
|
+
() => e.closed,
|
|
43
|
+
(n) => {
|
|
44
|
+
r.value = !n;
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
const _ = d(() => o("default") || o("description") || o("header")), I = d(() => o("default") || o("header")), g = d(
|
|
48
|
+
() => {
|
|
49
|
+
var n;
|
|
50
|
+
return (o("content") || ((n = e.actions) == null ? void 0 : n.length)) && (!e.expandable || e.expandable && r.value);
|
|
51
|
+
}
|
|
52
|
+
), z = d(() => e.expandable && !e.disabled ? 0 : -1), M = d(() => ({
|
|
53
|
+
[`b-card--${e.background}`]: e.background,
|
|
54
|
+
"b-card--expandable": e.expandable,
|
|
55
|
+
"b-card--disabled": e.expandable && e.disabled
|
|
56
|
+
})), N = d(() => ({
|
|
57
|
+
"b-card__header--expandable": e.expandable,
|
|
58
|
+
"b-card__header--without-body": !e.expandable && !g.value
|
|
59
|
+
})), U = d(() => ({
|
|
60
|
+
"b-card__toggle--small-text": e.titleSize === b.SMALL
|
|
61
|
+
})), $ = d(() => ({
|
|
62
|
+
"b-card__body--expandable": e.expandable && o("content"),
|
|
63
|
+
"b-card__body--without-header": !e.expandable && !_.value
|
|
64
|
+
})), R = d(() => ({
|
|
65
|
+
"b-card__content--without-header": !e.expandable && !_.value,
|
|
66
|
+
"b-card__content--expandable": e.expandable
|
|
67
|
+
})), F = d(() => {
|
|
68
|
+
const n = !e.expandable && e.actions && !o("content");
|
|
69
|
+
return {
|
|
70
|
+
"b-card__actions--without-content": n,
|
|
71
|
+
"b-card__actions--without-content-and-with-header": n && _.value
|
|
72
|
+
};
|
|
73
|
+
}), K = d(() => ({
|
|
74
|
+
"b-card__title-wrapper--truncated": o("header")
|
|
75
|
+
})), O = d(
|
|
76
|
+
() => ({
|
|
77
|
+
el: "div",
|
|
78
|
+
variant: e.titleSize === b.DEFAULT ? "title" : "body",
|
|
79
|
+
strongest: e.titleSize === b.SMALL,
|
|
80
|
+
wide: e.titleSize === b.SMALL
|
|
81
|
+
})
|
|
82
|
+
), { updateContentHeight: w, contentHeight: k } = X(u, r), P = d(
|
|
83
|
+
() => e.expandable && k.value ? { "max-height": k.value } : {}
|
|
84
|
+
);
|
|
85
|
+
B(
|
|
86
|
+
() => u.value,
|
|
87
|
+
() => {
|
|
88
|
+
let n = null;
|
|
89
|
+
!n && u.value && (n = te(u.value, () => {
|
|
90
|
+
u.value && w();
|
|
91
|
+
}));
|
|
92
|
+
}
|
|
93
|
+
);
|
|
94
|
+
const v = () => {
|
|
95
|
+
!e.disabled && e.expandable && (r.value = !r.value, y("expanded", r.value), w());
|
|
96
|
+
}, V = () => {
|
|
97
|
+
e.disabled || y("click");
|
|
98
|
+
};
|
|
99
|
+
return (n, pe) => (s(), i("div", {
|
|
100
|
+
class: c(["b-card", a(M)]),
|
|
101
|
+
"data-testid": "card",
|
|
102
|
+
onClick: V
|
|
103
|
+
}, [
|
|
104
|
+
a(o)("image") ? (s(), i("div", se, [
|
|
105
|
+
p(n.$slots, "image", {}, void 0, !0)
|
|
106
|
+
])) : l("", !0),
|
|
107
|
+
a(_) ? (s(), i("div", {
|
|
108
|
+
key: 1,
|
|
109
|
+
class: c(["b-card__header", a(N)]),
|
|
110
|
+
tabindex: a(z),
|
|
111
|
+
"aria-controls": t.expandable ? a(C) : null,
|
|
112
|
+
"aria-expanded": t.expandable ? `${r.value}` : null,
|
|
113
|
+
role: t.expandable ? "button" : null,
|
|
114
|
+
onClick: v,
|
|
115
|
+
onKeypress: [
|
|
116
|
+
L(v, ["enter"]),
|
|
117
|
+
L(v, ["space"])
|
|
118
|
+
]
|
|
119
|
+
}, [
|
|
120
|
+
m("div", re, [
|
|
121
|
+
a(I) ? (s(), i("div", ie, [
|
|
122
|
+
m("div", {
|
|
123
|
+
class: c(["b-card__title-wrapper", a(K)])
|
|
124
|
+
}, [
|
|
125
|
+
t.expandable ? (s(), i("div", {
|
|
126
|
+
key: 0,
|
|
127
|
+
class: c(["b-card__toggle", a(U)])
|
|
128
|
+
}, [
|
|
129
|
+
r.value ? (s(), h(a(J), {
|
|
130
|
+
key: 0,
|
|
131
|
+
"svg-title": a(x)("hideCardContent"),
|
|
132
|
+
"aria-hidden": "true"
|
|
133
|
+
}, null, 8, ["svg-title"])) : (s(), h(a(Q), {
|
|
134
|
+
key: 1,
|
|
135
|
+
"svg-title": a(x)("showCardContent"),
|
|
136
|
+
"aria-hidden": "true"
|
|
137
|
+
}, null, 8, ["svg-title"]))
|
|
138
|
+
], 2)) : l("", !0),
|
|
139
|
+
a(o)("default") ? (s(), h(a(E), j({
|
|
140
|
+
key: 1,
|
|
141
|
+
class: "b-card__title"
|
|
142
|
+
}, a(O)), {
|
|
143
|
+
default: f(() => [
|
|
144
|
+
p(n.$slots, "default", {}, void 0, !0)
|
|
145
|
+
]),
|
|
146
|
+
_: 3
|
|
147
|
+
}, 16)) : l("", !0)
|
|
148
|
+
], 2),
|
|
149
|
+
a(o)("header") ? p(n.$slots, "header", { key: 0 }, void 0, !0) : l("", !0)
|
|
150
|
+
])) : l("", !0),
|
|
151
|
+
a(o)("description") ? (s(), h(a(E), {
|
|
152
|
+
key: 1,
|
|
153
|
+
class: "b-card__description",
|
|
154
|
+
el: "div",
|
|
155
|
+
variant: "body"
|
|
156
|
+
}, {
|
|
157
|
+
default: f(() => [
|
|
158
|
+
p(n.$slots, "description", {}, void 0, !0)
|
|
159
|
+
]),
|
|
160
|
+
_: 3
|
|
161
|
+
})) : l("", !0)
|
|
162
|
+
])
|
|
163
|
+
], 42, le)) : l("", !0),
|
|
164
|
+
A(q, { name: "b-card__animation" }, {
|
|
165
|
+
default: f(() => [
|
|
166
|
+
a(g) ? (s(), i("div", {
|
|
167
|
+
key: 0,
|
|
168
|
+
class: "b-card__wrapper",
|
|
169
|
+
style: G(a(P))
|
|
170
|
+
}, [
|
|
171
|
+
m("div", {
|
|
172
|
+
id: t.expandable ? a(C) : null,
|
|
173
|
+
ref_key: "contentDiv",
|
|
174
|
+
ref: u,
|
|
175
|
+
class: c(["b-card__body", a($)])
|
|
176
|
+
}, [
|
|
177
|
+
a(o)("content") ? (s(), i("div", {
|
|
178
|
+
key: 0,
|
|
179
|
+
class: c(["b-card__content", a(R)])
|
|
180
|
+
}, [
|
|
181
|
+
p(n.$slots, "content", {}, void 0, !0)
|
|
182
|
+
], 2)) : l("", !0),
|
|
183
|
+
t.actions ? (s(), i("div", {
|
|
184
|
+
key: 1,
|
|
185
|
+
class: c(["b-card__actions", a(F)])
|
|
186
|
+
}, [
|
|
187
|
+
A(a(oe), {
|
|
188
|
+
actions: t.actions,
|
|
189
|
+
layout: t.actionsLayout
|
|
190
|
+
}, null, 8, ["actions", "layout"])
|
|
191
|
+
], 2)) : l("", !0)
|
|
192
|
+
], 10, ce)
|
|
193
|
+
], 4)) : l("", !0)
|
|
194
|
+
]),
|
|
195
|
+
_: 3
|
|
196
|
+
})
|
|
197
|
+
], 2));
|
|
198
|
+
}
|
|
199
|
+
}), ke = /* @__PURE__ */ de(be, [["__scopeId", "data-v-2cdd9489"]]);
|
|
200
|
+
export {
|
|
201
|
+
T as B,
|
|
202
|
+
b as a,
|
|
203
|
+
ke as c
|
|
204
|
+
};
|
|
205
|
+
//# sourceMappingURL=card.C7zLKdcy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.C7zLKdcy.js","sources":["../../../vue2/src/components/card/card.types.ts","../../../vue2/src/components/card/card.vue"],"sourcesContent":["/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoCardBackground {\n PRIMARY = 'primary',\n SECONDARY = 'secondary',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoCardTitleSize {\n DEFAULT = 'default',\n SMALL = 'small',\n}\n","<template>\n <div class=\"b-card\" :class=\"cardConditionalClasses\" data-testid=\"card\" @click=\"onClick\">\n <div v-if=\"hasSlot('image')\" class=\"b-card__image\">\n <slot name=\"image\"></slot>\n </div>\n <div\n v-if=\"showHeader\"\n class=\"b-card__header\"\n :class=\"cardHeaderConditionalClasses\"\n :tabindex=\"tabIndex\"\n :aria-controls=\"expandable ? cardId : null\"\n :aria-expanded=\"expandable ? `${showContent}` : null\"\n :role=\"expandable ? 'button' : null\"\n @click=\"toggleExpansion\"\n @keypress.enter=\"toggleExpansion\"\n @keypress.space=\"toggleExpansion\"\n >\n <div class=\"b-card__header-wrapper\">\n <div v-if=\"showTitleWrapper\" class=\"b-card__header-slot-wrapper\">\n <div class=\"b-card__title-wrapper\" :class=\"cardTitleWrapperConditionalClasses\">\n <div v-if=\"expandable\" class=\"b-card__toggle\" :class=\"cardToggleConditionalClasses\">\n <chevron-up-icon v-if=\"showContent\" :svg-title=\"t('hideCardContent')\" aria-hidden=\"true\" />\n <chevron-down-icon v-else :svg-title=\"t('showCardContent')\" aria-hidden=\"true\" />\n </div>\n <bento-typography v-if=\"hasSlot('default')\" class=\"b-card__title\" v-bind=\"typography\">\n <slot />\n </bento-typography>\n </div>\n\n <template v-if=\"hasSlot('header')\">\n <slot name=\"header\"></slot>\n </template>\n </div>\n\n <bento-typography v-if=\"hasSlot('description')\" class=\"b-card__description\" el=\"div\" variant=\"body\">\n <slot name=\"description\" />\n </bento-typography>\n </div>\n </div>\n\n <Transition name=\"b-card__animation\">\n <div v-if=\"showCardBody\" class=\"b-card__wrapper\" :style=\"contentMaxHeight\">\n <div\n :id=\"expandable ? cardId : null\"\n ref=\"contentDiv\"\n class=\"b-card__body\"\n :class=\"cardBodyConditionalClasses\"\n >\n <div v-if=\"hasSlot('content')\" class=\"b-card__content\" :class=\"cardContentConditionalClasses\">\n <slot name=\"content\" />\n </div>\n\n <div v-if=\"actions\" class=\"b-card__actions\" :class=\"cardActionsConditionalClasses\">\n <bento-button-actions :actions=\"actions\" :layout=\"actionsLayout\"></bento-button-actions>\n </div>\n </div>\n </div>\n </Transition>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, ref, useSlots, watch } from 'vue';\n\n // Components\n import { BentoTypography } from '@/components/typography';\n import { BentoButtonActions, BentoButtonActionsLayout, BentoButtonActionsList } from '@/components/button';\n import { BentoCardBackground, BentoCardTitleSize } from '@/components/card/card.types';\n import ChevronDownIcon from '@adyen/ui-assets-icons-16/vue/chevron-down';\n import ChevronUpIcon from '@adyen/ui-assets-icons-16/vue/chevron-up';\n\n // Composables\n import { useExpandableContentHeight } from '@/composables/use-expandable-content-height/use-expandable-content-height';\n\n // Utils\n import { useHasSlot } from '@/composables';\n import { generateUid } from '@/utils/ts/unique-id';\n import { useI18n } from '@/utils/ts/i18n';\n import { observeSizeOfElement } from '@/utils/ts/resize';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const props = withDefaults(\n defineProps<{\n /**\n * List of actions that will be used to render the buttons.\n * First element in the list will be rendered as \"primary\".\n * All elements after the first will be rendered as \"secondary\".\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * `title`: Button's text.\n *\n * `event`: Event triggered when clicking the Button.\n *\n * `icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.\n *\n * ```\n * [{\n * title: 'Primary',\n * event: () => { ... },\n * icon: FourPeopleIcon\n * }, {\n * title: 'Secondary',\n * event: () => { ... }\n * }]\n * ```\n */\n actions?: BentoButtonActionsList;\n\n /**\n * Defines the layout in which the button actions is presented.\n * It can be one of:\n *\n * @values BUTTONS_START\n * @values BUTTONS_END\n * @values FILL_CONTAINER\n * @values SPACE_BETWEEN\n * @values VERTICAL_STACK\n */\n actionsLayout?: BentoButtonActionsLayout | `${BentoButtonActionsLayout}`;\n\n /**\n * Defines the color of card background\n */\n background?: BentoCardBackground | `${BentoCardBackground}`;\n\n /**\n * Sets the expandable card in a closed state\n */\n closed?: boolean;\n\n /**\n * Disables the expandable card\n */\n disabled?: boolean;\n\n /**\n * The whole content of the card will be expandable in accordion manner\n */\n expandable?: boolean;\n\n /**\n * Defines the title size of the card header\n */\n titleSize?: BentoCardTitleSize | `${BentoCardTitleSize}`;\n }>(),\n {\n actions: null,\n actionsLayout: BentoButtonActionsLayout.BUTTONS_END,\n background: BentoCardBackground.PRIMARY,\n closed: false,\n disabled: false,\n expandable: false,\n titleSize: BentoCardTitleSize.DEFAULT,\n }\n );\n\n const emit = defineEmits<{\n (e: 'click');\n (e: 'expanded', isExpanded: boolean);\n }>();\n\n const contentDiv = ref<HTMLDivElement>(null);\n\n const cardId = generateUid('card');\n const showContent = ref(!props.closed);\n watch(\n () => props.closed,\n value => {\n showContent.value = !value;\n }\n );\n const showHeader = computed(() => hasSlot('default') || hasSlot('description') || hasSlot('header'));\n const showTitleWrapper = computed(() => hasSlot('default') || hasSlot('header'));\n const showCardBody = computed(\n () =>\n (hasSlot('content') || props.actions?.length) &&\n (!props.expandable || (props.expandable && showContent.value))\n );\n const tabIndex = computed(() => (props.expandable && !props.disabled ? 0 : -1));\n\n const cardConditionalClasses = computed(() => ({\n [`b-card--${props.background}`]: props.background,\n 'b-card--expandable': props.expandable,\n 'b-card--disabled': props.expandable && props.disabled,\n }));\n\n const cardHeaderConditionalClasses = computed(() => ({\n 'b-card__header--expandable': props.expandable,\n 'b-card__header--without-body': !props.expandable && !showCardBody.value,\n }));\n\n const cardToggleConditionalClasses = computed(() => ({\n 'b-card__toggle--small-text': props.titleSize === BentoCardTitleSize.SMALL,\n }));\n\n const cardBodyConditionalClasses = computed(() => ({\n 'b-card__body--expandable': props.expandable && hasSlot('content'),\n 'b-card__body--without-header': !props.expandable && !showHeader.value,\n }));\n\n const cardContentConditionalClasses = computed(() => ({\n 'b-card__content--without-header': !props.expandable && !showHeader.value,\n 'b-card__content--expandable': props.expandable,\n }));\n\n const cardActionsConditionalClasses = computed(() => {\n const isNotExpandableWithoutContent = !props.expandable && props.actions && !hasSlot('content');\n\n return {\n 'b-card__actions--without-content': isNotExpandableWithoutContent,\n 'b-card__actions--without-content-and-with-header': isNotExpandableWithoutContent && showHeader.value,\n };\n });\n\n const cardTitleWrapperConditionalClasses = computed(() => ({\n 'b-card__title-wrapper--truncated': hasSlot('header'),\n }));\n\n const typography = computed(\n () =>\n ({\n el: 'div',\n variant: props.titleSize === BentoCardTitleSize.DEFAULT ? 'title' : 'body',\n strongest: props.titleSize === BentoCardTitleSize.SMALL,\n wide: props.titleSize === BentoCardTitleSize.SMALL,\n } as InstanceType<typeof BentoTypography>['$props'])\n );\n\n // Toggle open and close logic and animation\n const { updateContentHeight, contentHeight } = useExpandableContentHeight(contentDiv, showContent);\n\n const contentMaxHeight = computed(() =>\n props.expandable && contentHeight.value ? { 'max-height': contentHeight.value } : {}\n );\n\n watch(\n () => contentDiv.value,\n () => {\n let observer: ResizeObserver | null = null;\n if (!observer && contentDiv.value) {\n observer = observeSizeOfElement(contentDiv.value, () => {\n if (contentDiv.value) {\n updateContentHeight();\n }\n });\n }\n }\n );\n\n const toggleExpansion = () => {\n if (!props.disabled && props.expandable) {\n showContent.value = !showContent.value;\n emit('expanded', showContent.value);\n updateContentHeight();\n }\n };\n\n const onClick = () => {\n if (!props.disabled) {\n emit('click');\n }\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * A card is a flexible and composable container.\n * Use cards to represent a single object or to visually group certain content, like legal information within company settings.\n *\n * @example\n * import { BentoCard } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoCard },\n * template: `\n * <bento-card>\n * Title of the Card\n * </bento-card>\n * `\n * };\n */\n export default {\n i18n: { messages },\n name: 'bento-card',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./card.scss\" />\n"],"names":["BentoCardBackground","BentoCardBackground2","BentoCardTitleSize","BentoCardTitleSize2","__default__","messages","t","useI18n","slots","useSlots","hasSlot","useHasSlot","contentDiv","ref","cardId","generateUid","showContent","props","watch","value","showHeader","computed","showTitleWrapper","showCardBody","_a","tabIndex","cardConditionalClasses","cardHeaderConditionalClasses","cardToggleConditionalClasses","cardBodyConditionalClasses","cardContentConditionalClasses","cardActionsConditionalClasses","isNotExpandableWithoutContent","cardTitleWrapperConditionalClasses","typography","updateContentHeight","contentHeight","useExpandableContentHeight","contentMaxHeight","observer","observeSizeOfElement","toggleExpansion","emit","onClick"],"mappings":"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"}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { defineComponent as B, toRef as I, computed as l, watch as y, ref as T, resolveComponent as m, openBlock as n, createElementBlock as v, createVNode as N, normalizeClass as V, withCtx as s, Fragment as w, renderList as O, createBlock as E, createSlots as A, createTextVNode as k, toDisplayString as S, renderSlot as G, normalizeProps as L, guardReactiveProps as P, createCommentVNode as R } from "vue";
|
|
2
|
+
import { B as U, a as d } from "./checkbox.xjIFibII.js";
|
|
3
|
+
import { g as _ } from "./unique-id.XFfoKuc2.js";
|
|
4
|
+
import { d as q } from "./typography.D7onlQ9v.js";
|
|
5
|
+
import { u as $ } from "./use-form-layout-loading.D3lALhtC.js";
|
|
6
|
+
import { C as z } from "./controls-group.DWu8NqKL.js";
|
|
7
|
+
import { E as D } from "./error-message.DyjHMyEZ.js";
|
|
8
|
+
import { _ as F } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
9
|
+
import "../assets/checkbox-group.css";
|
|
10
|
+
var i = /* @__PURE__ */ ((e) => (e.HORIZONTAL = "horizontal", e.VERTICAL = "vertical", e))(i || {});
|
|
11
|
+
const C = "bento-checkbox-group", H = B({
|
|
12
|
+
name: C,
|
|
13
|
+
components: { BentoCheckbox: U, ControlsGroup: z, ErrorMessage: D },
|
|
14
|
+
model: { prop: "modelValue" },
|
|
15
|
+
props: {
|
|
16
|
+
/**
|
|
17
|
+
* Descriptive supporting text visbile underneath the label.
|
|
18
|
+
*/
|
|
19
|
+
description: { type: String, default: null },
|
|
20
|
+
/**
|
|
21
|
+
* If set to true, renders all checkboxes in the group in a disabled state.
|
|
22
|
+
*/
|
|
23
|
+
disabled: { type: Boolean, default: !1 },
|
|
24
|
+
/**
|
|
25
|
+
* Renders all checkboxes in an error state with an error message.
|
|
26
|
+
*/
|
|
27
|
+
errorMessage: { type: String, default: null },
|
|
28
|
+
/**
|
|
29
|
+
* The form id the checkbox group is associated with. Defaults to null, as a checkbox group can also be used standalone.
|
|
30
|
+
*/
|
|
31
|
+
formId: { type: String, default: null },
|
|
32
|
+
/**
|
|
33
|
+
* If set to true, renders all checkboxes in the group in an error state.
|
|
34
|
+
*
|
|
35
|
+
* @deprecated Use "errorMessage" prop instead
|
|
36
|
+
*/
|
|
37
|
+
hasError: { type: Boolean, default: !1 },
|
|
38
|
+
/**
|
|
39
|
+
* Shows/hides the group label.
|
|
40
|
+
*/
|
|
41
|
+
hideLabel: { type: Boolean, default: null },
|
|
42
|
+
/**
|
|
43
|
+
* The checkbox group's items.
|
|
44
|
+
*/
|
|
45
|
+
items: { type: Array, required: !0 },
|
|
46
|
+
/**
|
|
47
|
+
* The name associated with the group. Required for accessibility purposes.
|
|
48
|
+
*/
|
|
49
|
+
label: { type: String, required: !0 },
|
|
50
|
+
/**
|
|
51
|
+
* Determines the initially selected value of the group. Corresponds to the BentoCheckboxButtonItem's value.
|
|
52
|
+
* Defaults to no value selected.
|
|
53
|
+
*/
|
|
54
|
+
modelValue: { type: Array, default: () => [] },
|
|
55
|
+
/**
|
|
56
|
+
* Indicates the field is optional.
|
|
57
|
+
*/
|
|
58
|
+
optional: { type: Boolean, default: !1 },
|
|
59
|
+
/**
|
|
60
|
+
* If set to true, renders all checkboxes in the group in a readonly state.
|
|
61
|
+
*/
|
|
62
|
+
readonly: { type: Boolean, default: !1 },
|
|
63
|
+
/**
|
|
64
|
+
* Indicates the field is required.
|
|
65
|
+
*/
|
|
66
|
+
required: { type: Boolean, default: !1 },
|
|
67
|
+
/**
|
|
68
|
+
* Tooltip message.
|
|
69
|
+
*/
|
|
70
|
+
tooltipText: { type: String, default: null },
|
|
71
|
+
/**
|
|
72
|
+
* The checkbox group's layout. It can be vertical or horizontal. Defaults to vertical.
|
|
73
|
+
*/
|
|
74
|
+
variant: {
|
|
75
|
+
type: String,
|
|
76
|
+
default: i.VERTICAL,
|
|
77
|
+
validator: (e) => Object.values(i).includes(e)
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
emits: [d.UPDATE, d.INPUT],
|
|
81
|
+
setup(e, { emit: u, slots: b }) {
|
|
82
|
+
const f = _("error"), { isReadOnly: a } = $(I(e, "readonly")), g = l(
|
|
83
|
+
() => !e.disabled && !a.value && (!!e.errorMessage || e.hasError)
|
|
84
|
+
), c = l(
|
|
85
|
+
() => !e.disabled && !a.value && !!e.errorMessage
|
|
86
|
+
), p = l(() => ({
|
|
87
|
+
"b-checkbox-group__checkboxes--horizontal": e.variant === i.HORIZONTAL
|
|
88
|
+
})), t = (r) => !!b[r], o = l(() => t("content") && e.variant !== "vertical");
|
|
89
|
+
y(
|
|
90
|
+
o,
|
|
91
|
+
(r) => {
|
|
92
|
+
if (r)
|
|
93
|
+
throw new Error("The content slot is only available for the vertical checkbox group layout");
|
|
94
|
+
},
|
|
95
|
+
{ immediate: !0 }
|
|
96
|
+
);
|
|
97
|
+
const h = T(e.modelValue);
|
|
98
|
+
y(
|
|
99
|
+
() => e.modelValue,
|
|
100
|
+
() => {
|
|
101
|
+
h.value = e.modelValue;
|
|
102
|
+
}
|
|
103
|
+
);
|
|
104
|
+
const M = (r) => {
|
|
105
|
+
h.value = r, u(d.UPDATE, r), u(d.INPUT, r);
|
|
106
|
+
};
|
|
107
|
+
return e.hasError && q(
|
|
108
|
+
'BentoCheckboxGroup "hasError" property',
|
|
109
|
+
`Use the BentoCheckboxGroup "errorMessage" property instead to indicate that there is a modifier error.
|
|
110
|
+
Having the field as "undefined" will hide/remove the error.
|
|
111
|
+
<bento-checkbox-group errorMessage="Error message text" />`,
|
|
112
|
+
"2.0.0"
|
|
113
|
+
), {
|
|
114
|
+
// Values
|
|
115
|
+
COMPONENT_NAME: C,
|
|
116
|
+
errorId: f,
|
|
117
|
+
isReadOnly: a,
|
|
118
|
+
shouldShowGroupError: g,
|
|
119
|
+
shouldShowGroupErrorMessage: c,
|
|
120
|
+
conditionalClasses: p,
|
|
121
|
+
inputValue: h,
|
|
122
|
+
hasContentSlot: t,
|
|
123
|
+
// Methods
|
|
124
|
+
onInput: M
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
}), Z = { class: "b-checkbox-group" };
|
|
128
|
+
function j(e, u, b, f, a, g) {
|
|
129
|
+
const c = m("bento-checkbox"), p = m("controls-group"), t = m("error-message");
|
|
130
|
+
return n(), v("div", Z, [
|
|
131
|
+
N(p, {
|
|
132
|
+
class: V(["b-checkbox-group__checkboxes", e.conditionalClasses]),
|
|
133
|
+
"aria-describedby": e.shouldShowGroupErrorMessage ? e.errorId : "",
|
|
134
|
+
"component-name": e.COMPONENT_NAME,
|
|
135
|
+
description: e.description,
|
|
136
|
+
disabled: e.disabled,
|
|
137
|
+
form: e.formId,
|
|
138
|
+
"hide-label": e.hideLabel,
|
|
139
|
+
label: e.label,
|
|
140
|
+
optional: e.optional,
|
|
141
|
+
required: e.required,
|
|
142
|
+
"tooltip-text": e.tooltipText
|
|
143
|
+
}, {
|
|
144
|
+
default: s(() => [
|
|
145
|
+
(n(!0), v(w, null, O(e.items, (o) => (n(), E(c, {
|
|
146
|
+
key: o.value,
|
|
147
|
+
"model-value": e.inputValue,
|
|
148
|
+
value: o.value,
|
|
149
|
+
disabled: e.disabled || o.disabled,
|
|
150
|
+
"has-error": e.shouldShowGroupError || o.hasError,
|
|
151
|
+
"error-message": e.shouldShowGroupError ? null : o.errorMessage,
|
|
152
|
+
readonly: e.isReadOnly || o.readonly,
|
|
153
|
+
tag: o.tag,
|
|
154
|
+
"onUpdate:modelValue": e.onInput
|
|
155
|
+
}, A({
|
|
156
|
+
default: s(() => [
|
|
157
|
+
k(S(o.label), 1)
|
|
158
|
+
]),
|
|
159
|
+
_: 2
|
|
160
|
+
}, [
|
|
161
|
+
o.description ? {
|
|
162
|
+
name: "description",
|
|
163
|
+
fn: s(() => [
|
|
164
|
+
k(S(o.description), 1)
|
|
165
|
+
]),
|
|
166
|
+
key: "0"
|
|
167
|
+
} : void 0,
|
|
168
|
+
e.hasContentSlot("content") ? {
|
|
169
|
+
name: "content",
|
|
170
|
+
fn: s(() => [
|
|
171
|
+
G(e.$slots, "content", L(P(o)), void 0, !0)
|
|
172
|
+
]),
|
|
173
|
+
key: "1"
|
|
174
|
+
} : void 0
|
|
175
|
+
]), 1032, ["model-value", "value", "disabled", "has-error", "error-message", "readonly", "tag", "onUpdate:modelValue"]))), 128))
|
|
176
|
+
]),
|
|
177
|
+
_: 3
|
|
178
|
+
}, 8, ["aria-describedby", "component-name", "class", "description", "disabled", "form", "hide-label", "label", "optional", "required", "tooltip-text"]),
|
|
179
|
+
e.shouldShowGroupErrorMessage ? (n(), E(t, {
|
|
180
|
+
key: 0,
|
|
181
|
+
id: e.errorId,
|
|
182
|
+
"error-message": e.errorMessage,
|
|
183
|
+
class: "b-checkbox-group__error-message"
|
|
184
|
+
}, null, 8, ["id", "error-message"])) : R("", !0)
|
|
185
|
+
]);
|
|
186
|
+
}
|
|
187
|
+
const oe = /* @__PURE__ */ F(H, [["render", j], ["__scopeId", "data-v-ebfe8867"]]);
|
|
188
|
+
export {
|
|
189
|
+
i as B,
|
|
190
|
+
oe as c
|
|
191
|
+
};
|
|
192
|
+
//# sourceMappingURL=checkbox-group.BcT-eZ2p.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox-group.BcT-eZ2p.js","sources":["../../../vue2/src/components/checkbox/components/checkbox-group/checkbox-group.types.ts","../../../vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue"],"sourcesContent":["import type { BentoCheckboxTag } from '@/components/checkbox';\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoCheckboxGroupVariant {\n HORIZONTAL = 'horizontal',\n VERTICAL = 'vertical',\n}\n\ninterface BentoCheckboxGroupItem {\n value: string | number;\n label: string;\n description?: string;\n disabled?: boolean;\n hasError?: boolean;\n errorMessage?: string;\n readonly?: boolean;\n tag?: BentoCheckboxTag;\n}\n\nexport type BentoCheckboxGroupItems = Array<BentoCheckboxGroupItem>;\n","<template>\n <div class=\"b-checkbox-group\">\n <controls-group\n class=\"b-checkbox-group__checkboxes\"\n :aria-describedby=\"shouldShowGroupErrorMessage ? errorId : ''\"\n :component-name=\"COMPONENT_NAME\"\n :class=\"conditionalClasses\"\n :description=\"description\"\n :disabled=\"disabled\"\n :form=\"formId\"\n :hide-label=\"hideLabel\"\n :label=\"label\"\n :optional=\"optional\"\n :required=\"required\"\n :tooltip-text=\"tooltipText\"\n >\n <bento-checkbox\n v-for=\"item in items\"\n :key=\"item.value\"\n :model-value=\"inputValue\"\n :value=\"item.value\"\n :disabled=\"disabled || item.disabled\"\n :has-error=\"shouldShowGroupError || item.hasError\"\n :error-message=\"shouldShowGroupError ? null : item.errorMessage\"\n :readonly=\"isReadOnly || item.readonly\"\n :tag=\"item.tag\"\n @update:model-value=\"onInput\"\n >\n <template #default>{{ item.label }}</template>\n <template v-if=\"item.description\" #description>{{ item.description }}</template>\n <template v-if=\"hasContentSlot('content')\" #content>\n <slot name=\"content\" v-bind=\"item\"></slot>\n </template>\n </bento-checkbox>\n </controls-group>\n <error-message\n v-if=\"shouldShowGroupErrorMessage\"\n :id=\"errorId\"\n :error-message=\"errorMessage\"\n class=\"b-checkbox-group__error-message\"\n />\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, ref, toRef, watch } from 'vue';\n import { ControlsGroup } from '@/components/internal/controls-group';\n import { ErrorMessage } from '@/components/internal/error-message';\n import { BentoCheckboxGroupItems, BentoCheckboxGroupVariant } from './checkbox-group.types';\n import BentoCheckbox from '@/components/checkbox/checkbox.vue';\n import { BentoCheckboxEvent } from '../../checkbox.types';\n import { generateUid } from '@/utils/ts/unique-id';\n import { deprecate } from '@/utils/ts/deprecate';\n import { useFormLayoutFieldLoading } from '@/composables/use-form-layout-loading/use-form-layout-loading';\n\n /**\n * The name of the component to be used in the Vue devtools and console warnings.\n */\n const COMPONENT_NAME = 'bento-checkbox-group';\n\n /**\n * A checkbox group component should be used whenever it is necessary to group a set of checkboxes that are related together\n * This component conforms to the official WAI-ARIA guidelines for grouping controls: https://www.w3.org/WAI/tutorials/forms/grouping/\n *\n * import { BentoCheckboxGroup } from '@adyen/bento-vue2/';\n *\n * export default {\n * components: { BentoCheckboxGroup },\n * template: `\n * <bento-checkbox-group\n * label=\"Your group label\"\n * :items=\"[\n * { value: 1, label: 'Your label' },\n * { value: 2, label: 'Another label', description: 'Your sub label' },\n * ]\"\n * />\n * `\n * };\n */\n export default defineComponent({\n name: COMPONENT_NAME,\n components: { BentoCheckbox, ControlsGroup, ErrorMessage },\n model: { prop: 'modelValue' },\n props: {\n /**\n * Descriptive supporting text visbile underneath the label.\n */\n description: { type: String, default: null },\n\n /**\n * If set to true, renders all checkboxes in the group in a disabled state.\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Renders all checkboxes in an error state with an error message.\n */\n errorMessage: { type: String, default: null },\n\n /**\n * The form id the checkbox group is associated with. Defaults to null, as a checkbox group can also be used standalone.\n */\n formId: { type: String, default: null },\n\n /**\n * If set to true, renders all checkboxes in the group in an error state.\n *\n * @deprecated Use \"errorMessage\" prop instead\n */\n hasError: { type: Boolean, default: false },\n\n /**\n * Shows/hides the group label.\n */\n hideLabel: { type: Boolean, default: null },\n\n /**\n * The checkbox group's items.\n */\n items: { type: Array as PropType<BentoCheckboxGroupItems>, required: true },\n\n /**\n * The name associated with the group. Required for accessibility purposes.\n */\n label: { type: String, required: true },\n\n /**\n * Determines the initially selected value of the group. Corresponds to the BentoCheckboxButtonItem's value.\n * Defaults to no value selected.\n */\n modelValue: { type: Array<number | string | null>, default: () => [] },\n\n /**\n * Indicates the field is optional.\n */\n optional: { type: Boolean, default: false },\n\n /**\n * If set to true, renders all checkboxes in the group in a readonly state.\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * Indicates the field is required.\n */\n required: { type: Boolean, default: false },\n\n /**\n * Tooltip message.\n */\n tooltipText: { type: String, default: null },\n\n /**\n * The checkbox group's layout. It can be vertical or horizontal. Defaults to vertical.\n */\n variant: {\n type: String as PropType<BentoCheckboxGroupVariant | `${BentoCheckboxGroupVariant}`>,\n default: BentoCheckboxGroupVariant.VERTICAL,\n validator: (value: BentoCheckboxGroupVariant) =>\n Object.values(BentoCheckboxGroupVariant).includes(value),\n },\n },\n emits: [BentoCheckboxEvent.UPDATE, BentoCheckboxEvent.INPUT],\n setup(props, { emit, slots }) {\n const errorId = generateUid('error');\n const { isReadOnly } = useFormLayoutFieldLoading(toRef(props, 'readonly'));\n\n const shouldShowGroupError = computed(\n () => !props.disabled && !isReadOnly.value && (!!props.errorMessage || props.hasError)\n );\n const shouldShowGroupErrorMessage = computed(\n () => !props.disabled && !isReadOnly.value && !!props.errorMessage\n );\n\n const conditionalClasses = computed(() => ({\n 'b-checkbox-group__checkboxes--horizontal': props.variant === BentoCheckboxGroupVariant.HORIZONTAL,\n }));\n\n // Slots logic\n // Temporary, use-has-slots composable doesn't currently work for\n // vue3 named scoped slots\n const hasContentSlot = name => !!slots[name];\n const shouldShowSlotsError = computed(() => hasContentSlot('content') && props.variant !== 'vertical');\n\n watch(\n shouldShowSlotsError,\n newValue => {\n if (newValue) {\n throw new Error('The content slot is only available for the vertical checkbox group layout');\n }\n },\n { immediate: true }\n );\n\n const inputValue = ref(props.modelValue);\n watch(\n () => props.modelValue,\n () => {\n inputValue.value = props.modelValue;\n }\n );\n\n const onInput = value => {\n inputValue.value = value;\n emit(BentoCheckboxEvent.UPDATE, value);\n emit(BentoCheckboxEvent.INPUT, value);\n };\n\n if (props.hasError) {\n deprecate(\n 'BentoCheckboxGroup \"hasError\" property',\n `Use the BentoCheckboxGroup \"errorMessage\" property instead to indicate that there is a modifier error.\n Having the field as \"undefined\" will hide/remove the error.\n <bento-checkbox-group errorMessage=\"Error message text\" />`,\n '2.0.0'\n );\n }\n\n return {\n // Values\n COMPONENT_NAME,\n errorId,\n isReadOnly,\n shouldShowGroupError,\n shouldShowGroupErrorMessage,\n conditionalClasses,\n inputValue,\n hasContentSlot,\n\n // Methods\n onInput,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./checkbox-group.scss\" />\n"],"names":["BentoCheckboxGroupVariant","BentoCheckboxGroupVariant2","COMPONENT_NAME","_sfc_main","defineComponent","BentoCheckbox","ControlsGroup","ErrorMessage","value","BentoCheckboxEvent","props","emit","slots","errorId","generateUid","isReadOnly","useFormLayoutFieldLoading","toRef","shouldShowGroupError","computed","shouldShowGroupErrorMessage","conditionalClasses","hasContentSlot","name","shouldShowSlotsError","watch","newValue","inputValue","ref","onInput","deprecate","openBlock","createElementBlock","_hoisted_1","createVNode","_component_controls_group","normalizeClass","_ctx","Fragment","renderList","item","createBlock","_component_bento_checkbox","createSlots","withCtx","_component_error_message"],"mappings":"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"}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { openBlock as
|
|
2
|
-
import { C as
|
|
3
|
-
import { _ as
|
|
1
|
+
import { openBlock as o, createElementBlock as f, mergeProps as L, toDisplayString as V, createCommentVNode as C, createElementVNode as D, defineComponent as w, toRefs as O, computed as r, normalizeClass as _, unref as a, createBlock as E } from "vue";
|
|
2
|
+
import { C as S } from "./checkmark-small.BCeGkayS.js";
|
|
3
|
+
import { _ as x } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
4
4
|
import "../assets/checkbox-input.css";
|
|
5
|
-
var
|
|
6
|
-
let
|
|
7
|
-
const
|
|
5
|
+
var l = /* @__PURE__ */ ((e) => (e.UNCHECKED = "unchecked", e.DISABLED = "disabled", e.ERROR = "error", e.READONLY = "readonly", e))(l || {}), h = /* @__PURE__ */ ((e) => (e.UPDATE = "update:model-value", e))(h || {});
|
|
6
|
+
let g = 0;
|
|
7
|
+
const U = {
|
|
8
8
|
beforeCreate() {
|
|
9
|
-
this.uuid =
|
|
9
|
+
this.uuid = g.toString(), g += 1;
|
|
10
10
|
}
|
|
11
|
-
},
|
|
11
|
+
}, H = { key: 0 }, I = /* @__PURE__ */ D("path", {
|
|
12
12
|
fill: "#00112C",
|
|
13
13
|
d: "M4.25 7.25H11.75V8.75H4.25V7.25Z"
|
|
14
14
|
}, null, -1);
|
|
15
|
-
function P(e, u, t, p,
|
|
16
|
-
return
|
|
15
|
+
function P(e, u, t, p, b, n) {
|
|
16
|
+
return o(), f("svg", L({ role: "img" }, e.$attrs, {
|
|
17
17
|
class: "ui-assets-icons-16",
|
|
18
18
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19
19
|
width: "16",
|
|
20
20
|
height: "16",
|
|
21
21
|
fill: "none"
|
|
22
22
|
}), [
|
|
23
|
-
e.$attrs["svg-title"] ? (
|
|
24
|
-
|
|
23
|
+
e.$attrs["svg-title"] ? (o(), f("title", H, V(e.$attrs["svg-title"]), 1)) : C("", !0),
|
|
24
|
+
I
|
|
25
25
|
], 16);
|
|
26
26
|
}
|
|
27
|
-
const T = /* @__PURE__ */
|
|
27
|
+
const T = /* @__PURE__ */ x(U, [["render", P]]), Y = ["id", "aria-label", "aria-checked", "aria-describedby", "aria-invalid", "checked", "disabled", ".indeterminate", "value", "aria-readonly"], K = {
|
|
28
28
|
name: "checkbox-input",
|
|
29
29
|
inheritAttrs: !1
|
|
30
|
-
},
|
|
30
|
+
}, z = /* @__PURE__ */ w({
|
|
31
31
|
...K,
|
|
32
32
|
props: {
|
|
33
33
|
/**
|
|
@@ -82,61 +82,61 @@ const T = /* @__PURE__ */ D(I, [["render", P]]), Y = ["id", "aria-label", "aria-
|
|
|
82
82
|
},
|
|
83
83
|
emits: ["update:model-value"],
|
|
84
84
|
setup(e, { emit: u }) {
|
|
85
|
-
const t = e, { disabled: p, indeterminate:
|
|
86
|
-
[`b-checkbox-input--${
|
|
87
|
-
[`b-checkbox-input--${
|
|
88
|
-
})), A =
|
|
89
|
-
[`b-checkbox-input__outline--${
|
|
90
|
-
[`b-checkbox-input__outline--${
|
|
91
|
-
[`b-checkbox-input__outline--${
|
|
92
|
-
})),
|
|
93
|
-
|
|
94
|
-
},
|
|
85
|
+
const t = e, { disabled: p, indeterminate: b, modelValue: n, readonly: m, value: s } = O(t), $ = r(() => ({
|
|
86
|
+
[`b-checkbox-input--${l.DISABLED}`]: t.disabled,
|
|
87
|
+
[`b-checkbox-input--${l.READONLY}`]: t.readonly
|
|
88
|
+
})), A = r(() => ({
|
|
89
|
+
[`b-checkbox-input__outline--${l.UNCHECKED}`]: !c.value && !t.indeterminate,
|
|
90
|
+
[`b-checkbox-input__outline--${l.ERROR}`]: t.hasError,
|
|
91
|
+
[`b-checkbox-input__outline--${l.READONLY}`]: t.readonly
|
|
92
|
+
})), v = r(() => Array.isArray(n.value)), c = r(() => v.value ? n.value.some((i) => i === s.value) : n.value), R = r(() => t.hasError && !t.disabled && !t.readonly), B = (i) => {
|
|
93
|
+
m.value && i.preventDefault();
|
|
94
|
+
}, N = (i) => {
|
|
95
95
|
if (p.value)
|
|
96
96
|
return;
|
|
97
|
-
const
|
|
98
|
-
if (
|
|
99
|
-
const d = [...
|
|
100
|
-
y === -1 ? d.push(s.value) : d.splice(y, 1), u(
|
|
97
|
+
const k = i.target.checked;
|
|
98
|
+
if (v.value) {
|
|
99
|
+
const d = [...n.value], y = d.indexOf(s.value);
|
|
100
|
+
y === -1 ? d.push(s.value) : d.splice(y, 1), u(h.UPDATE, d);
|
|
101
101
|
} else
|
|
102
|
-
u(
|
|
102
|
+
u(h.UPDATE, k);
|
|
103
103
|
};
|
|
104
|
-
return (
|
|
105
|
-
class:
|
|
104
|
+
return (i, k) => (o(), f("div", {
|
|
105
|
+
class: _(["b-checkbox-input", a($)])
|
|
106
106
|
}, [
|
|
107
|
-
a(
|
|
107
|
+
a(b) ? (o(), E(a(T), {
|
|
108
108
|
key: 0,
|
|
109
109
|
class: "b-checkbox-input__icon",
|
|
110
110
|
"svg-title": "intermediate"
|
|
111
|
-
})) : a(c) ? (
|
|
111
|
+
})) : a(c) ? (o(), E(a(S), {
|
|
112
112
|
key: 1,
|
|
113
113
|
class: "b-checkbox-input__icon",
|
|
114
114
|
"svg-title": "checked"
|
|
115
|
-
})) :
|
|
116
|
-
|
|
115
|
+
})) : C("", !0),
|
|
116
|
+
D("input", {
|
|
117
117
|
id: e.id,
|
|
118
118
|
ref: "inputRef",
|
|
119
119
|
role: "checkbox",
|
|
120
120
|
type: "checkbox",
|
|
121
|
-
class:
|
|
121
|
+
class: _(["b-checkbox-input__outline", a(A)]),
|
|
122
122
|
"aria-label": e.ariaLabel,
|
|
123
123
|
"aria-checked": a(c),
|
|
124
124
|
"aria-describedby": e.ariaDescribedby,
|
|
125
125
|
"aria-invalid": a(R),
|
|
126
126
|
checked: a(c),
|
|
127
127
|
disabled: a(p),
|
|
128
|
-
".indeterminate": a(
|
|
128
|
+
".indeterminate": a(b),
|
|
129
129
|
value: a(s),
|
|
130
|
-
"aria-readonly": a(
|
|
130
|
+
"aria-readonly": a(m),
|
|
131
131
|
onClick: B,
|
|
132
|
-
onChange:
|
|
132
|
+
onChange: N
|
|
133
133
|
}, null, 42, Y)
|
|
134
134
|
], 2));
|
|
135
135
|
}
|
|
136
|
-
});
|
|
137
|
-
const j = /* @__PURE__ */ D(M, [["__scopeId", "data-v-cc325305"]]);
|
|
136
|
+
}), j = /* @__PURE__ */ x(z, [["__scopeId", "data-v-cc325305"]]);
|
|
138
137
|
export {
|
|
139
|
-
|
|
138
|
+
l as C,
|
|
139
|
+
T as N,
|
|
140
140
|
j as a
|
|
141
141
|
};
|
|
142
|
-
//# sourceMappingURL=checkbox-input.
|
|
142
|
+
//# sourceMappingURL=checkbox-input.CR1lHf7f.js.map
|