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,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as C, defineAsyncComponent as m, useAttrs as $, computed as o, openBlock as t, createBlock as l, resolveDynamicComponent as r, normalizeClass as a, normalizeStyle as S, withCtx as j, renderSlot as i, unref as u, createCommentVNode as d, createElementBlock as M, createVNode as E } from "vue";
|
|
2
|
-
import { _ as F } from "./
|
|
2
|
+
import { _ as F } from "./MazInput-yBii2AFS.mjs";
|
|
3
3
|
import '../assets/MazBtn.css';const O = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "m-btn-loader-container"
|
|
@@ -28,12 +28,12 @@ import '../assets/MazBtn.css';const O = {
|
|
|
28
28
|
justify: { default: "center" }
|
|
29
29
|
},
|
|
30
30
|
setup(y) {
|
|
31
|
-
const n = y, v = m(() => import("./MazSpinner-
|
|
31
|
+
const n = y, v = m(() => import("./MazSpinner-CCThMV5o.mjs")), c = m(() => import("./MazIcon-Cq1v4J3r.mjs")), { href: b, to: z } = $(), f = o(() => b ? "a" : z ? "router-link" : "button"), g = o(() => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`), p = o(
|
|
32
32
|
() => (n.loading || n.disabled) && f.value === "button"
|
|
33
33
|
), B = o(() => p.value ? "--cursor-default" : "--cursor-pointer"), k = o(() => `--is-${n.variant}`), I = o(() => n.loading && n.variant === "button"), h = o(() => f.value === "button" ? n.type : void 0), s = o(() => n.size === "xl" ? "maz-text-3xl" : n.size === "lg" ? "maz-text-2xl" : n.size === "md" ? "maz-text-xl" : n.size === "sm" ? "maz-text-lg" : n.size === "xs" ? "maz-text-base" : n.size === "mini" ? "maz-text-sm" : "maz-text-xl");
|
|
34
34
|
return (e, D) => (t(), l(r(f.value), {
|
|
35
35
|
disabled: p.value || void 0,
|
|
36
|
-
class: a(["m-btn", [
|
|
36
|
+
class: a(["m-btn m-reset-css", [
|
|
37
37
|
`--${e.size}`,
|
|
38
38
|
!e.fab && !e.rounded && e.roundedSize && `--rounded-${e.roundedSize}`,
|
|
39
39
|
g.value,
|
|
@@ -97,7 +97,7 @@ import '../assets/MazBtn.css';const O = {
|
|
|
97
97
|
/* FORWARDED */
|
|
98
98
|
}, 8, ["disabled", "class", "style", "type"]));
|
|
99
99
|
}
|
|
100
|
-
}), R = /* @__PURE__ */ F(A, [["__scopeId", "data-v-
|
|
100
|
+
}), R = /* @__PURE__ */ F(A, [["__scopeId", "data-v-cac550b2"]]);
|
|
101
101
|
export {
|
|
102
102
|
R as default
|
|
103
103
|
};
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { defineComponent as C, defineAsyncComponent as m, useAttrs as $, computed as o, openBlock as t, createBlock as l, resolveDynamicComponent as r, normalizeClass as a, normalizeStyle as S, withCtx as j, renderSlot as i, unref as u, createCommentVNode as d, createElementBlock as M, createVNode as E } from "vue";
|
|
2
|
+
import { _ as F } from "./MazPhoneNumberInput-C3j3JyDI.mjs";
|
|
3
|
+
import '../assets/MazBtn.css';const O = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "m-btn-loader-container"
|
|
6
|
+
}, A = /* @__PURE__ */ C({
|
|
7
|
+
__name: "MazBtn",
|
|
8
|
+
props: {
|
|
9
|
+
variant: { default: "button" },
|
|
10
|
+
size: { default: "md" },
|
|
11
|
+
color: { default: "primary" },
|
|
12
|
+
type: { default: "button" },
|
|
13
|
+
rounded: { type: Boolean },
|
|
14
|
+
roundedSize: { default: "lg" },
|
|
15
|
+
noRounded: { type: Boolean },
|
|
16
|
+
outline: { type: Boolean },
|
|
17
|
+
pastel: { type: Boolean },
|
|
18
|
+
block: { type: Boolean },
|
|
19
|
+
noUnderline: { type: Boolean },
|
|
20
|
+
loading: { type: Boolean },
|
|
21
|
+
disabled: { type: Boolean },
|
|
22
|
+
fab: { type: Boolean },
|
|
23
|
+
icon: { type: [String, Function, Object], default: void 0 },
|
|
24
|
+
leftIcon: { type: [String, Function, Object], default: void 0 },
|
|
25
|
+
rightIcon: { type: [String, Function, Object], default: void 0 },
|
|
26
|
+
noPadding: { type: Boolean },
|
|
27
|
+
noElevation: { type: Boolean },
|
|
28
|
+
justify: { default: "center" }
|
|
29
|
+
},
|
|
30
|
+
setup(y) {
|
|
31
|
+
const n = y, v = m(() => import("./MazSpinner-BtDo7ZEC.mjs")), c = m(() => import("./MazIcon-DR6-win-.mjs")), { href: b, to: z } = $(), f = o(() => b ? "a" : z ? "router-link" : "button"), g = o(() => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`), p = o(
|
|
32
|
+
() => (n.loading || n.disabled) && f.value === "button"
|
|
33
|
+
), B = o(() => p.value ? "--cursor-default" : "--cursor-pointer"), k = o(() => `--is-${n.variant}`), I = o(() => n.loading && n.variant === "button"), h = o(() => f.value === "button" ? n.type : void 0), s = o(() => n.size === "xl" ? "maz-text-3xl" : n.size === "lg" ? "maz-text-2xl" : n.size === "md" ? "maz-text-xl" : n.size === "sm" ? "maz-text-lg" : n.size === "xs" ? "maz-text-base" : n.size === "mini" ? "maz-text-sm" : "maz-text-xl");
|
|
34
|
+
return (e, D) => (t(), l(r(f.value), {
|
|
35
|
+
disabled: p.value || void 0,
|
|
36
|
+
class: a(["m-btn m-reset-css", [
|
|
37
|
+
`--${e.size}`,
|
|
38
|
+
!e.fab && !e.rounded && e.roundedSize && `--rounded-${e.roundedSize}`,
|
|
39
|
+
g.value,
|
|
40
|
+
B.value,
|
|
41
|
+
k.value,
|
|
42
|
+
{
|
|
43
|
+
"--block": e.block,
|
|
44
|
+
"--no-underline": e.noUnderline,
|
|
45
|
+
"--fab": e.fab,
|
|
46
|
+
"--loading": e.loading,
|
|
47
|
+
"--disabled": p.value,
|
|
48
|
+
"--rounded": e.rounded,
|
|
49
|
+
"--no-rounded": e.noRounded,
|
|
50
|
+
"--no-padding": e.noPadding,
|
|
51
|
+
"--no-elevation": e.noElevation
|
|
52
|
+
}
|
|
53
|
+
]]),
|
|
54
|
+
style: S([`--justify: ${e.justify}`]),
|
|
55
|
+
type: h.value
|
|
56
|
+
}, {
|
|
57
|
+
default: j(() => [
|
|
58
|
+
i(e.$slots, "left-icon", {}, () => [
|
|
59
|
+
typeof e.leftIcon == "string" ? (t(), l(u(c), {
|
|
60
|
+
key: 0,
|
|
61
|
+
name: e.leftIcon,
|
|
62
|
+
class: a([s.value])
|
|
63
|
+
}, null, 8, ["name", "class"])) : e.leftIcon ? (t(), l(r(e.leftIcon), {
|
|
64
|
+
key: 1,
|
|
65
|
+
class: a([s.value])
|
|
66
|
+
}, null, 8, ["class"])) : d("v-if", !0)
|
|
67
|
+
], !0),
|
|
68
|
+
i(e.$slots, "icon", {}, () => [
|
|
69
|
+
typeof e.icon == "string" ? (t(), l(u(c), {
|
|
70
|
+
key: 0,
|
|
71
|
+
name: e.icon,
|
|
72
|
+
class: a([s.value])
|
|
73
|
+
}, null, 8, ["name", "class"])) : e.icon ? (t(), l(r(e.icon), {
|
|
74
|
+
key: 1,
|
|
75
|
+
class: a([s.value])
|
|
76
|
+
}, null, 8, ["class"])) : d("v-if", !0)
|
|
77
|
+
], !0),
|
|
78
|
+
i(e.$slots, "default", {}, void 0, !0),
|
|
79
|
+
i(e.$slots, "right-icon", {}, () => [
|
|
80
|
+
typeof e.rightIcon == "string" ? (t(), l(u(c), {
|
|
81
|
+
key: 0,
|
|
82
|
+
name: e.rightIcon,
|
|
83
|
+
class: a([s.value])
|
|
84
|
+
}, null, 8, ["name", "class"])) : e.rightIcon ? (t(), l(r(e.rightIcon), {
|
|
85
|
+
key: 1,
|
|
86
|
+
class: a([s.value])
|
|
87
|
+
}, null, 8, ["class"])) : d("v-if", !0)
|
|
88
|
+
], !0),
|
|
89
|
+
I.value ? (t(), M("div", O, [
|
|
90
|
+
E(u(v), {
|
|
91
|
+
size: "2em",
|
|
92
|
+
color: e.color
|
|
93
|
+
}, null, 8, ["color"])
|
|
94
|
+
])) : d("v-if", !0)
|
|
95
|
+
]),
|
|
96
|
+
_: 3
|
|
97
|
+
/* FORWARDED */
|
|
98
|
+
}, 8, ["disabled", "class", "style", "type"]));
|
|
99
|
+
}
|
|
100
|
+
}), R = /* @__PURE__ */ F(A, [["__scopeId", "data-v-cac550b2"]]);
|
|
101
|
+
export {
|
|
102
|
+
R as default
|
|
103
|
+
};
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { defineComponent as C, defineAsyncComponent as m, useAttrs as $, computed as o, openBlock as t, createBlock as l, resolveDynamicComponent as r, normalizeClass as a, normalizeStyle as S, withCtx as j, renderSlot as i, unref as u, createCommentVNode as d, createElementBlock as M, createVNode as E } from "vue";
|
|
2
|
+
import { _ as F } from "./MazChecklist-DSfD55m5.mjs";
|
|
3
|
+
import '../assets/MazBtn.css';const O = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "m-btn-loader-container"
|
|
6
|
+
}, A = /* @__PURE__ */ C({
|
|
7
|
+
__name: "MazBtn",
|
|
8
|
+
props: {
|
|
9
|
+
variant: { default: "button" },
|
|
10
|
+
size: { default: "md" },
|
|
11
|
+
color: { default: "primary" },
|
|
12
|
+
type: { default: "button" },
|
|
13
|
+
rounded: { type: Boolean },
|
|
14
|
+
roundedSize: { default: "lg" },
|
|
15
|
+
noRounded: { type: Boolean },
|
|
16
|
+
outline: { type: Boolean },
|
|
17
|
+
pastel: { type: Boolean },
|
|
18
|
+
block: { type: Boolean },
|
|
19
|
+
noUnderline: { type: Boolean },
|
|
20
|
+
loading: { type: Boolean },
|
|
21
|
+
disabled: { type: Boolean },
|
|
22
|
+
fab: { type: Boolean },
|
|
23
|
+
icon: { type: [String, Function, Object], default: void 0 },
|
|
24
|
+
leftIcon: { type: [String, Function, Object], default: void 0 },
|
|
25
|
+
rightIcon: { type: [String, Function, Object], default: void 0 },
|
|
26
|
+
noPadding: { type: Boolean },
|
|
27
|
+
noElevation: { type: Boolean },
|
|
28
|
+
justify: { default: "center" }
|
|
29
|
+
},
|
|
30
|
+
setup(y) {
|
|
31
|
+
const n = y, v = m(() => import("./MazSpinner-DV9-beEc.mjs")), c = m(() => import("./MazIcon-Cq1v4J3r.mjs")), { href: b, to: z } = $(), f = o(() => b ? "a" : z ? "router-link" : "button"), g = o(() => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`), p = o(
|
|
32
|
+
() => (n.loading || n.disabled) && f.value === "button"
|
|
33
|
+
), B = o(() => p.value ? "--cursor-default" : "--cursor-pointer"), k = o(() => `--is-${n.variant}`), I = o(() => n.loading && n.variant === "button"), h = o(() => f.value === "button" ? n.type : void 0), s = o(() => n.size === "xl" ? "maz-text-3xl" : n.size === "lg" ? "maz-text-2xl" : n.size === "md" ? "maz-text-xl" : n.size === "sm" ? "maz-text-lg" : n.size === "xs" ? "maz-text-base" : n.size === "mini" ? "maz-text-sm" : "maz-text-xl");
|
|
34
|
+
return (e, D) => (t(), l(r(f.value), {
|
|
35
|
+
disabled: p.value || void 0,
|
|
36
|
+
class: a(["m-btn m-reset-css", [
|
|
37
|
+
`--${e.size}`,
|
|
38
|
+
!e.fab && !e.rounded && e.roundedSize && `--rounded-${e.roundedSize}`,
|
|
39
|
+
g.value,
|
|
40
|
+
B.value,
|
|
41
|
+
k.value,
|
|
42
|
+
{
|
|
43
|
+
"--block": e.block,
|
|
44
|
+
"--no-underline": e.noUnderline,
|
|
45
|
+
"--fab": e.fab,
|
|
46
|
+
"--loading": e.loading,
|
|
47
|
+
"--disabled": p.value,
|
|
48
|
+
"--rounded": e.rounded,
|
|
49
|
+
"--no-rounded": e.noRounded,
|
|
50
|
+
"--no-padding": e.noPadding,
|
|
51
|
+
"--no-elevation": e.noElevation
|
|
52
|
+
}
|
|
53
|
+
]]),
|
|
54
|
+
style: S([`--justify: ${e.justify}`]),
|
|
55
|
+
type: h.value
|
|
56
|
+
}, {
|
|
57
|
+
default: j(() => [
|
|
58
|
+
i(e.$slots, "left-icon", {}, () => [
|
|
59
|
+
typeof e.leftIcon == "string" ? (t(), l(u(c), {
|
|
60
|
+
key: 0,
|
|
61
|
+
name: e.leftIcon,
|
|
62
|
+
class: a([s.value])
|
|
63
|
+
}, null, 8, ["name", "class"])) : e.leftIcon ? (t(), l(r(e.leftIcon), {
|
|
64
|
+
key: 1,
|
|
65
|
+
class: a([s.value])
|
|
66
|
+
}, null, 8, ["class"])) : d("v-if", !0)
|
|
67
|
+
], !0),
|
|
68
|
+
i(e.$slots, "icon", {}, () => [
|
|
69
|
+
typeof e.icon == "string" ? (t(), l(u(c), {
|
|
70
|
+
key: 0,
|
|
71
|
+
name: e.icon,
|
|
72
|
+
class: a([s.value])
|
|
73
|
+
}, null, 8, ["name", "class"])) : e.icon ? (t(), l(r(e.icon), {
|
|
74
|
+
key: 1,
|
|
75
|
+
class: a([s.value])
|
|
76
|
+
}, null, 8, ["class"])) : d("v-if", !0)
|
|
77
|
+
], !0),
|
|
78
|
+
i(e.$slots, "default", {}, void 0, !0),
|
|
79
|
+
i(e.$slots, "right-icon", {}, () => [
|
|
80
|
+
typeof e.rightIcon == "string" ? (t(), l(u(c), {
|
|
81
|
+
key: 0,
|
|
82
|
+
name: e.rightIcon,
|
|
83
|
+
class: a([s.value])
|
|
84
|
+
}, null, 8, ["name", "class"])) : e.rightIcon ? (t(), l(r(e.rightIcon), {
|
|
85
|
+
key: 1,
|
|
86
|
+
class: a([s.value])
|
|
87
|
+
}, null, 8, ["class"])) : d("v-if", !0)
|
|
88
|
+
], !0),
|
|
89
|
+
I.value ? (t(), M("div", O, [
|
|
90
|
+
E(u(v), {
|
|
91
|
+
size: "2em",
|
|
92
|
+
color: e.color
|
|
93
|
+
}, null, 8, ["color"])
|
|
94
|
+
])) : d("v-if", !0)
|
|
95
|
+
]),
|
|
96
|
+
_: 3
|
|
97
|
+
/* FORWARDED */
|
|
98
|
+
}, 8, ["disabled", "class", "style", "type"]));
|
|
99
|
+
}
|
|
100
|
+
}), R = /* @__PURE__ */ F(A, [["__scopeId", "data-v-cac550b2"]]);
|
|
101
|
+
export {
|
|
102
|
+
R as default
|
|
103
|
+
};
|
|
@@ -42,7 +42,7 @@ import '../assets/MazCard.css';const R = {
|
|
|
42
42
|
block: { type: Boolean }
|
|
43
43
|
},
|
|
44
44
|
setup(m) {
|
|
45
|
-
const o = m, v = c(() => import("./MazBtn-
|
|
45
|
+
const o = m, v = c(() => import("./MazBtn-DnJzOPh9.mjs")), g = c(() => import("./MazGallery-CzlKPQFX.mjs")), z = c(() => import("./MazTransitionExpand-CRArAQZu.mjs")), S = c(() => import("./chevron-down-BkvtON3b.mjs")), M = H(), t = r(() => o.collapsible || o.collapsable), l = N(t.value ? o.collapseOpen : !0), k = r(() => o.href || o.to);
|
|
46
46
|
T(
|
|
47
47
|
() => o.collapseOpen,
|
|
48
48
|
(e) => {
|
|
@@ -63,7 +63,7 @@ import '../assets/MazCard.css';const R = {
|
|
|
63
63
|
return (e, d) => (a(), n(
|
|
64
64
|
"div",
|
|
65
65
|
{
|
|
66
|
-
class: u(["m-card", [
|
|
66
|
+
class: u(["m-card m-reset-css", [
|
|
67
67
|
{
|
|
68
68
|
"m-card--linked": k.value,
|
|
69
69
|
"m-card--no-scale": !e.scale,
|
|
@@ -197,7 +197,7 @@ import '../assets/MazCard.css';const R = {
|
|
|
197
197
|
for (const [g, z] of o)
|
|
198
198
|
v[g] = z;
|
|
199
199
|
return v;
|
|
200
|
-
}, X = /* @__PURE__ */ Q(K, [["__scopeId", "data-v-
|
|
200
|
+
}, X = /* @__PURE__ */ Q(K, [["__scopeId", "data-v-1b8e02e6"]]);
|
|
201
201
|
export {
|
|
202
202
|
X as M,
|
|
203
203
|
Q as _
|
|
@@ -11,7 +11,7 @@ import '../assets/MazCarousel.css';const W = { key: 0 }, x = {
|
|
|
11
11
|
hideScrollbar: { type: Boolean }
|
|
12
12
|
},
|
|
13
13
|
setup(l) {
|
|
14
|
-
const u = l, o = v(() => import("./MazBtn-
|
|
14
|
+
const u = l, o = v(() => import("./MazBtn-CPwCJ1l-.mjs")), d = v(() => import("./chevron-left-BqVOLRdC.mjs")), f = v(() => import("./chevron-right-CbjzEeHV.mjs")), h = N(), b = _(!1), S = _(!1), m = _();
|
|
15
15
|
function L() {
|
|
16
16
|
return !u.noScrollBtn || h.title;
|
|
17
17
|
}
|
|
@@ -37,7 +37,7 @@ import '../assets/MazCarousel.css';const W = { key: 0 }, x = {
|
|
|
37
37
|
return (e, t) => (s(), a(
|
|
38
38
|
"div",
|
|
39
39
|
{
|
|
40
|
-
class: r(["m-carousel", {
|
|
40
|
+
class: r(["m-carousel m-reset-css", {
|
|
41
41
|
"--hide-scrollbar": e.hideScrollbar
|
|
42
42
|
}])
|
|
43
43
|
},
|
|
@@ -121,7 +121,7 @@ import '../assets/MazCarousel.css';const W = { key: 0 }, x = {
|
|
|
121
121
|
for (const [d, f] of u)
|
|
122
122
|
o[d] = f;
|
|
123
123
|
return o;
|
|
124
|
-
}, E = /* @__PURE__ */ T($, [["__scopeId", "data-v-
|
|
124
|
+
}, E = /* @__PURE__ */ T($, [["__scopeId", "data-v-cccbba82"]]);
|
|
125
125
|
export {
|
|
126
126
|
E as M,
|
|
127
127
|
T as _
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as N, computed as r, ref as E, openBlock as v, createElementBlock as k, unref as c, normalizeClass as u, normalizeStyle as t, createElementVNode as d, mergeProps as A, createVNode as M, renderSlot as _, createTextVNode as D, toDisplayString as y, createCommentVNode as R } from "vue";
|
|
2
|
-
import { u as $, _ as q } from "./
|
|
2
|
+
import { u as $, _ as q } from "./MazPhoneNumberInput-C3j3JyDI.mjs";
|
|
3
3
|
import F from "./check-C9Q_W85g.mjs";
|
|
4
4
|
import '../assets/MazCheckbox.css';const H = ["for", "aria-checked"], K = ["id", "checked", "disabled", "name"], P = { class: "m-checkbox__text" }, T = /* @__PURE__ */ N({
|
|
5
5
|
inheritAttrs: !1,
|
|
@@ -59,12 +59,12 @@ import '../assets/MazCheckbox.css';const H = ["for", "aria-checked"], K = ["id",
|
|
|
59
59
|
}
|
|
60
60
|
}), x = r(() => o.color === "theme" ? "var(--maz-color-bg)" : `var(--maz-color-${o.color}-contrast)`), w = r(() => o.color === "theme" ? "var(--maz-color-bg-theme)" : `var(--maz-color-${o.color})`), h = r(() => o.error ? "var(--maz-color-danger)" : o.warning ? "var(--maz-color-warning)" : o.success ? "var(--maz-color-success)" : ["black", "transparent", "theme"].includes(o.color) ? "var(--maz-color-muted)" : `var(--maz-color-${o.color}-alpha)`);
|
|
61
61
|
function C(e) {
|
|
62
|
-
["Space"].includes(e.code) && (e.preventDefault(),
|
|
62
|
+
["Space"].includes(e.code) && (e.preventDefault(), p(o.value ?? !o.modelValue));
|
|
63
63
|
}
|
|
64
64
|
function S(e) {
|
|
65
65
|
return typeof e == "boolean" && (typeof o.modelValue == "boolean" || o.modelValue === void 0 || o.modelValue === null) ? !o.modelValue : Array.isArray(o.modelValue) && typeof e != "boolean" ? o.modelValue.includes(e) ? o.modelValue.filter((a) => a !== e) : [...o.modelValue, e] : [e];
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function p(e) {
|
|
68
68
|
const a = S(e);
|
|
69
69
|
l("update:model-value", a), l("change", a);
|
|
70
70
|
}
|
|
@@ -79,7 +79,7 @@ import '../assets/MazCheckbox.css';const H = ["for", "aria-checked"], K = ["id",
|
|
|
79
79
|
}
|
|
80
80
|
return (e, a) => (v(), k("label", {
|
|
81
81
|
for: c(i),
|
|
82
|
-
class: u(["m-checkbox", [{ "--disabled": e.disabled, "--error": e.error, "--warning": e.warning, "--success": e.success }, o.class]]),
|
|
82
|
+
class: u(["m-checkbox m-reset-css", [{ "--disabled": e.disabled, "--error": e.error, "--warning": e.warning, "--success": e.success }, o.class]]),
|
|
83
83
|
tabindex: "0",
|
|
84
84
|
style: t([e.style, { "--checkbox-selected-color": w.value, "--checkbox-box-shadow-color": h.value }]),
|
|
85
85
|
role: "checkbox",
|
|
@@ -99,8 +99,8 @@ import '../assets/MazCheckbox.css';const H = ["for", "aria-checked"], K = ["id",
|
|
|
99
99
|
name: e.name,
|
|
100
100
|
type: "checkbox",
|
|
101
101
|
onChange: a[0] || (a[0] = (s) => {
|
|
102
|
-
var
|
|
103
|
-
return
|
|
102
|
+
var b;
|
|
103
|
+
return p(e.value ?? ((b = s == null ? void 0 : s.target) == null ? void 0 : b.checked));
|
|
104
104
|
})
|
|
105
105
|
}), null, 16, K),
|
|
106
106
|
d(
|
|
@@ -143,7 +143,7 @@ import '../assets/MazCheckbox.css';const H = ["for", "aria-checked"], K = ["id",
|
|
|
143
143
|
])
|
|
144
144
|
], 46, H));
|
|
145
145
|
}
|
|
146
|
-
}), J = /* @__PURE__ */ q(T, [["__scopeId", "data-v-
|
|
146
|
+
}), J = /* @__PURE__ */ q(T, [["__scopeId", "data-v-66c21eaf"]]);
|
|
147
147
|
export {
|
|
148
148
|
J as default
|
|
149
149
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as N, computed as r, ref as E, openBlock as v, createElementBlock as k, unref as c, normalizeClass as u, normalizeStyle as t, createElementVNode as d, mergeProps as A, createVNode as M, renderSlot as _, createTextVNode as D, toDisplayString as y, createCommentVNode as R } from "vue";
|
|
2
|
-
import { u as $, _ as q } from "./
|
|
2
|
+
import { u as $, _ as q } from "./MazSelect-BwahUlbE.mjs";
|
|
3
3
|
import F from "./check-C9Q_W85g.mjs";
|
|
4
4
|
import '../assets/MazCheckbox.css';const H = ["for", "aria-checked"], K = ["id", "checked", "disabled", "name"], P = { class: "m-checkbox__text" }, T = /* @__PURE__ */ N({
|
|
5
5
|
inheritAttrs: !1,
|
|
@@ -59,12 +59,12 @@ import '../assets/MazCheckbox.css';const H = ["for", "aria-checked"], K = ["id",
|
|
|
59
59
|
}
|
|
60
60
|
}), x = r(() => o.color === "theme" ? "var(--maz-color-bg)" : `var(--maz-color-${o.color}-contrast)`), w = r(() => o.color === "theme" ? "var(--maz-color-bg-theme)" : `var(--maz-color-${o.color})`), h = r(() => o.error ? "var(--maz-color-danger)" : o.warning ? "var(--maz-color-warning)" : o.success ? "var(--maz-color-success)" : ["black", "transparent", "theme"].includes(o.color) ? "var(--maz-color-muted)" : `var(--maz-color-${o.color}-alpha)`);
|
|
61
61
|
function C(e) {
|
|
62
|
-
["Space"].includes(e.code) && (e.preventDefault(),
|
|
62
|
+
["Space"].includes(e.code) && (e.preventDefault(), p(o.value ?? !o.modelValue));
|
|
63
63
|
}
|
|
64
64
|
function S(e) {
|
|
65
65
|
return typeof e == "boolean" && (typeof o.modelValue == "boolean" || o.modelValue === void 0 || o.modelValue === null) ? !o.modelValue : Array.isArray(o.modelValue) && typeof e != "boolean" ? o.modelValue.includes(e) ? o.modelValue.filter((a) => a !== e) : [...o.modelValue, e] : [e];
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function p(e) {
|
|
68
68
|
const a = S(e);
|
|
69
69
|
l("update:model-value", a), l("change", a);
|
|
70
70
|
}
|
|
@@ -79,7 +79,7 @@ import '../assets/MazCheckbox.css';const H = ["for", "aria-checked"], K = ["id",
|
|
|
79
79
|
}
|
|
80
80
|
return (e, a) => (v(), k("label", {
|
|
81
81
|
for: c(i),
|
|
82
|
-
class: u(["m-checkbox", [{ "--disabled": e.disabled, "--error": e.error, "--warning": e.warning, "--success": e.success }, o.class]]),
|
|
82
|
+
class: u(["m-checkbox m-reset-css", [{ "--disabled": e.disabled, "--error": e.error, "--warning": e.warning, "--success": e.success }, o.class]]),
|
|
83
83
|
tabindex: "0",
|
|
84
84
|
style: t([e.style, { "--checkbox-selected-color": w.value, "--checkbox-box-shadow-color": h.value }]),
|
|
85
85
|
role: "checkbox",
|
|
@@ -99,8 +99,8 @@ import '../assets/MazCheckbox.css';const H = ["for", "aria-checked"], K = ["id",
|
|
|
99
99
|
name: e.name,
|
|
100
100
|
type: "checkbox",
|
|
101
101
|
onChange: a[0] || (a[0] = (s) => {
|
|
102
|
-
var
|
|
103
|
-
return
|
|
102
|
+
var b;
|
|
103
|
+
return p(e.value ?? ((b = s == null ? void 0 : s.target) == null ? void 0 : b.checked));
|
|
104
104
|
})
|
|
105
105
|
}), null, 16, K),
|
|
106
106
|
d(
|
|
@@ -143,7 +143,7 @@ import '../assets/MazCheckbox.css';const H = ["for", "aria-checked"], K = ["id",
|
|
|
143
143
|
])
|
|
144
144
|
], 46, H));
|
|
145
145
|
}
|
|
146
|
-
}), J = /* @__PURE__ */ q(T, [["__scopeId", "data-v-
|
|
146
|
+
}), J = /* @__PURE__ */ q(T, [["__scopeId", "data-v-66c21eaf"]]);
|
|
147
147
|
export {
|
|
148
148
|
J as default
|
|
149
149
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as N, computed as r, ref as E, openBlock as v, createElementBlock as k, unref as c, normalizeClass as u, normalizeStyle as t, createElementVNode as d, mergeProps as A, createVNode as M, renderSlot as _, createTextVNode as D, toDisplayString as y, createCommentVNode as R } from "vue";
|
|
2
|
-
import { u as $ } from "./useInstanceUniqId-
|
|
2
|
+
import { u as $ } from "./useInstanceUniqId-BkOfxhk8.mjs";
|
|
3
3
|
import q from "./check-C9Q_W85g.mjs";
|
|
4
|
-
import { _ as F } from "./MazTable-
|
|
4
|
+
import { _ as F } from "./MazTable-Soe-MrTW.mjs";
|
|
5
5
|
import '../assets/MazCheckbox.css';const H = ["for", "aria-checked"], K = ["id", "checked", "disabled", "name"], P = { class: "m-checkbox__text" }, T = /* @__PURE__ */ N({
|
|
6
6
|
inheritAttrs: !1,
|
|
7
7
|
__name: "MazCheckbox",
|
|
@@ -80,7 +80,7 @@ import '../assets/MazCheckbox.css';const H = ["for", "aria-checked"], K = ["id",
|
|
|
80
80
|
}
|
|
81
81
|
return (e, a) => (v(), k("label", {
|
|
82
82
|
for: c(i),
|
|
83
|
-
class: u(["m-checkbox", [{ "--disabled": e.disabled, "--error": e.error, "--warning": e.warning, "--success": e.success }, o.class]]),
|
|
83
|
+
class: u(["m-checkbox m-reset-css", [{ "--disabled": e.disabled, "--error": e.error, "--warning": e.warning, "--success": e.success }, o.class]]),
|
|
84
84
|
tabindex: "0",
|
|
85
85
|
style: t([e.style, { "--checkbox-selected-color": w.value, "--checkbox-box-shadow-color": h.value }]),
|
|
86
86
|
role: "checkbox",
|
|
@@ -144,7 +144,7 @@ import '../assets/MazCheckbox.css';const H = ["for", "aria-checked"], K = ["id",
|
|
|
144
144
|
])
|
|
145
145
|
], 46, H));
|
|
146
146
|
}
|
|
147
|
-
}), L = /* @__PURE__ */ F(T, [["__scopeId", "data-v-
|
|
147
|
+
}), L = /* @__PURE__ */ F(T, [["__scopeId", "data-v-66c21eaf"]]);
|
|
148
148
|
export {
|
|
149
149
|
L as default
|
|
150
150
|
};
|