@adyen/bento-vue2 1.68.2 → 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/components.d.ts +1 -0
- package/dist/@types/index.d.ts +829 -2056
- 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-button.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions-with-menu.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/chip.css +1 -1
- package/dist/assets/code-snippet.css +1 -1
- package/dist/assets/controls-group.css +1 -1
- package/dist/assets/copy.css +1 -1
- package/dist/assets/country.css +1 -1
- package/dist/assets/currency.css +1 -1
- package/dist/assets/dashed-underline.css +1 -1
- package/dist/assets/data-grid-template.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/divider.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown-tag.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/empty-state.css +1 -1
- package/dist/assets/error-message.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/focus-trap.css +1 -1
- package/dist/assets/footer-actions.css +1 -1
- package/dist/assets/form-layout-title.css +1 -1
- package/dist/assets/grid-layout.css +1 -1
- package/dist/assets/header-meta.css +1 -1
- package/dist/assets/header-with-views.css +1 -1
- package/dist/assets/header.css +1 -1
- package/dist/assets/info-icon.css +1 -1
- package/dist/assets/input-field-password.css +1 -1
- package/dist/assets/input-field-phone-number.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/layout-row.css +1 -1
- package/dist/assets/link.css +1 -1
- package/dist/assets/listbox-option-tag.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/payment-method.css +1 -1
- package/dist/assets/popper-container.css +1 -1
- package/dist/assets/promo-banner.css +1 -1
- package/dist/assets/radio-group.css +1 -1
- package/dist/assets/radio-input.css +1 -1
- package/dist/assets/rich-text-editor.css +1 -1
- package/dist/assets/search-bar.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/segmented-control.css +1 -1
- package/dist/assets/selection-card-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/status.css +1 -1
- package/dist/assets/step.css +1 -1
- package/dist/assets/structured-list-item.css +1 -1
- package/dist/assets/tab.css +1 -1
- package/dist/assets/tag.css +1 -1
- package/dist/assets/textarea.css +1 -1
- package/dist/assets/timeline-item.css +1 -1
- package/dist/assets/toast.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/tutorial.css +1 -1
- package/dist/assets/typography.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/avatar.js +1 -1
- package/dist/button.js +9 -9
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chip.js +1 -1
- package/dist/chunks/{accordion-item.BNtdoVto.js → accordion-item.CoqaoVnC.js} +3 -3
- package/dist/chunks/accordion-item.CoqaoVnC.js.map +1 -0
- package/dist/chunks/{action-bar.DQb7WVVd.js → action-bar.LaW4Tzlo.js} +18 -19
- package/dist/chunks/action-bar.LaW4Tzlo.js.map +1 -0
- package/dist/chunks/{alert.c1rhDDrU.js → alert.CMyL-zWT.js} +17 -17
- package/dist/chunks/alert.CMyL-zWT.js.map +1 -0
- package/dist/chunks/aria-label.CaUURpnB.js.map +1 -1
- package/dist/chunks/{avatar.BgwjpLQO.js → avatar.KdcsNOsm.js} +2 -2
- package/dist/chunks/avatar.KdcsNOsm.js.map +1 -0
- package/dist/chunks/{base-button.-gx_u8Bd.js → base-button.BB5tkzjh.js} +6 -6
- package/dist/chunks/base-button.BB5tkzjh.js.map +1 -0
- package/dist/chunks/{base-modal.CkkfT6r6.js → base-modal.D8Rh5NUz.js} +19 -19
- package/dist/chunks/base-modal.D8Rh5NUz.js.map +1 -0
- package/dist/chunks/bin.Ddb69cr1.js +24 -0
- package/dist/chunks/bin.Ddb69cr1.js.map +1 -0
- package/dist/chunks/button-actions-with-menu.BDpWI2Fh.js +85 -0
- package/dist/chunks/button-actions-with-menu.BDpWI2Fh.js.map +1 -0
- package/dist/chunks/button-actions.types.BptAXjD8.js +8 -0
- package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -0
- package/dist/chunks/{button.hF-nD1Og.js → button.CilT7NmM.js} +4 -4
- package/dist/chunks/button.CilT7NmM.js.map +1 -0
- package/dist/chunks/{calendar.DvIQEYwN.js → calendar.DYI4omOF.js} +25 -25
- package/dist/chunks/calendar.DYI4omOF.js.map +1 -0
- package/dist/chunks/{card.CASAAsuJ.js → card.C5Uub0Fb.js} +20 -19
- package/dist/chunks/card.C5Uub0Fb.js.map +1 -0
- package/dist/chunks/{checkbox-group.QdX-NrSG.js → checkbox-group.CLYgcDZl.js} +6 -6
- package/dist/chunks/checkbox-group.CLYgcDZl.js.map +1 -0
- package/dist/chunks/{checkbox-input.CNWigbX4.js → checkbox-input.B0NsfSNR.js} +2 -2
- package/dist/chunks/checkbox-input.B0NsfSNR.js.map +1 -0
- package/dist/chunks/{checkbox.DCD6SSXC.js → checkbox.lwLS8MMI.js} +6 -6
- package/dist/chunks/checkbox.lwLS8MMI.js.map +1 -0
- package/dist/chunks/{chip.OV0EWIP3.js → chip.Bfi-ff5E.js} +10 -10
- package/dist/chunks/chip.Bfi-ff5E.js.map +1 -0
- package/dist/chunks/{code-snippet.dIKi0D7d.js → code-snippet.DsHNr3DK.js} +8 -8
- package/dist/chunks/code-snippet.DsHNr3DK.js.map +1 -0
- package/dist/chunks/{controls-group.CccuLkgP.js → controls-group.az4jCZQF.js} +30 -27
- package/dist/chunks/controls-group.az4jCZQF.js.map +1 -0
- package/dist/chunks/{copy.CF8Fzu2Y.js → copy.Cb7gQhU4.js} +15 -15
- package/dist/chunks/copy.Cb7gQhU4.js.map +1 -0
- package/dist/chunks/{country.melpzEsY.js → country.1yIZNjdj.js} +7 -7
- package/dist/chunks/country.1yIZNjdj.js.map +1 -0
- package/dist/chunks/country.types.C0Q_hhgJ.js.map +1 -1
- package/dist/chunks/{currency.BM9OXTqe.js → currency.MT3baDtO.js} +3 -3
- package/dist/chunks/currency.MT3baDtO.js.map +1 -0
- package/dist/chunks/{dashboard-section.BIe6eVHq.js → dashboard-section.C6zV9yL-.js} +4 -4
- package/dist/chunks/{dashboard-section.BIe6eVHq.js.map → dashboard-section.C6zV9yL-.js.map} +1 -1
- package/dist/chunks/{dashed-underline.BbH6Lnd2.js → dashed-underline.Dry6H2zs.js} +12 -13
- package/dist/chunks/dashed-underline.Dry6H2zs.js.map +1 -0
- package/dist/chunks/{data-grid-template.Co0Ecr79.js → data-grid-template.Dlevchxd.js} +5 -5
- package/dist/chunks/data-grid-template.Dlevchxd.js.map +1 -0
- package/dist/chunks/{data-grid.erxjh5TN.js → data-grid.CrvFYgjF.js} +1234 -1182
- package/dist/chunks/data-grid.CrvFYgjF.js.map +1 -0
- package/dist/chunks/{date-picker.DGIS6Pp-.js → date-picker.DPasFJS2.js} +11 -11
- package/dist/chunks/date-picker.DPasFJS2.js.map +1 -0
- package/dist/chunks/date-range-picker.BIj17geh.js +967 -0
- package/dist/chunks/date-range-picker.BIj17geh.js.map +1 -0
- package/dist/chunks/{date.BfyWX2PY.js → date.BTdCYdkj.js} +2 -2
- package/dist/chunks/{date.BfyWX2PY.js.map → date.BTdCYdkj.js.map} +1 -1
- package/dist/chunks/{dialog-page.CLHZqQeU.js → dialog-page.D20YBRQF.js} +9 -9
- package/dist/chunks/dialog-page.D20YBRQF.js.map +1 -0
- package/dist/chunks/{divider.Cc4JFWG_.js → divider.CFbtmKeQ.js} +6 -6
- package/dist/chunks/divider.CFbtmKeQ.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.94q6opSD.js → dropdown-default-textbox.CDm-PQfc.js} +81 -80
- package/dist/chunks/dropdown-default-textbox.CDm-PQfc.js.map +1 -0
- package/dist/chunks/dropdown-tag.cmaM8C2X.js +306 -0
- package/dist/chunks/dropdown-tag.cmaM8C2X.js.map +1 -0
- package/dist/chunks/{dropdown.DazYAy4B.js → dropdown.CEZXrC1C.js} +43 -43
- package/dist/chunks/dropdown.CEZXrC1C.js.map +1 -0
- package/dist/chunks/{empty-state.mtXfb1BB.js → empty-state.DAbj9xWF.js} +6 -6
- package/dist/chunks/empty-state.DAbj9xWF.js.map +1 -0
- package/dist/chunks/{error-message.BgxnwPLF.js → error-message.D_QAOG-5.js} +9 -9
- package/dist/chunks/{error-message.BgxnwPLF.js.map → error-message.D_QAOG-5.js.map} +1 -1
- package/dist/chunks/es6.MoTTyETW.js +12 -0
- package/dist/chunks/es6.MoTTyETW.js.map +1 -0
- package/dist/chunks/events.CMzGybJJ.js.map +1 -1
- package/dist/chunks/{file-uploader.BPslxGI8.js → file-uploader.D2k8GceS.js} +49 -49
- package/dist/chunks/file-uploader.D2k8GceS.js.map +1 -0
- package/dist/chunks/{filter-bar.DL19SXF1.js → filter-bar.C9suxxv-.js} +310 -316
- package/dist/chunks/filter-bar.C9suxxv-.js.map +1 -0
- package/dist/chunks/{fixed-scroller.XN-jvWqb.js → fixed-scroller.DDYpO7Li.js} +2 -2
- package/dist/chunks/{fixed-scroller.XN-jvWqb.js.map → fixed-scroller.DDYpO7Li.js.map} +1 -1
- package/dist/chunks/{focus-trap.C-wIQqpO.js → focus-trap.B4C5TXxl.js} +2 -2
- package/dist/chunks/focus-trap.B4C5TXxl.js.map +1 -0
- package/dist/chunks/{footer-actions.BE_zzX-e.js → footer-actions.Bbu1_rUb.js} +12 -12
- package/dist/chunks/footer-actions.Bbu1_rUb.js.map +1 -0
- package/dist/chunks/{form-layout-title.CIynHgCF.js → form-layout-title.aXVuAWiG.js} +5 -5
- package/dist/chunks/form-layout-title.aXVuAWiG.js.map +1 -0
- package/dist/chunks/{grid-layout.HvTAa4to.js → grid-layout.1aIiz2N_.js} +4 -4
- package/dist/chunks/grid-layout.1aIiz2N_.js.map +1 -0
- package/dist/chunks/{header-meta.CfloYa86.js → header-meta.Dj742jL5.js} +26 -27
- package/dist/chunks/{header-meta.CfloYa86.js.map → header-meta.Dj742jL5.js.map} +1 -1
- package/dist/chunks/{header-with-views.BUQ-MlAq.js → header-with-views.Cis2Ixho.js} +160 -164
- package/dist/chunks/header-with-views.Cis2Ixho.js.map +1 -0
- package/dist/chunks/{header.uyxNdQa3.js → header.Bo2fbjCm.js} +8 -8
- package/dist/chunks/header.Bo2fbjCm.js.map +1 -0
- package/dist/chunks/image.C2D2hKat.js.map +1 -1
- package/dist/chunks/{info-icon.CYOXx8CL.js → info-icon.BWC7gGmM.js} +7 -7
- package/dist/chunks/info-icon.BWC7gGmM.js.map +1 -0
- package/dist/chunks/info.CcMZ4aGg.js +24 -0
- package/dist/chunks/info.CcMZ4aGg.js.map +1 -0
- package/dist/chunks/{input-field-password.C1zTapiN.js → input-field-password.D6wAD55v.js} +29 -29
- package/dist/chunks/input-field-password.D6wAD55v.js.map +1 -0
- package/dist/chunks/{input-field-phone-number.K8BYjWfa.js → input-field-phone-number.CLHuEXO7.js} +12 -11
- package/dist/chunks/{input-field-phone-number.K8BYjWfa.js.map → input-field-phone-number.CLHuEXO7.js.map} +1 -1
- package/dist/chunks/{input-field.5S-pUNxA.js → input-field.C3KYlPYa.js} +5 -5
- package/dist/chunks/input-field.C3KYlPYa.js.map +1 -0
- package/dist/chunks/{inspector.BI28vKQz.js → inspector.CH4kvF9q.js} +6 -6
- package/dist/chunks/inspector.CH4kvF9q.js.map +1 -0
- package/dist/chunks/keyboard-navigation.pB8weElW.js.map +1 -1
- package/dist/chunks/{layout-row.C_F2wX6d.js → layout-row.BLGCVZkD.js} +12 -12
- package/dist/chunks/layout-row.BLGCVZkD.js.map +1 -0
- package/dist/chunks/{link.CXy_LoFI.js → link.C4htMrDV.js} +3 -3
- package/dist/chunks/link.C4htMrDV.js.map +1 -0
- package/dist/chunks/{listbox-option-tag.D0Cql_R3.js → listbox-option-tag.3zcrQQvI.js} +4 -4
- package/dist/chunks/listbox-option-tag.3zcrQQvI.js.map +1 -0
- package/dist/chunks/{loading-indicator.z8COalOc.js → loading-indicator.DXc7I1Lm.js} +2 -2
- package/dist/chunks/loading-indicator.DXc7I1Lm.js.map +1 -0
- package/dist/chunks/minus-small.DJacLGTw.js.map +1 -1
- package/dist/chunks/{modal-fullscreen.DHotw1RI.js → modal-fullscreen.DNxrRLZ5.js} +61 -56
- package/dist/chunks/modal-fullscreen.DNxrRLZ5.js.map +1 -0
- package/dist/chunks/{modal.eoNQ6E3U.js → modal.BjoHqKYF.js} +6 -6
- package/dist/chunks/modal.BjoHqKYF.js.map +1 -0
- package/dist/chunks/{pagination.4J7ZMyf5.js → pagination.BNjvTjtR.js} +5 -5
- package/dist/chunks/pagination.BNjvTjtR.js.map +1 -0
- package/dist/chunks/{payment-method.Cx4nPDtE.js → payment-method.DtvfUnit.js} +3 -3
- package/dist/chunks/payment-method.DtvfUnit.js.map +1 -0
- package/dist/chunks/popover.types.CiUPrUuw.js +6 -0
- package/dist/chunks/popover.types.CiUPrUuw.js.map +1 -0
- package/dist/chunks/{popper-container.DIFqmRsp.js → popper-container.BRkYcBmL.js} +3 -3
- package/dist/chunks/popper-container.BRkYcBmL.js.map +1 -0
- package/dist/chunks/{promo-banner.Bbc2U3S3.js → promo-banner.CmkrgQsm.js} +6 -6
- package/dist/chunks/promo-banner.CmkrgQsm.js.map +1 -0
- package/dist/chunks/{radio-group.4_KKjvAm.js → radio-group.ANbubbQK.js} +14 -12
- package/dist/chunks/radio-group.ANbubbQK.js.map +1 -0
- package/dist/chunks/{radio-input.uJAhxKRs.js → radio-input.D8mv2EYC.js} +2 -2
- package/dist/chunks/radio-input.D8mv2EYC.js.map +1 -0
- package/dist/chunks/{rich-text-editor.BUKLdRkN.js → rich-text-editor.DfUK2cie.js} +8 -8
- package/dist/chunks/rich-text-editor.DfUK2cie.js.map +1 -0
- package/dist/chunks/{search-bar.CuBj5FAE.js → search-bar.B4ln_DGC.js} +6 -5
- package/dist/chunks/search-bar.B4ln_DGC.js.map +1 -0
- package/dist/chunks/{secondary-nav.C6usurfD.js → secondary-nav.DGRvSeRY.js} +9 -9
- package/dist/chunks/secondary-nav.DGRvSeRY.js.map +1 -0
- package/dist/chunks/{segmented-control.DHZEfmT-.js → segmented-control.5-G1EwGt.js} +11 -11
- package/dist/chunks/segmented-control.5-G1EwGt.js.map +1 -0
- package/dist/chunks/{selection-card-group.0o5T4tab.js → selection-card-group.xs_M1a46.js} +10 -10
- package/dist/chunks/selection-card-group.xs_M1a46.js.map +1 -0
- package/dist/chunks/{sidepanel.DyThBUgV.js → sidepanel.DJAmLLPS.js} +9 -9
- package/dist/chunks/sidepanel.DJAmLLPS.js.map +1 -0
- package/dist/chunks/{status.types.p_TCvoo0.js → status.types.BpMK-6IT.js} +3 -3
- package/dist/chunks/status.types.BpMK-6IT.js.map +1 -0
- package/dist/chunks/{step.DMMofD4B.js → step.DwXkOVky.js} +5 -5
- package/dist/chunks/step.DwXkOVky.js.map +1 -0
- package/dist/chunks/{structured-list-item.Bnn6-Z3q.js → structured-list-item.TPZLf2rC.js} +7 -7
- package/dist/chunks/structured-list-item.TPZLf2rC.js.map +1 -0
- package/dist/chunks/{summary-grid.types.D_FU3sUq.js → summary-grid.types.Mua4SprI.js} +7 -7
- package/dist/chunks/{summary-grid.types.D_FU3sUq.js.map → summary-grid.types.Mua4SprI.js.map} +1 -1
- package/dist/chunks/{tab.BhWPBxcB.js → tab.ClkH0GtX.js} +5 -5
- package/dist/chunks/tab.ClkH0GtX.js.map +1 -0
- package/dist/chunks/{tag.CGkclKVL.js → tag.D1niMJDQ.js} +4 -4
- package/dist/chunks/tag.D1niMJDQ.js.map +1 -0
- package/dist/chunks/textarea.BNGBZJ3C.js +214 -0
- package/dist/chunks/textarea.BNGBZJ3C.js.map +1 -0
- package/dist/chunks/timeline-item.DYUON6R3.js +387 -0
- package/dist/chunks/timeline-item.DYUON6R3.js.map +1 -0
- package/dist/chunks/{toast.BOyeuS19.js → toast.gMDjItrP.js} +5 -5
- package/dist/chunks/toast.gMDjItrP.js.map +1 -0
- package/dist/chunks/toggle-button.COXDzXWu.js +1031 -0
- package/dist/chunks/toggle-button.COXDzXWu.js.map +1 -0
- package/dist/chunks/{toggle.DyXL09-x.js → toggle.Ct-5NUGu.js} +8 -8
- package/dist/chunks/toggle.Ct-5NUGu.js.map +1 -0
- package/dist/chunks/{tooltip.wQsyAwkC.js → tooltip.B2XJl4VK.js} +64 -60
- package/dist/chunks/tooltip.B2XJl4VK.js.map +1 -0
- package/dist/chunks/{tutorial.CxrGhLS7.js → tutorial.BiGj42TP.js} +29 -31
- package/dist/chunks/tutorial.BiGj42TP.js.map +1 -0
- package/dist/chunks/{typography.J1v_SPG3.js → typography.hlOAxsEn.js} +9 -9
- package/dist/chunks/typography.hlOAxsEn.js.map +1 -0
- package/dist/chunks/{use-bento-toast-controller.Cn_2Eogn.js → use-bento-toast-controller.BKHU1qBv.js} +2 -2
- package/dist/chunks/{use-bento-toast-controller.Cn_2Eogn.js.map → use-bento-toast-controller.BKHU1qBv.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.0EeyFfyF.js → use-cached-selected-values.ysbHRJ6L.js} +12 -12
- 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.DFdM2Ank.js.map +1 -0
- 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/use-has-slot.C9lQZ6nz.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/divider.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/focus-trap.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 +225 -227
- 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 +3 -2
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +33 -32
- package/dist/internal.js.map +1 -1
- 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/styles/bento-dark.css +17 -4
- package/dist/styles/bento-light.css +17 -4
- package/dist/styles/bento.css +17 -4
- package/dist/styles/styleguide.css +17 -4
- package/dist/styles/utility.css +3 -0
- 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/use-form-v4.js.map +1 -1
- package/dist/web-types.json +1825 -740
- package/package.json +9 -13
- package/dist/assets/button-actions.css +0 -1
- package/dist/assets/menu.css +0 -1
- package/dist/assets/popover.css +0 -1
- package/dist/assets/teleport.css +0 -1
- package/dist/chunks/accordion-item.BNtdoVto.js.map +0 -1
- package/dist/chunks/action-bar.DQb7WVVd.js.map +0 -1
- package/dist/chunks/alert.c1rhDDrU.js.map +0 -1
- package/dist/chunks/avatar.BgwjpLQO.js.map +0 -1
- package/dist/chunks/base-button.-gx_u8Bd.js.map +0 -1
- package/dist/chunks/base-modal.CkkfT6r6.js.map +0 -1
- package/dist/chunks/base-modal.keys.C2PQXcE2.js +0 -5
- package/dist/chunks/base-modal.keys.C2PQXcE2.js.map +0 -1
- package/dist/chunks/bin.DLXkAVvw.js +0 -24
- package/dist/chunks/bin.DLXkAVvw.js.map +0 -1
- package/dist/chunks/button-actions-with-menu.nPj7sdGE.js +0 -83
- package/dist/chunks/button-actions-with-menu.nPj7sdGE.js.map +0 -1
- package/dist/chunks/button-actions.Ju27CRNG.js +0 -194
- package/dist/chunks/button-actions.Ju27CRNG.js.map +0 -1
- package/dist/chunks/button.hF-nD1Og.js.map +0 -1
- package/dist/chunks/calendar.DvIQEYwN.js.map +0 -1
- package/dist/chunks/card.CASAAsuJ.js.map +0 -1
- package/dist/chunks/checkbox-group.QdX-NrSG.js.map +0 -1
- package/dist/chunks/checkbox-input.CNWigbX4.js.map +0 -1
- package/dist/chunks/checkbox.DCD6SSXC.js.map +0 -1
- package/dist/chunks/chip.OV0EWIP3.js.map +0 -1
- package/dist/chunks/code-snippet.dIKi0D7d.js.map +0 -1
- package/dist/chunks/controls-group.CccuLkgP.js.map +0 -1
- package/dist/chunks/copy.CF8Fzu2Y.js.map +0 -1
- package/dist/chunks/country.melpzEsY.js.map +0 -1
- package/dist/chunks/currency.BM9OXTqe.js.map +0 -1
- package/dist/chunks/dashed-underline.BbH6Lnd2.js.map +0 -1
- package/dist/chunks/data-grid-template.Co0Ecr79.js.map +0 -1
- package/dist/chunks/data-grid.erxjh5TN.js.map +0 -1
- package/dist/chunks/date-picker.DGIS6Pp-.js.map +0 -1
- package/dist/chunks/date-range-picker.CIaKRXIQ.js +0 -1021
- package/dist/chunks/date-range-picker.CIaKRXIQ.js.map +0 -1
- package/dist/chunks/dialog-page.CLHZqQeU.js.map +0 -1
- package/dist/chunks/divider.Cc4JFWG_.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.94q6opSD.js.map +0 -1
- package/dist/chunks/dropdown-tag.BaosvGGZ.js +0 -240
- package/dist/chunks/dropdown-tag.BaosvGGZ.js.map +0 -1
- package/dist/chunks/dropdown.DazYAy4B.js.map +0 -1
- package/dist/chunks/empty-state.mtXfb1BB.js.map +0 -1
- package/dist/chunks/es6.n1ewaW31.js +0 -11
- package/dist/chunks/es6.n1ewaW31.js.map +0 -1
- package/dist/chunks/file-uploader.BPslxGI8.js.map +0 -1
- package/dist/chunks/filter-bar.DL19SXF1.js.map +0 -1
- package/dist/chunks/focus-trap.C-wIQqpO.js.map +0 -1
- package/dist/chunks/footer-actions.BE_zzX-e.js.map +0 -1
- package/dist/chunks/form-layout-title.CIynHgCF.js.map +0 -1
- package/dist/chunks/grid-layout.HvTAa4to.js.map +0 -1
- package/dist/chunks/header-with-views.BUQ-MlAq.js.map +0 -1
- package/dist/chunks/header.uyxNdQa3.js.map +0 -1
- package/dist/chunks/info-icon.CYOXx8CL.js.map +0 -1
- package/dist/chunks/info.CszJ0kMi.js +0 -24
- package/dist/chunks/info.CszJ0kMi.js.map +0 -1
- package/dist/chunks/input-field-password.C1zTapiN.js.map +0 -1
- package/dist/chunks/input-field.5S-pUNxA.js.map +0 -1
- package/dist/chunks/inspector.BI28vKQz.js.map +0 -1
- package/dist/chunks/layout-row.C_F2wX6d.js.map +0 -1
- package/dist/chunks/link.CXy_LoFI.js.map +0 -1
- package/dist/chunks/listbox-option-tag.D0Cql_R3.js.map +0 -1
- package/dist/chunks/loading-indicator.z8COalOc.js.map +0 -1
- package/dist/chunks/menu.D0OQgk40.js +0 -515
- package/dist/chunks/menu.D0OQgk40.js.map +0 -1
- package/dist/chunks/modal-fullscreen.DHotw1RI.js.map +0 -1
- package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js +0 -5
- package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js.map +0 -1
- package/dist/chunks/modal.eoNQ6E3U.js.map +0 -1
- package/dist/chunks/pagination.4J7ZMyf5.js.map +0 -1
- package/dist/chunks/payment-method.Cx4nPDtE.js.map +0 -1
- package/dist/chunks/popover.Bo4Bkudr.js +0 -145
- package/dist/chunks/popover.Bo4Bkudr.js.map +0 -1
- package/dist/chunks/popover.types.CBqyA4ly.js +0 -6
- package/dist/chunks/popover.types.CBqyA4ly.js.map +0 -1
- package/dist/chunks/popper-container.DIFqmRsp.js.map +0 -1
- package/dist/chunks/promo-banner.Bbc2U3S3.js.map +0 -1
- package/dist/chunks/radio-group.4_KKjvAm.js.map +0 -1
- package/dist/chunks/radio-input.uJAhxKRs.js.map +0 -1
- package/dist/chunks/rich-text-editor.BUKLdRkN.js.map +0 -1
- package/dist/chunks/search-bar.CuBj5FAE.js.map +0 -1
- package/dist/chunks/secondary-nav.C6usurfD.js.map +0 -1
- package/dist/chunks/segmented-control.DHZEfmT-.js.map +0 -1
- package/dist/chunks/selection-card-group.0o5T4tab.js.map +0 -1
- package/dist/chunks/sidepanel.DyThBUgV.js.map +0 -1
- package/dist/chunks/sidepanel.keys.R0DKQuYx.js +0 -5
- package/dist/chunks/sidepanel.keys.R0DKQuYx.js.map +0 -1
- package/dist/chunks/status.types.p_TCvoo0.js.map +0 -1
- package/dist/chunks/step.DMMofD4B.js.map +0 -1
- package/dist/chunks/structured-list-item.Bnn6-Z3q.js.map +0 -1
- package/dist/chunks/tab.BhWPBxcB.js.map +0 -1
- package/dist/chunks/tag.CGkclKVL.js.map +0 -1
- package/dist/chunks/teleport.BV6zrDjA.js +0 -128
- package/dist/chunks/teleport.BV6zrDjA.js.map +0 -1
- package/dist/chunks/textarea.UPM6N9V1.js +0 -203
- package/dist/chunks/textarea.UPM6N9V1.js.map +0 -1
- package/dist/chunks/timeline-item.DqLhj0Lb.js +0 -385
- package/dist/chunks/timeline-item.DqLhj0Lb.js.map +0 -1
- package/dist/chunks/toast.BOyeuS19.js.map +0 -1
- package/dist/chunks/toggle-button.DEVVvpkw.js +0 -83
- package/dist/chunks/toggle-button.DEVVvpkw.js.map +0 -1
- package/dist/chunks/toggle.DyXL09-x.js.map +0 -1
- package/dist/chunks/tooltip.wQsyAwkC.js.map +0 -1
- package/dist/chunks/tutorial.CxrGhLS7.js.map +0 -1
- package/dist/chunks/typography.J1v_SPG3.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.0EeyFfyF.js.map +0 -1
- package/dist/chunks/use-click-outside.BnhTgpSt.js +0 -14
- package/dist/chunks/use-click-outside.BnhTgpSt.js.map +0 -1
- package/dist/chunks/use-country-items.BllTb5MK.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 -2226
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { ref as v, watch as A, nextTick as m, defineComponent as w, toRef as b, computed as _, provide as h } from "vue";
|
|
2
|
+
import { M as y, e as B, f as C, B as M } from "./toggle-button.COXDzXWu.js";
|
|
3
|
+
import { u as T } from "./index.BdrLbvtJ.js";
|
|
4
|
+
import { n as N } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
5
|
+
import "../assets/button-actions-with-menu.css";
|
|
6
|
+
const W = (p) => {
|
|
7
|
+
const { breakpoint: t, container: o, defaultActionsCount: e, offset: s } = p, { width: l } = T(), i = v(e.value), r = 150, u = async () => {
|
|
8
|
+
var n;
|
|
9
|
+
await m();
|
|
10
|
+
const c = o.value.clientWidth, a = r * i.value + (((n = s == null ? void 0 : s.value) == null ? void 0 : n.offsetWidth) ?? 0) + r;
|
|
11
|
+
c >= a && i.value < e.value && (i.value += 1, await u());
|
|
12
|
+
}, d = async () => {
|
|
13
|
+
var n;
|
|
14
|
+
await m();
|
|
15
|
+
const c = o.value.clientWidth, a = r * i.value + (((n = s == null ? void 0 : s.value) == null ? void 0 : n.offsetWidth) ?? 0);
|
|
16
|
+
c < a && i.value > 0 && (i.value -= 1, await d());
|
|
17
|
+
};
|
|
18
|
+
return A([l, o], async ([c, a], [n]) => {
|
|
19
|
+
if (!a || !e || c > t)
|
|
20
|
+
return;
|
|
21
|
+
await m(), c > n ? await u() : await d();
|
|
22
|
+
}), A(e, async (c) => {
|
|
23
|
+
i.value = c, t && l.value <= t && o.value && await d();
|
|
24
|
+
}), {
|
|
25
|
+
displayedActionsCount: i
|
|
26
|
+
};
|
|
27
|
+
}, E = {}, I = /* @__PURE__ */ w({
|
|
28
|
+
...E,
|
|
29
|
+
__name: "button-actions-with-menu",
|
|
30
|
+
props: {
|
|
31
|
+
actions: null,
|
|
32
|
+
actionsLayout: { default: "buttons-end" },
|
|
33
|
+
disableResponsiveBehavior: { type: Boolean, default: !1 },
|
|
34
|
+
displayedActions: { default: void 0 },
|
|
35
|
+
inverse: { type: Boolean, default: !1 },
|
|
36
|
+
hideDisplayedActionsBreakpoint: { default: 0 },
|
|
37
|
+
menuPosition: { default: "bottom-start" }
|
|
38
|
+
},
|
|
39
|
+
setup(p) {
|
|
40
|
+
const t = p, o = b(t, "inverse"), e = v(null), s = v(null), l = v(!1), i = _(() => {
|
|
41
|
+
const a = t.hideDisplayedActionsBreakpoint ? u.value : t.displayedActions;
|
|
42
|
+
return t.actions.slice(0, a);
|
|
43
|
+
}), r = _(() => {
|
|
44
|
+
var a;
|
|
45
|
+
return (a = s == null ? void 0 : s.value) == null ? void 0 : a.$el;
|
|
46
|
+
}), { displayedActionsCount: u } = W({
|
|
47
|
+
breakpoint: t.hideDisplayedActionsBreakpoint,
|
|
48
|
+
container: e,
|
|
49
|
+
defaultActionsCount: b(t, "displayedActions"),
|
|
50
|
+
offset: r
|
|
51
|
+
});
|
|
52
|
+
h(y, o), t.disableResponsiveBehavior || h(B, { buttonActionsWithMenu: e, menu: s, stackButtons: l });
|
|
53
|
+
const d = _(() => ({
|
|
54
|
+
"b-button-actions-with-menu__container-wrapper--buttons-end": t.actionsLayout === "buttons-end",
|
|
55
|
+
"b-button-actions-with-menu__container-wrapper--buttons-start": t.actionsLayout === "buttons-start",
|
|
56
|
+
"b-button-actions-with-menu__container-wrapper--stacked-buttons": l.value
|
|
57
|
+
})), c = _(() => u.value === void 0 || u.value >= t.actions.length ? [] : t.actions.slice(u.value, t.actions.length).flatMap((n) => n.data ? n.data : {
|
|
58
|
+
text: n.title,
|
|
59
|
+
handler: () => {
|
|
60
|
+
var f;
|
|
61
|
+
return (f = n.event) == null ? void 0 : f.call(n, {});
|
|
62
|
+
},
|
|
63
|
+
icon: n.icon,
|
|
64
|
+
critical: n.critical,
|
|
65
|
+
disabled: n.disabled
|
|
66
|
+
}));
|
|
67
|
+
return { __sfc: !0, props: t, inverseRef: o, buttonActionsWithMenu: e, menu: s, stackButtons: l, computedActions: i, computedMenuRef: r, displayedActionsCount: u, conditionalClasses: d, computedMenuActions: c, BentoButtonActions: M, BentoMenu: C };
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
var R = function() {
|
|
71
|
+
var t = this, o = t._self._c, e = t._self._setupProxy;
|
|
72
|
+
return o("div", { staticClass: "b-button-actions-with-menu" }, [o("div", { ref: "buttonActionsWithMenu", staticClass: "b-button-actions-with-menu__container-wrapper", class: e.conditionalClasses, attrs: { role: "group" } }, [o(e.BentoButtonActions, { attrs: { actions: e.computedActions, inverse: t.inverse, layout: t.actionsLayout } }), e.computedMenuActions.length ? o(e.BentoMenu, { ref: "menu", attrs: { data: e.computedMenuActions, "menu-position": t.menuPosition } }) : t._e()], 1)]);
|
|
73
|
+
}, k = [], g = /* @__PURE__ */ N(
|
|
74
|
+
I,
|
|
75
|
+
R,
|
|
76
|
+
k,
|
|
77
|
+
!1,
|
|
78
|
+
null,
|
|
79
|
+
"36190b44"
|
|
80
|
+
);
|
|
81
|
+
const S = g.exports;
|
|
82
|
+
export {
|
|
83
|
+
S as B
|
|
84
|
+
};
|
|
85
|
+
//# sourceMappingURL=button-actions-with-menu.BDpWI2Fh.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button-actions-with-menu.BDpWI2Fh.js","sources":["../../src/components/internal/button-actions-with-menu/composables/use-responsive-actions.ts","../../src/components/internal/button-actions-with-menu/button-actions-with-menu.vue"],"sourcesContent":["import { useWindowSize } from '@vueuse/core';\nimport { nextTick, ref, type Ref, watch } from 'vue';\n\ninterface UseResponsiveActionsProps {\n breakpoint?: number;\n container: Ref<HTMLElement>;\n defaultActionsCount: Ref<number>;\n offset?: Ref<HTMLElement>;\n}\n\nexport const useResponsiveActions = (props: UseResponsiveActionsProps) => {\n const { breakpoint, container, defaultActionsCount, offset } = props;\n\n const { width: windowWidth } = useWindowSize();\n\n const displayedActionsCount = ref(defaultActionsCount.value);\n\n const AVERAGE_BUTTON_WIDTH = 150; // button size + gap\n\n const showActions = async () => {\n await nextTick();\n\n const availableSpace = container.value.clientWidth;\n const totalActionWidth =\n AVERAGE_BUTTON_WIDTH * displayedActionsCount.value +\n (offset?.value?.offsetWidth ?? 0) +\n AVERAGE_BUTTON_WIDTH;\n\n // Only add actions if there's enough space and we haven't reached max\n if (availableSpace >= totalActionWidth && displayedActionsCount.value < defaultActionsCount.value) {\n displayedActionsCount.value += 1;\n\n await showActions(); // keep trying to show more\n }\n };\n\n const hideActions = async () => {\n await nextTick();\n\n const availableSpace = container.value.clientWidth;\n const totalActionWidth = AVERAGE_BUTTON_WIDTH * displayedActionsCount.value + (offset?.value?.offsetWidth ?? 0);\n\n // Hide actions if they overflow the container\n if (availableSpace < totalActionWidth && displayedActionsCount.value > 0) {\n displayedActionsCount.value -= 1;\n\n await hideActions(); // keep hiding until it fits\n }\n };\n\n watch([windowWidth, container], async ([newWidth, containerEl], [oldWidth]) => {\n if (!containerEl || !defaultActionsCount || newWidth > breakpoint) {\n return;\n }\n\n await nextTick();\n\n const isIncreasing = newWidth > oldWidth;\n\n if (isIncreasing) {\n await showActions();\n } else {\n await hideActions();\n }\n });\n\n watch(defaultActionsCount, async count => {\n displayedActionsCount.value = count;\n\n if (breakpoint && windowWidth.value <= breakpoint && container.value) {\n await hideActions();\n }\n });\n\n return {\n displayedActionsCount,\n };\n};\n","<template>\n <div class=\"b-button-actions-with-menu\">\n <div\n ref=\"buttonActionsWithMenu\"\n role=\"group\"\n class=\"b-button-actions-with-menu__container-wrapper\"\n :class=\"conditionalClasses\"\n >\n <bento-button-actions :actions=\"computedActions\" :inverse=\"inverse\" :layout=\"actionsLayout\" />\n <bento-menu\n v-if=\"computedMenuActions.length\"\n ref=\"menu\"\n :data=\"computedMenuActions\"\n :menu-position=\"menuPosition\"\n />\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { BentoButtonActions } from '@/components/button';\n import { type BentoMenuItem } from '@/components/menu/components/menu-item/menu-item.types';\n import { MENU_INVERSE_INJECTION_KEY } from '@/components/menu/menu.keys';\n import BentoMenu from '@/components/menu/menu.vue';\n import { computed, provide, ref, toRef } from 'vue';\n import { BUTTON_ACTIONS_WITH_MENU_CONTAINER_INJECTION_KEY } from './button-actions-with-menu.keys';\n import { type ButtonActionsWithMenuProps } from './button-actions-with-menu.types';\n import { useResponsiveActions } from './composables/use-responsive-actions';\n\n const props = defineProps({\n actions: null,\n actionsLayout: { default: 'buttons-end' },\n disableResponsiveBehavior: { type: Boolean, default: false },\n displayedActions: { default: undefined },\n inverse: { type: Boolean, default: false },\n hideDisplayedActionsBreakpoint: { default: 0 },\n menuPosition: { default: 'bottom-start' }\n});\n\n const inverseRef = toRef(props, 'inverse');\n const buttonActionsWithMenu = ref<HTMLDivElement>(null);\n const menu = ref(null);\n const stackButtons = ref(false);\n\n const computedActions = computed(() => {\n const displayedActionsLimit = props.hideDisplayedActionsBreakpoint\n ? displayedActionsCount.value\n : props.displayedActions;\n\n return props.actions.slice(0, displayedActionsLimit);\n });\n const computedMenuRef = computed(() => menu?.value?.$el);\n\n const { displayedActionsCount } = useResponsiveActions({\n breakpoint: props.hideDisplayedActionsBreakpoint,\n container: buttonActionsWithMenu,\n defaultActionsCount: toRef(props, 'displayedActions'),\n offset: computedMenuRef,\n });\n\n provide(MENU_INVERSE_INJECTION_KEY, inverseRef);\n\n if (!props.disableResponsiveBehavior) {\n provide(BUTTON_ACTIONS_WITH_MENU_CONTAINER_INJECTION_KEY, { buttonActionsWithMenu, menu, stackButtons });\n }\n\n const conditionalClasses = computed(() => ({\n [`b-button-actions-with-menu__container-wrapper--buttons-end`]: props.actionsLayout === 'buttons-end',\n [`b-button-actions-with-menu__container-wrapper--buttons-start`]: props.actionsLayout === 'buttons-start',\n [`b-button-actions-with-menu__container-wrapper--stacked-buttons`]: stackButtons.value,\n }));\n\n const computedMenuActions = computed(() => {\n if (displayedActionsCount.value === undefined || displayedActionsCount.value >= props.actions.length) {\n return [];\n }\n\n const actionsToProcess = props.actions.slice(displayedActionsCount.value, props.actions.length);\n\n return actionsToProcess.flatMap<BentoMenuItem>(action => {\n if (!action.data) {\n return {\n text: action.title,\n handler: () => action.event?.({} as Event),\n icon: action.icon,\n critical: action.critical,\n disabled: action.disabled,\n };\n }\n\n return action.data;\n });\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * An internal button actions component with the option to display some of the actions in a menu.\n *\n * @example\n * <button-actions-with-menu\n * :actions=\"[\n * {\n * title: 'Primary',\n * event: () => { ... },\n * icon: FourPeopleIcon,\n * link: {\n * variant: 'default',\n * external: true,\n * to: 'https://www.adyen.com/'\n * },\n * },\n * {\n * title: 'Secondary',\n * event: () => { ... }\n * disabled: true,\n * variant: BentoButtonVariant.PRIMARY,\n * critical: true\n * }]\"\n * :displayedActions=\"2\"\n * />\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./button-actions-with-menu.scss\" />\n"],"names":["useResponsiveActions","props","breakpoint","container","defaultActionsCount","offset","windowWidth","useWindowSize","displayedActionsCount","ref","AVERAGE_BUTTON_WIDTH","showActions","nextTick","availableSpace","totalActionWidth","_a","hideActions","watch","newWidth","containerEl","oldWidth","count","__default__","inverseRef","toRef","buttonActionsWithMenu","menu","stackButtons","computedActions","computed","displayedActionsLimit","computedMenuRef","provide","MENU_INVERSE_INJECTION_KEY","BUTTON_ACTIONS_WITH_MENU_CONTAINER_INJECTION_KEY","conditionalClasses","computedMenuActions","action"],"mappings":";;;;;AAUa,MAAAA,IAAA,CAAAC,MAAA;AACT,QAAA,EAAA,YAAAC,GAAA,WAAAC,GAAA,qBAAAC,GAAA,QAAAC,EAAA,IAAAJ,GAEA,EAAA,OAAAK,EAAA,IAAAC,EAAA,GAEAC,IAAAC,EAAAL,EAAA,KAAA,GAEAM,IAAA,KAEAC,IAAA,YAAA;;AACI,UAAAC,EAAA;AAEA,UAAAC,IAAAV,EAAA,MAAA,aACAW,IAAAJ,IAAAF,EAAA,WAAAO,IAAAV,KAAA,gBAAAA,EAAA,UAAA,gBAAAU,EAAA,gBAAA,KAAAL;AAMA,IAAAG,KAAAC,KAAAN,EAAA,QAAAJ,EAAA,UACII,EAAA,SAAA,GAEA,MAAAG,EAAA;AAAA,EACJ,GAGJK,IAAA,YAAA;;AACI,UAAAJ,EAAA;AAEA,UAAAC,IAAAV,EAAA,MAAA,aACAW,IAAAJ,IAAAF,EAAA,WAAAO,IAAAV,KAAA,gBAAAA,EAAA,UAAA,gBAAAU,EAAA,gBAAA;AAGA,IAAAF,IAAAC,KAAAN,EAAA,QAAA,MACIA,EAAA,SAAA,GAEA,MAAAQ,EAAA;AAAA,EACJ;AAGJ,SAAAC,EAAA,CAAAX,GAAAH,CAAA,GAAA,OAAA,CAAAe,GAAAC,CAAA,GAAA,CAAAC,CAAA,MAAA;AACI,QAAA,CAAAD,KAAA,CAAAf,KAAAc,IAAAhB;AACI;AAGJ,UAAAU,EAAA,GAEAM,IAAAE,IAGI,MAAAT,EAAA,IAEA,MAAAK,EAAA;AAAA,EACJ,CAAA,GAGJC,EAAAb,GAAA,OAAAiB,MAAA;AACI,IAAAb,EAAA,QAAAa,GAEAnB,KAAAI,EAAA,SAAAJ,KAAAC,EAAA,SACI,MAAAa,EAAA;AAAA,EACJ,CAAA,GAGJ;AAAA,IAAO,uBAAAR;AAAA,EACH;AAER,GC6CIc,IAAA,CAAA;;;;;;;;;;;;;iBAnFAC,IAAAC,EAAAvB,GAAA,SAAA,GACAwB,IAAAhB,EAAA,IAAA,GACAiB,IAAAjB,EAAA,IAAA,GACAkB,IAAAlB,EAAA,EAAA,GAEAmB,IAAAC,EAAA,MAAA;AACI,YAAAC,IAAA7B,EAAA,iCAAAO,EAAA,QAAAP,EAAA;AAIA,aAAAA,EAAA,QAAA,MAAA,GAAA6B,CAAA;AAAA,IAAmD,CAAA,GAEvDC,IAAAF,EAAA,MAAA;;AAAA,cAAAd,IAAAW,KAAA,gBAAAA,EAAA,UAAA,gBAAAX,EAAA;AAAA,KAAA,GAEA,EAAA,uBAAAP,EAAA,IAAAR,EAAA;AAAA,MAAuD,YAAAC,EAAA;AAAA,MACjC,WAAAwB;AAAA,MACP,qBAAAD,EAAAvB,GAAA,kBAAA;AAAA,MACyC,QAAA8B;AAAA,IAC5C,CAAA;AAGZ,IAAAC,EAAAC,GAAAV,CAAA,GAEAtB,EAAA,6BACI+B,EAAAE,GAAA,EAAA,uBAAAT,GAAA,MAAAC,GAAA,cAAAC,EAAA,CAAA;AAGJ,UAAAQ,IAAAN,EAAA,OAAA;AAAA,MAA2C,8DAAA5B,EAAA,kBAAA;AAAA,MACiD,gEAAAA,EAAA,kBAAA;AAAA,MACE,kEAAA0B,EAAA;AAAA,IACT,EAAA,GAGrFS,IAAAP,EAAA,MACIrB,EAAA,UAAA,UAAAA,EAAA,SAAAP,EAAA,QAAA,SACI,CAAA,IAGJA,EAAA,QAAA,MAAAO,EAAA,OAAAP,EAAA,QAAA,MAAA,EAEA,QAAA,CAAAoC,MACIA,EAAA,OAUAA,EAAA,OATI;AAAA,MAAO,MAAAA,EAAA;AAAA,MACU,SAAA,MAAA;;AAAA,gBAAAtB,IAAAsB,EAAA,UAAA,gBAAAtB,EAAA,KAAAsB,GAAA,CAAA;AAAA;AAAA,MAC4B,MAAAA,EAAA;AAAA,MAC5B,UAAAA,EAAA;AAAA,MACI,UAAAA,EAAA;AAAA,IACA,CAIX,CACjB;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var T = /* @__PURE__ */ ((r) => (r.BUTTONS_END = "buttons-end", r.FILL_CONTAINER = "fill-container", r.SPACE_BETWEEN = "space-between", r.VERTICAL_STACK = "vertical-stack", r))(T || {}), e = /* @__PURE__ */ ((r) => (r.BUTTONS_START = "buttons-start", r))(e || {});
|
|
2
|
+
const E = { ...T, ...e };
|
|
3
|
+
export {
|
|
4
|
+
E as B,
|
|
5
|
+
T as a,
|
|
6
|
+
e as b
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=button-actions.types.BptAXjD8.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button-actions.types.BptAXjD8.js","sources":["../../src/components/button/components/button-actions/button-actions.types.ts"],"sourcesContent":["import type { BentoButtonProps } from '../../button.types';\nimport type { BentoMenuProps } from '@/components/menu/menu.types';\nimport type { BentoLoadingButtonState } from '../loading-button/loading-button.types';\nimport type { OmitStrict, VueNodeElement } from '@/types';\nimport type { VNodeRef } from 'vue/types/vnode';\n\nexport type BentoButtonActionObject = BentoActionButton;\n\n// TODO: Update to Array<BentoButtonActionButton | BentoButtonActionMenuObject> in v2.0.0\nexport type BentoButtonActionsList = Array<BentoActionButton & BentoActionMenu>;\n\nexport enum BentoButtonActionsLayoutBasic {\n BUTTONS_END = 'buttons-end',\n FILL_CONTAINER = 'fill-container',\n SPACE_BETWEEN = 'space-between',\n VERTICAL_STACK = 'vertical-stack',\n}\nexport enum BentoButtonActionsLayoutExtended {\n BUTTONS_START = 'buttons-start',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport const BentoButtonActionsLayout = { ...BentoButtonActionsLayoutBasic, ...BentoButtonActionsLayoutExtended };\nexport type BentoButtonActionsLayout = BentoButtonActionsLayoutBasic | BentoButtonActionsLayoutExtended;\n\nexport interface BentoButtonActionsProps {\n /**\n * List of actions that will be used to render the buttons.\n * First element in the list will be rendered as \"primary\".\n * All elements after the first will be rendered as \"secondary\".\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * `title`: Button's text.\n *\n * `event`: Event triggered when clicking the Button.\n *\n * `icon` (optional): Vue Icon from the library `@adyen/ui-assets-icons-16`.\n *\n * @see BentoButton for a list of all the other props supported by each button action.\n *\n * ```\n * [{\n * title: 'Primary',\n * event: () => { ... },\n * icon: FourPeopleIcon,\n * link: {\n * variant: 'default',\n * external: true,\n * to: 'https://www.adyen.com/'\n * },\n * }, {\n * title: 'Secondary',\n * event: () => { ... }\n * disabled: true,\n * variant: 'secondary',\n * critical: true\n * }]\n * ```\n */\n actions: BentoButtonActionsList;\n\n /**\n * Sets the Button Actions to color scheme inverse\n */\n inverse?: boolean;\n\n /**\n * Defines the layout in which the button actions is presented.\n * It can be one of:\n *\n * @values BUTTONS_START\n * @values BUTTONS_END\n * @values FILL_CONTAINER\n * @values SPACE_BETWEEN\n * @values VERTICAL_STACK\n */\n layout?: string;\n}\n\n/**\n * Private\n */\n\n/**\n * Base interface for the Button and Menu objects\n */\nexport interface BentoButtonActionBase {\n title: string;\n icon?: VueNodeElement;\n iconLeft?: VueNodeElement;\n iconRight?: VueNodeElement;\n\n /**\n * Provides a template ref to the underlying component instance.\n */\n elementRef?: Exclude<VNodeRef, string>;\n}\n\n/**\n * Type for the Buttons passed as objects to Button Actions\n */\nexport interface BentoActionButton extends BentoButtonActionBase, BentoButtonProps {\n event?: (event: Event) => void;\n state?: BentoLoadingButtonState | `${BentoLoadingButtonState}`;\n iconOnly?: boolean;\n}\n\n/**\n * Type for the Menus passed as objects to Button Actions\n */\nexport type BentoActionMenu = BentoButtonActionBase &\n OmitStrict<BentoMenuProps, 'button' | 'data'> &\n Partial<Pick<BentoMenuProps, 'data'>>;\n"],"names":["BentoButtonActionsLayoutBasic","BentoButtonActionsLayoutExtended","BentoButtonActionsLayout"],"mappings":"AAWY,IAAAA,sBAAAA,OACRA,EAAA,cAAc,eACdA,EAAA,iBAAiB,kBACjBA,EAAA,gBAAgB,iBAChBA,EAAA,iBAAiB,kBAJTA,IAAAA,KAAA,CAAA,CAAA,GAMAC,sBAAAA,OACRA,EAAA,gBAAgB,iBADRA,IAAAA,KAAA,CAAA,CAAA;AAOL,MAAMC,IAA2B,EAAE,GAAGF,GAA+B,GAAGC,EAAiC;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as y, useAttrs as m, useSlots as v, computed as i } from "vue";
|
|
2
|
-
import { B as S } from "./typography.
|
|
2
|
+
import { B as S } from "./typography.hlOAxsEn.js";
|
|
3
3
|
import { u as g } from "./use-has-slot.C9lQZ6nz.js";
|
|
4
|
-
import { B as C, a as E } from "./link.
|
|
4
|
+
import { B as C, a as E } from "./link.C4htMrDV.js";
|
|
5
5
|
import { n as h } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
6
6
|
import "../assets/button.css";
|
|
7
7
|
var r = /* @__PURE__ */ ((e) => (e.PRIMARY = "primary", e.SECONDARY = "secondary", e.TERTIARY = "tertiary", e.TERTIARY_WITH_BACKGROUND = "tertiary-with-background", e))(r || {}), s = /* @__PURE__ */ ((e) => (e.CONDENSED = "condensed", e.DESTRUCTIVE = "critical", e.DISABLED = "disabled", e.ICON_ONLY = "icon-only", e.INVERSE = "inverse", e))(s || {});
|
|
@@ -99,7 +99,7 @@ var T = function() {
|
|
|
99
99
|
k,
|
|
100
100
|
!1,
|
|
101
101
|
null,
|
|
102
|
-
"
|
|
102
|
+
"da571696"
|
|
103
103
|
);
|
|
104
104
|
const x = D.exports;
|
|
105
105
|
export {
|
|
@@ -107,4 +107,4 @@ export {
|
|
|
107
107
|
r as a,
|
|
108
108
|
s as b
|
|
109
109
|
};
|
|
110
|
-
//# sourceMappingURL=button.
|
|
110
|
+
//# sourceMappingURL=button.CilT7NmM.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.CilT7NmM.js","sources":["../../src/components/button/button.types.ts","../../src/components/button/button.vue"],"sourcesContent":["/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoButtonVariant {\n PRIMARY = 'primary',\n SECONDARY = 'secondary',\n TERTIARY = 'tertiary',\n TERTIARY_WITH_BACKGROUND = 'tertiary-with-background',\n}\n\nexport enum BentoButtonPropClass {\n CONDENSED = 'condensed',\n DESTRUCTIVE = 'critical',\n DISABLED = 'disabled',\n ICON_ONLY = 'icon-only',\n INVERSE = 'inverse',\n}\n\nexport interface BentoButtonProps {\n condensed?: boolean;\n critical?: boolean;\n disabled?: boolean;\n inverse?: boolean;\n variant?: BentoButtonVariant | `${BentoButtonVariant}`;\n type?: string;\n link?: object;\n}\n","<template>\n <component\n :is=\"componentType\"\n v-bind=\"componentProps\"\n class=\"b-button\"\n :class=\"{ ...conditionalClasses, ...getIconOnlyClass() }\"\n @click.capture=\"onClickButton\"\n >\n <span\n v-if=\"hasSlot('iconLeft')\"\n class=\"b-button__icon-left\"\n data-testid=\"icon-button-left\"\n :aria-hidden=\"hasSlot('default') ? 'true' : null\"\n >\n <slot name=\"iconLeft\" />\n </span>\n <bento-typography v-if=\"hasSlot('default')\" el=\"span\" variant=\"body\" stronger class=\"b-button__label\">\n <slot />\n </bento-typography>\n <span\n v-if=\"hasSlot('iconRight')\"\n class=\"b-button__icon-right\"\n data-testid=\"icon-button-right\"\n :aria-hidden=\"hasSlot('default') ? 'true' : null\"\n >\n <slot name=\"iconRight\" />\n </span>\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, type PropType, useAttrs, useSlots } from 'vue';\n import { BentoButtonPropClass, BentoButtonVariant } from './button.types';\n import { BentoTypography } from '@/components/typography';\n import { useHasSlot } from '@/composables/use-has-slot/use-has-slot';\n import { type Booleanish } from '@/types/prop-types';\n import type { RouterLinkProps } from 'vue-router/types/router.d.ts';\n import type { AnchorHTMLAttributes, ButtonHTMLAttributes } from 'vue/types/jsx.d.ts';\n import { BentoLink, BentoLinkVariant } from '@/components/link';\n\n // TODO: replace all this code when migrated to Vue 3 is complete as this is the only\n // current way to extend the `router-link` component in Vue 2 and Vue Router 3\n export interface LinkProps extends RouterLinkProps, AnchorHTMLAttributes {\n args?: { props: RouterLinkProps };\n\n /**\n * Set the rendered link to a regular external anchor link.\n */\n external: boolean;\n }\n\n const props = defineProps({\n /**\n * Reduces sizing of button\n */\n condensed: { type: Boolean, default: false },\n\n /**\n * Displays button as critical\n */\n critical: { type: Boolean, default: false },\n\n /**\n * Disables button functionality\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Sets color set to inverse\n */\n inverse: { type: Boolean, default: false },\n\n /**\n * Object containing props passed on to the BentoLink component. @see BentoLink documentation for which properties you can pass.\n */\n link: { type: Object, default: undefined },\n\n /**\n * The default behavior of the button.\n * Possible values are: 'button', 'reset', 'submit'\n */\n type: {\n type: String as PropType<ButtonHTMLAttributes['type']>,\n default: 'button',\n },\n\n /**\n * Types of flavour of Button\n * @values primary, secondary, tertiary, tertiary-with-background\n */\n variant: {\n type: String as PropType<BentoButtonVariant | `${BentoButtonVariant}`>,\n default: BentoButtonVariant.PRIMARY,\n validator: (value: BentoButtonVariant) => Object.values(BentoButtonVariant).includes(value),\n },\n });\n\n const emit = defineEmits([\"blur\", \"click\", \"focus\", \"keydown.esc\"]);\n\n const attrs = useAttrs();\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const componentType = computed(() => {\n if (props?.link !== undefined) {\n /**\n * Display a \"span\" with role \"link\" and \"aria-disabled=true\"\n * if the link is disabled.\n * @link https://www.scottohara.me/blog/2021/05/28/disabled-links.html\n */\n return props.disabled ? 'span' : BentoLink;\n }\n return 'button';\n });\n const ariaAttributes = computed(() => ({\n 'aria-controls': attrs['aria-controls']?.toString() as string,\n 'aria-expanded': attrs['aria-expanded']?.toString() as Booleanish,\n }));\n\n const componentProps = computed(() =>\n componentType.value === 'button'\n ? {\n ...ariaAttributes.value,\n disabled: props.disabled,\n type: props.type,\n }\n : {\n ...props.link,\n disableTypography: true,\n variant: BentoLinkVariant.DEFAULT,\n isButton: true,\n\n /**\n * When the button is a disabled link, it's rendered as a `<span>`.\n * These attributes ensure it's still announced as a disabled link by screen readers.\n */\n 'aria-disabled': props.disabled ? 'true' : undefined,\n role: props.disabled ? 'link' : undefined,\n }\n );\n\n const variantClass = computed(() => ({\n [`b-button--${props.variant}${props.critical ? `-${BentoButtonPropClass.DESTRUCTIVE}` : ''}`]: true,\n }));\n\n const conditionalClasses = computed(() => ({\n ...variantClass.value,\n [`b-button--${BentoButtonPropClass.CONDENSED}`]: props.condensed,\n [`b-button--${BentoButtonPropClass.DISABLED}`]: props.disabled,\n [`b-button--${BentoButtonPropClass.INVERSE}`]: props.inverse,\n }));\n\n const getIconOnlyClass = () => ({\n [`b-button--${BentoButtonPropClass.ICON_ONLY}`]: !hasSlot('default'),\n });\n\n const onClickButton = (e: MouseEvent) => {\n if (!props.disabled) {\n emit('click', e);\n } else {\n e.preventDefault();\n e.stopPropagation();\n }\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * Button component for all the various types of bento buttons.\n *\n * @example\n * import { BentoButton } from '@adyen/bento-vue2';\n * import { CheckMarkIcon } from '@adyen/ui-assets-icons-16';\n *\n * export default {\n * components: { BentoButton },\n * template: `\n * <bento-button\n * disabled\n * variant=\"secondary\"\n * >\n * <template #iconLeft>\n * <check-mark svg-title=\"checked\" />\n * </template>\n *\n * Button text\n *\n * <template #iconRight>\n * <check-mark svg-title=\"checked\" />\n * </template>\n * </bento-button>\n * `,\n * }\n */\n export default {\n name: 'bento-button',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./button.scss\" />\n"],"names":["BentoButtonVariant","BentoButtonVariant2","BentoButtonPropClass","BentoButtonPropClass2","__default__","attrs","useAttrs","slots","useSlots","hasSlot","useHasSlot","componentType","computed","props","BentoLink","ariaAttributes","_a","_b","componentProps","BentoLinkVariant","variantClass","conditionalClasses","e","emit"],"mappings":";;;;;;AAGY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,UAAA,WACAA,EAAA,YAAA,aACAA,EAAA,WAAA,YACAA,EAAA,2BAAA,4BAJQA,IAAAD,KAAA,CAAA,CAAA,GAOAE,IAAA,kBAAAC,OACRA,EAAA,YAAA,aACAA,EAAA,cAAA,YACAA,EAAA,WAAA,YACAA,EAAA,YAAA,aACAA,EAAA,UAAA,WALQA,IAAAD,KAAA,CAAA,CAAA;ACwLR,MAAAE,IAAA;AAAA,EAAe,MAAA;AAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAjGAC,IAAAC,EAAA,GACAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAEAI,IAAAC,EAAA,OACIC,KAAA,gBAAAA,EAAA,UAAA,SAMIA,EAAA,WAAA,SAAAC,IAEJ,QAAO,GAEXC,IAAAH,EAAA,MAAA;;AAAA;AAAA,QAAuC,kBAAAI,IAAAX,EAAA,eAAA,MAAA,gBAAAW,EAAA;AAAA,QACe,kBAAAC,IAAAZ,EAAA,eAAA,MAAA,gBAAAY,EAAA;AAAA,MACA;AAAA,KAAA,GAGtDC,IAAAN;AAAA,MAAuB,MAAAD,EAAA,UAAA,WAAA;AAAA,QAEb,GAAAI,EAAA;AAAA,QACsB,UAAAF,EAAA;AAAA,QACF,MAAAA,EAAA;AAAA,MACJ,IAAA;AAAA,QAEhB,GAAAA,EAAA;AAAA,QACa,mBAAA;AAAA,QACU,SAAAM,EAAA;AAAA,QACO,UAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAChB,iBAAAN,EAAA,WAAA,SAAA;AAAA,QAMiC,MAAAA,EAAA,WAAA,SAAA;AAAA,MACX;AAAA,IACpC,GAGVO,IAAAR,EAAA,OAAA;AAAA,MAAqC,CAAA,aAAAC,EAAA,OAAA,GAAAA,EAAA,WAAA,IAAAX,EAAA,WAAA,KAAA,EAAA,EAAA,GAAA;AAAA,IAC8D,EAAA,GAGnGmB,IAAAT,EAAA,OAAA;AAAA,MAA2C,GAAAQ,EAAA;AAAA,MACvB,CAAA,aAAAlB,EAAA,SAAA,EAAA,GAAAW,EAAA;AAAA,MACuC,CAAA,aAAAX,EAAA,QAAA,EAAA,GAAAW,EAAA;AAAA,MACD,CAAA,aAAAX,EAAA,OAAA,EAAA,GAAAW,EAAA;AAAA,IACD,EAAA;6LAGzD,OAAA;AAAA,MAAgC,CAAA,aAAAX,EAAA,SAAA,EAAA,GAAA,CAAAO,EAAA,SAAA;AAAA,IACuC,mBAGvE,CAAAa,MAAA;AACI,MAAAT,EAAA,YAGIS,EAAA,eAAA,GACAA,EAAA,gBAAA,KAHAC,EAAA,SAAAD,CAAA;AAAA,IAIJ;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as oe, computed as S, ref as Q, watch as z, nextTick as at, toRef as F, reactive as Fe } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { g as je } from "./generate-uid.NJ8tVoha.js";
|
|
10
|
-
import { u as Qe } from "./i18n.BQkEbtPM.js";
|
|
11
|
-
import { a as ot } from "./index.BdrLbvtJ.js";
|
|
2
|
+
import { B as Ae } from "./button.CilT7NmM.js";
|
|
3
|
+
import { B as Be } from "./typography.hlOAxsEn.js";
|
|
4
|
+
import { u as Ge } from "./i18n.BQkEbtPM.js";
|
|
5
|
+
import { d as Se, g as nt, a as De } from "./get-date-locale.CAyOIbcp.js";
|
|
6
|
+
import { g as He } from "./generate-uid.NJ8tVoha.js";
|
|
7
|
+
import { a as rt } from "./index.BdrLbvtJ.js";
|
|
8
|
+
import { r as y, t as _, g as ye, l as ot } from "./index.BrH1t1iu.js";
|
|
12
9
|
import { g as st } from "./_commonjsHelpers.C6fGbg64.js";
|
|
13
|
-
import { a as
|
|
10
|
+
import { C as qe, a as $e } from "./chevron-right.C--ZOC9j.js";
|
|
11
|
+
import { a as je } from "./keyboard-navigation.pB8weElW.js";
|
|
12
|
+
import { B as Qe, a as Ve } from "./date.BTdCYdkj.js";
|
|
13
|
+
import { n as se } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
14
14
|
import "../assets/calendar.css";
|
|
15
15
|
var R = /* @__PURE__ */ ((t) => (t.SINGLE = "single", t.MIDDLE = "middle", t.BEGINNING = "beginning", t.END = "end", t))(R || {}), G = /* @__PURE__ */ ((t) => (t.SINGLE = "single", t.MIDDLE = "middle", t.BEGINNING = "beginning", t.END = "end", t.SELECTED = "selected", t.UNSELECTED = "unselected", t.CURRENT_DAY = "current-day", t.DISABLED = "disabled", t))(G || {}), ae = /* @__PURE__ */ ((t) => (t.CLICK = "click", t.MOUSE_OVER = "mouseover", t))(ae || {});
|
|
16
16
|
const it = {
|
|
@@ -37,7 +37,7 @@ const it = {
|
|
|
37
37
|
}
|
|
38
38
|
}, ut = oe({
|
|
39
39
|
name: "calendar-month-day",
|
|
40
|
-
components: { BentoDate:
|
|
40
|
+
components: { BentoDate: Qe },
|
|
41
41
|
inheritAttrs: !0,
|
|
42
42
|
props: it,
|
|
43
43
|
emits: [ae.CLICK, ae.MOUSE_OVER],
|
|
@@ -64,7 +64,7 @@ const it = {
|
|
|
64
64
|
})),
|
|
65
65
|
isCurrentDay: a,
|
|
66
66
|
// Enums
|
|
67
|
-
BentoDateFormat:
|
|
67
|
+
BentoDateFormat: Ve,
|
|
68
68
|
CalendarMonthDayEvent: ae,
|
|
69
69
|
// Events
|
|
70
70
|
onClick: (o, s) => {
|
|
@@ -1048,7 +1048,7 @@ function Ue(t, e, a) {
|
|
|
1048
1048
|
var Pt = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Lt = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Rt = /^'([^]*?)'?$/, Wt = /''/g, Ft = /[a-zA-Z]/;
|
|
1049
1049
|
function Pe(t, e, a) {
|
|
1050
1050
|
y(2, arguments);
|
|
1051
|
-
var n = String(e), r = a || {}, o = r.locale ||
|
|
1051
|
+
var n = String(e), r = a || {}, o = r.locale || ot, s = o.options && o.options.firstWeekContainsDate, i = s == null ? 1 : b(s), f = r.firstWeekContainsDate == null ? i : b(r.firstWeekContainsDate);
|
|
1052
1052
|
if (!(f >= 1 && f <= 7))
|
|
1053
1053
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
1054
1054
|
var h = o.options && o.options.weekStartsOn, D = h == null ? 0 : b(h), g = r.weekStartsOn == null ? D : b(r.weekStartsOn);
|
|
@@ -1240,7 +1240,7 @@ const Le = /* @__PURE__ */ st(Jt), et = ({ currentSelectedDate: t, month: e, isD
|
|
|
1240
1240
|
z(t, () => {
|
|
1241
1241
|
s.value = new Date(t.value);
|
|
1242
1242
|
});
|
|
1243
|
-
const i =
|
|
1243
|
+
const i = rt(), f = Q(s.value);
|
|
1244
1244
|
z(i, (c) => {
|
|
1245
1245
|
const M = c.getAttribute("data-date");
|
|
1246
1246
|
f.value = M ? new Date(M) : s.value;
|
|
@@ -1393,7 +1393,7 @@ const Le = /* @__PURE__ */ st(Jt), et = ({ currentSelectedDate: t, month: e, isD
|
|
|
1393
1393
|
ChevronLeftIcon: $e,
|
|
1394
1394
|
ChevronRightIcon: qe
|
|
1395
1395
|
},
|
|
1396
|
-
directives: { BentoKeyboardNavigationDirective:
|
|
1396
|
+
directives: { BentoKeyboardNavigationDirective: je },
|
|
1397
1397
|
props: {
|
|
1398
1398
|
/**
|
|
1399
1399
|
* end of the selected range
|
|
@@ -1451,7 +1451,7 @@ const Le = /* @__PURE__ */ st(Jt), et = ({ currentSelectedDate: t, month: e, isD
|
|
|
1451
1451
|
L.MOUSE_OVER
|
|
1452
1452
|
],
|
|
1453
1453
|
setup(t, { emit: e }) {
|
|
1454
|
-
const { locale: a, t: n } =
|
|
1454
|
+
const { locale: a, t: n } = Ge(), r = nt(), o = He("bento-date-picker-month-label"), s = S(
|
|
1455
1455
|
() => (N) => {
|
|
1456
1456
|
var W;
|
|
1457
1457
|
return t.min && N < t.min || t.max && N > t.max || ((W = t.isDateDisabled) == null ? void 0 : W.call(t, N));
|
|
@@ -1600,7 +1600,7 @@ var ea = function() {
|
|
|
1600
1600
|
ta,
|
|
1601
1601
|
!1,
|
|
1602
1602
|
null,
|
|
1603
|
-
"
|
|
1603
|
+
"5f260dcf"
|
|
1604
1604
|
);
|
|
1605
1605
|
const Re = aa.exports;
|
|
1606
1606
|
var A = /* @__PURE__ */ ((t) => (t.SINGLE = "single", t.MIDDLE = "middle", t.BEGINNING = "beginning", t.END = "end", t))(A || {}), H = /* @__PURE__ */ ((t) => (t.SINGLE = "single", t.MIDDLE = "middle", t.BEGINNING = "beginning", t.END = "end", t.SELECTED = "selected", t.UNSELECTED = "unselected", t.CURRENT_MONTH = "current-month", t.DISABLED = "disabled", t))(H || {}), Ee = /* @__PURE__ */ ((t) => (t.CLICK = "click", t.MOUSE_OVER = "mouseover", t))(Ee || {});
|
|
@@ -1634,7 +1634,7 @@ const na = {}, ra = /* @__PURE__ */ oe({
|
|
|
1634
1634
|
}));
|
|
1635
1635
|
return { __sfc: !0, props: a, emit: e, isCurrentMonth: n, conditionalClasses: r, onClick: (s, i) => {
|
|
1636
1636
|
a.disabled ? (s.preventDefault(), s.stopPropagation()) : e(Ee.CLICK, i, a.month);
|
|
1637
|
-
}, BentoDate:
|
|
1637
|
+
}, BentoDate: Qe, BentoDateFormat: Ve, CalendarYearMonthEvent: Ee };
|
|
1638
1638
|
}
|
|
1639
1639
|
});
|
|
1640
1640
|
var oa = function() {
|
|
@@ -1650,7 +1650,7 @@ var oa = function() {
|
|
|
1650
1650
|
sa,
|
|
1651
1651
|
!1,
|
|
1652
1652
|
null,
|
|
1653
|
-
"
|
|
1653
|
+
"517c430a"
|
|
1654
1654
|
);
|
|
1655
1655
|
const ua = ia.exports, la = {
|
|
1656
1656
|
"en-US": {
|
|
@@ -1682,7 +1682,7 @@ const ua = ia.exports, la = {
|
|
|
1682
1682
|
},
|
|
1683
1683
|
emits: ["input", "mouseover", "nextMonth", "previousMonth"],
|
|
1684
1684
|
setup(t, { expose: e, emit: a }) {
|
|
1685
|
-
const n = t, r =
|
|
1685
|
+
const n = t, r = He("bento-date-picker-year-label"), { t: o } = Ge(), s = (T) => {
|
|
1686
1686
|
var I;
|
|
1687
1687
|
return n.min && T < n.min || n.max && T > n.max || ((I = n.isDateDisabled) == null ? void 0 : I.call(n, T));
|
|
1688
1688
|
}, i = S(() => ["first", "unique"].includes(n.position)), f = S(() => ["last", "unique"].includes(n.position)), {
|
|
@@ -1728,7 +1728,7 @@ const ua = ia.exports, la = {
|
|
|
1728
1728
|
"keydown:page-up": v,
|
|
1729
1729
|
"keydown:page-down": u
|
|
1730
1730
|
};
|
|
1731
|
-
return { __sfc: !0, yearLabelId: r, props: n, emit: a, t: o, isDateDisabled: s, shouldShowPreviousYearButton: i, shouldShowNextYearButton: f, internalDate: h, addDayRef: D, moveToPreviousMonth: g, moveToPreviousYear: v, moveToNextMonth: d, moveToNextYear: u, moveToFirstMonthOfYear: l, moveToLastMonthOfYear: w, focusOnDate: k, monthRows: m, monthVariant: O, isSelectedDate: P, onMonthClicked: Y, listeners: C, BentoButton: Ae, BentoTypography: Be, CalendarYearMonth: ua, ChevronLeftIcon: $e, ChevronRightIcon: qe, vBentoKeyboardNavigationDirective:
|
|
1731
|
+
return { __sfc: !0, yearLabelId: r, props: n, emit: a, t: o, isDateDisabled: s, shouldShowPreviousYearButton: i, shouldShowNextYearButton: f, internalDate: h, addDayRef: D, moveToPreviousMonth: g, moveToPreviousYear: v, moveToNextMonth: d, moveToNextYear: u, moveToFirstMonthOfYear: l, moveToLastMonthOfYear: w, focusOnDate: k, monthRows: m, monthVariant: O, isSelectedDate: P, onMonthClicked: Y, listeners: C, BentoButton: Ae, BentoTypography: Be, CalendarYearMonth: ua, ChevronLeftIcon: $e, ChevronRightIcon: qe, vBentoKeyboardNavigationDirective: je };
|
|
1732
1732
|
}
|
|
1733
1733
|
});
|
|
1734
1734
|
var fa = function() {
|
|
@@ -1754,7 +1754,7 @@ var fa = function() {
|
|
|
1754
1754
|
va,
|
|
1755
1755
|
!1,
|
|
1756
1756
|
null,
|
|
1757
|
-
"
|
|
1757
|
+
"e4a83f75"
|
|
1758
1758
|
);
|
|
1759
1759
|
const We = ma.exports, Da = ({ selectedDate: t }, e) => {
|
|
1760
1760
|
const a = Fe({
|
|
@@ -2059,7 +2059,7 @@ var wa = function() {
|
|
|
2059
2059
|
_a,
|
|
2060
2060
|
!1,
|
|
2061
2061
|
null,
|
|
2062
|
-
"
|
|
2062
|
+
"2eb151e7"
|
|
2063
2063
|
);
|
|
2064
2064
|
const Pa = Ta.exports;
|
|
2065
2065
|
export {
|
|
@@ -2083,4 +2083,4 @@ export {
|
|
|
2083
2083
|
b as t,
|
|
2084
2084
|
ha as u
|
|
2085
2085
|
};
|
|
2086
|
-
//# sourceMappingURL=calendar.
|
|
2086
|
+
//# sourceMappingURL=calendar.DYI4omOF.js.map
|