maz-ui 3.47.2-beta.13 → 3.47.2-beta.15

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 (129) hide show
  1. package/components/MazAccordion.mjs +34 -35
  2. package/components/MazBackdrop.mjs +1 -1
  3. package/components/MazBottomSheet.mjs +1 -1
  4. package/components/MazCard.mjs +1 -1
  5. package/components/MazCheckbox.mjs +35 -36
  6. package/components/MazChecklist.mjs +1 -1
  7. package/components/MazCircularProgressBar.mjs +15 -16
  8. package/components/MazDialog.mjs +1 -1
  9. package/components/MazDialogPromise.mjs +1 -1
  10. package/components/MazDrawer.mjs +1 -1
  11. package/components/MazDropdown.mjs +1 -1
  12. package/components/MazFullscreenLoader.mjs +7 -7
  13. package/components/MazGallery.mjs +1 -1
  14. package/components/MazInput.mjs +1 -1
  15. package/components/MazInputNumber.mjs +1 -1
  16. package/components/MazInputPrice.mjs +1 -1
  17. package/components/MazInputTags.mjs +1 -1
  18. package/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +2 -2
  19. package/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +3 -3
  20. package/components/MazPhoneNumberInput/types.d.ts +1 -1
  21. package/components/MazPhoneNumberInput/use-libphonenumber.d.ts +4 -4
  22. package/components/MazPhoneNumberInput/use-maz-phone-number-input.d.ts +1 -1
  23. package/components/MazPhoneNumberInput.d.ts +65 -24
  24. package/components/MazPhoneNumberInput.mjs +1 -1
  25. package/components/MazPicker.mjs +1 -1
  26. package/components/MazRadio.mjs +19 -20
  27. package/components/MazSelect.mjs +1 -1
  28. package/components/MazSwitch.mjs +15 -16
  29. package/components/MazTable.mjs +1 -1
  30. package/components/MazTabsBar.mjs +1 -1
  31. package/components/MazTabsContentItem.mjs +7 -7
  32. package/components/MazTextarea.mjs +2 -3
  33. package/components/assets/MazGallery.css +1 -1
  34. package/components/assets/MazPhoneNumberInput.css +1 -1
  35. package/components/assets/MazSelect.css +1 -1
  36. package/components/assets/MazTabsBar.css +1 -1
  37. package/components/assets/MazTabsContentItem.css +1 -1
  38. package/components/chunks/{MazBadge-CupQjB8D.mjs → MazBadge-DCzaExPj.mjs} +1 -1
  39. package/components/chunks/{MazBottomSheet-D9EPpEV8.mjs → MazBottomSheet-B1cqFZxd.mjs} +2 -2
  40. package/components/chunks/{MazBtn-CQq-U8qQ.mjs → MazBtn-BBjeD4hu.mjs} +2 -2
  41. package/components/chunks/MazBtn-BDrYYq_W.mjs +103 -0
  42. package/components/chunks/MazBtn-BQwIuO_Q.mjs +103 -0
  43. package/components/chunks/{MazBtn-Chk7DWOF.mjs → MazBtn-C4nwxs9T.mjs} +2 -2
  44. package/components/chunks/{MazBtn-BSgCMRt0.mjs → MazBtn-CElHmZjv.mjs} +2 -2
  45. package/components/chunks/{MazBtn-Br3xKJMD.mjs → MazBtn-D1jMqwE1.mjs} +2 -2
  46. package/components/chunks/MazBtn-Db6ai-Mv.mjs +103 -0
  47. package/components/chunks/{MazBtn-CB6xVwox.mjs → MazBtn-LssGZPPh.mjs} +2 -2
  48. package/components/chunks/{MazBtn-BfIn7glE.mjs → MazBtn-ZigrzA2_.mjs} +2 -2
  49. package/components/chunks/{MazBtn-DhSKmF01.mjs → MazBtn-oZhhJy09.mjs} +1 -1
  50. package/components/chunks/{MazBtn-DI80W9rl.mjs → MazBtn-u8A4zbVD.mjs} +2 -2
  51. package/components/chunks/{MazCard-XBaeDZkg.mjs → MazCard-98OuVlyK.mjs} +1 -1
  52. package/components/chunks/{MazCheckbox-DxfneUvu.mjs → MazCheckbox-CE_7EoUE.mjs} +1 -1
  53. package/components/chunks/{MazCheckbox-B-Sw22La.mjs → MazCheckbox-D2fkthdh.mjs} +1 -1
  54. package/components/chunks/{MazCheckbox-DjY15PA3.mjs → MazCheckbox-Df1bTvTA.mjs} +2 -2
  55. package/components/chunks/{MazChecklist-DaozZlNb.mjs → MazChecklist-BurPprmw.mjs} +2 -3
  56. package/components/chunks/{MazDialog-XiX9LEiz.mjs → MazDialog-C3h6Ydey.mjs} +2 -2
  57. package/components/chunks/{MazDialogPromise-B9_e3Ma9.mjs → MazDialogPromise-BZm1F0X2.mjs} +3 -3
  58. package/components/chunks/{MazDropdown-CKuIGitT.mjs → MazDropdown-0r445NfW.mjs} +3 -4
  59. package/components/chunks/{MazGallery-BooLoRWi.mjs → MazGallery-r8SBTCgJ.mjs} +6 -6
  60. package/components/chunks/{MazGallery-DUOQamrE.mjs → MazGallery-xPp1apvO.mjs} +65 -65
  61. package/components/chunks/MazIcon-BoTByt7n.mjs +4 -0
  62. package/components/chunks/{MazIcon-DFW4cVVf.mjs → MazIcon-Y4qVlKF1.mjs} +1 -1
  63. package/components/chunks/{MazInput-BWAWlxDa.mjs → MazInput-BCxcwHct.mjs} +3 -3
  64. package/components/chunks/{MazInput-HLPtw5QK.mjs → MazInput-BT-mbJfZ.mjs} +2 -2
  65. package/components/chunks/{MazInput-DIN1VAoX.mjs → MazInput-BfWJoPre.mjs} +3 -4
  66. package/components/chunks/{MazInputNumber-7Ku2ZcG-.mjs → MazInputNumber-R0RzDeyD.mjs} +20 -21
  67. package/components/chunks/{MazInputPrice-C5yErBFP.mjs → MazInputPrice-CKSdqO4X.mjs} +3 -4
  68. package/components/chunks/{MazInputTags-DvbQ2mK8.mjs → MazInputTags-D6jQ2-Ia.mjs} +2 -3
  69. package/components/chunks/{MazLink-mrqHeBS0.mjs → MazLink-tud3eDgU.mjs} +1 -1
  70. package/components/chunks/{MazLoadingBar-CNm3Yt6D.mjs → MazLoadingBar-Difme_hf.mjs} +1 -1
  71. package/components/chunks/{MazPhoneNumberInput-B5Up8CqL.mjs → MazPhoneNumberInput-Brc7mthM.mjs} +155 -153
  72. package/components/chunks/{MazPicker-CzYUZcLy.mjs → MazPicker-CwiuW5Pv.mjs} +4 -5
  73. package/components/chunks/{MazPickerMonthSwitcher-Ds5agR3Z.mjs → MazPickerMonthSwitcher-C65el7R0.mjs} +1 -1
  74. package/components/chunks/{MazPickerShortcuts-BP6CY9-c.mjs → MazPickerShortcuts-DbrOoszH.mjs} +1 -1
  75. package/components/chunks/{MazPickerYearSwitcher-PM8qZMzR.mjs → MazPickerYearSwitcher-D9lqntyR.mjs} +1 -1
  76. package/components/chunks/{MazSelect-DOexatNj.mjs → MazSelect-BTj-gsNu.mjs} +4 -5
  77. package/components/chunks/{MazSelect-DaDRzcT_.mjs → MazSelect-rBU47Yma.mjs} +4 -4
  78. package/components/chunks/{MazSpinner-Bsy1nA3c.mjs → MazSpinner-1F6A6qVD.mjs} +1 -1
  79. package/components/chunks/MazSpinner-4ja9Gafa.mjs +34 -0
  80. package/components/chunks/{MazSpinner-BJpv1muf.mjs → MazSpinner-BDda3YzZ.mjs} +1 -1
  81. package/components/chunks/{MazSpinner-CxyUHAvm.mjs → MazSpinner-C2-JMhVh.mjs} +1 -1
  82. package/components/chunks/MazSpinner-CS1_l-tv.mjs +34 -0
  83. package/components/chunks/{MazSpinner-ZPQe8ON_.mjs → MazSpinner-CbQ43lMx.mjs} +1 -1
  84. package/components/chunks/{MazSpinner-9M_EGMpy.mjs → MazSpinner-Cp_nPioh.mjs} +1 -1
  85. package/components/chunks/MazSpinner-CwmaAuL1.mjs +34 -0
  86. package/components/chunks/{MazSpinner-CDx6lo7l.mjs → MazSpinner-Dfj-lu-U.mjs} +1 -1
  87. package/components/chunks/MazSpinner-DqD51Fb6.mjs +34 -0
  88. package/components/chunks/{MazSpinner-C30YfScc.mjs → MazSpinner-DudoF-cG.mjs} +1 -1
  89. package/components/chunks/MazSpinner-DzFcVNs_.mjs +34 -0
  90. package/components/chunks/{MazSpinner-C_GueolV.mjs → MazSpinner-mtv0dluJ.mjs} +1 -1
  91. package/components/chunks/MazSpinner-wQasUhyI.mjs +34 -0
  92. package/components/chunks/{MazTable-Ci8nhgOP.mjs → MazTable-C0rcyl2r.mjs} +1 -1
  93. package/components/chunks/{MazTableCell-BIganK6X.mjs → MazTableCell-BhTwC2iX.mjs} +1 -1
  94. package/components/chunks/{MazTableRow-CIO-x6Lb.mjs → MazTableRow-BY_2wH3h.mjs} +1 -1
  95. package/components/chunks/{MazTableTitle-OEgTPQB3.mjs → MazTableTitle-DM_f1xmU.mjs} +1 -1
  96. package/components/chunks/{MazTabsBar-CT35SCIK.mjs → MazTabsBar--Xq_cpuz.mjs} +3 -3
  97. package/components/chunks/{MazTransitionExpand-Bcwdl9g2.mjs → MazTransitionExpand-Cedz9Ree.mjs} +1 -1
  98. package/components/chunks/useInstanceUniqId-BkOfxhk8.mjs +10 -0
  99. package/modules/assets/index.css +1 -1
  100. package/modules/chunks/{MazBtn-0CRjeBvn.mjs → MazBtn-5kChLyut.mjs} +2 -2
  101. package/modules/chunks/{MazBtn-DRqCRJD-.cjs → MazBtn-DDy5YiXc.cjs} +1 -1
  102. package/modules/chunks/{MazIcon-CeT6HK_q.mjs → MazIcon-COgM-qpZ.mjs} +1 -1
  103. package/modules/chunks/{MazIcon-D-Gna0vz.cjs → MazIcon-CQFeylgS.cjs} +1 -1
  104. package/modules/chunks/{MazSpinner-DV--lwdI.mjs → MazSpinner-bBkHNQ_l.mjs} +1 -1
  105. package/modules/chunks/{MazSpinner-DersvZQw.cjs → MazSpinner-y2YtVsZV.cjs} +1 -1
  106. package/modules/chunks/index-BsSNJt-B.cjs +124 -0
  107. package/modules/chunks/{index-Kry9j5uD.mjs → index-Bxs7y8eO.mjs} +12 -13
  108. package/modules/index.cjs +1 -1
  109. package/modules/index.mjs +1 -1
  110. package/nuxt/index.json +1 -1
  111. package/package.json +3 -3
  112. package/types/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +2 -2
  113. package/types/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +3 -3
  114. package/types/components/MazPhoneNumberInput/types.d.ts +1 -1
  115. package/types/components/MazPhoneNumberInput/use-libphonenumber.d.ts +4 -4
  116. package/types/components/MazPhoneNumberInput/use-maz-phone-number-input.d.ts +1 -1
  117. package/types/components/MazPhoneNumberInput.vue.d.ts +65 -24
  118. package/components/chunks/MazBtn-Ck84sP9a.mjs +0 -103
  119. package/components/chunks/MazBtn-DzwuLea3.mjs +0 -103
  120. package/components/chunks/MazBtn-tOUtVpek.mjs +0 -103
  121. package/components/chunks/MazIcon-BX2Gbz8R.mjs +0 -4
  122. package/components/chunks/MazSpinner-C5mnD76l.mjs +0 -34
  123. package/components/chunks/MazSpinner-Cgg2dkzQ.mjs +0 -34
  124. package/components/chunks/MazSpinner-CkKIUYXO.mjs +0 -34
  125. package/components/chunks/MazSpinner-DROgQW2M.mjs +0 -34
  126. package/components/chunks/MazSpinner-Dzs2W0kq.mjs +0 -34
  127. package/components/chunks/MazSpinner-NCtEpFMm.mjs +0 -34
  128. package/components/chunks/useInstanceUniqId-DW9jO1Sz.mjs +0 -11
  129. package/modules/chunks/index-DvromXrX.cjs +0 -124
@@ -1,4 +1,4 @@
1
- import { openBlock as p, createElementBlock as b, createElementVNode as c, useId as V, computed as g, defineComponent as w, ref as f, onMounted as O, onUnmounted as B, normalizeClass as $, 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";
1
+ import { openBlock as p, createElementBlock as b, createElementVNode as c, computed as g, useId as V, defineComponent as w, ref as f, onMounted as O, onUnmounted as B, normalizeClass as $, 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",
@@ -28,8 +28,7 @@ function U({
28
28
  componentName: r,
29
29
  providedId: n
30
30
  }) {
31
- const o = V();
32
- return g(() => n ?? `${r}-${o}`);
31
+ return g(() => n ?? `${r}-${V().replace(/:/g, "")}`);
33
32
  }
34
33
  const q = { class: "inner" }, D = /* @__PURE__ */ w({
35
34
  __name: "MazCardSpotlight",
@@ -42,12 +41,12 @@ const q = { class: "inner" }, D = /* @__PURE__ */ w({
42
41
  innerOpacity: { default: 0.95 }
43
42
  },
44
43
  setup(r) {
45
- const n = r, o = f(), a = f(), s = f(!1);
44
+ const n = r, l = f(), o = f(), s = f(!1);
46
45
  function m({ clientX: d, clientY: u }) {
47
46
  var e, _, t;
48
47
  s.value = !0;
49
- const v = (e = a.value) == null ? void 0 : e.getBoundingClientRect();
50
- v && ((t = (_ = o.value) == null ? void 0 : _.animate) == null || t.call(
48
+ const v = (e = o.value) == null ? void 0 : e.getBoundingClientRect();
49
+ v && ((t = (_ = l.value) == null ? void 0 : _.animate) == null || t.call(
51
50
  _,
52
51
  [
53
52
  {
@@ -60,7 +59,7 @@ const q = { class: "inner" }, D = /* @__PURE__ */ w({
60
59
  }
61
60
  ));
62
61
  }
63
- const l = g(() => `var(--maz-color-${n.color}-alpha)`), i = g(() => `var(--maz-color-${n.color}-alpha-20)`);
62
+ const a = g(() => `var(--maz-color-${n.color}-alpha)`), i = g(() => `var(--maz-color-${n.color}-alpha-20)`);
64
63
  return O(() => {
65
64
  window.addEventListener("mousemove", m);
66
65
  }), B(() => {
@@ -89,9 +88,9 @@ const q = { class: "inner" }, D = /* @__PURE__ */ w({
89
88
  "div",
90
89
  {
91
90
  ref_key: "blobElement",
92
- ref: o,
91
+ ref: l,
93
92
  class: "blob",
94
- style: k({ backgroundColor: l.value })
93
+ style: k({ backgroundColor: a.value })
95
94
  },
96
95
  null,
97
96
  4
@@ -103,7 +102,7 @@ const q = { class: "inner" }, D = /* @__PURE__ */ w({
103
102
  "div",
104
103
  {
105
104
  ref_key: "fakeblobElement",
106
- ref: a,
105
+ ref: o,
107
106
  class: "fakeblob"
108
107
  },
109
108
  null,
@@ -118,10 +117,10 @@ const q = { class: "inner" }, D = /* @__PURE__ */ w({
118
117
  ));
119
118
  }
120
119
  }), C = (r, n) => {
121
- const o = r.__vccOpts || r;
122
- for (const [a, s] of n)
123
- o[a] = s;
124
- return o;
120
+ const l = r.__vccOpts || r;
121
+ for (const [o, s] of n)
122
+ l[o] = s;
123
+ return l;
125
124
  }, H = /* @__PURE__ */ C(D, [["__scopeId", "data-v-30c7054c"]]), W = ["aria-hidden"], G = /* @__PURE__ */ w({
126
125
  inheritAttrs: !1,
127
126
  __name: "MazExpandAnimation",
@@ -134,36 +133,36 @@ const q = { class: "inner" }, D = /* @__PURE__ */ w({
134
133
  }),
135
134
  emits: ["update:modelValue"],
136
135
  setup(r) {
137
- const n = x(r, "modelValue"), o = f(!n.value), a = f();
136
+ const n = x(r, "modelValue"), l = f(!n.value), o = f();
138
137
  function s() {
139
- n.value || (o.value = !0);
138
+ n.value || (l.value = !0);
140
139
  }
141
140
  function m() {
142
- n.value && (o.value = !1);
141
+ n.value && (l.value = !1);
143
142
  }
144
143
  return O(() => {
145
- var l, i;
146
- (l = a.value) == null || l.addEventListener("transitionstart", s, !1), (i = a.value) == null || i.addEventListener("transitionend", m, !1);
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 l, i;
149
- (l = a.value) == null || l.removeEventListener("transitionstart", s, !1), (i = a.value) == null || i.removeEventListener("transitionend", m, !1);
150
- }), (l, i) => (p(), b("div", {
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(), b("div", {
151
150
  ref_key: "expandAnimationRef",
152
- ref: a,
151
+ ref: o,
153
152
  class: $(["m-expand-animation", { "m-expand-animation--expanded": n.value }]),
154
153
  "aria-hidden": !n.value,
155
154
  role: "region",
156
- style: k([{ "--expand-animation-duration": l.duration, "--expand-animation-timing-function": l.timingFunction }])
155
+ style: k([{ "--expand-animation-duration": a.duration, "--expand-animation-timing-function": a.timingFunction }])
157
156
  }, [
158
157
  c(
159
158
  "div",
160
- I({ class: "m-expand-animation__inner" }, l.$attrs, {
159
+ I({ class: "m-expand-animation__inner" }, a.$attrs, {
161
160
  class: {
162
- "--overflow-hidden": o.value
161
+ "--overflow-hidden": l.value
163
162
  }
164
163
  }),
165
164
  [
166
- h(l.$slots, "default", {}, void 0, !0)
165
+ h(a.$slots, "default", {}, void 0, !0)
167
166
  ],
168
167
  16
169
168
  /* FULL_PROPS */
@@ -182,28 +181,28 @@ const q = { class: "inner" }, D = /* @__PURE__ */ w({
182
181
  },
183
182
  emits: ["update:model-value"],
184
183
  setup(r, { emit: n }) {
185
- const o = r, a = n, s = U({
184
+ const l = r, o = n, s = U({
186
185
  componentName: "MazAccordion",
187
- providedId: o.id
188
- }), m = L(), l = g(
186
+ providedId: l.id
187
+ }), m = L(), a = g(
189
188
  () => Object.keys(m).filter((e) => e.startsWith("title-")).length
190
- ), i = f(o.modelValue), d = g({
191
- get: () => o.modelValue || i.value,
189
+ ), i = f(l.modelValue), d = g({
190
+ get: () => l.modelValue || i.value,
192
191
  set: (e) => {
193
- i.value = e, a("update:model-value", e);
192
+ i.value = e, o("update:model-value", e);
194
193
  }
195
194
  });
196
195
  function u(e) {
197
196
  return d.value === e;
198
197
  }
199
198
  function v(e) {
200
- d.value === e ? (i.value = 0, a("update:model-value", 0)) : (i.value = e, a("update:model-value", e));
199
+ d.value === e ? (i.value = 0, o("update:model-value", 0)) : (i.value = e, o("update:model-value", e));
201
200
  }
202
201
  return (e, _) => (p(), b("div", K, [
203
202
  (p(!0), b(
204
203
  j,
205
204
  null,
206
- F(l.value, (t) => (p(), N(
205
+ F(a.value, (t) => (p(), N(
207
206
  H,
208
207
  {
209
208
  key: t,
@@ -18,7 +18,7 @@ import './assets/MazBackdrop.css';const b = "--backdrop-present", F = /* @__PURE
18
18
  function E() {
19
19
  document.documentElement.classList.add(b);
20
20
  }
21
- async function B() {
21
+ function B() {
22
22
  document.querySelector(".m-backdrop.--present") || document.documentElement.classList.remove(b);
23
23
  }
24
24
  const n = L(o.modelValue);
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazBottomSheet-D9EPpEV8.mjs";
1
+ import { M as f } from "./chunks/MazBottomSheet-B1cqFZxd.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazCard-XBaeDZkg.mjs";
1
+ import { M as f } from "./chunks/MazCard-98OuVlyK.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,10 +1,9 @@
1
- import { useId as N, computed as t, openBlock as h, createElementBlock as p, createElementVNode as u, defineComponent as E, ref as _, unref as m, normalizeClass as f, normalizeStyle as c, mergeProps as A, createVNode as $, renderSlot as M, createTextVNode as D, toDisplayString as w, createCommentVNode as R } from "vue";
1
+ import { computed as t, useId as N, openBlock as h, createElementBlock as p, createElementVNode as u, defineComponent as E, ref as _, unref as m, normalizeClass as f, normalizeStyle as c, mergeProps as A, createVNode as $, renderSlot as M, createTextVNode as D, toDisplayString as w, createCommentVNode as R } from "vue";
2
2
  import './assets/MazCheckbox.css';function j({
3
3
  componentName: l,
4
4
  providedId: a
5
5
  }) {
6
- const e = N();
7
- return t(() => a ?? `${l}-${e}`);
6
+ return t(() => a ?? `${l}-${N().replace(/:/g, "")}`);
8
7
  }
9
8
  const q = {
10
9
  xmlns: "http://www.w3.org/2000/svg",
@@ -51,13 +50,13 @@ const H = { render: F }, K = ["for", "aria-checked"], O = ["id", "checked", "dis
51
50
  },
52
51
  emits: ["update:model-value", "change", "blur", "focus"],
53
52
  setup(l, { emit: a }) {
54
- const e = l, n = a, s = j({
53
+ const o = l, n = a, s = j({
55
54
  componentName: "MazCheckbox",
56
- providedId: e.id
55
+ providedId: o.id
57
56
  }), b = t(
58
- () => typeof e.value != "boolean" && Array.isArray(e.modelValue) ? e.modelValue.includes(e.value) : typeof e.modelValue == "boolean" ? e.modelValue : !1
57
+ () => typeof o.value != "boolean" && Array.isArray(o.modelValue) ? o.modelValue.includes(o.value) : typeof o.modelValue == "boolean" ? o.modelValue : !1
59
58
  ), v = t(() => {
60
- switch (e.size) {
59
+ switch (o.size) {
61
60
  case "xl":
62
61
  return "2rem";
63
62
  case "lg":
@@ -72,7 +71,7 @@ const H = { render: F }, K = ["for", "aria-checked"], O = ["id", "checked", "dis
72
71
  return "1.5rem";
73
72
  }
74
73
  }), z = t(() => {
75
- switch (e.size) {
74
+ switch (o.size) {
76
75
  case "xl":
77
76
  return "maz-text-2xl";
78
77
  case "lg":
@@ -86,31 +85,31 @@ const H = { render: F }, K = ["for", "aria-checked"], O = ["id", "checked", "dis
86
85
  default:
87
86
  return "maz-text-lg";
88
87
  }
89
- }), x = t(() => e.color === "theme" ? "var(--maz-color-bg)" : `var(--maz-color-${e.color}-contrast)`), V = t(() => e.color === "theme" ? "var(--maz-color-bg-theme)" : `var(--maz-color-${e.color})`), k = t(() => e.error ? "var(--maz-color-danger)" : e.warning ? "var(--maz-color-warning)" : e.success ? "var(--maz-color-success)" : ["black", "transparent", "theme"].includes(e.color) ? "var(--maz-color-muted)" : `var(--maz-color-${e.color}-alpha)`);
90
- function C(o) {
91
- ["Space"].includes(o.code) && (o.preventDefault(), y(e.value ?? !e.modelValue));
88
+ }), x = t(() => o.color === "theme" ? "var(--maz-color-bg)" : `var(--maz-color-${o.color}-contrast)`), V = t(() => o.color === "theme" ? "var(--maz-color-bg-theme)" : `var(--maz-color-${o.color})`), k = t(() => 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)`);
89
+ function C(e) {
90
+ ["Space"].includes(e.code) && (e.preventDefault(), y(o.value ?? !o.modelValue));
92
91
  }
93
- function B(o) {
94
- 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((r) => r !== o) : [...e.modelValue, o] : [o];
92
+ function B(e) {
93
+ 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((r) => r !== e) : [...o.modelValue, e] : [e];
95
94
  }
96
- function y(o) {
97
- const r = B(o);
95
+ function y(e) {
96
+ const r = B(e);
98
97
  n("update:model-value", r), n("change", r);
99
98
  }
100
99
  const d = _();
101
- function S(o) {
100
+ function S(e) {
102
101
  var r;
103
- (r = d.value) == null || r.dispatchEvent(new Event("blur")), n("blur", o);
102
+ (r = d.value) == null || r.dispatchEvent(new Event("blur")), n("blur", e);
104
103
  }
105
- function I(o) {
104
+ function I(e) {
106
105
  var r;
107
- (r = d.value) == null || r.dispatchEvent(new Event("focus")), n("focus", o);
106
+ (r = d.value) == null || r.dispatchEvent(new Event("focus")), n("focus", e);
108
107
  }
109
- return (o, r) => (h(), p("label", {
108
+ return (e, r) => (h(), p("label", {
110
109
  for: m(s),
111
- class: f(["m-checkbox", [{ "--disabled": o.disabled, "--error": o.error, "--warning": o.warning, "--success": o.success }, e.class]]),
110
+ class: f(["m-checkbox", [{ "--disabled": e.disabled, "--error": e.error, "--warning": e.warning, "--success": e.success }, o.class]]),
112
111
  tabindex: "0",
113
- style: c([o.style, { "--checkbox-selected-color": V.value, "--checkbox-box-shadow-color": k.value }]),
112
+ style: c([e.style, { "--checkbox-selected-color": V.value, "--checkbox-box-shadow-color": k.value }]),
114
113
  role: "checkbox",
115
114
  "aria-checked": b.value,
116
115
  onKeydown: C,
@@ -122,14 +121,14 @@ const H = { render: F }, K = ["for", "aria-checked"], O = ["id", "checked", "dis
122
121
  ref_key: "inputRef",
123
122
  ref: d,
124
123
  checked: b.value
125
- }, o.$attrs, {
124
+ }, e.$attrs, {
126
125
  tabindex: "-1",
127
- disabled: o.disabled,
128
- name: o.name,
126
+ disabled: e.disabled,
127
+ name: e.name,
129
128
  type: "checkbox",
130
129
  onChange: r[0] || (r[0] = (i) => {
131
130
  var g;
132
- return y(o.value ?? ((g = i == null ? void 0 : i.target) == null ? void 0 : g.checked));
131
+ return y(e.value ?? ((g = i == null ? void 0 : i.target) == null ? void 0 : g.checked));
133
132
  })
134
133
  }), null, 16, O),
135
134
  u(
@@ -147,25 +146,25 @@ const H = { render: F }, K = ["for", "aria-checked"], O = ["id", "checked", "dis
147
146
  /* STYLE */
148
147
  ),
149
148
  u("div", P, [
150
- M(o.$slots, "default", { value: o.value }, () => [
149
+ M(e.$slots, "default", { value: e.value }, () => [
151
150
  D(
152
- w(o.label),
151
+ w(e.label),
153
152
  1
154
153
  /* TEXT */
155
154
  )
156
155
  ], !0),
157
- o.hint ? (h(), p(
156
+ e.hint ? (h(), p(
158
157
  "span",
159
158
  {
160
159
  key: 0,
161
160
  class: f(["m-checkbox__hint", {
162
- "--error": o.error,
163
- "--success": o.success,
164
- "--warning": o.warning
161
+ "--error": e.error,
162
+ "--success": e.success,
163
+ "--warning": e.warning
165
164
  }]),
166
165
  style: c({ boxShadow: `0 0 0 0.125rem ${k.value}` })
167
166
  },
168
- w(o.hint),
167
+ w(e.hint),
169
168
  7
170
169
  /* TEXT, CLASS, STYLE */
171
170
  )) : R("v-if", !0)
@@ -173,10 +172,10 @@ const H = { render: F }, K = ["for", "aria-checked"], O = ["id", "checked", "dis
173
172
  ], 46, K));
174
173
  }
175
174
  }), U = (l, a) => {
176
- const e = l.__vccOpts || l;
175
+ const o = l.__vccOpts || l;
177
176
  for (const [n, s] of a)
178
- e[n] = s;
179
- return e;
177
+ o[n] = s;
178
+ return o;
180
179
  }, J = /* @__PURE__ */ U(T, [["__scopeId", "data-v-65d7fb3b"]]);
181
180
  export {
182
181
  J as default
@@ -1,4 +1,4 @@
1
- import { a as f } from "./chunks/MazChecklist-DaozZlNb.mjs";
1
+ import { a as f } from "./chunks/MazChecklist-BurPprmw.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,15 +1,14 @@
1
- import { useId as w, computed as r, defineComponent as g, useSlots as _, ref as S, watch as B, openBlock as p, createElementBlock as m, normalizeClass as M, normalizeStyle as y, createElementVNode as n, renderSlot as l, createTextVNode as i, toDisplayString as u, createCommentVNode as I, unref as k, createBlock as P, createSlots as N, withCtx as x } from "vue";
1
+ import { computed as s, useId as w, defineComponent as x, useSlots as _, ref as S, watch as B, openBlock as p, createElementBlock as m, normalizeClass as M, normalizeStyle as y, createElementVNode as n, renderSlot as l, createTextVNode as i, toDisplayString as u, createCommentVNode as I, unref as k, createBlock as P, createSlots as N, withCtx as g } from "vue";
2
2
  import './assets/MazCircularProgressBar.css';function A({
3
3
  componentName: a,
4
4
  providedId: e
5
5
  }) {
6
- const s = w();
7
- return r(() => e ?? `${a}-${s}`);
6
+ return s(() => e ?? `${a}-${w().replace(/:/g, "")}`);
8
7
  }
9
8
  const V = { class: "maz-sr-only" }, b = {
10
9
  key: 0,
11
10
  class: "m-animated-counter__fix"
12
- }, D = /* @__PURE__ */ g({
11
+ }, D = /* @__PURE__ */ x({
13
12
  __name: "MazAnimatedCounter",
14
13
  props: {
15
14
  count: {},
@@ -18,7 +17,7 @@ const V = { class: "maz-sr-only" }, b = {
18
17
  suffix: { default: void 0 }
19
18
  },
20
19
  setup(a) {
21
- const e = a, s = _(), f = r(() => !!e.prefix || !!s.prefix), d = r(() => !!e.suffix || !!s.suffix), c = S(!0);
20
+ const e = a, r = _(), f = s(() => !!e.prefix || !!r.prefix), d = s(() => !!e.suffix || !!r.suffix), c = S(!0);
22
21
  B(
23
22
  () => e.count,
24
23
  (t, h) => {
@@ -27,7 +26,7 @@ const V = { class: "maz-sr-only" }, b = {
27
26
  }, 100));
28
27
  }
29
28
  );
30
- const v = r(() => `${e.duration}ms`);
29
+ const v = s(() => `${e.duration}ms`);
31
30
  return (t, h) => (p(), m(
32
31
  "span",
33
32
  {
@@ -85,16 +84,16 @@ const V = { class: "maz-sr-only" }, b = {
85
84
  ));
86
85
  }
87
86
  }), $ = (a, e) => {
88
- const s = a.__vccOpts || a;
87
+ const r = a.__vccOpts || a;
89
88
  for (const [f, d] of e)
90
- s[f] = d;
91
- return s;
89
+ r[f] = d;
90
+ return r;
92
91
  }, E = /* @__PURE__ */ $(D, [["__scopeId", "data-v-fc78b268"]]), L = { class: "outer" }, T = { class: "inner" }, W = { key: 0 }, j = {
93
92
  xmlns: "http://www.w3.org/2000/svg",
94
93
  height: "1em",
95
94
  width: "1em",
96
95
  viewBox: "0 0 100 100"
97
- }, q = ["id"], G = ["stop-color"], O = ["stop-color"], U = ["stroke-width", "stroke", "stroke-linecap"], F = /* @__PURE__ */ g({
96
+ }, q = ["id"], G = ["stop-color"], O = ["stop-color"], U = ["stroke-width", "stroke", "stroke-linecap"], F = /* @__PURE__ */ x({
98
97
  __name: "MazCircularProgressBar",
99
98
  props: {
100
99
  percentage: { default: 0 },
@@ -109,15 +108,15 @@ const V = { class: "maz-sr-only" }, b = {
109
108
  stroke: { default: void 0 }
110
109
  },
111
110
  setup(a) {
112
- const e = a, s = _(), f = r(() => !!e.prefix || !!s.prefix), d = r(() => !!e.suffix || !!s.suffix), c = A({
111
+ const e = a, r = _(), f = s(() => !!e.prefix || !!r.prefix), d = s(() => !!e.suffix || !!r.suffix), c = A({
113
112
  componentName: "MazCircularProgressBar"
114
- }), v = r(() => e.percentage > 100 ? 100 : e.percentage <= 0 ? 0.5 : e.percentage), t = r(
113
+ }), v = s(() => e.percentage > 100 ? 100 : e.percentage <= 0 ? 0.5 : e.percentage), t = s(
115
114
  () => e.autoColor ? h(v.value) : e.color
116
115
  );
117
116
  function h(o) {
118
117
  return o < 50 || o > 100 ? "danger" : o < 100 ? "warning" : "success";
119
118
  }
120
- const z = r(() => `${e.duration}ms`), C = r(() => Math.round(290 - 290 * (v.value / 100)));
119
+ const z = s(() => `${e.duration}ms`), C = s(() => Math.round(290 - 290 * (v.value / 100)));
121
120
  return (o, H) => (p(), m(
122
121
  "div",
123
122
  {
@@ -135,7 +134,7 @@ const V = { class: "maz-sr-only" }, b = {
135
134
  [
136
135
  n("div", L, [
137
136
  n("div", T, [
138
- k(s).default ? (p(), m("span", W, [
137
+ k(r).default ? (p(), m("span", W, [
139
138
  l(o.$slots, "default", {}, void 0, !0)
140
139
  ])) : (p(), P(E, {
141
140
  key: 1,
@@ -147,7 +146,7 @@ const V = { class: "maz-sr-only" }, b = {
147
146
  }, [
148
147
  f.value ? {
149
148
  name: "prefix",
150
- fn: x(() => [
149
+ fn: g(() => [
151
150
  l(o.$slots, "prefix", {}, () => [
152
151
  i(
153
152
  u(o.prefix),
@@ -160,7 +159,7 @@ const V = { class: "maz-sr-only" }, b = {
160
159
  } : void 0,
161
160
  d.value ? {
162
161
  name: "suffix",
163
- fn: x(() => [
162
+ fn: g(() => [
164
163
  l(o.$slots, "suffix", {}, () => [
165
164
  i(
166
165
  u(o.suffix),
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazDialog-XiX9LEiz.mjs";
1
+ import { M as f } from "./chunks/MazDialog-C3h6Ydey.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { a as o, u as s } from "./chunks/MazDialogPromise-B9_e3Ma9.mjs";
1
+ import { a as o, u as s } from "./chunks/MazDialogPromise-BZm1F0X2.mjs";
2
2
  export {
3
3
  o as default,
4
4
  s as useMazDialogPromise
@@ -18,7 +18,7 @@ import './assets/MazDrawer.css';const A = "--backdrop-present", U = /* @__PURE__
18
18
  function n() {
19
19
  document.documentElement.classList.add(A);
20
20
  }
21
- async function M() {
21
+ function M() {
22
22
  document.querySelector(".m-backdrop.--present") || document.documentElement.classList.remove(A);
23
23
  }
24
24
  const s = S(e.modelValue);
@@ -1,4 +1,4 @@
1
- import { a as f } from "./chunks/MazDropdown-CKuIGitT.mjs";
1
+ import { a as f } from "./chunks/MazDropdown-0r445NfW.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,23 +1,23 @@
1
- import { defineComponent as l, defineAsyncComponent as a, onMounted as s, onUnmounted as m, openBlock as o, createBlock as c, Teleport as d, createElementVNode as u, mergeProps as p, createVNode as f, unref as i, createElementBlock as z, renderSlot as k, createCommentVNode as y } from "vue";
2
- import './assets/MazFullscreenLoader.css';const b = { key: 0 }, S = /* @__PURE__ */ l({
1
+ import { defineComponent as n, defineAsyncComponent as a, onMounted as s, onUnmounted as m, openBlock as o, createBlock as c, Teleport as d, createElementVNode as u, mergeProps as p, createVNode as f, unref as i, createElementBlock as z, renderSlot as k, createCommentVNode as b } from "vue";
2
+ import './assets/MazFullscreenLoader.css';const v = { key: 0 }, S = /* @__PURE__ */ n({
3
3
  __name: "MazFullscreenLoader",
4
4
  props: {
5
5
  color: { default: "primary" },
6
6
  size: { default: "3em" },
7
7
  teleportSelector: { default: "body" }
8
8
  },
9
- setup(v) {
9
+ setup(y) {
10
10
  const t = a(() => import("./chunks/MazSpinner-Du5o8JC_.mjs"));
11
11
  function r() {
12
12
  document.documentElement.classList.add("--maz-fullscreen-loader-present");
13
13
  }
14
- async function n() {
14
+ function l() {
15
15
  document.documentElement.classList.remove("--maz-fullscreen-loader-present");
16
16
  }
17
17
  return s(() => {
18
18
  r();
19
19
  }), m(() => {
20
- n();
20
+ l();
21
21
  }), (e, C) => (o(), c(d, { to: e.teleportSelector }, [
22
22
  u(
23
23
  "div",
@@ -27,9 +27,9 @@ import './assets/MazFullscreenLoader.css';const b = { key: 0 }, S = /* @__PURE__
27
27
  color: e.color,
28
28
  size: e.size
29
29
  }, null, 8, ["color", "size"]),
30
- e.$slots.default ? (o(), z("span", b, [
30
+ e.$slots.default ? (o(), z("span", v, [
31
31
  k(e.$slots, "default")
32
- ])) : y("v-if", !0)
32
+ ])) : b("v-if", !0)
33
33
  ],
34
34
  16
35
35
  /* FULL_PROPS */
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazGallery-DUOQamrE.mjs";
1
+ import { M as f } from "./chunks/MazGallery-xPp1apvO.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazInput-DIN1VAoX.mjs";
1
+ import { M as f } from "./chunks/MazInput-BfWJoPre.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { a as f } from "./chunks/MazInputNumber-7Ku2ZcG-.mjs";
1
+ import { a as f } from "./chunks/MazInputNumber-R0RzDeyD.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { a as f } from "./chunks/MazInputPrice-C5yErBFP.mjs";
1
+ import { a as f } from "./chunks/MazInputPrice-CKSdqO4X.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazInputTags-DvbQ2mK8.mjs";
1
+ import { M as f } from "./chunks/MazInputTags-D6jQ2-Ia.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -5,7 +5,7 @@ type __VLS_Props = {
5
5
  style?: HTMLAttributes['style'];
6
6
  /** Class attribut of the component root element */
7
7
  class?: HTMLAttributes['class'];
8
- modelValue?: CountryCode;
8
+ modelValue?: CountryCode | undefined | null;
9
9
  id: string;
10
10
  color: Color;
11
11
  size: Size;
@@ -57,7 +57,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
57
57
  style: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
58
58
  width: string;
59
59
  class: HTMLAttributes["class"];
60
- modelValue: CountryCode;
60
+ modelValue: CountryCode | null;
61
61
  listPosition: Position;
62
62
  excludeSelectors: string[];
63
63
  preferredCountries: CountryCode[];
@@ -15,14 +15,14 @@ type __VLS_Props = {
15
15
  noFormattingAsYouType?: boolean;
16
16
  };
17
17
  type __VLS_PublicProps = {
18
- modelValue?: string;
18
+ modelValue?: string | undefined | null;
19
19
  } & __VLS_Props;
20
20
  declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
21
  "update:model-value": (phoneNumber?: string | undefined) => any;
22
- "update:modelValue": (value: string) => any;
22
+ "update:modelValue": (value: string | null | undefined) => any;
23
23
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
24
24
  "onUpdate:model-value"?: ((phoneNumber?: string | undefined) => any) | undefined;
25
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
25
+ "onUpdate:modelValue"?: ((value: string | null | undefined) => any) | undefined;
26
26
  }>, {
27
27
  label: string;
28
28
  placeholder: string;
@@ -3,7 +3,7 @@ import type { defaultLocales } from './default-locales';
3
3
  export interface Results {
4
4
  isValid: boolean;
5
5
  isPossible?: boolean;
6
- countryCode?: CountryCode;
6
+ countryCode?: CountryCode | undefined | null;
7
7
  countryCallingCode?: CountryCallingCode;
8
8
  nationalNumber?: NationalNumber;
9
9
  type?: NumberType;
@@ -2,12 +2,12 @@ import type { Results } from './types';
2
2
  import { type CountryCode, type Examples, getCountries, getCountryCallingCode } from 'libphonenumber-js';
3
3
  declare function isCountryAvailable(locale: string): boolean;
4
4
  declare function getPhoneNumberResults({ phoneNumber, countryCode, }: {
5
- phoneNumber?: string;
6
- countryCode?: CountryCode;
5
+ phoneNumber?: string | undefined | null;
6
+ countryCode?: CountryCode | undefined | null;
7
7
  }): Results;
8
- declare function getAsYouTypeFormat(countryCode?: CountryCode, phoneNumber?: string): string;
9
8
  declare function getPhoneNumberExamplesFile(): Promise<Examples>;
10
- declare function getPhoneNumberExample(examples: Examples, countryCode?: CountryCode): string | undefined;
9
+ declare function getPhoneNumberExample(examples: Examples, countryCode?: CountryCode | undefined | null): string | undefined;
10
+ declare function getAsYouTypeFormat(countryCode?: CountryCode | undefined | null, phoneNumber?: string | undefined | null): string | undefined;
11
11
  export declare function useLibphonenumber(): {
12
12
  getAsYouTypeFormat: typeof getAsYouTypeFormat;
13
13
  getPhoneNumberResults: typeof getPhoneNumberResults;
@@ -6,7 +6,7 @@ declare function getBrowserLocale(): {
6
6
  } | undefined;
7
7
  declare function getCountriesList(locale?: string, customCountriesNameListByIsoCode?: Record<CountryCode, string>): Country[] | undefined;
8
8
  declare function fetchCountryCode(): Promise<string | undefined>;
9
- declare function sanitizePhoneNumber(input?: string): string;
9
+ declare function sanitizePhoneNumber(input?: string | undefined | null): string;
10
10
  export declare function useMazPhoneNumberInput(): {
11
11
  sanitizePhoneNumber: typeof sanitizePhoneNumber;
12
12
  fetchCountryCode: typeof fetchCountryCode;