@adyen/bento-vue3 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/dist/@types/index.d.ts +250 -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.H062lKz1.js → accordion-item.6etqAJV9.js} +2 -2
- package/dist/chunks/{accordion-item.H062lKz1.js.map → accordion-item.6etqAJV9.js.map} +1 -1
- package/dist/chunks/{action-bar.CbO7oNER.js → action-bar.CweA2FeY.js} +5 -5
- package/dist/chunks/{action-bar.CbO7oNER.js.map → action-bar.CweA2FeY.js.map} +1 -1
- package/dist/chunks/alert.Dzx5MzgE.js +171 -0
- package/dist/chunks/alert.Dzx5MzgE.js.map +1 -0
- package/dist/chunks/{avatar.BtxoYBvq.js → avatar.Dq59yj6m.js} +2 -2
- package/dist/chunks/{avatar.BtxoYBvq.js.map → avatar.Dq59yj6m.js.map} +1 -1
- package/dist/chunks/{base-button.Bcwm87OM.js → base-button.CjYb5Y8k.js} +2 -2
- package/dist/chunks/{base-button.Bcwm87OM.js.map → base-button.CjYb5Y8k.js.map} +1 -1
- package/dist/chunks/{base-modal.7vdoT8zp.js → base-modal.BrBcILSe.js} +6 -6
- package/dist/chunks/{base-modal.7vdoT8zp.js.map → base-modal.BrBcILSe.js.map} +1 -1
- package/dist/chunks/bin.DuHlEQBO.js +37 -0
- package/dist/chunks/bin.DuHlEQBO.js.map +1 -0
- package/dist/chunks/{button-actions-with-menu.zdsGh7un.js → button-actions-with-menu.CBuoSd3w.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.zdsGh7un.js.map → button-actions-with-menu.CBuoSd3w.js.map} +1 -1
- package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
- package/dist/chunks/{button.wMNce6wZ.js → button.C-MAa6ut.js} +4 -4
- package/dist/chunks/{button.wMNce6wZ.js.map → button.C-MAa6ut.js.map} +1 -1
- package/dist/chunks/{calendar.CYrrR8wd.js → calendar.DFHiga9k.js} +32 -32
- package/dist/chunks/{calendar.CYrrR8wd.js.map → calendar.DFHiga9k.js.map} +1 -1
- package/dist/chunks/{card.CNYYIpQW.js → card.BspLDcas.js} +4 -4
- package/dist/chunks/{card.CNYYIpQW.js.map → card.BspLDcas.js.map} +1 -1
- package/dist/chunks/{checkbox-group.fX5_d3XZ.js → checkbox-group.DIXgr1WQ.js} +6 -6
- package/dist/chunks/{checkbox-group.fX5_d3XZ.js.map → checkbox-group.DIXgr1WQ.js.map} +1 -1
- package/dist/chunks/{checkbox-input.B1hV3DU-.js → checkbox-input.BXNGT9U0.js} +2 -2
- package/dist/chunks/{checkbox-input.B1hV3DU-.js.map → checkbox-input.BXNGT9U0.js.map} +1 -1
- package/dist/chunks/{checkbox.C62ek8A8.js → checkbox.M6lKj2hQ.js} +6 -6
- package/dist/chunks/{checkbox.C62ek8A8.js.map → checkbox.M6lKj2hQ.js.map} +1 -1
- package/dist/chunks/{chip.CoBGGkn7.js → chip.DcpP3zb6.js} +3 -3
- package/dist/chunks/{chip.CoBGGkn7.js.map → chip.DcpP3zb6.js.map} +1 -1
- package/dist/chunks/{code-snippet.CrKl93Wq.js → code-snippet.CKrxKjkQ.js} +7 -7
- package/dist/chunks/{code-snippet.CrKl93Wq.js.map → code-snippet.CKrxKjkQ.js.map} +1 -1
- package/dist/chunks/{controls-group.2xftPPd7.js → controls-group.CXVHTaYp.js} +32 -29
- package/dist/chunks/controls-group.CXVHTaYp.js.map +1 -0
- package/dist/chunks/{copy.-8xjj6Hr.js → copy.C4DAAiPw.js} +5 -5
- package/dist/chunks/{copy.-8xjj6Hr.js.map → copy.C4DAAiPw.js.map} +1 -1
- package/dist/chunks/{country.BdqTkF7A.js → country.RVvsGwuV.js} +3 -3
- package/dist/chunks/{country.BdqTkF7A.js.map → country.RVvsGwuV.js.map} +1 -1
- package/dist/chunks/{currency.XiEfa4LT.js → currency.CN4UnCx8.js} +2 -2
- package/dist/chunks/{currency.XiEfa4LT.js.map → currency.CN4UnCx8.js.map} +1 -1
- package/dist/chunks/{dashboard-section.Di16gWGI.js → dashboard-section.Cll3tn0q.js} +3 -3
- package/dist/chunks/{dashboard-section.Di16gWGI.js.map → dashboard-section.Cll3tn0q.js.map} +1 -1
- package/dist/chunks/{dashed-underline.CyZEW1LZ.js → dashed-underline.2OYxO-Rh.js} +4 -4
- package/dist/chunks/{dashed-underline.CyZEW1LZ.js.map → dashed-underline.2OYxO-Rh.js.map} +1 -1
- package/dist/chunks/{data-grid-template.CnYNEhPR.js → data-grid-template.CTRHofoW.js} +4 -4
- package/dist/chunks/{data-grid-template.CnYNEhPR.js.map → data-grid-template.CTRHofoW.js.map} +1 -1
- package/dist/chunks/{data-grid.aEQt05d9.js → data-grid.DMOTTywp.js} +185 -185
- package/dist/chunks/data-grid.DMOTTywp.js.map +1 -0
- package/dist/chunks/{date-picker.Bk0A3rha.js → date-picker.CBlQ0ql7.js} +18 -18
- package/dist/chunks/{date-picker.Bk0A3rha.js.map → date-picker.CBlQ0ql7.js.map} +1 -1
- package/dist/chunks/{date-range-picker.l-CSmXBk.js → date-range-picker.D-gGqpFB.js} +25 -25
- package/dist/chunks/{date-range-picker.l-CSmXBk.js.map → date-range-picker.D-gGqpFB.js.map} +1 -1
- package/dist/chunks/{date.BZENjOb6.js → date.4GAXrgy5.js} +2 -2
- package/dist/chunks/{date.BZENjOb6.js.map → date.4GAXrgy5.js.map} +1 -1
- package/dist/chunks/{dialog-page.BJaRwRhF.js → dialog-page.VSJgHY3C.js} +3 -3
- package/dist/chunks/{dialog-page.BJaRwRhF.js.map → dialog-page.VSJgHY3C.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.DWgL31p1.js → dropdown-default-textbox.CGsOngY1.js} +2 -2
- package/dist/chunks/{dropdown-default-textbox.DWgL31p1.js.map → dropdown-default-textbox.CGsOngY1.js.map} +1 -1
- package/dist/chunks/dropdown-tag.DlFpUeXa.js +296 -0
- package/dist/chunks/dropdown-tag.DlFpUeXa.js.map +1 -0
- package/dist/chunks/{dropdown.Co86azLK.js → dropdown.agfzvJZE.js} +22 -22
- package/dist/chunks/{dropdown.Co86azLK.js.map → dropdown.agfzvJZE.js.map} +1 -1
- package/dist/chunks/{empty-state.YNNEDsnK.js → empty-state.BTaeZdQu.js} +3 -3
- package/dist/chunks/{empty-state.YNNEDsnK.js.map → empty-state.BTaeZdQu.js.map} +1 -1
- package/dist/chunks/{error-message.Cu4cIfdg.js → error-message.B1P5ictH.js} +5 -5
- package/dist/chunks/{error-message.Cu4cIfdg.js.map → error-message.B1P5ictH.js.map} +1 -1
- package/dist/chunks/{file-uploader.09149Fx8.js → file-uploader.Vac1Cu0i.js} +21 -19
- package/dist/chunks/file-uploader.Vac1Cu0i.js.map +1 -0
- package/dist/chunks/{filter-bar.D6n7Srr5.js → filter-bar.uUpoP-XZ.js} +233 -236
- package/dist/chunks/filter-bar.uUpoP-XZ.js.map +1 -0
- package/dist/chunks/{fixed-scroller.QlDKOD7y.js → fixed-scroller.DSGxXiAH.js} +2 -2
- package/dist/chunks/{fixed-scroller.QlDKOD7y.js.map → fixed-scroller.DSGxXiAH.js.map} +1 -1
- package/dist/chunks/{footer-actions.0cBTJ1kw.js → footer-actions.gRKTKGts.js} +4 -4
- package/dist/chunks/{footer-actions.0cBTJ1kw.js.map → footer-actions.gRKTKGts.js.map} +1 -1
- package/dist/chunks/{form-layout-title.Cq_xVPUq.js → form-layout-title.DdRqnXXi.js} +3 -3
- package/dist/chunks/{form-layout-title.Cq_xVPUq.js.map → form-layout-title.DdRqnXXi.js.map} +1 -1
- package/dist/chunks/{header-meta.BJGF0E3r.js → header-meta.Ct79L1O8.js} +5 -5
- package/dist/chunks/{header-meta.BJGF0E3r.js.map → header-meta.Ct79L1O8.js.map} +1 -1
- package/dist/chunks/{header-with-views.Drzq84zs.js → header-with-views.BVHdSAKp.js} +211 -207
- package/dist/chunks/header-with-views.BVHdSAKp.js.map +1 -0
- package/dist/chunks/{header.B6DzOioR.js → header.Cd1P8lYK.js} +4 -4
- package/dist/chunks/{header.B6DzOioR.js.map → header.Cd1P8lYK.js.map} +1 -1
- package/dist/chunks/{info-icon.DKnzFXy1.js → info-icon.Bl0iKUfC.js} +7 -7
- package/dist/chunks/{info-icon.DKnzFXy1.js.map → info-icon.Bl0iKUfC.js.map} +1 -1
- package/dist/chunks/info.BKwey1HA.js +44 -0
- package/dist/chunks/info.BKwey1HA.js.map +1 -0
- package/dist/chunks/{input-field-password.DC8lJFsr.js → input-field-password.DkIWrrxy.js} +7 -7
- package/dist/chunks/{input-field-password.DC8lJFsr.js.map → input-field-password.DkIWrrxy.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.BbMEzDiR.js → input-field-phone-number.EXlRu8qq.js} +9 -9
- package/dist/chunks/{input-field-phone-number.BbMEzDiR.js.map → input-field-phone-number.EXlRu8qq.js.map} +1 -1
- package/dist/chunks/{input-field.6bH4yGb2.js → input-field.CgbiOju9.js} +4 -4
- package/dist/chunks/{input-field.6bH4yGb2.js.map → input-field.CgbiOju9.js.map} +1 -1
- package/dist/chunks/{inspector.Bsv68G-e.js → inspector.BGtTMtE0.js} +4 -4
- package/dist/chunks/{inspector.Bsv68G-e.js.map → inspector.BGtTMtE0.js.map} +1 -1
- package/dist/chunks/{layout-row.CIg1pwOd.js → layout-row.BPfOPn4x.js} +2 -2
- package/dist/chunks/{layout-row.CIg1pwOd.js.map → layout-row.BPfOPn4x.js.map} +1 -1
- package/dist/chunks/{link.Di0rtpOj.js → link.cwPmWlsk.js} +2 -2
- package/dist/chunks/{link.Di0rtpOj.js.map → link.cwPmWlsk.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.C6WHiASI.js → listbox-option-tag.CDIkX7nh.js} +3 -3
- package/dist/chunks/{listbox-option-tag.C6WHiASI.js.map → listbox-option-tag.CDIkX7nh.js.map} +1 -1
- package/dist/chunks/{loading-indicator.BmAQqPP2.js → loading-indicator.VHi5tbZa.js} +2 -2
- package/dist/chunks/{loading-indicator.BmAQqPP2.js.map → loading-indicator.VHi5tbZa.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.BHzyS4y7.js → modal-fullscreen.-Q-7GMyT.js} +5 -5
- package/dist/chunks/{modal-fullscreen.BHzyS4y7.js.map → modal-fullscreen.-Q-7GMyT.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.CqDhzFJ9.js → modal.vue_vue_type_script_setup_true_lang.TFh7p51f.js} +6 -6
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.CqDhzFJ9.js.map → modal.vue_vue_type_script_setup_true_lang.TFh7p51f.js.map} +1 -1
- package/dist/chunks/{pagination.BuYH2_62.js → pagination.DW_HPEIu.js} +4 -4
- package/dist/chunks/{pagination.BuYH2_62.js.map → pagination.DW_HPEIu.js.map} +1 -1
- package/dist/chunks/{payment-method.4cnK2M5b.js → payment-method.CDnn1bjo.js} +2 -2
- package/dist/chunks/{payment-method.4cnK2M5b.js.map → payment-method.CDnn1bjo.js.map} +1 -1
- package/dist/chunks/popover.types.COM6oQgq.js +6 -0
- package/dist/chunks/{popover.types.BQILgzhs.js.map → popover.types.COM6oQgq.js.map} +1 -1
- package/dist/chunks/{popper-container.idDrquM6.js → popper-container.CgJzEQ7N.js} +2 -2
- package/dist/chunks/{popper-container.idDrquM6.js.map → popper-container.CgJzEQ7N.js.map} +1 -1
- package/dist/chunks/{promo-banner.il4_mdEk.js → promo-banner.BbqIA4Ce.js} +3 -3
- package/dist/chunks/{promo-banner.il4_mdEk.js.map → promo-banner.BbqIA4Ce.js.map} +1 -1
- package/dist/chunks/{radio-group.BG8W9epW.js → radio-group.CbLIPi7h.js} +77 -69
- package/dist/chunks/radio-group.CbLIPi7h.js.map +1 -0
- package/dist/chunks/{radio-input.DvPjlvPm.js → radio-input.odN9FOyr.js} +2 -2
- package/dist/chunks/{radio-input.DvPjlvPm.js.map → radio-input.odN9FOyr.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.vqti0Ls0.js → rich-text-editor.C0hJeV4H.js} +7 -7
- package/dist/chunks/{rich-text-editor.vqti0Ls0.js.map → rich-text-editor.C0hJeV4H.js.map} +1 -1
- package/dist/chunks/{search-bar.RGL70u_Y.js → search-bar.CvAi2t3-.js} +3 -3
- package/dist/chunks/{search-bar.RGL70u_Y.js.map → search-bar.CvAi2t3-.js.map} +1 -1
- package/dist/chunks/{secondary-nav.Dtw_Dm_X.js → secondary-nav.yntS8-u5.js} +3 -3
- package/dist/chunks/{secondary-nav.Dtw_Dm_X.js.map → secondary-nav.yntS8-u5.js.map} +1 -1
- package/dist/chunks/{segmented-control.C6QyN2jS.js → segmented-control.CRSdIvha.js} +3 -3
- package/dist/chunks/{segmented-control.C6QyN2jS.js.map → segmented-control.CRSdIvha.js.map} +1 -1
- package/dist/chunks/{selection-card-group.DpogJSo0.js → selection-card-group.Cu3V8h4R.js} +6 -6
- package/dist/chunks/{selection-card-group.DpogJSo0.js.map → selection-card-group.Cu3V8h4R.js.map} +1 -1
- package/dist/chunks/{sidepanel.BqRWoCd3.js → sidepanel.z18XSO3M.js} +6 -6
- package/dist/chunks/{sidepanel.BqRWoCd3.js.map → sidepanel.z18XSO3M.js.map} +1 -1
- package/dist/chunks/{status.types.B7vJ-_oJ.js → status.types.-l2qJxLn.js} +2 -2
- package/dist/chunks/{status.types.B7vJ-_oJ.js.map → status.types.-l2qJxLn.js.map} +1 -1
- package/dist/chunks/{step.BdZrreHU.js → step.BMSjltwl.js} +3 -3
- package/dist/chunks/{step.BdZrreHU.js.map → step.BMSjltwl.js.map} +1 -1
- package/dist/chunks/{structured-list-item.DIwkcIMT.js → structured-list-item.CD1nMqzH.js} +6 -6
- package/dist/chunks/{structured-list-item.DIwkcIMT.js.map → structured-list-item.CD1nMqzH.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.DHUnTXI-.js → summary-grid.types.BHuDlPDw.js} +6 -6
- package/dist/chunks/{summary-grid.types.DHUnTXI-.js.map → summary-grid.types.BHuDlPDw.js.map} +1 -1
- package/dist/chunks/{tab.jIG8-7-Q.js → tab.C3R_VoJL.js} +3 -3
- package/dist/chunks/{tab.jIG8-7-Q.js.map → tab.C3R_VoJL.js.map} +1 -1
- package/dist/chunks/{tag.BP8fBCx-.js → tag.B6AmSws9.js} +7 -7
- package/dist/chunks/{tag.BP8fBCx-.js.map → tag.B6AmSws9.js.map} +1 -1
- package/dist/chunks/{textarea.CtfRoIUw.js → textarea.DfQLxj_w.js} +4 -4
- package/dist/chunks/{textarea.CtfRoIUw.js.map → textarea.DfQLxj_w.js.map} +1 -1
- package/dist/chunks/timeline-item.25y9USE-.js +568 -0
- package/dist/chunks/timeline-item.25y9USE-.js.map +1 -0
- package/dist/chunks/{toast.w_FD0zQA.js → toast.DIhABAW8.js} +4 -4
- package/dist/chunks/{toast.w_FD0zQA.js.map → toast.DIhABAW8.js.map} +1 -1
- package/dist/chunks/{toggle-button.ByyLw0Yf.js → toggle-button.CQl9HneO.js} +194 -188
- package/dist/chunks/toggle-button.CQl9HneO.js.map +1 -0
- package/dist/chunks/{toggle.CjEL1ko8.js → toggle.C8k7NQ7y.js} +2 -2
- package/dist/chunks/{toggle.CjEL1ko8.js.map → toggle.C8k7NQ7y.js.map} +1 -1
- package/dist/chunks/{tooltip.Dww8NiUR.js → tooltip.lBnko9QV.js} +4 -4
- package/dist/chunks/tooltip.lBnko9QV.js.map +1 -0
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.rY33hqQQ.js → tutorial.vue_vue_type_script_setup_true_lang.BProZFmI.js} +5 -5
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.rY33hqQQ.js.map → tutorial.vue_vue_type_script_setup_true_lang.BProZFmI.js.map} +1 -1
- package/dist/chunks/{typography.CFHvBR7L.js → typography.yBEME_Gu.js} +2 -2
- package/dist/chunks/{typography.CFHvBR7L.js.map → typography.yBEME_Gu.js.map} +1 -1
- package/dist/chunks/{use-bento-toast-controller.BzKbXZPO.js → use-bento-toast-controller.Kri_h7jS.js} +2 -2
- package/dist/chunks/{use-bento-toast-controller.BzKbXZPO.js.map → use-bento-toast-controller.Kri_h7jS.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.BcNRo4mZ.js → use-cached-selected-values.CELe-MsT.js} +7 -7
- package/dist/chunks/use-cached-selected-values.CELe-MsT.js.map +1 -0
- package/dist/chunks/{use-country-items.Duh4bMqW.js → use-country-items.D_kamcYy.js} +2 -2
- package/dist/chunks/{use-country-items.Duh4bMqW.js.map → use-country-items.D_kamcYy.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.BMGD0G-_.js +29 -0
- package/dist/chunks/warning-filled.BMGD0G-_.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 +136 -136
- 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 +1 -1
- package/package.json +5 -5
- package/dist/chunks/alert.DFSdD4jX.js +0 -169
- package/dist/chunks/alert.DFSdD4jX.js.map +0 -1
- package/dist/chunks/bin.CiGG2V4b.js +0 -37
- package/dist/chunks/bin.CiGG2V4b.js.map +0 -1
- package/dist/chunks/controls-group.2xftPPd7.js.map +0 -1
- package/dist/chunks/data-grid.aEQt05d9.js.map +0 -1
- package/dist/chunks/dropdown-tag.CnqIUH1X.js +0 -263
- package/dist/chunks/dropdown-tag.CnqIUH1X.js.map +0 -1
- package/dist/chunks/file-uploader.09149Fx8.js.map +0 -1
- package/dist/chunks/filter-bar.D6n7Srr5.js.map +0 -1
- package/dist/chunks/header-with-views.Drzq84zs.js.map +0 -1
- package/dist/chunks/info.DcTs-Bzp.js +0 -44
- package/dist/chunks/info.DcTs-Bzp.js.map +0 -1
- package/dist/chunks/popover.types.BQILgzhs.js +0 -6
- package/dist/chunks/radio-group.BG8W9epW.js.map +0 -1
- package/dist/chunks/timeline-item.DthjD14m.js +0 -566
- package/dist/chunks/timeline-item.DthjD14m.js.map +0 -1
- package/dist/chunks/toggle-button.ByyLw0Yf.js.map +0 -1
- package/dist/chunks/tooltip.Dww8NiUR.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.BcNRo4mZ.js.map +0 -1
- package/dist/chunks/warning-filled.AiUbXzzg.js +0 -29
- package/dist/chunks/warning-filled.AiUbXzzg.js.map +0 -1
- package/dist/styles/legacy.css +0 -2239
package/dist/index.js
CHANGED
|
@@ -1,127 +1,127 @@
|
|
|
1
1
|
import { shallowRef as T, ref as d, inject as g } from "vue";
|
|
2
|
-
import { t as y, c as h } from "./chunks/use-bento-toast-controller.
|
|
3
|
-
import { u as
|
|
4
|
-
import { p as b, d as l } from "./chunks/typography.
|
|
5
|
-
import { B as R, c as _, b as j, a as
|
|
6
|
-
import { B as
|
|
7
|
-
import { a as H, b as q } from "./chunks/accordion-item.
|
|
8
|
-
import { B as Z, c as J, b as Q, a as X } from "./chunks/alert.
|
|
9
|
-
import { B as ee } from "./chunks/avatar.
|
|
10
|
-
import { B as oe, b as ae, a as ne } from "./chunks/button.
|
|
11
|
-
import { c as se, B as Be, a as ie } from "./chunks/card.
|
|
12
|
-
import { B as pe } from "./chunks/dashed-underline.
|
|
13
|
-
import { B as de, d as le, a as ce, b as fe, g as xe, f as Se, e as Te, c as ge } from "./chunks/data-grid.
|
|
14
|
-
import { B as he, a as be } from "./chunks/date-picker.
|
|
15
|
-
import { B as Ce, a as De } from "./chunks/date-range-picker.
|
|
16
|
-
import { B as Ie, u as Le } from "./chunks/dropdown.
|
|
17
|
-
import { B as Fe } from "./chunks/dropdown-default-textbox.
|
|
18
|
-
import { B as
|
|
19
|
-
import { B as we, a as Me } from "./chunks/checkbox.
|
|
20
|
-
import { B as
|
|
2
|
+
import { t as y, c as h } from "./chunks/use-bento-toast-controller.Kri_h7jS.js";
|
|
3
|
+
import { u as N } from "./chunks/use-bento-toast-controller.Kri_h7jS.js";
|
|
4
|
+
import { p as b, d as l } from "./chunks/typography.yBEME_Gu.js";
|
|
5
|
+
import { B as R, c as _, b as j, a as U } from "./chunks/typography.yBEME_Gu.js";
|
|
6
|
+
import { B as K } from "./chunks/action-bar.CweA2FeY.js";
|
|
7
|
+
import { a as H, b as q } from "./chunks/accordion-item.6etqAJV9.js";
|
|
8
|
+
import { B as Z, c as J, b as Q, a as X } from "./chunks/alert.Dzx5MzgE.js";
|
|
9
|
+
import { B as ee } from "./chunks/avatar.Dq59yj6m.js";
|
|
10
|
+
import { B as oe, b as ae, a as ne } from "./chunks/button.C-MAa6ut.js";
|
|
11
|
+
import { c as se, B as Be, a as ie } from "./chunks/card.BspLDcas.js";
|
|
12
|
+
import { B as pe } from "./chunks/dashed-underline.2OYxO-Rh.js";
|
|
13
|
+
import { B as de, d as le, a as ce, b as fe, g as xe, f as Se, e as Te, c as ge } from "./chunks/data-grid.DMOTTywp.js";
|
|
14
|
+
import { B as he, a as be } from "./chunks/date-picker.CBlQ0ql7.js";
|
|
15
|
+
import { B as Ce, a as De } from "./chunks/date-range-picker.D-gGqpFB.js";
|
|
16
|
+
import { B as Ie, u as Le } from "./chunks/dropdown.agfzvJZE.js";
|
|
17
|
+
import { B as Fe } from "./chunks/dropdown-default-textbox.CGsOngY1.js";
|
|
18
|
+
import { B as ke } from "./chunks/divider.DnKNNyWB.js";
|
|
19
|
+
import { B as we, a as Me } from "./chunks/checkbox.M6lKj2hQ.js";
|
|
20
|
+
import { B as Ne } from "./chunks/chip.DcpP3zb6.js";
|
|
21
21
|
import { B as Re } from "./chunks/click-outside.C1Ud8AA2.js";
|
|
22
|
-
import { c as je, b as
|
|
23
|
-
import { c as He } from "./chunks/country.
|
|
22
|
+
import { c as je, b as Ue, a as ze, B as Ke } from "./chunks/code-snippet.CKrxKjkQ.js";
|
|
23
|
+
import { c as He } from "./chunks/country.RVvsGwuV.js";
|
|
24
24
|
import { a as We, B as Ze, u as Je } from "./chunks/country.types.C0Q_hhgJ.js";
|
|
25
|
-
import { c as Xe, B as $e } from "./chunks/currency.
|
|
26
|
-
import { B as tt, a as ot } from "./chunks/date.
|
|
27
|
-
import { B as nt, b as rt, c as st, a as Bt } from "./chunks/empty-state.
|
|
28
|
-
import { f as mt } from "./chunks/file-uploader.
|
|
29
|
-
import { B as ut, b as dt, a as lt, c as ct } from "./chunks/filter-bar.
|
|
30
|
-
import { f as xt, a as St, c as Tt, b as gt } from "./chunks/form-layout-title.
|
|
31
|
-
import { h as ht } from "./chunks/header-with-views.
|
|
25
|
+
import { c as Xe, B as $e } from "./chunks/currency.CN4UnCx8.js";
|
|
26
|
+
import { B as tt, a as ot } from "./chunks/date.4GAXrgy5.js";
|
|
27
|
+
import { B as nt, b as rt, c as st, a as Bt } from "./chunks/empty-state.BTaeZdQu.js";
|
|
28
|
+
import { f as mt } from "./chunks/file-uploader.Vac1Cu0i.js";
|
|
29
|
+
import { B as ut, b as dt, a as lt, c as ct } from "./chunks/filter-bar.uUpoP-XZ.js";
|
|
30
|
+
import { f as xt, a as St, c as Tt, b as gt } from "./chunks/form-layout-title.DdRqnXXi.js";
|
|
31
|
+
import { h as ht } from "./chunks/header-with-views.BVHdSAKp.js";
|
|
32
32
|
import { _ as Et, B as Ct, a as Dt } from "./chunks/image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js";
|
|
33
|
-
import { B as It } from "./chunks/info-icon.
|
|
34
|
-
import { B as Pt, b as Ft, e as
|
|
35
|
-
import { i as Vt, m as
|
|
36
|
-
import { i as
|
|
37
|
-
import { B as Ht } from "./chunks/inspector.
|
|
33
|
+
import { B as It } from "./chunks/info-icon.Bl0iKUfC.js";
|
|
34
|
+
import { B as Pt, b as Ft, e as Ot, c as kt, d as Gt, a as wt } from "./chunks/input-field.CgbiOju9.js";
|
|
35
|
+
import { i as Vt, m as Nt, r as At, b as Rt, c as _t, a as jt } from "./chunks/input-field-password.DkIWrrxy.js";
|
|
36
|
+
import { i as zt, B as Kt } from "./chunks/input-field-phone-number.EXlRu8qq.js";
|
|
37
|
+
import { B as Ht } from "./chunks/inspector.BGtTMtE0.js";
|
|
38
38
|
import { B as Wt } from "./chunks/inspector.types.DyHwE18g.js";
|
|
39
|
-
import { l as Jt, a as Qt } from "./chunks/layout-row.
|
|
40
|
-
import { B as $t, a as eo } from "./chunks/loading-indicator.
|
|
41
|
-
import { B as oo, a as ao } from "./chunks/link.
|
|
42
|
-
import { B as ro, a as so, b as Bo, f as io, g as mo, h as po, c as uo, u as lo } from "./chunks/toggle-button.
|
|
43
|
-
import { _ as fo } from "./chunks/modal.vue_vue_type_script_setup_true_lang.
|
|
44
|
-
import { c as So, e as To, f as go, g as yo, d as ho, b as bo, B as Eo, a as Co } from "./chunks/base-modal.
|
|
45
|
-
import { m as vo, B as Io } from "./chunks/modal-fullscreen.
|
|
46
|
-
import { B as Po } from "./chunks/header.
|
|
47
|
-
import { B as
|
|
48
|
-
import { B as
|
|
39
|
+
import { l as Jt, a as Qt } from "./chunks/layout-row.BPfOPn4x.js";
|
|
40
|
+
import { B as $t, a as eo } from "./chunks/loading-indicator.VHi5tbZa.js";
|
|
41
|
+
import { B as oo, a as ao } from "./chunks/link.cwPmWlsk.js";
|
|
42
|
+
import { B as ro, a as so, b as Bo, f as io, g as mo, h as po, c as uo, u as lo } from "./chunks/toggle-button.CQl9HneO.js";
|
|
43
|
+
import { _ as fo } from "./chunks/modal.vue_vue_type_script_setup_true_lang.TFh7p51f.js";
|
|
44
|
+
import { c as So, e as To, f as go, g as yo, d as ho, b as bo, B as Eo, a as Co } from "./chunks/base-modal.BrBcILSe.js";
|
|
45
|
+
import { m as vo, B as Io } from "./chunks/modal-fullscreen.-Q-7GMyT.js";
|
|
46
|
+
import { B as Po } from "./chunks/header.Cd1P8lYK.js";
|
|
47
|
+
import { B as Oo } from "./chunks/pagination.DW_HPEIu.js";
|
|
48
|
+
import { B as Go } from "./chunks/payment-method.CDnn1bjo.js";
|
|
49
49
|
import { B as Mo } from "./chunks/payment-method.types.BqtH7RM2.js";
|
|
50
|
-
import { B as
|
|
51
|
-
import { p as Ro, B as _o, a as jo } from "./chunks/promo-banner.
|
|
52
|
-
import { b as
|
|
53
|
-
import { r as qo } from "./chunks/rich-text-editor.
|
|
54
|
-
import { B as Zo, b as Jo, a as Qo } from "./chunks/search-bar.
|
|
55
|
-
import { s as $o } from "./chunks/secondary-nav.
|
|
56
|
-
import { B as ta } from "./chunks/segmented-control.
|
|
50
|
+
import { B as No } from "./chunks/popover.types.COM6oQgq.js";
|
|
51
|
+
import { p as Ro, B as _o, a as jo } from "./chunks/promo-banner.BbqIA4Ce.js";
|
|
52
|
+
import { b as zo, B as Ko, a as Yo } from "./chunks/radio-group.CbLIPi7h.js";
|
|
53
|
+
import { r as qo } from "./chunks/rich-text-editor.C0hJeV4H.js";
|
|
54
|
+
import { B as Zo, b as Jo, a as Qo } from "./chunks/search-bar.CvAi2t3-.js";
|
|
55
|
+
import { s as $o } from "./chunks/secondary-nav.yntS8-u5.js";
|
|
56
|
+
import { B as ta } from "./chunks/segmented-control.CRSdIvha.js";
|
|
57
57
|
import { B as aa } from "./chunks/segmented-control.types.BHRLV8KU.js";
|
|
58
|
-
import { B as ra, s as sa, a as Ba } from "./chunks/selection-card-group.
|
|
59
|
-
import { a as ma, B as pa, s as ua } from "./chunks/sidepanel.
|
|
60
|
-
import { s as la, B as ca } from "./chunks/status.types.
|
|
61
|
-
import { a as xa, s as Sa, B as Ta, b as ga } from "./chunks/step.
|
|
62
|
-
import { B as ha, a as ba } from "./chunks/structured-list-item.
|
|
63
|
-
import { s as Ca, a as Da, d as va, _ as Ia, b as La, B as Pa, c as Fa, e as
|
|
64
|
-
import { a as
|
|
65
|
-
import { B as Va, a as
|
|
66
|
-
import { B as Ra } from "./chunks/textarea.
|
|
67
|
-
import { t as ja, b as
|
|
68
|
-
import { t as Wa } from "./chunks/toast.
|
|
69
|
-
import { B as Ja, b as Qa, a as Xa } from "./chunks/toggle.
|
|
70
|
-
import { _ as en } from "./chunks/tutorial.vue_vue_type_script_setup_true_lang.
|
|
71
|
-
import * as
|
|
72
|
-
import { a as on, d as an } from "./chunks/dashboard-section.
|
|
73
|
-
import { d as rn } from "./chunks/data-grid-template.
|
|
58
|
+
import { B as ra, s as sa, a as Ba } from "./chunks/selection-card-group.Cu3V8h4R.js";
|
|
59
|
+
import { a as ma, B as pa, s as ua } from "./chunks/sidepanel.z18XSO3M.js";
|
|
60
|
+
import { s as la, B as ca } from "./chunks/status.types.-l2qJxLn.js";
|
|
61
|
+
import { a as xa, s as Sa, B as Ta, b as ga } from "./chunks/step.BMSjltwl.js";
|
|
62
|
+
import { B as ha, a as ba } from "./chunks/structured-list-item.CD1nMqzH.js";
|
|
63
|
+
import { s as Ca, a as Da, d as va, _ as Ia, b as La, B as Pa, c as Fa, e as Oa } from "./chunks/summary-grid.types.BHuDlPDw.js";
|
|
64
|
+
import { a as Ga, B as wa } from "./chunks/tab.C3R_VoJL.js";
|
|
65
|
+
import { B as Va, a as Na } from "./chunks/tag.B6AmSws9.js";
|
|
66
|
+
import { B as Ra } from "./chunks/textarea.DfQLxj_w.js";
|
|
67
|
+
import { t as ja, b as Ua, a as za, c as Ka, B as Ya, d as Ha } from "./chunks/timeline-item.25y9USE-.js";
|
|
68
|
+
import { t as Wa } from "./chunks/toast.DIhABAW8.js";
|
|
69
|
+
import { B as Ja, b as Qa, a as Xa } from "./chunks/toggle.C8k7NQ7y.js";
|
|
70
|
+
import { _ as en } from "./chunks/tutorial.vue_vue_type_script_setup_true_lang.BProZFmI.js";
|
|
71
|
+
import * as r from "zod";
|
|
72
|
+
import { a as on, d as an } from "./chunks/dashboard-section.Cll3tn0q.js";
|
|
73
|
+
import { d as rn } from "./chunks/data-grid-template.CTRHofoW.js";
|
|
74
74
|
import { D as Bn } from "./chunks/date-input.BqBdAO1E.js";
|
|
75
75
|
import { a as pn, B as un } from "./chunks/keyboard-navigation.pB8weElW.js";
|
|
76
|
-
import { a as ln, B as cn, a as fn, B as xn } from "./chunks/use-cached-selected-values.
|
|
76
|
+
import { a as ln, B as cn, a as fn, B as xn } from "./chunks/use-cached-selected-values.CELe-MsT.js";
|
|
77
77
|
import { B as Tn } from "./chunks/directive.Cbdox5VL.js";
|
|
78
|
-
import { b as yn, c as hn, d as bn } from "./chunks/tooltip.
|
|
79
|
-
import { _ as Cn, a as Dn, b as vn, c as In, d as Ln } from "./chunks/dropdown-tag.
|
|
80
|
-
import { B as Fn, a as
|
|
81
|
-
import { C as wn, C as Mn } from "./chunks/calendar.
|
|
82
|
-
import { C as
|
|
83
|
-
import { c as Rn, B as _n } from "./chunks/checkbox-group.
|
|
84
|
-
import { u as
|
|
85
|
-
import { R as
|
|
86
|
-
function
|
|
78
|
+
import { b as yn, c as hn, d as bn } from "./chunks/tooltip.lBnko9QV.js";
|
|
79
|
+
import { _ as Cn, a as Dn, b as vn, c as In, d as Ln } from "./chunks/dropdown-tag.DlFpUeXa.js";
|
|
80
|
+
import { B as Fn, a as On, b as kn } from "./chunks/button-actions.types.BptAXjD8.js";
|
|
81
|
+
import { C as wn, C as Mn } from "./chunks/calendar.DFHiga9k.js";
|
|
82
|
+
import { C as Nn } from "./chunks/minus-small.DYIyF5XW.js";
|
|
83
|
+
import { c as Rn, B as _n } from "./chunks/checkbox-group.DIXgr1WQ.js";
|
|
84
|
+
import { u as Un, a as zn } from "./chunks/use-country-phon-code.Bui3zD6W.js";
|
|
85
|
+
import { R as Yn } from "./chunks/radio-input.odN9FOyr.js";
|
|
86
|
+
function O(e) {
|
|
87
87
|
return e;
|
|
88
88
|
}
|
|
89
89
|
function p(e) {
|
|
90
|
-
if (
|
|
90
|
+
if (r && e instanceof r.ZodObject)
|
|
91
91
|
return Object.fromEntries(
|
|
92
|
-
Object.entries(e.shape).map(([t,
|
|
92
|
+
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])
|
|
93
93
|
);
|
|
94
94
|
}
|
|
95
95
|
function E(e) {
|
|
96
96
|
return e.path.join(".");
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function k({
|
|
99
99
|
validationSchema: e
|
|
100
100
|
}) {
|
|
101
|
-
const t = T({}),
|
|
102
|
-
t.value = {},
|
|
101
|
+
const t = T({}), o = d({}), a = d(p(e)), i = () => {
|
|
102
|
+
t.value = {}, o.value = {};
|
|
103
103
|
}, x = () => {
|
|
104
|
-
i(),
|
|
104
|
+
i(), a.value = p(e);
|
|
105
105
|
};
|
|
106
106
|
return {
|
|
107
107
|
// Values
|
|
108
|
-
errorBag:
|
|
108
|
+
errorBag: o,
|
|
109
109
|
errors: t,
|
|
110
|
-
values:
|
|
110
|
+
values: a,
|
|
111
111
|
// Methods
|
|
112
112
|
handleReset: () => x(),
|
|
113
113
|
submitForm: (S) => () => {
|
|
114
114
|
i();
|
|
115
|
-
const u = e.safeParse(
|
|
116
|
-
u.success ? S(
|
|
115
|
+
const u = e.safeParse(a.value);
|
|
116
|
+
u.success ? S(a.value) : u.error.issues.forEach((m) => {
|
|
117
117
|
const B = E(m);
|
|
118
|
-
t.value[B] || (t.value[B] = m.message),
|
|
118
|
+
t.value[B] || (t.value[B] = m.message), o.value[B] ? o.value[B].push(m.message) : o.value[B] = [m.message];
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
123
|
const c = Symbol("use-bento-theme");
|
|
124
|
-
function
|
|
124
|
+
function G() {
|
|
125
125
|
const e = g(c, null);
|
|
126
126
|
return e ? { ...e } : (b("useBentoTheme does not work without Vue.use(BentoPlugin)"), {
|
|
127
127
|
getTheme: () => {
|
|
@@ -136,36 +136,36 @@ const C = (e) => {
|
|
|
136
136
|
var e;
|
|
137
137
|
return ((e = document.body.className.match(/b-\w+-theme/)) == null ? void 0 : e[0]) ?? "";
|
|
138
138
|
}, D = () => window.matchMedia("(prefers-color-scheme: dark)").matches ? "b-dark-theme" : "b-light-theme";
|
|
139
|
-
var
|
|
140
|
-
const
|
|
141
|
-
const t = f(),
|
|
142
|
-
|
|
139
|
+
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 || {});
|
|
140
|
+
const s = (e) => {
|
|
141
|
+
const t = f(), o = D(), a = e === "b-system" ? o : e;
|
|
142
|
+
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);
|
|
143
143
|
}, v = (e) => {
|
|
144
144
|
const t = {
|
|
145
145
|
getTheme: f,
|
|
146
|
-
setTheme:
|
|
146
|
+
setTheme: s
|
|
147
147
|
};
|
|
148
148
|
e.provide(c, t);
|
|
149
149
|
}, w = {
|
|
150
150
|
name: "BentoVue",
|
|
151
151
|
install: async (e, {
|
|
152
|
-
theme: t =
|
|
153
|
-
withToast:
|
|
154
|
-
withUtilityClasses:
|
|
152
|
+
theme: t = n.BENTO_LIGHT,
|
|
153
|
+
withToast: o = !1,
|
|
154
|
+
withUtilityClasses: a = !1,
|
|
155
155
|
withDesignTokensCSSInjection: i = !0
|
|
156
156
|
}) => {
|
|
157
|
-
v(e),
|
|
157
|
+
v(e), o && C(e), i && (l(
|
|
158
158
|
"Using default setting withDesignTokensCSSInjection set to true in BentoVue plugin",
|
|
159
159
|
`Please disable CSS injection by setting withDesignTokensCSSInjection to false in BentoVue plugin options as highlighted here:
|
|
160
160
|
https://adyen-bento.netlify.app/?path=/docs/welcome-getting-started--docs#import-css-variables`,
|
|
161
161
|
"2.0.0"
|
|
162
|
-
), t ===
|
|
162
|
+
), 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 && l("Using `BentoTheme.BENTO`", "Please use `BentoTheme.BENTO_LIGHT` instead", "2.0.0"), s(n.BENTO_LIGHT));
|
|
163
163
|
}
|
|
164
164
|
};
|
|
165
165
|
export {
|
|
166
166
|
H as BentoAccordion,
|
|
167
167
|
q as BentoAccordionItem,
|
|
168
|
-
|
|
168
|
+
K as BentoActionBar,
|
|
169
169
|
Z as BentoAlert,
|
|
170
170
|
J as BentoAlertEvent,
|
|
171
171
|
Q as BentoAlertTypeOption,
|
|
@@ -174,8 +174,8 @@ export {
|
|
|
174
174
|
oe as BentoButton,
|
|
175
175
|
ro as BentoButtonActions,
|
|
176
176
|
Fn as BentoButtonActionsLayout,
|
|
177
|
-
|
|
178
|
-
|
|
177
|
+
On as BentoButtonActionsLayoutBasic,
|
|
178
|
+
kn as BentoButtonActionsLayoutExtended,
|
|
179
179
|
ae as BentoButtonPropClass,
|
|
180
180
|
ne as BentoButtonVariant,
|
|
181
181
|
se as BentoCard,
|
|
@@ -185,14 +185,14 @@ export {
|
|
|
185
185
|
Me as BentoCheckboxEvent,
|
|
186
186
|
Rn as BentoCheckboxGroup,
|
|
187
187
|
_n as BentoCheckboxGroupVariant,
|
|
188
|
-
|
|
189
|
-
|
|
188
|
+
Nn as BentoCheckboxState,
|
|
189
|
+
Ne as BentoChip,
|
|
190
190
|
Re as BentoClickOutside,
|
|
191
191
|
Tn as BentoClickOutsideDirective,
|
|
192
192
|
je as BentoCodeSnippet,
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
193
|
+
Ue as BentoCodeSnippetEvent,
|
|
194
|
+
ze as BentoCodeSnippetSupportedLanguage,
|
|
195
|
+
Ke as BentoCodeSnippetVariant,
|
|
196
196
|
de as BentoColumnOverflow,
|
|
197
197
|
He as BentoCountry,
|
|
198
198
|
We as BentoCountryCode,
|
|
@@ -218,7 +218,7 @@ export {
|
|
|
218
218
|
Ce as BentoDateRangePicker,
|
|
219
219
|
De as BentoDateRangePickerEvent,
|
|
220
220
|
Mn as BentoDateRangePickerFirstDayOfWeek,
|
|
221
|
-
|
|
221
|
+
ke as BentoDivider,
|
|
222
222
|
Ie as BentoDropdown,
|
|
223
223
|
Cn as BentoDropdownAvatar,
|
|
224
224
|
Dn as BentoDropdownCountry,
|
|
@@ -249,12 +249,12 @@ export {
|
|
|
249
249
|
It as BentoInfoIcon,
|
|
250
250
|
Pt as BentoInputField,
|
|
251
251
|
Ft as BentoInputFieldElementPosition,
|
|
252
|
-
|
|
252
|
+
Ot as BentoInputFieldEvent,
|
|
253
253
|
Vt as BentoInputFieldPassword,
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
254
|
+
zt as BentoInputFieldPhoneNumber,
|
|
255
|
+
Kt as BentoInputFieldPhoneNumberCountries,
|
|
256
|
+
kt as BentoInputFieldStateClass,
|
|
257
|
+
Gt as BentoInputFieldType,
|
|
258
258
|
wt as BentoInputFieldVariant,
|
|
259
259
|
Ht as BentoInspector,
|
|
260
260
|
Wt as BentoInspectorSizeOptions,
|
|
@@ -283,18 +283,18 @@ export {
|
|
|
283
283
|
bo as BentoModalSize,
|
|
284
284
|
Eo as BentoModalVariant,
|
|
285
285
|
Co as BentoModalVariantMapping,
|
|
286
|
-
|
|
287
|
-
|
|
286
|
+
Oo as BentoPagination,
|
|
287
|
+
Go as BentoPaymentMethod,
|
|
288
288
|
Mo as BentoPaymentMethodType,
|
|
289
289
|
po as BentoPopover,
|
|
290
|
-
|
|
290
|
+
No as BentoPopoverPositions,
|
|
291
291
|
Ro as BentoPromoBanner,
|
|
292
292
|
_o as BentoPromoBannerColor,
|
|
293
293
|
jo as BentoPromoBannerLayout,
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
294
|
+
zo as BentoRadioButton,
|
|
295
|
+
Yn as BentoRadioButtonStateClass,
|
|
296
|
+
Ko as BentoRadioGroup,
|
|
297
|
+
Yo as BentoRadioGroupVariant,
|
|
298
298
|
qo as BentoRichTextEditor,
|
|
299
299
|
Zo as BentoSearchBar,
|
|
300
300
|
Jo as BentoSearchBarEvent,
|
|
@@ -323,18 +323,18 @@ export {
|
|
|
323
323
|
La as BentoSummaryGridItemPercentage,
|
|
324
324
|
Pa as BentoSummaryGridItemSize,
|
|
325
325
|
Fa as BentoSummaryGridItemText,
|
|
326
|
-
|
|
327
|
-
|
|
326
|
+
Oa as BentoSummaryGridItemTrendDirection,
|
|
327
|
+
Ga as BentoTab,
|
|
328
328
|
wa as BentoTabs,
|
|
329
329
|
Va as BentoTag,
|
|
330
|
-
|
|
330
|
+
Na as BentoTagVariant,
|
|
331
331
|
Ra as BentoTextarea,
|
|
332
|
-
|
|
332
|
+
n as BentoTheme,
|
|
333
333
|
ja as BentoTimeline,
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
334
|
+
Ua as BentoTimelineGapUnit,
|
|
335
|
+
za as BentoTimelineItem,
|
|
336
|
+
Ka as BentoTimelineItemVariant,
|
|
337
|
+
Ya as BentoTimelineShowMorePlacement,
|
|
338
338
|
Ha as BentoTimelineStatus,
|
|
339
339
|
Wa as BentoToast,
|
|
340
340
|
Ja as BentoToggle,
|
|
@@ -348,23 +348,23 @@ export {
|
|
|
348
348
|
R as BentoTypography,
|
|
349
349
|
_ as BentoTypographyElement,
|
|
350
350
|
j as BentoTypographyModifier,
|
|
351
|
-
|
|
351
|
+
U as BentoTypographyVariant,
|
|
352
352
|
Bn as DateFormat,
|
|
353
353
|
w as default,
|
|
354
|
-
|
|
355
|
-
|
|
354
|
+
Nt as minLength,
|
|
355
|
+
At as requireLowercase,
|
|
356
356
|
Rt as requireNumeric,
|
|
357
357
|
_t as requireSpecialCharacter,
|
|
358
358
|
jt as requireUppercase,
|
|
359
|
-
|
|
360
|
-
|
|
359
|
+
O as toTypedSchema,
|
|
360
|
+
G as useBentoTheme,
|
|
361
361
|
c as useBentoThemeKey,
|
|
362
|
-
|
|
362
|
+
N as useBentoToastController,
|
|
363
363
|
lo as useClickOutside,
|
|
364
364
|
Je as useCountryCapital,
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
365
|
+
Un as useCountryName,
|
|
366
|
+
zn as useCountryPhoneCode,
|
|
367
|
+
k as useForm,
|
|
368
368
|
Le as useSearchBarFilter
|
|
369
369
|
};
|
|
370
370
|
//# sourceMappingURL=index.js.map
|
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-theme/use-bento-theme.types.ts","../../vue2/src/composables/use-bento-theme/use-bento-theme.ts","../../vue2/src/composables/use-bento-toast-controller/install.ts","../../vue2/src/composables/use-bento-theme/install.ts","../../vue2/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","inject","printDevelopmentWarning","installToast","Vue","toastStackInjectionKey","createToastStack","getTheme","_a","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":["../../vue2/src/composables/use-form-validate/use-form.ts","../../vue2/src/composables/use-bento-theme/use-bento-theme.types.ts","../../vue2/src/composables/use-bento-theme/use-bento-theme.ts","../../vue2/src/composables/use-bento-toast-controller/install.ts","../../vue2/src/composables/use-bento-theme/install.ts","../../vue2/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","inject","printDevelopmentWarning","installToast","Vue","toastStackInjectionKey","createToastStack","getTheme","_a","getThemeForSystemPreference","BentoTheme","setTheme","theme","currentTheme","systemTheme","themeToSet","installTheme","themeProvider","plugin","withToast","withUtilityClasses","withDesignTokensCSSInjection","deprecate"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBO,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;AA6CO,SAASC,EAA6B;AAAA,EACzC,kBAAAC;AACJ,GAUE;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;ACxLa,MAAAE,IAAmB,OAAO,iBAAiB;ACqBjD,SAASC,IAA+B;AACrC,QAAAC,IAEAC,EAAOH,GAAkB,IAAI;AAEnC,SAAKE,IAWE,EAAE,GAAGA,EAAqB,KAV7BE,EAAwB,0DAA0D,GAG3E;AAAA,IACH,UAAU,MAAA;AAAA;AAAA,IACV,UAAU,MAAM;AAAA;AAAA,EACpB;AAKR;ACjCA,MAAeC,IAAA,CAAOC,MAAA;AAMb,EAAAA,EAAY,QAAQC,GAAwBC,GAAkB;AAEvE,GCZMC,IAAW,MAAA;;AAAM,WAAAC,IAAA,SAAS,KAAK,UAAU,MAAM,aAAa,MAA3C,gBAAAA,EAA+C,OAAM;AAAA,GACtEC,IAA8B,MACN,OAAO,WAAW,8BAA8B,EAAE,UAGjE,iBAGJ;AAGC,IAAAC,sBAAAA,OAIRA,EAAA,SAAS,kBACTA,EAAA,aAAa,sBAKbA,EAAA,QAAQ,IAERA,EAAA,cAAc,iBACdA,EAAA,aAAa,gBACbA,EAAA,eAAe,YAdPA,IAAAA,KAAA,CAAA,CAAA;AAiBC,MAAAC,IAAW,CAACC,MAAsB;AAC3C,QAAMC,IAAeN,EAAS,GACxBO,IAAcL,EAA4B,GAC1CM,IAAaH,MAAU,aAA0BE,IAAcF;AAEjE,EAAAG,MAAe,mBAA0BA,MAAe,KAC/C,SAAA,gBAAgB,MAAM,cAAc,UACtCA,MAAe,mBACb,SAAA,gBAAgB,MAAM,cAAc,SAI7CF,EAAa,UAAUA,MAAiBE,KAC/B,SAAA,KAAK,UAAU,OAAOF,CAAY,GAI3CE,EAAW,UACF,SAAA,KAAK,UAAU,IAAIA,CAAU;AAE9C,GAMeC,IAAA,CAAOZ,MAAA;AAClB,QAAMa,IAAgB;AAAA,IAClB,UAAAV;AAAA,IACA,UAAAI;AAAA,EACJ;AAOK,EAAAP,EAAY,QAAQN,GAAkBmB,CAAa;AAE5D,GC1DMC,IAAuC;AAAA,EACzC,MAAM;AAAA,EACN,SAAS,OACLd,GACA;AAAA,IACI,OAAAQ,IAAQF,EAAW;AAAA,IACnB,WAAAS,IAAY;AAAA,IACZ,oBAAAC,IAAqB;AAAA,IACrB,8BAAAC,IAA+B;AAAA,EAAA,MAElC;AACD,IAAAL,EAAaZ,CAAG,GAEZe,KACAhB,EAAaC,CAAG,GAEhBiB,MACAC;AAAA,MACI;AAAA,MACA;AAAA;AAAA,MACA;AAAA,IACJ,GAEIV,MAAUF,EAAW,aACrB,MAAM,OAAO,oEAAoE,IAEjF,MAAM,OAAO,yDAAyD,GAGtEU,KACA,MAAM,OAAO,uDAAuD,IAIxER,MAAUF,EAAW,aACrBC,EAASD,EAAW,UAAU,IACvBE,MAAUF,EAAW,eAC5BC,EAASD,EAAW,YAAY,IACzBE,MAAUF,EAAW,aAC5BC,EAASD,EAAW,UAAU,KACvBE,MAAUF,EAAW,SAClBY,EAAA,4BAA4B,+CAA+C,OAAO,GAC5FX,EAASD,EAAW,WAAW;AAAA,EAGnC;AAER;"}
|
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.DkIWrrxy.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.CgbiOju9.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.DFHiga9k.js";
|
|
2
|
+
import { C as p, a as l } from "./chunks/copy.C4DAAiPw.js";
|
|
3
|
+
import { C as I } from "./chunks/controls-group.CXVHTaYp.js";
|
|
4
|
+
import { B as x, b as E, a as f, D as m } from "./chunks/dialog-page.VSJgHY3C.js";
|
|
5
|
+
import { E as d, F as N } from "./chunks/error-message.B1P5ictH.js";
|
|
6
|
+
import { F as O } from "./chunks/fixed-scroller.DSGxXiAH.js";
|
|
7
7
|
import { G as B, a as A } from "./chunks/grid-layout.DDaRNz4-.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.Ct79L1O8.js";
|
|
9
|
+
import { b as g, c as y, u as D } from "./chunks/use-cached-selected-values.CELe-MsT.js";
|
|
10
|
+
import { L as S } from "./chunks/listbox-option-tag.CDIkX7nh.js";
|
|
11
|
+
import { e as W, d as h } from "./chunks/toggle-button.CQl9HneO.js";
|
|
12
|
+
import { B as H, a as J, T as K } from "./chunks/tooltip.lBnko9QV.js";
|
|
13
|
+
import { B as Y } from "./chunks/button-actions-with-menu.CBuoSd3w.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
package/dist/menu.js
CHANGED
package/dist/modal-fullscreen.js
CHANGED