@adyen/bento-vue3 1.83.0 → 1.84.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 +12481 -12319
- 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/ai-button.css +1 -1
- package/dist/assets/alert.css +1 -1
- package/dist/assets/avatar.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-actions.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/country.css +1 -1
- package/dist/assets/currency.css +1 -1
- package/dist/assets/dashboard-section.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/date.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/field-label.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/fixed-scroller.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/index.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.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/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/summary-grid.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.css +1 -1
- package/dist/assets/tooltip.css +1 -1
- package/dist/assets/tutorial.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +1 -1
- package/dist/chunks/1-generic-use.R6x8PEGA.js.map +1 -1
- package/dist/chunks/2-generic-use.CNKjB4B7.js.map +1 -1
- package/dist/chunks/2-generic-use.w0fUhovx.js.map +1 -1
- package/dist/chunks/3-generic-use.BLEzR04g.js.map +1 -1
- package/dist/chunks/3-generic-use.D3NFHgI4.js.map +1 -1
- package/dist/chunks/4-generic-use.CULEpvgj.js.map +1 -1
- package/dist/chunks/4-generic-use.D82y3n39.js.map +1 -1
- package/dist/chunks/accordion-item.yRlQj4VF.js.map +1 -1
- package/dist/chunks/{action-bar.D5y9JWnT.js → action-bar.CriH15oF.js} +11 -9
- package/dist/chunks/{action-bar.D5y9JWnT.js.map → action-bar.CriH15oF.js.map} +1 -1
- package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +1 -1
- package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +1 -1
- package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +1 -1
- package/dist/chunks/adyen-giving.LiKHj_jY.js.map +1 -1
- package/dist/chunks/{alert.CYaIUaUn.js → alert.BYcw-u3b.js} +48 -40
- package/dist/chunks/{alert.CYaIUaUn.js.map → alert.BYcw-u3b.js.map} +1 -1
- package/dist/chunks/aria-label.CaUURpnB.js.map +1 -1
- package/dist/chunks/avatar.CNGMjwg3.js.map +1 -1
- package/dist/chunks/base-button.CUd03aA2.js.map +1 -1
- package/dist/chunks/{base-modal.B8HZItVN.js → base-modal.D3GyeCFT.js} +44 -42
- package/dist/chunks/{base-modal.B8HZItVN.js.map → base-modal.D3GyeCFT.js.map} +1 -1
- package/dist/chunks/bin.DuHlEQBO.js.map +1 -1
- package/dist/chunks/{button-actions-with-menu.LlNWeD3B.js → button-actions-with-menu.B8xFgt-p.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.LlNWeD3B.js.map → button-actions-with-menu.B8xFgt-p.js.map} +1 -1
- package/dist/chunks/{button-actions.O0cnu1_g.js → button-actions.Crj4QFAd.js} +445 -413
- package/dist/chunks/button-actions.Crj4QFAd.js.map +1 -0
- package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
- package/dist/chunks/button.CSp48LJt.js.map +1 -1
- package/dist/chunks/calendar.DKPx_cQU.js +1237 -0
- package/dist/chunks/calendar.DKPx_cQU.js.map +1 -0
- package/dist/chunks/{card.Dqt_BOMI.js → card.C_03IYJe.js} +2 -2
- package/dist/chunks/{card.Dqt_BOMI.js.map → card.C_03IYJe.js.map} +1 -1
- package/dist/chunks/{checkbox-group.S0FqSg9s.js → checkbox-group.DZrhxIHp.js} +4 -4
- package/dist/chunks/{checkbox-group.S0FqSg9s.js.map → checkbox-group.DZrhxIHp.js.map} +1 -1
- package/dist/chunks/{checkbox-input.BXNGT9U0.js → checkbox-input.Dk9iFQQe.js} +62 -57
- package/dist/chunks/checkbox-input.Dk9iFQQe.js.map +1 -0
- package/dist/chunks/{checkbox.B_WaHSop.js → checkbox.BWgWtiLJ.js} +10 -10
- package/dist/chunks/{checkbox.B_WaHSop.js.map → checkbox.BWgWtiLJ.js.map} +1 -1
- package/dist/chunks/checkmark-circle-fill._6-d40ru.js.map +1 -1
- package/dist/chunks/checkmark-small.x-gmK2Dt.js.map +1 -1
- package/dist/chunks/chevron-down.DCQ6ZLaq.js.map +1 -1
- package/dist/chunks/chevron-left.Cfn1uGLH.js.map +1 -1
- package/dist/chunks/chevron-up.kfuLRpZb.js.map +1 -1
- package/dist/chunks/click-outside.C1Ud8AA2.js.map +1 -1
- package/dist/chunks/{code-snippet.Bfq5pgmE.js → code-snippet.4HtbNUDE.js} +78 -76
- package/dist/chunks/code-snippet.4HtbNUDE.js.map +1 -0
- package/dist/chunks/codemirror.Cy7iSLbd.js.map +1 -1
- package/dist/chunks/constructNow.DuaJst0D.js +8 -0
- package/dist/chunks/{constructNow.BhymNmy5.js.map → constructNow.DuaJst0D.js.map} +1 -1
- package/dist/chunks/{controls-group.CdnMYv1j.js → controls-group.DpFv8c4E.js} +2 -2
- package/dist/chunks/{controls-group.CdnMYv1j.js.map → controls-group.DpFv8c4E.js.map} +1 -1
- package/dist/chunks/{copy.Cg-VyVQ4.js → copy.xg9ElNxd.js} +35 -33
- package/dist/chunks/{copy.Cg-VyVQ4.js.map → copy.xg9ElNxd.js.map} +1 -1
- package/dist/chunks/country.types.DaVCMxk-.js +773 -0
- package/dist/chunks/{country.types.C0Q_hhgJ.js.map → country.types.DaVCMxk-.js.map} +1 -1
- package/dist/chunks/{country.CPGT2RsT.js → country.vSfTQW51.js} +2 -2
- package/dist/chunks/{country.CPGT2RsT.js.map → country.vSfTQW51.js.map} +1 -1
- package/dist/chunks/cross-circle-fill-small.Dv5-PxwF.js.map +1 -1
- package/dist/chunks/cross-circle-fill.CYLL7jfC.js.map +1 -1
- package/dist/chunks/cross-small.n1UO5wNB.js.map +1 -1
- package/dist/chunks/cross.B92GxFTY.js.map +1 -1
- package/dist/chunks/currency.DijmAkAB.js.map +1 -1
- package/dist/chunks/{dashboard-section.CGS38Swm.js → dashboard-section.D_k3_Z2T.js} +3 -3
- package/dist/chunks/{dashboard-section.CGS38Swm.js.map → dashboard-section.D_k3_Z2T.js.map} +1 -1
- package/dist/chunks/{dashed-underline.DV3p60Ne.js → dashed-underline.B0z2ZZh7.js} +2 -2
- package/dist/chunks/{dashed-underline.DV3p60Ne.js.map → dashed-underline.B0z2ZZh7.js.map} +1 -1
- package/dist/chunks/{data-grid-template.D2g9KHSZ.js → data-grid-template.DdIrvOXp.js} +4 -4
- package/dist/chunks/{data-grid-template.D2g9KHSZ.js.map → data-grid-template.DdIrvOXp.js.map} +1 -1
- package/dist/chunks/data-grid-template.keys.VezYtHtM.js.map +1 -1
- package/dist/chunks/{data-grid.ChGEI-jV.js → data-grid.BBkF9ojy.js} +1289 -1207
- package/dist/chunks/{data-grid.ChGEI-jV.js.map → data-grid.BBkF9ojy.js.map} +1 -1
- package/dist/chunks/date-input.BbZqj10S.js +15 -0
- package/dist/chunks/date-input.BbZqj10S.js.map +1 -0
- package/dist/chunks/date-picker.dyp0YK9_.js +249 -0
- package/dist/chunks/date-picker.dyp0YK9_.js.map +1 -0
- package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -1
- package/dist/chunks/date-range-picker.TsUvRvGy.js +1896 -0
- package/dist/chunks/date-range-picker.TsUvRvGy.js.map +1 -0
- package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -1
- package/dist/chunks/date.CL55prL0.js.map +1 -1
- package/dist/chunks/de.DvtL0g75.js +478 -0
- package/dist/chunks/de.DvtL0g75.js.map +1 -0
- package/dist/chunks/debounce.DUTu11PS.js.map +1 -1
- package/dist/chunks/delight.CDBAFnwC.js.map +1 -1
- package/dist/chunks/delight.xKDCvvaS.js.map +1 -1
- package/dist/chunks/{dialog-page.CTEyyZ_R.js → dialog-page.DaZSlMzY.js} +23 -17
- package/dist/chunks/{dialog-page.CTEyyZ_R.js.map → dialog-page.DaZSlMzY.js.map} +1 -1
- package/dist/chunks/differenceInMonths.DcFDl4eH.js +43 -0
- package/dist/chunks/differenceInMonths.DcFDl4eH.js.map +1 -0
- package/dist/chunks/directive.Cbdox5VL.js.map +1 -1
- package/dist/chunks/divider.Dho4_hQ7.js.map +1 -1
- package/dist/chunks/dot.ob6N-5Um.js.map +1 -1
- package/dist/chunks/dropdown-default-textbox.DFtFMu5G.js.map +1 -1
- package/dist/chunks/{dropdown-tag.BWnAPzEN.js → dropdown-tag.DtpDzWl4.js} +4 -4
- package/dist/chunks/{dropdown-tag.BWnAPzEN.js.map → dropdown-tag.DtpDzWl4.js.map} +1 -1
- package/dist/chunks/{dropdown.CtP9keJ4.js → dropdown.D0_8f9Mz.js} +114 -110
- package/dist/chunks/{dropdown.CtP9keJ4.js.map → dropdown.D0_8f9Mz.js.map} +1 -1
- package/dist/chunks/empty-state.D_ifpeU-.js.map +1 -1
- package/dist/chunks/en-GB.DCGuCmAv.js +46 -0
- package/dist/chunks/en-GB.DCGuCmAv.js.map +1 -0
- package/dist/chunks/{getTimezoneOffsetInMilliseconds.B7sxiukN.js → en-US.BZii9jNW.js} +160 -196
- package/dist/chunks/en-US.BZii9jNW.js.map +1 -0
- package/dist/chunks/es.bz0mzkMq.js +374 -0
- package/dist/chunks/es.bz0mzkMq.js.map +1 -0
- package/dist/chunks/es6.C1DXQV6f.js +12 -0
- package/dist/chunks/es6.C1DXQV6f.js.map +1 -0
- package/dist/chunks/events.BQOQSSb7.js.map +1 -1
- package/dist/chunks/expand.C9IAqYYL.js.map +1 -1
- package/dist/chunks/{field-label.CfizwLcQ.js → field-label.D7vU2Icm.js} +8 -8
- package/dist/chunks/{field-label.CfizwLcQ.js.map → field-label.D7vU2Icm.js.map} +1 -1
- package/dist/chunks/{file-uploader.C9qXXyin.js → file-uploader.BmBKLzIx.js} +253 -207
- package/dist/chunks/{file-uploader.C9qXXyin.js.map → file-uploader.BmBKLzIx.js.map} +1 -1
- package/dist/chunks/filter-bar.D0BEt7ia.js +3363 -0
- package/dist/chunks/filter-bar.D0BEt7ia.js.map +1 -0
- package/dist/chunks/{fixed-scroller.DCjtCzKy.js → fixed-scroller.e56yJp7Q.js} +52 -44
- package/dist/chunks/{fixed-scroller.DCjtCzKy.js.map → fixed-scroller.e56yJp7Q.js.map} +1 -1
- package/dist/chunks/focus-trap.BaHvK7aT.js.map +1 -1
- package/dist/chunks/{footer-actions.CTCV-SW-.js → footer-actions.BqNvwVk7.js} +2 -2
- package/dist/chunks/{footer-actions.CTCV-SW-.js.map → footer-actions.BqNvwVk7.js.map} +1 -1
- package/dist/chunks/form-field.D_2g7vaP.js.map +1 -1
- package/dist/chunks/{form-layout-title.Dvlo-2z_.js → form-layout-title.CPsEzRzS.js} +2 -2
- package/dist/chunks/{form-layout-title.Dvlo-2z_.js.map → form-layout-title.CPsEzRzS.js.map} +1 -1
- package/dist/chunks/form-layout.types.bZW9iR6_.js.map +1 -1
- package/dist/chunks/fr-CA.B1aPU8fp.js +48 -0
- package/dist/chunks/fr-CA.B1aPU8fp.js.map +1 -0
- package/dist/chunks/fr.Dj7wEToe.js +47 -0
- package/dist/chunks/fr.Dj7wEToe.js.map +1 -0
- package/dist/chunks/generate-uid.NJ8tVoha.js.map +1 -1
- package/dist/chunks/getRoundingMethod.C3eaeGLR.js.map +1 -1
- package/dist/chunks/getTimezoneOffsetInMilliseconds.C-aIpRfB.js +51 -0
- package/dist/chunks/getTimezoneOffsetInMilliseconds.C-aIpRfB.js.map +1 -0
- package/dist/chunks/grid-layout.DDaRNz4-.js.map +1 -1
- package/dist/chunks/header-meta.PysBmkSU.js +263 -0
- package/dist/chunks/header-meta.PysBmkSU.js.map +1 -0
- package/dist/chunks/{header-with-views.CHObq1kM.js → header-with-views.BGIZadqh.js} +844 -780
- package/dist/chunks/{header-with-views.CHObq1kM.js.map → header-with-views.BGIZadqh.js.map} +1 -1
- package/dist/chunks/{header.BMTf9s8L.js → header.yMTOq8MR.js} +3 -3
- package/dist/chunks/{header.BMTf9s8L.js.map → header.yMTOq8MR.js.map} +1 -1
- package/dist/chunks/image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js.map +1 -1
- package/dist/chunks/index.E60QniEu.js.map +1 -1
- package/dist/chunks/index.pdBj0KQU.js.map +1 -1
- package/dist/chunks/info.BKwey1HA.js.map +1 -1
- package/dist/chunks/{input-field-password.CTdUPz2y.js → input-field-password.DN3ltmAg.js} +101 -95
- package/dist/chunks/{input-field-password.CTdUPz2y.js.map → input-field-password.DN3ltmAg.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.Bp57oBMS.js → input-field-phone-number.CouE9QiR.js} +180 -174
- package/dist/chunks/{input-field-phone-number.Bp57oBMS.js.map → input-field-phone-number.CouE9QiR.js.map} +1 -1
- package/dist/chunks/{input-field.DzNDGqBP.js → input-field.C2SQq0V1.js} +67 -59
- package/dist/chunks/{input-field.DzNDGqBP.js.map → input-field.C2SQq0V1.js.map} +1 -1
- package/dist/chunks/{inspector.p4ukEAWH.js → inspector.Dox76eqN.js} +41 -35
- package/dist/chunks/{inspector.p4ukEAWH.js.map → inspector.Dox76eqN.js.map} +1 -1
- package/dist/chunks/inspector.types.DyHwE18g.js.map +1 -1
- package/dist/chunks/internal-error.BLZodVBE.js.map +1 -1
- package/dist/chunks/internal-error.BmrwJFpR.js.map +1 -1
- package/dist/chunks/isSameWeek.CUD7czUN.js +14 -0
- package/dist/chunks/isSameWeek.CUD7czUN.js.map +1 -0
- package/dist/chunks/it.Oaj6BklL.js +392 -0
- package/dist/chunks/it.Oaj6BklL.js.map +1 -0
- package/dist/chunks/ja.Cm9tJMi2.js +367 -0
- package/dist/chunks/ja.Cm9tJMi2.js.map +1 -0
- package/dist/chunks/keyboard-navigation.DWmhelVv.js.map +1 -1
- package/dist/chunks/ko.Ceaof6EP.js +348 -0
- package/dist/chunks/ko.Ceaof6EP.js.map +1 -0
- package/dist/chunks/layout-row.CX8kV_w0.js.map +1 -1
- package/dist/chunks/link.BLCQlEZU.js.map +1 -1
- package/dist/chunks/loading-indicator.Db794TT5.js.map +1 -1
- package/dist/chunks/match.CMBZxEs9.js +302 -0
- package/dist/chunks/match.CMBZxEs9.js.map +1 -0
- package/dist/chunks/minus-small.DYIyF5XW.js.map +1 -1
- package/dist/chunks/{modal-fullscreen.DYDW-zC0.js → modal-fullscreen.BXjxVsAq.js} +3 -3
- package/dist/chunks/{modal-fullscreen.DYDW-zC0.js.map → modal-fullscreen.BXjxVsAq.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DI5HA_3W.js → modal.vue_vue_type_script_setup_true_lang.CRovU08l.js} +4 -4
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DI5HA_3W.js.map → modal.vue_vue_type_script_setup_true_lang.CRovU08l.js.map} +1 -1
- package/dist/chunks/nl.B6vCf2B9.js +327 -0
- package/dist/chunks/nl.B6vCf2B9.js.map +1 -0
- package/dist/chunks/no-results-found.Bg_ZcEid.js.map +1 -1
- package/dist/chunks/no-results-found.BqvYsBR6.js.map +1 -1
- package/dist/chunks/notifications-cleared.BMZk37uf.js.map +1 -1
- package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +1 -1
- package/dist/chunks/on-click-outside.D9aY9g8G.js.map +1 -1
- package/dist/chunks/page-not-found.COJLPVaU.js.map +1 -1
- package/dist/chunks/page-not-found.DWW6W-PZ.js.map +1 -1
- package/dist/chunks/{pagination.0cHVUbmR.js → pagination.Biy7xN75.js} +5 -5
- package/dist/chunks/{pagination.0cHVUbmR.js.map → pagination.Biy7xN75.js.map} +1 -1
- package/dist/chunks/payment-method.BGEBaa4w.js.map +1 -1
- package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -1
- package/dist/chunks/planned-maintenance.C61sWB9h.js.map +1 -1
- package/dist/chunks/planned-maintenance.jmWYTdet.js.map +1 -1
- package/dist/chunks/popover.types.DgfeurkF.js.map +1 -1
- package/dist/chunks/popper-container.I9gzp1NR.js.map +1 -1
- package/dist/chunks/promo-banner.BIRH5sVX.js.map +1 -1
- package/dist/chunks/pt-BR.CiGdfP45.js +380 -0
- package/dist/chunks/pt-BR.CiGdfP45.js.map +1 -0
- package/dist/chunks/{radio-group.B2JLD8_2.js → radio-group.BqsQRDjs.js} +3 -3
- package/dist/chunks/{radio-group.B2JLD8_2.js.map → radio-group.BqsQRDjs.js.map} +1 -1
- package/dist/chunks/radio-input.CBNE-AkM.js.map +1 -1
- package/dist/chunks/referrals.BvtT-kQS.js.map +1 -1
- package/dist/chunks/referrals.aX8WZigH.js.map +1 -1
- package/dist/chunks/refresh.BB4ouvz_.js.map +1 -1
- package/dist/chunks/resize.Bqks3WUm.js.map +1 -1
- package/dist/chunks/{rich-text-editor.Dw01KOhU.js → rich-text-editor.Bafyvjc3.js} +4 -4
- package/dist/chunks/{rich-text-editor.Dw01KOhU.js.map → rich-text-editor.Bafyvjc3.js.map} +1 -1
- package/dist/chunks/{search-bar.fCnPv83a.js → search-bar.BF8M5OSY.js} +3 -3
- package/dist/chunks/{search-bar.fCnPv83a.js.map → search-bar.BF8M5OSY.js.map} +1 -1
- package/dist/chunks/search.PczW-onY.js.map +1 -1
- package/dist/chunks/secondary-nav.D2lBMjqY.js +144 -0
- package/dist/chunks/{secondary-nav.D1y_GiqG.js.map → secondary-nav.D2lBMjqY.js.map} +1 -1
- package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -1
- package/dist/chunks/{selection-card-group.DYklb2t2.js → selection-card-group.DNPlEqEq.js} +17 -17
- package/dist/chunks/{selection-card-group.DYklb2t2.js.map → selection-card-group.DNPlEqEq.js.map} +1 -1
- package/dist/chunks/show.CT4Augxb.js.map +1 -1
- package/dist/chunks/{sidepanel.1WPpJp8O.js → sidepanel.RJihFo_R.js} +4 -4
- package/dist/chunks/{sidepanel.1WPpJp8O.js.map → sidepanel.RJihFo_R.js.map} +1 -1
- package/dist/chunks/startOfWeek.Dxw2MhGp.js +10 -0
- package/dist/chunks/startOfWeek.Dxw2MhGp.js.map +1 -0
- package/dist/chunks/status.types.ChOI6XGU.js.map +1 -1
- package/dist/chunks/step.DpgnDx29.js +271 -0
- package/dist/chunks/step.DpgnDx29.js.map +1 -0
- package/dist/chunks/{structured-list-item.C4Fnc7sX.js → structured-list-item.B-hdp7rW.js} +2 -2
- package/dist/chunks/{structured-list-item.C4Fnc7sX.js.map → structured-list-item.B-hdp7rW.js.map} +1 -1
- package/dist/chunks/success.DhioLvPD.js.map +1 -1
- package/dist/chunks/success.nNwxJRBS.js.map +1 -1
- package/dist/chunks/summary-grid.keys.Xx-W5a2w.js.map +1 -1
- package/dist/chunks/{summary-grid.types.CbROj1cf.js → summary-grid.types.BVLRSBAF.js} +3 -3
- package/dist/chunks/{summary-grid.types.CbROj1cf.js.map → summary-grid.types.BVLRSBAF.js.map} +1 -1
- package/dist/chunks/sv.f8EfZjMZ.js +377 -0
- package/dist/chunks/sv.f8EfZjMZ.js.map +1 -0
- package/dist/chunks/{tab.C-kmkQiE.js → tab.JPngc9oS.js} +2 -2
- package/dist/chunks/{tab.C-kmkQiE.js.map → tab.JPngc9oS.js.map} +1 -1
- package/dist/chunks/tabs.keys.B4qGhjp2.js.map +1 -1
- package/dist/chunks/tag.DFJIvNLs.js.map +1 -1
- package/dist/chunks/{textarea.C0tLoH2I.js → textarea.CEDkF8BB.js} +45 -45
- package/dist/chunks/textarea.CEDkF8BB.js.map +1 -0
- package/dist/chunks/{timeline-item.-IGN2sbj.js → timeline-item.BxGaSGLf.js} +14 -13
- package/dist/chunks/{timeline-item.-IGN2sbj.js.map → timeline-item.BxGaSGLf.js.map} +1 -1
- package/dist/chunks/toggle.vl0ZwLhN.js.map +1 -1
- package/dist/chunks/tooltip.Nn3o8_vO.js.map +1 -1
- package/dist/chunks/truncate.BfIl_-71.js.map +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BeW7xfHC.js → tutorial.vue_vue_type_script_setup_true_lang.CEfCLTsD.js} +26 -26
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BeW7xfHC.js.map → tutorial.vue_vue_type_script_setup_true_lang.CEfCLTsD.js.map} +1 -1
- package/dist/chunks/typography.6Oo5TOMP.js.map +1 -1
- package/dist/chunks/upload-files.5wQwbfkp.js.map +1 -1
- package/dist/chunks/upload-files.jTQY6y2X.js.map +1 -1
- package/dist/chunks/use-bento-toast-controller.V61h7XzI.js.map +1 -1
- package/dist/chunks/{use-cached-selected-values.u6wcYuin.js → use-cached-selected-values.BZIa5TRx.js} +97 -88
- package/dist/chunks/{use-cached-selected-values.u6wcYuin.js.map → use-cached-selected-values.BZIa5TRx.js.map} +1 -1
- package/dist/chunks/{use-country-items.Dzbl2UsO.js → use-country-items.JZCYNoW7.js} +2 -2
- package/dist/chunks/{use-country-items.Dzbl2UsO.js.map → use-country-items.JZCYNoW7.js.map} +1 -1
- package/dist/chunks/use-country-phon-code.Bui3zD6W.js.map +1 -1
- package/dist/chunks/use-default-slot-validator.O02rzsob.js.map +1 -1
- package/dist/chunks/use-expandable-content-height.GkjjbmPy.js.map +1 -1
- package/dist/chunks/use-form-layout-loading.CWbjZiwP.js.map +1 -1
- package/dist/chunks/use-has-slot.B7eQSabc.js.map +1 -1
- package/dist/chunks/warning-filled.BMGD0G-_.js.map +1 -1
- package/dist/chunks/wrong-environment.BOsyKdRI.js.map +1 -1
- package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +1 -1
- package/dist/chunks/zh-CN.BzH0fIXr.js +389 -0
- package/dist/chunks/zh-CN.BzH0fIXr.js.map +1 -0
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +2 -2
- 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/dropdown.js +3 -3
- 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 +248 -249
- package/dist/index.js.map +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 +10 -10
- 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/popover.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +0 -1829
- package/dist/styles/bento-light.css +0 -1829
- package/dist/styles/bento.css +0 -1829
- package/dist/styles/legacy.css +0 -1829
- package/dist/styles/styleguide.css +0 -1829
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/use-form-v4.js.map +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +8 -8
- package/dist/chunks/button-actions.O0cnu1_g.js.map +0 -1
- package/dist/chunks/calendar.NVmCgJrJ.js +0 -1962
- package/dist/chunks/calendar.NVmCgJrJ.js.map +0 -1
- package/dist/chunks/checkbox-input.BXNGT9U0.js.map +0 -1
- package/dist/chunks/code-snippet.Bfq5pgmE.js.map +0 -1
- package/dist/chunks/constructNow.BhymNmy5.js +0 -8
- package/dist/chunks/country.types.C0Q_hhgJ.js +0 -269
- package/dist/chunks/date-format.B8RU7D42.js +0 -17
- package/dist/chunks/date-format.B8RU7D42.js.map +0 -1
- package/dist/chunks/date-picker.BIdfeL7b.js +0 -245
- package/dist/chunks/date-picker.BIdfeL7b.js.map +0 -1
- package/dist/chunks/date-range-picker.BT3I5M44.js +0 -1109
- package/dist/chunks/date-range-picker.BT3I5M44.js.map +0 -1
- package/dist/chunks/differenceInMonths.Cab3nOsb.js +0 -1590
- package/dist/chunks/differenceInMonths.Cab3nOsb.js.map +0 -1
- package/dist/chunks/es6.MoTTyETW.js +0 -12
- package/dist/chunks/es6.MoTTyETW.js.map +0 -1
- package/dist/chunks/filter-bar.DnfdHnSL.js +0 -3211
- package/dist/chunks/filter-bar.DnfdHnSL.js.map +0 -1
- package/dist/chunks/getTimezoneOffsetInMilliseconds.B7sxiukN.js.map +0 -1
- package/dist/chunks/header-meta.C2W1eMZc.js +0 -221
- package/dist/chunks/header-meta.C2W1eMZc.js.map +0 -1
- package/dist/chunks/secondary-nav.D1y_GiqG.js +0 -138
- package/dist/chunks/step._8f9kwI5.js +0 -267
- package/dist/chunks/step._8f9kwI5.js.map +0 -1
- package/dist/chunks/textarea.C0tLoH2I.js.map +0 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { createElementBlock as f, openBlock as o, mergeProps as L, createCommentVNode as c, createElementVNode as s, toDisplayString as V, defineComponent as N, useSlots as R, computed as
|
|
1
|
+
import { createElementBlock as f, openBlock as o, mergeProps as L, createCommentVNode as c, createElementVNode as s, toDisplayString as V, defineComponent as N, useSlots as R, computed as r, onMounted as A, normalizeClass as P, createBlock as p, resolveDynamicComponent as D, unref as e, withCtx as _, renderSlot as h, createVNode as F } from "vue";
|
|
2
2
|
import { a as I, c as U, B as y } from "./typography.6Oo5TOMP.js";
|
|
3
3
|
import { B as W } from "./button.CSp48LJt.js";
|
|
4
4
|
import { C as M } from "./cross-small.n1UO5wNB.js";
|
|
5
5
|
import { W as Z } from "./warning-filled.BMGD0G-_.js";
|
|
6
|
-
import { C as
|
|
7
|
-
import { C as
|
|
6
|
+
import { C as q } from "./cross-circle-fill.CYLL7jfC.js";
|
|
7
|
+
import { C as j } from "./checkmark-circle-fill._6-d40ru.js";
|
|
8
8
|
/* empty css */
|
|
9
9
|
import { _ as b } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
10
10
|
import { u as z } from "./use-has-slot.B7eQSabc.js";
|
|
11
11
|
import { u as J } from "./index.pdBj0KQU.js";
|
|
12
12
|
import "../assets/alert.css";
|
|
13
|
-
var m = /* @__PURE__ */ ((t) => (t.DEFAULT = "default", t.TIP = "tip", t))(m || {}),
|
|
13
|
+
var m = /* @__PURE__ */ ((t) => (t.DEFAULT = "default", t.TIP = "tip", t))(m || {}), n = /* @__PURE__ */ ((t) => (t.WARNING = "warning", t.CRITICAL = "critical", t.HIGHLIGHT = "highlight", t.SUCCESS = "success", t))(n || {}), S = /* @__PURE__ */ ((t) => (t.CLOSE_ALERT = "close-alert", t))(S || {});
|
|
14
14
|
let H = 0;
|
|
15
15
|
const O = {
|
|
16
16
|
beforeCreate() {
|
|
17
17
|
this.uuid = H.toString(), H += 1;
|
|
18
18
|
}
|
|
19
19
|
}, Y = { key: 0 }, K = ["clip-path"], Q = ["id"];
|
|
20
|
-
function X(t,
|
|
20
|
+
function X(t, a, u, d, v, i) {
|
|
21
21
|
return o(), f("svg", L({ role: "img" }, t.$attrs, {
|
|
22
22
|
class: "ui-assets-icons-16",
|
|
23
23
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -28,7 +28,7 @@ function X(t, r, u, C, h, i) {
|
|
|
28
28
|
t.$attrs["svg-title"] ? (o(), f("title", Y, V(t.$attrs["svg-title"]), 1)) : c("", !0),
|
|
29
29
|
s("g", {
|
|
30
30
|
"clip-path": "url(#uia-ui-assets/icons-16-info_filled__a" + t.uuid + ")"
|
|
31
|
-
},
|
|
31
|
+
}, a[0] || (a[0] = [
|
|
32
32
|
s("path", {
|
|
33
33
|
fill: "#001222",
|
|
34
34
|
"fill-rule": "evenodd",
|
|
@@ -39,7 +39,7 @@ function X(t, r, u, C, h, i) {
|
|
|
39
39
|
s("defs", null, [
|
|
40
40
|
s("clipPath", {
|
|
41
41
|
id: "uia-ui-assets/icons-16-info_filled__a" + t.uuid
|
|
42
|
-
},
|
|
42
|
+
}, a[1] || (a[1] = [
|
|
43
43
|
s("rect", {
|
|
44
44
|
width: "16",
|
|
45
45
|
height: "16",
|
|
@@ -58,67 +58,75 @@ const x = /* @__PURE__ */ b(O, [["render", X]]), T = {
|
|
|
58
58
|
warningIcon: "Warning icon"
|
|
59
59
|
},
|
|
60
60
|
"ja-JP": {
|
|
61
|
-
close: "閉じる"
|
|
61
|
+
close: "閉じる",
|
|
62
|
+
criticalIcon: "重大アイコン",
|
|
63
|
+
highlightIcon: "ハイライトアイコン",
|
|
64
|
+
successIcon: "成功アイコン",
|
|
65
|
+
warningIcon: "警告アイコン"
|
|
62
66
|
},
|
|
63
67
|
"pt-BR": {
|
|
64
|
-
close: "Fechar"
|
|
68
|
+
close: "Fechar",
|
|
69
|
+
criticalIcon: "Ícone crítico",
|
|
70
|
+
highlightIcon: "Ícone de destaque",
|
|
71
|
+
successIcon: "Ícone de sucesso",
|
|
72
|
+
warningIcon: "Ícone de aviso"
|
|
65
73
|
}
|
|
66
|
-
},
|
|
74
|
+
}, tt = ["role"], et = { class: "b-alert__icon" }, ot = { class: "b-alert__content" }, st = {
|
|
67
75
|
key: 2,
|
|
68
76
|
class: "b-alert__actions",
|
|
69
77
|
"data-testid": "alert-actions"
|
|
70
|
-
},
|
|
78
|
+
}, it = {
|
|
71
79
|
i18n: { messages: T },
|
|
72
80
|
name: "bento-alert"
|
|
73
|
-
},
|
|
74
|
-
...
|
|
81
|
+
}, nt = /* @__PURE__ */ N({
|
|
82
|
+
...it,
|
|
75
83
|
props: {
|
|
76
84
|
closeButton: { type: Boolean, default: !1 },
|
|
77
|
-
type: { default:
|
|
85
|
+
type: { default: n.HIGHLIGHT },
|
|
78
86
|
variant: { default: m.DEFAULT }
|
|
79
87
|
},
|
|
80
88
|
emits: ["close-alert"],
|
|
81
|
-
setup(t, { emit:
|
|
82
|
-
const u = R(),
|
|
89
|
+
setup(t, { emit: a }) {
|
|
90
|
+
const u = R(), d = z(u), v = a, i = t, { t: g } = J({ messages: T }), l = r(() => i.variant === m.TIP), $ = r(() => ({
|
|
83
91
|
[`b-alert--${i.type}`]: i.type,
|
|
84
92
|
[`b-alert--${m.TIP}`]: l.value
|
|
85
|
-
})), w =
|
|
93
|
+
})), w = r(() => g(`${i.type}Icon`)), B = r(() => {
|
|
86
94
|
switch (i.type) {
|
|
87
|
-
case
|
|
88
|
-
return j;
|
|
89
|
-
case a.SUCCESS:
|
|
95
|
+
case n.CRITICAL:
|
|
90
96
|
return q;
|
|
91
|
-
case
|
|
97
|
+
case n.SUCCESS:
|
|
98
|
+
return j;
|
|
99
|
+
case n.WARNING:
|
|
92
100
|
return Z;
|
|
93
|
-
case
|
|
101
|
+
case n.HIGHLIGHT:
|
|
94
102
|
default:
|
|
95
103
|
return x;
|
|
96
104
|
}
|
|
97
|
-
}), k =
|
|
105
|
+
}), k = r(() => ({
|
|
98
106
|
el: U.DIV,
|
|
99
107
|
variant: l.value ? I.CAPTION : I.BODY,
|
|
100
108
|
wide: !0
|
|
101
|
-
})), E =
|
|
102
|
-
|
|
109
|
+
})), E = r(() => i.type === n.HIGHLIGHT ? "status" : "alert"), G = () => {
|
|
110
|
+
v(S.CLOSE_ALERT);
|
|
103
111
|
};
|
|
104
112
|
return A(() => {
|
|
105
113
|
if (!u.default && !u.description)
|
|
106
114
|
throw new Error("Alert Component requires a title or a description");
|
|
107
|
-
}), (
|
|
115
|
+
}), (C, at) => (o(), f("div", {
|
|
108
116
|
class: "b-alert",
|
|
109
117
|
role: E.value
|
|
110
118
|
}, [
|
|
111
119
|
s("div", {
|
|
112
120
|
class: P(["b-alert__inner-container", $.value])
|
|
113
121
|
}, [
|
|
114
|
-
s("div",
|
|
122
|
+
s("div", et, [
|
|
115
123
|
(o(), p(D(B.value), {
|
|
116
124
|
"aria-hidden": "true",
|
|
117
125
|
"svg-title": w.value
|
|
118
126
|
}, null, 8, ["svg-title"]))
|
|
119
127
|
]),
|
|
120
|
-
s("div",
|
|
121
|
-
e(
|
|
128
|
+
s("div", ot, [
|
|
129
|
+
e(d)("default") && !l.value ? (o(), p(e(y), {
|
|
122
130
|
key: 0,
|
|
123
131
|
class: "b-alert__title",
|
|
124
132
|
el: "div",
|
|
@@ -127,24 +135,24 @@ const x = /* @__PURE__ */ b(O, [["render", X]]), T = {
|
|
|
127
135
|
wide: ""
|
|
128
136
|
}, {
|
|
129
137
|
default: _(() => [
|
|
130
|
-
|
|
138
|
+
h(C.$slots, "default", {}, void 0, !0)
|
|
131
139
|
]),
|
|
132
140
|
_: 3
|
|
133
141
|
})) : c("", !0),
|
|
134
|
-
e(
|
|
142
|
+
e(d)("description") ? (o(), p(e(y), L({
|
|
135
143
|
key: 1,
|
|
136
144
|
class: "b-alert__description"
|
|
137
145
|
}, k.value, { "data-testid": "alert-description" }), {
|
|
138
146
|
default: _(() => [
|
|
139
|
-
|
|
147
|
+
h(C.$slots, "description", {}, void 0, !0)
|
|
140
148
|
]),
|
|
141
149
|
_: 3
|
|
142
150
|
}, 16)) : c("", !0),
|
|
143
|
-
e(
|
|
144
|
-
|
|
151
|
+
e(d)("actions") && !l.value ? (o(), f("div", st, [
|
|
152
|
+
h(C.$slots, "actions", {}, void 0, !0)
|
|
145
153
|
])) : c("", !0)
|
|
146
154
|
]),
|
|
147
|
-
|
|
155
|
+
C.closeButton && !l.value ? (o(), p(e(W), {
|
|
148
156
|
key: 0,
|
|
149
157
|
class: "b-alert__close-button",
|
|
150
158
|
variant: "tertiary",
|
|
@@ -159,13 +167,13 @@ const x = /* @__PURE__ */ b(O, [["render", X]]), T = {
|
|
|
159
167
|
_: 1
|
|
160
168
|
})) : c("", !0)
|
|
161
169
|
], 2)
|
|
162
|
-
], 8,
|
|
170
|
+
], 8, tt));
|
|
163
171
|
}
|
|
164
|
-
}),
|
|
172
|
+
}), vt = /* @__PURE__ */ b(nt, [["__scopeId", "data-v-5c5a81b8"]]);
|
|
165
173
|
export {
|
|
166
|
-
|
|
174
|
+
vt as B,
|
|
167
175
|
m as a,
|
|
168
|
-
|
|
176
|
+
n as b,
|
|
169
177
|
S as c
|
|
170
178
|
};
|
|
171
|
-
//# sourceMappingURL=alert.
|
|
179
|
+
//# sourceMappingURL=alert.BYcw-u3b.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.CYaIUaUn.js","sources":["../../../vue2/src/components/alert/alert.types.ts","../../../ui-assets/icons-16/dist/vue/info-filled.vue","../../../vue2/src/components/alert/alert.vue"],"sourcesContent":["/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoAlertVariant {\n DEFAULT = 'default',\n TIP = 'tip',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoAlertTypeOption {\n WARNING = 'warning',\n CRITICAL = 'critical',\n HIGHLIGHT = 'highlight',\n SUCCESS = 'success',\n}\n\n/**\n * @deprecated from version 2.0.0. Use \"@close-alert\" instead.\n */\nexport enum BentoAlertEvent {\n CLOSE_ALERT = 'close-alert',\n}\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><g :clip-path=\"'url(#uia-ui-assets/icons-16-info_filled__a' + uuid + ')'\"><path fill=\"#001222\" fill-rule=\"evenodd\" d=\"M5.03418 0.839544C6.45015 0.253058 8.00853 0.0992122 9.51172 0.398138C11.015 0.697159 12.3966 1.43547 13.4805 2.51923C14.5642 3.60301 15.3025 4.98476 15.6016 6.48798C15.9005 7.99113 15.7466 9.54958 15.1602 10.9655C14.5736 12.3816 13.5801 13.5925 12.3057 14.444C11.1109 15.2423 9.71924 15.6917 8.28711 15.7448L8 15.7497C5.94458 15.7497 3.97294 14.9336 2.51953 13.4802C1.06623 12.0268 0.250005 10.055 0.25 7.9997C0.250066 6.4671 0.70424 4.96838 1.55566 3.69404C2.40724 2.41967 3.61814 1.42609 5.03418 0.839544ZM6.25 6.2497V7.7497H7.25V10.2497H6.25V11.7497H9.75V10.2497H8.75V6.2497H6.25ZM7.75 3.4997C7.58674 3.4997 7.42763 3.54211 7.28418 3.61786C7.25386 3.63389 7.22303 3.64949 7.19434 3.66865L7.07812 3.75947C7.04744 3.78732 7.01817 3.817 6.99121 3.84833C6.97917 3.86236 6.96827 3.8776 6.95703 3.89228C6.93942 3.91522 6.9228 3.93915 6.90723 3.96357C6.90005 3.97485 6.89248 3.98618 6.88574 3.99775C6.86351 4.03594 6.84324 4.07574 6.82617 4.11689L6.78027 4.25751C6.77017 4.29795 6.7628 4.33927 6.75781 4.38056C6.75552 4.39961 6.75411 4.41902 6.75293 4.43818C6.75166 4.45856 6.75196 4.47926 6.75195 4.4997C6.75195 4.52207 6.75144 4.54472 6.75293 4.56708C6.75579 4.60979 6.76114 4.65273 6.76953 4.69501L6.80859 4.83661C6.82299 4.87685 6.84098 4.91584 6.86035 4.9538C6.86847 4.96971 6.87775 4.98522 6.88672 5.00068C6.89748 5.01922 6.90895 5.03753 6.9209 5.05536C6.93323 5.07376 6.94544 5.09248 6.95898 5.11005C6.98495 5.14371 7.01269 5.17643 7.04297 5.20673L7.1543 5.30341C7.19021 5.33003 7.2285 5.35325 7.26758 5.3747C7.27775 5.38031 7.28847 5.38508 7.29883 5.39033C7.32903 5.40554 7.35995 5.41924 7.3916 5.43134C7.40264 5.43559 7.41361 5.44018 7.4248 5.44404C7.46721 5.45855 7.51041 5.47134 7.55469 5.48017C7.59672 5.48853 7.63919 5.49291 7.68164 5.49579C7.70021 5.49707 7.71872 5.49751 7.7373 5.49775C7.76179 5.49804 7.78614 5.49729 7.81055 5.49579C7.82982 5.49462 7.84899 5.4932 7.86816 5.49091C7.90982 5.48592 7.95139 5.47962 7.99219 5.46943L8.13281 5.42353C8.1739 5.40649 8.21283 5.38517 8.25098 5.36298C8.2626 5.35623 8.27383 5.3487 8.28516 5.3415C8.30964 5.32589 8.33345 5.30934 8.35645 5.29169C8.37116 5.28043 8.38633 5.26958 8.40039 5.25751C8.43176 5.23053 8.46235 5.20229 8.49023 5.17158L8.58105 5.05536C8.69084 4.89096 8.75 4.6974 8.75 4.4997C8.74992 4.2346 8.64449 3.98013 8.45703 3.79267C8.26951 3.60523 8.01514 3.4997 7.75 3.4997Z\" clip-rule=\"evenodd\"/></g><defs><clipPath :id=\"'uia-ui-assets/icons-16-info_filled__a' + uuid\"><rect width=\"16\" height=\"16\" fill=\"#fff\"/></clipPath></defs></svg>\n</template>\n<script>\n import '../css/main.css';\n\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n","<template>\n <div class=\"b-alert\" :role=\"computedRole\">\n <div class=\"b-alert__inner-container\" :class=\"alertConditionalClasses\">\n <div class=\"b-alert__icon\">\n <component :is=\"iconComponent\" aria-hidden=\"true\" :svg-title=\"iconSvgTitle\" />\n </div>\n\n <div class=\"b-alert__content\">\n <bento-typography\n v-if=\"hasSlot('default') && !isTipVariant\"\n class=\"b-alert__title\"\n el=\"div\"\n variant=\"body\"\n strongest\n wide\n >\n <slot />\n </bento-typography>\n\n <bento-typography\n v-if=\"hasSlot('description')\"\n class=\"b-alert__description\"\n v-bind=\"descriptionTypography\"\n data-testid=\"alert-description\"\n >\n <slot name=\"description\" />\n </bento-typography>\n\n <div v-if=\"hasSlot('actions') && !isTipVariant\" class=\"b-alert__actions\" data-testid=\"alert-actions\">\n <slot name=\"actions\" />\n </div>\n </div>\n\n <bento-button\n v-if=\"closeButton && !isTipVariant\"\n class=\"b-alert__close-button\"\n variant=\"tertiary\"\n type=\"button\"\n @click=\"onCloseButtonClick\"\n >\n <cross-small :svg-title=\"t('close')\" />\n </bento-button>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, onMounted, useSlots } from 'vue';\n\n // Component\n import { BentoAlertEvent, BentoAlertTypeOption, BentoAlertVariant } from '@/components/alert/alert.types';\n import { BentoTypography, BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';\n import { BentoButton } from '@/components/button';\n\n import CrossSmall from '@adyen/ui-assets-icons-16/vue/cross-small';\n import Warning from '@adyen/ui-assets-icons-16/vue/warning-filled';\n import CrossCircle from '@adyen/ui-assets-icons-16/vue/cross-circle-fill';\n import CheckedCircle from '@adyen/ui-assets-icons-16/vue/checkmark-circle-fill';\n import Info from '@adyen/ui-assets-icons-16/vue/info-filled';\n\n // Utils\n import { useHasSlot } from '@/composables';\n import { useI18n } from '@/utils/ts/i18n';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const emit = defineEmits<{\n /**\n * Emits event when the alert is closed. `closeButton` must be `true`\n */\n (e: 'close-alert');\n }>();\n\n const props = withDefaults(\n defineProps<{\n /**\n * Adds a close button on the right side of the alert\n */\n closeButton?: boolean;\n\n /**\n * Type of a alert; set a distinctive icon and color. Defaults to highlight.\n * @values HIGHLIGHT, SUCCESS, CRITICAL, WARNING\n */\n type?: BentoAlertTypeOption | `${BentoAlertTypeOption}`;\n\n /**\n * Variant for the alert\n * @values DEFAULT, TIP\n */\n variant?: BentoAlertVariant | `${BentoAlertVariant}`;\n }>(),\n {\n closeButton: false,\n type: BentoAlertTypeOption.HIGHLIGHT,\n variant: BentoAlertVariant.DEFAULT,\n }\n );\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const isTipVariant = computed(() => props.variant === BentoAlertVariant.TIP);\n\n const alertConditionalClasses = computed(() => ({\n [`b-alert--${props.type}`]: props.type,\n [`b-alert--${BentoAlertVariant.TIP}`]: isTipVariant.value,\n }));\n\n const iconSvgTitle = computed(() => t(`${props.type}Icon`));\n\n const iconComponent = computed(() => {\n switch (props.type) {\n case BentoAlertTypeOption.CRITICAL:\n return CrossCircle;\n case BentoAlertTypeOption.SUCCESS:\n return CheckedCircle;\n case BentoAlertTypeOption.WARNING:\n return Warning;\n case BentoAlertTypeOption.HIGHLIGHT:\n default:\n return Info;\n }\n });\n\n const descriptionTypography = computed(() => ({\n el: BentoTypographyElement.DIV,\n variant: isTipVariant.value ? BentoTypographyVariant.CAPTION : BentoTypographyVariant.BODY,\n wide: true,\n }));\n\n const computedRole = computed(() => (props.type === BentoAlertTypeOption.HIGHLIGHT ? 'status' : 'alert'));\n\n const onCloseButtonClick = () => {\n emit(BentoAlertEvent.CLOSE_ALERT);\n };\n\n onMounted(() => {\n if (!slots.default && !slots.description) {\n throw new Error('Alert Component requires a title or a description');\n }\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * An Alert component is used to display a persistent\n * notification containing information important to the user\n *\n * @example\n * import { BentoAlert, BentoAlertTypeOption } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoAlert },\n * template: `\n * <bento-alert type=\"highlight\">\n * Title of the Alert\n * </bento-alert>\n * `\n * }\n */\n export default {\n i18n: { messages },\n name: 'bento-alert',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./alert.scss\" />\n"],"names":["BentoAlertVariant","BentoAlertVariant2","BentoAlertTypeOption","BentoAlertTypeOption2","BentoAlertEvent","BentoAlertEvent2","uuid","_hoisted_2$1","_hoisted_3$1","openBlock","createElementBlock","mergeProps","_ctx","createCommentVNode","__default__","messages","slots","useSlots","hasSlot","useHasSlot","emit","__emit","props","__props","t","useI18n","isTipVariant","computed","alertConditionalClasses","iconSvgTitle","iconComponent","CrossCircleFillIcon","CheckmarkCircleFillIcon","WarningFilledIcon","Info","descriptionTypography","BentoTypographyElement","BentoTypographyVariant","computedRole","onCloseButtonClick","onMounted"],"mappings":";;;;;;;;;;;;AAGO,IAAAA,IAAA,kBAAAC,OACHA,EAAA,UAAA,WACAA,EAAA,MAAA,OAFQA,IAAAD,KAAA,CAAA,CAAA,GAQLE,IAAA,kBAAAC,OACHA,EAAA,UAAA,WACAA,EAAA,WAAA,YACAA,EAAA,YAAA,aACAA,EAAA,UAAA,WAJQA,IAAAD,KAAA,CAAA,CAAA,GAULE,IAAA,kBAAAC,OACHA,EAAA,cAAA,eADQA,IAAAD,KAAA,CAAA,CAAA;ACdR,IAAAE,IAAA;;EAGI,eAAA;8BAEIA,KAAA;AAAA;mBAZZC,IAAA,CAAA,WAAA,GAAAC,IAAA,CAAA,IAAA;;AAEI,SAAAC,EAAA,GAAAC,EAAA,OAAAC,EAAA,EAAA,MAAA,MAAA,GAAAC,EAAA,QAAA;AAAA,IAAgC,OAAA;AAAA,IAA2B,OAAA;AAAA,IAAmC,OAAA;AAAA,IAAW,QAAA;AAAA,IAAY,MAAA;AAAA;gFAFzHC,EAAA,IAAA,EAAA;AAAA;MAE4M,aAAA,+CAAAD,EAAA,OAAA;AAAA;;QAA4E,MAAA;AAAA,QAAe,aAAA;AAAA,QAAoB,GAAA;AAAA,QAAwyE,aAAA;AAAA;IAFnmF,IAAA,GAAAL,CAAA;AAAA;;QAE6oF,IAAA,0CAAAK,EAAA;AAAA;;UAA0D,OAAA;AAAA,UAAW,QAAA;AAAA,UAAY,MAAA;AAAA;MAF9tF,IAAA,GAAAJ,CAAA;AAAA;;;;;;;;;;;;;;;;;;;;;GCqKIM,KAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAAA,EACM,MAAA;AAErB;;;;;;;;;AApGA,UAAAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAEAI,IAAAC,GAOAC,IAAAC,GA0BA,EAAA,GAAAC,EAAA,IAAAC,EAAA,EAAA,UAAAV,EAAA,CAAA,GAEAW,IAAAC,EAAA,MAAAL,EAAA,YAAAtB,EAAA,GAAA,GAEA4B,IAAAD,EAAA,OAAA;AAAA,MAAgD,CAAA,YAAAL,EAAA,IAAA,EAAA,GAAAA,EAAA;AAAA,MACV,CAAA,YAAAtB,EAAA,GAAA,EAAA,GAAA0B,EAAA;AAAA,IACkB,EAAA,GAGxDG,IAAAF,EAAA,MAAAH,EAAA,GAAAF,EAAA,IAAA,MAAA,CAAA,GAEAQ,IAAAH,EAAA,MAAA;AACI,cAAAL,EAAA,MAAA;AAAA,QAAoB,KAAApB,EAAA;AAEZ,iBAAA6B;AAAA,QAAO,KAAA7B,EAAA;AAEP,iBAAA8B;AAAA,QAAO,KAAA9B,EAAA;AAEP,iBAAA+B;AAAA,QAAO,KAAA/B,EAAA;AAAA,QACe;AAEtB,iBAAAgC;AAAA,MAAO;AAAA,IACf,CAAA,GAGJC,IAAAR,EAAA,OAAA;AAAA,MAA8C,IAAAS,EAAA;AAAA,MACf,SAAAV,EAAA,QAAAW,EAAA,UAAAA,EAAA;AAAA,MAC2D,MAAA;AAAA,IAChF,EAAA,GAGVC,IAAAX,EAAA,MAAAL,EAAA,SAAApB,EAAA,YAAA,WAAA,OAAA,GAEAqC,IAAA,MAAA;AACI,MAAAnB,EAAAhB,EAAA,WAAA;AAAA,IAAgC;AAGpC,WAAAoC,EAAA,MAAA;AACI,UAAA,CAAAxB,EAAA,WAAA,CAAAA,EAAA;AACI,cAAA,IAAA,MAAA,mDAAA;AAAA,IACJ,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"alert.BYcw-u3b.js","sources":["../../../vue2/src/components/alert/alert.types.ts","../../../ui-assets/icons-16/dist/vue/info-filled.vue","../../../vue2/src/components/alert/alert.vue"],"sourcesContent":["/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoAlertVariant {\n DEFAULT = 'default',\n TIP = 'tip',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoAlertTypeOption {\n WARNING = 'warning',\n CRITICAL = 'critical',\n HIGHLIGHT = 'highlight',\n SUCCESS = 'success',\n}\n\n/**\n * @deprecated from version 2.0.0. Use \"@close-alert\" instead.\n */\nexport enum BentoAlertEvent {\n CLOSE_ALERT = 'close-alert',\n}\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><g :clip-path=\"'url(#uia-ui-assets/icons-16-info_filled__a' + uuid + ')'\"><path fill=\"#001222\" fill-rule=\"evenodd\" d=\"M5.03418 0.839544C6.45015 0.253058 8.00853 0.0992122 9.51172 0.398138C11.015 0.697159 12.3966 1.43547 13.4805 2.51923C14.5642 3.60301 15.3025 4.98476 15.6016 6.48798C15.9005 7.99113 15.7466 9.54958 15.1602 10.9655C14.5736 12.3816 13.5801 13.5925 12.3057 14.444C11.1109 15.2423 9.71924 15.6917 8.28711 15.7448L8 15.7497C5.94458 15.7497 3.97294 14.9336 2.51953 13.4802C1.06623 12.0268 0.250005 10.055 0.25 7.9997C0.250066 6.4671 0.70424 4.96838 1.55566 3.69404C2.40724 2.41967 3.61814 1.42609 5.03418 0.839544ZM6.25 6.2497V7.7497H7.25V10.2497H6.25V11.7497H9.75V10.2497H8.75V6.2497H6.25ZM7.75 3.4997C7.58674 3.4997 7.42763 3.54211 7.28418 3.61786C7.25386 3.63389 7.22303 3.64949 7.19434 3.66865L7.07812 3.75947C7.04744 3.78732 7.01817 3.817 6.99121 3.84833C6.97917 3.86236 6.96827 3.8776 6.95703 3.89228C6.93942 3.91522 6.9228 3.93915 6.90723 3.96357C6.90005 3.97485 6.89248 3.98618 6.88574 3.99775C6.86351 4.03594 6.84324 4.07574 6.82617 4.11689L6.78027 4.25751C6.77017 4.29795 6.7628 4.33927 6.75781 4.38056C6.75552 4.39961 6.75411 4.41902 6.75293 4.43818C6.75166 4.45856 6.75196 4.47926 6.75195 4.4997C6.75195 4.52207 6.75144 4.54472 6.75293 4.56708C6.75579 4.60979 6.76114 4.65273 6.76953 4.69501L6.80859 4.83661C6.82299 4.87685 6.84098 4.91584 6.86035 4.9538C6.86847 4.96971 6.87775 4.98522 6.88672 5.00068C6.89748 5.01922 6.90895 5.03753 6.9209 5.05536C6.93323 5.07376 6.94544 5.09248 6.95898 5.11005C6.98495 5.14371 7.01269 5.17643 7.04297 5.20673L7.1543 5.30341C7.19021 5.33003 7.2285 5.35325 7.26758 5.3747C7.27775 5.38031 7.28847 5.38508 7.29883 5.39033C7.32903 5.40554 7.35995 5.41924 7.3916 5.43134C7.40264 5.43559 7.41361 5.44018 7.4248 5.44404C7.46721 5.45855 7.51041 5.47134 7.55469 5.48017C7.59672 5.48853 7.63919 5.49291 7.68164 5.49579C7.70021 5.49707 7.71872 5.49751 7.7373 5.49775C7.76179 5.49804 7.78614 5.49729 7.81055 5.49579C7.82982 5.49462 7.84899 5.4932 7.86816 5.49091C7.90982 5.48592 7.95139 5.47962 7.99219 5.46943L8.13281 5.42353C8.1739 5.40649 8.21283 5.38517 8.25098 5.36298C8.2626 5.35623 8.27383 5.3487 8.28516 5.3415C8.30964 5.32589 8.33345 5.30934 8.35645 5.29169C8.37116 5.28043 8.38633 5.26958 8.40039 5.25751C8.43176 5.23053 8.46235 5.20229 8.49023 5.17158L8.58105 5.05536C8.69084 4.89096 8.75 4.6974 8.75 4.4997C8.74992 4.2346 8.64449 3.98013 8.45703 3.79267C8.26951 3.60523 8.01514 3.4997 7.75 3.4997Z\" clip-rule=\"evenodd\"/></g><defs><clipPath :id=\"'uia-ui-assets/icons-16-info_filled__a' + uuid\"><rect width=\"16\" height=\"16\" fill=\"#fff\"/></clipPath></defs></svg>\n</template>\n<script>\n import '../css/main.css';\n\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n","<template>\n <div class=\"b-alert\" :role=\"computedRole\">\n <div class=\"b-alert__inner-container\" :class=\"alertConditionalClasses\">\n <div class=\"b-alert__icon\">\n <component :is=\"iconComponent\" aria-hidden=\"true\" :svg-title=\"iconSvgTitle\" />\n </div>\n\n <div class=\"b-alert__content\">\n <bento-typography\n v-if=\"hasSlot('default') && !isTipVariant\"\n class=\"b-alert__title\"\n el=\"div\"\n variant=\"body\"\n strongest\n wide\n >\n <slot />\n </bento-typography>\n\n <bento-typography\n v-if=\"hasSlot('description')\"\n class=\"b-alert__description\"\n v-bind=\"descriptionTypography\"\n data-testid=\"alert-description\"\n >\n <slot name=\"description\" />\n </bento-typography>\n\n <div v-if=\"hasSlot('actions') && !isTipVariant\" class=\"b-alert__actions\" data-testid=\"alert-actions\">\n <slot name=\"actions\" />\n </div>\n </div>\n\n <bento-button\n v-if=\"closeButton && !isTipVariant\"\n class=\"b-alert__close-button\"\n variant=\"tertiary\"\n type=\"button\"\n @click=\"onCloseButtonClick\"\n >\n <cross-small :svg-title=\"t('close')\" />\n </bento-button>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, onMounted, useSlots } from 'vue';\n\n // Component\n import { BentoAlertEvent, BentoAlertTypeOption, BentoAlertVariant } from '@/components/alert/alert.types';\n import { BentoTypography, BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';\n import { BentoButton } from '@/components/button';\n\n import CrossSmall from '@adyen/ui-assets-icons-16/vue/cross-small';\n import Warning from '@adyen/ui-assets-icons-16/vue/warning-filled';\n import CrossCircle from '@adyen/ui-assets-icons-16/vue/cross-circle-fill';\n import CheckedCircle from '@adyen/ui-assets-icons-16/vue/checkmark-circle-fill';\n import Info from '@adyen/ui-assets-icons-16/vue/info-filled';\n\n // Utils\n import { useHasSlot } from '@/composables';\n import { useI18n } from '@/utils/ts/i18n';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const emit = defineEmits<{\n /**\n * Emits event when the alert is closed. `closeButton` must be `true`\n */\n (e: 'close-alert');\n }>();\n\n const props = withDefaults(\n defineProps<{\n /**\n * Adds a close button on the right side of the alert\n */\n closeButton?: boolean;\n\n /**\n * Type of a alert; set a distinctive icon and color. Defaults to highlight.\n * @values HIGHLIGHT, SUCCESS, CRITICAL, WARNING\n */\n type?: BentoAlertTypeOption | `${BentoAlertTypeOption}`;\n\n /**\n * Variant for the alert\n * @values DEFAULT, TIP\n */\n variant?: BentoAlertVariant | `${BentoAlertVariant}`;\n }>(),\n {\n closeButton: false,\n type: BentoAlertTypeOption.HIGHLIGHT,\n variant: BentoAlertVariant.DEFAULT,\n }\n );\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const isTipVariant = computed(() => props.variant === BentoAlertVariant.TIP);\n\n const alertConditionalClasses = computed(() => ({\n [`b-alert--${props.type}`]: props.type,\n [`b-alert--${BentoAlertVariant.TIP}`]: isTipVariant.value,\n }));\n\n const iconSvgTitle = computed(() => t(`${props.type}Icon`));\n\n const iconComponent = computed(() => {\n switch (props.type) {\n case BentoAlertTypeOption.CRITICAL:\n return CrossCircle;\n case BentoAlertTypeOption.SUCCESS:\n return CheckedCircle;\n case BentoAlertTypeOption.WARNING:\n return Warning;\n case BentoAlertTypeOption.HIGHLIGHT:\n default:\n return Info;\n }\n });\n\n const descriptionTypography = computed(() => ({\n el: BentoTypographyElement.DIV,\n variant: isTipVariant.value ? BentoTypographyVariant.CAPTION : BentoTypographyVariant.BODY,\n wide: true,\n }));\n\n const computedRole = computed(() => (props.type === BentoAlertTypeOption.HIGHLIGHT ? 'status' : 'alert'));\n\n const onCloseButtonClick = () => {\n emit(BentoAlertEvent.CLOSE_ALERT);\n };\n\n onMounted(() => {\n if (!slots.default && !slots.description) {\n throw new Error('Alert Component requires a title or a description');\n }\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * An Alert component is used to display a persistent\n * notification containing information important to the user\n *\n * @example\n * import { BentoAlert, BentoAlertTypeOption } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoAlert },\n * template: `\n * <bento-alert type=\"highlight\">\n * Title of the Alert\n * </bento-alert>\n * `\n * }\n */\n export default {\n i18n: { messages },\n name: 'bento-alert',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./alert.scss\" />\n"],"names":["BentoAlertVariant","BentoAlertVariant2","BentoAlertTypeOption","BentoAlertTypeOption2","BentoAlertEvent","BentoAlertEvent2","uuid","_hoisted_2$1","_hoisted_3$1","openBlock","createElementBlock","mergeProps","_ctx","createCommentVNode","__default__","messages","slots","useSlots","hasSlot","useHasSlot","emit","__emit","props","__props","t","useI18n","isTipVariant","computed","alertConditionalClasses","iconSvgTitle","iconComponent","CrossCircleFillIcon","CheckmarkCircleFillIcon","WarningFilledIcon","Info","descriptionTypography","BentoTypographyElement","BentoTypographyVariant","computedRole","onCloseButtonClick","onMounted"],"mappings":";;;;;;;;;;;;AAGY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,UAAA,WACAA,EAAA,MAAA,OAFQA,IAAAD,KAAA,CAAA,CAAA,GAQAE,IAAA,kBAAAC,OACRA,EAAA,UAAA,WACAA,EAAA,WAAA,YACAA,EAAA,YAAA,aACAA,EAAA,UAAA,WAJQA,IAAAD,KAAA,CAAA,CAAA,GAUAE,IAAA,kBAAAC,OACRA,EAAA,cAAA,eADQA,IAAAD,KAAA,CAAA,CAAA;ACdR,IAAAE,IAAA;;EAGI,eAAA;8BAEIA,KAAA;AAAA;mBAZZC,IAAA,CAAA,WAAA,GAAAC,IAAA,CAAA,IAAA;;AAEI,SAAAC,EAAA,GAAAC,EAAA,OAAAC,EAAA,EAAA,MAAA,MAAA,GAAAC,EAAA,QAAA;AAAA,IAAgC,OAAA;AAAA,IAA2B,OAAA;AAAA,IAAmC,OAAA;AAAA,IAAW,QAAA;AAAA,IAAY,MAAA;AAAA;gFAFzHC,EAAA,IAAA,EAAA;AAAA;MAE4M,aAAA,+CAAAD,EAAA,OAAA;AAAA;;QAA4E,MAAA;AAAA,QAAe,aAAA;AAAA,QAAoB,GAAA;AAAA,QAAwyE,aAAA;AAAA;IAFnmF,IAAA,GAAAL,CAAA;AAAA;;QAE6oF,IAAA,0CAAAK,EAAA;AAAA;;UAA0D,OAAA;AAAA,UAAW,QAAA;AAAA,UAAY,MAAA;AAAA;MAF9tF,IAAA,GAAAJ,CAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GCqKIM,KAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAAA,EACM,MAAA;AAErB;;;;;;;;;AApGA,UAAAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAEAI,IAAAC,GAOAC,IAAAC,GA0BA,EAAA,GAAAC,EAAA,IAAAC,EAAA,EAAA,UAAAV,EAAA,CAAA,GAEAW,IAAAC,EAAA,MAAAL,EAAA,YAAAtB,EAAA,GAAA,GAEA4B,IAAAD,EAAA,OAAA;AAAA,MAAgD,CAAA,YAAAL,EAAA,IAAA,EAAA,GAAAA,EAAA;AAAA,MACV,CAAA,YAAAtB,EAAA,GAAA,EAAA,GAAA0B,EAAA;AAAA,IACkB,EAAA,GAGxDG,IAAAF,EAAA,MAAAH,EAAA,GAAAF,EAAA,IAAA,MAAA,CAAA,GAEAQ,IAAAH,EAAA,MAAA;AACI,cAAAL,EAAA,MAAA;AAAA,QAAoB,KAAApB,EAAA;AAEZ,iBAAA6B;AAAA,QAAO,KAAA7B,EAAA;AAEP,iBAAA8B;AAAA,QAAO,KAAA9B,EAAA;AAEP,iBAAA+B;AAAA,QAAO,KAAA/B,EAAA;AAAA,QACe;AAEtB,iBAAAgC;AAAA,MAAO;AAAA,IACf,CAAA,GAGJC,IAAAR,EAAA,OAAA;AAAA,MAA8C,IAAAS,EAAA;AAAA,MACf,SAAAV,EAAA,QAAAW,EAAA,UAAAA,EAAA;AAAA,MAC2D,MAAA;AAAA,IAChF,EAAA,GAGVC,IAAAX,EAAA,MAAAL,EAAA,SAAApB,EAAA,YAAA,WAAA,OAAA,GAEAqC,IAAA,MAAA;AACI,MAAAnB,EAAAhB,EAAA,WAAA;AAAA,IAAgC;AAGpC,WAAAoC,EAAA,MAAA;AACI,UAAA,CAAAxB,EAAA,WAAA,CAAAA,EAAA;AACI,cAAA,IAAA,MAAA,mDAAA;AAAA,IACJ,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aria-label.CaUURpnB.js","sources":["../../../vue2/src/utils/ts/aria-label.ts"],"sourcesContent":["import { computed, type ComputedRef, ref } from 'vue';\nimport { type MaybeRef } from '@/types/maybe-ref';\n\ninterface ariaLabelOptions {\n ariaLabel?: MaybeRef<string | null>;\n label?: MaybeRef<string | null>;\n defaultFallback?: MaybeRef<string | null>;\n}\n\n/**\n * Returns a valid aria-label for the element it's invoked for\n * @param ariaLabel - The aria label, which has to be set manually through the homonymous prop\n * @param label - Any other label provided, usually the component's main text\n * @param defaultFallback - The default fallback if no other value is provided\n * @returns {string | null} - A string corresponding to the aria label or null if no value is provided\n */\nexport const useAriaLabel = ({\n ariaLabel = null,\n label = null,\n defaultFallback = null,\n}: ariaLabelOptions): ComputedRef<string> => {\n const computedAriaLabel = ref(ariaLabel);\n const computedLabel = ref(label);\n const computedDefaultFallback = ref(defaultFallback);\n\n return computed(() => computedAriaLabel.value ?? computedLabel.value ?? computedDefaultFallback.value);\n};\n"],"names":["useAriaLabel","ariaLabel","label","defaultFallback","computedAriaLabel","ref","computedLabel","computedDefaultFallback","computed"],"mappings":";AAgBO,MAAMA,IAAe,CAAC;AAAA,EACzB,WAAAC,IAAY;AAAA,EACZ,OAAAC,IAAQ;AAAA,EACR,iBAAAC,IAAkB;AACtB,MAA6C;
|
|
1
|
+
{"version":3,"file":"aria-label.CaUURpnB.js","sources":["../../../vue2/src/utils/ts/aria-label.ts"],"sourcesContent":["import { computed, type ComputedRef, ref } from 'vue';\nimport { type MaybeRef } from '@/types/maybe-ref';\n\ninterface ariaLabelOptions {\n ariaLabel?: MaybeRef<string | null>;\n label?: MaybeRef<string | null>;\n defaultFallback?: MaybeRef<string | null>;\n}\n\n/**\n * Returns a valid aria-label for the element it's invoked for\n * @param ariaLabel - The aria label, which has to be set manually through the homonymous prop\n * @param label - Any other label provided, usually the component's main text\n * @param defaultFallback - The default fallback if no other value is provided\n * @returns {string | null} - A string corresponding to the aria label or null if no value is provided\n */\nexport const useAriaLabel = ({\n ariaLabel = null,\n label = null,\n defaultFallback = null,\n}: ariaLabelOptions): ComputedRef<string> => {\n const computedAriaLabel = ref(ariaLabel);\n const computedLabel = ref(label);\n const computedDefaultFallback = ref(defaultFallback);\n\n return computed(() => computedAriaLabel.value ?? computedLabel.value ?? computedDefaultFallback.value);\n};\n"],"names":["useAriaLabel","ariaLabel","label","defaultFallback","computedAriaLabel","ref","computedLabel","computedDefaultFallback","computed"],"mappings":";AAgBO,MAAMA,IAAe,CAAC;AAAA,EACzB,WAAAC,IAAY;AAAA,EACZ,OAAAC,IAAQ;AAAA,EACR,iBAAAC,IAAkB;AACtB,MAA6C;AACnC,QAAAC,IAAoBC,EAAIJ,CAAS,GACjCK,IAAgBD,EAAIH,CAAK,GACzBK,IAA0BF,EAAIF,CAAe;AAEnD,SAAOK,EAAS,MAAMJ,EAAkB,SAASE,EAAc,SAASC,EAAwB,KAAK;AACzG;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.CNGMjwg3.js","sources":["../../../vue2/src/composables/initials.ts","../../../vue2/src/components/avatar/components/avatar-image/avatar-image.types.ts","../../../vue2/src/components/avatar/components/avatar-image/avatar-image.vue","../../../vue2/src/components/avatar/avatar.vue"],"sourcesContent":["import { computed, type ComputedRef, ref } from 'vue';\nimport { type MaybeRef } from '@/types/refs';\n\n/** Extracts the first letter of a username\n * @param username - The name to return the initials of\n * Common patterns:\n * 1. John => J\n * 2. John Smith => J\n * John Smith Doe Holly => J\n */\nexport const useInitials = (username: MaybeRef<string | null>): ComputedRef<string | null> => {\n const computedUsername = ref(username);\n return computed(() => (computedUsername.value ? computedUsername.value.trim().charAt(0).toUpperCase() : null));\n};\n","export enum BentoAvatarImageVariant {\n LARGE = 'large',\n SMALL = 'small',\n}\n\nexport enum BentoAvatarImageColor {\n BLUE = 'blue',\n GREEN = 'green',\n RED = 'red',\n YELLOW = 'yellow',\n}\n","<template>\n <div class=\"b-avatar-image\" :class=\"conditionalClasses\" aria-hidden=\"true\" data-testid=\"avatar\">\n <img v-if=\"src\" :src=\"src\" class=\"b-avatar-image__image\" alt=\"\" data-testid=\"avatar-content\" />\n <div v-else class=\"b-avatar-image__default\" data-testid=\"avatar-content\">\n <bento-typography el=\"span\" variant=\"body\" strongest>\n {{ initials }}\n </bento-typography>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, toRefs } from 'vue';\n import { BentoAvatarImageColor, BentoAvatarImageVariant } from './avatar-image.types';\n import { BentoTypography } from '@/components/typography';\n import { useInitials } from '@/composables';\n\n const props = withDefaults(\n defineProps<{\n /**\n * Avatar color. Defaults to yellow.\n */\n color?: BentoAvatarImageColor;\n\n /**\n * Image src to load the profile picture.\n */\n src?: string;\n\n /**\n * Name of the user that will be used to extract initials to display default value.\n * John => J\n * John Smith => JS\n * John Smith Doe => JD\n * John Smith Doe Holly => JH\n */\n username?: string;\n\n /**\n * Variants supported for small and large.\n * Default - large\n */\n variant?: BentoAvatarImageVariant;\n }>(),\n {\n color: BentoAvatarImageColor.YELLOW,\n src: null,\n username: null,\n variant: BentoAvatarImageVariant.LARGE,\n }\n );\n\n const { username } = toRefs(props);\n const initials = useInitials(username);\n\n const conditionalClasses = computed(() => ({\n [`b-avatar-image--${BentoAvatarImageVariant.SMALL}`]: props.variant === BentoAvatarImageVariant.SMALL,\n [`b-avatar-image--${props.color}`]: props.color,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Image used as user profile inside bento-avatar.\n *\n * @example\n * import { AvatarImage } from './components/avatar-image';\n *\n * export default {\n * components: { AvatarImage },\n * template: `<avatar-image :src=\"userAvatarSrc\" username=\"Jane\" />`\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./avatar-image.scss\" />\n","<template>\n <div class=\"b-avatar\" :role=\"iconOnly ? 'img' : null\" :aria-label=\"computedAriaLabel\">\n <avatar-image\n :src=\"src\"\n :username=\"computedUsername\"\n :variant=\"BentoAvatarImageVariant.SMALL\"\n :color=\"avatarColor\"\n />\n <bento-typography v-if=\"!iconOnly\" class=\"b-avatar__label\" el=\"span\" variant=\"body\">\n {{ username }}\n </bento-typography>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, toRefs } from 'vue';\n import { AvatarImage, BentoAvatarImageColor, BentoAvatarImageVariant } from './components/avatar-image';\n import { BentoTypography } from '@/components/typography';\n import { useInitials } from '@/composables';\n\n const props = withDefaults(\n defineProps<{\n /**\n * Displays the user profile without the label.\n */\n iconOnly?: boolean;\n\n /**\n * Image src to load the profile picture.\n */\n src?: string;\n\n /**\n * Name of the user that will be used both in the label and to extract initials to display default value.\n * John => J\n * John Smith => JS\n * John Smith Doe => JD\n * John Smith Doe Holly => JH\n */\n username: string;\n }>(),\n {\n iconOnly: false,\n src: null,\n }\n );\n\n const { username } = toRefs(props);\n\n const computedAriaLabel = computed(() => (props.iconOnly ? props.username : null));\n const computedUsername = computed(() => (!props.src ? props.username : null));\n const initials = useInitials(username);\n\n // Returns the UTF-16 char code\n const charCode = computed(() => (initials.value ? initials.value.charCodeAt(0) - 65 : null));\n\n // Returns a computed color based on the letter passed\n const avatarColor = computed(() => {\n const numberOfAlphabetLetters = 26;\n const numberOfColors = Object.keys(BentoAvatarImageColor).length;\n const rangeStep = numberOfAlphabetLetters / numberOfColors;\n\n if (charCode.value <= rangeStep) {\n return BentoAvatarImageColor.YELLOW;\n }\n if (charCode.value <= rangeStep * 2) {\n return BentoAvatarImageColor.BLUE;\n }\n if (charCode.value <= rangeStep * 3) {\n return BentoAvatarImageColor.GREEN;\n }\n return BentoAvatarImageColor.RED;\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Displays an user profile including an avatar and optionally a label.\n *\n * @example\n * import { BentoAvatar } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoAvatar },\n * template: `<bento-avatar :src=\"userAvatarSrc\" username=\"Jane\" />`\n * }\n */\n export default {\n name: 'bento-avatar',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./avatar.scss\" />\n"],"names":["useInitials","username","computedUsername","ref","computed","BentoAvatarImageVariant","BentoAvatarImageVariant2","BentoAvatarImageColor","BentoAvatarImageColor2","__default__$1","props","__props","toRefs","initials","conditionalClasses","__default__","computedAriaLabel","charCode","avatarColor","rangeStep"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"avatar.CNGMjwg3.js","sources":["../../../vue2/src/composables/initials.ts","../../../vue2/src/components/avatar/components/avatar-image/avatar-image.types.ts","../../../vue2/src/components/avatar/components/avatar-image/avatar-image.vue","../../../vue2/src/components/avatar/avatar.vue"],"sourcesContent":["import { computed, type ComputedRef, ref } from 'vue';\nimport { type MaybeRef } from '@/types/refs';\n\n/** Extracts the first letter of a username\n * @param username - The name to return the initials of\n * Common patterns:\n * 1. John => J\n * 2. John Smith => J\n * John Smith Doe Holly => J\n */\nexport const useInitials = (username: MaybeRef<string | null>): ComputedRef<string | null> => {\n const computedUsername = ref(username);\n return computed(() => (computedUsername.value ? computedUsername.value.trim().charAt(0).toUpperCase() : null));\n};\n","export enum BentoAvatarImageVariant {\n LARGE = 'large',\n SMALL = 'small',\n}\n\nexport enum BentoAvatarImageColor {\n BLUE = 'blue',\n GREEN = 'green',\n RED = 'red',\n YELLOW = 'yellow',\n}\n","<template>\n <div class=\"b-avatar-image\" :class=\"conditionalClasses\" aria-hidden=\"true\" data-testid=\"avatar\">\n <img v-if=\"src\" :src=\"src\" class=\"b-avatar-image__image\" alt=\"\" data-testid=\"avatar-content\" />\n <div v-else class=\"b-avatar-image__default\" data-testid=\"avatar-content\">\n <bento-typography el=\"span\" variant=\"body\" strongest>\n {{ initials }}\n </bento-typography>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, toRefs } from 'vue';\n import { BentoAvatarImageColor, BentoAvatarImageVariant } from './avatar-image.types';\n import { BentoTypography } from '@/components/typography';\n import { useInitials } from '@/composables';\n\n const props = withDefaults(\n defineProps<{\n /**\n * Avatar color. Defaults to yellow.\n */\n color?: BentoAvatarImageColor;\n\n /**\n * Image src to load the profile picture.\n */\n src?: string;\n\n /**\n * Name of the user that will be used to extract initials to display default value.\n * John => J\n * John Smith => JS\n * John Smith Doe => JD\n * John Smith Doe Holly => JH\n */\n username?: string;\n\n /**\n * Variants supported for small and large.\n * Default - large\n */\n variant?: BentoAvatarImageVariant;\n }>(),\n {\n color: BentoAvatarImageColor.YELLOW,\n src: null,\n username: null,\n variant: BentoAvatarImageVariant.LARGE,\n }\n );\n\n const { username } = toRefs(props);\n const initials = useInitials(username);\n\n const conditionalClasses = computed(() => ({\n [`b-avatar-image--${BentoAvatarImageVariant.SMALL}`]: props.variant === BentoAvatarImageVariant.SMALL,\n [`b-avatar-image--${props.color}`]: props.color,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Image used as user profile inside bento-avatar.\n *\n * @example\n * import { AvatarImage } from './components/avatar-image';\n *\n * export default {\n * components: { AvatarImage },\n * template: `<avatar-image :src=\"userAvatarSrc\" username=\"Jane\" />`\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./avatar-image.scss\" />\n","<template>\n <div class=\"b-avatar\" :role=\"iconOnly ? 'img' : null\" :aria-label=\"computedAriaLabel\">\n <avatar-image\n :src=\"src\"\n :username=\"computedUsername\"\n :variant=\"BentoAvatarImageVariant.SMALL\"\n :color=\"avatarColor\"\n />\n <bento-typography v-if=\"!iconOnly\" class=\"b-avatar__label\" el=\"span\" variant=\"body\">\n {{ username }}\n </bento-typography>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, toRefs } from 'vue';\n import { AvatarImage, BentoAvatarImageColor, BentoAvatarImageVariant } from './components/avatar-image';\n import { BentoTypography } from '@/components/typography';\n import { useInitials } from '@/composables';\n\n const props = withDefaults(\n defineProps<{\n /**\n * Displays the user profile without the label.\n */\n iconOnly?: boolean;\n\n /**\n * Image src to load the profile picture.\n */\n src?: string;\n\n /**\n * Name of the user that will be used both in the label and to extract initials to display default value.\n * John => J\n * John Smith => JS\n * John Smith Doe => JD\n * John Smith Doe Holly => JH\n */\n username: string;\n }>(),\n {\n iconOnly: false,\n src: null,\n }\n );\n\n const { username } = toRefs(props);\n\n const computedAriaLabel = computed(() => (props.iconOnly ? props.username : null));\n const computedUsername = computed(() => (!props.src ? props.username : null));\n const initials = useInitials(username);\n\n // Returns the UTF-16 char code\n const charCode = computed(() => (initials.value ? initials.value.charCodeAt(0) - 65 : null));\n\n // Returns a computed color based on the letter passed\n const avatarColor = computed(() => {\n const numberOfAlphabetLetters = 26;\n const numberOfColors = Object.keys(BentoAvatarImageColor).length;\n const rangeStep = numberOfAlphabetLetters / numberOfColors;\n\n if (charCode.value <= rangeStep) {\n return BentoAvatarImageColor.YELLOW;\n }\n if (charCode.value <= rangeStep * 2) {\n return BentoAvatarImageColor.BLUE;\n }\n if (charCode.value <= rangeStep * 3) {\n return BentoAvatarImageColor.GREEN;\n }\n return BentoAvatarImageColor.RED;\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Displays an user profile including an avatar and optionally a label.\n *\n * @example\n * import { BentoAvatar } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoAvatar },\n * template: `<bento-avatar :src=\"userAvatarSrc\" username=\"Jane\" />`\n * }\n */\n export default {\n name: 'bento-avatar',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./avatar.scss\" />\n"],"names":["useInitials","username","computedUsername","ref","computed","BentoAvatarImageVariant","BentoAvatarImageVariant2","BentoAvatarImageColor","BentoAvatarImageColor2","__default__$1","props","__props","toRefs","initials","conditionalClasses","__default__","computedAriaLabel","charCode","avatarColor","rangeStep"],"mappings":";;;;AAUa,MAAAA,IAAA,CAAAC,MAAA;AACT,QAAAC,IAAAC,EAAAF,CAAA;AACA,SAAAG,EAAA,MAAAF,EAAA,QAAAA,EAAA,MAAA,KAAA,EAAA,OAAA,CAAA,EAAA,YAAA,IAAA,IAAA;AACJ;ACbY,IAAAG,IAAA,kBAAAC,OACRA,EAAA,QAAA,SACAA,EAAA,QAAA,SAFQA,IAAAD,KAAA,CAAA,CAAA,GAKAE,IAAA,kBAAAC,OACRA,EAAA,OAAA,QACAA,EAAA,QAAA,SACAA,EAAA,MAAA,OACAA,EAAA,SAAA,UAJQA,IAAAD,KAAA,CAAA,CAAA;;;;;GCoERE,IAAA,CAAA;;;;;;;;;;AAxDA,UAAAC,IAAAC,GAmCA,EAAA,UAAAV,EAAA,IAAAW,EAAAF,CAAA,GACAG,IAAAb,EAAAC,CAAA,GAEAa,IAAAV,EAAA,OAAA;AAAA,MAA2C,CAAA,mBAAAC,EAAA,KAAA,EAAA,GAAAK,EAAA,YAAAL,EAAA;AAAA,MACyD,CAAA,mBAAAK,EAAA,KAAA,EAAA,GAAAA,EAAA;AAAA,IACtD,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;8FC8B9CK,IAAA;AAAA,EAAe,MAAA;AAEf;;;;;;;;AArEA,UAAAL,IAAAC,GA2BA,EAAA,UAAAV,EAAA,IAAAW,EAAAF,CAAA,GAEAM,IAAAZ,EAAA,MAAAM,EAAA,WAAAA,EAAA,WAAA,IAAA,GACAR,IAAAE,EAAA,MAAAM,EAAA,MAAA,OAAAA,EAAA,QAAA,GACAG,IAAAb,EAAAC,CAAA,GAGAgB,IAAAb,EAAA,MAAAS,EAAA,QAAAA,EAAA,MAAA,WAAA,CAAA,IAAA,KAAA,IAAA,GAGAK,IAAAd,EAAA,MAAA;AAGI,YAAAe,IAAA,KADA,OAAA,KAAAZ,CAAA,EAAA;AAGA,aAAAU,EAAA,SAAAE,IACIZ,EAAA,SAEJU,EAAA,SAAAE,IAAA,IACIZ,EAAA,OAEJU,EAAA,SAAAE,IAAA,IACIZ,EAAA,QAEJA,EAAA;AAAA,IAA6B,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-button.CUd03aA2.js","sources":["../../../vue2/src/components/internal/base-button/base-button.types.ts","../../../vue2/src/components/internal/base-button/base-button.vue"],"sourcesContent":["export enum BentoBaseButtonPropClass {\n DESTRUCTIVE = 'critical',\n ICON_ONLY = 'icon-only',\n}\n\nexport enum BentoBaseButtonEvent {\n BLUR = 'blur',\n CLICK = 'click',\n FOCUS = 'focus',\n KEYDOWN_ESC = 'keydown.esc',\n}\n\nexport enum BaseButtonType {\n BUTTON = 'button',\n RESET = 'reset',\n SUBMIT = 'submit',\n}\n","<template>\n <button\n ref=\"bentoBaseButtonRef\"\n v-bind=\"$attrs\"\n class=\"b-base-button\"\n :class=\"conditionalClasses\"\n :disabled=\"disabled\"\n :type=\"type\"\n :aria-expanded=\"ariaAttributes['aria-expanded']\"\n @click=\"onClickButton\"\n @focus=\"onFocusButton\"\n @blur=\"onBlurButton\"\n >\n <span v-if=\"hasSlot('iconLeft')\" class=\"b-base-button__icon-left\" data-testid=\"icon-button-left\">\n <slot name=\"iconLeft\" />\n </span>\n <bento-typography v-if=\"hasSlot('default')\" el=\"span\" variant=\"body\" stronger class=\"b-base-button__label\">\n <slot />\n </bento-typography>\n <span v-if=\"hasSlot('iconRight')\" class=\"b-base-button__icon-right\" data-testid=\"icon-button-right\">\n <slot name=\"iconRight\" />\n </span>\n </button>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, type PropType, ref } from 'vue';\n import { BentoBaseButtonEvent, BentoBaseButtonPropClass } from './base-button.types';\n import type { ButtonHTMLAttributes } from 'vue/types/jsx.d.ts';\n import { BentoTypography } from '@/components/typography';\n import { useHasSlot } from '@/composables';\n import { type Booleanish } from '@/types/prop-types';\n\n /**\n * Base button component to use as a base for all the various types of bento buttons. For internal use only.\n *\n * * @example\n * import { BaseButton, BaseButtonEvent } from '@/components/internal/base-button';\n * import YourImportedIcon from @adyen/ui-assets-icons-16/example-icon';\n *\n * export default {\n * components: { BaseButton, YourImportedIcon },\n * props: {\n * text:\n * },\n * template: `\n * <base-button class=\"your-custom-button-styles\" @click=\"onClick\">\n * <template #iconLeft><your-imported-icon></template>\n * Button text\n * <template #iconRight><your-imported-icon></template>\n * </base-button>\n * `,\n * emits: [BentoButtonEvent.CLICK],\n * setup: (prps, { emit }) => {\n * const onClick = value => emit(BaseButtonEvent.CLICK, value);\n *\n * return {\n * onClick,\n * };\n * }\n * }\n */\n export default defineComponent({\n name: 'base-button',\n components: { BentoTypography },\n props: {\n /**\n * Disables button functionality\n */\n disabled: {\n type: Boolean,\n default: false,\n },\n /**\n * Displays button as critical\n */\n critical: {\n type: Boolean,\n default: false,\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 emits: [\n BentoBaseButtonEvent.CLICK,\n BentoBaseButtonEvent.FOCUS,\n BentoBaseButtonEvent.BLUR,\n BentoBaseButtonEvent.KEYDOWN_ESC,\n ],\n setup(props, { slots, emit, attrs }) {\n const ariaAttributes = computed(() => ({\n 'aria-expanded': attrs['aria-expanded']?.toString() as Booleanish,\n }));\n\n const bentoBaseButtonRef = ref(null);\n\n const conditionalClasses = computed(() => ({\n [`b-base-button--${BentoBaseButtonPropClass.DESTRUCTIVE}`]: props.critical,\n [`b-base-button--${BentoBaseButtonPropClass.ICON_ONLY}`]: !slots.default,\n }));\n\n const onClickButton = (e: MouseEvent) => {\n if (!props.disabled) {\n emit(BentoBaseButtonEvent.CLICK, e);\n } else {\n e.preventDefault();\n e.stopPropagation();\n }\n };\n\n const onFocusButton = (e: FocusEvent) => {\n emit(BentoBaseButtonEvent.FOCUS, e);\n };\n\n const onBlurButton = (e: FocusEvent) => {\n emit(BentoBaseButtonEvent.BLUR, e);\n };\n\n return {\n // Values\n ariaAttributes,\n conditionalClasses,\n\n // Methods\n onClickButton,\n onFocusButton,\n onBlurButton,\n hasSlot: useHasSlot(slots),\n\n // Refs\n bentoBaseButtonRef,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./base-button.scss\" />\n"],"names":["BentoBaseButtonPropClass","BentoBaseButtonPropClass2","BentoBaseButtonEvent","BentoBaseButtonEvent2","_sfc_main","defineComponent","BentoTypography","props","slots","emit","attrs","ariaAttributes","computed","_a","bentoBaseButtonRef","ref","conditionalClasses","e","useHasSlot","_hoisted_1","openBlock","createElementBlock","mergeProps","_ctx","_cache","args","renderSlot","createCommentVNode","createBlock","_component_bento_typography","_hoisted_3"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"base-button.CUd03aA2.js","sources":["../../../vue2/src/components/internal/base-button/base-button.types.ts","../../../vue2/src/components/internal/base-button/base-button.vue"],"sourcesContent":["export enum BentoBaseButtonPropClass {\n DESTRUCTIVE = 'critical',\n ICON_ONLY = 'icon-only',\n}\n\nexport enum BentoBaseButtonEvent {\n BLUR = 'blur',\n CLICK = 'click',\n FOCUS = 'focus',\n KEYDOWN_ESC = 'keydown.esc',\n}\n\nexport enum BaseButtonType {\n BUTTON = 'button',\n RESET = 'reset',\n SUBMIT = 'submit',\n}\n","<template>\n <button\n ref=\"bentoBaseButtonRef\"\n v-bind=\"$attrs\"\n class=\"b-base-button\"\n :class=\"conditionalClasses\"\n :disabled=\"disabled\"\n :type=\"type\"\n :aria-expanded=\"ariaAttributes['aria-expanded']\"\n @click=\"onClickButton\"\n @focus=\"onFocusButton\"\n @blur=\"onBlurButton\"\n >\n <span v-if=\"hasSlot('iconLeft')\" class=\"b-base-button__icon-left\" data-testid=\"icon-button-left\">\n <slot name=\"iconLeft\" />\n </span>\n <bento-typography v-if=\"hasSlot('default')\" el=\"span\" variant=\"body\" stronger class=\"b-base-button__label\">\n <slot />\n </bento-typography>\n <span v-if=\"hasSlot('iconRight')\" class=\"b-base-button__icon-right\" data-testid=\"icon-button-right\">\n <slot name=\"iconRight\" />\n </span>\n </button>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, type PropType, ref } from 'vue';\n import { BentoBaseButtonEvent, BentoBaseButtonPropClass } from './base-button.types';\n import type { ButtonHTMLAttributes } from 'vue/types/jsx.d.ts';\n import { BentoTypography } from '@/components/typography';\n import { useHasSlot } from '@/composables';\n import { type Booleanish } from '@/types/prop-types';\n\n /**\n * Base button component to use as a base for all the various types of bento buttons. For internal use only.\n *\n * * @example\n * import { BaseButton, BaseButtonEvent } from '@/components/internal/base-button';\n * import YourImportedIcon from @adyen/ui-assets-icons-16/example-icon';\n *\n * export default {\n * components: { BaseButton, YourImportedIcon },\n * props: {\n * text:\n * },\n * template: `\n * <base-button class=\"your-custom-button-styles\" @click=\"onClick\">\n * <template #iconLeft><your-imported-icon></template>\n * Button text\n * <template #iconRight><your-imported-icon></template>\n * </base-button>\n * `,\n * emits: [BentoButtonEvent.CLICK],\n * setup: (prps, { emit }) => {\n * const onClick = value => emit(BaseButtonEvent.CLICK, value);\n *\n * return {\n * onClick,\n * };\n * }\n * }\n */\n export default defineComponent({\n name: 'base-button',\n components: { BentoTypography },\n props: {\n /**\n * Disables button functionality\n */\n disabled: {\n type: Boolean,\n default: false,\n },\n /**\n * Displays button as critical\n */\n critical: {\n type: Boolean,\n default: false,\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 emits: [\n BentoBaseButtonEvent.CLICK,\n BentoBaseButtonEvent.FOCUS,\n BentoBaseButtonEvent.BLUR,\n BentoBaseButtonEvent.KEYDOWN_ESC,\n ],\n setup(props, { slots, emit, attrs }) {\n const ariaAttributes = computed(() => ({\n 'aria-expanded': attrs['aria-expanded']?.toString() as Booleanish,\n }));\n\n const bentoBaseButtonRef = ref(null);\n\n const conditionalClasses = computed(() => ({\n [`b-base-button--${BentoBaseButtonPropClass.DESTRUCTIVE}`]: props.critical,\n [`b-base-button--${BentoBaseButtonPropClass.ICON_ONLY}`]: !slots.default,\n }));\n\n const onClickButton = (e: MouseEvent) => {\n if (!props.disabled) {\n emit(BentoBaseButtonEvent.CLICK, e);\n } else {\n e.preventDefault();\n e.stopPropagation();\n }\n };\n\n const onFocusButton = (e: FocusEvent) => {\n emit(BentoBaseButtonEvent.FOCUS, e);\n };\n\n const onBlurButton = (e: FocusEvent) => {\n emit(BentoBaseButtonEvent.BLUR, e);\n };\n\n return {\n // Values\n ariaAttributes,\n conditionalClasses,\n\n // Methods\n onClickButton,\n onFocusButton,\n onBlurButton,\n hasSlot: useHasSlot(slots),\n\n // Refs\n bentoBaseButtonRef,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./base-button.scss\" />\n"],"names":["BentoBaseButtonPropClass","BentoBaseButtonPropClass2","BentoBaseButtonEvent","BentoBaseButtonEvent2","_sfc_main","defineComponent","BentoTypography","props","slots","emit","attrs","ariaAttributes","computed","_a","bentoBaseButtonRef","ref","conditionalClasses","e","useHasSlot","_hoisted_1","openBlock","createElementBlock","mergeProps","_ctx","_cache","args","renderSlot","createCommentVNode","createBlock","_component_bento_typography","_hoisted_3"],"mappings":";;;;;AAAY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,cAAA,YACAA,EAAA,YAAA,aAFQA,IAAAD,KAAA,CAAA,CAAA,GAKAE,IAAA,kBAAAC,OACRA,EAAA,OAAA,QACAA,EAAA,QAAA,SACAA,EAAA,QAAA,SACAA,EAAA,cAAA,eAJQA,IAAAD,KAAA,CAAA,CAAA;ACyDR,MAAAE,IAAAC,EAAA;AAAA,EAA+B,MAAA;AAAA,EACrB,YAAA,EAAA,iBAAAC,EAAA;AAAA,EACwB,OAAA;AAAA;AAAA;AAAA;AAAA,IACvB,UAAA;AAAA,MAIO,MAAA;AAAA,MACA,SAAA;AAAA,IACG;AAAA;AAAA;AAAA;AAAA,IACb,UAAA;AAAA,MAIU,MAAA;AAAA,MACA,SAAA;AAAA,IACG;AAAA;AAAA;AAAA;AAAA;AAAA,IACb,MAAA;AAAA,MAKM,MAAA;AAAA,MACI,SAAA;AAAA,IACG;AAAA,EACb;AAAA,EACJ,OAAA;AAAA,IACOJ,EAAA;AAAA,IACkBA,EAAA;AAAA,IACAA,EAAA;AAAA,IACAA,EAAA;AAAA,EACA;AAAA,EACzB,MAAAK,GAAA,EAAA,OAAAC,GAAA,MAAAC,GAAA,OAAAC,EAAA,GAAA;AAEI,UAAAC,IAAAC,EAAA,MAAA;;AAAA;AAAA,QAAuC,kBAAAC,IAAAH,EAAA,eAAA,MAAA,gBAAAG,EAAA;AAAA,MACe;AAAA,KAAA,GAGtDC,IAAAC,EAAA,IAAA,GAEAC,IAAAJ,EAAA,OAAA;AAAA,MAA2C,CAAA,kBAAAZ,EAAA,WAAA,EAAA,GAAAO,EAAA;AAAA,MAC2B,CAAA,kBAAAP,EAAA,SAAA,EAAA,GAAA,CAAAQ,EAAA;AAAA,IACD,EAAA;AAoBrE,WAAA;AAAA;AAAA,MAAO,gBAAAG;AAAA,MAEH,oBAAAK;AAAA;AAAA,MACA,eApBJ,CAAAC,MAAA;AACI,QAAAV,EAAA,YAGIU,EAAA,eAAA,GACAA,EAAA,gBAAA,KAHAR,EAAAP,EAAA,OAAAe,CAAA;AAAA,MAIJ;AAAA,MAiBA,eAdJ,CAAAA,MAAA;AACI,QAAAR,EAAAP,EAAA,OAAAe,CAAA;AAAA,MAAkC;AAAA,MAclC,cAXJ,CAAAA,MAAA;AACI,QAAAR,EAAAP,EAAA,MAAAe,CAAA;AAAA,MAAiC;AAAA,MAWjC,SAAAC,EAAAV,CAAA;AAAA;AAAA,MACyB,oBAAAM;AAAA,IAGzB;AAAA,EACJ;AAER,CAAA,GA3IJK,IAAA,CAAA,YAAA,QAAA,eAAA;EAa+C,KAAA;AAAA,EAA2B,OAAA;AAAA;;EAM1B,KAAA;AAAA,EAA4B,OAAA;AAAA;;;;AAbnE,SAAAC,EAAA,GAAAC,EAAA,UAAAC,EAAA,EAAA,KAAA,qBAAA,GAAAC,EAAA,QAAA;AAAA,IAAkB,OAAA,CAAA,iBAAAA,EAAA,kBAAA;AAAA,IACR,UAAAA,EAAA;AAAA,IACG,MAAAA,EAAA;AAAA,IACR,iBAAAA,EAAA,eAAA,eAAA;AAAA,IACE,SAAAC,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,IAAAC,MAAAF,EAAA,iBAAAA,EAAA,cAAA,GAAAE,CAAA;AAAA,IACW,SAAAD,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,IAAAC,MAAAF,EAAA,iBAAAA,EAAA,cAAA,GAAAE,CAAA;AAAA;EAEA,CAAA,GAAA;AAAA;MAb3BC,EAAAH,EAAA,QAAA,YAAA,CAAA,GAAA,QAAA,EAAA;AAAA,IAAA,CAAA,KAAAI,EAAA,IAAA,EAAA;AAAA,IAkB2BJ,EAAA,QAAA,SAAA,KAAAH,EAAA,GAAAQ,EAAAC,GAAA;AAAA,MAFkC,KAAA;AAAA,MAAC,IAAA;AAAA,MAAe,SAAA;AAAA,MAAe,UAAA;AAAA,MAhB5F,OAAA;AAAA,IAAA,GAAA;AAAA;QAAAH,EAAAH,EAAA,QAAA,WAAA,CAAA,GAAA,QAAA,EAAA;AAAA,MAAA,CAAA;AAAA,MAAA,GAAA;AAAA,IAAA,CAAA,KAAAI,EAAA,IAAA,EAAA;AAAA,IAmBQJ,EAAA,QAAA,WAAA,KAAAH,EAAA,GAAAC,EAAA,QAAAS,GAAA;AAAA,MAnBRJ,EAAAH,EAAA,QAAA,aAAA,CAAA,GAAA,QAAA,EAAA;AAAA,IAAA,CAAA,KAAAI,EAAA,IAAA,EAAA;AAAA;;;"}
|
|
@@ -1,41 +1,43 @@
|
|
|
1
|
-
import { defineComponent as $, useSlots as ee, ref as g, computed as d, inject as ce, watch as Y, nextTick as re, onUnmounted as me, createBlock as P, openBlock as A, normalizeClass as J, createSlots as te, withCtx as l, createElementVNode as
|
|
1
|
+
import { defineComponent as $, useSlots as ee, ref as g, computed as d, inject as ce, watch as Y, nextTick as re, onUnmounted as me, createBlock as P, openBlock as A, normalizeClass as J, createSlots as te, withCtx as l, createElementVNode as h, normalizeStyle as O, createCommentVNode as w, unref as t, renderSlot as c, createVNode as j, useAttrs as ge, toRefs as ve, onMounted as pe, provide as G, createElementBlock as fe, withKeys as _e, withDirectives as ye } from "vue";
|
|
2
2
|
import { B as be } from "./button.CSp48LJt.js";
|
|
3
|
-
import { B as
|
|
3
|
+
import { B as Le } from "./focus-trap.BaHvK7aT.js";
|
|
4
4
|
import { u as ae } from "./use-has-slot.B7eQSabc.js";
|
|
5
|
-
import { u as
|
|
6
|
-
import { j as Ae } from "./button-actions.
|
|
5
|
+
import { u as he } from "./index.pdBj0KQU.js";
|
|
6
|
+
import { j as Ae } from "./button-actions.Crj4QFAd.js";
|
|
7
7
|
import { g as Ce } from "./generate-uid.NJ8tVoha.js";
|
|
8
8
|
import { B as Ee } from "./directive.Cbdox5VL.js";
|
|
9
9
|
import { C as Ie } from "./cross.B92GxFTY.js";
|
|
10
|
-
import { D as Oe, B as Pe, b as Se, a as
|
|
10
|
+
import { D as Oe, B as Pe, b as Se, a as ke } from "./dialog-page.DaZSlMzY.js";
|
|
11
11
|
import { B as x } from "./typography.6Oo5TOMP.js";
|
|
12
|
-
import { F as
|
|
12
|
+
import { F as De } from "./footer-actions.BqNvwVk7.js";
|
|
13
13
|
import { o as Be } from "./resize.Bqks3WUm.js";
|
|
14
14
|
import { G as Te, a as Ne } from "./grid-layout.DDaRNz4-.js";
|
|
15
15
|
import { _ as oe } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
16
16
|
import "../assets/base-modal.css";
|
|
17
|
-
var Ge = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.DIALOG = "dialog", e))(Ge || {}), we = /* @__PURE__ */ ((e) => (e.DEFAULT = "BentoModalDefault", e.DIALOG = "BentoModalDialog", e))(we || {}), R = /* @__PURE__ */ ((e) => (e.SMALL = "small", e.MEDIUM = "medium", e.LARGE = "large", e))(R || {}),
|
|
17
|
+
var Ge = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.DIALOG = "dialog", e))(Ge || {}), we = /* @__PURE__ */ ((e) => (e.DEFAULT = "BentoModalDefault", e.DIALOG = "BentoModalDialog", e))(we || {}), R = /* @__PURE__ */ ((e) => (e.SMALL = "small", e.MEDIUM = "medium", e.LARGE = "large", e))(R || {}), D = /* @__PURE__ */ ((e) => (e.SMALLER = "smaller", e.EQUAL = "equal", e.BIGGER = "bigger", e))(D || {}), q = /* @__PURE__ */ ((e) => (e.DIALOG = "dialog", e.ALERT_DIALOG = "alertdialog", e))(q || {}), Re = /* @__PURE__ */ ((e) => (e.CONFIRMATION = "confirmation", e.DESTRUCTIVE = "destructive", e.INFO = "info", e.ACKNOWLEDGEMENT = "acknowledgement", e))(Re || {}), $e = /* @__PURE__ */ ((e) => (e.CLOSE_MODAL = "close-modal", e))($e || {});
|
|
18
18
|
const ne = {
|
|
19
19
|
"en-US": {
|
|
20
20
|
ariaLabelFallback: "modal",
|
|
21
21
|
close: "Close"
|
|
22
22
|
},
|
|
23
23
|
"ja-JP": {
|
|
24
|
+
ariaLabelFallback: "モーダル",
|
|
24
25
|
close: "閉じる"
|
|
25
26
|
},
|
|
26
27
|
"pt-BR": {
|
|
28
|
+
ariaLabelFallback: "modal",
|
|
27
29
|
close: "Fechar"
|
|
28
30
|
}
|
|
29
|
-
}, se = /* @__PURE__ */ Symbol("modal config data injection key"),
|
|
31
|
+
}, se = /* @__PURE__ */ Symbol("modal config data injection key"), Fe = { class: "b-modal-page__header" }, Me = {
|
|
30
32
|
"aria-label": "modal actions",
|
|
31
33
|
class: "b-modal-page__actions"
|
|
32
|
-
},
|
|
33
|
-
...
|
|
34
|
+
}, ze = $({}), Ue = /* @__PURE__ */ $({
|
|
35
|
+
...ze,
|
|
34
36
|
__name: "modal-page",
|
|
35
37
|
props: {
|
|
36
38
|
actions: { default: null },
|
|
37
39
|
actionsLabel: { default: null },
|
|
38
|
-
columnsSize: { default:
|
|
40
|
+
columnsSize: { default: D.SMALLER },
|
|
39
41
|
customPadding: { default: null },
|
|
40
42
|
destructiveActions: { type: Boolean, default: !1 },
|
|
41
43
|
withColumnLayout: { type: Boolean, default: !1 },
|
|
@@ -43,7 +45,7 @@ const ne = {
|
|
|
43
45
|
previousPage: { default: void 0 }
|
|
44
46
|
},
|
|
45
47
|
setup(e) {
|
|
46
|
-
const
|
|
48
|
+
const F = ee(), u = ae(F), f = g(null), s = e, M = d(() => ({
|
|
47
49
|
"b-modal-page--custom-padding": s.customPadding
|
|
48
50
|
})), _ = d(() => {
|
|
49
51
|
var a;
|
|
@@ -69,36 +71,36 @@ const ne = {
|
|
|
69
71
|
actions: { ...a, paddingBottom: s.customPadding },
|
|
70
72
|
backButton: { top: s.customPadding, paddingLeft: s.customPadding }
|
|
71
73
|
};
|
|
72
|
-
}), y = d(() => s.withColumnLayout && U.value === R.LARGE), B = d(() => s.columnsSize ===
|
|
74
|
+
}), y = d(() => s.withColumnLayout && U.value === R.LARGE), B = d(() => s.columnsSize === D.SMALLER ? [
|
|
73
75
|
{ small: 4, medium: 4, large: 4 },
|
|
74
76
|
{ small: 8, medium: 8, large: 8 }
|
|
75
|
-
] : s.columnsSize ===
|
|
77
|
+
] : s.columnsSize === D.BIGGER ? [
|
|
76
78
|
{ small: 8, medium: 8, large: 8 },
|
|
77
79
|
{ small: 4, medium: 4, large: 4 }
|
|
78
80
|
] : [
|
|
79
81
|
{ small: 6, medium: 6, large: 6 },
|
|
80
82
|
{ small: 6, medium: 6, large: 6 }
|
|
81
|
-
]), { activePage: b, height: n, isAnimationActive: S, pageCustomPadding: C, showCloseButton:
|
|
82
|
-
let
|
|
83
|
+
]), { activePage: b, height: n, isAnimationActive: S, pageCustomPadding: C, showCloseButton: z, size: U } = ce(se), K = d(() => b.value === s.pageId || !b.value);
|
|
84
|
+
let L = null;
|
|
83
85
|
return Y(
|
|
84
86
|
() => b.value,
|
|
85
87
|
async (a, r) => {
|
|
86
88
|
var m, v;
|
|
87
|
-
K.value && (await re(), n.value = `${(v = (m = f.value) == null ? void 0 : m.$el) == null ? void 0 : v.clientHeight}px`, C.value = s.customPadding, S.value = r !== void 0,
|
|
89
|
+
K.value && (await re(), n.value = `${(v = (m = f.value) == null ? void 0 : m.$el) == null ? void 0 : v.clientHeight}px`, C.value = s.customPadding, S.value = r !== void 0, L = Be(f.value, () => {
|
|
88
90
|
var T, E;
|
|
89
|
-
const
|
|
90
|
-
|
|
91
|
+
const k = `${(E = (T = f.value) == null ? void 0 : T.$el) == null ? void 0 : E.clientHeight}px`;
|
|
92
|
+
k && k !== n.value && (n.value = k);
|
|
91
93
|
}));
|
|
92
94
|
},
|
|
93
95
|
{ immediate: !0 }
|
|
94
96
|
), me(() => {
|
|
95
|
-
|
|
97
|
+
L == null || L.disconnect();
|
|
96
98
|
}), (a, r) => {
|
|
97
99
|
var m;
|
|
98
100
|
return A(), P(Oe, {
|
|
99
101
|
ref_key: "page",
|
|
100
102
|
ref: f,
|
|
101
|
-
class: J(["b-modal-page",
|
|
103
|
+
class: J(["b-modal-page", M.value]),
|
|
102
104
|
"page-id": a.pageId,
|
|
103
105
|
"always-show-border": y.value,
|
|
104
106
|
"back-button-styling": (m = i.value) == null ? void 0 : m.backButton,
|
|
@@ -106,7 +108,7 @@ const ne = {
|
|
|
106
108
|
onAnimationend: r[0] || (r[0] = (v) => S.value = !1)
|
|
107
109
|
}, te({
|
|
108
110
|
content: l(() => [
|
|
109
|
-
|
|
111
|
+
h("div", {
|
|
110
112
|
class: J(["b-modal-page__content", _.value]),
|
|
111
113
|
style: O(i.value.content)
|
|
112
114
|
}, [
|
|
@@ -137,14 +139,14 @@ const ne = {
|
|
|
137
139
|
]),
|
|
138
140
|
_: 2
|
|
139
141
|
}, [
|
|
140
|
-
t(u)("default") || t(
|
|
142
|
+
t(u)("default") || t(z) ? {
|
|
141
143
|
name: "header",
|
|
142
144
|
fn: l(() => [
|
|
143
|
-
|
|
145
|
+
h("div", {
|
|
144
146
|
class: "b-modal-page__header-container",
|
|
145
147
|
style: O(i.value.header)
|
|
146
148
|
}, [
|
|
147
|
-
|
|
149
|
+
h("div", Fe, [
|
|
148
150
|
j(t(x), {
|
|
149
151
|
class: "b-modal-page__title",
|
|
150
152
|
el: "span",
|
|
@@ -164,11 +166,11 @@ const ne = {
|
|
|
164
166
|
t(u)("actions") ? {
|
|
165
167
|
name: "footer",
|
|
166
168
|
fn: l(() => [
|
|
167
|
-
|
|
169
|
+
h("div", {
|
|
168
170
|
class: "b-modal-page__actions-container",
|
|
169
171
|
style: O(i.value.actions)
|
|
170
172
|
}, [
|
|
171
|
-
|
|
173
|
+
h("div", Me, [
|
|
172
174
|
c(a.$slots, "actions", {}, void 0, !0)
|
|
173
175
|
])
|
|
174
176
|
], 4)
|
|
@@ -177,11 +179,11 @@ const ne = {
|
|
|
177
179
|
} : a.actions && a.actions.length > 0 ? {
|
|
178
180
|
name: "footer",
|
|
179
181
|
fn: l(() => [
|
|
180
|
-
|
|
182
|
+
h("div", {
|
|
181
183
|
class: "b-modal-page__actions-container",
|
|
182
184
|
style: O(i.value.actions)
|
|
183
185
|
}, [
|
|
184
|
-
j(t(
|
|
186
|
+
j(t(De), {
|
|
185
187
|
actions: a.actions,
|
|
186
188
|
"actions-label": a.actionsLabel,
|
|
187
189
|
"destructive-actions": a.destructiveActions
|
|
@@ -244,7 +246,7 @@ const ne = {
|
|
|
244
246
|
*/
|
|
245
247
|
columnsSize: {
|
|
246
248
|
type: String,
|
|
247
|
-
default:
|
|
249
|
+
default: D.SMALLER
|
|
248
250
|
},
|
|
249
251
|
/**
|
|
250
252
|
* If provided, manages the padding of the whole modal container
|
|
@@ -287,8 +289,8 @@ const ne = {
|
|
|
287
289
|
withColumnLayout: { type: Boolean, default: !1 }
|
|
288
290
|
},
|
|
289
291
|
emits: ["update:active-page", "close-modal"],
|
|
290
|
-
setup(e, { expose: W, emit:
|
|
291
|
-
const { t: f } =
|
|
292
|
+
setup(e, { expose: W, emit: F }) {
|
|
293
|
+
const { t: f } = he({ messages: ne }), s = ee(), M = ge(), _ = ae(s), i = g(null), y = g(!1), B = Ce("modal"), b = F, n = e, S = d(() => n.isDismissible && !n.hideCloseButton), C = g(n.customPadding), z = d(() => C.value ? { top: C.value, right: C.value } : {}), U = d(() => M["aria-label"] ?? f("ariaLabelFallback")), K = d(() => n.withColumnLayout && n.size === R.LARGE), L = () => {
|
|
292
294
|
i.value.showModal();
|
|
293
295
|
}, a = () => {
|
|
294
296
|
b("close-modal");
|
|
@@ -298,7 +300,7 @@ const ne = {
|
|
|
298
300
|
i.value.open && (y.value = !0);
|
|
299
301
|
}, v = (o) => {
|
|
300
302
|
o && o.preventDefault(), !(!n.isDismissible && n.modalRole === q.DIALOG) && m();
|
|
301
|
-
},
|
|
303
|
+
}, k = () => {
|
|
302
304
|
n.isDismissible && v();
|
|
303
305
|
}, T = d(() => ({
|
|
304
306
|
[`b-modal-base__container--${n.size}`]: n.size,
|
|
@@ -311,7 +313,7 @@ const ne = {
|
|
|
311
313
|
([o, p], [, H]) => {
|
|
312
314
|
if (!p)
|
|
313
315
|
return;
|
|
314
|
-
o ? (
|
|
316
|
+
o ? (L(), I.value.length || I.value.push(E.value)) : !H || m();
|
|
315
317
|
}
|
|
316
318
|
), Y(
|
|
317
319
|
() => n.actions,
|
|
@@ -321,7 +323,7 @@ const ne = {
|
|
|
321
323
|
},
|
|
322
324
|
{ deep: !0 }
|
|
323
325
|
), pe(() => {
|
|
324
|
-
n.isOpen && i.value &&
|
|
326
|
+
n.isOpen && i.value && L();
|
|
325
327
|
}), W({
|
|
326
328
|
internalModalActionClose: v
|
|
327
329
|
}), G(Ae, B);
|
|
@@ -343,8 +345,8 @@ const ne = {
|
|
|
343
345
|
pages: N,
|
|
344
346
|
previousPages: I,
|
|
345
347
|
updatePage: ie
|
|
346
|
-
}), G(
|
|
347
|
-
|
|
348
|
+
}), G(ke, de), (o, p) => (A(), fe("div", He, [
|
|
349
|
+
h("dialog", {
|
|
348
350
|
ref_key: "modal",
|
|
349
351
|
ref: i,
|
|
350
352
|
role: e.modalRole,
|
|
@@ -355,7 +357,7 @@ const ne = {
|
|
|
355
357
|
onAnimationend: r,
|
|
356
358
|
onKeydown: _e(v, ["esc"])
|
|
357
359
|
}, [
|
|
358
|
-
t(Q) || e.initiallyOpen ? ye((A(), P(t(
|
|
360
|
+
t(Q) || e.initiallyOpen ? ye((A(), P(t(Le), {
|
|
359
361
|
key: 0,
|
|
360
362
|
id: t(B)
|
|
361
363
|
}, {
|
|
@@ -365,7 +367,7 @@ const ne = {
|
|
|
365
367
|
class: "b-modal-base__close-button",
|
|
366
368
|
variant: "tertiary",
|
|
367
369
|
type: "button",
|
|
368
|
-
style: O(
|
|
370
|
+
style: O(z.value),
|
|
369
371
|
onClick: v
|
|
370
372
|
}, {
|
|
371
373
|
default: l(() => [
|
|
@@ -421,7 +423,7 @@ const ne = {
|
|
|
421
423
|
]),
|
|
422
424
|
_: 3
|
|
423
425
|
}, 8, ["id"])), [
|
|
424
|
-
[t(Ee),
|
|
426
|
+
[t(Ee), k]
|
|
425
427
|
]) : w("", !0)
|
|
426
428
|
], 46, Ye)
|
|
427
429
|
]));
|
|
@@ -431,11 +433,11 @@ export {
|
|
|
431
433
|
Ge as B,
|
|
432
434
|
we as a,
|
|
433
435
|
R as b,
|
|
434
|
-
|
|
436
|
+
D as c,
|
|
435
437
|
q as d,
|
|
436
438
|
Re as e,
|
|
437
439
|
$e as f,
|
|
438
440
|
Ke as g,
|
|
439
441
|
dt as h
|
|
440
442
|
};
|
|
441
|
-
//# sourceMappingURL=base-modal.
|
|
443
|
+
//# sourceMappingURL=base-modal.D3GyeCFT.js.map
|