@adyen/bento-vue3 1.35.0 → 1.36.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/packages/core/src/components/tag/tag.types.d.ts +14 -0
- package/dist/@types/packages/core/src/components/tooltip/tooltip.types.d.ts +11 -0
- package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +20 -184
- package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +24 -188
- 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-calculate-column-width/use-calculate-column-width.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +32 -360
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-filter/date-filter.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-currency-filter/select-currency-filter.vue.d.ts +15 -179
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +15 -179
- package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +32 -360
- package/dist/@types/packages/vue2/src/components/internal/checkbox-input/checkbox-input.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/internal/checkbox-input/index.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/internal/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/components/listbox-multi-select-category/listbox-multi-select-category.vue.d.ts +20 -184
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/listbox-multi-select-options.vue.d.ts +40 -368
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +60 -552
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-option-tag/listbox-option-tag.vue.d.ts +15 -179
- package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +72 -564
- package/dist/@types/packages/vue2/src/components/internal/tooltip/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/{tooltip → internal/tooltip}/tooltip.vue.d.ts +67 -67
- package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/radio-group/components/radio-button/radio-button.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +15 -179
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +15 -179
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-custom/summary-grid-item-custom.vue.d.ts +15 -179
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-numeric/summary-grid-item-numeric.vue.d.ts +15 -179
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-percentage/summary-grid-item-percentage.vue.d.ts +15 -179
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-text/summary-grid-item-text.vue.d.ts +15 -179
- package/dist/@types/packages/vue2/src/components/tabs/components/tab.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tabs/components/tab.vue.d.ts +15 -0
- package/dist/@types/packages/vue2/src/components/tabs/tabs.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tag/tag.vue.d.ts +26 -219
- package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +17 -181
- package/dist/@types/packages/vue2/src/directives/tooltip/index.d.ts +1 -1
- package/dist/@types/packages/vue2/src/directives/tooltip/tooltip.types.d.ts +0 -11
- package/dist/accordion.js +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/alert.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox-input.css +1 -1
- package/dist/assets/copy.css +1 -1
- package/dist/assets/dashboard-section.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/empty-state.css +1 -1
- package/dist/assets/error-message.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/info-icon.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/pagination.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/popper-container.css +1 -1
- package/dist/assets/radio-input.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/step.css +1 -1
- package/dist/assets/tabs.css +1 -1
- package/dist/assets/tag.css +1 -1
- package/dist/assets/timeline-item.css +1 -1
- package/dist/assets/tooltip.css +1 -1
- package/dist/assets/tutorial.css +1 -1
- package/dist/assets/typography.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/avatar.js +1 -1
- package/dist/button.js +4 -4
- package/dist/card.js +1 -1
- package/dist/checkbox.js +3 -3
- package/dist/chunks/{accordion-item.4Cnn47v_.js → accordion-item.COc5nXh4.js} +3 -3
- package/dist/chunks/{accordion-item.4Cnn47v_.js.map → accordion-item.COc5nXh4.js.map} +1 -1
- package/dist/chunks/{action-bar.BYMas_1s.js → action-bar.CMuu-R_8.js} +7 -7
- package/dist/chunks/{action-bar.BYMas_1s.js.map → action-bar.CMuu-R_8.js.map} +1 -1
- package/dist/chunks/{alert.B_GZON9f.js → alert.DZFWFceT.js} +9 -10
- package/dist/chunks/alert.DZFWFceT.js.map +1 -0
- package/dist/chunks/{avatar.8erKxh8t.js → avatar.7gix8dxp.js} +2 -2
- package/dist/chunks/{avatar.8erKxh8t.js.map → avatar.7gix8dxp.js.map} +1 -1
- package/dist/chunks/{base-button.BxUrydaP.js → base-button.cDr-F6j_.js} +2 -2
- package/dist/chunks/{base-button.BxUrydaP.js.map → base-button.cDr-F6j_.js.map} +1 -1
- package/dist/chunks/{base-modal.BbiSFAn1.js → base-modal.DS7zI1O2.js} +6 -6
- package/dist/chunks/{base-modal.BbiSFAn1.js.map → base-modal.DS7zI1O2.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.0ypQxYbM.js → button-actions-with-menu.B9E4lUQV.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.0ypQxYbM.js.map → button-actions-with-menu.B9E4lUQV.js.map} +1 -1
- package/dist/chunks/{button-actions.DcvU9vMt.js → button-actions.DOvd7VLB.js} +3 -3
- package/dist/chunks/{button-actions.DcvU9vMt.js.map → button-actions.DOvd7VLB.js.map} +1 -1
- package/dist/chunks/{button.Br6CyG40.js → button.DInQYAND.js} +3 -3
- package/dist/chunks/{button.Br6CyG40.js.map → button.DInQYAND.js.map} +1 -1
- package/dist/chunks/{calendar.BPatBsD5.js → calendar.BHy-Sfgc.js} +9 -8
- package/dist/chunks/{calendar.BPatBsD5.js.map → calendar.BHy-Sfgc.js.map} +1 -1
- package/dist/chunks/{card.B7AyQI7f.js → card.Bh7vfIw8.js} +4 -4
- package/dist/chunks/{card.B7AyQI7f.js.map → card.Bh7vfIw8.js.map} +1 -1
- package/dist/chunks/{checkbox-group.BJM2i93S.js → checkbox-group.COoDP0ua.js} +5 -5
- package/dist/chunks/{checkbox-group.BJM2i93S.js.map → checkbox-group.COoDP0ua.js.map} +1 -1
- package/dist/chunks/{checkbox-input.YgPBRaZP.js → checkbox-input.B24-74ay.js} +28 -27
- package/dist/chunks/checkbox-input.B24-74ay.js.map +1 -0
- package/dist/chunks/{checkbox.BnYx06nC.js → checkbox.Dkxm-fWK.js} +5 -5
- package/dist/chunks/{checkbox.BnYx06nC.js.map → checkbox.Dkxm-fWK.js.map} +1 -1
- package/dist/chunks/{checkmark-circle-fill.Bgdq29pu.js → checkmark-circle-fill.ChV7Jy6r.js} +4 -4
- package/dist/chunks/checkmark-circle-fill.ChV7Jy6r.js.map +1 -0
- package/dist/chunks/{checkmark-small.4DMun1A_.js → checkmark-small.DEc2T64_.js} +4 -4
- package/dist/chunks/checkmark-small.DEc2T64_.js.map +1 -0
- package/dist/chunks/{chevron-left.ChbQxOxi.js → chevron-left.NvV5m76j.js} +6 -6
- package/dist/chunks/chevron-left.NvV5m76j.js.map +1 -0
- package/dist/chunks/{chevron-up.zKonWHVc.js → chevron-up.DQZG_BP3.js} +6 -6
- package/dist/chunks/chevron-up.DQZG_BP3.js.map +1 -0
- package/dist/chunks/{code-snippet.1duYqiRx.js → code-snippet.BWbbS2ye.js} +11 -10
- package/dist/chunks/{code-snippet.1duYqiRx.js.map → code-snippet.BWbbS2ye.js.map} +1 -1
- package/dist/chunks/{controls-group.DmroeX6Q.js → controls-group.D4XrqgW3.js} +3 -3
- package/dist/chunks/{controls-group.DmroeX6Q.js.map → controls-group.D4XrqgW3.js.map} +1 -1
- package/dist/chunks/{copy.5y12_05v.js → copy.BvQ6igYf.js} +11 -11
- package/dist/chunks/copy.BvQ6igYf.js.map +1 -0
- package/dist/chunks/{country.CVI-oSer.js → country.Dk5xsUic.js} +2 -2
- package/dist/chunks/{country.CVI-oSer.js.map → country.Dk5xsUic.js.map} +1 -1
- package/dist/chunks/{cross-circle-fill-small.2_Xjp4id.js → cross-circle-fill-small.BXO78Wde.js} +4 -4
- package/dist/chunks/cross-circle-fill-small.BXO78Wde.js.map +1 -0
- package/dist/chunks/{cross-circle-fill.CEUPgI5F.js → cross-circle-fill.DN5b3_eL.js} +4 -4
- package/dist/chunks/cross-circle-fill.DN5b3_eL.js.map +1 -0
- package/dist/chunks/{cross-small.DvCEQd10.js → cross-small.CXWTuKA_.js} +4 -4
- package/dist/chunks/cross-small.CXWTuKA_.js.map +1 -0
- package/dist/chunks/{cross.CowwLfo4.js → cross.OvPfvoqX.js} +4 -4
- package/dist/chunks/cross.OvPfvoqX.js.map +1 -0
- package/dist/chunks/{currency.BdtY-UIM.js → currency.CFIi9B9m.js} +2 -2
- package/dist/chunks/{currency.BdtY-UIM.js.map → currency.CFIi9B9m.js.map} +1 -1
- package/dist/chunks/{dashboard-section.BDkYN89r.js → dashboard-section.BlsQTA_5.js} +3 -3
- package/dist/chunks/{dashboard-section.BDkYN89r.js.map → dashboard-section.BlsQTA_5.js.map} +1 -1
- package/dist/chunks/{dashed-underline.CMKbg0Fq.js → dashed-underline.C3AuURaR.js} +23 -22
- package/dist/chunks/{dashed-underline.CMKbg0Fq.js.map → dashed-underline.C3AuURaR.js.map} +1 -1
- package/dist/chunks/{data-grid-template.CydHXTmg.js → data-grid-template.rvLUWZnh.js} +3 -3
- package/dist/chunks/{data-grid-template.CydHXTmg.js.map → data-grid-template.rvLUWZnh.js.map} +1 -1
- package/dist/chunks/{data-grid.CcGMljDl.js → data-grid.DWCGBlAE.js} +754 -753
- package/dist/chunks/data-grid.DWCGBlAE.js.map +1 -0
- package/dist/chunks/{date-picker.BsXcXOgl.js → date-picker.BJmupHBt.js} +10 -9
- package/dist/chunks/{date-picker.BsXcXOgl.js.map → date-picker.BJmupHBt.js.map} +1 -1
- package/dist/chunks/{date-range-picker.BFm6Udzx.js → date-range-picker.D5z8fqcu.js} +13 -12
- package/dist/chunks/{date-range-picker.BFm6Udzx.js.map → date-range-picker.D5z8fqcu.js.map} +1 -1
- package/dist/chunks/{date.CYUV4seY.js → date.BkeczstG.js} +2 -2
- package/dist/chunks/{date.CYUV4seY.js.map → date.BkeczstG.js.map} +1 -1
- package/dist/chunks/{dialog-page.CjKMgUlz.js → dialog-page.4ArdFk2U.js} +4 -5
- package/dist/chunks/dialog-page.4ArdFk2U.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.BopLaEkG.js → dropdown-default-textbox.CeVq45Qy.js} +6 -6
- package/dist/chunks/{dropdown-default-textbox.BopLaEkG.js.map → dropdown-default-textbox.CeVq45Qy.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.x3n5-YkA.js → dropdown-tag.BOJ9WsnN.js} +6 -6
- package/dist/chunks/{dropdown-tag.x3n5-YkA.js.map → dropdown-tag.BOJ9WsnN.js.map} +1 -1
- package/dist/chunks/{dropdown.BxvydNp0.js → dropdown.CPlvW43f.js} +16 -16
- package/dist/chunks/dropdown.CPlvW43f.js.map +1 -0
- package/dist/chunks/{empty-state.CyEWCcDk.js → empty-state.BmZVT8wF.js} +3 -3
- package/dist/chunks/{empty-state.CyEWCcDk.js.map → empty-state.BmZVT8wF.js.map} +1 -1
- package/dist/chunks/{error-message.CUZgtlDT.js → error-message.SLfGzDVf.js} +4 -4
- package/dist/chunks/{error-message.CUZgtlDT.js.map → error-message.SLfGzDVf.js.map} +1 -1
- package/dist/chunks/es6.BvpG4Oi6.js.map +1 -1
- package/dist/chunks/events.FNmSWp_P.js +52 -0
- package/dist/chunks/events.FNmSWp_P.js.map +1 -0
- package/dist/chunks/{expand.B5tyMqaF.js → expand.CgwNEbbz.js} +4 -4
- package/dist/chunks/expand.CgwNEbbz.js.map +1 -0
- package/dist/chunks/{filter-bar.re1Tqyai.js → filter-bar.uZ7n8y_i.js} +27 -28
- package/dist/chunks/{filter-bar.re1Tqyai.js.map → filter-bar.uZ7n8y_i.js.map} +1 -1
- package/dist/chunks/{fixed-scroller.Co0y0kWZ.js → fixed-scroller.BYosMLGj.js} +3 -3
- package/dist/chunks/{fixed-scroller.Co0y0kWZ.js.map → fixed-scroller.BYosMLGj.js.map} +1 -1
- package/dist/chunks/{footer-actions.M83ZEElA.js → footer-actions.DrDUKwOY.js} +4 -4
- package/dist/chunks/{footer-actions.M83ZEElA.js.map → footer-actions.DrDUKwOY.js.map} +1 -1
- package/dist/chunks/{form-layout-title.ATi1W9uG.js → form-layout-title.bE1xo1hK.js} +3 -3
- package/dist/chunks/{form-layout-title.ATi1W9uG.js.map → form-layout-title.bE1xo1hK.js.map} +1 -1
- package/dist/chunks/{header.CrNceSOd.js → header.HQY-nc6l.js} +7 -7
- package/dist/chunks/{header.CrNceSOd.js.map → header.HQY-nc6l.js.map} +1 -1
- package/dist/chunks/{info-icon.CBiqUH3L.js → info-icon.tGhr3-Zh.js} +12 -12
- package/dist/chunks/info-icon.tGhr3-Zh.js.map +1 -0
- package/dist/chunks/{info.D6XuLsYR.js → info.CIFBUqf-.js} +4 -4
- package/dist/chunks/{info.D6XuLsYR.js.map → info.CIFBUqf-.js.map} +1 -1
- package/dist/chunks/{input-field.foJTqE5i.js → input-field.D8Pt05M3.js} +4 -4
- package/dist/chunks/{input-field.foJTqE5i.js.map → input-field.D8Pt05M3.js.map} +1 -1
- package/dist/chunks/{inspector.types.X_7VgZmS.js → inspector.types.eWf-6uBc.js} +5 -5
- package/dist/chunks/{inspector.types.X_7VgZmS.js.map → inspector.types.eWf-6uBc.js.map} +1 -1
- package/dist/chunks/{keyboard-navigation.Clz1jOaA.js → keyboard-navigation.C3QMVRKY.js} +2 -2
- package/dist/chunks/{keyboard-navigation.Clz1jOaA.js.map → keyboard-navigation.C3QMVRKY.js.map} +1 -1
- package/dist/chunks/{link.2YS7haGc.js → link.CbotJFzC.js} +2 -2
- package/dist/chunks/link.CbotJFzC.js.map +1 -0
- package/dist/chunks/{listbox-option-tag.QqDEHMKB.js → listbox-option-tag.C8w0-82a.js} +3 -3
- package/dist/chunks/{listbox-option-tag.QqDEHMKB.js.map → listbox-option-tag.C8w0-82a.js.map} +1 -1
- package/dist/chunks/{loading-button.BU536EK4.js → loading-button.BzCt6ZT0.js} +4 -4
- package/dist/chunks/{loading-button.BU536EK4.js.map → loading-button.BzCt6ZT0.js.map} +1 -1
- package/dist/chunks/{menu.CI4R2iw1.js → menu.bwVdUNQc.js} +8 -9
- package/dist/chunks/menu.bwVdUNQc.js.map +1 -0
- package/dist/chunks/{modal-fullscreen.B4sPrlfq.js → modal-fullscreen.Bn25snRZ.js} +6 -6
- package/dist/chunks/{modal-fullscreen.B4sPrlfq.js.map → modal-fullscreen.Bn25snRZ.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DuNQ8N4W.js → modal.vue_vue_type_script_setup_true_lang.BZ-e4djX.js} +6 -6
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DuNQ8N4W.js.map → modal.vue_vue_type_script_setup_true_lang.BZ-e4djX.js.map} +1 -1
- package/dist/chunks/{pagination.-1ibfp5g.js → pagination.Cg6ycXwO.js} +6 -7
- package/dist/chunks/pagination.Cg6ycXwO.js.map +1 -0
- package/dist/chunks/{payment-method.-3VYG5ud.js → payment-method.Dqby2asg.js} +2 -2
- package/dist/chunks/{payment-method.-3VYG5ud.js.map → payment-method.Dqby2asg.js.map} +1 -1
- package/dist/chunks/{popover.BN52L17t.js → popover.C7aNk7Ct.js} +9 -8
- package/dist/chunks/{popover.BN52L17t.js.map → popover.C7aNk7Ct.js.map} +1 -1
- package/dist/chunks/{popper-container.DFpaesDm.js → popper-container.Cyf6zCPq.js} +361 -365
- package/dist/chunks/popper-container.Cyf6zCPq.js.map +1 -0
- package/dist/chunks/popper-container.types.BCZMbVFD.js +9 -0
- package/dist/chunks/popper-container.types.BCZMbVFD.js.map +1 -0
- package/dist/chunks/{radio-group.RLUDLHPT.js → radio-group.D0khdiFK.js} +5 -5
- package/dist/chunks/{radio-group.RLUDLHPT.js.map → radio-group.D0khdiFK.js.map} +1 -1
- package/dist/chunks/{refresh.DPE_95xY.js → refresh.DvQeGwUF.js} +4 -4
- package/dist/chunks/refresh.DvQeGwUF.js.map +1 -0
- package/dist/chunks/{search-bar.CCWTGvJ6.js → search-bar.BaqIavRd.js} +4 -4
- package/dist/chunks/{search-bar.CCWTGvJ6.js.map → search-bar.BaqIavRd.js.map} +1 -1
- package/dist/chunks/{search.DJr0124y.js → search.EnLryD8V.js} +4 -4
- package/dist/chunks/{search.DJr0124y.js.map → search.EnLryD8V.js.map} +1 -1
- package/dist/chunks/{secondary-nav.D81GEGuc.js → secondary-nav.eioY-Ac9.js} +3 -3
- package/dist/chunks/{secondary-nav.D81GEGuc.js.map → secondary-nav.eioY-Ac9.js.map} +1 -1
- package/dist/chunks/{segmented-control.DbR5NYWR.js → segmented-control.CyyCTejh.js} +6 -5
- package/dist/chunks/{segmented-control.DbR5NYWR.js.map → segmented-control.CyyCTejh.js.map} +1 -1
- package/dist/chunks/{selection-card-group.3OexUu8G.js → selection-card-group.CJwWtHTD.js} +5 -5
- package/dist/chunks/{selection-card-group.3OexUu8G.js.map → selection-card-group.CJwWtHTD.js.map} +1 -1
- package/dist/chunks/{sidepanel.iEewXNIJ.js → sidepanel.BGS2yzn-.js} +6 -6
- package/dist/chunks/{sidepanel.iEewXNIJ.js.map → sidepanel.BGS2yzn-.js.map} +1 -1
- package/dist/chunks/{status.types.r9TfZmvE.js → status.types.DKEdSwK-.js} +2 -2
- package/dist/chunks/{status.types.r9TfZmvE.js.map → status.types.DKEdSwK-.js.map} +1 -1
- package/dist/chunks/{step.CyvTQbAk.js → step.DQtYDLoP.js} +6 -6
- package/dist/chunks/step.DQtYDLoP.js.map +1 -0
- package/dist/chunks/{structured-list-item.DZvCfZuG.js → structured-list-item.Brk3yBPy.js} +12 -11
- package/dist/chunks/{structured-list-item.DZvCfZuG.js.map → structured-list-item.Brk3yBPy.js.map} +1 -1
- package/dist/chunks/{summary-grid-item-custom.BRXtpB7y.js → summary-grid-item-custom.DnGuM9Cg.js} +5 -5
- package/dist/chunks/{summary-grid-item-custom.BRXtpB7y.js.map → summary-grid-item-custom.DnGuM9Cg.js.map} +1 -1
- package/dist/chunks/tabs.DDfHxVuD.js +211 -0
- package/dist/chunks/tabs.DDfHxVuD.js.map +1 -0
- package/dist/chunks/tag.DuIxjlwJ.js +51 -0
- package/dist/chunks/tag.DuIxjlwJ.js.map +1 -0
- package/dist/chunks/{textarea.Bk8-ivBT.js → textarea.CV2qkkZR.js} +5 -5
- package/dist/chunks/{textarea.Bk8-ivBT.js.map → textarea.CV2qkkZR.js.map} +1 -1
- package/dist/chunks/{timeline-item.USmzRWfs.js → timeline-item.Dqpw7bkB.js} +13 -14
- package/dist/chunks/timeline-item.Dqpw7bkB.js.map +1 -0
- package/dist/chunks/{toast.BwPhzM1x.js → toast.PtFHVFT1.js} +5 -5
- package/dist/chunks/{toast.BwPhzM1x.js.map → toast.PtFHVFT1.js.map} +1 -1
- package/dist/chunks/{toggle-button.CBRd1v6x.js → toggle-button.YSRdRLSS.js} +2 -2
- package/dist/chunks/{toggle-button.CBRd1v6x.js.map → toggle-button.YSRdRLSS.js.map} +1 -1
- package/dist/chunks/{toggle.PLkyyLr1.js → toggle.Bsu11Lof.js} +3 -3
- package/dist/chunks/{toggle.PLkyyLr1.js.map → toggle.Bsu11Lof.js.map} +1 -1
- package/dist/chunks/{tooltip.DvsfWV0-.js → tooltip.CSa9ntbr.js} +49 -50
- package/dist/chunks/tooltip.CSa9ntbr.js.map +1 -0
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CoFRoKtq.js → tutorial.vue_vue_type_script_setup_true_lang.Cx4a7RcE.js} +8 -8
- package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.Cx4a7RcE.js.map +1 -0
- package/dist/chunks/{typography.z9P0Ec3Q.js → typography.CE5PgxFf.js} +4 -4
- package/dist/chunks/{typography.z9P0Ec3Q.js.map → typography.CE5PgxFf.js.map} +1 -1
- package/dist/chunks/{use-bento-toast-controller.BDYlxAYq.js → use-bento-toast-controller.6iG-fzM1.js} +2 -2
- package/dist/chunks/{use-bento-toast-controller.BDYlxAYq.js.map → use-bento-toast-controller.6iG-fzM1.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.DditZmZy.js → use-cached-selected-values.BVxiRn6R.js} +10 -10
- package/dist/chunks/use-cached-selected-values.BVxiRn6R.js.map +1 -0
- package/dist/chunks/{warning-filled.CKoabS8f.js → warning-filled.Dm_HhqzW.js} +4 -4
- package/dist/chunks/{warning-filled.CKoabS8f.js.map → warning-filled.Dm_HhqzW.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +1 -1
- package/dist/currency.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/empty-state.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +98 -97
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +21 -19
- package/dist/internal.js.map +1 -1
- package/dist/link.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/payment-method.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +5 -4
- package/dist/popper-container.js.map +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/status.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento.css +14 -2
- package/dist/styles/legacy.css +13 -1
- package/dist/styles/styleguide.css +14 -2
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/toggle.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/typography.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +4 -4
- package/dist/chunks/alert.B_GZON9f.js.map +0 -1
- package/dist/chunks/checkbox-input.YgPBRaZP.js.map +0 -1
- package/dist/chunks/checkmark-circle-fill.Bgdq29pu.js.map +0 -1
- package/dist/chunks/checkmark-small.4DMun1A_.js.map +0 -1
- package/dist/chunks/chevron-left.ChbQxOxi.js.map +0 -1
- package/dist/chunks/chevron-up.zKonWHVc.js.map +0 -1
- package/dist/chunks/copy.5y12_05v.js.map +0 -1
- package/dist/chunks/cross-circle-fill-small.2_Xjp4id.js.map +0 -1
- package/dist/chunks/cross-circle-fill.CEUPgI5F.js.map +0 -1
- package/dist/chunks/cross-small.DvCEQd10.js.map +0 -1
- package/dist/chunks/cross.CowwLfo4.js.map +0 -1
- package/dist/chunks/data-grid.CcGMljDl.js.map +0 -1
- package/dist/chunks/dialog-page.CjKMgUlz.js.map +0 -1
- package/dist/chunks/dropdown.BxvydNp0.js.map +0 -1
- package/dist/chunks/events.CMzGybJJ.js +0 -47
- package/dist/chunks/events.CMzGybJJ.js.map +0 -1
- package/dist/chunks/expand.B5tyMqaF.js.map +0 -1
- package/dist/chunks/info-icon.CBiqUH3L.js.map +0 -1
- package/dist/chunks/link.2YS7haGc.js.map +0 -1
- package/dist/chunks/menu.CI4R2iw1.js.map +0 -1
- package/dist/chunks/pagination.-1ibfp5g.js.map +0 -1
- package/dist/chunks/popper-container.DFpaesDm.js.map +0 -1
- package/dist/chunks/refresh.DPE_95xY.js.map +0 -1
- package/dist/chunks/step.CyvTQbAk.js.map +0 -1
- package/dist/chunks/tabs.BUPiNLbZ.js +0 -185
- package/dist/chunks/tabs.BUPiNLbZ.js.map +0 -1
- package/dist/chunks/tag.RYw4OhWk.js +0 -75
- package/dist/chunks/tag.RYw4OhWk.js.map +0 -1
- package/dist/chunks/timeline-item.USmzRWfs.js.map +0 -1
- package/dist/chunks/tooltip.DvsfWV0-.js.map +0 -1
- package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.CoFRoKtq.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.DditZmZy.js.map +0 -1
- /package/dist/@types/packages/{vue2 → core}/src/components/internal/checkbox-input/checkbox-input.types.d.ts +0 -0
- /package/dist/assets/{main.css → cross.css} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,81 +1,82 @@
|
|
|
1
|
-
import { shallowRef as
|
|
2
|
-
import { t as
|
|
3
|
-
import { u as P } from "./chunks/use-bento-toast-controller.
|
|
4
|
-
import { d as g } from "./chunks/typography.
|
|
5
|
-
import { B as k, c as w, b as G, a as M } from "./chunks/typography.
|
|
6
|
-
import { B as O } from "./chunks/action-bar.
|
|
7
|
-
import { a as j, b as z } from "./chunks/accordion-item.
|
|
8
|
-
import { B as K, c as U, b as _, a as Z } from "./chunks/alert.
|
|
9
|
-
import { B as Y } from "./chunks/avatar.
|
|
10
|
-
import { B as q, b as J, a as Q } from "./chunks/button.
|
|
11
|
-
import { c as $, B as ee, a as te } from "./chunks/card.
|
|
12
|
-
import { d as ae } from "./chunks/dashed-underline.
|
|
13
|
-
import { B as re, d as se, a as Be, f as ie, e as pe, c as me, b as de } from "./chunks/data-grid.
|
|
14
|
-
import { B as le, a as
|
|
15
|
-
import { B as xe, a as ge } from "./chunks/date-range-picker.
|
|
16
|
-
import { B as Se, u as be } from "./chunks/dropdown.
|
|
17
|
-
import { B as Te } from "./chunks/dropdown-default-textbox.
|
|
1
|
+
import { shallowRef as f, ref as m } from "vue";
|
|
2
|
+
import { t as c, c as x } from "./chunks/use-bento-toast-controller.6iG-fzM1.js";
|
|
3
|
+
import { u as P } from "./chunks/use-bento-toast-controller.6iG-fzM1.js";
|
|
4
|
+
import { d as g } from "./chunks/typography.CE5PgxFf.js";
|
|
5
|
+
import { B as k, c as w, b as G, a as M } from "./chunks/typography.CE5PgxFf.js";
|
|
6
|
+
import { B as O } from "./chunks/action-bar.CMuu-R_8.js";
|
|
7
|
+
import { a as j, b as z } from "./chunks/accordion-item.COc5nXh4.js";
|
|
8
|
+
import { B as K, c as U, b as _, a as Z } from "./chunks/alert.DZFWFceT.js";
|
|
9
|
+
import { B as Y } from "./chunks/avatar.7gix8dxp.js";
|
|
10
|
+
import { B as q, b as J, a as Q } from "./chunks/button.DInQYAND.js";
|
|
11
|
+
import { c as $, B as ee, a as te } from "./chunks/card.Bh7vfIw8.js";
|
|
12
|
+
import { d as ae } from "./chunks/dashed-underline.C3AuURaR.js";
|
|
13
|
+
import { B as re, d as se, a as Be, f as ie, e as pe, c as me, b as de } from "./chunks/data-grid.DWCGBlAE.js";
|
|
14
|
+
import { B as le, a as fe } from "./chunks/date-picker.BJmupHBt.js";
|
|
15
|
+
import { B as xe, a as ge } from "./chunks/date-range-picker.D5z8fqcu.js";
|
|
16
|
+
import { B as Se, u as be } from "./chunks/dropdown.CPlvW43f.js";
|
|
17
|
+
import { B as Te } from "./chunks/dropdown-default-textbox.CeVq45Qy.js";
|
|
18
18
|
import { B as De } from "./chunks/divider.ugNXYI-T.js";
|
|
19
|
-
import { B as Ie, a as Ee } from "./chunks/checkbox.
|
|
19
|
+
import { B as Ie, a as Ee } from "./chunks/checkbox.Dkxm-fWK.js";
|
|
20
20
|
import { B as Le } from "./chunks/click-outside.DSszkIvs.js";
|
|
21
|
-
import { c as Ve, b as ke, a as we, B as Ge } from "./chunks/code-snippet.
|
|
22
|
-
import { c as Ae } from "./chunks/country.
|
|
21
|
+
import { c as Ve, b as ke, a as we, B as Ge } from "./chunks/code-snippet.BWbbS2ye.js";
|
|
22
|
+
import { c as Ae } from "./chunks/country.Dk5xsUic.js";
|
|
23
23
|
import { a as Re, B as je, u as ze, b as Ne, c as Ke } from "./chunks/country.types.Br0AjxGy.js";
|
|
24
|
-
import { c as _e, B as Ze } from "./chunks/currency.
|
|
25
|
-
import { B as Ye, a as He } from "./chunks/date.
|
|
26
|
-
import { B as Je, b as Qe, c as Xe, a as $e } from "./chunks/empty-state.
|
|
27
|
-
import { B as tt, b as ot, a as at, c as nt } from "./chunks/filter-bar.
|
|
28
|
-
import { f as st, a as Bt, c as it, b as pt } from "./chunks/form-layout-title.
|
|
24
|
+
import { c as _e, B as Ze } from "./chunks/currency.CFIi9B9m.js";
|
|
25
|
+
import { B as Ye, a as He } from "./chunks/date.BkeczstG.js";
|
|
26
|
+
import { B as Je, b as Qe, c as Xe, a as $e } from "./chunks/empty-state.BmZVT8wF.js";
|
|
27
|
+
import { B as tt, b as ot, a as at, c as nt } from "./chunks/filter-bar.uZ7n8y_i.js";
|
|
28
|
+
import { f as st, a as Bt, c as it, b as pt } from "./chunks/form-layout-title.bE1xo1hK.js";
|
|
29
29
|
import { B as dt, a as ut, b as lt } from "./chunks/image.0KzfycGE.js";
|
|
30
|
-
import { B as
|
|
31
|
-
import { i as gt, B as yt } from "./chunks/inspector.types.
|
|
32
|
-
import { B as bt, b as Ct, e as Tt, c as vt, d as Dt, a as ht } from "./chunks/input-field.
|
|
30
|
+
import { B as ct } from "./chunks/info-icon.tGhr3-Zh.js";
|
|
31
|
+
import { i as gt, B as yt } from "./chunks/inspector.types.eWf-6uBc.js";
|
|
32
|
+
import { B as bt, b as Ct, e as Tt, c as vt, d as Dt, a as ht } from "./chunks/input-field.D8Pt05M3.js";
|
|
33
33
|
import { B as Et, a as Ft } from "./chunks/loading-indicator.BFMEf39U.js";
|
|
34
|
-
import { B as Pt, a as Vt } from "./chunks/link.
|
|
35
|
-
import { B as wt, a as Gt } from "./chunks/menu.
|
|
36
|
-
import { d as At, f as Ot, g as Rt, B as jt, e as zt, c as Nt, a as Kt, b as Ut } from "./chunks/base-modal.
|
|
37
|
-
import { m as Zt, B as Wt } from "./chunks/modal-fullscreen.
|
|
38
|
-
import { B as Ht } from "./chunks/header.
|
|
39
|
-
import { B as Jt } from "./chunks/pagination
|
|
40
|
-
import { B as Xt } from "./chunks/payment-method
|
|
34
|
+
import { B as Pt, a as Vt } from "./chunks/link.CbotJFzC.js";
|
|
35
|
+
import { B as wt, a as Gt } from "./chunks/menu.bwVdUNQc.js";
|
|
36
|
+
import { d as At, f as Ot, g as Rt, B as jt, e as zt, c as Nt, a as Kt, b as Ut } from "./chunks/base-modal.DS7zI1O2.js";
|
|
37
|
+
import { m as Zt, B as Wt } from "./chunks/modal-fullscreen.Bn25snRZ.js";
|
|
38
|
+
import { B as Ht } from "./chunks/header.HQY-nc6l.js";
|
|
39
|
+
import { B as Jt } from "./chunks/pagination.Cg6ycXwO.js";
|
|
40
|
+
import { B as Xt } from "./chunks/payment-method.Dqby2asg.js";
|
|
41
41
|
import { B as eo } from "./chunks/payment-method.types.CJKfZQN5.js";
|
|
42
|
-
import { B as oo, a as ao } from "./chunks/popover.
|
|
43
|
-
import { b as ro, B as so, a as Bo } from "./chunks/radio-group.
|
|
44
|
-
import { B as po, b as mo, a as uo } from "./chunks/search-bar.
|
|
45
|
-
import { s as
|
|
46
|
-
import { B as xo } from "./chunks/segmented-control.
|
|
42
|
+
import { B as oo, a as ao } from "./chunks/popover.C7aNk7Ct.js";
|
|
43
|
+
import { b as ro, B as so, a as Bo } from "./chunks/radio-group.D0khdiFK.js";
|
|
44
|
+
import { B as po, b as mo, a as uo } from "./chunks/search-bar.BaqIavRd.js";
|
|
45
|
+
import { s as fo } from "./chunks/secondary-nav.eioY-Ac9.js";
|
|
46
|
+
import { B as xo } from "./chunks/segmented-control.CyyCTejh.js";
|
|
47
47
|
import { B as yo } from "./chunks/segmented-control.types.BHRLV8KU.js";
|
|
48
|
-
import { B as bo, s as Co, a as To } from "./chunks/selection-card-group.
|
|
49
|
-
import { a as Do, B as ho, s as Io } from "./chunks/sidepanel.
|
|
50
|
-
import { s as Fo, B as Lo } from "./chunks/status.types.
|
|
51
|
-
import { a as Vo, s as ko, B as wo, b as Go } from "./chunks/step.
|
|
52
|
-
import { B as Ao, a as Oo } from "./chunks/structured-list-item.
|
|
53
|
-
import { s as jo, a as zo, e as No, b as Ko, c as Uo, B as _o, d as Zo, f as Wo } from "./chunks/summary-grid-item-custom.
|
|
54
|
-
import { B as Ho, a as qo } from "./chunks/tabs.
|
|
55
|
-
import { B as Qo, a as Xo } from "./chunks/tag.
|
|
56
|
-
import { B as ea } from "./chunks/textarea.
|
|
57
|
-
import { t as oa, b as aa, a as na, c as ra, B as sa, d as Ba } from "./chunks/timeline-item.
|
|
58
|
-
import { t as pa } from "./chunks/toast.
|
|
59
|
-
import { B as da, b as ua, a as la } from "./chunks/toggle.
|
|
48
|
+
import { B as bo, s as Co, a as To } from "./chunks/selection-card-group.CJwWtHTD.js";
|
|
49
|
+
import { a as Do, B as ho, s as Io } from "./chunks/sidepanel.BGS2yzn-.js";
|
|
50
|
+
import { s as Fo, B as Lo } from "./chunks/status.types.DKEdSwK-.js";
|
|
51
|
+
import { a as Vo, s as ko, B as wo, b as Go } from "./chunks/step.DQtYDLoP.js";
|
|
52
|
+
import { B as Ao, a as Oo } from "./chunks/structured-list-item.Brk3yBPy.js";
|
|
53
|
+
import { s as jo, a as zo, e as No, b as Ko, c as Uo, B as _o, d as Zo, f as Wo } from "./chunks/summary-grid-item-custom.DnGuM9Cg.js";
|
|
54
|
+
import { B as Ho, a as qo } from "./chunks/tabs.DDfHxVuD.js";
|
|
55
|
+
import { B as Qo, a as Xo } from "./chunks/tag.DuIxjlwJ.js";
|
|
56
|
+
import { B as ea } from "./chunks/textarea.CV2qkkZR.js";
|
|
57
|
+
import { t as oa, b as aa, a as na, c as ra, B as sa, d as Ba } from "./chunks/timeline-item.Dqpw7bkB.js";
|
|
58
|
+
import { t as pa } from "./chunks/toast.PtFHVFT1.js";
|
|
59
|
+
import { B as da, b as ua, a as la } from "./chunks/toggle.Bsu11Lof.js";
|
|
60
60
|
import * as n from "zod";
|
|
61
|
-
import { u as
|
|
62
|
-
import { a as ga, d as ya } from "./chunks/dashboard-section.
|
|
63
|
-
import { d as ba } from "./chunks/data-grid-template.
|
|
61
|
+
import { u as ca } from "./chunks/use-click-outside.D6aIgS15.js";
|
|
62
|
+
import { a as ga, d as ya } from "./chunks/dashboard-section.BlsQTA_5.js";
|
|
63
|
+
import { d as ba } from "./chunks/data-grid-template.rvLUWZnh.js";
|
|
64
64
|
import { D as Ta } from "./chunks/date-input.BqBdAO1E.js";
|
|
65
|
-
import { a as Da, B as ha } from "./chunks/keyboard-navigation.
|
|
66
|
-
import { a as Ea, B as Fa, a as La, B as Pa } from "./chunks/use-cached-selected-values.
|
|
65
|
+
import { a as Da, B as ha } from "./chunks/keyboard-navigation.C3QMVRKY.js";
|
|
66
|
+
import { a as Ea, B as Fa, a as La, B as Pa } from "./chunks/use-cached-selected-values.BVxiRn6R.js";
|
|
67
67
|
import { B as ka } from "./chunks/directive.O3yEdalv.js";
|
|
68
|
-
import { B as Ga, a as Ma
|
|
69
|
-
import { B as
|
|
70
|
-
import { B as
|
|
71
|
-
import { B as
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
68
|
+
import { B as Ga, a as Ma } from "./chunks/events.FNmSWp_P.js";
|
|
69
|
+
import { B as Oa } from "./chunks/tooltip.CSa9ntbr.js";
|
|
70
|
+
import { B as ja, c as za, a as Na, b as Ka } from "./chunks/button-actions.DOvd7VLB.js";
|
|
71
|
+
import { B as _a, a as Za } from "./chunks/loading-button.BzCt6ZT0.js";
|
|
72
|
+
import { B as Ya } from "./chunks/toggle-button.YSRdRLSS.js";
|
|
73
|
+
import { C as qa, C as Ja } from "./chunks/calendar.BHy-Sfgc.js";
|
|
74
|
+
import { _ as Xa, a as $a, b as en, c as tn, d as on } from "./chunks/dropdown-tag.BOJ9WsnN.js";
|
|
75
|
+
import { C as nn } from "./chunks/checkbox-input.B24-74ay.js";
|
|
76
|
+
import { c as sn, B as Bn } from "./chunks/checkbox-group.COoDP0ua.js";
|
|
77
|
+
import { _ as mn } from "./chunks/modal.vue_vue_type_script_setup_true_lang.BZ-e4djX.js";
|
|
78
|
+
import { R as un } from "./chunks/radio-input.DtvlM-mr.js";
|
|
79
|
+
import { _ as fn } from "./chunks/tutorial.vue_vue_type_script_setup_true_lang.Cx4a7RcE.js";
|
|
79
80
|
function h(e) {
|
|
80
81
|
return e;
|
|
81
82
|
}
|
|
@@ -91,7 +92,7 @@ function y(e) {
|
|
|
91
92
|
function I({
|
|
92
93
|
validationSchema: e
|
|
93
94
|
}) {
|
|
94
|
-
const t =
|
|
95
|
+
const t = f({}), o = m({}), a = m(i(e)), s = () => {
|
|
95
96
|
t.value = {}, o.value = {};
|
|
96
97
|
}, u = () => {
|
|
97
98
|
s(), a.value = i(e);
|
|
@@ -114,7 +115,7 @@ function I({
|
|
|
114
115
|
};
|
|
115
116
|
}
|
|
116
117
|
const S = (e) => {
|
|
117
|
-
e.provide(
|
|
118
|
+
e.provide(c, x());
|
|
118
119
|
};
|
|
119
120
|
var b = /* @__PURE__ */ ((e) => (e.LEGACY = "b-legacy-theme", e.STYLEGUIDE = "b-styleguide-theme", e.BENTO = "", e))(b || {});
|
|
120
121
|
const d = (e) => {
|
|
@@ -151,10 +152,10 @@ export {
|
|
|
151
152
|
Z as BentoAlertVariant,
|
|
152
153
|
Y as BentoAvatar,
|
|
153
154
|
q as BentoButton,
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
155
|
+
ja as BentoButtonActions,
|
|
156
|
+
za as BentoButtonActionsLayout,
|
|
157
|
+
Na as BentoButtonActionsLayoutBasic,
|
|
158
|
+
Ka as BentoButtonActionsLayoutExtended,
|
|
158
159
|
J as BentoButtonPropClass,
|
|
159
160
|
Q as BentoButtonVariant,
|
|
160
161
|
$ as BentoCard,
|
|
@@ -162,9 +163,9 @@ export {
|
|
|
162
163
|
te as BentoCardTitleSize,
|
|
163
164
|
Ie as BentoCheckbox,
|
|
164
165
|
Ee as BentoCheckboxEvent,
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
166
|
+
sn as BentoCheckboxGroup,
|
|
167
|
+
Bn as BentoCheckboxGroupVariant,
|
|
168
|
+
nn as BentoCheckboxState,
|
|
168
169
|
Le as BentoClickOutside,
|
|
169
170
|
ka as BentoClickOutsideDirective,
|
|
170
171
|
Ve as BentoCodeSnippet,
|
|
@@ -190,21 +191,21 @@ export {
|
|
|
190
191
|
Ye as BentoDate,
|
|
191
192
|
He as BentoDateFormat,
|
|
192
193
|
le as BentoDatePicker,
|
|
193
|
-
|
|
194
|
-
|
|
194
|
+
fe as BentoDatePickerEvent,
|
|
195
|
+
qa as BentoDatePickerFirstDayOfWeek,
|
|
195
196
|
xe as BentoDateRangePicker,
|
|
196
197
|
ge as BentoDateRangePickerEvent,
|
|
197
|
-
|
|
198
|
+
Ja as BentoDateRangePickerFirstDayOfWeek,
|
|
198
199
|
De as BentoDivider,
|
|
199
200
|
Se as BentoDropdown,
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
201
|
+
Xa as BentoDropdownAvatar,
|
|
202
|
+
$a as BentoDropdownCountry,
|
|
203
|
+
en as BentoDropdownCurrency,
|
|
203
204
|
Ea as BentoDropdownEvent,
|
|
204
205
|
Fa as BentoDropdownLazyLoadType,
|
|
205
|
-
|
|
206
|
+
tn as BentoDropdownPaymentMethod,
|
|
206
207
|
Te as BentoDropdownSize,
|
|
207
|
-
|
|
208
|
+
on as BentoDropdownTag,
|
|
208
209
|
Je as BentoEmptyState,
|
|
209
210
|
Qe as BentoEmptyStateImage,
|
|
210
211
|
Xe as BentoEmptyStateImageVariant,
|
|
@@ -221,7 +222,7 @@ export {
|
|
|
221
222
|
dt as BentoImage,
|
|
222
223
|
ut as BentoImageAspectRatio,
|
|
223
224
|
lt as BentoImageObjectFit,
|
|
224
|
-
|
|
225
|
+
ct as BentoInfoIcon,
|
|
225
226
|
bt as BentoInputField,
|
|
226
227
|
Ct as BentoInputFieldElementPosition,
|
|
227
228
|
Tt as BentoInputFieldEvent,
|
|
@@ -236,13 +237,13 @@ export {
|
|
|
236
237
|
Vt as BentoLinkVariant,
|
|
237
238
|
La as BentoListboxEvent,
|
|
238
239
|
Pa as BentoListboxLazyLoadType,
|
|
239
|
-
|
|
240
|
-
|
|
240
|
+
_a as BentoLoadingButton,
|
|
241
|
+
Za as BentoLoadingButtonState,
|
|
241
242
|
Et as BentoLoadingIndicator,
|
|
242
243
|
Ft as BentoLoadingIndicatorEvent,
|
|
243
244
|
wt as BentoMenu,
|
|
244
245
|
Gt as BentoMenuEvent,
|
|
245
|
-
|
|
246
|
+
mn as BentoModal,
|
|
246
247
|
At as BentoModalColumnLayoutVariant,
|
|
247
248
|
Ot as BentoModalDialogType,
|
|
248
249
|
Rt as BentoModalEvent,
|
|
@@ -259,13 +260,13 @@ export {
|
|
|
259
260
|
oo as BentoPopover,
|
|
260
261
|
ao as BentoPopoverPositions,
|
|
261
262
|
ro as BentoRadioButton,
|
|
262
|
-
|
|
263
|
+
un as BentoRadioButtonStateClass,
|
|
263
264
|
so as BentoRadioGroup,
|
|
264
265
|
Bo as BentoRadioGroupVariant,
|
|
265
266
|
po as BentoSearchBar,
|
|
266
267
|
mo as BentoSearchBarEvent,
|
|
267
268
|
uo as BentoSearchBarInternalEvent,
|
|
268
|
-
|
|
269
|
+
fo as BentoSecondaryNav,
|
|
269
270
|
xo as BentoSegmentedControl,
|
|
270
271
|
yo as BentoSegmentedControlEvent,
|
|
271
272
|
bo as BentoSelectionCard,
|
|
@@ -304,13 +305,13 @@ export {
|
|
|
304
305
|
Ba as BentoTimelineStatus,
|
|
305
306
|
pa as BentoToast,
|
|
306
307
|
da as BentoToggle,
|
|
307
|
-
|
|
308
|
+
Ya as BentoToggleButton,
|
|
308
309
|
ua as BentoToggleLabelPosition,
|
|
309
310
|
la as BentoTogglePropClass,
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
311
|
+
Oa as BentoTooltipDirective,
|
|
312
|
+
Ga as BentoTooltipPosition,
|
|
313
|
+
Ma as BentoTooltipState,
|
|
314
|
+
fn as BentoTutorial,
|
|
314
315
|
k as BentoTypography,
|
|
315
316
|
w as BentoTypographyElement,
|
|
316
317
|
G as BentoTypographyModifier,
|
|
@@ -319,7 +320,7 @@ export {
|
|
|
319
320
|
E as default,
|
|
320
321
|
h as toTypedSchema,
|
|
321
322
|
P as useBentoToastController,
|
|
322
|
-
|
|
323
|
+
ca as useClickOutside,
|
|
323
324
|
ze as useCountryCapital,
|
|
324
325
|
Ne as useCountryName,
|
|
325
326
|
Ke as useCountryPhoneCode,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../vue2/src/composables/use-form-validate/use-form.ts","../../vue2/src/composables/use-bento-toast-controller/install.ts","../../vue2/src/install.ts"],"sourcesContent":["import { type Ref, ref, type ShallowRef, shallowRef } from 'vue';\nimport * as z from 'zod';\nimport type { ZodSchema } from 'zod';\nimport { ErrorBag, UseForm } from './use-form.types';\n\n/**\n * Composable that tansforms a Zod schema into a Typed Schema that can be used alongside with {@see useForm}.\n *\n * This is meant to simulate the behavior of {@link @vee-validate/zod} {@see https://vee-validate.logaretm.com/v4/integrations/zod-schema-validation}.\n * Function that transform Zod’s schemas into something that can be understood by vee-validate\n *\n * @param {T extends ZodSchema} formSchema Zod schema to be transformed into a `vee-validate` schema\n * @returns {UseForm<T>} schema Schema transformed\n */\nexport function toTypedSchema<T extends ZodSchema>(formSchema: T) {\n return formSchema;\n}\n\n/**\n * Finds and returns the initial values of each of the values defined in the schema so that they\n * can be transformed into a reactive element.\n * @param {ZodSchema} schema Zod validation schema containing the definitions of each value to be used in the form\n * @returns Object with the items defined in the schema and their (default) values\n *\n * @example\n * const validationSchema = toTypedSchema(\n * z.object({\n * name: z\n * .string()\n * .min(3, { message: 'Name is required' })\n * .startsWith('Jane')\n * .max(4, { message: 'Name cannot be longer than 4 characters' })\n * .default('Joe'),\n * })\n * );\n * getInitialFormValues(validationSchema)\n *\n * Will return:\n *\n * {\n * name: 'Joe'\n * }\n *\n */\nfunction getInitialFormValues<T extends ZodSchema>(schema: T): z.infer<typeof schema> {\n if (!!z && schema instanceof z.ZodObject) {\n return Object.fromEntries(\n Object.entries(schema.shape).map(([key, value]) => {\n if (!!z && value instanceof z.ZodDefault) {\n // eslint-disable-next-line no-underscore-dangle\n return [key, value._def.defaultValue()];\n }\n\n if (!!z && value instanceof z.ZodObject) {\n return [key, getInitialFormValues(value)];\n }\n\n return [key, undefined];\n })\n ) as z.infer<typeof schema>;\n }\n\n return undefined;\n}\n\n/**\n * Constructs a path with dot paths for arrays to use brackets to be compatible with vee-validate path syntax\n * @param issue List of nested path elements\n * @returns Path with dots\n */\nfunction normalizeFormPath(issue: z.ZodIssue) {\n return issue.path.join('.');\n}\n\n/**\n * Composable that facilitates validating form data for Vue2 & Vue3 implementations with FormLayout\n * to ease the migration to Vue3.\n *\n * For Vue3 implementations use Vee-Validate.\n *\n * This provides a simplified version of Vee-Validate v4 implemented with Zod to validate a form schema.\n * It returns reactive values that can be used directly in form input elements with 'v-model' alongside\n * with functions to \"reset\" the data (sets values to default value) and a function to execute the\n * successful form validation process (through a callback).\n *\n * @param {UseForm<T>} props Form configuration object\n * @param {T extends ZodSchema} props.validationSchema Zod typed validation schema\n * @returns {Object} response - Composable with reactive form values and errors, and functions to handle the reactive data\n * @returns {Ref<ErrorBag<T>>} response.errorBag Object with all the form values and an array of each one of the errors (if any) per value\n * @returns {Ref<T>} response.errors Object with all the form values and the first error found for that field (if any)\n * @returns {Ref<T>} response.values Object with all the form values and their current value\n * @returns {() => void} response.handleReset Resets the form values to default (initial values) when it gets called\n * @returns {(callback: (values: T) => void) => () => void} response.submitForm Validates the data set in {response.values} and sets errors (if found) inside {response.errors} and {response.errorBag}.\n * When the validation is successful it calls the callback so the submit process can continue\n *\n * @example\n * const validationSchema = toTypedSchema(\n * z.object({\n * name: z\n * .string()\n * .min(3, { message: 'Name is required' })\n * .startsWith('Jane')\n * .max(4, { message: 'Name cannot be longer than 4 characters' })\n * .default('Joe'),\n * })\n * );\n *\n * const { values, errors, errorBag, submitForm, handleReset } = useForm({\n * validationSchema\n * });\n * const handleSubmit = submitForm(() => {\n * // Send data to API here\n * })\n *\n */\nexport function useForm<T extends ZodSchema>({\n validationSchema,\n}: UseForm<T>): {\n errorBag: Ref<ErrorBag<z.TypeOf<T>>>;\n errors: Ref<z.TypeOf<T>> | ShallowRef<z.TypeOf<T>>;\n values: Ref<z.TypeOf<T>>;\n handleReset: () => void;\n submitForm: (submitted: any) => () => void;\n} {\n // Errors per field\n const errors = shallowRef<z.infer<typeof validationSchema>>({});\n // All errors per field\n const errorBag: Ref<ErrorBag<z.infer<typeof validationSchema>>> = ref({});\n const values: Ref<z.TypeOf<T>> = ref(getInitialFormValues<T>(validationSchema));\n\n const cleanErrors = () => {\n errors.value = {};\n errorBag.value = {};\n };\n\n const resetForm = () => {\n cleanErrors();\n values.value = getInitialFormValues<T>(validationSchema);\n };\n\n const submitForm = submitted => () => {\n cleanErrors();\n\n // Run validations on the form data through the schema\n const validSchema = validationSchema.safeParse(values.value);\n\n // Update errors\n if (!validSchema.success) {\n (validSchema as z.SafeParseError<T>).error.issues.forEach(error => {\n const path = normalizeFormPath(error);\n\n // Add the first ocurrance of a fild error to the \"errors\" object\n if (!errors.value[path]) {\n errors.value[path] = error.message;\n }\n\n // Add each error to the \"errorBag\" per field array\n if (!errorBag.value[path]) {\n errorBag.value[path] = [error.message];\n } else {\n errorBag.value[path].push(error.message);\n }\n });\n } else {\n submitted(values.value);\n }\n };\n\n return {\n // Values\n errorBag,\n errors,\n values,\n\n // Methods\n handleReset: () => resetForm(),\n submitForm,\n };\n}\n","import { type App, isVue2, type Vue2 } from 'vue-demi';\nimport { createToastStack, toastStackInjectionKey } from './toast-stack';\n\n/**\n * This function is used to create and register global reactive state necessary fro the Toasts to operate.\n * @param {Vue} Vue A context application to register global state with.\n */\nexport default Vue => {\n if (isVue2) {\n // Add toast stack as a global property as there is no \"app.provide\" functionality in Vue2\n // eslint-disable-next-line no-param-reassign -- this is an official way of setting up instance properties on Vue\n (Vue as typeof Vue2).prototype[toastStackInjectionKey] = createToastStack();\n } else {\n (Vue as App).provide(toastStackInjectionKey, createToastStack());\n }\n};\n","import type { PluginObject } from 'vue';\nimport installToast from './composables/use-bento-toast-controller/install';\nimport { deprecate } from './utils/ts/deprecate';\n\nexport enum BentoTheme {\n LEGACY = 'b-legacy-theme',\n STYLEGUIDE = 'b-styleguide-theme',\n BENTO = '',\n}\n\ninterface BentoVuePlugin {\n theme?: BentoTheme;\n withToast?: boolean;\n withUtilityClasses?: boolean;\n withDesignTokensCSSInjection?: boolean;\n}\n\nconst setTheme = (theme: BentoTheme) => {\n document.body.classList.add(theme);\n};\n\nconst plugin: PluginObject<BentoVuePlugin> = {\n name: 'BentoVue',\n install: async (\n Vue,\n {\n theme = BentoTheme.BENTO,\n withToast = false,\n withUtilityClasses = false,\n withDesignTokensCSSInjection = true,\n }: BentoVuePlugin\n ) => {\n if (withToast) {\n installToast(Vue);\n }\n if (withDesignTokensCSSInjection) {\n deprecate(\n 'Using default setting withDesignTokensCSSInjection set to true in BentoVue plugin',\n 'Please disable CSS injection by setting withDesignTokensCSSInjection to false in BentoVue plugin options as highlighted here:\\nhttps://adyen-bento.netlify.app/?path=/docs/welcome-getting-started--docs#import-css-variables',\n '2.0.0'\n );\n // Make sure to put all awaited CSS imports below this point and not above!\n if (theme === BentoTheme.LEGACY) {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-legacy.css');\n } else if (theme === BentoTheme.STYLEGUIDE) {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-styleguide.css');\n } else {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables.css');\n }\n\n if (withUtilityClasses) {\n await import('@adyen/bento-design-tokens/dist/css/bento/utility.css');\n }\n }\n\n if (theme === BentoTheme.LEGACY) {\n setTheme(BentoTheme.LEGACY);\n } else if (theme === BentoTheme.STYLEGUIDE) {\n setTheme(BentoTheme.STYLEGUIDE);\n }\n },\n};\n\nexport default plugin;\n"],"names":["toTypedSchema","formSchema","getInitialFormValues","schema","z","key","value","normalizeFormPath","issue","useForm","validationSchema","errors","shallowRef","errorBag","ref","values","cleanErrors","resetForm","validSchema","submitted","error","path","installToast","Vue","toastStackInjectionKey","createToastStack","BentoTheme","setTheme","theme","plugin","withToast","withUtilityClasses","withDesignTokensCSSInjection","deprecate"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcO,SAASA,EAAmCC,GAAe;AACvD,SAAAA;AACX;AA4BA,SAASC,EAA0CC,GAAmC;AAClF,MAAMC,KAAKD,aAAkBC,EAAE;AAC3B,WAAO,OAAO;AAAA,MACV,OAAO,QAAQD,EAAO,KAAK,EAAE,IAAI,CAAC,CAACE,GAAKC,CAAK,MACnCF,KAAKE,aAAiBF,EAAE,aAEnB,CAACC,GAAKC,EAAM,KAAK,cAAc,IAGpCF,KAAKE,aAAiBF,EAAE,YACnB,CAACC,GAAKH,EAAqBI,CAAK,CAAC,IAGrC,CAACD,GAAK,MAAS,CACzB;AAAA,IACL;AAIR;AAOA,SAASE,EAAkBC,GAAmB;AACnC,SAAAA,EAAM,KAAK,KAAK,GAAG;AAC9B;AA2CO,SAASC,EAA6B;AAAA,EACzC,kBAAAC;AACJ,GAME;AAEQ,QAAAC,IAASC,EAA6C,EAAE,GAExDC,IAA4DC,EAAI,EAAE,GAClEC,IAA2BD,EAAIZ,EAAwBQ,CAAgB,CAAC,GAExEM,IAAc,MAAM;AACtB,IAAAL,EAAO,QAAQ,CAAC,GAChBE,EAAS,QAAQ,CAAC;AAAA,EACtB,GAEMI,IAAY,MAAM;AACR,IAAAD,EAAA,GACLD,EAAA,QAAQb,EAAwBQ,CAAgB;AAAA,EAC3D;AA8BO,SAAA;AAAA;AAAA,IAEH,UAAAG;AAAA,IACA,QAAAF;AAAA,IACA,QAAAI;AAAA;AAAA,IAGA,aAAa,MAAME,EAAU;AAAA,IAC7B,YApCe,OAAa,MAAM;AACtB,MAAAD,EAAA;AAGZ,YAAME,IAAcR,EAAiB,UAAUK,EAAO,KAAK;AAGvD,MAACG,EAAY,UAiBbC,EAAUJ,EAAO,KAAK,IAhBrBG,EAAoC,MAAM,OAAO,QAAQ,CAASE,MAAA;AACzD,cAAAC,IAAOd,EAAkBa,CAAK;AAGpC,QAAKT,EAAO,MAAMU,CAAI,MACXV,EAAA,MAAMU,CAAI,IAAID,EAAM,UAI1BP,EAAS,MAAMQ,CAAI,IAGpBR,EAAS,MAAMQ,CAAI,EAAE,KAAKD,EAAM,OAAO,IAFvCP,EAAS,MAAMQ,CAAI,IAAI,CAACD,EAAM,OAAO;AAAA,MAGzC,CACH;AAAA,IAIT;AAAA,EAWA;AACJ;AC3KA,MAAeE,IAAA,CAAOC,MAAA;AAMb,EAAAA,EAAY,QAAQC,GAAwBC,GAAkB;AAEvE;ACXY,IAAAC,sBAAAA,OACRA,EAAA,SAAS,kBACTA,EAAA,aAAa,sBACbA,EAAA,QAAQ,IAHAA,IAAAA,KAAA,CAAA,CAAA;AAaZ,MAAMC,IAAW,CAACC,MAAsB;AAC3B,WAAA,KAAK,UAAU,IAAIA,CAAK;AACrC,GAEMC,IAAuC;AAAA,EACzC,MAAM;AAAA,EACN,SAAS,OACLN,GACA;AAAA,IACI,OAAAK,IAAQ;AAAA,IACR,WAAAE,IAAY;AAAA,IACZ,oBAAAC,IAAqB;AAAA,IACrB,8BAAAC,IAA+B;AAAA,EAAA,MAElC;AACD,IAAIF,KACAR,EAAaC,CAAG,GAEhBS,MACAC;AAAA,MACI;AAAA,MACA;AAAA;AAAA,MACA;AAAA,IACJ,GAEIL,MAAU,mBACV,MAAM,OAAO,gEAAgE,IACtEA,MAAU,uBACjB,MAAM,OAAO,oEAAoE,IAEjF,MAAM,OAAO,yDAAyD,GAGtEG,KACA,MAAM,OAAO,uDAAuD,IAIxEH,MAAU,mBACVD;AAAA,MAAS;AAAA;AAAA,IAAiB,IACnBC,MAAU,wBACjBD;AAAA,MAAS;AAAA;AAAA,IAAqB;AAAA,EAClC;AAER;"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../vue2/src/composables/use-form-validate/use-form.ts","../../vue2/src/composables/use-bento-toast-controller/install.ts","../../vue2/src/install.ts"],"sourcesContent":["import { type Ref, ref, type ShallowRef, shallowRef } from 'vue';\nimport * as z from 'zod';\nimport type { ZodSchema } from 'zod';\nimport { ErrorBag, UseForm } from './use-form.types';\n\n/**\n * Composable that tansforms a Zod schema into a Typed Schema that can be used alongside with {@see useForm}.\n *\n * This is meant to simulate the behavior of {@link @vee-validate/zod} {@see https://vee-validate.logaretm.com/v4/integrations/zod-schema-validation}.\n * Function that transform Zod’s schemas into something that can be understood by vee-validate\n *\n * @param {T extends ZodSchema} formSchema Zod schema to be transformed into a `vee-validate` schema\n * @returns {UseForm<T>} schema Schema transformed\n */\nexport function toTypedSchema<T extends ZodSchema>(formSchema: T) {\n return formSchema;\n}\n\n/**\n * Finds and returns the initial values of each of the values defined in the schema so that they\n * can be transformed into a reactive element.\n * @param {ZodSchema} schema Zod validation schema containing the definitions of each value to be used in the form\n * @returns Object with the items defined in the schema and their (default) values\n *\n * @example\n * const validationSchema = toTypedSchema(\n * z.object({\n * name: z\n * .string()\n * .min(3, { message: 'Name is required' })\n * .startsWith('Jane')\n * .max(4, { message: 'Name cannot be longer than 4 characters' })\n * .default('Joe'),\n * })\n * );\n * getInitialFormValues(validationSchema)\n *\n * Will return:\n *\n * {\n * name: 'Joe'\n * }\n *\n */\nfunction getInitialFormValues<T extends ZodSchema>(schema: T): z.infer<typeof schema> {\n if (!!z && schema instanceof z.ZodObject) {\n return Object.fromEntries(\n Object.entries(schema.shape).map(([key, value]) => {\n if (!!z && value instanceof z.ZodDefault) {\n // eslint-disable-next-line no-underscore-dangle\n return [key, value._def.defaultValue()];\n }\n\n if (!!z && value instanceof z.ZodObject) {\n return [key, getInitialFormValues(value)];\n }\n\n return [key, undefined];\n })\n ) as z.infer<typeof schema>;\n }\n\n return undefined;\n}\n\n/**\n * Constructs a path with dot paths for arrays to use brackets to be compatible with vee-validate path syntax\n * @param issue List of nested path elements\n * @returns Path with dots\n */\nfunction normalizeFormPath(issue: z.ZodIssue) {\n return issue.path.join('.');\n}\n\n/**\n * Composable that facilitates validating form data for Vue2 & Vue3 implementations with FormLayout\n * to ease the migration to Vue3.\n *\n * For Vue3 implementations use Vee-Validate.\n *\n * This provides a simplified version of Vee-Validate v4 implemented with Zod to validate a form schema.\n * It returns reactive values that can be used directly in form input elements with 'v-model' alongside\n * with functions to \"reset\" the data (sets values to default value) and a function to execute the\n * successful form validation process (through a callback).\n *\n * @param {UseForm<T>} props Form configuration object\n * @param {T extends ZodSchema} props.validationSchema Zod typed validation schema\n * @returns {Object} response - Composable with reactive form values and errors, and functions to handle the reactive data\n * @returns {Ref<ErrorBag<T>>} response.errorBag Object with all the form values and an array of each one of the errors (if any) per value\n * @returns {Ref<T>} response.errors Object with all the form values and the first error found for that field (if any)\n * @returns {Ref<T>} response.values Object with all the form values and their current value\n * @returns {() => void} response.handleReset Resets the form values to default (initial values) when it gets called\n * @returns {(callback: (values: T) => void) => () => void} response.submitForm Validates the data set in {response.values} and sets errors (if found) inside {response.errors} and {response.errorBag}.\n * When the validation is successful it calls the callback so the submit process can continue\n *\n * @example\n * const validationSchema = toTypedSchema(\n * z.object({\n * name: z\n * .string()\n * .min(3, { message: 'Name is required' })\n * .startsWith('Jane')\n * .max(4, { message: 'Name cannot be longer than 4 characters' })\n * .default('Joe'),\n * })\n * );\n *\n * const { values, errors, errorBag, submitForm, handleReset } = useForm({\n * validationSchema\n * });\n * const handleSubmit = submitForm(() => {\n * // Send data to API here\n * })\n *\n */\nexport function useForm<T extends ZodSchema>({\n validationSchema,\n}: UseForm<T>): {\n errorBag: Ref<ErrorBag<z.TypeOf<T>>>;\n errors: Ref<z.TypeOf<T>> | ShallowRef<z.TypeOf<T>>;\n values: Ref<z.TypeOf<T>>;\n handleReset: () => void;\n submitForm: (submitted: any) => () => void;\n} {\n // Errors per field\n const errors = shallowRef<z.infer<typeof validationSchema>>({});\n // All errors per field\n const errorBag: Ref<ErrorBag<z.infer<typeof validationSchema>>> = ref({});\n const values: Ref<z.TypeOf<T>> = ref(getInitialFormValues<T>(validationSchema));\n\n const cleanErrors = () => {\n errors.value = {};\n errorBag.value = {};\n };\n\n const resetForm = () => {\n cleanErrors();\n values.value = getInitialFormValues<T>(validationSchema);\n };\n\n const submitForm = submitted => () => {\n cleanErrors();\n\n // Run validations on the form data through the schema\n const validSchema = validationSchema.safeParse(values.value);\n\n // Update errors\n if (!validSchema.success) {\n (validSchema as z.SafeParseError<T>).error.issues.forEach(error => {\n const path = normalizeFormPath(error);\n\n // Add the first ocurrance of a fild error to the \"errors\" object\n if (!errors.value[path]) {\n errors.value[path] = error.message;\n }\n\n // Add each error to the \"errorBag\" per field array\n if (!errorBag.value[path]) {\n errorBag.value[path] = [error.message];\n } else {\n errorBag.value[path].push(error.message);\n }\n });\n } else {\n submitted(values.value);\n }\n };\n\n return {\n // Values\n errorBag,\n errors,\n values,\n\n // Methods\n handleReset: () => resetForm(),\n submitForm,\n };\n}\n","import { type App, isVue2, type Vue2 } from 'vue-demi';\nimport { createToastStack, toastStackInjectionKey } from './toast-stack';\n\n/**\n * This function is used to create and register global reactive state necessary fro the Toasts to operate.\n * @param {Vue} Vue A context application to register global state with.\n */\nexport default Vue => {\n if (isVue2) {\n // Add toast stack as a global property as there is no \"app.provide\" functionality in Vue2\n // eslint-disable-next-line no-param-reassign -- this is an official way of setting up instance properties on Vue\n (Vue as typeof Vue2).prototype[toastStackInjectionKey] = createToastStack();\n } else {\n (Vue as App).provide(toastStackInjectionKey, createToastStack());\n }\n};\n","import type { PluginObject } from 'vue';\nimport installToast from './composables/use-bento-toast-controller/install';\nimport { deprecate } from './utils/ts/deprecate';\n\nexport enum BentoTheme {\n LEGACY = 'b-legacy-theme',\n STYLEGUIDE = 'b-styleguide-theme',\n BENTO = '',\n}\n\ninterface BentoVuePlugin {\n theme?: BentoTheme;\n withToast?: boolean;\n withUtilityClasses?: boolean;\n withDesignTokensCSSInjection?: boolean;\n}\n\nconst setTheme = (theme: BentoTheme) => {\n document.body.classList.add(theme);\n};\n\nconst plugin: PluginObject<BentoVuePlugin> = {\n name: 'BentoVue',\n install: async (\n Vue,\n {\n theme = BentoTheme.BENTO,\n withToast = false,\n withUtilityClasses = false,\n withDesignTokensCSSInjection = true,\n }: BentoVuePlugin\n ) => {\n if (withToast) {\n installToast(Vue);\n }\n if (withDesignTokensCSSInjection) {\n deprecate(\n 'Using default setting withDesignTokensCSSInjection set to true in BentoVue plugin',\n 'Please disable CSS injection by setting withDesignTokensCSSInjection to false in BentoVue plugin options as highlighted here:\\nhttps://adyen-bento.netlify.app/?path=/docs/welcome-getting-started--docs#import-css-variables',\n '2.0.0'\n );\n // Make sure to put all awaited CSS imports below this point and not above!\n if (theme === BentoTheme.LEGACY) {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-legacy.css');\n } else if (theme === BentoTheme.STYLEGUIDE) {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-styleguide.css');\n } else {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables.css');\n }\n\n if (withUtilityClasses) {\n await import('@adyen/bento-design-tokens/dist/css/bento/utility.css');\n }\n }\n\n if (theme === BentoTheme.LEGACY) {\n setTheme(BentoTheme.LEGACY);\n } else if (theme === BentoTheme.STYLEGUIDE) {\n setTheme(BentoTheme.STYLEGUIDE);\n }\n },\n};\n\nexport default plugin;\n"],"names":["toTypedSchema","formSchema","getInitialFormValues","schema","z","key","value","normalizeFormPath","issue","useForm","validationSchema","errors","shallowRef","errorBag","ref","values","cleanErrors","resetForm","validSchema","submitted","error","path","installToast","Vue","toastStackInjectionKey","createToastStack","BentoTheme","setTheme","theme","plugin","withToast","withUtilityClasses","withDesignTokensCSSInjection","deprecate"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcO,SAASA,EAAmCC,GAAe;AACvD,SAAAA;AACX;AA4BA,SAASC,EAA0CC,GAAmC;AAClF,MAAMC,KAAKD,aAAkBC,EAAE;AAC3B,WAAO,OAAO;AAAA,MACV,OAAO,QAAQD,EAAO,KAAK,EAAE,IAAI,CAAC,CAACE,GAAKC,CAAK,MACnCF,KAAKE,aAAiBF,EAAE,aAEnB,CAACC,GAAKC,EAAM,KAAK,cAAc,IAGpCF,KAAKE,aAAiBF,EAAE,YACnB,CAACC,GAAKH,EAAqBI,CAAK,CAAC,IAGrC,CAACD,GAAK,MAAS,CACzB;AAAA,IACL;AAIR;AAOA,SAASE,EAAkBC,GAAmB;AACnC,SAAAA,EAAM,KAAK,KAAK,GAAG;AAC9B;AA2CO,SAASC,EAA6B;AAAA,EACzC,kBAAAC;AACJ,GAME;AAEQ,QAAAC,IAASC,EAA6C,EAAE,GAExDC,IAA4DC,EAAI,EAAE,GAClEC,IAA2BD,EAAIZ,EAAwBQ,CAAgB,CAAC,GAExEM,IAAc,MAAM;AACtB,IAAAL,EAAO,QAAQ,CAAC,GAChBE,EAAS,QAAQ,CAAC;AAAA,EACtB,GAEMI,IAAY,MAAM;AACR,IAAAD,EAAA,GACLD,EAAA,QAAQb,EAAwBQ,CAAgB;AAAA,EAC3D;AA8BO,SAAA;AAAA;AAAA,IAEH,UAAAG;AAAA,IACA,QAAAF;AAAA,IACA,QAAAI;AAAA;AAAA,IAGA,aAAa,MAAME,EAAU;AAAA,IAC7B,YApCe,OAAa,MAAM;AACtB,MAAAD,EAAA;AAGZ,YAAME,IAAcR,EAAiB,UAAUK,EAAO,KAAK;AAGvD,MAACG,EAAY,UAiBbC,EAAUJ,EAAO,KAAK,IAhBrBG,EAAoC,MAAM,OAAO,QAAQ,CAASE,MAAA;AACzD,cAAAC,IAAOd,EAAkBa,CAAK;AAGpC,QAAKT,EAAO,MAAMU,CAAI,MACXV,EAAA,MAAMU,CAAI,IAAID,EAAM,UAI1BP,EAAS,MAAMQ,CAAI,IAGpBR,EAAS,MAAMQ,CAAI,EAAE,KAAKD,EAAM,OAAO,IAFvCP,EAAS,MAAMQ,CAAI,IAAI,CAACD,EAAM,OAAO;AAAA,MAGzC,CACH;AAAA,IAIT;AAAA,EAWA;AACJ;AC3KA,MAAeE,IAAA,CAAOC,MAAA;AAMb,EAAAA,EAAY,QAAQC,GAAwBC,GAAkB;AAEvE;ACXY,IAAAC,sBAAAA,OACRA,EAAA,SAAS,kBACTA,EAAA,aAAa,sBACbA,EAAA,QAAQ,IAHAA,IAAAA,KAAA,CAAA,CAAA;AAaZ,MAAMC,IAAW,CAACC,MAAsB;AAC3B,WAAA,KAAK,UAAU,IAAIA,CAAK;AACrC,GAEMC,IAAuC;AAAA,EACzC,MAAM;AAAA,EACN,SAAS,OACLN,GACA;AAAA,IACI,OAAAK,IAAQ;AAAA,IACR,WAAAE,IAAY;AAAA,IACZ,oBAAAC,IAAqB;AAAA,IACrB,8BAAAC,IAA+B;AAAA,EAAA,MAElC;AACD,IAAIF,KACAR,EAAaC,CAAG,GAEhBS,MACAC;AAAA,MACI;AAAA,MACA;AAAA;AAAA,MACA;AAAA,IACJ,GAEIL,MAAU,mBACV,MAAM,OAAO,gEAAgE,IACtEA,MAAU,uBACjB,MAAM,OAAO,oEAAoE,IAEjF,MAAM,OAAO,yDAAyD,GAGtEG,KACA,MAAM,OAAO,uDAAuD,IAIxEH,MAAU,mBACVD;AAAA,MAAS;AAAA;AAAA,IAAiB,IACnBC,MAAU,wBACjBD;AAAA,MAAS;AAAA;AAAA,IAAqB;AAAA,EAClC;AAER;"}
|
package/dist/info-icon.js
CHANGED
package/dist/input-field.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as n, b as a, e as o, c as i, d as s, a as l } from "./chunks/input-field.
|
|
1
|
+
import { B as n, b as a, e as o, c as i, d as s, a as l } from "./chunks/input-field.D8Pt05M3.js";
|
|
2
2
|
export {
|
|
3
3
|
n as BentoInputField,
|
|
4
4
|
a as BentoInputFieldElementPosition,
|
package/dist/inspector.js
CHANGED
package/dist/internal.js
CHANGED
|
@@ -1,32 +1,34 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { C as p, a as l } from "./chunks/copy.
|
|
3
|
-
import { C } from "./chunks/controls-group.
|
|
4
|
-
import { B as
|
|
5
|
-
import { E as d, F as I } from "./chunks/error-message.
|
|
6
|
-
import { F as
|
|
7
|
-
import { G as
|
|
8
|
-
import { b as g, c as y, u as A } from "./chunks/use-cached-selected-values.
|
|
9
|
-
import { L as F } from "./chunks/listbox-option-tag.
|
|
1
|
+
import { a as e, b as r, C as t } from "./chunks/calendar.BHy-Sfgc.js";
|
|
2
|
+
import { C as p, a as l } from "./chunks/copy.BvQ6igYf.js";
|
|
3
|
+
import { C as x } from "./chunks/controls-group.D4XrqgW3.js";
|
|
4
|
+
import { B as m, b as n, a as f, D as E } from "./chunks/dialog-page.4ArdFk2U.js";
|
|
5
|
+
import { E as d, F as I } from "./chunks/error-message.SLfGzDVf.js";
|
|
6
|
+
import { F as T } from "./chunks/fixed-scroller.BYosMLGj.js";
|
|
7
|
+
import { G as u, a as O } from "./chunks/grid-layout.CqLbbEzI.js";
|
|
8
|
+
import { b as g, c as y, u as A } from "./chunks/use-cached-selected-values.BVxiRn6R.js";
|
|
9
|
+
import { L as F } from "./chunks/listbox-option-tag.C8w0-82a.js";
|
|
10
10
|
import { B as N } from "./chunks/teleport.L8qFCYpr.js";
|
|
11
|
+
import { T as c } from "./chunks/tooltip.CSa9ntbr.js";
|
|
11
12
|
export {
|
|
12
|
-
|
|
13
|
+
m as BentoDialogPageAnimation,
|
|
13
14
|
g as BentoListbox,
|
|
14
15
|
N as BentoTeleport,
|
|
15
|
-
|
|
16
|
+
e as Calendar,
|
|
16
17
|
r as CalendarEvent,
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
t as CalendarFirstDayOfWeek,
|
|
19
|
+
x as ControlsGroup,
|
|
19
20
|
p as Copy,
|
|
20
21
|
l as CopyTooltipState,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
n as DIALOG_PAGE_CONFIG_INJECTION_KEY,
|
|
23
|
+
f as DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY,
|
|
24
|
+
E as DialogPage,
|
|
24
25
|
d as ErrorMessage,
|
|
25
26
|
I as FieldLabel,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
T as FixedScroller,
|
|
28
|
+
u as GridLayout,
|
|
29
|
+
O as GridLayoutContainerType,
|
|
29
30
|
F as ListboxOptionTag,
|
|
31
|
+
c as Tooltip,
|
|
30
32
|
y as useCachedSelectedValues,
|
|
31
33
|
A as useMultiLevelItems
|
|
32
34
|
};
|
package/dist/internal.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"internal.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
package/dist/link.js
CHANGED
package/dist/menu.js
CHANGED
package/dist/modal-fullscreen.js
CHANGED
package/dist/modal.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as e, f as t, g as n, B as l, e as d, c as B, a as M, b as s } from "./chunks/base-modal.
|
|
2
|
-
import { _ as i } from "./chunks/modal.vue_vue_type_script_setup_true_lang.
|
|
1
|
+
import { d as e, f as t, g as n, B as l, e as d, c as B, a as M, b as s } from "./chunks/base-modal.DS7zI1O2.js";
|
|
2
|
+
import { _ as i } from "./chunks/modal.vue_vue_type_script_setup_true_lang.BZ-e4djX.js";
|
|
3
3
|
export {
|
|
4
4
|
i as BentoModal,
|
|
5
5
|
e as BentoModalColumnLayoutVariant,
|
package/dist/pagination.js
CHANGED
package/dist/payment-method.js
CHANGED
package/dist/popover.js
CHANGED
package/dist/popper-container.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { P as
|
|
1
|
+
import { P as r } from "./chunks/popper-container.Cyf6zCPq.js";
|
|
2
|
+
import { b as a, c as i, P as p, a as t } from "./chunks/popper-container.types.BCZMbVFD.js";
|
|
2
3
|
export {
|
|
3
|
-
|
|
4
|
+
r as PopperContainer,
|
|
4
5
|
a as PopperContainerAriaRole,
|
|
5
6
|
i as PopperContainerPosition,
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
p as PopperContainerPositionBasic,
|
|
8
|
+
t as PopperContainerPositionExtended
|
|
8
9
|
};
|
|
9
10
|
//# sourceMappingURL=popper-container.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popper-container.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"popper-container.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/dist/radio-group.js
CHANGED
package/dist/search-bar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as r, b as t, a as B } from "./chunks/search-bar.
|
|
2
|
-
import { u as o } from "./chunks/dropdown.
|
|
1
|
+
import { B as r, b as t, a as B } from "./chunks/search-bar.BaqIavRd.js";
|
|
2
|
+
import { u as o } from "./chunks/dropdown.CPlvW43f.js";
|
|
3
3
|
export {
|
|
4
4
|
r as BentoSearchBar,
|
|
5
5
|
t as BentoSearchBarEvent,
|
package/dist/secondary-nav.js
CHANGED
package/dist/selection-card.js
CHANGED
package/dist/sidepanel.js
CHANGED
package/dist/status.js
CHANGED
package/dist/stepper.js
CHANGED
package/dist/structured-list.js
CHANGED