@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,385 @@
|
|
|
1
|
+
import { defineComponent as K, useSlots as Q, computed as n, inject as ae, ref as V, openBlock as r, createElementBlock as w, normalizeClass as b, unref as a, createElementVNode as R, renderSlot as v, createCommentVNode as m, withModifiers as te, createBlock as d, withCtx as s, createTextVNode as O, toDisplayString as T, createVNode as le, watch as oe, provide as ne, Fragment as re, renderList as ie, mergeProps as de, createSlots as se, normalizeProps as q, guardReactiveProps as M } from "vue";
|
|
2
|
+
import { B as S } from "./typography.D7onlQ9v.js";
|
|
3
|
+
import { u as ce } from "./aria-label.CaUURpnB.js";
|
|
4
|
+
import { g as U } from "./unique-id.XFfoKuc2.js";
|
|
5
|
+
import { u as ue } from "./use-has-slot.B7eQSabc.js";
|
|
6
|
+
import { a as be } from "./radio-input.BEzK-fgR.js";
|
|
7
|
+
import { a as ye } from "./checkbox-input.CR1lHf7f.js";
|
|
8
|
+
import { _ as W } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
9
|
+
import { C as fe } from "./controls-group.DWu8NqKL.js";
|
|
10
|
+
import { E as me } from "./error-message.DyjHMyEZ.js";
|
|
11
|
+
import "../assets/selection-card-group.css";
|
|
12
|
+
var x = /* @__PURE__ */ ((e) => (e.DISABLED = "disabled", e.READONLY = "readonly", e.ERROR = "error", e))(x || {});
|
|
13
|
+
const X = Symbol("selection card radio input injection key"), ve = {
|
|
14
|
+
key: 0,
|
|
15
|
+
class: "b-selection-card__icon",
|
|
16
|
+
role: "presentation"
|
|
17
|
+
}, pe = ["for", "onClick"], he = {
|
|
18
|
+
name: "bento-selection-card"
|
|
19
|
+
}, ge = /* @__PURE__ */ K({
|
|
20
|
+
...he,
|
|
21
|
+
props: {
|
|
22
|
+
/**
|
|
23
|
+
* The description of the selection card
|
|
24
|
+
*/
|
|
25
|
+
description: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: void 0
|
|
28
|
+
},
|
|
29
|
+
/**
|
|
30
|
+
* Disables the selection card
|
|
31
|
+
*/
|
|
32
|
+
disabled: { type: Boolean, default: !1 },
|
|
33
|
+
/**
|
|
34
|
+
* Shows the selection card in error state
|
|
35
|
+
*/
|
|
36
|
+
hasError: { type: Boolean, default: !1 },
|
|
37
|
+
/**
|
|
38
|
+
* This property should not be used directly.
|
|
39
|
+
* It will be used by v-model directive on selection card component.
|
|
40
|
+
*
|
|
41
|
+
* When handling a single input, use a string or a number.
|
|
42
|
+
*
|
|
43
|
+
* When handling multiple inputs, use an array of keys.
|
|
44
|
+
* These keys exist as a set "value" prop for each input.
|
|
45
|
+
*/
|
|
46
|
+
modelValue: {
|
|
47
|
+
type: [Boolean, String, Array],
|
|
48
|
+
default: null
|
|
49
|
+
},
|
|
50
|
+
/**
|
|
51
|
+
* Sets the selection card to readonly
|
|
52
|
+
*/
|
|
53
|
+
readonly: { type: Boolean, default: !1 },
|
|
54
|
+
/**
|
|
55
|
+
* The subtitle of the selection card
|
|
56
|
+
*/
|
|
57
|
+
subtitle: {
|
|
58
|
+
type: String,
|
|
59
|
+
default: void 0
|
|
60
|
+
},
|
|
61
|
+
/**
|
|
62
|
+
* The title of the selection card
|
|
63
|
+
*/
|
|
64
|
+
title: {
|
|
65
|
+
type: String,
|
|
66
|
+
required: !0
|
|
67
|
+
},
|
|
68
|
+
/**
|
|
69
|
+
* Indicates the value of the input that will be returned when it's checked.
|
|
70
|
+
*/
|
|
71
|
+
value: {
|
|
72
|
+
type: [String, Number],
|
|
73
|
+
required: !0
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
emits: ["input", "update:model-value"],
|
|
77
|
+
setup(e, { emit: p }) {
|
|
78
|
+
const t = e, E = Q(), c = ue(E), h = U("selection-card-input-id"), y = U("selection-card-description"), I = n(
|
|
79
|
+
() => t.modelValue
|
|
80
|
+
), g = n(
|
|
81
|
+
() => t.modelValue
|
|
82
|
+
), B = n(() => ({
|
|
83
|
+
"b-selection-card--checked": Y.value
|
|
84
|
+
})), $ = n(() => ({
|
|
85
|
+
[`b-selection-card--${x.DISABLED}`]: t.disabled,
|
|
86
|
+
[`b-selection-card--${x.ERROR}`]: t.hasError,
|
|
87
|
+
[`b-selection-card--${x.READONLY}`]: t.readonly,
|
|
88
|
+
"b-selection-card--center-aligned": A.value
|
|
89
|
+
})), i = n(() => ({
|
|
90
|
+
"b-selection-card__checkbox-container--center-aligned": A.value
|
|
91
|
+
})), z = n(() => ({
|
|
92
|
+
"b-selection-card__checkbox-container-text--center-aligned": A.value
|
|
93
|
+
})), o = n(() => ({
|
|
94
|
+
"b-selection-card__slot--with-icon": c("icon")
|
|
95
|
+
})), G = ce({
|
|
96
|
+
ariaLabel: t.title,
|
|
97
|
+
label: t.value
|
|
98
|
+
}), P = n(() => Array.isArray(t.modelValue)), Y = n(() => _.value ? t.value === t.modelValue : P.value ? t.modelValue.some((l) => l === t.value) : t.modelValue), _ = ae(X, V(!1)), A = n(() => !t.subtitle && !t.description), k = V(null), L = V(null), N = V(null), j = (l) => {
|
|
99
|
+
var f, u, C, F, H, J;
|
|
100
|
+
if (!t.disabled && !t.readonly) {
|
|
101
|
+
if (L.value && ((u = (f = L.value) == null ? void 0 : f.$el) != null && u.contains(l.target)) || N.value && ((F = (C = N.value) == null ? void 0 : C.$el) != null && F.contains(l.target)) || k.value && ((J = (H = k.value) == null ? void 0 : H.$el) != null && J.contains(l.target)))
|
|
102
|
+
return;
|
|
103
|
+
const ee = Z();
|
|
104
|
+
D(ee);
|
|
105
|
+
}
|
|
106
|
+
}, Z = () => {
|
|
107
|
+
var f;
|
|
108
|
+
const l = ((f = k.value) == null ? void 0 : f.$refs.inputRef).checked;
|
|
109
|
+
if (P.value) {
|
|
110
|
+
const u = [...t.modelValue], C = u.indexOf(t.value);
|
|
111
|
+
return C === -1 ? u.push(t.value) : u.splice(C, 1), u;
|
|
112
|
+
}
|
|
113
|
+
return _.value ? t.value : !l;
|
|
114
|
+
}, D = (l) => {
|
|
115
|
+
!t.disabled && !t.readonly && (p("update:model-value", l), p("input", l));
|
|
116
|
+
};
|
|
117
|
+
return (l, f) => (r(), w("div", {
|
|
118
|
+
class: b(["b-selection-card", a(B)]),
|
|
119
|
+
onClick: j
|
|
120
|
+
}, [
|
|
121
|
+
R("div", {
|
|
122
|
+
class: b(["b-selection-card__container", a($)])
|
|
123
|
+
}, [
|
|
124
|
+
R("div", {
|
|
125
|
+
class: b(["b-selection-card__checkbox-container", a(i)])
|
|
126
|
+
}, [
|
|
127
|
+
R("div", {
|
|
128
|
+
class: b(["b-selection-card__checkbox-container-text", a(z)])
|
|
129
|
+
}, [
|
|
130
|
+
a(c)("icon") ? (r(), w("div", ve, [
|
|
131
|
+
v(l.$slots, "icon", {}, void 0, !0)
|
|
132
|
+
])) : m("", !0),
|
|
133
|
+
R("label", {
|
|
134
|
+
for: a(h),
|
|
135
|
+
class: "b-selection-card__text",
|
|
136
|
+
onClick: te(j, ["stop", "prevent"])
|
|
137
|
+
}, [
|
|
138
|
+
e.subtitle ? (r(), d(a(S), {
|
|
139
|
+
key: 0,
|
|
140
|
+
class: "b-selection-card__description",
|
|
141
|
+
el: "span",
|
|
142
|
+
variant: "caption"
|
|
143
|
+
}, {
|
|
144
|
+
default: s(() => [
|
|
145
|
+
O(T(e.subtitle), 1)
|
|
146
|
+
]),
|
|
147
|
+
_: 1
|
|
148
|
+
})) : m("", !0),
|
|
149
|
+
le(a(S), {
|
|
150
|
+
el: "span",
|
|
151
|
+
variant: "title"
|
|
152
|
+
}, {
|
|
153
|
+
default: s(() => [
|
|
154
|
+
O(T(e.title), 1)
|
|
155
|
+
]),
|
|
156
|
+
_: 1
|
|
157
|
+
}),
|
|
158
|
+
e.description ? (r(), d(a(S), {
|
|
159
|
+
key: 1,
|
|
160
|
+
id: "descriptionId",
|
|
161
|
+
class: "b-selection-card__description",
|
|
162
|
+
el: "span",
|
|
163
|
+
variant: "body"
|
|
164
|
+
}, {
|
|
165
|
+
default: s(() => [
|
|
166
|
+
O(T(e.description), 1)
|
|
167
|
+
]),
|
|
168
|
+
_: 1
|
|
169
|
+
})) : m("", !0)
|
|
170
|
+
], 8, pe)
|
|
171
|
+
], 2),
|
|
172
|
+
a(_) ? (r(), d(a(be), {
|
|
173
|
+
key: 0,
|
|
174
|
+
id: a(h),
|
|
175
|
+
ref_key: "inputRef",
|
|
176
|
+
ref: k,
|
|
177
|
+
"aria-label": a(G),
|
|
178
|
+
"aria-describedby": e.description ? a(y) : void 0,
|
|
179
|
+
disabled: e.disabled,
|
|
180
|
+
"has-error": e.hasError,
|
|
181
|
+
"aria-readonly": e.readonly ?? void 0,
|
|
182
|
+
value: e.value,
|
|
183
|
+
readonly: e.readonly,
|
|
184
|
+
"model-value": a(I),
|
|
185
|
+
"onUpdate:modelValue": D
|
|
186
|
+
}, null, 8, ["id", "aria-label", "aria-describedby", "disabled", "has-error", "aria-readonly", "value", "readonly", "model-value"])) : (r(), d(a(ye), {
|
|
187
|
+
key: 1,
|
|
188
|
+
id: a(h),
|
|
189
|
+
ref_key: "inputRef",
|
|
190
|
+
ref: k,
|
|
191
|
+
"aria-label": a(G),
|
|
192
|
+
"aria-describedby": e.description ? a(y) : void 0,
|
|
193
|
+
disabled: e.disabled,
|
|
194
|
+
"has-error": e.hasError,
|
|
195
|
+
"aria-readonly": e.readonly ?? void 0,
|
|
196
|
+
value: e.value,
|
|
197
|
+
readonly: e.readonly,
|
|
198
|
+
"model-value": a(g),
|
|
199
|
+
"onUpdate:modelValue": D
|
|
200
|
+
}, null, 8, ["id", "aria-label", "aria-describedby", "disabled", "has-error", "aria-readonly", "value", "readonly", "model-value"]))
|
|
201
|
+
], 2),
|
|
202
|
+
a(c)("content") ? (r(), d(a(S), {
|
|
203
|
+
key: 0,
|
|
204
|
+
ref_key: "slotRef",
|
|
205
|
+
ref: L,
|
|
206
|
+
el: "div",
|
|
207
|
+
class: b(["b-selection-card__slot", a(o)])
|
|
208
|
+
}, {
|
|
209
|
+
default: s(() => [
|
|
210
|
+
v(l.$slots, "content", {}, void 0, !0)
|
|
211
|
+
]),
|
|
212
|
+
_: 3
|
|
213
|
+
}, 8, ["class"])) : m("", !0),
|
|
214
|
+
a(c)("dynamicContent") && a(Y) ? (r(), d(a(S), {
|
|
215
|
+
key: 1,
|
|
216
|
+
ref_key: "dynamicSlotRef",
|
|
217
|
+
ref: N,
|
|
218
|
+
el: "div",
|
|
219
|
+
class: b(["b-selection-card__slot", a(o)])
|
|
220
|
+
}, {
|
|
221
|
+
default: s(() => [
|
|
222
|
+
v(l.$slots, "dynamicContent", {}, void 0, !0)
|
|
223
|
+
]),
|
|
224
|
+
_: 3
|
|
225
|
+
}, 8, ["class"])) : m("", !0)
|
|
226
|
+
], 2)
|
|
227
|
+
], 2));
|
|
228
|
+
}
|
|
229
|
+
}), ke = /* @__PURE__ */ W(ge, [["__scopeId", "data-v-cd9d5db4"]]), Ce = {}, Se = /* @__PURE__ */ K({
|
|
230
|
+
...Ce,
|
|
231
|
+
__name: "selection-card-group",
|
|
232
|
+
props: {
|
|
233
|
+
/**
|
|
234
|
+
* Descriptive supporting text visbile underneath the label.
|
|
235
|
+
*/
|
|
236
|
+
description: { type: String, default: null },
|
|
237
|
+
/**
|
|
238
|
+
* If set to true, renders all cards in the group in a disabled state.
|
|
239
|
+
*/
|
|
240
|
+
disabled: { type: Boolean, default: !1 },
|
|
241
|
+
/**
|
|
242
|
+
* Renders all cards in an error state with an error message.
|
|
243
|
+
*/
|
|
244
|
+
errorMessage: { type: String, default: null },
|
|
245
|
+
/**
|
|
246
|
+
* The form id the selection card group is associated with. Defaults to null, as a selection card group can also be used standalone.
|
|
247
|
+
*/
|
|
248
|
+
formId: { type: String, default: null },
|
|
249
|
+
/**
|
|
250
|
+
* Shows/hides the group label.
|
|
251
|
+
*/
|
|
252
|
+
hideLabel: { type: Boolean, default: null },
|
|
253
|
+
/**
|
|
254
|
+
* Label of the group. Required for accessibility purposes, even if it's not shown
|
|
255
|
+
*/
|
|
256
|
+
label: {
|
|
257
|
+
type: String,
|
|
258
|
+
required: !0
|
|
259
|
+
},
|
|
260
|
+
/**
|
|
261
|
+
* The selection card group's layout. It can be vertical or horizontal. Defaults to vertical.
|
|
262
|
+
* @values horizontal, vertical
|
|
263
|
+
*/
|
|
264
|
+
layout: {
|
|
265
|
+
type: String,
|
|
266
|
+
default: "vertical"
|
|
267
|
+
},
|
|
268
|
+
/**
|
|
269
|
+
* The selection card group's items.
|
|
270
|
+
*/
|
|
271
|
+
items: {
|
|
272
|
+
type: Array,
|
|
273
|
+
required: !0
|
|
274
|
+
},
|
|
275
|
+
/**
|
|
276
|
+
* Determines the initially selected value of the group. Corresponds to the BentoSelectionCardItem's value.
|
|
277
|
+
* Defaults to no value selected.
|
|
278
|
+
*/
|
|
279
|
+
modelValue: {
|
|
280
|
+
type: [Array, String, Number],
|
|
281
|
+
default: null
|
|
282
|
+
},
|
|
283
|
+
/**
|
|
284
|
+
* Indicates the field is optional.
|
|
285
|
+
*/
|
|
286
|
+
optional: { type: Boolean, default: !1 },
|
|
287
|
+
/**
|
|
288
|
+
* Indicates the field is required.
|
|
289
|
+
*/
|
|
290
|
+
required: { type: Boolean, default: !1 },
|
|
291
|
+
/**
|
|
292
|
+
* Tooltip message.
|
|
293
|
+
*/
|
|
294
|
+
tooltipText: { type: String, default: null },
|
|
295
|
+
/**
|
|
296
|
+
* If set to true, renders all cards in the group in a readonly state.
|
|
297
|
+
*/
|
|
298
|
+
readonly: { type: Boolean, default: !1 },
|
|
299
|
+
/**
|
|
300
|
+
* Renders the cards with a checkbox or a radio input. Selection logic will also apply in accordance.
|
|
301
|
+
* @values checkbox, radio
|
|
302
|
+
*/
|
|
303
|
+
variant: { type: String, default: "checkbox" }
|
|
304
|
+
},
|
|
305
|
+
emits: ["input", "update:model-value"],
|
|
306
|
+
setup(e, { emit: p }) {
|
|
307
|
+
const t = e, E = Q(), c = (i) => !!E[i], h = n(() => ({
|
|
308
|
+
"b-selection-card-group__items--horizontal": t.layout === "horizontal"
|
|
309
|
+
})), y = V(t.modelValue);
|
|
310
|
+
oe(
|
|
311
|
+
() => t.modelValue,
|
|
312
|
+
() => {
|
|
313
|
+
y.value = t.modelValue;
|
|
314
|
+
}
|
|
315
|
+
);
|
|
316
|
+
const I = U("error"), g = n(() => !t.disabled && !t.readonly && !!t.errorMessage), B = (i) => {
|
|
317
|
+
y.value = i, p("update:model-value", i), p("input", i);
|
|
318
|
+
}, $ = n(() => t.variant === "radio");
|
|
319
|
+
return ne(X, $), (i, z) => (r(), d(a(fe), {
|
|
320
|
+
"aria-describedby": a(g) ? a(I) : null,
|
|
321
|
+
label: e.label,
|
|
322
|
+
"hide-label": e.hideLabel,
|
|
323
|
+
description: e.description,
|
|
324
|
+
disabled: e.disabled,
|
|
325
|
+
"tooltip-text": e.tooltipText,
|
|
326
|
+
readonly: e.readonly,
|
|
327
|
+
required: e.required,
|
|
328
|
+
optional: e.optional,
|
|
329
|
+
class: "b-selection-card-group",
|
|
330
|
+
"component-name": "selection-card-group"
|
|
331
|
+
}, {
|
|
332
|
+
default: s(() => [
|
|
333
|
+
R("div", {
|
|
334
|
+
class: b(["b-selection-card-group__items", a(h)])
|
|
335
|
+
}, [
|
|
336
|
+
(r(!0), w(re, null, ie(e.items, (o) => (r(), d(ke, de({
|
|
337
|
+
key: `selection-card-${o.value}`,
|
|
338
|
+
class: "b-selection-card-group__item"
|
|
339
|
+
}, o, {
|
|
340
|
+
"model-value": y.value,
|
|
341
|
+
readonly: e.readonly || o.readonly,
|
|
342
|
+
"has-error": a(g),
|
|
343
|
+
disabled: e.disabled || o.disabled,
|
|
344
|
+
"onUpdate:modelValue": B
|
|
345
|
+
}), se({ _: 2 }, [
|
|
346
|
+
c("icon") && o.icon ? {
|
|
347
|
+
name: "icon",
|
|
348
|
+
fn: s(() => [
|
|
349
|
+
v(i.$slots, "icon", q(M(o)), void 0, !0)
|
|
350
|
+
]),
|
|
351
|
+
key: "0"
|
|
352
|
+
} : void 0,
|
|
353
|
+
c("content") && o.content ? {
|
|
354
|
+
name: "content",
|
|
355
|
+
fn: s(() => [
|
|
356
|
+
v(i.$slots, "content", q(M(o)), void 0, !0)
|
|
357
|
+
]),
|
|
358
|
+
key: "1"
|
|
359
|
+
} : void 0,
|
|
360
|
+
c("dynamicContent") && o.dynamicContent ? {
|
|
361
|
+
name: "dynamicContent",
|
|
362
|
+
fn: s(() => [
|
|
363
|
+
v(i.$slots, "dynamicContent", q(M(o)), void 0, !0)
|
|
364
|
+
]),
|
|
365
|
+
key: "2"
|
|
366
|
+
} : void 0
|
|
367
|
+
]), 1040, ["model-value", "readonly", "has-error", "disabled"]))), 128))
|
|
368
|
+
], 2),
|
|
369
|
+
a(g) ? (r(), d(a(me), {
|
|
370
|
+
key: 0,
|
|
371
|
+
id: a(I),
|
|
372
|
+
"error-message": e.errorMessage,
|
|
373
|
+
class: "b-selection-card-group__error-message"
|
|
374
|
+
}, null, 8, ["id", "error-message"])) : m("", !0)
|
|
375
|
+
]),
|
|
376
|
+
_: 3
|
|
377
|
+
}, 8, ["aria-describedby", "label", "hide-label", "description", "disabled", "tooltip-text", "readonly", "required", "optional"]));
|
|
378
|
+
}
|
|
379
|
+
}), Ne = /* @__PURE__ */ W(Se, [["__scopeId", "data-v-8da9dd7f"]]);
|
|
380
|
+
export {
|
|
381
|
+
ke as B,
|
|
382
|
+
x as a,
|
|
383
|
+
Ne as s
|
|
384
|
+
};
|
|
385
|
+
//# sourceMappingURL=selection-card-group.C-YLePO4.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selection-card-group.C-YLePO4.js","sources":["../../../vue2/src/components/selection-card/selection-card.types.ts","../../../vue2/src/components/selection-card/selection-card.keys.ts","../../../vue2/src/components/selection-card/selection-card.vue","../../../vue2/src/components/selection-card/components/selection-card-group/selection-card-group.vue"],"sourcesContent":["import { RadioInputValue } from '../internal/radio-input';\nimport { BentoCheckboxType } from '../checkbox';\nimport { VueNodeElement } from '@/types';\n\nexport enum BentoSelectionCardState {\n DISABLED = 'disabled',\n READONLY = 'readonly',\n ERROR = 'error',\n}\n\nexport type BentoSelectionCardValue = string | number;\n\nexport type BentoSelectionCardModelValue = BentoCheckboxType | RadioInputValue;\n\nexport interface BentoSelectionCardItem {\n content?: string | object;\n description?: string;\n disabled?: boolean;\n dynamicContent?: string | object;\n hasError?: boolean;\n icon?: VueNodeElement;\n readonly?: boolean;\n subtitle?: string;\n title: string;\n value: BentoSelectionCardValue;\n}\n","export const SELECTION_CARD_RADIO_INPUT_INJECTION_KEY = Symbol('selection card radio input injection key');\n","<template>\n <div class=\"b-selection-card\" :class=\"conditionalClasses\" @click=\"handleCardClick\">\n <div class=\"b-selection-card__container\" :class=\"containerConditionalClasses\">\n <div class=\"b-selection-card__checkbox-container\" :class=\"checkboxContainerConditionalClasses\">\n <div class=\"b-selection-card__checkbox-container-text\" :class=\"checkboxContainerTextConditionalClasses\">\n <div v-if=\"hasSlot('icon')\" class=\"b-selection-card__icon\" role=\"presentation\">\n <slot name=\"icon\" />\n </div>\n <label :for=\"inputId\" class=\"b-selection-card__text\" @click.stop.prevent=\"handleCardClick\">\n <bento-typography\n v-if=\"subtitle\"\n class=\"b-selection-card__description\"\n el=\"span\"\n variant=\"caption\"\n >{{ subtitle }}</bento-typography\n >\n <bento-typography el=\"span\" variant=\"title\">{{ title }}</bento-typography>\n <bento-typography\n v-if=\"description\"\n id=\"descriptionId\"\n class=\"b-selection-card__description\"\n el=\"span\"\n variant=\"body\"\n >\n {{ description }}\n </bento-typography>\n </label>\n </div>\n <radio-input\n v-if=\"isRadioInput\"\n :id=\"inputId\"\n ref=\"inputRef\"\n :aria-label=\"ariaLabel\"\n :aria-describedby=\"description ? descriptionId : undefined\"\n :disabled=\"disabled\"\n :has-error=\"hasError\"\n :aria-readonly=\"readonly ?? undefined\"\n :value=\"value\"\n :readonly=\"readonly\"\n :model-value=\"computedRadioInputModelValue\"\n @update:model-value=\"onChange\"\n />\n <checkbox-input\n v-else\n :id=\"inputId\"\n ref=\"inputRef\"\n :aria-label=\"ariaLabel\"\n :aria-describedby=\"description ? descriptionId : undefined\"\n :disabled=\"disabled\"\n :has-error=\"hasError\"\n :aria-readonly=\"readonly ?? undefined\"\n :value=\"value\"\n :readonly=\"readonly\"\n :model-value=\"computedCheckboxInputModelValue\"\n @update:model-value=\"onChange\"\n />\n </div>\n <bento-typography\n v-if=\"hasSlot('content')\"\n ref=\"slotRef\"\n el=\"div\"\n class=\"b-selection-card__slot\"\n :class=\"slotConditionalClasses\"\n >\n <slot name=\"content\" />\n </bento-typography>\n <bento-typography\n v-if=\"hasSlot('dynamicContent') && isChecked\"\n ref=\"dynamicSlotRef\"\n el=\"div\"\n class=\"b-selection-card__slot\"\n :class=\"slotConditionalClasses\"\n >\n <slot name=\"dynamicContent\" />\n </bento-typography>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { BentoTypography } from '@/components/typography';\n import { BentoCheckboxType, BentoMultiCheckboxType, CheckboxInput } from '../internal/checkbox-input';\n import { RadioInput, RadioInputValue } from '../internal/radio-input';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n import { generateUid } from '@/utils/ts/unique-id';\n import { computed, ComputedRef, inject, PropType, Ref, ref, useSlots } from 'vue';\n import { useHasSlot } from '@/composables';\n import type { BentoSelectionCardModelValue, BentoSelectionCardValue } from './selection-card.types';\n import { BentoSelectionCardState } from './selection-card.types';\n import { SELECTION_CARD_RADIO_INPUT_INJECTION_KEY } from './selection-card.keys';\n\n const props = defineProps({\n /**\n * The description of the selection card\n */\n description: {\n type: String,\n default: undefined,\n },\n\n /**\n * Disables the selection card\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Shows the selection card in error state\n */\n hasError: { type: Boolean, default: false },\n\n /**\n * This property should not be used directly.\n * It will be used by v-model directive on selection card component.\n *\n * When handling a single input, use a string or a number.\n *\n * When handling multiple inputs, use an array of keys.\n * These keys exist as a set \"value\" prop for each input.\n */\n modelValue: {\n type: [Boolean, String, Array] as PropType<BentoSelectionCardModelValue>,\n default: null,\n },\n\n /**\n * Sets the selection card to readonly\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * The subtitle of the selection card\n */\n subtitle: {\n type: String,\n default: undefined,\n },\n\n /**\n * The title of the selection card\n */\n title: {\n type: String,\n required: true,\n },\n\n /**\n * Indicates the value of the input that will be returned when it's checked.\n */\n value: {\n type: [String, Number] as PropType<BentoSelectionCardValue>,\n required: true,\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when the selection card is clicked. Enables Vue2 \"v-model\"\n */\n (e: 'input', value: BentoSelectionCardValue);\n /**\n * Emitted when the selection card is clicked. Enables Vue3 \"v-model\"\n */\n (e: 'update:model-value', value: BentoSelectionCardValue);\n }>();\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const inputId = generateUid('selection-card-input-id');\n const descriptionId = generateUid('selection-card-description');\n\n const computedRadioInputModelValue: ComputedRef<RadioInputValue> = computed(\n () => props.modelValue as RadioInputValue\n );\n const computedCheckboxInputModelValue: ComputedRef<BentoCheckboxType> = computed(\n () => props.modelValue as BentoCheckboxType\n );\n\n const conditionalClasses = computed(() => ({\n 'b-selection-card--checked': isChecked.value,\n }));\n\n const containerConditionalClasses = computed(() => ({\n [`b-selection-card--${BentoSelectionCardState.DISABLED}`]: props.disabled,\n [`b-selection-card--${BentoSelectionCardState.ERROR}`]: props.hasError,\n [`b-selection-card--${BentoSelectionCardState.READONLY}`]: props.readonly,\n 'b-selection-card--center-aligned': isTitleOnly.value,\n }));\n\n const checkboxContainerConditionalClasses = computed(() => ({\n 'b-selection-card__checkbox-container--center-aligned': isTitleOnly.value,\n }));\n\n const checkboxContainerTextConditionalClasses = computed(() => ({\n 'b-selection-card__checkbox-container-text--center-aligned': isTitleOnly.value,\n }));\n\n const slotConditionalClasses = computed(() => ({\n 'b-selection-card__slot--with-icon': hasSlot('icon'),\n }));\n\n const ariaLabel = useAriaLabel({\n ariaLabel: props.title,\n label: props.value as string,\n });\n\n const isCheckboxGroup = computed(() => Array.isArray(props.modelValue));\n\n const isChecked: ComputedRef<boolean> = computed(() => {\n if (isRadioInput.value) {\n return props.value === props.modelValue;\n }\n if (!isCheckboxGroup.value) {\n return props.modelValue as boolean;\n }\n\n return (props.modelValue as BentoMultiCheckboxType).some(item => item === props.value);\n });\n\n const isRadioInput: Ref<boolean> = inject(SELECTION_CARD_RADIO_INPUT_INJECTION_KEY, ref(false));\n\n const isTitleOnly = computed(() => !props.subtitle && !props.description);\n\n const inputRef = ref<InstanceType<typeof RadioInput> | InstanceType<typeof CheckboxInput>>(null);\n const slotRef = ref(null);\n const dynamicSlotRef = ref(null);\n // Handle click on the whole card area\n const handleCardClick = event => {\n if (!props.disabled && !props.readonly) {\n // Check if the click originated from the slot - in that case, do nothng\n if (slotRef.value && slotRef.value?.$el?.contains(event.target)) {\n return;\n }\n // Check if the click originated from the dynamic slot - in that case, do nothng\n if (dynamicSlotRef.value && dynamicSlotRef.value?.$el?.contains(event.target)) {\n return;\n }\n // Check if the click originated from the input - in that case do nothing, as the input will emit the event already\n if (inputRef.value && inputRef.value?.$el?.contains(event.target)) {\n return;\n }\n\n // If the click originated outside of these two areas, emit the change event\n const newValue = toggleInput();\n\n onChange(newValue);\n }\n };\n\n const toggleInput = (): BentoSelectionCardModelValue => {\n const currentValue: boolean = (inputRef.value?.$refs.inputRef as HTMLInputElement).checked;\n\n if (isCheckboxGroup.value) {\n const newCheckedList = [...(props.modelValue as BentoMultiCheckboxType)];\n const index = newCheckedList.indexOf(props.value);\n\n if (index === -1) {\n newCheckedList.push(props.value);\n } else {\n newCheckedList.splice(index, 1);\n }\n return newCheckedList;\n }\n\n if (isRadioInput.value) {\n return props.value;\n }\n return !currentValue;\n };\n\n const onChange = newValue => {\n if (!props.disabled && !props.readonly) {\n emit('update:model-value', newValue);\n emit('input', newValue);\n }\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * Selection card component. If used standalone, only the checkbox variant can be used. If the checkbox variant is needed, please use the bento-selection-card-group component.\n *\n * @example\n * import { BentoSelectionCard } from '@adyen/bento-vue2';\n * import EmoticonHappyIcon from '@adyen/ui-assets-icons-16/vue/emoticon-happy';\n *\n * export default {\n * components: { BentoSelectionCard, EmoticonHappyIcon },\n * template: `\n * <bento-selection-card title=\"Card title\" :model-value.sync=\"yourModelValue\">\n * <template #icon>\n * <emoticon-happy-icon />\n * </template>\n * </bento-selection-card>\n * `\n * }\n */\n export default {\n name: 'bento-selection-card',\n };\n</script>\n<style lang=\"scss\" scoped src=\"./selection-card.scss\" />\n","<template>\n <controls-group\n :aria-describedby=\"shouldShowGroupError ? errorMessageId : null\"\n :label=\"label\"\n :hide-label=\"hideLabel\"\n :description=\"description\"\n :disabled=\"disabled\"\n :tooltip-text=\"tooltipText\"\n :readonly=\"readonly\"\n :required=\"required\"\n :optional=\"optional\"\n class=\"b-selection-card-group\"\n component-name=\"selection-card-group\"\n >\n <div class=\"b-selection-card-group__items\" :class=\"conditionalItemsClasses\">\n <bento-selection-card\n v-for=\"item in items\"\n :key=\"`selection-card-${item.value}`\"\n class=\"b-selection-card-group__item\"\n v-bind=\"item\"\n :model-value=\"inputValue\"\n :readonly=\"readonly || item.readonly\"\n :has-error=\"shouldShowGroupError\"\n :disabled=\"disabled || item.disabled\"\n @update:model-value=\"onInput\"\n >\n <template v-if=\"hasSlot('icon') && item.icon\" #icon>\n <slot name=\"icon\" v-bind=\"item\"></slot>\n </template>\n <template v-if=\"hasSlot('content') && item.content\" #content>\n <slot name=\"content\" v-bind=\"item\"></slot>\n </template>\n <template v-if=\"hasSlot('dynamicContent') && item.dynamicContent\" #dynamicContent>\n <slot name=\"dynamicContent\" v-bind=\"item\"></slot>\n </template>\n </bento-selection-card>\n </div>\n <error-message\n v-if=\"shouldShowGroupError\"\n :id=\"errorMessageId\"\n :error-message=\"errorMessage\"\n class=\"b-selection-card-group__error-message\"\n />\n </controls-group>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, PropType, provide, ref, useSlots, watch } from 'vue';\n import { BentoSelectionCardGroupLayout, BentoSelectionCardGroupVariant } from './selection-card-group.types';\n import BentoSelectionCard from '../../selection-card.vue';\n import { ControlsGroup, ErrorMessage } from '../../../internal';\n import { BentoSelectionCardItem, BentoSelectionCardModelValue } from '../../selection-card.types';\n import { SELECTION_CARD_RADIO_INPUT_INJECTION_KEY } from '../../selection-card.keys';\n import { generateUid } from '@/utils/ts/unique-id';\n\n const props = defineProps({\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 cards in the group in a disabled state.\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Renders all cards in an error state with an error message.\n */\n errorMessage: { type: String, default: null },\n\n /**\n * The form id the selection card group is associated with. Defaults to null, as a selection card group can also be used standalone.\n */\n formId: { type: String, default: null },\n\n /**\n * Shows/hides the group label.\n */\n hideLabel: { type: Boolean, default: null },\n\n /**\n * Label of the group. Required for accessibility purposes, even if it's not shown\n */\n label: {\n type: String,\n required: true,\n },\n\n /**\n * The selection card group's layout. It can be vertical or horizontal. Defaults to vertical.\n * @values horizontal, vertical\n */\n layout: {\n type: String as PropType<BentoSelectionCardGroupLayout>,\n default: 'vertical',\n },\n\n /**\n * The selection card group's items.\n */\n items: {\n type: Array as PropType<BentoSelectionCardItem[]>,\n required: true,\n },\n /**\n * Determines the initially selected value of the group. Corresponds to the BentoSelectionCardItem's value.\n * Defaults to no value selected.\n */\n modelValue: {\n type: [Array, String, Number] as PropType<BentoSelectionCardModelValue>,\n default: null,\n },\n\n /**\n * Indicates the field is optional.\n */\n optional: { 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 * If set to true, renders all cards in the group in a readonly state.\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * Renders the cards with a checkbox or a radio input. Selection logic will also apply in accordance.\n * @values checkbox, radio\n */\n variant: { type: String as PropType<BentoSelectionCardGroupVariant>, default: 'checkbox' },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when the selection card is clicked. Enables Vue2 \"v-model\"\n */\n (e: 'input', value: BentoSelectionCardModelValue);\n /**\n * Emitted when the selection card is clicked. Enables Vue3 \"v-model\"\n */\n (e: 'update:model-value', value: BentoSelectionCardModelValue);\n }>();\n const slots = useSlots();\n // Slots logic\n // Temporary, use-has-slots composable doesn't currently work for vue3 named scoped slots\n // We do the same in bento-checkbox-group\n const hasSlot = name => !!slots[name];\n\n const conditionalItemsClasses = computed(() => ({\n 'b-selection-card-group__items--horizontal': props.layout === 'horizontal',\n }));\n\n const inputValue = ref(props.modelValue);\n watch(\n () => props.modelValue,\n () => {\n inputValue.value = props.modelValue;\n }\n );\n\n // Error message logic\n const errorMessageId = generateUid('error');\n const shouldShowGroupError = computed(() => !props.disabled && !props.readonly && !!props.errorMessage);\n\n const onInput = value => {\n inputValue.value = value;\n emit('update:model-value', value);\n emit('input', value);\n };\n\n const isRadioVariant = computed(() => props.variant === 'radio');\n\n provide(SELECTION_CARD_RADIO_INPUT_INJECTION_KEY, isRadioVariant);\n</script>\n\n<script lang=\"ts\">\n /**\n * Group of bento-selection-cards.\n *\n * @example\n * import { BentoSelectionCardGroup } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSelectionCardGroup },\n * template: `\n * <bento-selection-card-group\n * :items=\"[\n * {\n * title: 'Card 1',\n * value: 'card-1',\n * content: 'Slot content 1',\n * icon: RetailIcon,\n * },\n * {\n * title: 'Card 2',\n * value: 'card-2',\n * content: 'Slot content 2',\n * icon: LeafIcon,\n * },\n * ]\"\n * >\n * <template #icon=\"{ icon }\">\n * <component :is=\"icon\"/>\n * </template>\n * <template #content=\"{ content }\">\n * <div>{{ content }}</div>\n * </template>\n * </bento-selection-card-group>\n * `,\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./selection-card-group.scss\" />\n"],"names":["BentoSelectionCardState","BentoSelectionCardState2","SELECTION_CARD_RADIO_INPUT_INJECTION_KEY","__default__$1","slots","useSlots","hasSlot","useHasSlot","inputId","generateUid","descriptionId","computedRadioInputModelValue","computed","props","computedCheckboxInputModelValue","conditionalClasses","isChecked","containerConditionalClasses","isTitleOnly","checkboxContainerConditionalClasses","checkboxContainerTextConditionalClasses","slotConditionalClasses","ariaLabel","useAriaLabel","isCheckboxGroup","isRadioInput","item","inject","ref","inputRef","slotRef","dynamicSlotRef","handleCardClick","event","_b","_a","_d","_c","_f","_e","newValue","toggleInput","onChange","currentValue","newCheckedList","index","emit","__default__","name","conditionalItemsClasses","inputValue","watch","errorMessageId","shouldShowGroupError","onInput","value","isRadioVariant","provide"],"mappings":";;;;;;;;;;;AAIY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,WAAA,YACAA,EAAA,WAAA,YACAA,EAAA,QAAA,SAHQA,IAAAD,KAAA,CAAA,CAAA;ACJC,MAAAE,IAAA,OAAA,0CAAA;;;;4BCySTC,KAAA;AAAA,EAAe,MAAA;AAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAtIAC,IAAAC,EAAA,GACAC,IAAAC,GAAAH,CAAA,GAEAI,IAAAC,EAAA,yBAAA,GACAC,IAAAD,EAAA,4BAAA,GAEAE,IAAAC;AAAA,MAAmE,MAAAC,EAAA;AAAA,IACnD,GAEhBC,IAAAF;AAAA,MAAwE,MAAAC,EAAA;AAAA,IACxD,GAGhBE,IAAAH,EAAA,OAAA;AAAA,MAA2C,6BAAAI,EAAA;AAAA,IACA,EAAA,GAG3CC,IAAAL,EAAA,OAAA;AAAA,MAAoD,CAAA,qBAAAZ,EAAA,QAAA,EAAA,GAAAa,EAAA;AAAA,MACiB,CAAA,qBAAAb,EAAA,KAAA,EAAA,GAAAa,EAAA;AAAA,MACH,CAAA,qBAAAb,EAAA,QAAA,EAAA,GAAAa,EAAA;AAAA,MACG,oCAAAK,EAAA;AAAA,IACjB,EAAA,GAGpDC,IAAAP,EAAA,OAAA;AAAA,MAA4D,wDAAAM,EAAA;AAAA,IACY,EAAA,GAGxEE,IAAAR,EAAA,OAAA;AAAA,MAAgE,6DAAAM,EAAA;AAAA,IACa,EAAA,GAG7EG,IAAAT,EAAA,OAAA;AAAA,MAA+C,qCAAAN,EAAA,MAAA;AAAA,IACQ,EAAA,GAGvDgB,IAAAC,GAAA;AAAA,MAA+B,WAAAV,EAAA;AAAA,MACV,OAAAA,EAAA;AAAA,IACJ,CAAA,GAGjBW,IAAAZ,EAAA,MAAA,MAAA,QAAAC,EAAA,UAAA,CAAA,GAEAG,IAAAJ,EAAA,MACIa,EAAA,QACIZ,EAAA,UAAAA,EAAA,aAEJW,EAAA,QAIAX,EAAA,WAAA,KAAA,CAAAa,MAAAA,MAAAb,EAAA,KAAA,IAHIA,EAAA,UAGiF,GAGzFY,IAAAE,GAAAzB,GAAA0B,EAAA,EAAA,CAAA,GAEAV,IAAAN,EAAA,MAAA,CAAAC,EAAA,YAAA,CAAAA,EAAA,WAAA,GAEAgB,IAAAD,EAAA,IAAA,GACAE,IAAAF,EAAA,IAAA,GACAG,IAAAH,EAAA,IAAA,GAEAI,IAAA,CAAAC,MAAA;;AACI,UAAA,CAAApB,EAAA,YAAA,CAAAA,EAAA,UAAA;AAUI,YARAiB,EAAA,WAAAI,KAAAC,IAAAL,EAAA,UAAA,gBAAAK,EAAA,QAAA,QAAAD,EAAA,SAAAD,EAAA,YAIAF,EAAA,WAAAK,KAAAC,IAAAN,EAAA,UAAA,gBAAAM,EAAA,QAAA,QAAAD,EAAA,SAAAH,EAAA,YAIAJ,EAAA,WAAAS,KAAAC,IAAAV,EAAA,UAAA,gBAAAU,EAAA,QAAA,QAAAD,EAAA,SAAAL,EAAA;AACI;AAIJ,cAAAO,KAAAC,EAAA;AAEA,QAAAC,EAAAF,EAAA;AAAA,MAAiB;AAAA,IACrB,GAGJC,IAAA,MAAA;;AACI,YAAAE,MAAAR,IAAAN,EAAA,UAAA,gBAAAM,EAAA,MAAA,UAAA;AAEA,UAAAX,EAAA,OAAA;AACI,cAAAoB,IAAA,CAAA,GAAA/B,EAAA,UAAA,GACAgC,IAAAD,EAAA,QAAA/B,EAAA,KAAA;AAEA,eAAAgC,MAAA,KACID,EAAA,KAAA/B,EAAA,KAAA,IAEA+B,EAAA,OAAAC,GAAA,CAAA,GAEJD;AAAA,MAAO;AAGX,aAAAnB,EAAA,QACIZ,EAAA,QAEJ,CAAA8B;AAAA,IAAQ,GAGZD,IAAA,CAAAF,MAAA;AACI,MAAA,CAAA3B,EAAA,YAAA,CAAAA,EAAA,aACIiC,EAAA,sBAAAN,CAAA,GACAM,EAAA,SAAAN,CAAA;AAAA,IACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oECtDJO,KAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBArEA3C,IAAAC,EAAA,GAIAC,IAAA,CAAA0C,MAAA,CAAA,CAAA5C,EAAA4C,CAAA,GAEAC,IAAArC,EAAA,OAAA;AAAA,MAAgD,6CAAAC,EAAA,WAAA;AAAA,IACkB,EAAA,GAGlEqC,IAAAtB,EAAAf,EAAA,UAAA;AACA,IAAAsC;AAAA,MAAA,MAAAtC,EAAA;AAAA,MACgB,MAAA;AAER,QAAAqC,EAAA,QAAArC,EAAA;AAAA,MAAyB;AAAA,IAC7B;AAIJ,UAAAuC,IAAA3C,EAAA,OAAA,GACA4C,IAAAzC,EAAA,MAAA,CAAAC,EAAA,YAAA,CAAAA,EAAA,YAAA,CAAA,CAAAA,EAAA,YAAA,GAEAyC,IAAA,CAAAC,MAAA;AACI,MAAAL,EAAA,QAAAK,GACAT,EAAA,sBAAAS,CAAA,GACAT,EAAA,SAAAS,CAAA;AAAA,IAAmB,GAGvBC,IAAA5C,EAAA,MAAAC,EAAA,YAAA,OAAA;AAEA,WAAA4C,GAAAvD,GAAAsD,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import { defineComponent as T, openBlock as E, createBlock as $, unref as a, createSlots as x, withCtx as n, createElementVNode as m, createVNode as r, createTextVNode as K, toDisplayString as R, renderSlot as h, toRefs as F, ref as i, computed as J, watch as Y, nextTick as M, provide as g, createElementBlock as C, normalizeClass as z, withKeys as j, withModifiers as q, createCommentVNode as H } from "vue";
|
|
2
|
+
import { B as D } from "./typography.D7onlQ9v.js";
|
|
3
|
+
import { F as Q } from "./footer-actions.D9nQFagi.js";
|
|
4
|
+
import { D as W, B as X, b as Z, a as ee } from "./dialog-page.BLqqR73w.js";
|
|
5
|
+
import { _ as N } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
|
+
import { B as te } from "./button.DoqHEvPh.js";
|
|
7
|
+
import { B as ae } from "./focus-trap.CwkbHfT8.js";
|
|
8
|
+
import { C as se } from "./cross.BlL0FyHo.js";
|
|
9
|
+
import { S as ie } from "./sidepanel.keys.R0DKQuYx.js";
|
|
10
|
+
import { u as ne } from "./i18n.DY5YXG5f.js";
|
|
11
|
+
import { g as oe } from "./unique-id.XFfoKuc2.js";
|
|
12
|
+
import "../assets/sidepanel.css";
|
|
13
|
+
const le = { class: "b-sidepanel-page__header" }, re = { class: "b-sidepanel-page__content" }, ce = { class: "b-sidepanel-page__actions" }, de = {}, ue = /* @__PURE__ */ T({
|
|
14
|
+
...de,
|
|
15
|
+
__name: "sidepanel-page",
|
|
16
|
+
props: {
|
|
17
|
+
/**
|
|
18
|
+
* List of actions that will be used to render the buttons.
|
|
19
|
+
* First element in the list will be rendered as "primary".
|
|
20
|
+
* All elements after the first will be rendered as "secondary".
|
|
21
|
+
*
|
|
22
|
+
* ```
|
|
23
|
+
* [{
|
|
24
|
+
* title: 'Primary',
|
|
25
|
+
* event: () => { ... },
|
|
26
|
+
* icon: FourPeopleIcon
|
|
27
|
+
* }, {
|
|
28
|
+
* title: 'Secondary',
|
|
29
|
+
* event: () => { ... }
|
|
30
|
+
* }]
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
actions: {
|
|
34
|
+
type: Array,
|
|
35
|
+
default: null
|
|
36
|
+
},
|
|
37
|
+
/**
|
|
38
|
+
* Text label that is displayed left to the action buttons
|
|
39
|
+
*/
|
|
40
|
+
actionsLabel: {
|
|
41
|
+
type: String,
|
|
42
|
+
default: null
|
|
43
|
+
},
|
|
44
|
+
/**
|
|
45
|
+
* If passed - sets first button color to red
|
|
46
|
+
*/
|
|
47
|
+
destructiveActions: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: !1
|
|
50
|
+
},
|
|
51
|
+
/**
|
|
52
|
+
* Identifier of the page, used with activePage prop to handle sidepanel navigation
|
|
53
|
+
*/
|
|
54
|
+
pageId: {
|
|
55
|
+
type: String,
|
|
56
|
+
default: void 0
|
|
57
|
+
},
|
|
58
|
+
/**
|
|
59
|
+
* ID of the page for the back button to navigate to. Only use it to overwrite the default back behavior
|
|
60
|
+
* Used when the back button should not take the user to the natural previous page
|
|
61
|
+
* Set to `null` to hide back button in the page
|
|
62
|
+
*/
|
|
63
|
+
previousPage: {
|
|
64
|
+
type: String,
|
|
65
|
+
default: void 0
|
|
66
|
+
},
|
|
67
|
+
/**
|
|
68
|
+
* Title of the sidepanel page
|
|
69
|
+
*/
|
|
70
|
+
title: {
|
|
71
|
+
type: String,
|
|
72
|
+
default: null
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
setup(e) {
|
|
76
|
+
return (c, A) => (E(), $(a(W), {
|
|
77
|
+
class: "b-sidepanel-page",
|
|
78
|
+
"page-id": e.pageId,
|
|
79
|
+
"previous-page": e.previousPage
|
|
80
|
+
}, x({
|
|
81
|
+
header: n(() => [
|
|
82
|
+
m("div", le, [
|
|
83
|
+
r(a(D), {
|
|
84
|
+
class: "b-sidepanel-page__title",
|
|
85
|
+
el: "h2",
|
|
86
|
+
variant: "title"
|
|
87
|
+
}, {
|
|
88
|
+
default: n(() => [
|
|
89
|
+
K(R(e.title), 1)
|
|
90
|
+
]),
|
|
91
|
+
_: 1
|
|
92
|
+
})
|
|
93
|
+
])
|
|
94
|
+
]),
|
|
95
|
+
content: n(() => [
|
|
96
|
+
m("div", re, [
|
|
97
|
+
r(a(D), {
|
|
98
|
+
el: "div",
|
|
99
|
+
variant: "body"
|
|
100
|
+
}, {
|
|
101
|
+
default: n(() => [
|
|
102
|
+
h(c.$slots, "default", {}, void 0, !0)
|
|
103
|
+
]),
|
|
104
|
+
_: 3
|
|
105
|
+
})
|
|
106
|
+
])
|
|
107
|
+
]),
|
|
108
|
+
_: 2
|
|
109
|
+
}, [
|
|
110
|
+
e.actions && e.actions.length > 0 ? {
|
|
111
|
+
name: "footer",
|
|
112
|
+
fn: n(() => [
|
|
113
|
+
m("div", ce, [
|
|
114
|
+
r(a(Q), {
|
|
115
|
+
actions: e.actions,
|
|
116
|
+
"actions-label": e.actionsLabel,
|
|
117
|
+
"destructive-actions": e.destructiveActions
|
|
118
|
+
}, null, 8, ["actions", "actions-label", "destructive-actions"])
|
|
119
|
+
])
|
|
120
|
+
]),
|
|
121
|
+
key: "0"
|
|
122
|
+
} : void 0
|
|
123
|
+
]), 1032, ["page-id", "previous-page"]));
|
|
124
|
+
}
|
|
125
|
+
}), he = /* @__PURE__ */ N(ue, [["__scopeId", "data-v-b0fa716c"]]);
|
|
126
|
+
var v = /* @__PURE__ */ ((e) => (e.UPDATE_ACTIVE_PAGE = "update:active-page", e.UPDATE_IS_OPEN = "update:is-open", e))(v || {});
|
|
127
|
+
const O = {
|
|
128
|
+
"en-US": {
|
|
129
|
+
close: "Close"
|
|
130
|
+
}
|
|
131
|
+
}, pe = ["id"], fe = {
|
|
132
|
+
key: 0,
|
|
133
|
+
class: "b-sidepanel__close-button"
|
|
134
|
+
}, ve = {
|
|
135
|
+
i18n: { messages: O }
|
|
136
|
+
}, _e = /* @__PURE__ */ T({
|
|
137
|
+
...ve,
|
|
138
|
+
__name: "sidepanel",
|
|
139
|
+
props: {
|
|
140
|
+
/**
|
|
141
|
+
* The id of the current active page
|
|
142
|
+
* Should be the same id as the BentoSidepanelPage to be displayed
|
|
143
|
+
* If the component only has one page, it can be left null/undefined.
|
|
144
|
+
*/
|
|
145
|
+
activePage: {
|
|
146
|
+
type: String,
|
|
147
|
+
default: null
|
|
148
|
+
},
|
|
149
|
+
/**
|
|
150
|
+
* If set to true, it allows the sidepanel to be closed
|
|
151
|
+
*/
|
|
152
|
+
isDismissible: {
|
|
153
|
+
type: Boolean,
|
|
154
|
+
default: !1
|
|
155
|
+
},
|
|
156
|
+
/**
|
|
157
|
+
* Controls the sidepanel's state from the outside. Set it to true to open the sidepanel
|
|
158
|
+
*/
|
|
159
|
+
isOpen: {
|
|
160
|
+
type: Boolean,
|
|
161
|
+
default: null
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
setup(e, { emit: c }) {
|
|
165
|
+
const A = e, { activePage: I, isOpen: P } = F(A), { t: S } = ne({ messages: O }), o = i(null), d = i([]), l = i([]), B = i(X.TRANSITION_LEVEL_DEEPER), u = i(!1), b = oe("sidepanel"), _ = i(!1), y = i(!1), G = J(() => ({
|
|
166
|
+
"b-sidepanel--hide": u.value,
|
|
167
|
+
"b-sidepanel--animation": y.value
|
|
168
|
+
})), k = () => {
|
|
169
|
+
u.value && (o.value.close(), l.value[0] && c(v.UPDATE_ACTIVE_PAGE, l.value[0]), l.value = [], u.value = !1, _.value = !1, c(v.UPDATE_IS_OPEN, !1));
|
|
170
|
+
}, p = () => {
|
|
171
|
+
o.value.open && (u.value = !0);
|
|
172
|
+
}, L = ({ target: t }) => {
|
|
173
|
+
t && t.tagName === "DIALOG" && p();
|
|
174
|
+
};
|
|
175
|
+
Y(
|
|
176
|
+
() => P.value,
|
|
177
|
+
async () => {
|
|
178
|
+
await M(), o.value && (P.value ? (_.value = !0, o.value.showModal(), l.value.length || l.value.push(I.value)) : o.value.open && p());
|
|
179
|
+
},
|
|
180
|
+
{ immediate: !0 }
|
|
181
|
+
);
|
|
182
|
+
const V = (t) => c(v.UPDATE_ACTIVE_PAGE, t), w = (t) => () => {
|
|
183
|
+
var s;
|
|
184
|
+
d.value = (s = d.value) == null ? void 0 : s.filter((f) => f !== t);
|
|
185
|
+
}, U = (t) => (d.value.push(t), { unregisterPage: w(t) });
|
|
186
|
+
return g(Z, {
|
|
187
|
+
activePage: I,
|
|
188
|
+
animation: B,
|
|
189
|
+
isAnimationActive: y,
|
|
190
|
+
isOpen: _,
|
|
191
|
+
pages: d,
|
|
192
|
+
previousPages: l,
|
|
193
|
+
updatePage: V
|
|
194
|
+
}), g(ee, U), g(ie, b), (t, s) => (E(), C("dialog", {
|
|
195
|
+
id: a(b),
|
|
196
|
+
ref_key: "sidepanel",
|
|
197
|
+
ref: o,
|
|
198
|
+
class: z(["b-sidepanel", a(G)]),
|
|
199
|
+
onAnimationend: k,
|
|
200
|
+
onClick: s[0] || (s[0] = (f) => e.isDismissible && L(f)),
|
|
201
|
+
onKeydown: s[1] || (s[1] = j(q((f) => e.isDismissible && p, ["prevent"]), ["esc"]))
|
|
202
|
+
}, [
|
|
203
|
+
r(a(ae), null, {
|
|
204
|
+
default: n(() => [
|
|
205
|
+
e.isDismissible ? (E(), C("div", fe, [
|
|
206
|
+
r(a(te), {
|
|
207
|
+
variant: "tertiary",
|
|
208
|
+
onClick: p
|
|
209
|
+
}, {
|
|
210
|
+
default: n(() => [
|
|
211
|
+
r(a(se), {
|
|
212
|
+
"svg-title": a(S)("close")
|
|
213
|
+
}, null, 8, ["svg-title"])
|
|
214
|
+
]),
|
|
215
|
+
_: 1
|
|
216
|
+
})
|
|
217
|
+
])) : H("", !0),
|
|
218
|
+
h(t.$slots, "default", {}, void 0, !0)
|
|
219
|
+
]),
|
|
220
|
+
_: 3
|
|
221
|
+
})
|
|
222
|
+
], 42, pe));
|
|
223
|
+
}
|
|
224
|
+
}), Ne = /* @__PURE__ */ N(_e, [["__scopeId", "data-v-2df3d3b5"]]);
|
|
225
|
+
export {
|
|
226
|
+
v as B,
|
|
227
|
+
Ne as a,
|
|
228
|
+
he as s
|
|
229
|
+
};
|
|
230
|
+
//# sourceMappingURL=sidepanel.B-LtA15e.js.map
|