maz-ui 3.47.2-beta.9 → 3.48.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/components/MazAccordion.mjs +76 -77
- package/components/MazAnimatedCounter.mjs +7 -7
- package/components/MazAvatar.mjs +1 -1
- package/components/MazBackdrop.d.ts +21 -13
- package/components/MazBackdrop.mjs +107 -82
- package/components/MazBadge.mjs +2 -2
- package/components/MazBottomSheet.d.ts +11 -24
- package/components/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.mjs +1 -1
- package/components/MazCard.mjs +1 -1
- package/components/MazCardSpotlight.mjs +7 -7
- package/components/MazCarousel.mjs +1 -1
- package/components/MazChart.mjs +13 -13
- package/components/MazCheckbox.mjs +36 -37
- package/components/MazChecklist.mjs +1 -1
- package/components/MazCircularProgressBar.d.ts +18 -0
- package/components/MazCircularProgressBar.mjs +40 -38
- package/components/MazDialog.d.ts +20 -31
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise.d.ts +3 -3
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.d.ts +7 -4
- package/components/MazDrawer.mjs +2 -194
- package/components/MazDropdown.mjs +1 -1
- package/components/MazDropzone.mjs +1 -1
- package/components/MazExpandAnimation.mjs +8 -8
- package/components/MazFullscreenLoader.mjs +2 -40
- package/components/MazGallery.mjs +1 -1
- package/components/MazIcon.mjs +9 -8
- package/components/MazInput.d.ts +2 -0
- package/components/MazInput.mjs +1 -1
- package/components/MazInputCode.mjs +2 -2
- package/components/MazInputNumber.mjs +1 -1
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.mjs +1 -1
- package/components/MazLazyImg.mjs +1 -1
- package/components/MazLink.d.ts +2 -2
- package/components/MazLink.mjs +6 -6
- package/components/MazLoadingBar.mjs +17 -17
- package/components/MazPagination.mjs +1 -1
- package/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +2 -2
- package/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +12 -23
- package/components/MazPhoneNumberInput/types.d.ts +4 -2
- package/{types/components/MazPhoneNumberInput/use-libphonenumber.d.ts → components/MazPhoneNumberInput/useLibphonenumber.d.ts} +11 -6
- package/components/MazPhoneNumberInput/{use-maz-phone-number-input.d.ts → useMazPhoneNumberInput.d.ts} +1 -1
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.mjs +1 -1
- package/components/MazPullToRefresh.mjs +1 -1
- package/components/MazRadio.mjs +18 -19
- package/components/MazRadioButtons.mjs +2 -2
- package/components/MazReadingProgressBar.mjs +15 -15
- package/components/MazSelect.d.ts +1 -1
- package/components/MazSelect.mjs +1 -1
- package/components/MazSlider.mjs +31 -31
- package/components/MazSpinner.mjs +7 -7
- package/components/MazStepper.d.ts +1 -1
- package/components/MazStepper.mjs +1 -1
- package/components/MazSwitch.mjs +19 -20
- package/components/MazTable.mjs +1 -1
- package/components/MazTableCell.mjs +12 -12
- package/components/MazTableRow.mjs +6 -6
- package/components/MazTableTitle.mjs +11 -11
- package/components/MazTabs.d.ts +3 -3
- package/components/MazTabs.mjs +7 -7
- package/components/MazTabsBar.mjs +1 -1
- package/components/MazTabsContent.mjs +4 -4
- package/components/MazTabsContentItem.mjs +10 -10
- package/components/MazTextarea.d.ts +26 -48
- package/components/MazTextarea.mjs +4 -5
- package/components/MazTransitionExpand.mjs +10 -10
- package/components/assets/MazAccordion.css +1 -1
- package/components/assets/MazAnimatedCounter.css +1 -1
- package/components/assets/MazAvatar.css +1 -1
- package/components/assets/MazBackdrop.css +1 -1
- package/components/assets/MazBadge.css +1 -1
- package/components/assets/MazBottomSheet.css +1 -1
- package/components/assets/MazBtn.css +1 -1
- package/components/assets/MazCard.css +1 -1
- package/components/assets/MazCardSpotlight.css +1 -1
- package/components/assets/MazCarousel.css +1 -1
- package/components/assets/MazCheckbox.css +1 -1
- package/components/assets/MazChecklist.css +1 -1
- package/components/assets/MazCircularProgressBar.css +1 -1
- package/components/assets/MazDialog.css +1 -1
- package/components/assets/MazDialogPromise.css +1 -1
- package/components/assets/MazDrawer.css +1 -1
- package/components/assets/MazExpandAnimation.css +1 -1
- package/components/assets/MazFullscreenLoader.css +1 -1
- package/components/assets/MazGallery.css +1 -1
- package/components/assets/MazInput.css +1 -1
- package/components/assets/MazInputCode.css +1 -1
- package/components/assets/MazInputNumber.css +1 -1
- package/components/assets/MazInputPrice.css +1 -1
- package/components/assets/MazInputTags.css +1 -1
- package/components/assets/MazLazyImg.css +1 -1
- package/components/assets/MazLink.css +1 -1
- package/components/assets/MazLoadingBar.css +1 -1
- package/components/assets/MazPagination.css +1 -1
- package/components/assets/MazPhoneNumberInput.css +1 -1
- package/components/assets/MazPicker.css +1 -1
- package/components/assets/MazPullToRefresh.css +1 -1
- package/components/assets/MazRadio.css +1 -1
- package/components/assets/MazRadioButtons.css +1 -1
- package/components/assets/MazReadingProgressBar.css +1 -1
- package/components/assets/MazSelect.css +1 -1
- package/components/assets/MazSlider.css +1 -1
- package/components/assets/MazSpinner.css +1 -1
- package/components/assets/MazStepper.css +1 -1
- package/components/assets/MazTable.css +1 -1
- package/components/assets/MazTableCell.css +1 -1
- package/components/assets/MazTableRow.css +1 -1
- package/components/assets/MazTableTitle.css +1 -1
- package/components/assets/MazTabsBar.css +1 -1
- package/components/assets/MazTabsContentItem.css +1 -1
- package/components/assets/MazTextarea.css +1 -1
- package/components/assets/MazTransitionExpand.css +1 -1
- package/components/chunks/{MazAvatar-CZzOIbzh.mjs → MazAvatar-CuOWgdVG.mjs} +18 -18
- package/components/chunks/{MazBadge-CupQjB8D.mjs → MazBadge-tPgFsG6Y.mjs} +6 -6
- package/components/chunks/MazBottomSheet-CMqzf-dT.mjs +224 -0
- package/components/chunks/MazBtn-B16x1gSu.mjs +103 -0
- package/components/chunks/MazBtn-BLSmc1v4.mjs +103 -0
- package/components/chunks/MazBtn-BcrrOaO_.mjs +103 -0
- package/components/chunks/MazBtn-Bje1xDu3.mjs +103 -0
- package/components/chunks/MazBtn-C5sb0470.mjs +103 -0
- package/components/chunks/MazBtn-CPwCJ1l-.mjs +103 -0
- package/components/chunks/{MazBtn-BVWOyFm-.mjs → MazBtn-Cf-LPT5p.mjs} +4 -4
- package/components/chunks/MazBtn-DCyFSkZo.mjs +103 -0
- package/components/chunks/{MazBtn-DhSKmF01.mjs → MazBtn-DETtZdlj.mjs} +3 -3
- package/components/chunks/{MazBtn-BSgCMRt0.mjs → MazBtn-DnJzOPh9.mjs} +4 -4
- package/components/chunks/{MazBtn-CM-xSnA5.mjs → MazBtn-DsGaq_eB.mjs} +3 -3
- package/components/chunks/{MazBtn-Br3xKJMD.mjs → MazBtn-S7EnZYtZ.mjs} +4 -4
- package/components/chunks/MazBtn-iYAY4cer.mjs +103 -0
- package/components/chunks/MazBtn-v4i4k53h.mjs +103 -0
- package/components/chunks/{MazCard-XBaeDZkg.mjs → MazCard-l54W3CUU.mjs} +3 -3
- package/components/chunks/{MazCarousel-COTaKhKF.mjs → MazCarousel-C16E1i1T.mjs} +3 -3
- package/components/chunks/{MazCheckbox-DxfneUvu.mjs → MazCheckbox-C1nh-xQt.mjs} +7 -7
- package/components/chunks/{MazCheckbox-B-Sw22La.mjs → MazCheckbox-CEsAHbdi.mjs} +7 -7
- package/components/chunks/{MazCheckbox-DjY15PA3.mjs → MazCheckbox-D-7-TdgO.mjs} +4 -4
- package/components/chunks/{MazChecklist-DaozZlNb.mjs → MazChecklist-DSfD55m5.mjs} +125 -126
- package/components/chunks/MazDialog-BjQ3ivmv.mjs +297 -0
- package/components/chunks/MazDialogPromise-Bg3ZOsEI.mjs +551 -0
- package/components/chunks/MazDrawer-BqNLfW4e.mjs +226 -0
- package/components/chunks/{MazDropdown-CKuIGitT.mjs → MazDropdown-DNXKdC_3.mjs} +5 -5
- package/components/chunks/{MazDropzone-DKFkgqqD.mjs → MazDropzone-n0JE92da.mjs} +2 -2
- package/components/chunks/{MazExpandAnimation-Bdf0-L85.mjs → MazExpandAnimation-B04WMwpW.mjs} +8 -8
- package/components/chunks/MazFullscreenLoader-XF8wIEcL.mjs +48 -0
- package/components/chunks/{MazGallery-BooLoRWi.mjs → MazGallery-CzlKPQFX.mjs} +67 -67
- package/components/chunks/{MazGallery-DUOQamrE.mjs → MazGallery-DdZ3bFvX.mjs} +68 -68
- package/components/chunks/{MazIcon-_hN-Kivn.mjs → MazIcon-Cq1v4J3r.mjs} +9 -8
- package/components/chunks/{MazIcon-C-aPrqx2.mjs → MazIcon-DQXhsxp8.mjs} +11 -10
- package/components/chunks/{MazIcon-DFW4cVVf.mjs → MazIcon-DR6-win-.mjs} +12 -11
- package/components/chunks/MazIcon-Gv6n6i4M.mjs +4 -0
- package/components/chunks/{MazInput-HLPtw5QK.mjs → MazInput-BjnuoFvn.mjs} +36 -36
- package/components/chunks/{MazInput-BWAWlxDa.mjs → MazInput-DB4HtpCQ.mjs} +13 -13
- package/components/chunks/{MazInput-DIN1VAoX.mjs → MazInput-yBii2AFS.mjs} +27 -28
- package/components/chunks/{MazInputNumber-7Ku2ZcG-.mjs → MazInputNumber-DqnLi9-C.mjs} +81 -82
- package/components/chunks/{MazInputPrice-C5yErBFP.mjs → MazInputPrice-Ca8mL53M.mjs} +44 -45
- package/components/chunks/{MazInputTags-DvbQ2mK8.mjs → MazInputTags-Bto9dVQq.mjs} +78 -79
- package/components/chunks/{MazLazyImg-DQLwaKKz.mjs → MazLazyImg-D9mlGTCs.mjs} +4 -4
- package/components/chunks/{MazLazyImg-B-6PQWEi.mjs → MazLazyImg-DnJyLBjr.mjs} +3 -3
- package/components/chunks/{MazLink-mrqHeBS0.mjs → MazLink-DlUG7E5K.mjs} +3 -3
- package/components/chunks/{MazLoadingBar-CNm3Yt6D.mjs → MazLoadingBar-DBt1Ltm5.mjs} +8 -8
- package/components/chunks/{MazPagination-BSu0Ifkp.mjs → MazPagination-sxkvTajI.mjs} +49 -49
- package/components/chunks/MazPhoneNumberInput-C3j3JyDI.mjs +1813 -0
- package/components/chunks/{MazPicker-CzYUZcLy.mjs → MazPicker-BUXJof_-.mjs} +19 -20
- package/components/chunks/{MazPickerMonthSwitcher-Ds5agR3Z.mjs → MazPickerMonthSwitcher-DW2WfonJ.mjs} +1 -1
- package/components/chunks/{MazPickerShortcuts-BP6CY9-c.mjs → MazPickerShortcuts-fw4-dWSv.mjs} +1 -1
- package/components/chunks/{MazPickerYearSwitcher-PM8qZMzR.mjs → MazPickerYearSwitcher-aHvmQBF1.mjs} +1 -1
- package/components/chunks/{MazPullToRefresh-CFQX0soS.mjs → MazPullToRefresh-a1rT-zWr.mjs} +3 -3
- package/components/chunks/{MazSelect-DOexatNj.mjs → MazSelect-BwahUlbE.mjs} +322 -326
- package/components/chunks/MazSelect-CBaOs6va.mjs +550 -0
- package/components/chunks/MazSpinner-BVQYjLWp.mjs +34 -0
- package/components/chunks/{MazSpinner-yr9xVdAa.mjs → MazSpinner-BYlkcKf0.mjs} +6 -6
- package/components/chunks/MazSpinner-B_THFs0t.mjs +34 -0
- package/components/chunks/MazSpinner-Bb1BgWPD.mjs +34 -0
- package/components/chunks/MazSpinner-Bb4B4Nz8.mjs +34 -0
- package/components/chunks/{MazSpinner-9M_EGMpy.mjs → MazSpinner-Bpkl7q5u.mjs} +7 -7
- package/components/chunks/MazSpinner-BtDo7ZEC.mjs +34 -0
- package/components/chunks/MazSpinner-C-DOH7ou.mjs +34 -0
- package/components/chunks/MazSpinner-C1Rr3w9l.mjs +34 -0
- package/components/chunks/MazSpinner-C47dmUu7.mjs +34 -0
- package/components/chunks/MazSpinner-C7_Q1K-e.mjs +34 -0
- package/components/chunks/MazSpinner-CBHbVSef.mjs +34 -0
- package/components/chunks/MazSpinner-CCThMV5o.mjs +34 -0
- package/components/chunks/MazSpinner-CizL97Q2.mjs +34 -0
- package/components/chunks/{MazSpinner-BJpv1muf.mjs → MazSpinner-Cmy2WyWY.mjs} +7 -7
- package/components/chunks/MazSpinner-CodOqnm1.mjs +34 -0
- package/components/chunks/MazSpinner-Cq0S_tbE.mjs +34 -0
- package/components/chunks/{MazSpinner-Bsy1nA3c.mjs → MazSpinner-D6PdYOcD.mjs} +7 -7
- package/components/chunks/MazSpinner-DV9-beEc.mjs +34 -0
- package/components/chunks/MazSpinner-DoFpeVcl.mjs +34 -0
- package/components/chunks/MazSpinner-Dx-3_EFZ.mjs +34 -0
- package/components/chunks/MazSpinner-PVTrAf5V.mjs +34 -0
- package/components/chunks/MazSpinner-PXSS3XT3.mjs +34 -0
- package/components/chunks/MazSpinner-XZrAaGeE.mjs +34 -0
- package/components/chunks/{MazStepper-B3fuhbye.mjs → MazStepper-DtAqtJjn.mjs} +32 -32
- package/components/chunks/{MazTable-Ci8nhgOP.mjs → MazTable-Soe-MrTW.mjs} +79 -74
- package/components/chunks/{MazTableCell-BIganK6X.mjs → MazTableCell-DtoO9MOe.mjs} +6 -6
- package/components/chunks/MazTableRow-ChFMulaU.mjs +30 -0
- package/components/chunks/{MazTableTitle-OEgTPQB3.mjs → MazTableTitle-D8El-v5p.mjs} +6 -6
- package/components/chunks/{MazTabsBar-CT35SCIK.mjs → MazTabsBar-8wchBiYF.mjs} +21 -21
- package/components/chunks/{MazTransitionExpand-Bcwdl9g2.mjs → MazTransitionExpand-CRArAQZu.mjs} +10 -10
- package/components/chunks/examples.mobile.json-tW3aL0qI.mjs +4 -0
- package/components/chunks/useInstanceUniqId-BkOfxhk8.mjs +10 -0
- package/css/main.css +1 -1
- package/modules/assets/MazBtn.css +1 -1
- package/modules/assets/MazSpinner.css +1 -1
- package/modules/assets/index.css +1 -1
- package/modules/chunks/MazBtn-D0bVfaLm.cjs +1 -0
- package/{components/chunks/MazBtn-BfIn7glE.mjs → modules/chunks/MazBtn-Z86MClP9.mjs} +4 -4
- package/modules/chunks/{MazIcon-D-Gna0vz.cjs → MazIcon-BwgJhGLT.cjs} +1 -1
- package/modules/chunks/{MazIcon-CeT6HK_q.mjs → MazIcon-XtyPgbu6.mjs} +12 -11
- package/{components/chunks/MazSpinner-BlbTztM3.mjs → modules/chunks/MazSpinner-BfUXTY7m.mjs} +7 -7
- package/modules/chunks/MazSpinner-C5Fi9q_G.cjs +1 -0
- package/modules/chunks/index-Bq5KVBKA.cjs +124 -0
- package/modules/chunks/{index-Kry9j5uD.mjs → index-YwIF5a3Q.mjs} +1187 -951
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +47 -46
- package/nuxt/index.json +1 -1
- package/package.json +4 -3
- package/tailwindcss/tailwind.css +0 -6
- package/tailwindcss/utils/colors.ts +9 -5
- package/tailwindcss/variables/utilities.ts +3 -0
- package/types/components/MazBackdrop.vue.d.ts +21 -13
- package/types/components/MazBottomSheet.vue.d.ts +11 -24
- package/types/components/MazCircularProgressBar.vue.d.ts +18 -0
- package/types/components/MazDialog.vue.d.ts +20 -31
- package/types/components/MazDialogPromise.vue.d.ts +3 -3
- package/types/components/MazDrawer.vue.d.ts +7 -4
- package/types/components/MazInput.vue.d.ts +2 -0
- package/types/components/MazLink.vue.d.ts +2 -2
- package/types/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +2 -2
- package/types/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +12 -23
- package/types/components/MazPhoneNumberInput/types.d.ts +4 -2
- package/{components/MazPhoneNumberInput/use-libphonenumber.d.ts → types/components/MazPhoneNumberInput/useLibphonenumber.d.ts} +11 -6
- package/types/components/MazPhoneNumberInput/{use-maz-phone-number-input.d.ts → useMazPhoneNumberInput.d.ts} +1 -1
- package/types/components/MazSelect.vue.d.ts +1 -1
- package/types/components/MazStepper.vue.d.ts +1 -1
- package/types/components/MazTabs.vue.d.ts +3 -3
- package/types/components/MazTextarea.vue.d.ts +26 -48
- package/types/modules/composables/useFormValidator/types.d.ts +2 -2
- package/types/modules/composables/useFormValidator/useFormField.d.ts +56 -16
- package/types/modules/composables/useFormValidator/utils.d.ts +6 -6
- package/types/modules/composables/useLanguageDisplayNames.d.ts +13 -12
- package/types/modules/directives/closable.d.ts +1 -1
- package/types/modules/directives/tooltip/index.d.ts +21 -0
- package/types/tailwindcss/tailwind.config.d.ts +2 -2
- package/types/tailwindcss/utils/colors.d.ts +1 -1
- package/types/tailwindcss/variables/utilities.d.ts +3 -0
- package/components/MazPhoneNumberInput.d.ts +0 -240
- package/components/chunks/MazBottomSheet-D9EPpEV8.mjs +0 -208
- package/components/chunks/MazBtn-CB6xVwox.mjs +0 -103
- package/components/chunks/MazBtn-CIAdgMGr.mjs +0 -111
- package/components/chunks/MazBtn-CQq-U8qQ.mjs +0 -103
- package/components/chunks/MazBtn-Chk7DWOF.mjs +0 -103
- package/components/chunks/MazBtn-Ck84sP9a.mjs +0 -103
- package/components/chunks/MazBtn-DI80W9rl.mjs +0 -103
- package/components/chunks/MazBtn-DzwuLea3.mjs +0 -103
- package/components/chunks/MazBtn-tOUtVpek.mjs +0 -103
- package/components/chunks/MazDialog-XiX9LEiz.mjs +0 -237
- package/components/chunks/MazDialogPromise-B9_e3Ma9.mjs +0 -488
- package/components/chunks/MazIcon-BX2Gbz8R.mjs +0 -4
- package/components/chunks/MazPhoneNumberInput-B5Up8CqL.mjs +0 -1806
- package/components/chunks/MazSelect-DaDRzcT_.mjs +0 -552
- package/components/chunks/MazSpinner-C30YfScc.mjs +0 -34
- package/components/chunks/MazSpinner-C5mnD76l.mjs +0 -34
- package/components/chunks/MazSpinner-CDx6lo7l.mjs +0 -34
- package/components/chunks/MazSpinner-C_GueolV.mjs +0 -34
- package/components/chunks/MazSpinner-Cc-KlPEG.mjs +0 -34
- package/components/chunks/MazSpinner-Cgg2dkzQ.mjs +0 -34
- package/components/chunks/MazSpinner-CkKIUYXO.mjs +0 -34
- package/components/chunks/MazSpinner-CxyUHAvm.mjs +0 -34
- package/components/chunks/MazSpinner-DROgQW2M.mjs +0 -34
- package/components/chunks/MazSpinner-DjM6ktPY.mjs +0 -34
- package/components/chunks/MazSpinner-DjUU4G1h.mjs +0 -34
- package/components/chunks/MazSpinner-Du5o8JC_.mjs +0 -38
- package/components/chunks/MazSpinner-Dzs2W0kq.mjs +0 -34
- package/components/chunks/MazSpinner-NCtEpFMm.mjs +0 -34
- package/components/chunks/MazSpinner-QfPXLpa_.mjs +0 -34
- package/components/chunks/MazSpinner-XB6tX3Ld.mjs +0 -34
- package/components/chunks/MazSpinner-ZPQe8ON_.mjs +0 -34
- package/components/chunks/MazSpinner-b90e3OQK.mjs +0 -34
- package/components/chunks/MazSpinner-f6pBzqbu.mjs +0 -34
- package/components/chunks/MazTableRow-CIO-x6Lb.mjs +0 -30
- package/components/chunks/examples.mobile.json-JpNGylGv.mjs +0 -4
- package/components/chunks/useInstanceUniqId-DW9jO1Sz.mjs +0 -11
- package/modules/chunks/MazBtn-0CRjeBvn.mjs +0 -103
- package/modules/chunks/MazBtn-DRqCRJD-.cjs +0 -1
- package/modules/chunks/MazSpinner-DV--lwdI.mjs +0 -34
- package/modules/chunks/MazSpinner-DersvZQw.cjs +0 -1
- package/modules/chunks/index-DvromXrX.cjs +0 -124
- package/types/components/MazPhoneNumberInput.vue.d.ts +0 -240
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as p, createElementBlock as
|
|
1
|
+
import { openBlock as p, createElementBlock as g, createElementVNode as u, computed as $, useId as V, defineComponent as w, ref as f, onMounted as O, onUnmounted as B, normalizeClass as b, normalizeStyle as k, renderSlot as h, withDirectives as E, vShow as z, mergeModels as A, useModel as x, mergeProps as I, useSlots as L, Fragment as j, renderList as F, createBlock as N, withCtx as M, unref as y, createVNode as S } from "vue";
|
|
2
2
|
import './assets/MazAccordion.css';const R = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
4
|
width: "1em",
|
|
@@ -6,9 +6,9 @@ import './assets/MazAccordion.css';const R = {
|
|
|
6
6
|
fill: "none",
|
|
7
7
|
viewBox: "0 0 24 24"
|
|
8
8
|
};
|
|
9
|
-
function P(r,
|
|
10
|
-
return p(),
|
|
11
|
-
|
|
9
|
+
function P(r, t) {
|
|
10
|
+
return p(), g("svg", R, t[0] || (t[0] = [
|
|
11
|
+
u(
|
|
12
12
|
"path",
|
|
13
13
|
{
|
|
14
14
|
stroke: "currentColor",
|
|
@@ -26,10 +26,9 @@ function P(r, n) {
|
|
|
26
26
|
const T = { render: P };
|
|
27
27
|
function U({
|
|
28
28
|
componentName: r,
|
|
29
|
-
providedId:
|
|
29
|
+
providedId: t
|
|
30
30
|
}) {
|
|
31
|
-
|
|
32
|
-
return g(() => n ?? `${r}-${o}`);
|
|
31
|
+
return $(() => t ?? `${r}-${V().replace(/:/g, "")}`);
|
|
33
32
|
}
|
|
34
33
|
const q = { class: "inner" }, D = /* @__PURE__ */ w({
|
|
35
34
|
__name: "MazCardSpotlight",
|
|
@@ -42,16 +41,16 @@ const q = { class: "inner" }, D = /* @__PURE__ */ w({
|
|
|
42
41
|
innerOpacity: { default: 0.95 }
|
|
43
42
|
},
|
|
44
43
|
setup(r) {
|
|
45
|
-
const
|
|
46
|
-
function m({ clientX: d, clientY:
|
|
47
|
-
var e, _,
|
|
44
|
+
const t = r, l = f(), o = f(), s = f(!1);
|
|
45
|
+
function m({ clientX: d, clientY: c }) {
|
|
46
|
+
var e, _, n;
|
|
48
47
|
s.value = !0;
|
|
49
|
-
const v = (e =
|
|
50
|
-
v && ((
|
|
48
|
+
const v = (e = o.value) == null ? void 0 : e.getBoundingClientRect();
|
|
49
|
+
v && ((n = (_ = l.value) == null ? void 0 : _.animate) == null || n.call(
|
|
51
50
|
_,
|
|
52
51
|
[
|
|
53
52
|
{
|
|
54
|
-
transform: `translate(${d - v.left - v.width / 2}px,${
|
|
53
|
+
transform: `translate(${d - v.left - v.width / 2}px,${c - v.top - v.height / 2}px)`
|
|
55
54
|
}
|
|
56
55
|
],
|
|
57
56
|
{
|
|
@@ -60,23 +59,23 @@ const q = { class: "inner" }, D = /* @__PURE__ */ w({
|
|
|
60
59
|
}
|
|
61
60
|
));
|
|
62
61
|
}
|
|
63
|
-
const
|
|
62
|
+
const a = $(() => `var(--maz-color-${t.color}-alpha)`), i = $(() => `var(--maz-color-${t.color}-alpha-20)`);
|
|
64
63
|
return O(() => {
|
|
65
64
|
window.addEventListener("mousemove", m);
|
|
66
65
|
}), B(() => {
|
|
67
66
|
window.removeEventListener("mousemove", m);
|
|
68
|
-
}), (d,
|
|
67
|
+
}), (d, c) => (p(), g(
|
|
69
68
|
"div",
|
|
70
69
|
{
|
|
71
|
-
class:
|
|
70
|
+
class: b(["m-card-spotlight m-reset-css", { "maz-elevation": !d.noElevation }]),
|
|
72
71
|
style: k({ backgroundColor: i.value, "--inner-opacity": d.innerOpacity })
|
|
73
72
|
},
|
|
74
73
|
[
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
u("div", q, [
|
|
75
|
+
u(
|
|
77
76
|
"div",
|
|
78
77
|
{
|
|
79
|
-
class:
|
|
78
|
+
class: b(["content", [{ "maz-p-4": d.padding }, d.contentClass]])
|
|
80
79
|
},
|
|
81
80
|
[
|
|
82
81
|
h(d.$slots, "default", {}, void 0, !0)
|
|
@@ -85,13 +84,13 @@ const q = { class: "inner" }, D = /* @__PURE__ */ w({
|
|
|
85
84
|
/* CLASS */
|
|
86
85
|
)
|
|
87
86
|
]),
|
|
88
|
-
E(
|
|
87
|
+
E(u(
|
|
89
88
|
"div",
|
|
90
89
|
{
|
|
91
90
|
ref_key: "blobElement",
|
|
92
|
-
ref:
|
|
91
|
+
ref: l,
|
|
93
92
|
class: "blob",
|
|
94
|
-
style: k({ backgroundColor:
|
|
93
|
+
style: k({ backgroundColor: a.value })
|
|
95
94
|
},
|
|
96
95
|
null,
|
|
97
96
|
4
|
|
@@ -99,11 +98,11 @@ const q = { class: "inner" }, D = /* @__PURE__ */ w({
|
|
|
99
98
|
), [
|
|
100
99
|
[z, s.value]
|
|
101
100
|
]),
|
|
102
|
-
E(
|
|
101
|
+
E(u(
|
|
103
102
|
"div",
|
|
104
103
|
{
|
|
105
104
|
ref_key: "fakeblobElement",
|
|
106
|
-
ref:
|
|
105
|
+
ref: o,
|
|
107
106
|
class: "fakeblob"
|
|
108
107
|
},
|
|
109
108
|
null,
|
|
@@ -117,12 +116,12 @@ const q = { class: "inner" }, D = /* @__PURE__ */ w({
|
|
|
117
116
|
/* CLASS, STYLE */
|
|
118
117
|
));
|
|
119
118
|
}
|
|
120
|
-
}), C = (r,
|
|
121
|
-
const
|
|
122
|
-
for (const [
|
|
123
|
-
o
|
|
124
|
-
return
|
|
125
|
-
}, H = /* @__PURE__ */ C(D, [["__scopeId", "data-v-
|
|
119
|
+
}), C = (r, t) => {
|
|
120
|
+
const l = r.__vccOpts || r;
|
|
121
|
+
for (const [o, s] of t)
|
|
122
|
+
l[o] = s;
|
|
123
|
+
return l;
|
|
124
|
+
}, H = /* @__PURE__ */ C(D, [["__scopeId", "data-v-4f773edc"]]), W = ["aria-hidden"], G = /* @__PURE__ */ w({
|
|
126
125
|
inheritAttrs: !1,
|
|
127
126
|
__name: "MazExpandAnimation",
|
|
128
127
|
props: /* @__PURE__ */ A({
|
|
@@ -134,44 +133,44 @@ const q = { class: "inner" }, D = /* @__PURE__ */ w({
|
|
|
134
133
|
}),
|
|
135
134
|
emits: ["update:modelValue"],
|
|
136
135
|
setup(r) {
|
|
137
|
-
const
|
|
136
|
+
const t = x(r, "modelValue"), l = f(!t.value), o = f();
|
|
138
137
|
function s() {
|
|
139
|
-
|
|
138
|
+
t.value || (l.value = !0);
|
|
140
139
|
}
|
|
141
140
|
function m() {
|
|
142
|
-
|
|
141
|
+
t.value && (l.value = !1);
|
|
143
142
|
}
|
|
144
143
|
return O(() => {
|
|
145
|
-
var
|
|
146
|
-
(
|
|
144
|
+
var a, i;
|
|
145
|
+
(a = o.value) == null || a.addEventListener("transitionstart", s, !1), (i = o.value) == null || i.addEventListener("transitionend", m, !1);
|
|
147
146
|
}), B(() => {
|
|
148
|
-
var
|
|
149
|
-
(
|
|
150
|
-
}), (
|
|
147
|
+
var a, i;
|
|
148
|
+
(a = o.value) == null || a.removeEventListener("transitionstart", s, !1), (i = o.value) == null || i.removeEventListener("transitionend", m, !1);
|
|
149
|
+
}), (a, i) => (p(), g("div", {
|
|
151
150
|
ref_key: "expandAnimationRef",
|
|
152
|
-
ref:
|
|
153
|
-
class:
|
|
154
|
-
"aria-hidden": !
|
|
151
|
+
ref: o,
|
|
152
|
+
class: b(["m-expand-animation m-reset-css", { "m-expand-animation--expanded": t.value }]),
|
|
153
|
+
"aria-hidden": !t.value,
|
|
155
154
|
role: "region",
|
|
156
|
-
style: k([{ "--expand-animation-duration":
|
|
155
|
+
style: k([{ "--expand-animation-duration": a.duration, "--expand-animation-timing-function": a.timingFunction }])
|
|
157
156
|
}, [
|
|
158
|
-
|
|
157
|
+
u(
|
|
159
158
|
"div",
|
|
160
|
-
I({ class: "m-expand-animation__inner" },
|
|
159
|
+
I({ class: "m-expand-animation__inner" }, a.$attrs, {
|
|
161
160
|
class: {
|
|
162
|
-
"--overflow-hidden":
|
|
161
|
+
"--overflow-hidden": l.value
|
|
163
162
|
}
|
|
164
163
|
}),
|
|
165
164
|
[
|
|
166
|
-
h(
|
|
165
|
+
h(a.$slots, "default", {}, void 0, !0)
|
|
167
166
|
],
|
|
168
167
|
16
|
|
169
168
|
/* FULL_PROPS */
|
|
170
169
|
)
|
|
171
170
|
], 14, W));
|
|
172
171
|
}
|
|
173
|
-
}), J = /* @__PURE__ */ C(G, [["__scopeId", "data-v-
|
|
174
|
-
class: "m-accordion",
|
|
172
|
+
}), J = /* @__PURE__ */ C(G, [["__scopeId", "data-v-058a2912"]]), K = {
|
|
173
|
+
class: "m-accordion m-reset-css",
|
|
175
174
|
role: "presentation"
|
|
176
175
|
}, Q = ["id", "aria-controls", "aria-expanded", "onClick"], X = /* @__PURE__ */ w({
|
|
177
176
|
__name: "MazAccordion",
|
|
@@ -181,68 +180,68 @@ const q = { class: "inner" }, D = /* @__PURE__ */ w({
|
|
|
181
180
|
contentClass: { default: void 0 }
|
|
182
181
|
},
|
|
183
182
|
emits: ["update:model-value"],
|
|
184
|
-
setup(r, { emit:
|
|
185
|
-
const
|
|
183
|
+
setup(r, { emit: t }) {
|
|
184
|
+
const l = r, o = t, s = U({
|
|
186
185
|
componentName: "MazAccordion",
|
|
187
|
-
providedId:
|
|
188
|
-
}), m = L(),
|
|
186
|
+
providedId: l.id
|
|
187
|
+
}), m = L(), a = $(
|
|
189
188
|
() => Object.keys(m).filter((e) => e.startsWith("title-")).length
|
|
190
|
-
), i = f(
|
|
191
|
-
get: () =>
|
|
189
|
+
), i = f(l.modelValue), d = $({
|
|
190
|
+
get: () => l.modelValue || i.value,
|
|
192
191
|
set: (e) => {
|
|
193
|
-
i.value = e,
|
|
192
|
+
i.value = e, o("update:model-value", e);
|
|
194
193
|
}
|
|
195
194
|
});
|
|
196
|
-
function
|
|
195
|
+
function c(e) {
|
|
197
196
|
return d.value === e;
|
|
198
197
|
}
|
|
199
198
|
function v(e) {
|
|
200
|
-
d.value === e ? (i.value = 0,
|
|
199
|
+
d.value === e ? (i.value = 0, o("update:model-value", 0)) : (i.value = e, o("update:model-value", e));
|
|
201
200
|
}
|
|
202
|
-
return (e, _) => (p(),
|
|
203
|
-
(p(!0),
|
|
201
|
+
return (e, _) => (p(), g("div", K, [
|
|
202
|
+
(p(!0), g(
|
|
204
203
|
j,
|
|
205
204
|
null,
|
|
206
|
-
F(
|
|
205
|
+
F(a.value, (n) => (p(), N(
|
|
207
206
|
H,
|
|
208
207
|
{
|
|
209
|
-
key:
|
|
208
|
+
key: n,
|
|
210
209
|
class: "m-accordion__spotlight",
|
|
211
210
|
padding: !1
|
|
212
211
|
},
|
|
213
212
|
{
|
|
214
213
|
default: M(() => [
|
|
215
|
-
|
|
216
|
-
id: `step-${
|
|
214
|
+
u("button", {
|
|
215
|
+
id: `step-${n}-${y(s)}`,
|
|
217
216
|
class: "m-accordion__header",
|
|
218
|
-
"aria-controls": `step-${
|
|
219
|
-
"aria-expanded":
|
|
220
|
-
onClick: (Y) => v(
|
|
217
|
+
"aria-controls": `step-${n}-${y(s)}`,
|
|
218
|
+
"aria-expanded": c(n),
|
|
219
|
+
onClick: (Y) => v(n)
|
|
221
220
|
}, [
|
|
222
|
-
h(e.$slots, `title-${
|
|
223
|
-
isOpen:
|
|
221
|
+
h(e.$slots, `title-${n}`, {
|
|
222
|
+
isOpen: c(n)
|
|
224
223
|
}, void 0, !0),
|
|
225
224
|
S(y(T), {
|
|
226
|
-
class:
|
|
225
|
+
class: b(["header-icon", { "--rotate": c(n) }])
|
|
227
226
|
}, null, 8, ["class"])
|
|
228
227
|
], 8, Q),
|
|
229
228
|
S(J, {
|
|
230
229
|
"animation-duration": "300ms",
|
|
231
|
-
"model-value":
|
|
232
|
-
"aria-labelledby": `step-${
|
|
230
|
+
"model-value": c(n),
|
|
231
|
+
"aria-labelledby": `step-${n}-${y(s)}`
|
|
233
232
|
}, {
|
|
234
233
|
default: M(() => [
|
|
235
|
-
|
|
234
|
+
u(
|
|
236
235
|
"div",
|
|
237
236
|
{
|
|
238
|
-
class:
|
|
237
|
+
class: b(["m-accordion__content", e.contentClass])
|
|
239
238
|
},
|
|
240
239
|
[
|
|
241
240
|
h(e.$slots, "content", {
|
|
242
|
-
isOpen:
|
|
241
|
+
isOpen: c(n)
|
|
243
242
|
}, void 0, !0),
|
|
244
|
-
h(e.$slots, `content-${
|
|
245
|
-
isOpen:
|
|
243
|
+
h(e.$slots, `content-${n}`, {
|
|
244
|
+
isOpen: c(n)
|
|
246
245
|
}, void 0, !0)
|
|
247
246
|
],
|
|
248
247
|
2
|
|
@@ -264,7 +263,7 @@ const q = { class: "inner" }, D = /* @__PURE__ */ w({
|
|
|
264
263
|
))
|
|
265
264
|
]));
|
|
266
265
|
}
|
|
267
|
-
}), ee = /* @__PURE__ */ C(X, [["__scopeId", "data-v-
|
|
266
|
+
}), ee = /* @__PURE__ */ C(X, [["__scopeId", "data-v-6a945de6"]]);
|
|
268
267
|
export {
|
|
269
268
|
ee as default
|
|
270
269
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as v, useSlots as x, computed as l, ref as _, watch as h, openBlock as d, createElementBlock as
|
|
1
|
+
import { defineComponent as v, useSlots as x, computed as l, ref as _, watch as h, openBlock as d, createElementBlock as m, normalizeClass as y, normalizeStyle as z, createElementVNode as C, renderSlot as i, createTextVNode as o, toDisplayString as a, createCommentVNode as S } from "vue";
|
|
2
2
|
import './assets/MazAnimatedCounter.css';const $ = { class: "maz-sr-only" }, k = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "m-animated-counter__fix"
|
|
@@ -20,18 +20,18 @@ import './assets/MazAnimatedCounter.css';const $ = { class: "maz-sr-only" }, k =
|
|
|
20
20
|
}, 100));
|
|
21
21
|
}
|
|
22
22
|
);
|
|
23
|
-
const
|
|
24
|
-
return (e, c) => (d(),
|
|
23
|
+
const p = l(() => `${t.duration}ms`);
|
|
24
|
+
return (e, c) => (d(), m(
|
|
25
25
|
"span",
|
|
26
26
|
{
|
|
27
|
-
class: y(["m-animated-counter", {
|
|
27
|
+
class: y(["m-animated-counter m-reset-css", {
|
|
28
28
|
"--animated": f.value,
|
|
29
29
|
"--prefixed": r.value,
|
|
30
30
|
"--suffixed": u.value
|
|
31
31
|
}]),
|
|
32
32
|
style: z({
|
|
33
33
|
"--count": e.count,
|
|
34
|
-
"--animation-duration":
|
|
34
|
+
"--animation-duration": p.value
|
|
35
35
|
})
|
|
36
36
|
},
|
|
37
37
|
[
|
|
@@ -56,7 +56,7 @@ import './assets/MazAnimatedCounter.css';const $ = { class: "maz-sr-only" }, k =
|
|
|
56
56
|
)
|
|
57
57
|
], !0)
|
|
58
58
|
]),
|
|
59
|
-
r.value || u.value ? (d(),
|
|
59
|
+
r.value || u.value ? (d(), m("span", k, [
|
|
60
60
|
i(e.$slots, "prefix", {}, () => [
|
|
61
61
|
o(
|
|
62
62
|
a(e.prefix),
|
|
@@ -82,7 +82,7 @@ import './assets/MazAnimatedCounter.css';const $ = { class: "maz-sr-only" }, k =
|
|
|
82
82
|
for (const [r, u] of t)
|
|
83
83
|
s[r] = u;
|
|
84
84
|
return s;
|
|
85
|
-
}, V = /* @__PURE__ */ M(A, [["__scopeId", "data-v-
|
|
85
|
+
}, V = /* @__PURE__ */ M(A, [["__scopeId", "data-v-c2cd744f"]]);
|
|
86
86
|
export {
|
|
87
87
|
V as default
|
|
88
88
|
};
|
package/components/MazAvatar.mjs
CHANGED
|
@@ -1,13 +1,29 @@
|
|
|
1
1
|
import { type HTMLAttributes } from 'vue';
|
|
2
|
-
export interface
|
|
2
|
+
export interface MazBackdropProps {
|
|
3
|
+
/** @model Modal's model value */
|
|
3
4
|
modelValue?: boolean;
|
|
5
|
+
/** Teleport selector */
|
|
4
6
|
teleportSelector?: string;
|
|
7
|
+
/** Function called before modal is close */
|
|
5
8
|
beforeClose?: () => Promise<void> | void;
|
|
9
|
+
/** Persistent dialog (not closable by clicking outside and remove close button) */
|
|
6
10
|
persistent?: boolean;
|
|
11
|
+
/** Prevent close on escape key */
|
|
7
12
|
noCloseOnEscKey?: boolean;
|
|
13
|
+
/** Transition name */
|
|
8
14
|
transitionName?: string;
|
|
15
|
+
/** Backdrop class */
|
|
9
16
|
backdropClass?: HTMLAttributes['class'];
|
|
17
|
+
/** Backdrop content class */
|
|
10
18
|
backdropContentClass?: HTMLAttributes['class'];
|
|
19
|
+
/** Add padding to the content */
|
|
20
|
+
contentPadding?: boolean;
|
|
21
|
+
/** Justify content */
|
|
22
|
+
justify?: 'center' | 'end' | 'start' | 'space-between' | 'space-around' | 'none';
|
|
23
|
+
/** Align content */
|
|
24
|
+
align?: 'center' | 'end' | 'start' | 'none';
|
|
25
|
+
/** Variant */
|
|
26
|
+
variant?: 'bottom-sheet' | 'dialog' | 'drawer';
|
|
11
27
|
}
|
|
12
28
|
declare function close(): void;
|
|
13
29
|
declare function toggleModal(value: any): Promise<void>;
|
|
@@ -20,13 +36,14 @@ declare function __VLS_template(): {
|
|
|
20
36
|
slots: {
|
|
21
37
|
default?(_: {
|
|
22
38
|
close: typeof close;
|
|
39
|
+
onBackdropClicked: typeof onBackdropClicked;
|
|
23
40
|
}): any;
|
|
24
41
|
};
|
|
25
42
|
refs: {};
|
|
26
43
|
rootEl: any;
|
|
27
44
|
};
|
|
28
45
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
29
|
-
declare const __VLS_component: import("vue").DefineComponent<
|
|
46
|
+
declare const __VLS_component: import("vue").DefineComponent<MazBackdropProps, {
|
|
30
47
|
onBackdropAnimationEnter: typeof onBackdropAnimationEnter;
|
|
31
48
|
onBackdropAnimationLeave: typeof onBackdropAnimationLeave;
|
|
32
49
|
onBackdropClicked: typeof onBackdropClicked;
|
|
@@ -39,21 +56,12 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {
|
|
|
39
56
|
open: (value: void) => any;
|
|
40
57
|
"update:model-value": (value: boolean) => any;
|
|
41
58
|
"before-close": (value: void) => any;
|
|
42
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
59
|
+
}, string, import("vue").PublicProps, Readonly<MazBackdropProps> & Readonly<{
|
|
43
60
|
onClose?: ((value?: void | undefined) => any) | undefined;
|
|
44
61
|
onOpen?: ((value?: void | undefined) => any) | undefined;
|
|
45
62
|
"onUpdate:model-value"?: ((value: boolean) => any) | undefined;
|
|
46
63
|
"onBefore-close"?: ((value?: void | undefined) => any) | undefined;
|
|
47
|
-
}>, {
|
|
48
|
-
modelValue: boolean;
|
|
49
|
-
teleportSelector: string;
|
|
50
|
-
beforeClose: () => Promise<void> | void;
|
|
51
|
-
persistent: boolean;
|
|
52
|
-
noCloseOnEscKey: boolean;
|
|
53
|
-
transitionName: string;
|
|
54
|
-
backdropClass: HTMLAttributes["class"];
|
|
55
|
-
backdropContentClass: HTMLAttributes["class"];
|
|
56
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
64
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
57
65
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
58
66
|
export default _default;
|
|
59
67
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import './assets/MazBackdrop.css';const
|
|
1
|
+
import { defineComponent as L, ref as P, onMounted as V, watch as D, nextTick as B, openBlock as h, createBlock as M, Teleport as N, createVNode as T, Transition as O, withCtx as $, createElementBlock as j, mergeProps as q, createElementVNode as v, normalizeClass as z, withModifiers as F, renderSlot as K, createCommentVNode as I } from "vue";
|
|
2
|
+
import './assets/MazBackdrop.css';const G = {
|
|
3
|
+
role: "dialog",
|
|
4
|
+
class: "m-backdrop-container",
|
|
5
|
+
"aria-modal": "true"
|
|
6
|
+
}, H = { class: "m-backdrop-wrapper" }, A = "--backdrop-present", J = /* @__PURE__ */ L({
|
|
3
7
|
inheritAttrs: !1,
|
|
4
8
|
__name: "MazBackdrop",
|
|
5
9
|
props: {
|
|
@@ -9,112 +13,133 @@ import './assets/MazBackdrop.css';const b = "--backdrop-present", F = /* @__PURE
|
|
|
9
13
|
persistent: { type: Boolean, default: !1 },
|
|
10
14
|
noCloseOnEscKey: { type: Boolean, default: !1 },
|
|
11
15
|
transitionName: { default: "backdrop-anim" },
|
|
12
|
-
backdropClass: { default:
|
|
13
|
-
|
|
16
|
+
backdropClass: { default: () => {
|
|
17
|
+
} },
|
|
18
|
+
backdropContentClass: { default: () => {
|
|
19
|
+
} },
|
|
20
|
+
contentPadding: { type: Boolean, default: !1 },
|
|
21
|
+
justify: { default: "none" },
|
|
22
|
+
align: { default: "none" },
|
|
23
|
+
variant: {}
|
|
14
24
|
},
|
|
15
25
|
emits: ["open", "close", "update:model-value", "before-close"],
|
|
16
|
-
setup(
|
|
17
|
-
const o =
|
|
18
|
-
function
|
|
19
|
-
document.documentElement.classList.add(
|
|
26
|
+
setup(t, { expose: r, emit: a }) {
|
|
27
|
+
const o = a;
|
|
28
|
+
function d() {
|
|
29
|
+
document.documentElement.classList.add(A);
|
|
20
30
|
}
|
|
21
|
-
|
|
22
|
-
document.querySelector(".m-backdrop.--present") || document.documentElement.classList.remove(
|
|
31
|
+
function w() {
|
|
32
|
+
document.querySelector(".m-backdrop.--present") || document.documentElement.classList.remove(A);
|
|
23
33
|
}
|
|
24
|
-
const
|
|
25
|
-
function
|
|
26
|
-
|
|
34
|
+
const s = P(t.modelValue);
|
|
35
|
+
function l() {
|
|
36
|
+
k(!1);
|
|
37
|
+
}
|
|
38
|
+
async function k(e) {
|
|
39
|
+
var n;
|
|
40
|
+
e || (o("before-close"), await ((n = t.beforeClose) == null ? void 0 : n.call(t))), s.value = e;
|
|
27
41
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
e || (t("before-close"), await ((r = o.beforeClose) == null ? void 0 : r.call(o))), n.value = e;
|
|
42
|
+
function y() {
|
|
43
|
+
o("open");
|
|
31
44
|
}
|
|
32
|
-
function
|
|
33
|
-
|
|
45
|
+
function b() {
|
|
46
|
+
o("update:model-value", !1), o("close"), f();
|
|
34
47
|
}
|
|
35
48
|
function i() {
|
|
36
|
-
t
|
|
49
|
+
t.persistent || l();
|
|
37
50
|
}
|
|
38
|
-
function u() {
|
|
39
|
-
|
|
51
|
+
function u(e) {
|
|
52
|
+
!t.noCloseOnEscKey && e.key === "Escape" && !t.persistent && l();
|
|
40
53
|
}
|
|
41
|
-
function
|
|
42
|
-
|
|
54
|
+
function C() {
|
|
55
|
+
d(), document.addEventListener("keyup", u, !1);
|
|
43
56
|
}
|
|
44
|
-
function
|
|
45
|
-
|
|
57
|
+
function f() {
|
|
58
|
+
document.removeEventListener("keyup", u), w();
|
|
46
59
|
}
|
|
47
|
-
|
|
48
|
-
|
|
60
|
+
V(() => {
|
|
61
|
+
t.modelValue ? C() : f();
|
|
62
|
+
});
|
|
63
|
+
let c = null;
|
|
64
|
+
function S(e) {
|
|
65
|
+
const n = document.querySelector(e), m = n && Array.from(n.querySelectorAll('a[href], button, textarea, input[type="text"], input[type="radio"], input[type="checkbox"], select')), p = m == null ? void 0 : m.filter((E) => {
|
|
66
|
+
const g = window.getComputedStyle(E);
|
|
67
|
+
return g.display !== "none" && g.visibility !== "hidden" && !E.disabled;
|
|
68
|
+
});
|
|
69
|
+
return p && p.length > 0 ? p[0] : null;
|
|
49
70
|
}
|
|
50
|
-
return
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
71
|
+
return D(
|
|
72
|
+
() => t.modelValue,
|
|
73
|
+
async (e) => {
|
|
74
|
+
if (s.value = e, e) {
|
|
75
|
+
C(), c = document.activeElement, await B();
|
|
76
|
+
const n = S(".m-backdrop-content");
|
|
77
|
+
n == null || n.focus();
|
|
78
|
+
} else
|
|
79
|
+
f(), await B(), c == null || c.focus();
|
|
56
80
|
}
|
|
57
|
-
),
|
|
58
|
-
onBackdropAnimationEnter:
|
|
59
|
-
onBackdropAnimationLeave:
|
|
60
|
-
onBackdropClicked:
|
|
61
|
-
close:
|
|
62
|
-
present:
|
|
63
|
-
toggleModal:
|
|
64
|
-
onKeyPress:
|
|
65
|
-
}), (e,
|
|
66
|
-
|
|
81
|
+
), r({
|
|
82
|
+
onBackdropAnimationEnter: y,
|
|
83
|
+
onBackdropAnimationLeave: b,
|
|
84
|
+
onBackdropClicked: i,
|
|
85
|
+
close: l,
|
|
86
|
+
present: s,
|
|
87
|
+
toggleModal: k,
|
|
88
|
+
onKeyPress: u
|
|
89
|
+
}), (e, n) => (h(), M(N, { to: e.teleportSelector }, [
|
|
90
|
+
T(O, {
|
|
67
91
|
appear: "",
|
|
68
92
|
name: e.transitionName,
|
|
69
|
-
onAfterEnter:
|
|
70
|
-
onAfterLeave:
|
|
93
|
+
onAfterEnter: y,
|
|
94
|
+
onAfterLeave: b
|
|
71
95
|
}, {
|
|
72
|
-
default:
|
|
73
|
-
|
|
96
|
+
default: $(() => [
|
|
97
|
+
s.value ? (h(), j(
|
|
74
98
|
"div",
|
|
75
|
-
{
|
|
99
|
+
q({
|
|
76
100
|
key: 0,
|
|
77
|
-
class:
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
},
|
|
101
|
+
class: "m-backdrop --present m-reset-css"
|
|
102
|
+
}, e.$attrs, {
|
|
103
|
+
class: [e.backdropClass, e.variant && `--variant-${e.variant}`, { "--persistent": e.persistent }]
|
|
104
|
+
}),
|
|
81
105
|
[
|
|
82
|
-
|
|
83
|
-
"
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
],
|
|
104
|
-
16
|
|
105
|
-
/* FULL_PROPS */
|
|
106
|
-
)
|
|
106
|
+
v("div", G, [
|
|
107
|
+
v("div", H, [
|
|
108
|
+
v(
|
|
109
|
+
"div",
|
|
110
|
+
{
|
|
111
|
+
class: z(["m-backdrop-content", [e.backdropContentClass, `--justify-${e.justify}`, `--align-${e.align}`, { "--padding": e.contentPadding }]]),
|
|
112
|
+
role: "button",
|
|
113
|
+
tabindex: "-1",
|
|
114
|
+
onClick: F(i, ["self"])
|
|
115
|
+
},
|
|
116
|
+
[
|
|
117
|
+
K(e.$slots, "default", {
|
|
118
|
+
close: l,
|
|
119
|
+
onBackdropClicked: i
|
|
120
|
+
}, void 0, !0)
|
|
121
|
+
],
|
|
122
|
+
2
|
|
123
|
+
/* CLASS */
|
|
124
|
+
)
|
|
125
|
+
])
|
|
126
|
+
])
|
|
107
127
|
],
|
|
108
|
-
|
|
109
|
-
/*
|
|
110
|
-
)) :
|
|
128
|
+
16
|
|
129
|
+
/* FULL_PROPS */
|
|
130
|
+
)) : I("v-if", !0)
|
|
111
131
|
]),
|
|
112
132
|
_: 3
|
|
113
133
|
/* FORWARDED */
|
|
114
134
|
}, 8, ["name"])
|
|
115
135
|
], 8, ["to"]));
|
|
116
136
|
}
|
|
117
|
-
})
|
|
137
|
+
}), Q = (t, r) => {
|
|
138
|
+
const a = t.__vccOpts || t;
|
|
139
|
+
for (const [o, d] of r)
|
|
140
|
+
a[o] = d;
|
|
141
|
+
return a;
|
|
142
|
+
}, W = /* @__PURE__ */ Q(J, [["__scopeId", "data-v-90448c91"]]);
|
|
118
143
|
export {
|
|
119
|
-
|
|
144
|
+
W as default
|
|
120
145
|
};
|