maz-ui 3.36.4 → 3.37.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.
Files changed (192) hide show
  1. package/README.md +21 -0
  2. package/components/MazAccordion.mjs +65 -64
  3. package/components/MazAvatar.mjs +1 -1
  4. package/components/MazBackdrop.mjs +9 -9
  5. package/components/MazBadge.mjs +6 -6
  6. package/components/MazBottomSheet.mjs +1 -1
  7. package/components/MazBtn.mjs +1 -1
  8. package/components/MazCard.mjs +1 -1
  9. package/components/MazCardSpotlight.mjs +14 -14
  10. package/components/MazCarousel.mjs +1 -1
  11. package/components/MazCheckbox.mjs +56 -55
  12. package/components/MazDialog.mjs +1 -1
  13. package/components/MazDialogPromise.mjs +1 -1
  14. package/components/MazDrawer.mjs +4 -4
  15. package/components/MazDropdown.mjs +112 -93
  16. package/components/MazDropzone.mjs +1 -1
  17. package/components/MazFullscreenLoader.mjs +7 -7
  18. package/components/MazGallery.mjs +1 -1
  19. package/components/MazInput.mjs +1 -1
  20. package/components/MazInputCode.mjs +35 -35
  21. package/components/MazInputNumber.mjs +1 -1
  22. package/components/MazInputPrice.mjs +1 -1
  23. package/components/MazInputTags.d.ts +69 -110
  24. package/components/MazInputTags.mjs +1 -1
  25. package/components/MazLazyImg.mjs +1 -1
  26. package/components/MazLoadingBar.mjs +5 -5
  27. package/components/MazPagination.mjs +1 -1
  28. package/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +136 -0
  29. package/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +117 -0
  30. package/components/MazPhoneNumberInput/types.d.ts +2 -1
  31. package/components/MazPhoneNumberInput/use-libphonenumber.d.ts +13 -22
  32. package/components/MazPhoneNumberInput/use-maz-phone-number-input.d.ts +56 -0
  33. package/components/MazPhoneNumberInput.d.ts +30 -28
  34. package/components/MazPhoneNumberInput.mjs +1 -1
  35. package/components/MazPicker.mjs +1 -1
  36. package/components/MazPullToRefresh.mjs +1 -1
  37. package/components/MazRadio.mjs +45 -44
  38. package/components/MazRadioButtons.mjs +9 -9
  39. package/components/MazReadingProgressBar.mjs +3 -3
  40. package/components/MazSelect.mjs +1 -1
  41. package/components/MazSlider.mjs +3 -3
  42. package/components/MazSpinner.mjs +9 -9
  43. package/components/MazStepper.mjs +1 -1
  44. package/components/MazSwitch.mjs +28 -27
  45. package/components/MazTable.mjs +1 -1
  46. package/components/MazTableCell.mjs +9 -9
  47. package/components/MazTableRow.mjs +6 -6
  48. package/components/MazTableTitle.mjs +9 -9
  49. package/components/MazTabsBar.mjs +1 -1
  50. package/components/MazTabsContentItem.mjs +6 -6
  51. package/components/MazTextarea.mjs +58 -57
  52. package/components/MazTransitionExpand.mjs +10 -10
  53. package/components/assets/MazAccordion.css +1 -1
  54. package/components/assets/MazAvatar.css +1 -1
  55. package/components/assets/MazBadge.css +1 -1
  56. package/components/assets/MazBtn.css +1 -1
  57. package/components/assets/MazCard.css +1 -1
  58. package/components/assets/MazCardSpotlight.css +1 -1
  59. package/components/assets/MazCheckbox.css +1 -1
  60. package/components/assets/MazDialog.css +1 -1
  61. package/components/assets/MazDialogPromise.css +1 -1
  62. package/components/assets/MazDropdown.css +1 -1
  63. package/components/assets/MazInput.css +1 -1
  64. package/components/assets/MazInputCode.css +1 -1
  65. package/components/assets/MazInputNumber.css +1 -1
  66. package/components/assets/MazInputPrice.css +1 -1
  67. package/components/assets/MazInputTags.css +1 -1
  68. package/components/assets/MazLazyImg.css +1 -1
  69. package/components/assets/MazPagination.css +1 -1
  70. package/components/assets/MazPhoneNumberInput.css +1 -1
  71. package/components/assets/MazPicker.css +1 -1
  72. package/components/assets/MazRadio.css +1 -1
  73. package/components/assets/MazRadioButtons.css +1 -1
  74. package/components/assets/MazSelect.css +1 -1
  75. package/components/assets/MazSwitch.css +1 -1
  76. package/components/assets/MazTable.css +1 -1
  77. package/components/assets/MazTableRow.css +1 -1
  78. package/components/assets/MazTabsBar.css +1 -1
  79. package/components/assets/MazTextarea.css +1 -1
  80. package/components/chunks/{MazAvatar-Dv5LXKDM.mjs → MazAvatar-QnbdAjGS.mjs} +4 -4
  81. package/components/chunks/{MazBadge-BDw3XOhT.mjs → MazBadge-BkwhO2B6.mjs} +9 -9
  82. package/components/chunks/{MazBottomSheet-BBrSS82i.mjs → MazBottomSheet-DZ1n4bGL.mjs} +4 -4
  83. package/components/chunks/{MazBtn-DQf0voll.mjs → MazBtn-BTHDxDz7.mjs} +5 -5
  84. package/components/chunks/{MazBtn-CX2X5Bw4.mjs → MazBtn-C3z_znl5.mjs} +5 -5
  85. package/components/chunks/{MazBtn-U_V3Ywa7.mjs → MazBtn-CS2F1-mC.mjs} +5 -5
  86. package/components/chunks/MazBtn-CnZU5zlG.mjs +151 -0
  87. package/components/chunks/{MazBtn-MuVROF9V.mjs → MazBtn-CnkBOGKK.mjs} +17 -17
  88. package/components/chunks/{MazBtn-B-q9T3u-.mjs → MazBtn-Cpnby6Lb.mjs} +5 -5
  89. package/components/chunks/{MazBtn-DlN53_hE.mjs → MazBtn-CuYCQCM2.mjs} +5 -5
  90. package/components/chunks/{MazBtn-DOVfeoo4.mjs → MazBtn-D7b2VFGB.mjs} +5 -5
  91. package/components/chunks/{MazBtn-BuKj2FC6.mjs → MazBtn-DLYgzr9e.mjs} +39 -39
  92. package/components/chunks/{MazBtn-DZiMHU6q.mjs → MazBtn-Dbe098kd.mjs} +5 -5
  93. package/components/chunks/{MazBtn-B4pnS706.mjs → MazBtn-IH6bjzah.mjs} +5 -5
  94. package/components/chunks/{MazBtn-CvXujRc7.mjs → MazBtn-OUDBhJKd.mjs} +5 -5
  95. package/components/chunks/{MazCard-BF5zuDCX.mjs → MazCard-CNE9c3L5.mjs} +4 -4
  96. package/components/chunks/{MazCarousel-CwxTOUqt.mjs → MazCarousel-CMJgMJf1.mjs} +9 -9
  97. package/components/chunks/{MazCheckbox-RBgGXFPZ.mjs → MazCheckbox-BTM3Xpxz.mjs} +33 -34
  98. package/components/chunks/{MazCheckbox-CEH7cTwM.mjs → MazCheckbox-COTppi08.mjs} +33 -34
  99. package/components/chunks/{MazDialog--vjZyPR3.mjs → MazDialog-BVqOTysP.mjs} +4 -4
  100. package/components/chunks/{MazDialogPromise-r1kerrgl.mjs → MazDialogPromise-BjciKAwR.mjs} +29 -29
  101. package/components/chunks/{MazDropzone-BsZde5vG.mjs → MazDropzone-C_8mRUbK.mjs} +20 -20
  102. package/components/chunks/{MazGallery-CftFYr2G.mjs → MazGallery-BUUq89aM.mjs} +5 -5
  103. package/components/chunks/{MazGallery-BQbU7_HM.mjs → MazGallery-C9rnBI5A.mjs} +4 -4
  104. package/components/chunks/{MazIcon-B777ztdl.mjs → MazIcon-Bspx_Ojq.mjs} +1 -1
  105. package/components/chunks/{MazInput-D0TWjPBi.mjs → MazInput-C1r0b8BB.mjs} +70 -69
  106. package/components/chunks/{MazInputNumber-DQHieHlW.mjs → MazInputNumber-DJWxTvJ0.mjs} +137 -136
  107. package/components/chunks/{MazInputPrice-Cxl1Jyt_.mjs → MazInputPrice-CmX_rC0L.mjs} +80 -79
  108. package/components/chunks/MazInputTags-pm_5HtHM.mjs +618 -0
  109. package/components/chunks/{MazLazyImg-CB-4uH3q.mjs → MazLazyImg--CWPU-_X.mjs} +4 -4
  110. package/components/chunks/{MazLazyImg-BCfYlc7d.mjs → MazLazyImg-sUT-x0Xk.mjs} +5 -5
  111. package/components/chunks/{MazPagination-BOia4I5Z.mjs → MazPagination-CXw3yqbu.mjs} +24 -24
  112. package/components/chunks/MazPhoneNumberInput-CVz5eTvG.mjs +1416 -0
  113. package/components/chunks/MazPicker-DP1zd8tt.mjs +1432 -0
  114. package/components/chunks/{MazPickerCalendar-M6_osHAP.mjs → MazPickerCalendar-qjcDNw86.mjs} +6 -6
  115. package/components/chunks/{MazPickerHeader-D-6gwiN9.mjs → MazPickerHeader-CozeYkFf.mjs} +4 -4
  116. package/components/chunks/{MazPickerMonthSwitcher-B_kJM06G.mjs → MazPickerMonthSwitcher-aaUELZpE.mjs} +5 -5
  117. package/components/chunks/{MazPickerShortcuts-C-YOCADE.mjs → MazPickerShortcuts-ppox8lXf.mjs} +5 -5
  118. package/components/chunks/{MazPickerTime-gWRhtXec.mjs → MazPickerTime-DmpypIWr.mjs} +15 -15
  119. package/components/chunks/{MazPickerYearSwitcher-B346Biv4.mjs → MazPickerYearSwitcher-BNBvipzs.mjs} +6 -6
  120. package/components/chunks/{MazPullToRefresh-86fYEA6I.mjs → MazPullToRefresh-DWbmwlzV.mjs} +4 -4
  121. package/components/chunks/MazSelect-DGEof7R3.mjs +759 -0
  122. package/components/chunks/{MazSpinner-B0bJbNaN.mjs → MazSpinner-2fDI3i5h.mjs} +4 -4
  123. package/components/chunks/{MazSpinner-C9epyQPE.mjs → MazSpinner-Bl8ofcr0.mjs} +4 -4
  124. package/components/chunks/MazSpinner-BqNR1iPX.mjs +38 -0
  125. package/components/chunks/{MazSpinner-Bxelx5NH.mjs → MazSpinner-BtFWH26r.mjs} +4 -4
  126. package/components/chunks/{MazSpinner-1bJd0koH.mjs → MazSpinner-C75WMoEA.mjs} +4 -4
  127. package/components/chunks/MazSpinner-CTdeHHNH.mjs +38 -0
  128. package/components/chunks/MazSpinner-CdKm_Lcp.mjs +38 -0
  129. package/components/chunks/{MazSpinner-lvKqkKry.mjs → MazSpinner-CfA_KEZT.mjs} +9 -9
  130. package/components/chunks/{MazSpinner-C6tjpIOP.mjs → MazSpinner-CiPbsWOG.mjs} +4 -4
  131. package/components/chunks/{MazSpinner-CAJ4x6v1.mjs → MazSpinner-CkHAaRhk.mjs} +4 -4
  132. package/components/chunks/{MazSpinner-Ciltd2Ol.mjs → MazSpinner-DFseK3o_.mjs} +4 -4
  133. package/components/chunks/MazSpinner-DJkziC4O.mjs +38 -0
  134. package/components/chunks/{MazSpinner-BVnAAf_I.mjs → MazSpinner-DMBy6mx3.mjs} +4 -4
  135. package/components/chunks/{MazSpinner-5mIQ-J1u.mjs → MazSpinner-DRSrKc8E.mjs} +4 -4
  136. package/components/chunks/{MazSpinner-DBmPB-lg.mjs → MazSpinner-DTZHIIMh.mjs} +4 -4
  137. package/components/chunks/{MazSpinner-BLbqePcG.mjs → MazSpinner-DUVEeU4h.mjs} +4 -4
  138. package/components/chunks/MazSpinner-DZTqt2Yn.mjs +38 -0
  139. package/components/chunks/{MazSpinner-Dtj8OoQj.mjs → MazSpinner-DmFFdtxB.mjs} +4 -4
  140. package/components/chunks/MazSpinner-DyE_USVF.mjs +38 -0
  141. package/components/chunks/MazSpinner-KKcK5-QF.mjs +38 -0
  142. package/components/chunks/{MazSpinner-yQqsC2ED.mjs → MazSpinner-XMLkiLTL.mjs} +4 -4
  143. package/components/chunks/MazSpinner-yPD_Biya.mjs +38 -0
  144. package/components/chunks/{MazStepper-BRm66qQP.mjs → MazStepper-BrVzcmp3.mjs} +4 -4
  145. package/components/chunks/MazTable-BhDfeDU1.mjs +1867 -0
  146. package/components/chunks/{MazTabsBar-ELc9skwi.mjs → MazTabsBar-9gLVJVoV.mjs} +24 -24
  147. package/components/chunks/{MazTransitionExpand-ChDxDDLP.mjs → MazTransitionExpand-BWsQP7UF.mjs} +4 -4
  148. package/components/chunks/{MazTransitionExpand-1uUHrFQF.mjs → MazTransitionExpand-Qi1Ryuww.mjs} +4 -4
  149. package/css/main.css +1 -1
  150. package/modules/assets/MazBtn.css +1 -1
  151. package/modules/assets/index.css +1 -1
  152. package/modules/chunks/{MazBtn-CgYs8OO8.mjs → MazBtn-BxYYeNGe.mjs} +5 -5
  153. package/modules/chunks/MazBtn-CHUwa3fu.cjs +9 -0
  154. package/modules/chunks/{MazIcon-BD_757YZ.mjs → MazIcon-CnOCvJTw.mjs} +1 -1
  155. package/modules/chunks/{MazIcon-BbQ5j7zo.cjs → MazIcon-DcbutTbM.cjs} +1 -1
  156. package/modules/chunks/{MazSpinner-Co-RRosN.mjs → MazSpinner-ClFhZyF_.mjs} +4 -4
  157. package/modules/chunks/MazSpinner-TL9_4BOs.cjs +1 -0
  158. package/modules/chunks/index-DksGhf51.cjs +124 -0
  159. package/modules/chunks/{index-VOE_fh73.mjs → index-_xAQ9uTd.mjs} +451 -390
  160. package/modules/index.cjs +1 -1
  161. package/modules/index.mjs +26 -25
  162. package/nuxt/index.json +1 -1
  163. package/nuxt/runtime/plugins/toaster.mjs +1 -1
  164. package/nuxt/runtime/plugins/wait.mjs +1 -1
  165. package/package.json +21 -21
  166. package/types/components/MazInputTags.vue.d.ts +69 -110
  167. package/types/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +136 -0
  168. package/types/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +117 -0
  169. package/types/components/MazPhoneNumberInput/types.d.ts +2 -1
  170. package/types/components/MazPhoneNumberInput/use-libphonenumber.d.ts +13 -22
  171. package/types/components/MazPhoneNumberInput/use-maz-phone-number-input.d.ts +56 -0
  172. package/types/components/MazPhoneNumberInput.vue.d.ts +30 -28
  173. package/types/modules/composables/index.d.ts +1 -0
  174. package/types/modules/composables/use-instance-uniq-id.d.ts +1 -3
  175. package/types/modules/composables/use-string-matching.d.ts +5 -0
  176. package/components/chunks/MazBtn-xmWwJAcK.mjs +0 -151
  177. package/components/chunks/MazInputTags-ei2hsVtZ.mjs +0 -616
  178. package/components/chunks/MazPhoneNumberInput-DswH2fTx.mjs +0 -1185
  179. package/components/chunks/MazPicker-0BySEpq3.mjs +0 -1413
  180. package/components/chunks/MazSelect-D3ti4T0X.mjs +0 -676
  181. package/components/chunks/MazSpinner-CELMAnDm.mjs +0 -38
  182. package/components/chunks/MazSpinner-CISWLcK7.mjs +0 -38
  183. package/components/chunks/MazSpinner-Cq67KMlY.mjs +0 -38
  184. package/components/chunks/MazSpinner-D1E6Z8XE.mjs +0 -38
  185. package/components/chunks/MazSpinner-DK6REgwQ.mjs +0 -38
  186. package/components/chunks/MazSpinner-Dl82qu_a.mjs +0 -38
  187. package/components/chunks/MazSpinner-Pgu1cz7Q.mjs +0 -38
  188. package/components/chunks/MazSpinner-f-abl7KS.mjs +0 -38
  189. package/components/chunks/MazTable-CfRjndEs.mjs +0 -1784
  190. package/modules/chunks/MazBtn-BmgfecRj.cjs +0 -9
  191. package/modules/chunks/MazSpinner-CrLrbucF.cjs +0 -1
  192. package/modules/chunks/index-COYUjx_2.cjs +0 -124
package/README.md CHANGED
@@ -33,6 +33,27 @@
33
33
  npm install maz-ui
34
34
  ```
35
35
 
36
+ ### Nuxt Module
37
+
38
+ [Documentation](https://maz-ui.com/guide/nuxt)
39
+
40
+ ```bash
41
+ npm install maz-ui
42
+ ```
43
+
44
+ ```ts
45
+ // nuxt.config.js
46
+
47
+ export default defineNuxtConfig({
48
+ modules: ['maz-ui/nuxt'],
49
+ mazUi: {
50
+ // Options
51
+ },
52
+ })
53
+ ```
54
+
55
+ All options of the module are available [here](https://maz-ui.com/guide/nuxt)
56
+
36
57
  ### @mazui/cli
37
58
 
38
59
  [Documentation & Commands](https://maz-ui.com/guide/cli)
@@ -1,4 +1,4 @@
1
- import "./assets/MazAccordion.css";
1
+ import './assets/MazAccordion.css';
2
2
  import { defineComponent as b, useCssVars as z, openBlock as v, createBlock as S, TransitionGroup as M, withCtx as y, renderSlot as m, nextTick as k, ref as $, computed as f, onMounted as I, onUnmounted as B, createElementBlock as g, normalizeClass as x, normalizeStyle as w, createElementVNode as p, getCurrentInstance as V, useSlots as O, Fragment as A, renderList as L, unref as _, createVNode as E, withDirectives as T, vShow as D } from "vue";
3
3
  const N = /* @__PURE__ */ b({
4
4
  __name: "MazTransitionExpand",
@@ -9,28 +9,28 @@ const N = /* @__PURE__ */ b({
9
9
  z((t) => ({
10
10
  "26239c6e": t.animationDuration
11
11
  }));
12
- const a = (t) => {
13
- const o = getComputedStyle(t).width;
14
- t.style.width = o, t.style.position = "absolute", t.style.visibility = "hidden", t.style.height = "auto", t.style.top = "bottom";
15
- const l = getComputedStyle(t).height;
12
+ const i = (t) => {
13
+ const n = getComputedStyle(t).width;
14
+ t.style.width = n, t.style.position = "absolute", t.style.visibility = "hidden", t.style.height = "auto", t.style.top = "bottom";
15
+ const s = getComputedStyle(t).height;
16
16
  t.style.width = "", t.style.position = "", t.style.visibility = "", t.style.height = "0px", getComputedStyle(t).height, k(() => {
17
- t.style.height = l;
17
+ t.style.height = s;
18
18
  });
19
- }, s = (t) => {
19
+ }, o = (t) => {
20
20
  t.style.height = "auto";
21
21
  }, d = (t) => {
22
- const o = getComputedStyle(t).height;
23
- t.style.height = o, getComputedStyle(t).height, k(() => {
22
+ const n = getComputedStyle(t).height;
23
+ t.style.height = n, getComputedStyle(t).height, k(() => {
24
24
  t.style.height = "0px";
25
25
  });
26
26
  };
27
- return (t, o) => (v(), S(M, {
27
+ return (t, n) => (v(), S(M, {
28
28
  class: "m-transition-expand",
29
29
  name: "maz-expand",
30
30
  tag: "div",
31
- onEnter: o[0] || (o[0] = (l) => a(l)),
32
- onAfterEnter: o[1] || (o[1] = (l) => s(l)),
33
- onLeave: o[2] || (o[2] = (l) => d(l))
31
+ onEnter: n[0] || (n[0] = (s) => i(s)),
32
+ onAfterEnter: n[1] || (n[1] = (s) => o(s)),
33
+ onLeave: n[2] || (n[2] = (s) => d(s))
34
34
  }, {
35
35
  default: y(() => [
36
36
  m(t.$slots, "default", {}, void 0, !0)
@@ -39,11 +39,11 @@ const N = /* @__PURE__ */ b({
39
39
  /* FORWARDED */
40
40
  }));
41
41
  }
42
- }), C = (r, a) => {
43
- const s = r.__vccOpts || r;
44
- for (const [d, t] of a)
45
- s[d] = t;
46
- return s;
42
+ }), C = (r, i) => {
43
+ const o = r.__vccOpts || r;
44
+ for (const [d, t] of i)
45
+ o[d] = t;
46
+ return o;
47
47
  }, j = /* @__PURE__ */ C(N, [["__scopeId", "data-v-49c2af88"]]), U = { class: "inner" }, q = { class: "content" }, F = /* @__PURE__ */ b({
48
48
  __name: "MazCardSpotlight",
49
49
  props: {
@@ -51,19 +51,19 @@ const N = /* @__PURE__ */ b({
51
51
  noElevation: { type: Boolean, default: !1 }
52
52
  },
53
53
  setup(r) {
54
- z((i) => ({
55
- "47fd60d9": l.value,
56
- "9d8d754a": o.value
54
+ z((l) => ({
55
+ "4126589a": s.value,
56
+ "080f395c": n.value
57
57
  }));
58
- const a = r, s = $(), d = $();
59
- function t(i) {
58
+ const i = r, o = $(), d = $();
59
+ function t(l) {
60
60
  var c, h, e;
61
61
  const u = (c = d.value) == null ? void 0 : c.getBoundingClientRect();
62
- u && ((e = (h = s.value) == null ? void 0 : h.animate) == null || e.call(
62
+ u && ((e = (h = o.value) == null ? void 0 : h.animate) == null || e.call(
63
63
  h,
64
64
  [
65
65
  {
66
- transform: `translate(${i.clientX - u.left - u.width / 2}px,${i.clientY - u.top - u.height / 2}px)`
66
+ transform: `translate(${l.clientX - u.left - u.width / 2}px,${l.clientY - u.top - u.height / 2}px)`
67
67
  }
68
68
  ],
69
69
  {
@@ -72,30 +72,30 @@ const N = /* @__PURE__ */ b({
72
72
  }
73
73
  ));
74
74
  }
75
- const o = f(() => `var(--maz-color-${a.color}-alpha)`), l = f(() => `var(--maz-color-${a.color}-alpha-20)`);
75
+ const n = f(() => `var(--maz-color-${i.color}-alpha)`), s = f(() => `var(--maz-color-${i.color}-alpha-20)`);
76
76
  return I(() => {
77
77
  window.addEventListener("mousemove", t);
78
78
  }), B(() => {
79
79
  window.removeEventListener("mousemove", t);
80
- }), (i, u) => (v(), g(
80
+ }), (l, u) => (v(), g(
81
81
  "div",
82
82
  {
83
- class: x(["card", { "maz-elevation": !i.noElevation }]),
84
- style: w({ backgroundColor: l.value })
83
+ class: x(["m-card", { "maz-elevation": !l.noElevation }]),
84
+ style: w({ backgroundColor: s.value })
85
85
  },
86
86
  [
87
87
  p("div", U, [
88
88
  p("div", q, [
89
- m(i.$slots, "default", {}, void 0, !0)
89
+ m(l.$slots, "default", {}, void 0, !0)
90
90
  ])
91
91
  ]),
92
92
  p(
93
93
  "div",
94
94
  {
95
95
  ref_key: "blobElement",
96
- ref: s,
96
+ ref: o,
97
97
  class: "blob",
98
- style: w({ backgroundColor: o.value })
98
+ style: w({ backgroundColor: n.value })
99
99
  },
100
100
  null,
101
101
  4
@@ -117,7 +117,7 @@ const N = /* @__PURE__ */ b({
117
117
  /* CLASS, STYLE */
118
118
  ));
119
119
  }
120
- }), G = /* @__PURE__ */ C(F, [["__scopeId", "data-v-01b19fcf"]]), P = {
120
+ }), G = /* @__PURE__ */ C(F, [["__scopeId", "data-v-11af6ef3"]]), P = {
121
121
  xmlns: "http://www.w3.org/2000/svg",
122
122
  width: "1em",
123
123
  height: "1em",
@@ -138,14 +138,16 @@ const N = /* @__PURE__ */ b({
138
138
  ), W = [
139
139
  R
140
140
  ];
141
- function X(r, a) {
141
+ function X(r, i) {
142
142
  return v(), g("svg", P, [...W]);
143
143
  }
144
144
  const Y = { render: X }, H = ({
145
145
  componentName: r,
146
- instance: a,
147
- providedId: s
148
- }) => f(() => s ?? `${r}-${a == null ? void 0 : a.uid}`), J = {
146
+ providedId: i
147
+ }) => {
148
+ const o = V();
149
+ return f(() => i ?? `${r}-${o == null ? void 0 : o.uid}`);
150
+ }, J = {
149
151
  class: "m-accordion",
150
152
  role: "presentation"
151
153
  }, K = ["aria-controls", "aria-expanded", "onClick"], Q = ["id", "aria-labelledby", "aria-hidden"], Z = { class: "maz-p-4" }, tt = /* @__PURE__ */ b({
@@ -155,48 +157,47 @@ const Y = { render: X }, H = ({
155
157
  modelValue: { default: 0 }
156
158
  },
157
159
  emits: ["update:model-value"],
158
- setup(r, { emit: a }) {
159
- const s = r, d = a, t = H({
160
+ setup(r, { emit: i }) {
161
+ const o = r, d = i, t = H({
160
162
  componentName: "MazAccordion",
161
- instance: V(),
162
- providedId: s.id
163
- }), o = O(), l = f(
164
- () => Object.keys(o).filter((e) => e.startsWith("title-")).length
165
- ), i = $(s.modelValue), u = f({
166
- get: () => s.modelValue || i.value,
163
+ providedId: o.id
164
+ }), n = O(), s = f(
165
+ () => Object.keys(n).filter((e) => e.startsWith("title-")).length
166
+ ), l = $(o.modelValue), u = f({
167
+ get: () => o.modelValue || l.value,
167
168
  set: (e) => {
168
- i.value = e, d("update:model-value", e);
169
+ l.value = e, d("update:model-value", e);
169
170
  }
170
171
  });
171
172
  function c(e) {
172
173
  return u.value === e;
173
174
  }
174
175
  function h(e) {
175
- u.value === e ? (i.value = 0, d("update:model-value", 0)) : (i.value = e, d("update:model-value", e));
176
+ u.value === e ? (l.value = 0, d("update:model-value", 0)) : (l.value = e, d("update:model-value", e));
176
177
  }
177
178
  return (e, et) => (v(), g("div", J, [
178
179
  (v(!0), g(
179
180
  A,
180
181
  null,
181
- L(l.value, (n) => (v(), S(
182
+ L(s.value, (a) => (v(), S(
182
183
  G,
183
184
  {
184
- key: n,
185
+ key: a,
185
186
  class: "spotlight"
186
187
  },
187
188
  {
188
189
  default: y(() => [
189
190
  p("button", {
190
191
  class: "header",
191
- "aria-controls": `step-${n}-${_(t)}`,
192
- "aria-expanded": c(n),
193
- onClick: (ot) => h(n)
192
+ "aria-controls": `step-${a}-${_(t)}`,
193
+ "aria-expanded": c(a),
194
+ onClick: (ot) => h(a)
194
195
  }, [
195
- m(e.$slots, `title-${n}`, {
196
- isOpen: c(n)
196
+ m(e.$slots, `title-${a}`, {
197
+ isOpen: c(a)
197
198
  }, void 0, !0),
198
199
  E(_(Y), {
199
- class: x(["header-icon", { "--rotate": c(n) }])
200
+ class: x(["header-icon", { "--rotate": c(a) }])
200
201
  }, null, 8, ["class"])
201
202
  ], 8, K),
202
203
  E(
@@ -205,21 +206,21 @@ const Y = { render: X }, H = ({
205
206
  {
206
207
  default: y(() => [
207
208
  T(p("div", {
208
- id: `step-${n}-${_(t)}`,
209
+ id: `step-${a}-${_(t)}`,
209
210
  role: "region",
210
- "aria-labelledby": `step-${n}-${_(t)}`,
211
- "aria-hidden": !c(n)
211
+ "aria-labelledby": `step-${a}-${_(t)}`,
212
+ "aria-hidden": !c(a)
212
213
  }, [
213
214
  p("div", Z, [
214
215
  m(e.$slots, "content", {
215
- isOpen: c(n)
216
+ isOpen: c(a)
216
217
  }, void 0, !0),
217
- m(e.$slots, `content-${n}`, {
218
- isOpen: c(n)
218
+ m(e.$slots, `content-${a}`, {
219
+ isOpen: c(a)
219
220
  }, void 0, !0)
220
221
  ])
221
222
  ], 8, Q), [
222
- [D, c(n)]
223
+ [D, c(a)]
223
224
  ])
224
225
  ]),
225
226
  _: 2
@@ -240,7 +241,7 @@ const Y = { render: X }, H = ({
240
241
  ))
241
242
  ]));
242
243
  }
243
- }), st = /* @__PURE__ */ C(tt, [["__scopeId", "data-v-1ca5e1a5"]]);
244
+ }), at = /* @__PURE__ */ C(tt, [["__scopeId", "data-v-630c9b2d"]]);
244
245
  export {
245
- st as default
246
+ at as default
246
247
  };
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazAvatar-Dv5LXKDM.mjs";
1
+ import { M as f } from "./chunks/MazAvatar-QnbdAjGS.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,6 +1,6 @@
1
- import "./assets/MazBackdrop.css";
1
+ import './assets/MazBackdrop.css';
2
2
  import { defineComponent as A, ref as L, onMounted as V, watch as D, openBlock as p, createBlock as N, Teleport as S, createVNode as h, Transition as M, withCtx as P, createElementBlock as T, normalizeClass as f, createElementVNode as k, withModifiers as g, mergeProps as w, renderSlot as O, createCommentVNode as K } from "vue";
3
- const b = "--backdrop-present", _ = /* @__PURE__ */ A({
3
+ const b = "--backdrop-present", F = /* @__PURE__ */ A({
4
4
  inheritAttrs: !1,
5
5
  __name: "MazBackdrop",
6
6
  props: {
@@ -33,29 +33,29 @@ const b = "--backdrop-present", _ = /* @__PURE__ */ A({
33
33
  function i() {
34
34
  t("update:model-value", !1), t("close"), l();
35
35
  }
36
- function m() {
36
+ function u() {
37
37
  o.persistent || a();
38
38
  }
39
39
  function s(e) {
40
40
  !o.noCloseOnEscKey && e.key === "Escape" && !o.persistent && a();
41
41
  }
42
- function u() {
42
+ function m() {
43
43
  E(), document.addEventListener("keyup", s, !1);
44
44
  }
45
45
  function l() {
46
46
  document.removeEventListener("keyup", s), B();
47
47
  }
48
48
  return V(() => {
49
- o.modelValue ? u() : l();
49
+ o.modelValue ? m() : l();
50
50
  }), D(
51
51
  () => o.modelValue,
52
52
  (e) => {
53
- n.value = e, e ? u() : l();
53
+ n.value = e, e ? m() : l();
54
54
  }
55
55
  ), v({
56
56
  onBackdropAnimationEnter: c,
57
57
  onBackdropAnimationLeave: i,
58
- onBackdropClicked: m,
58
+ onBackdropClicked: u,
59
59
  close: a,
60
60
  present: n,
61
61
  toggleModal: d,
@@ -82,7 +82,7 @@ const b = "--backdrop-present", _ = /* @__PURE__ */ A({
82
82
  {
83
83
  class: f(["m-backdrop-overlay", { "--disabled": e.persistent }]),
84
84
  tabindex: "-1",
85
- onClick: g(m, ["self"])
85
+ onClick: g(u, ["self"])
86
86
  },
87
87
  null,
88
88
  2
@@ -114,5 +114,5 @@ const b = "--backdrop-present", _ = /* @__PURE__ */ A({
114
114
  }
115
115
  });
116
116
  export {
117
- _ as default
117
+ F as default
118
118
  };
@@ -1,5 +1,5 @@
1
- import "./assets/MazBadge.css";
2
- import { defineComponent as n, openBlock as r, createElementBlock as s, normalizeClass as p, normalizeStyle as d, renderSlot as u } from "vue";
1
+ import './assets/MazBadge.css';
2
+ import { defineComponent as n, openBlock as r, createElementBlock as s, normalizeClass as d, normalizeStyle as p, renderSlot as u } from "vue";
3
3
  const f = /* @__PURE__ */ n({
4
4
  __name: "MazBadge",
5
5
  props: {
@@ -14,12 +14,12 @@ const f = /* @__PURE__ */ n({
14
14
  return (e, a) => (r(), s(
15
15
  "span",
16
16
  {
17
- class: p(["m-badge", [
17
+ class: d(["m-badge", [
18
18
  `--${e.color}`,
19
19
  { "--outline": e.outline, "--pastel": e.pastel, "--nowrap": e.nowrap },
20
20
  `--rounded-${e.roundedSize}`
21
21
  ]]),
22
- style: d({ fontSize: e.size })
22
+ style: p({ fontSize: e.size })
23
23
  },
24
24
  [
25
25
  u(e.$slots, "default", {}, void 0, !0)
@@ -33,7 +33,7 @@ const f = /* @__PURE__ */ n({
33
33
  for (const [t, l] of e)
34
34
  a[t] = l;
35
35
  return a;
36
- }, z = /* @__PURE__ */ i(f, [["__scopeId", "data-v-a74e7e9a"]]);
36
+ }, m = /* @__PURE__ */ i(f, [["__scopeId", "data-v-dbb6ac88"]]);
37
37
  export {
38
- z as default
38
+ m as default
39
39
  };
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazBottomSheet-BBrSS82i.mjs";
1
+ import { M as f } from "./chunks/MazBottomSheet-DZ1n4bGL.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazBtn-MuVROF9V.mjs";
1
+ import { M as f } from "./chunks/MazBtn-CnkBOGKK.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazCard-BF5zuDCX.mjs";
1
+ import { M as f } from "./chunks/MazCard-CNE9c3L5.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import "./assets/MazCardSpotlight.css";
1
+ import './assets/MazCardSpotlight.css';
2
2
  import { defineComponent as _, useCssVars as b, ref as f, computed as p, onMounted as h, onUnmounted as k, openBlock as C, createElementBlock as E, normalizeClass as g, normalizeStyle as v, createElementVNode as c, renderSlot as y } from "vue";
3
3
  const z = { class: "inner" }, w = { class: "content" }, B = /* @__PURE__ */ _({
4
4
  __name: "MazCardSpotlight",
@@ -6,12 +6,12 @@ const z = { class: "inner" }, w = { class: "content" }, B = /* @__PURE__ */ _({
6
6
  color: { default: "primary" },
7
7
  noElevation: { type: Boolean, default: !1 }
8
8
  },
9
- setup(l) {
9
+ setup(a) {
10
10
  b((e) => ({
11
- "47fd60d9": i.value,
12
- "9d8d754a": d.value
11
+ "4126589a": d.value,
12
+ "080f395c": i.value
13
13
  }));
14
- const a = l, t = f(), n = f();
14
+ const l = a, t = f(), n = f();
15
15
  function r(e) {
16
16
  var m, s, u;
17
17
  const o = (m = n.value) == null ? void 0 : m.getBoundingClientRect();
@@ -28,7 +28,7 @@ const z = { class: "inner" }, w = { class: "content" }, B = /* @__PURE__ */ _({
28
28
  }
29
29
  ));
30
30
  }
31
- const d = p(() => `var(--maz-color-${a.color}-alpha)`), i = p(() => `var(--maz-color-${a.color}-alpha-20)`);
31
+ const i = p(() => `var(--maz-color-${l.color}-alpha)`), d = p(() => `var(--maz-color-${l.color}-alpha-20)`);
32
32
  return h(() => {
33
33
  window.addEventListener("mousemove", r);
34
34
  }), k(() => {
@@ -36,8 +36,8 @@ const z = { class: "inner" }, w = { class: "content" }, B = /* @__PURE__ */ _({
36
36
  }), (e, o) => (C(), E(
37
37
  "div",
38
38
  {
39
- class: g(["card", { "maz-elevation": !e.noElevation }]),
40
- style: v({ backgroundColor: i.value })
39
+ class: g(["m-card", { "maz-elevation": !e.noElevation }]),
40
+ style: v({ backgroundColor: d.value })
41
41
  },
42
42
  [
43
43
  c("div", z, [
@@ -51,7 +51,7 @@ const z = { class: "inner" }, w = { class: "content" }, B = /* @__PURE__ */ _({
51
51
  ref_key: "blobElement",
52
52
  ref: t,
53
53
  class: "blob",
54
- style: v({ backgroundColor: d.value })
54
+ style: v({ backgroundColor: i.value })
55
55
  },
56
56
  null,
57
57
  4
@@ -73,12 +73,12 @@ const z = { class: "inner" }, w = { class: "content" }, B = /* @__PURE__ */ _({
73
73
  /* CLASS, STYLE */
74
74
  ));
75
75
  }
76
- }), $ = (l, a) => {
77
- const t = l.__vccOpts || l;
78
- for (const [n, r] of a)
76
+ }), $ = (a, l) => {
77
+ const t = a.__vccOpts || a;
78
+ for (const [n, r] of l)
79
79
  t[n] = r;
80
80
  return t;
81
- }, M = /* @__PURE__ */ $(B, [["__scopeId", "data-v-01b19fcf"]]);
81
+ }, S = /* @__PURE__ */ $(B, [["__scopeId", "data-v-11af6ef3"]]);
82
82
  export {
83
- M as default
83
+ S as default
84
84
  };
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazCarousel-CwxTOUqt.mjs";
1
+ import { M as f } from "./chunks/MazCarousel-CMJgMJf1.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,16 +1,18 @@
1
- import "./assets/MazCheckbox.css";
2
- import { computed as r, openBlock as b, createElementBlock as k, createElementVNode as u, defineComponent as w, useCssVars as C, getCurrentInstance as I, unref as d, normalizeClass as p, normalizeStyle as S, mergeProps as B, createVNode as A, renderSlot as N } from "vue";
3
- const $ = ({
4
- componentName: t,
5
- instance: a,
6
- providedId: n
7
- }) => r(() => n ?? `${t}-${a == null ? void 0 : a.uid}`), M = {
1
+ import './assets/MazCheckbox.css';
2
+ import { getCurrentInstance as _, computed as l, openBlock as p, createElementBlock as b, createElementVNode as u, defineComponent as w, useCssVars as C, unref as d, normalizeClass as h, normalizeStyle as I, mergeProps as S, createVNode as B, renderSlot as A } from "vue";
3
+ const N = ({
4
+ componentName: a,
5
+ providedId: r
6
+ }) => {
7
+ const e = _();
8
+ return l(() => r ?? `${a}-${e == null ? void 0 : e.uid}`);
9
+ }, $ = {
8
10
  xmlns: "http://www.w3.org/2000/svg",
9
11
  width: "1em",
10
12
  height: "1em",
11
13
  fill: "none",
12
14
  viewBox: "0 0 24 24"
13
- }, E = /* @__PURE__ */ u(
15
+ }, M = /* @__PURE__ */ u(
14
16
  "path",
15
17
  {
16
18
  stroke: "currentColor",
@@ -22,13 +24,13 @@ const $ = ({
22
24
  null,
23
25
  -1
24
26
  /* HOISTED */
25
- ), j = [
26
- E
27
+ ), E = [
28
+ M
27
29
  ];
28
- function q(t, a) {
29
- return b(), k("svg", M, [...j]);
30
+ function j(a, r) {
31
+ return p(), b("svg", $, [...E]);
30
32
  }
31
- const D = { render: q }, H = ["for", "aria-checked"], K = ["id", "checked", "disabled", "name"], O = /* @__PURE__ */ w({
33
+ const q = { render: j }, D = ["for", "aria-checked"], H = ["id", "checked", "disabled", "name"], K = /* @__PURE__ */ w({
32
34
  inheritAttrs: !1,
33
35
  __name: "MazCheckbox",
34
36
  props: {
@@ -48,20 +50,19 @@ const D = { render: q }, H = ["for", "aria-checked"], K = ["id", "checked", "dis
48
50
  /* emited when value change */
49
51
  "change"
50
52
  ],
51
- setup(t, { emit: a }) {
53
+ setup(a, { emit: r }) {
52
54
  C((o) => ({
53
- b8e5fc84: y.value,
54
- "01c73ce0": x.value,
55
- "911738ee": z.value,
56
- "108a1568": V.value
55
+ "221b46ca": v.value,
56
+ "1d8faafd": k.value,
57
+ d0ccf3e8: y.value,
58
+ "40f85d62": z.value
57
59
  }));
58
- const n = I(), e = t, c = a, i = $({
60
+ const e = a, n = r, c = N({
59
61
  componentName: "MazCheckbox",
60
- instance: n,
61
62
  providedId: e.id
62
- }), m = r(
63
+ }), i = l(
63
64
  () => typeof e.value != "boolean" && Array.isArray(e.modelValue) ? e.modelValue.includes(e.value) : typeof e.modelValue == "boolean" ? e.modelValue : !1
64
- ), x = r(() => {
65
+ ), k = l(() => {
65
66
  switch (e.size) {
66
67
  case "xl":
67
68
  return "2.25rem";
@@ -76,7 +77,7 @@ const D = { render: q }, H = ["for", "aria-checked"], K = ["id", "checked", "dis
76
77
  case "mini":
77
78
  return "1.2rem";
78
79
  }
79
- }), v = r(() => {
80
+ }), x = l(() => {
80
81
  switch (e.size) {
81
82
  case "xl":
82
83
  return "maz-text-2xl";
@@ -91,55 +92,55 @@ const D = { render: q }, H = ["for", "aria-checked"], K = ["id", "checked", "dis
91
92
  case "mini":
92
93
  return "maz-text-xs";
93
94
  }
94
- }), y = r(() => `var(--maz-color-${e.color}-contrast)`), z = r(() => `var(--maz-color-${e.color})`), V = r(
95
+ }), v = l(() => `var(--maz-color-${e.color}-contrast)`), y = l(() => `var(--maz-color-${e.color})`), z = l(
95
96
  () => ["black", "transparent"].includes(e.color) ? "var(--maz-color-muted)" : `var(--maz-color-${e.color}-alpha)`
96
97
  );
97
- function g(o) {
98
- ["Space"].includes(o.code) && (o.preventDefault(), f(e.value ?? !e.modelValue));
98
+ function V(o) {
99
+ ["Space"].includes(o.code) && (o.preventDefault(), m(e.value ?? !e.modelValue));
99
100
  }
100
- function _(o) {
101
- return typeof o == "boolean" && (typeof e.modelValue == "boolean" || e.modelValue === void 0 || e.modelValue === null) ? !e.modelValue : Array.isArray(e.modelValue) && typeof o != "boolean" ? e.modelValue.includes(o) ? e.modelValue.filter((l) => l !== o) : [...e.modelValue, o] : [o];
101
+ function g(o) {
102
+ return typeof o == "boolean" && (typeof e.modelValue == "boolean" || e.modelValue === void 0 || e.modelValue === null) ? !e.modelValue : Array.isArray(e.modelValue) && typeof o != "boolean" ? e.modelValue.includes(o) ? e.modelValue.filter((t) => t !== o) : [...e.modelValue, o] : [o];
102
103
  }
103
- function f(o) {
104
- const l = _(o);
105
- c("update:model-value", l), c("change", l);
104
+ function m(o) {
105
+ const t = g(o);
106
+ n("update:model-value", t), n("change", t);
106
107
  }
107
- return (o, l) => (b(), k("label", {
108
- for: d(i),
109
- class: p(["m-checkbox", [{ "--disabled": o.disabled }, e.class]]),
108
+ return (o, t) => (p(), b("label", {
109
+ for: d(c),
110
+ class: h(["m-checkbox", [{ "--disabled": o.disabled }, e.class]]),
110
111
  tabindex: "0",
111
- style: S(o.style),
112
+ style: I(o.style),
112
113
  role: "checkbox",
113
- "aria-checked": m.value,
114
- onKeydown: g
114
+ "aria-checked": i.value,
115
+ onKeydown: V
115
116
  }, [
116
- u("input", B({
117
- id: d(i),
118
- checked: m.value
117
+ u("input", S({
118
+ id: d(c),
119
+ checked: i.value
119
120
  }, o.$attrs, {
120
121
  tabindex: "-1",
121
122
  disabled: o.disabled,
122
123
  name: o.name,
123
124
  type: "checkbox",
124
- onChange: l[0] || (l[0] = (s) => {
125
- var h;
126
- return f(o.value ?? ((h = s == null ? void 0 : s.target) == null ? void 0 : h.checked));
125
+ onChange: t[0] || (t[0] = (s) => {
126
+ var f;
127
+ return m(o.value ?? ((f = s == null ? void 0 : s.target) == null ? void 0 : f.checked));
127
128
  })
128
- }), null, 16, K),
129
+ }), null, 16, H),
129
130
  u("span", null, [
130
- A(d(D), {
131
- class: p(["check-icon", v.value])
131
+ B(d(q), {
132
+ class: h(["check-icon", x.value])
132
133
  }, null, 8, ["class"])
133
134
  ]),
134
- N(o.$slots, "default", {}, void 0, !0)
135
- ], 46, H));
135
+ A(o.$slots, "default", {}, void 0, !0)
136
+ ], 46, D));
136
137
  }
137
- }), P = (t, a) => {
138
- const n = t.__vccOpts || t;
139
- for (const [e, c] of a)
140
- n[e] = c;
141
- return n;
142
- }, G = /* @__PURE__ */ P(O, [["__scopeId", "data-v-41945bef"]]);
138
+ }), O = (a, r) => {
139
+ const e = a.__vccOpts || a;
140
+ for (const [n, c] of r)
141
+ e[n] = c;
142
+ return e;
143
+ }, U = /* @__PURE__ */ O(K, [["__scopeId", "data-v-591244ca"]]);
143
144
  export {
144
- G as default
145
+ U as default
145
146
  };