@adyen/bento-vue2 1.69.0 → 1.70.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/README.md +43 -97
- package/dist/@types/index.d.ts +245 -823
- 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/calendar.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox-group.css +1 -1
- package/dist/assets/checkbox-input.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/code-snippet.css +1 -1
- package/dist/assets/controls-group.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-picker.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown-tag.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/error-message.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/header-with-views.css +1 -1
- package/dist/assets/info-icon.css +1 -1
- package/dist/assets/input-field-phone-number.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/loading-indicator.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/pagination.css +1 -1
- package/dist/assets/popper-container.css +1 -1
- package/dist/assets/radio-group.css +1 -1
- package/dist/assets/radio-input.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/tab.css +1 -1
- package/dist/assets/tag.css +1 -1
- package/dist/assets/timeline-item.css +1 -1
- package/dist/assets/toggle-button.css +1 -1
- package/dist/assets/toggle.css +1 -1
- package/dist/assets/tooltip.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 +2 -2
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chip.js +1 -1
- package/dist/chunks/{accordion-item.NSQ50RyR.js → accordion-item.CoqaoVnC.js} +2 -2
- package/dist/chunks/{accordion-item.NSQ50RyR.js.map → accordion-item.CoqaoVnC.js.map} +1 -1
- package/dist/chunks/{action-bar.Dhi6k0CP.js → action-bar.LaW4Tzlo.js} +5 -5
- package/dist/chunks/{action-bar.Dhi6k0CP.js.map → action-bar.LaW4Tzlo.js.map} +1 -1
- package/dist/chunks/{alert.Dx9P_L2k.js → alert.CMyL-zWT.js} +17 -17
- package/dist/chunks/alert.CMyL-zWT.js.map +1 -0
- package/dist/chunks/{avatar.CWmZ2n1W.js → avatar.KdcsNOsm.js} +2 -2
- package/dist/chunks/{avatar.CWmZ2n1W.js.map → avatar.KdcsNOsm.js.map} +1 -1
- package/dist/chunks/{base-button.BPZ_qSAu.js → base-button.BB5tkzjh.js} +2 -2
- package/dist/chunks/{base-button.BPZ_qSAu.js.map → base-button.BB5tkzjh.js.map} +1 -1
- package/dist/chunks/{base-modal.Cehud1uW.js → base-modal.D8Rh5NUz.js} +6 -6
- package/dist/chunks/{base-modal.Cehud1uW.js.map → base-modal.D8Rh5NUz.js.map} +1 -1
- package/dist/chunks/bin.Ddb69cr1.js +24 -0
- package/dist/chunks/bin.Ddb69cr1.js.map +1 -0
- package/dist/chunks/{button-actions-with-menu.DIpUg6BF.js → button-actions-with-menu.BDpWI2Fh.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.DIpUg6BF.js.map → button-actions-with-menu.BDpWI2Fh.js.map} +1 -1
- package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
- package/dist/chunks/{button.B0hSQWOR.js → button.CilT7NmM.js} +4 -4
- package/dist/chunks/{button.B0hSQWOR.js.map → button.CilT7NmM.js.map} +1 -1
- package/dist/chunks/{calendar.BuAVH2aU.js → calendar.DYI4omOF.js} +22 -22
- package/dist/chunks/{calendar.BuAVH2aU.js.map → calendar.DYI4omOF.js.map} +1 -1
- package/dist/chunks/{card.DLRC9V0Q.js → card.C5Uub0Fb.js} +4 -4
- package/dist/chunks/{card.DLRC9V0Q.js.map → card.C5Uub0Fb.js.map} +1 -1
- package/dist/chunks/{checkbox-group.Cdt2Ik2_.js → checkbox-group.CLYgcDZl.js} +6 -6
- package/dist/chunks/{checkbox-group.Cdt2Ik2_.js.map → checkbox-group.CLYgcDZl.js.map} +1 -1
- package/dist/chunks/{checkbox-input.C9vmlMZe.js → checkbox-input.B0NsfSNR.js} +7 -7
- package/dist/chunks/{checkbox-input.C9vmlMZe.js.map → checkbox-input.B0NsfSNR.js.map} +1 -1
- package/dist/chunks/{checkbox.JhfbjDfJ.js → checkbox.lwLS8MMI.js} +6 -6
- package/dist/chunks/{checkbox.JhfbjDfJ.js.map → checkbox.lwLS8MMI.js.map} +1 -1
- package/dist/chunks/{chip.Cn68PNxA.js → chip.Bfi-ff5E.js} +3 -3
- package/dist/chunks/{chip.Cn68PNxA.js.map → chip.Bfi-ff5E.js.map} +1 -1
- package/dist/chunks/{code-snippet.hYghglvk.js → code-snippet.DsHNr3DK.js} +7 -7
- package/dist/chunks/{code-snippet.hYghglvk.js.map → code-snippet.DsHNr3DK.js.map} +1 -1
- package/dist/chunks/{controls-group.B1cxRdIA.js → controls-group.az4jCZQF.js} +30 -27
- package/dist/chunks/controls-group.az4jCZQF.js.map +1 -0
- package/dist/chunks/{copy.UbMV4m6b.js → copy.Cb7gQhU4.js} +5 -5
- package/dist/chunks/{copy.UbMV4m6b.js.map → copy.Cb7gQhU4.js.map} +1 -1
- package/dist/chunks/{country.CZQYhKpE.js → country.1yIZNjdj.js} +3 -3
- package/dist/chunks/{country.CZQYhKpE.js.map → country.1yIZNjdj.js.map} +1 -1
- package/dist/chunks/{currency.Oq7zcRM5.js → currency.MT3baDtO.js} +2 -2
- package/dist/chunks/{currency.Oq7zcRM5.js.map → currency.MT3baDtO.js.map} +1 -1
- package/dist/chunks/{dashboard-section.BRnRO3AZ.js → dashboard-section.C6zV9yL-.js} +3 -3
- package/dist/chunks/{dashboard-section.BRnRO3AZ.js.map → dashboard-section.C6zV9yL-.js.map} +1 -1
- package/dist/chunks/{dashed-underline.BN_whJrR.js → dashed-underline.Dry6H2zs.js} +4 -4
- package/dist/chunks/{dashed-underline.BN_whJrR.js.map → dashed-underline.Dry6H2zs.js.map} +1 -1
- package/dist/chunks/{data-grid-template.BlRKgkX6.js → data-grid-template.Dlevchxd.js} +4 -4
- package/dist/chunks/{data-grid-template.BlRKgkX6.js.map → data-grid-template.Dlevchxd.js.map} +1 -1
- package/dist/chunks/{data-grid.B0bOXr4p.js → data-grid.CrvFYgjF.js} +175 -175
- package/dist/chunks/data-grid.CrvFYgjF.js.map +1 -0
- package/dist/chunks/{date-picker.Dyf6HJwP.js → date-picker.DPasFJS2.js} +6 -6
- package/dist/chunks/{date-picker.Dyf6HJwP.js.map → date-picker.DPasFJS2.js.map} +1 -1
- package/dist/chunks/{date-range-picker.-FSh7RLm.js → date-range-picker.BIj17geh.js} +9 -9
- package/dist/chunks/{date-range-picker.-FSh7RLm.js.map → date-range-picker.BIj17geh.js.map} +1 -1
- package/dist/chunks/{date.w2Ya6_lp.js → date.BTdCYdkj.js} +2 -2
- package/dist/chunks/{date.w2Ya6_lp.js.map → date.BTdCYdkj.js.map} +1 -1
- package/dist/chunks/{dialog-page.CdJloGXQ.js → dialog-page.D20YBRQF.js} +3 -3
- package/dist/chunks/{dialog-page.CdJloGXQ.js.map → dialog-page.D20YBRQF.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.DzpZoK-P.js → dropdown-default-textbox.CDm-PQfc.js} +2 -2
- package/dist/chunks/{dropdown-default-textbox.DzpZoK-P.js.map → dropdown-default-textbox.CDm-PQfc.js.map} +1 -1
- package/dist/chunks/dropdown-tag.cmaM8C2X.js +306 -0
- package/dist/chunks/dropdown-tag.cmaM8C2X.js.map +1 -0
- package/dist/chunks/{dropdown.DB_MlO1F.js → dropdown.CEZXrC1C.js} +7 -7
- package/dist/chunks/{dropdown.DB_MlO1F.js.map → dropdown.CEZXrC1C.js.map} +1 -1
- package/dist/chunks/{empty-state.BqMgiQAu.js → empty-state.DAbj9xWF.js} +3 -3
- package/dist/chunks/{empty-state.BqMgiQAu.js.map → empty-state.DAbj9xWF.js.map} +1 -1
- package/dist/chunks/{error-message.PWgUfpvo.js → error-message.D_QAOG-5.js} +9 -9
- package/dist/chunks/{error-message.PWgUfpvo.js.map → error-message.D_QAOG-5.js.map} +1 -1
- package/dist/chunks/{file-uploader.llBOTc1s.js → file-uploader.D2k8GceS.js} +17 -17
- package/dist/chunks/file-uploader.D2k8GceS.js.map +1 -0
- package/dist/chunks/{filter-bar.8rNB7K2X.js → filter-bar.C9suxxv-.js} +224 -227
- package/dist/chunks/filter-bar.C9suxxv-.js.map +1 -0
- package/dist/chunks/{fixed-scroller.CRnBrXfk.js → fixed-scroller.DDYpO7Li.js} +2 -2
- package/dist/chunks/{fixed-scroller.CRnBrXfk.js.map → fixed-scroller.DDYpO7Li.js.map} +1 -1
- package/dist/chunks/{footer-actions.C9ZYDWNU.js → footer-actions.Bbu1_rUb.js} +4 -4
- package/dist/chunks/{footer-actions.C9ZYDWNU.js.map → footer-actions.Bbu1_rUb.js.map} +1 -1
- package/dist/chunks/{form-layout-title.CboZDCN9.js → form-layout-title.aXVuAWiG.js} +3 -3
- package/dist/chunks/{form-layout-title.CboZDCN9.js.map → form-layout-title.aXVuAWiG.js.map} +1 -1
- package/dist/chunks/{header-meta.C75OXHwb.js → header-meta.Dj742jL5.js} +5 -5
- package/dist/chunks/{header-meta.C75OXHwb.js.map → header-meta.Dj742jL5.js.map} +1 -1
- package/dist/chunks/{header-with-views.Dzifal09.js → header-with-views.Cis2Ixho.js} +182 -182
- package/dist/chunks/header-with-views.Cis2Ixho.js.map +1 -0
- package/dist/chunks/{header.DAcRpRch.js → header.Bo2fbjCm.js} +4 -4
- package/dist/chunks/{header.DAcRpRch.js.map → header.Bo2fbjCm.js.map} +1 -1
- package/dist/chunks/{info-icon.B4P_Zi58.js → info-icon.BWC7gGmM.js} +9 -9
- package/dist/chunks/{info-icon.B4P_Zi58.js.map → info-icon.BWC7gGmM.js.map} +1 -1
- package/dist/chunks/info.CcMZ4aGg.js +24 -0
- package/dist/chunks/info.CcMZ4aGg.js.map +1 -0
- package/dist/chunks/{input-field-password.DsslmTb_.js → input-field-password.D6wAD55v.js} +7 -7
- package/dist/chunks/{input-field-password.DsslmTb_.js.map → input-field-password.D6wAD55v.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.D2T8jzAr.js → input-field-phone-number.CLHuEXO7.js} +9 -9
- package/dist/chunks/{input-field-phone-number.D2T8jzAr.js.map → input-field-phone-number.CLHuEXO7.js.map} +1 -1
- package/dist/chunks/{input-field.DnnXXill.js → input-field.C3KYlPYa.js} +4 -4
- package/dist/chunks/{input-field.DnnXXill.js.map → input-field.C3KYlPYa.js.map} +1 -1
- package/dist/chunks/{inspector.H05UI3LY.js → inspector.CH4kvF9q.js} +4 -4
- package/dist/chunks/{inspector.H05UI3LY.js.map → inspector.CH4kvF9q.js.map} +1 -1
- package/dist/chunks/{layout-row.BWxn-eQ-.js → layout-row.BLGCVZkD.js} +2 -2
- package/dist/chunks/{layout-row.BWxn-eQ-.js.map → layout-row.BLGCVZkD.js.map} +1 -1
- package/dist/chunks/{link.B3F22FTY.js → link.C4htMrDV.js} +2 -2
- package/dist/chunks/{link.B3F22FTY.js.map → link.C4htMrDV.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.On3eD2RE.js → listbox-option-tag.3zcrQQvI.js} +3 -3
- package/dist/chunks/{listbox-option-tag.On3eD2RE.js.map → listbox-option-tag.3zcrQQvI.js.map} +1 -1
- package/dist/chunks/{loading-indicator.Iy1CVr_T.js → loading-indicator.DXc7I1Lm.js} +2 -2
- package/dist/chunks/{loading-indicator.Iy1CVr_T.js.map → loading-indicator.DXc7I1Lm.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.BgmKDCl4.js → modal-fullscreen.DNxrRLZ5.js} +61 -55
- package/dist/chunks/modal-fullscreen.DNxrRLZ5.js.map +1 -0
- package/dist/chunks/{modal.DMqbIDcX.js → modal.BjoHqKYF.js} +6 -6
- package/dist/chunks/{modal.DMqbIDcX.js.map → modal.BjoHqKYF.js.map} +1 -1
- package/dist/chunks/{pagination.38ahUAk8.js → pagination.BNjvTjtR.js} +4 -4
- package/dist/chunks/{pagination.38ahUAk8.js.map → pagination.BNjvTjtR.js.map} +1 -1
- package/dist/chunks/{payment-method.CRluCp_L.js → payment-method.DtvfUnit.js} +2 -2
- package/dist/chunks/{payment-method.CRluCp_L.js.map → payment-method.DtvfUnit.js.map} +1 -1
- package/dist/chunks/popover.types.CiUPrUuw.js +6 -0
- package/dist/chunks/{popover.types.B1HUQoCG.js.map → popover.types.CiUPrUuw.js.map} +1 -1
- package/dist/chunks/{popper-container.Bu75g2nc.js → popper-container.BRkYcBmL.js} +2 -2
- package/dist/chunks/{popper-container.Bu75g2nc.js.map → popper-container.BRkYcBmL.js.map} +1 -1
- package/dist/chunks/{promo-banner.BGMV3nRn.js → promo-banner.CmkrgQsm.js} +3 -3
- package/dist/chunks/{promo-banner.BGMV3nRn.js.map → promo-banner.CmkrgQsm.js.map} +1 -1
- package/dist/chunks/{radio-group.BVLoYrgU.js → radio-group.ANbubbQK.js} +13 -11
- package/dist/chunks/radio-group.ANbubbQK.js.map +1 -0
- package/dist/chunks/{radio-input.BRceOAA4.js → radio-input.D8mv2EYC.js} +7 -7
- package/dist/chunks/{radio-input.BRceOAA4.js.map → radio-input.D8mv2EYC.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.BZ6CyBsK.js → rich-text-editor.DfUK2cie.js} +7 -7
- package/dist/chunks/{rich-text-editor.BZ6CyBsK.js.map → rich-text-editor.DfUK2cie.js.map} +1 -1
- package/dist/chunks/{search-bar.VfZoy5FX.js → search-bar.B4ln_DGC.js} +3 -3
- package/dist/chunks/{search-bar.VfZoy5FX.js.map → search-bar.B4ln_DGC.js.map} +1 -1
- package/dist/chunks/{secondary-nav.BXXKo5HE.js → secondary-nav.DGRvSeRY.js} +3 -3
- package/dist/chunks/{secondary-nav.BXXKo5HE.js.map → secondary-nav.DGRvSeRY.js.map} +1 -1
- package/dist/chunks/{segmented-control.CGBrRBLL.js → segmented-control.5-G1EwGt.js} +3 -3
- package/dist/chunks/{segmented-control.CGBrRBLL.js.map → segmented-control.5-G1EwGt.js.map} +1 -1
- package/dist/chunks/{selection-card-group.DgQLQ4Wo.js → selection-card-group.xs_M1a46.js} +6 -6
- package/dist/chunks/{selection-card-group.DgQLQ4Wo.js.map → selection-card-group.xs_M1a46.js.map} +1 -1
- package/dist/chunks/{sidepanel.BR0coAJl.js → sidepanel.DJAmLLPS.js} +6 -6
- package/dist/chunks/{sidepanel.BR0coAJl.js.map → sidepanel.DJAmLLPS.js.map} +1 -1
- package/dist/chunks/{status.types.DBYsEsiT.js → status.types.BpMK-6IT.js} +2 -2
- package/dist/chunks/{status.types.DBYsEsiT.js.map → status.types.BpMK-6IT.js.map} +1 -1
- package/dist/chunks/{step.DJkLl2s4.js → step.DwXkOVky.js} +3 -3
- package/dist/chunks/{step.DJkLl2s4.js.map → step.DwXkOVky.js.map} +1 -1
- package/dist/chunks/{structured-list-item.CACpjdy4.js → structured-list-item.TPZLf2rC.js} +6 -6
- package/dist/chunks/{structured-list-item.CACpjdy4.js.map → structured-list-item.TPZLf2rC.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.CVuvqM3p.js → summary-grid.types.Mua4SprI.js} +6 -6
- package/dist/chunks/{summary-grid.types.CVuvqM3p.js.map → summary-grid.types.Mua4SprI.js.map} +1 -1
- package/dist/chunks/{tab.D33__imf.js → tab.ClkH0GtX.js} +3 -3
- package/dist/chunks/{tab.D33__imf.js.map → tab.ClkH0GtX.js.map} +1 -1
- package/dist/chunks/{tag.DfHE26ZN.js → tag.D1niMJDQ.js} +4 -4
- package/dist/chunks/{tag.DfHE26ZN.js.map → tag.D1niMJDQ.js.map} +1 -1
- package/dist/chunks/{textarea.D7uQzuRr.js → textarea.BNGBZJ3C.js} +4 -4
- package/dist/chunks/{textarea.D7uQzuRr.js.map → textarea.BNGBZJ3C.js.map} +1 -1
- package/dist/chunks/timeline-item.DYUON6R3.js +387 -0
- package/dist/chunks/timeline-item.DYUON6R3.js.map +1 -0
- package/dist/chunks/{toast.CZxRRsPl.js → toast.gMDjItrP.js} +4 -4
- package/dist/chunks/{toast.CZxRRsPl.js.map → toast.gMDjItrP.js.map} +1 -1
- package/dist/chunks/{toggle-button.DeECoGRn.js → toggle-button.COXDzXWu.js} +10 -10
- package/dist/chunks/toggle-button.COXDzXWu.js.map +1 -0
- package/dist/chunks/{toggle.hylSNOmz.js → toggle.Ct-5NUGu.js} +2 -2
- package/dist/chunks/{toggle.hylSNOmz.js.map → toggle.Ct-5NUGu.js.map} +1 -1
- package/dist/chunks/{tooltip.BYj8cc9F.js → tooltip.B2XJl4VK.js} +19 -19
- package/dist/chunks/tooltip.B2XJl4VK.js.map +1 -0
- package/dist/chunks/{tutorial.BkAXmyzV.js → tutorial.BiGj42TP.js} +5 -5
- package/dist/chunks/{tutorial.BkAXmyzV.js.map → tutorial.BiGj42TP.js.map} +1 -1
- package/dist/chunks/{typography.w3m-EY4E.js → typography.hlOAxsEn.js} +11 -11
- package/dist/chunks/{typography.w3m-EY4E.js.map → typography.hlOAxsEn.js.map} +1 -1
- package/dist/chunks/{use-bento-toast-controller.uglKlMjv.js → use-bento-toast-controller.BKHU1qBv.js} +2 -2
- package/dist/chunks/{use-bento-toast-controller.uglKlMjv.js.map → use-bento-toast-controller.BKHU1qBv.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.CI9xi8dE.js → use-cached-selected-values.ysbHRJ6L.js} +7 -7
- package/dist/chunks/use-cached-selected-values.ysbHRJ6L.js.map +1 -0
- package/dist/chunks/{use-country-items.BllTb5MK.js → use-country-items.DFdM2Ank.js} +2 -2
- package/dist/chunks/{use-country-items.BllTb5MK.js.map → use-country-items.DFdM2Ank.js.map} +1 -1
- package/dist/chunks/{use-country-phon-code.BOaJ9PDl.js → use-country-phon-code.Bui3zD6W.js} +5 -3
- package/dist/chunks/{use-country-phon-code.BOaJ9PDl.js.map → use-country-phon-code.Bui3zD6W.js.map} +1 -1
- package/dist/chunks/warning-filled.CbJ1pcB2.js +24 -0
- package/dist/chunks/warning-filled.CbJ1pcB2.js.map +1 -0
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +2 -2
- 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/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +141 -141
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +12 -12
- package/dist/layout.js +1 -1
- package/dist/link.js +1 -1
- package/dist/loading-indicator.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 +2 -2
- package/dist/popper-container.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +2 -2
- package/dist/rich-text-editor.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/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 +859 -345
- package/package.json +8 -12
- package/dist/chunks/alert.Dx9P_L2k.js.map +0 -1
- package/dist/chunks/bin.DLXkAVvw.js +0 -24
- package/dist/chunks/bin.DLXkAVvw.js.map +0 -1
- package/dist/chunks/controls-group.B1cxRdIA.js.map +0 -1
- package/dist/chunks/data-grid.B0bOXr4p.js.map +0 -1
- package/dist/chunks/dropdown-tag.CRbOHBPK.js +0 -273
- package/dist/chunks/dropdown-tag.CRbOHBPK.js.map +0 -1
- package/dist/chunks/file-uploader.llBOTc1s.js.map +0 -1
- package/dist/chunks/filter-bar.8rNB7K2X.js.map +0 -1
- package/dist/chunks/header-with-views.Dzifal09.js.map +0 -1
- package/dist/chunks/info.CszJ0kMi.js +0 -24
- package/dist/chunks/info.CszJ0kMi.js.map +0 -1
- package/dist/chunks/modal-fullscreen.BgmKDCl4.js.map +0 -1
- package/dist/chunks/popover.types.B1HUQoCG.js +0 -6
- package/dist/chunks/radio-group.BVLoYrgU.js.map +0 -1
- package/dist/chunks/timeline-item.QOBiWKEL.js +0 -385
- package/dist/chunks/timeline-item.QOBiWKEL.js.map +0 -1
- package/dist/chunks/toggle-button.DeECoGRn.js.map +0 -1
- package/dist/chunks/tooltip.BYj8cc9F.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.CI9xi8dE.js.map +0 -1
- package/dist/chunks/warning-filled.tWOyLUQT.js +0 -24
- package/dist/chunks/warning-filled.tWOyLUQT.js.map +0 -1
- package/dist/styles/legacy.css +0 -2239
package/dist/form-layout.js
CHANGED
package/dist/header.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,122 +1,122 @@
|
|
|
1
1
|
import "./chunks/index.Cl4_42j5.js";
|
|
2
|
-
import { c as T, t as y } from "./chunks/use-bento-toast-controller.
|
|
3
|
-
import { u as
|
|
4
|
-
import { p as g, d } from "./chunks/typography.
|
|
5
|
-
import { B as _, c as
|
|
6
|
-
import { a as
|
|
7
|
-
import { B as W } from "./chunks/action-bar.
|
|
8
|
-
import { B as J, c as Q, b as X, a as $ } from "./chunks/alert.
|
|
9
|
-
import { B as te } from "./chunks/avatar.
|
|
10
|
-
import { B as ae, b as ne, a as re } from "./chunks/button.
|
|
11
|
-
import { B as Be } from "./chunks/dashed-underline.
|
|
12
|
-
import { B as me, d as pe, a as ue, b as de, g as le, f as ce, e as fe, c as xe } from "./chunks/data-grid.
|
|
13
|
-
import { c as Te, B as ye, a as ge } from "./chunks/card.
|
|
14
|
-
import { B as be, a as Ee } from "./chunks/date-picker.
|
|
15
|
-
import { B as De, a as Ie } from "./chunks/date-range-picker
|
|
16
|
-
import { B as Le, u as Pe } from "./chunks/dropdown.
|
|
17
|
-
import { B as
|
|
18
|
-
import { B as
|
|
19
|
-
import { B as Ve } from "./chunks/chip.
|
|
20
|
-
import { B as
|
|
21
|
-
import { c as _e, b as
|
|
22
|
-
import { c as
|
|
2
|
+
import { c as T, t as y } from "./chunks/use-bento-toast-controller.BKHU1qBv.js";
|
|
3
|
+
import { u as A } from "./chunks/use-bento-toast-controller.BKHU1qBv.js";
|
|
4
|
+
import { p as g, d } from "./chunks/typography.hlOAxsEn.js";
|
|
5
|
+
import { B as _, c as j, b as U, a as z } from "./chunks/typography.hlOAxsEn.js";
|
|
6
|
+
import { a as Y, b as H } from "./chunks/accordion-item.CoqaoVnC.js";
|
|
7
|
+
import { B as W } from "./chunks/action-bar.LaW4Tzlo.js";
|
|
8
|
+
import { B as J, c as Q, b as X, a as $ } from "./chunks/alert.CMyL-zWT.js";
|
|
9
|
+
import { B as te } from "./chunks/avatar.KdcsNOsm.js";
|
|
10
|
+
import { B as ae, b as ne, a as re } from "./chunks/button.CilT7NmM.js";
|
|
11
|
+
import { B as Be } from "./chunks/dashed-underline.Dry6H2zs.js";
|
|
12
|
+
import { B as me, d as pe, a as ue, b as de, g as le, f as ce, e as fe, c as xe } from "./chunks/data-grid.CrvFYgjF.js";
|
|
13
|
+
import { c as Te, B as ye, a as ge } from "./chunks/card.C5Uub0Fb.js";
|
|
14
|
+
import { B as be, a as Ee } from "./chunks/date-picker.DPasFJS2.js";
|
|
15
|
+
import { B as De, a as Ie } from "./chunks/date-range-picker.BIj17geh.js";
|
|
16
|
+
import { B as Le, u as Pe } from "./chunks/dropdown.CEZXrC1C.js";
|
|
17
|
+
import { B as Oe } from "./chunks/dropdown-default-textbox.CDm-PQfc.js";
|
|
18
|
+
import { B as Ge, a as we } from "./chunks/checkbox.lwLS8MMI.js";
|
|
19
|
+
import { B as Ve } from "./chunks/chip.Bfi-ff5E.js";
|
|
20
|
+
import { B as Ae } from "./chunks/click-outside.C1Ud8AA2.js";
|
|
21
|
+
import { c as _e, b as je, a as Ue, B as ze } from "./chunks/code-snippet.DsHNr3DK.js";
|
|
22
|
+
import { c as Ye } from "./chunks/country.1yIZNjdj.js";
|
|
23
23
|
import { a as qe, B as We, u as Ze } from "./chunks/country.types.C0Q_hhgJ.js";
|
|
24
|
-
import { c as Qe, B as Xe } from "./chunks/currency.
|
|
25
|
-
import { B as et, a as tt } from "./chunks/date.
|
|
24
|
+
import { c as Qe, B as Xe } from "./chunks/currency.MT3baDtO.js";
|
|
25
|
+
import { B as et, a as tt } from "./chunks/date.BTdCYdkj.js";
|
|
26
26
|
import { B as at } from "./chunks/divider.CFbtmKeQ.js";
|
|
27
|
-
import { B as rt, b as st, c as Bt, a as it } from "./chunks/empty-state.
|
|
28
|
-
import { f as pt } from "./chunks/file-uploader.
|
|
29
|
-
import { B as dt, b as lt, a as ct, c as ft } from "./chunks/filter-bar.
|
|
30
|
-
import { f as St, a as Tt, c as yt, b as gt } from "./chunks/form-layout-title.
|
|
31
|
-
import { h as bt } from "./chunks/header-with-views.
|
|
27
|
+
import { B as rt, b as st, c as Bt, a as it } from "./chunks/empty-state.DAbj9xWF.js";
|
|
28
|
+
import { f as pt } from "./chunks/file-uploader.D2k8GceS.js";
|
|
29
|
+
import { B as dt, b as lt, a as ct, c as ft } from "./chunks/filter-bar.C9suxxv-.js";
|
|
30
|
+
import { f as St, a as Tt, c as yt, b as gt } from "./chunks/form-layout-title.aXVuAWiG.js";
|
|
31
|
+
import { h as bt } from "./chunks/header-with-views.Cis2Ixho.js";
|
|
32
32
|
import { B as Ct, a as Dt, b as It } from "./chunks/image.C2D2hKat.js";
|
|
33
|
-
import { B as Lt } from "./chunks/info-icon.
|
|
34
|
-
import { B as Ft, b as
|
|
35
|
-
import { i as
|
|
36
|
-
import { i as
|
|
37
|
-
import { B as qt } from "./chunks/inspector.
|
|
33
|
+
import { B as Lt } from "./chunks/info-icon.BWC7gGmM.js";
|
|
34
|
+
import { B as Ft, b as Ot, e as kt, c as Gt, d as wt, a as Mt } from "./chunks/input-field.C3KYlPYa.js";
|
|
35
|
+
import { i as Nt, m as At, r as Rt, b as _t, c as jt, a as Ut } from "./chunks/input-field-password.D6wAD55v.js";
|
|
36
|
+
import { i as Kt, B as Yt } from "./chunks/input-field-phone-number.CLHuEXO7.js";
|
|
37
|
+
import { B as qt } from "./chunks/inspector.CH4kvF9q.js";
|
|
38
38
|
import { B as Zt } from "./chunks/inspector.types.DyHwE18g.js";
|
|
39
|
-
import { l as Qt, a as Xt } from "./chunks/layout-row.
|
|
40
|
-
import { B as eo, a as to } from "./chunks/loading-indicator.
|
|
41
|
-
import { B as ao, a as no } from "./chunks/link.
|
|
42
|
-
import { B as so, a as Bo, b as io, f as mo, g as po, h as uo, c as lo, u as co } from "./chunks/toggle-button.
|
|
43
|
-
import { B as xo } from "./chunks/modal.
|
|
44
|
-
import { c as To, e as yo, f as go, g as ho, d as bo, b as Eo, B as Co, a as Do } from "./chunks/base-modal.
|
|
45
|
-
import { m as vo, B as Lo } from "./chunks/modal-fullscreen.
|
|
46
|
-
import { B as Fo } from "./chunks/header.
|
|
47
|
-
import { B as
|
|
48
|
-
import { B as wo } from "./chunks/payment-method.
|
|
39
|
+
import { l as Qt, a as Xt } from "./chunks/layout-row.BLGCVZkD.js";
|
|
40
|
+
import { B as eo, a as to } from "./chunks/loading-indicator.DXc7I1Lm.js";
|
|
41
|
+
import { B as ao, a as no } from "./chunks/link.C4htMrDV.js";
|
|
42
|
+
import { B as so, a as Bo, b as io, f as mo, g as po, h as uo, c as lo, u as co } from "./chunks/toggle-button.COXDzXWu.js";
|
|
43
|
+
import { B as xo } from "./chunks/modal.BjoHqKYF.js";
|
|
44
|
+
import { c as To, e as yo, f as go, g as ho, d as bo, b as Eo, B as Co, a as Do } from "./chunks/base-modal.D8Rh5NUz.js";
|
|
45
|
+
import { m as vo, B as Lo } from "./chunks/modal-fullscreen.DNxrRLZ5.js";
|
|
46
|
+
import { B as Fo } from "./chunks/header.Bo2fbjCm.js";
|
|
47
|
+
import { B as ko } from "./chunks/pagination.BNjvTjtR.js";
|
|
48
|
+
import { B as wo } from "./chunks/payment-method.DtvfUnit.js";
|
|
49
49
|
import { B as Vo } from "./chunks/payment-method.types.BqtH7RM2.js";
|
|
50
|
-
import { B as
|
|
51
|
-
import { p as _o, B as
|
|
52
|
-
import { b as
|
|
53
|
-
import { r as Wo } from "./chunks/rich-text-editor.
|
|
54
|
-
import { B as Jo, b as Qo, a as Xo } from "./chunks/search-bar.
|
|
55
|
-
import { s as ea } from "./chunks/secondary-nav.
|
|
56
|
-
import { B as oa, s as aa, a as na } from "./chunks/selection-card-group.
|
|
57
|
-
import { B as sa } from "./chunks/segmented-control.
|
|
50
|
+
import { B as Ao } from "./chunks/popover.types.CiUPrUuw.js";
|
|
51
|
+
import { p as _o, B as jo, a as Uo } from "./chunks/promo-banner.CmkrgQsm.js";
|
|
52
|
+
import { b as Ko, B as Yo, a as Ho } from "./chunks/radio-group.ANbubbQK.js";
|
|
53
|
+
import { r as Wo } from "./chunks/rich-text-editor.DfUK2cie.js";
|
|
54
|
+
import { B as Jo, b as Qo, a as Xo } from "./chunks/search-bar.B4ln_DGC.js";
|
|
55
|
+
import { s as ea } from "./chunks/secondary-nav.DGRvSeRY.js";
|
|
56
|
+
import { B as oa, s as aa, a as na } from "./chunks/selection-card-group.xs_M1a46.js";
|
|
57
|
+
import { B as sa } from "./chunks/segmented-control.5-G1EwGt.js";
|
|
58
58
|
import { B as ia } from "./chunks/segmented-control.types.BHRLV8KU.js";
|
|
59
|
-
import { a as pa, B as ua, s as da } from "./chunks/sidepanel.
|
|
60
|
-
import { s as ca, B as fa } from "./chunks/status.types.
|
|
61
|
-
import { a as Sa, s as Ta, B as ya, b as ga } from "./chunks/step.
|
|
62
|
-
import { B as ba, a as Ea } from "./chunks/structured-list-item.
|
|
63
|
-
import { s as Da, a as Ia, e as va, b as La, c as Pa, B as Fa, d as
|
|
64
|
-
import { a as wa, B as Ma } from "./chunks/tab.
|
|
65
|
-
import { B as
|
|
66
|
-
import { B as _a } from "./chunks/textarea.
|
|
67
|
-
import { t as
|
|
68
|
-
import { t as Za } from "./chunks/toast.
|
|
69
|
-
import { B as Qa, b as Xa, a as $a } from "./chunks/toggle.
|
|
70
|
-
import { t as tn } from "./chunks/tutorial.
|
|
71
|
-
import { a as an, d as nn } from "./chunks/dashboard-section.
|
|
72
|
-
import { d as sn } from "./chunks/data-grid-template.
|
|
59
|
+
import { a as pa, B as ua, s as da } from "./chunks/sidepanel.DJAmLLPS.js";
|
|
60
|
+
import { s as ca, B as fa } from "./chunks/status.types.BpMK-6IT.js";
|
|
61
|
+
import { a as Sa, s as Ta, B as ya, b as ga } from "./chunks/step.DwXkOVky.js";
|
|
62
|
+
import { B as ba, a as Ea } from "./chunks/structured-list-item.TPZLf2rC.js";
|
|
63
|
+
import { s as Da, a as Ia, e as va, b as La, c as Pa, B as Fa, d as Oa, f as ka } from "./chunks/summary-grid.types.Mua4SprI.js";
|
|
64
|
+
import { a as wa, B as Ma } from "./chunks/tab.ClkH0GtX.js";
|
|
65
|
+
import { B as Na, a as Aa } from "./chunks/tag.D1niMJDQ.js";
|
|
66
|
+
import { B as _a } from "./chunks/textarea.BNGBZJ3C.js";
|
|
67
|
+
import { t as Ua, b as za, a as Ka, c as Ya, B as Ha, d as qa } from "./chunks/timeline-item.DYUON6R3.js";
|
|
68
|
+
import { t as Za } from "./chunks/toast.gMDjItrP.js";
|
|
69
|
+
import { B as Qa, b as Xa, a as $a } from "./chunks/toggle.Ct-5NUGu.js";
|
|
70
|
+
import { t as tn } from "./chunks/tutorial.BiGj42TP.js";
|
|
71
|
+
import { a as an, d as nn } from "./chunks/dashboard-section.C6zV9yL-.js";
|
|
72
|
+
import { d as sn } from "./chunks/data-grid-template.Dlevchxd.js";
|
|
73
73
|
import { B as mn, a as pn, b as un } from "./chunks/button-actions.types.BptAXjD8.js";
|
|
74
|
-
import { C as ln, C as cn } from "./chunks/calendar.
|
|
75
|
-
import { a as xn, B as Sn, a as Tn, B as yn } from "./chunks/use-cached-selected-values.
|
|
76
|
-
import { d as hn, a as bn, b as En, c as Cn, e as Dn } from "./chunks/dropdown-tag.
|
|
74
|
+
import { C as ln, C as cn } from "./chunks/calendar.DYI4omOF.js";
|
|
75
|
+
import { a as xn, B as Sn, a as Tn, B as yn } from "./chunks/use-cached-selected-values.ysbHRJ6L.js";
|
|
76
|
+
import { d as hn, a as bn, b as En, c as Cn, e as Dn } from "./chunks/dropdown-tag.cmaM8C2X.js";
|
|
77
77
|
import { C as vn } from "./chunks/minus-small.DJacLGTw.js";
|
|
78
|
-
import { c as Pn, B as Fn } from "./chunks/checkbox-group.
|
|
79
|
-
import { u as
|
|
80
|
-
import { R as Mn } from "./chunks/radio-input.
|
|
78
|
+
import { c as Pn, B as Fn } from "./chunks/checkbox-group.CLYgcDZl.js";
|
|
79
|
+
import { u as kn, a as Gn } from "./chunks/use-country-phon-code.Bui3zD6W.js";
|
|
80
|
+
import { R as Mn } from "./chunks/radio-input.D8mv2EYC.js";
|
|
81
81
|
import { shallowRef as h, ref as l, getCurrentInstance as b } from "vue";
|
|
82
|
-
import * as
|
|
83
|
-
import { D as
|
|
82
|
+
import * as r from "zod";
|
|
83
|
+
import { D as Nn } from "./chunks/date-input.BqBdAO1E.js";
|
|
84
84
|
import { a as Rn, B as _n } from "./chunks/keyboard-navigation.pB8weElW.js";
|
|
85
|
-
import { B as
|
|
86
|
-
import { b as
|
|
87
|
-
function
|
|
85
|
+
import { B as Un } from "./chunks/directive.Cbdox5VL.js";
|
|
86
|
+
import { b as Kn, c as Yn, d as Hn } from "./chunks/tooltip.B2XJl4VK.js";
|
|
87
|
+
function k(e) {
|
|
88
88
|
return e;
|
|
89
89
|
}
|
|
90
90
|
function p(e) {
|
|
91
|
-
if (
|
|
91
|
+
if (r && e instanceof r.ZodObject)
|
|
92
92
|
return Object.fromEntries(
|
|
93
|
-
Object.entries(e.shape).map(([t,
|
|
93
|
+
Object.entries(e.shape).map(([t, o]) => r && o instanceof r.ZodDefault ? [t, o._def.defaultValue()] : r && o instanceof r.ZodObject ? [t, p(o)] : [t, void 0])
|
|
94
94
|
);
|
|
95
95
|
}
|
|
96
96
|
function E(e) {
|
|
97
97
|
return e.path.join(".");
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function G({
|
|
100
100
|
validationSchema: e
|
|
101
101
|
}) {
|
|
102
|
-
const t = h({}),
|
|
103
|
-
t.value = {},
|
|
102
|
+
const t = h({}), o = l({}), a = l(p(e)), i = () => {
|
|
103
|
+
t.value = {}, o.value = {};
|
|
104
104
|
}, x = () => {
|
|
105
|
-
i(),
|
|
105
|
+
i(), a.value = p(e);
|
|
106
106
|
};
|
|
107
107
|
return {
|
|
108
108
|
// Values
|
|
109
|
-
errorBag:
|
|
109
|
+
errorBag: o,
|
|
110
110
|
errors: t,
|
|
111
|
-
values:
|
|
111
|
+
values: a,
|
|
112
112
|
// Methods
|
|
113
113
|
handleReset: () => x(),
|
|
114
114
|
submitForm: (S) => () => {
|
|
115
115
|
i();
|
|
116
|
-
const u = e.safeParse(
|
|
117
|
-
u.success ? S(
|
|
116
|
+
const u = e.safeParse(a.value);
|
|
117
|
+
u.success ? S(a.value) : u.error.issues.forEach((m) => {
|
|
118
118
|
const B = E(m);
|
|
119
|
-
t.value[B] || (t.value[B] = m.message),
|
|
119
|
+
t.value[B] || (t.value[B] = m.message), o.value[B] ? o.value[B].push(m.message) : o.value[B] = [m.message];
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
122
|
};
|
|
@@ -138,34 +138,34 @@ const C = (e) => {
|
|
|
138
138
|
var e;
|
|
139
139
|
return ((e = document.body.className.match(/b-\w+-theme/)) == null ? void 0 : e[0]) ?? "";
|
|
140
140
|
}, D = () => window.matchMedia("(prefers-color-scheme: dark)").matches ? "b-dark-theme" : "b-light-theme";
|
|
141
|
-
var
|
|
142
|
-
const
|
|
143
|
-
const t = f(),
|
|
144
|
-
|
|
141
|
+
var n = /* @__PURE__ */ ((e) => (e.LEGACY = "b-legacy-theme", e.STYLEGUIDE = "b-styleguide-theme", e.BENTO = "", e.BENTO_LIGHT = "b-light-theme", e.BENTO_DARK = "b-dark-theme", e.BENTO_SYSTEM = "b-system", e))(n || {});
|
|
142
|
+
const s = (e) => {
|
|
143
|
+
const t = f(), o = D(), a = e === "b-system" ? o : e;
|
|
144
|
+
a === "b-light-theme" || a === "" ? document.documentElement.style.colorScheme = "light" : a === "b-dark-theme" && (document.documentElement.style.colorScheme = "dark"), t.length && t !== a && document.body.classList.remove(t), a.length && document.body.classList.add(a);
|
|
145
145
|
}, I = (e) => {
|
|
146
146
|
const t = {
|
|
147
147
|
getTheme: f,
|
|
148
|
-
setTheme:
|
|
148
|
+
setTheme: s
|
|
149
149
|
};
|
|
150
150
|
e.prototype[c] = t;
|
|
151
151
|
}, M = {
|
|
152
152
|
name: "BentoVue",
|
|
153
153
|
install: async (e, {
|
|
154
|
-
theme: t =
|
|
155
|
-
withToast:
|
|
156
|
-
withUtilityClasses:
|
|
154
|
+
theme: t = n.BENTO_LIGHT,
|
|
155
|
+
withToast: o = !1,
|
|
156
|
+
withUtilityClasses: a = !1,
|
|
157
157
|
withDesignTokensCSSInjection: i = !0
|
|
158
158
|
}) => {
|
|
159
|
-
I(e),
|
|
159
|
+
I(e), o && C(e), i && (d(
|
|
160
160
|
"Using default setting withDesignTokensCSSInjection set to true in BentoVue plugin",
|
|
161
161
|
`Please disable CSS injection by setting withDesignTokensCSSInjection to false in BentoVue plugin options as highlighted here:
|
|
162
162
|
https://adyen-bento.netlify.app/?path=/docs/welcome-getting-started--docs#import-css-variables`,
|
|
163
163
|
"2.0.0"
|
|
164
|
-
), t ===
|
|
164
|
+
), t === n.STYLEGUIDE ? await import("@adyen/bento-design-tokens/dist/css/bento/variables-styleguide.css") : await import("@adyen/bento-design-tokens/dist/css/bento/variables.css"), a && await import("@adyen/bento-design-tokens/dist/css/bento/utility.css")), t === n.STYLEGUIDE ? s(n.STYLEGUIDE) : t === n.BENTO_SYSTEM ? s(n.BENTO_SYSTEM) : t === n.BENTO_DARK ? s(n.BENTO_DARK) : (t === n.BENTO && d("Using `BentoTheme.BENTO`", "Please use `BentoTheme.BENTO_LIGHT` instead", "2.0.0"), s(n.BENTO_LIGHT));
|
|
165
165
|
}
|
|
166
166
|
};
|
|
167
167
|
export {
|
|
168
|
-
|
|
168
|
+
Y as BentoAccordion,
|
|
169
169
|
H as BentoAccordionItem,
|
|
170
170
|
W as BentoActionBar,
|
|
171
171
|
J as BentoAlert,
|
|
@@ -183,20 +183,20 @@ export {
|
|
|
183
183
|
Te as BentoCard,
|
|
184
184
|
ye as BentoCardBackground,
|
|
185
185
|
ge as BentoCardTitleSize,
|
|
186
|
-
|
|
186
|
+
Ge as BentoCheckbox,
|
|
187
187
|
we as BentoCheckboxEvent,
|
|
188
188
|
Pn as BentoCheckboxGroup,
|
|
189
189
|
Fn as BentoCheckboxGroupVariant,
|
|
190
190
|
vn as BentoCheckboxState,
|
|
191
191
|
Ve as BentoChip,
|
|
192
|
-
|
|
193
|
-
|
|
192
|
+
Ae as BentoClickOutside,
|
|
193
|
+
Un as BentoClickOutsideDirective,
|
|
194
194
|
_e as BentoCodeSnippet,
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
195
|
+
je as BentoCodeSnippetEvent,
|
|
196
|
+
Ue as BentoCodeSnippetSupportedLanguage,
|
|
197
|
+
ze as BentoCodeSnippetVariant,
|
|
198
198
|
me as BentoColumnOverflow,
|
|
199
|
-
|
|
199
|
+
Ye as BentoCountry,
|
|
200
200
|
qe as BentoCountryCode,
|
|
201
201
|
We as BentoCountryVariant,
|
|
202
202
|
Qe as BentoCurrency,
|
|
@@ -228,7 +228,7 @@ export {
|
|
|
228
228
|
xn as BentoDropdownEvent,
|
|
229
229
|
Sn as BentoDropdownLazyLoadType,
|
|
230
230
|
Cn as BentoDropdownPaymentMethod,
|
|
231
|
-
|
|
231
|
+
Oe as BentoDropdownSize,
|
|
232
232
|
Dn as BentoDropdownTag,
|
|
233
233
|
rt as BentoEmptyState,
|
|
234
234
|
st as BentoEmptyStateImage,
|
|
@@ -250,12 +250,12 @@ export {
|
|
|
250
250
|
It as BentoImageObjectFit,
|
|
251
251
|
Lt as BentoInfoIcon,
|
|
252
252
|
Ft as BentoInputField,
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
253
|
+
Ot as BentoInputFieldElementPosition,
|
|
254
|
+
kt as BentoInputFieldEvent,
|
|
255
|
+
Nt as BentoInputFieldPassword,
|
|
256
|
+
Kt as BentoInputFieldPhoneNumber,
|
|
257
|
+
Yt as BentoInputFieldPhoneNumberCountries,
|
|
258
|
+
Gt as BentoInputFieldStateClass,
|
|
259
259
|
wt as BentoInputFieldType,
|
|
260
260
|
Mt as BentoInputFieldVariant,
|
|
261
261
|
qt as BentoInspector,
|
|
@@ -285,17 +285,17 @@ export {
|
|
|
285
285
|
Eo as BentoModalSize,
|
|
286
286
|
Co as BentoModalVariant,
|
|
287
287
|
Do as BentoModalVariantMapping,
|
|
288
|
-
|
|
288
|
+
ko as BentoPagination,
|
|
289
289
|
wo as BentoPaymentMethod,
|
|
290
290
|
Vo as BentoPaymentMethodType,
|
|
291
291
|
uo as BentoPopover,
|
|
292
|
-
|
|
292
|
+
Ao as BentoPopoverPositions,
|
|
293
293
|
_o as BentoPromoBanner,
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
294
|
+
jo as BentoPromoBannerColor,
|
|
295
|
+
Uo as BentoPromoBannerLayout,
|
|
296
|
+
Ko as BentoRadioButton,
|
|
297
297
|
Mn as BentoRadioButtonStateClass,
|
|
298
|
-
|
|
298
|
+
Yo as BentoRadioGroup,
|
|
299
299
|
Ho as BentoRadioGroupVariant,
|
|
300
300
|
Wo as BentoRichTextEditor,
|
|
301
301
|
Jo as BentoSearchBar,
|
|
@@ -324,18 +324,18 @@ export {
|
|
|
324
324
|
La as BentoSummaryGridItemNumeric,
|
|
325
325
|
Pa as BentoSummaryGridItemPercentage,
|
|
326
326
|
Fa as BentoSummaryGridItemSize,
|
|
327
|
-
|
|
328
|
-
|
|
327
|
+
Oa as BentoSummaryGridItemText,
|
|
328
|
+
ka as BentoSummaryGridItemTrendDirection,
|
|
329
329
|
wa as BentoTab,
|
|
330
330
|
Ma as BentoTabs,
|
|
331
|
-
|
|
332
|
-
|
|
331
|
+
Na as BentoTag,
|
|
332
|
+
Aa as BentoTagVariant,
|
|
333
333
|
_a as BentoTextarea,
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
334
|
+
n as BentoTheme,
|
|
335
|
+
Ua as BentoTimeline,
|
|
336
|
+
za as BentoTimelineGapUnit,
|
|
337
|
+
Ka as BentoTimelineItem,
|
|
338
|
+
Ya as BentoTimelineItemVariant,
|
|
339
339
|
Ha as BentoTimelineShowMorePlacement,
|
|
340
340
|
qa as BentoTimelineStatus,
|
|
341
341
|
Za as BentoToast,
|
|
@@ -343,30 +343,30 @@ export {
|
|
|
343
343
|
lo as BentoToggleButton,
|
|
344
344
|
Xa as BentoToggleLabelPosition,
|
|
345
345
|
$a as BentoTogglePropClass,
|
|
346
|
-
|
|
347
|
-
|
|
346
|
+
Kn as BentoTooltipDirective,
|
|
347
|
+
Yn as BentoTooltipPosition,
|
|
348
348
|
Hn as BentoTooltipState,
|
|
349
349
|
tn as BentoTutorial,
|
|
350
350
|
_ as BentoTypography,
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
351
|
+
j as BentoTypographyElement,
|
|
352
|
+
U as BentoTypographyModifier,
|
|
353
|
+
z as BentoTypographyVariant,
|
|
354
|
+
Nn as DateFormat,
|
|
355
355
|
M as default,
|
|
356
|
-
|
|
356
|
+
At as minLength,
|
|
357
357
|
Rt as requireLowercase,
|
|
358
358
|
_t as requireNumeric,
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
359
|
+
jt as requireSpecialCharacter,
|
|
360
|
+
Ut as requireUppercase,
|
|
361
|
+
k as toTypedSchema,
|
|
362
362
|
w as useBentoTheme,
|
|
363
363
|
c as useBentoThemeKey,
|
|
364
|
-
|
|
364
|
+
A as useBentoToastController,
|
|
365
365
|
co as useClickOutside,
|
|
366
366
|
Ze as useCountryCapital,
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
367
|
+
kn as useCountryName,
|
|
368
|
+
Gn as useCountryPhoneCode,
|
|
369
|
+
G as useForm,
|
|
370
370
|
Pe as useSearchBarFilter
|
|
371
371
|
};
|
|
372
372
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/composables/use-form-validate/use-form.ts","../src/composables/use-bento-theme/use-bento-theme.types.ts","../src/composables/use-bento-theme/use-bento-theme.ts","../src/composables/use-bento-toast-controller/install.ts","../src/composables/use-bento-theme/install.ts","../src/install.ts"],"sourcesContent":["import { type Ref, ref, shallowRef } from 'vue';\nimport * as z from 'zod';\nimport type { ZodSchema } from 'zod';\nimport { type allKeys, type ErrorBag, type 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 * @deprecated For usage with Zod/v3. Migrate to Zod/v4 and use `@adyen/bento-vue2/use-form-v4' instead or migrate to Vue3 and use Vee-Validate instead.\n *\n * @param formSchema Zod schema to be transformed into a `vee-validate` schema\n * @returns 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 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 * @deprecated For usage with Zod/v3. Migrate to Zod/v4 and use `@adyen/bento-vue2/use-form-v4' instead or migrate to Vue3 and use Vee-Validate instead.\n *\n * @param props Form configuration object\n * @param extends ZodSchema} props.validationSchema Zod typed validation schema\n * @returns response - Composable with reactive form values and errors, and functions to handle the reactive data\n * @returns response.errorBag Object with all the form values and an array of each one of the errors (if any) per value\n * @returns response.errors Object with all the form values and the first error found for that field (if any)\n * @returns response.values Object with all the form values and their current value\n * @returns response.handleReset Resets the form values to default (initial values) when it gets called\n * @returns 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<{\n [P in allKeys<(typeof validationSchema)['_type']>]?: string[];\n }>;\n errors: Ref<{\n [P in allKeys<(typeof validationSchema)['_type']>]?: string;\n }>;\n values: Ref<(typeof validationSchema)['_type']>;\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 BentoTheme } from './install';\n\nexport const useBentoThemeKey = Symbol('use-bento-theme');\n\nexport interface UseBentoTheme {\n getTheme: () => string;\n setTheme: (theme: BentoTheme | `${BentoTheme}`) => void;\n}\n","import { printDevelopmentWarning } from '@/utils/ts/print-development-warning';\nimport { getCurrentInstance, inject } from 'vue';\nimport { isVue2 } from 'vue-demi';\nimport { type UseBentoTheme, useBentoThemeKey } from './use-bento-theme.types';\n\n/**\n * Composable that handles theming-related capabilities for the Bento component library.\n * Requires the use of `BentoPlugin`.\n *\n * @example\n * <script setup lang=\"ts\">\n * import { useBentoTheme, BentoTheme } from '@adyen/bento-vue2';\n *\n * const { setTheme } = useBentoTheme();\n *\n * setTheme(BentoTheme.BENTO_DARK)\n * </script>\n *\n * @returns {UseBentoTheme} An object with getter and setter method for the Bento theme.\n * @returns {Function} getTheme - Returns the current theme in the string form of BentoTheme enum.\n * @returns {Function} setTheme - Sets the theme of the Bento component library.\n *\n */\nexport function useBentoTheme(): UseBentoTheme {\n const bentoThemeController = isVue2\n ? getCurrentInstance()?.proxy[useBentoThemeKey]\n : inject(useBentoThemeKey, null);\n\n if (!bentoThemeController) {\n printDevelopmentWarning('useBentoTheme does not work without Vue.use(BentoPlugin)');\n\n // Return placeholder functions so client code won't break, but theme won't toggle\n return {\n getTheme: () => undefined,\n setTheme: () => undefined,\n };\n }\n\n // Return a new object so unintentional reassigning its properties won't override a global state\n return { ...bentoThemeController };\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 App, isVue2, type Vue2 } from 'vue-demi';\nimport { useBentoThemeKey } from './use-bento-theme.types';\n\nconst getTheme = () => document.body.className.match(/b-\\w+-theme/)?.[0] ?? '';\nconst getThemeForSystemPreference = () => {\n const preferredDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches;\n\n if (preferredDarkMode) {\n return BentoTheme.BENTO_DARK;\n }\n\n return BentoTheme.BENTO_LIGHT;\n};\n\nexport enum BentoTheme {\n LEGACY = 'b-legacy-theme',\n STYLEGUIDE = 'b-styleguide-theme',\n\n /**\n * @deprecated in favor of {@link BENTO_LIGHT}. To be removed in v2.0.0.\n */\n BENTO = '',\n\n BENTO_LIGHT = 'b-light-theme',\n BENTO_DARK = 'b-dark-theme',\n BENTO_SYSTEM = 'b-system',\n}\n\nexport const setTheme = (theme: BentoTheme) => {\n const currentTheme = getTheme();\n const systemTheme = getThemeForSystemPreference();\n const themeToSet = theme === BentoTheme.BENTO_SYSTEM ? systemTheme : theme;\n\n if (themeToSet === BentoTheme.BENTO_LIGHT || themeToSet === BentoTheme.BENTO) {\n document.documentElement.style.colorScheme = 'light';\n } else if (themeToSet === BentoTheme.BENTO_DARK) {\n document.documentElement.style.colorScheme = 'dark';\n }\n\n // if theme is different from current and it is not `BentoTheme.BENTO`\n if (currentTheme.length && currentTheme !== themeToSet) {\n document.body.classList.remove(currentTheme);\n }\n\n // if theme is not `BentoTheme.BENTO`\n if (themeToSet.length) {\n document.body.classList.add(themeToSet);\n }\n};\n\n/**\n * This function is used to create and register global reactive state necessary for theme to operate.\n * @param {Vue} Vue A context application to register global state with.\n */\nexport default Vue => {\n const themeProvider = {\n getTheme,\n setTheme,\n };\n\n if (isVue2) {\n // Add theme 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[useBentoThemeKey] = themeProvider;\n } else {\n (Vue as App).provide(useBentoThemeKey, themeProvider);\n }\n};\n","import type { PluginObject } from 'vue';\nimport installToast from './composables/use-bento-toast-controller/install';\nimport installTheme, { BentoTheme, setTheme } from './composables/use-bento-theme/install';\nimport { deprecate } from './utils/ts/deprecate';\n\ninterface BentoVuePlugin {\n theme?: BentoTheme;\n withToast?: boolean;\n withUtilityClasses?: boolean;\n withDesignTokensCSSInjection?: boolean;\n}\n\nconst plugin: PluginObject<BentoVuePlugin> = {\n name: 'BentoVue',\n install: async (\n Vue,\n {\n theme = BentoTheme.BENTO_LIGHT,\n withToast = false,\n withUtilityClasses = false,\n withDesignTokensCSSInjection = true,\n }: BentoVuePlugin\n ) => {\n installTheme(Vue);\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 } else if (theme === BentoTheme.BENTO_SYSTEM) {\n setTheme(BentoTheme.BENTO_SYSTEM);\n } else if (theme === BentoTheme.BENTO_DARK) {\n setTheme(BentoTheme.BENTO_DARK);\n } else if (theme === BentoTheme.BENTO) {\n deprecate('Using `BentoTheme.BENTO`', 'Please use `BentoTheme.BENTO_LIGHT` instead', '2.0.0');\n setTheme(BentoTheme.BENTO_LIGHT);\n } else {\n setTheme(BentoTheme.BENTO_LIGHT);\n }\n },\n};\n\nexport { BentoTheme };\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","useBentoThemeKey","useBentoTheme","bentoThemeController","_a","getCurrentInstance","printDevelopmentWarning","installToast","Vue","toastStackInjectionKey","createToastStack","getTheme","getThemeForSystemPreference","BentoTheme","setTheme","theme","currentTheme","systemTheme","themeToSet","installTheme","themeProvider","plugin","withToast","withUtilityClasses","withDesignTokensCSSInjection","deprecate"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/composables/use-form-validate/use-form.ts","../src/composables/use-bento-theme/use-bento-theme.types.ts","../src/composables/use-bento-theme/use-bento-theme.ts","../src/composables/use-bento-toast-controller/install.ts","../src/composables/use-bento-theme/install.ts","../src/install.ts"],"sourcesContent":["import { type Ref, ref, shallowRef } from 'vue';\nimport * as z from 'zod';\nimport type { ZodSchema } from 'zod';\nimport { type allKeys, type ErrorBag, type 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 * @deprecated For usage with Zod/v3. Migrate to Zod/v4 and use `@adyen/bento-vue2/use-form-v4' instead or migrate to Vue3 and use Vee-Validate instead.\n *\n * @param formSchema Zod schema to be transformed into a `vee-validate` schema\n * @returns 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 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 * @deprecated For usage with Zod/v3. Migrate to Zod/v4 and use `@adyen/bento-vue2/use-form-v4' instead or migrate to Vue3 and use Vee-Validate instead.\n *\n * @param props Form configuration object\n * @param extends ZodSchema} props.validationSchema Zod typed validation schema\n * @returns response - Composable with reactive form values and errors, and functions to handle the reactive data\n * @returns response.errorBag Object with all the form values and an array of each one of the errors (if any) per value\n * @returns response.errors Object with all the form values and the first error found for that field (if any)\n * @returns response.values Object with all the form values and their current value\n * @returns response.handleReset Resets the form values to default (initial values) when it gets called\n * @returns 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<{\n [P in allKeys<(typeof validationSchema)['_type']>]?: string[];\n }>;\n errors: Ref<{\n [P in allKeys<(typeof validationSchema)['_type']>]?: string;\n }>;\n values: Ref<(typeof validationSchema)['_type']>;\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 BentoTheme } from './install';\n\nexport const useBentoThemeKey = Symbol('use-bento-theme');\n\nexport interface UseBentoTheme {\n getTheme: () => string;\n setTheme: (theme: BentoTheme | `${BentoTheme}`) => void;\n}\n","import { printDevelopmentWarning } from '@/utils/ts/print-development-warning';\nimport { getCurrentInstance, inject } from 'vue';\nimport { isVue2 } from 'vue-demi';\nimport { type UseBentoTheme, useBentoThemeKey } from './use-bento-theme.types';\n\n/**\n * Composable that handles theming-related capabilities for the Bento component library.\n * Requires the use of `BentoPlugin`.\n *\n * @example\n * <script setup lang=\"ts\">\n * import { useBentoTheme, BentoTheme } from '@adyen/bento-vue2';\n *\n * const { setTheme } = useBentoTheme();\n *\n * setTheme(BentoTheme.BENTO_DARK)\n * </script>\n *\n * @returns {UseBentoTheme} An object with getter and setter method for the Bento theme.\n * @returns {Function} getTheme - Returns the current theme in the string form of BentoTheme enum.\n * @returns {Function} setTheme - Sets the theme of the Bento component library.\n *\n */\nexport function useBentoTheme(): UseBentoTheme {\n const bentoThemeController = isVue2\n ? getCurrentInstance()?.proxy[useBentoThemeKey]\n : inject(useBentoThemeKey, null);\n\n if (!bentoThemeController) {\n printDevelopmentWarning('useBentoTheme does not work without Vue.use(BentoPlugin)');\n\n // Return placeholder functions so client code won't break, but theme won't toggle\n return {\n getTheme: () => undefined,\n setTheme: () => undefined,\n };\n }\n\n // Return a new object so unintentional reassigning its properties won't override a global state\n return { ...bentoThemeController };\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 App, isVue2, type Vue2 } from 'vue-demi';\nimport { useBentoThemeKey } from './use-bento-theme.types';\n\nconst getTheme = () => document.body.className.match(/b-\\w+-theme/)?.[0] ?? '';\nconst getThemeForSystemPreference = () => {\n const preferredDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches;\n\n if (preferredDarkMode) {\n return BentoTheme.BENTO_DARK;\n }\n\n return BentoTheme.BENTO_LIGHT;\n};\n\nexport enum BentoTheme {\n /**\n * @deprecated in favor of {@link BENTO_LIGHT}. To be removed in v2.0.0.\n */\n LEGACY = 'b-legacy-theme',\n STYLEGUIDE = 'b-styleguide-theme',\n\n /**\n * @deprecated in favor of {@link BENTO_LIGHT}. To be removed in v2.0.0.\n */\n BENTO = '',\n\n BENTO_LIGHT = 'b-light-theme',\n BENTO_DARK = 'b-dark-theme',\n BENTO_SYSTEM = 'b-system',\n}\n\nexport const setTheme = (theme: BentoTheme) => {\n const currentTheme = getTheme();\n const systemTheme = getThemeForSystemPreference();\n const themeToSet = theme === BentoTheme.BENTO_SYSTEM ? systemTheme : theme;\n\n if (themeToSet === BentoTheme.BENTO_LIGHT || themeToSet === BentoTheme.BENTO) {\n document.documentElement.style.colorScheme = 'light';\n } else if (themeToSet === BentoTheme.BENTO_DARK) {\n document.documentElement.style.colorScheme = 'dark';\n }\n\n // if theme is different from current and it is not `BentoTheme.BENTO`\n if (currentTheme.length && currentTheme !== themeToSet) {\n document.body.classList.remove(currentTheme);\n }\n\n // if theme is not `BentoTheme.BENTO`\n if (themeToSet.length) {\n document.body.classList.add(themeToSet);\n }\n};\n\n/**\n * This function is used to create and register global reactive state necessary for theme to operate.\n * @param {Vue} Vue A context application to register global state with.\n */\nexport default Vue => {\n const themeProvider = {\n getTheme,\n setTheme,\n };\n\n if (isVue2) {\n // Add theme 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[useBentoThemeKey] = themeProvider;\n } else {\n (Vue as App).provide(useBentoThemeKey, themeProvider);\n }\n};\n","import type { PluginObject } from 'vue';\nimport installToast from './composables/use-bento-toast-controller/install';\nimport installTheme, { BentoTheme, setTheme } from './composables/use-bento-theme/install';\nimport { deprecate } from './utils/ts/deprecate';\n\ninterface BentoVuePlugin {\n theme?: BentoTheme;\n withToast?: boolean;\n withUtilityClasses?: boolean;\n withDesignTokensCSSInjection?: boolean;\n}\n\nconst plugin: PluginObject<BentoVuePlugin> = {\n name: 'BentoVue',\n install: async (\n Vue,\n {\n theme = BentoTheme.BENTO_LIGHT,\n withToast = false,\n withUtilityClasses = false,\n withDesignTokensCSSInjection = true,\n }: BentoVuePlugin\n ) => {\n installTheme(Vue);\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.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.STYLEGUIDE) {\n setTheme(BentoTheme.STYLEGUIDE);\n } else if (theme === BentoTheme.BENTO_SYSTEM) {\n setTheme(BentoTheme.BENTO_SYSTEM);\n } else if (theme === BentoTheme.BENTO_DARK) {\n setTheme(BentoTheme.BENTO_DARK);\n } else if (theme === BentoTheme.BENTO) {\n deprecate('Using `BentoTheme.BENTO`', 'Please use `BentoTheme.BENTO_LIGHT` instead', '2.0.0');\n setTheme(BentoTheme.BENTO_LIGHT);\n } else {\n setTheme(BentoTheme.BENTO_LIGHT);\n }\n },\n};\n\nexport { BentoTheme };\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","useBentoThemeKey","useBentoTheme","bentoThemeController","_a","getCurrentInstance","printDevelopmentWarning","installToast","Vue","toastStackInjectionKey","createToastStack","getTheme","getThemeForSystemPreference","BentoTheme","setTheme","theme","currentTheme","systemTheme","themeToSet","installTheme","themeProvider","plugin","withToast","withUtilityClasses","withDesignTokensCSSInjection","deprecate"],"mappings":"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"}
|
package/dist/info-icon.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as a, m as s, r as i, b as c, c as u, a as o } from "./chunks/input-field-password.
|
|
1
|
+
import { i as a, m as s, r as i, b as c, c as u, a as o } from "./chunks/input-field-password.D6wAD55v.js";
|
|
2
2
|
export {
|
|
3
3
|
a as BentoInputFieldPassword,
|
|
4
4
|
s as minLength,
|
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.C3KYlPYa.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,16 +1,16 @@
|
|
|
1
|
-
import { a as e, b as t, C as r, c as s, d as i } from "./chunks/calendar.
|
|
2
|
-
import { C as p, a as l } from "./chunks/copy.
|
|
3
|
-
import { C as I } from "./chunks/controls-group.
|
|
4
|
-
import { B as x, b as E, a as f, D as m } from "./chunks/dialog-page.
|
|
5
|
-
import { E as d, F as N } from "./chunks/error-message.
|
|
6
|
-
import { F as O } from "./chunks/fixed-scroller.
|
|
1
|
+
import { a as e, b as t, C as r, c as s, d as i } from "./chunks/calendar.DYI4omOF.js";
|
|
2
|
+
import { C as p, a as l } from "./chunks/copy.Cb7gQhU4.js";
|
|
3
|
+
import { C as I } from "./chunks/controls-group.az4jCZQF.js";
|
|
4
|
+
import { B as x, b as E, a as f, D as m } from "./chunks/dialog-page.D20YBRQF.js";
|
|
5
|
+
import { E as d, F as N } from "./chunks/error-message.D_QAOG-5.js";
|
|
6
|
+
import { F as O } from "./chunks/fixed-scroller.DDYpO7Li.js";
|
|
7
7
|
import { G as B, a as A } from "./chunks/grid-layout.1aIiz2N_.js";
|
|
8
|
-
import { H as P, I as c } from "./chunks/header-meta.
|
|
9
|
-
import { b as g, c as y, u as D } from "./chunks/use-cached-selected-values.
|
|
10
|
-
import { L as S } from "./chunks/listbox-option-tag.
|
|
11
|
-
import { e as W, d as h } from "./chunks/toggle-button.
|
|
12
|
-
import { B as H, a as J, T as K } from "./chunks/tooltip.
|
|
13
|
-
import { B as Y } from "./chunks/button-actions-with-menu.
|
|
8
|
+
import { H as P, I as c } from "./chunks/header-meta.Dj742jL5.js";
|
|
9
|
+
import { b as g, c as y, u as D } from "./chunks/use-cached-selected-values.ysbHRJ6L.js";
|
|
10
|
+
import { L as S } from "./chunks/listbox-option-tag.3zcrQQvI.js";
|
|
11
|
+
import { e as W, d as h } from "./chunks/toggle-button.COXDzXWu.js";
|
|
12
|
+
import { B as H, a as J, T as K } from "./chunks/tooltip.B2XJl4VK.js";
|
|
13
|
+
import { B as Y } from "./chunks/button-actions-with-menu.BDpWI2Fh.js";
|
|
14
14
|
export {
|
|
15
15
|
W as BUTTON_ACTIONS_WITH_MENU_CONTAINER_INJECTION_KEY,
|
|
16
16
|
x as BentoDialogPageAnimation,
|
package/dist/layout.js
CHANGED
package/dist/link.js
CHANGED