maz-ui 3.35.0 → 3.35.2

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 (33) hide show
  1. package/components/MazAvatar.mjs +1 -1
  2. package/components/MazBadge.mjs +4 -4
  3. package/components/MazPhoneNumberInput.mjs +1 -1
  4. package/components/MazSelect.mjs +1 -1
  5. package/components/MazTable.mjs +1 -1
  6. package/components/MazTabsBar.d.ts +5 -2
  7. package/components/MazTabsBar.mjs +1 -1
  8. package/components/assets/MazAvatar.css +1 -1
  9. package/components/assets/MazBadge.css +1 -1
  10. package/components/assets/MazPhoneNumberInput.css +1 -1
  11. package/components/assets/MazSelect.css +1 -1
  12. package/components/assets/MazTable.css +1 -1
  13. package/components/assets/MazTabsBar.css +1 -1
  14. package/components/chunks/{MazAvatar-4EVPBdaz.mjs → MazAvatar-Dv5LXKDM.mjs} +3 -3
  15. package/components/chunks/{MazBadge-DyDXRPZk.mjs → MazBadge-BD-ljwz4.mjs} +4 -4
  16. package/components/chunks/{MazBtn-CR9C_X7R.mjs → MazBtn-BL-LWc8X.mjs} +2 -2
  17. package/components/chunks/{MazBtn-BrGm_GFq.mjs → MazBtn-GCCDnqJA.mjs} +2 -2
  18. package/components/chunks/{MazCheckbox-BBRjlgY4.mjs → MazCheckbox-BAC8XgFg.mjs} +1 -1
  19. package/components/chunks/{MazCheckbox-BzrXpIyp.mjs → MazCheckbox-EG8AZPtG.mjs} +1 -1
  20. package/components/chunks/{MazIcon-COn5JlL6.mjs → MazIcon-pcOKJiIX.mjs} +1 -1
  21. package/components/chunks/{MazLazyImg-Dgf1n6WW.mjs → MazLazyImg-BCfYlc7d.mjs} +2 -2
  22. package/components/chunks/{MazPhoneNumberInput-7Tk_G1ML.mjs → MazPhoneNumberInput-dbbjH9lI.mjs} +58 -58
  23. package/components/chunks/{MazSelect-CVmgnTR-.mjs → MazSelect-8_n2ovqP.mjs} +26 -26
  24. package/components/chunks/{MazSpinner-MuTCx2Oq.mjs → MazSpinner-BVnAAf_I.mjs} +1 -1
  25. package/components/chunks/{MazSpinner-D-L0c6RT.mjs → MazSpinner-CjKNs7lm.mjs} +1 -1
  26. package/components/chunks/{MazSpinner-CCnDkF4m.mjs → MazSpinner-D3U6NnSV.mjs} +1 -1
  27. package/components/chunks/{MazSpinner-C5f5Mg-w.mjs → MazSpinner-DtdabLA2.mjs} +1 -1
  28. package/components/chunks/{MazTable-BNHsIaXl.mjs → MazTable-DECLgD3Z.mjs} +7 -7
  29. package/components/chunks/MazTabsBar-DOoSBfpp.mjs +190 -0
  30. package/nuxt/index.json +1 -1
  31. package/package.json +1 -1
  32. package/types/components/MazTabsBar.vue.d.ts +5 -2
  33. package/components/chunks/MazTabsBar-CMH7Jt-K.mjs +0 -171
@@ -1,6 +1,6 @@
1
1
  import "../assets/MazCheckbox.css";
2
2
  import { defineComponent as C, useCssVars as g, getCurrentInstance as I, computed as l, openBlock as S, createElementBlock as _, unref as r, normalizeClass as i, normalizeStyle as w, createElementVNode as m, mergeProps as A, createVNode as B, renderSlot as N } from "vue";
3
- import { u as M, _ as E } from "./MazSelect-CVmgnTR-.mjs";
3
+ import { u as M, _ as E } from "./MazSelect-8_n2ovqP.mjs";
4
4
  import q from "./check-7UA4j2f2.mjs";
5
5
  const D = ["for", "aria-checked"], H = ["id", "checked", "disabled", "name"], K = /* @__PURE__ */ C({
6
6
  inheritAttrs: !1,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as b, ref as f, computed as g, onMounted as P, watchEffect as _, openBlock as p, createElementBlock as h, Fragment as A, createCommentVNode as s, mergeProps as C, nextTick as $ } from "vue";
2
- import { i as q } from "./MazTable-BNHsIaXl.mjs";
2
+ import { i as q } from "./MazTable-DECLgD3Z.mjs";
3
3
  const H = ["innerHTML"], G = /* @__PURE__ */ b({
4
4
  __name: "MazIcon",
5
5
  props: {
@@ -3,7 +3,7 @@ var f = (a, e, s) => e in a ? v(a, e, { enumerable: !0, configurable: !0, writab
3
3
  var n = (a, e, s) => (f(a, typeof e != "symbol" ? e + "" : e, s), s);
4
4
  import "../assets/MazLazyImg.css";
5
5
  import { defineComponent as A, defineAsyncComponent as b, computed as m, withDirectives as I, openBlock as d, createElementBlock as h, normalizeClass as y, normalizeStyle as C, Fragment as E, renderList as O, createElementVNode as L, mergeProps as P, createVNode as S, unref as u, createCommentVNode as z, renderSlot as B } from "vue";
6
- import { _ as k } from "./MazAvatar-4EVPBdaz.mjs";
6
+ import { _ as k } from "./MazAvatar-Dv5LXKDM.mjs";
7
7
  const H = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", w = {
8
8
  baseClass: "m-lazy-img",
9
9
  loadedClass: "m-lazy-loaded",
@@ -206,7 +206,7 @@ const M = {
206
206
  },
207
207
  emits: ["intersecting", "loading", "loaded", "error"],
208
208
  setup(a) {
209
- const e = b(() => import("./MazSpinner-D-L0c6RT.mjs")), s = a, t = m(() => s.image || s.src), r = m(() => {
209
+ const e = b(() => import("./MazSpinner-BVnAAf_I.mjs")), s = a, t = m(() => s.image || s.src), r = m(() => {
210
210
  var o;
211
211
  return typeof t.value == "string" ? [{ srcset: t.value }] : (o = t.value) == null ? void 0 : o.sources;
212
212
  });
@@ -1,5 +1,5 @@
1
1
  import "../assets/MazPhoneNumberInput.css";
2
- import { computed as f, defineComponent as ke, defineAsyncComponent as O, ref as h, getCurrentInstance as Se, onMounted as Ee, useSlots as Me, openBlock as v, createElementBlock as I, normalizeClass as E, normalizeStyle as ae, createElementVNode as q, createCommentVNode as y, renderSlot as Y, createBlock as D, unref as V, resolveDynamicComponent as Be, withDirectives as De, mergeProps as $e, toHandlers as Ue, vModelDynamic as Re, createTextVNode as Ce, toDisplayString as X, withModifiers as pe, withCtx as fe, createVNode as Z, useCssVars as He, onBeforeMount as Oe, Transition as qe, Fragment as Le, renderList as We, nextTick as x, reactive as Ye, watch as ce } from "vue";
2
+ import { computed as f, defineComponent as ke, defineAsyncComponent as O, ref as h, getCurrentInstance as Se, onMounted as Ee, useSlots as Me, openBlock as v, createElementBlock as k, normalizeClass as E, normalizeStyle as ae, createElementVNode as q, createCommentVNode as y, renderSlot as Y, createBlock as D, unref as V, resolveDynamicComponent as Be, withDirectives as De, mergeProps as $e, toHandlers as Ue, vModelDynamic as Re, createTextVNode as Ce, toDisplayString as X, withModifiers as pe, withCtx as fe, createVNode as Z, useCssVars as He, onBeforeMount as Oe, Transition as qe, Fragment as Le, renderList as We, nextTick as x, reactive as Ye, watch as ce } from "vue";
3
3
  import { isSupportedCountry as je, getCountryCallingCode as Ve, getExampleNumber as Qe, getCountries as Ge, parsePhoneNumberFromString as Je, AsYouType as Xe } from "libphonenumber-js";
4
4
  function Ne(u) {
5
5
  return !!u;
@@ -195,7 +195,7 @@ const fo = {
195
195
  },
196
196
  emits: ["update:model-value", "focus", "blur", "click", "change"],
197
197
  setup(u, { emit: s }) {
198
- const a = O(() => import("./MazBtn-BrGm_GFq.mjs")), L = O(() => import("./MazIcon-Cxrv3_OK.mjs")), $ = O(() => import("./eye-slash-tjfxO0LK.mjs")), W = O(() => import("./eye-DqO_Jx56.mjs")), U = O(() => import("./check-7UA4j2f2.mjs")), t = u, P = s, A = h(!1), m = h(!1), c = h(), re = Se(), ue = Pe({
198
+ const a = O(() => import("./MazBtn-GCCDnqJA.mjs")), L = O(() => import("./MazIcon-Cxrv3_OK.mjs")), $ = O(() => import("./eye-slash-tjfxO0LK.mjs")), W = O(() => import("./eye-DqO_Jx56.mjs")), U = O(() => import("./check-7UA4j2f2.mjs")), t = u, P = s, A = h(!1), m = h(!1), c = h(), re = Se(), ue = Pe({
199
199
  componentName: "MazInput",
200
200
  instance: re,
201
201
  providedId: t.id
@@ -204,7 +204,7 @@ const fo = {
204
204
  var l;
205
205
  t.autoFocus && ((l = c.value) == null || l.focus());
206
206
  });
207
- const j = f(() => t.type === "password"), K = f(() => A.value ? "text" : t.type), k = f(() => {
207
+ const j = f(() => t.type === "password"), K = f(() => A.value ? "text" : t.type), S = f(() => {
208
208
  if (!t.noBorder) {
209
209
  if (t.error)
210
210
  return "maz-border-danger";
@@ -249,7 +249,7 @@ const fo = {
249
249
  P("update:model-value", l);
250
250
  }
251
251
  }), ee = f(() => (!!t.label || !!t.hint) && (m.value || !!H.value || !!t.placeholder || ["date", "month", "week"].includes(t.type))), oe = f(() => !!t.label || !!t.hint);
252
- function S() {
252
+ function w() {
253
253
  return !!N["right-icon"] || j.value || !!N["valid-button"] || t.validButton || !!t.rightIcon;
254
254
  }
255
255
  function Q() {
@@ -264,7 +264,7 @@ const fo = {
264
264
  function B(l) {
265
265
  return P("change", l);
266
266
  }
267
- return (l, g) => (v(), I(
267
+ return (l, g) => (v(), k(
268
268
  "div",
269
269
  {
270
270
  class: E(["m-input", [
@@ -289,12 +289,12 @@ const fo = {
289
289
  {
290
290
  class: E(["m-input-wrapper", [
291
291
  l.inputClasses,
292
- k.value,
292
+ S.value,
293
293
  l.roundedSize ? `--rounded-${l.roundedSize}` : { "maz-rounded": !l.noRadius }
294
294
  ]])
295
295
  },
296
296
  [
297
- Q() ? (v(), I("div", fo, [
297
+ Q() ? (v(), k("div", fo, [
298
298
  y(`
299
299
  @slot left-icon - The icon to display on the left of the input
300
300
  `),
@@ -334,7 +334,7 @@ const fo = {
334
334
  }), null, 16, yo), [
335
335
  [Re, M.value]
336
336
  ]),
337
- l.label || l.hint ? (v(), I(
337
+ l.label || l.hint ? (v(), k(
338
338
  "span",
339
339
  {
340
340
  key: 0,
@@ -353,13 +353,13 @@ const fo = {
353
353
  1
354
354
  /* TEXT */
355
355
  ),
356
- l.required ? (v(), I("sup", vo, "*")) : y("v-if", !0)
356
+ l.required ? (v(), k("sup", vo, "*")) : y("v-if", !0)
357
357
  ],
358
358
  2
359
359
  /* CLASS */
360
360
  )) : y("v-if", !0)
361
361
  ]),
362
- S() ? (v(), I("div", ho, [
362
+ w() ? (v(), k("div", ho, [
363
363
  y(`
364
364
  @slot right-icon - The icon to display on the right of the input
365
365
  `),
@@ -466,11 +466,11 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
466
466
  emits: ["close", "open", "blur", "focus", "change", "update:model-value", "selected-option"],
467
467
  setup(u, { emit: s }) {
468
468
  He((e) => ({
469
- "48350faf": j.value,
470
- "234b58a4": re.value,
471
- 27843996: ue.value
469
+ "021d98d9": j.value,
470
+ "3f038458": re.value,
471
+ c194e680: ue.value
472
472
  }));
473
- const a = O(() => import("./MazCheckbox-BBRjlgY4.mjs")), L = O(() => import("./magnifying-glass-DZGg7953.mjs")), $ = O(() => import("./chevron-down-CzMH-gFW.mjs")), W = O(() => import("./no-symbol-QAqP9IlR.mjs")), U = Se(), t = u, P = s, A = h(!1), m = h(), c = f(
473
+ const a = O(() => import("./MazCheckbox-BAC8XgFg.mjs")), L = O(() => import("./magnifying-glass-DZGg7953.mjs")), $ = O(() => import("./chevron-down-CzMH-gFW.mjs")), W = O(() => import("./no-symbol-QAqP9IlR.mjs")), U = Se(), t = u, P = s, A = h(!1), m = h(), c = f(
474
474
  () => ["black", "transparent", "white"].includes(t.color)
475
475
  ), re = f(
476
476
  () => c.value ? "var(--maz-color-black)" : `var(--maz-color-${t.color}-800)`
@@ -478,7 +478,7 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
478
478
  () => c.value ? "var(--maz-color-muted)" : `var(--maz-color-${t.color}-100)`
479
479
  ), j = f(
480
480
  () => c.value ? "var(--maz-color-muted)" : `var(--maz-color-${t.color}-200)`
481
- ), K = f(() => A.value || t.open), k = Pe({
481
+ ), K = f(() => A.value || t.open), S = Pe({
482
482
  componentName: "MazSelect",
483
483
  instance: U,
484
484
  providedId: t.id
@@ -514,19 +514,19 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
514
514
  }), T = f(
515
515
  () => {
516
516
  var e;
517
- return ((e = H.value) == null ? void 0 : e.filter((n) => t.multiple ? Array.isArray(t.modelValue) ? t.modelValue.includes(n[t.optionValueKey]) && !S(n[t.optionValueKey]) : !1 : t.modelValue === n[t.optionValueKey] && !S(n[t.optionValueKey]))) ?? [];
517
+ return ((e = H.value) == null ? void 0 : e.filter((n) => t.multiple ? Array.isArray(t.modelValue) ? t.modelValue.includes(n[t.optionValueKey]) && !w(n[t.optionValueKey]) : !1 : t.modelValue === n[t.optionValueKey] && !w(n[t.optionValueKey]))) ?? [];
518
518
  }
519
519
  );
520
520
  Oe(() => {
521
521
  var e;
522
522
  (e = t.options) != null && e.length || console.warn("[maz-ui](MazSelect) you must provide options"), o();
523
523
  });
524
- const _ = h(), M = h(), ee = h(), oe = h(), S = (e) => e == null;
524
+ const _ = h(), M = h(), ee = h(), oe = h(), w = (e) => e == null;
525
525
  function Q(e) {
526
526
  var r;
527
527
  return (((r = T.value) == null ? void 0 : r.some(
528
528
  (i) => i[t.optionValueKey] === e[t.optionValueKey]
529
- )) ?? !1) && !S(e[t.optionValueKey]);
529
+ )) ?? !1) && !w(e[t.optionValueKey]);
530
530
  }
531
531
  const G = f(() => {
532
532
  var e, n;
@@ -547,14 +547,14 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
547
547
  const z = (e, n) => n && e && g(e.toString().toLocaleLowerCase().trim()).includes(
548
548
  g(n.toLocaleLowerCase().trim())
549
549
  );
550
- function w(e) {
550
+ function I(e) {
551
551
  var n;
552
552
  return e ? (n = H.value) == null ? void 0 : n.filter((r) => {
553
553
  const i = r[t.optionLabelKey], p = r[t.optionValueKey], C = r[t.optionInputValueKey];
554
554
  return z(i, e) || z(p, e) || z(C, e);
555
555
  }) : H.value;
556
556
  }
557
- const F = f(() => w(B.value)), te = async (e) => {
557
+ const F = f(() => I(B.value)), te = async (e) => {
558
558
  var n;
559
559
  if (e && ("relatedTarget" in e && ((n = _.value) != null && n.contains(e.relatedTarget)) || e.type === "keydown"))
560
560
  return e.preventDefault();
@@ -576,7 +576,7 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
576
576
  function le(e) {
577
577
  var r;
578
578
  e === "Backspace" && l.value.length > 0 ? l.value = l.value.slice(0, -1) : l.value += e;
579
- const n = w(l.value);
579
+ const n = I(l.value);
580
580
  n != null && n.length && (m.value = (r = F.value) == null ? void 0 : r.findIndex(
581
581
  (i) => i[t.optionValueKey] === n[0][t.optionValueKey]
582
582
  ), typeof m.value == "number" && m.value >= 0 && de(m.value)), go(() => {
@@ -601,7 +601,7 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
601
601
  if (e.preventDefault(), !K.value)
602
602
  return J(e);
603
603
  const r = n ? ((i = F.value) == null ? void 0 : i[n]) ?? ((p = F.value) == null ? void 0 : p[0]) : (C = F.value) == null ? void 0 : C[0];
604
- S(r) || d(r);
604
+ w(r) || d(r);
605
605
  };
606
606
  async function de(e) {
607
607
  var r, i;
@@ -634,7 +634,7 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
634
634
  const p = i.map((ne) => ne[t.optionValueKey]);
635
635
  P("update:model-value", t.multiple ? p : p[0]), P("selected-option", e), o(e), se();
636
636
  };
637
- return (e, n) => (v(), I(
637
+ return (e, n) => (v(), k(
638
638
  "div",
639
639
  {
640
640
  ref_key: "mazSelectElement",
@@ -645,7 +645,7 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
645
645
  },
646
646
  [
647
647
  Z(Ie, $e({
648
- id: V(k),
648
+ id: V(S),
649
649
  ref_key: "mazInputComponent",
650
650
  ref: M,
651
651
  class: "m-select-input"
@@ -678,7 +678,7 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
678
678
  }, 16, ["id", "required", "border-active", "color", "model-value", "size", "disabled"]),
679
679
  Z(qe, { name: b.value }, {
680
680
  default: fe(() => [
681
- K.value ? (v(), I(
681
+ K.value ? (v(), k(
682
682
  "div",
683
683
  {
684
684
  key: 0,
@@ -722,11 +722,11 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
722
722
  q("span", Co, [
723
723
  Z(V(W), { class: "maz-h-6 maz-w-6 maz-text-normal" })
724
724
  ])
725
- ], !0) : (v(), I("div", Vo, [
726
- (v(!0), I(
725
+ ], !0) : (v(), k("div", Vo, [
726
+ (v(!0), k(
727
727
  Le,
728
728
  null,
729
- We(F.value, (r, i) => (v(), I(
729
+ We(F.value, (r, i) => (v(), k(
730
730
  Le,
731
731
  { key: i },
732
732
  [
@@ -734,7 +734,7 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
734
734
  @slot Custom optgroup label
735
735
  @binding {String} label - the label of the optgroup
736
736
  `),
737
- r.label && !r[e.optionValueKey] ? Y(e.$slots, "optgroup", {
737
+ r.label && w(r[e.optionValueKey]) ? Y(e.$slots, "optgroup", {
738
738
  key: 0,
739
739
  label: r.label
740
740
  }, () => [
@@ -745,7 +745,7 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
745
745
  1
746
746
  /* TEXT */
747
747
  )
748
- ], !0) : (v(), I("button", {
748
+ ], !0) : (v(), k("button", {
749
749
  key: 1,
750
750
  tabindex: "-1",
751
751
  type: "button",
@@ -753,7 +753,7 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
753
753
  {
754
754
  "--is-keyboard-selected": m.value === i,
755
755
  "--is-selected": Q(r),
756
- "--is-none-value": S(r[e.optionValueKey])
756
+ "--is-none-value": w(r[e.optionValueKey])
757
757
  }
758
758
  ]]),
759
759
  style: ae(e.itemHeight ? { minHeight: `${e.itemHeight}px` } : void 0),
@@ -805,7 +805,7 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
805
805
  /* CLASS, STYLE, NEED_HYDRATION */
806
806
  ));
807
807
  }
808
- }), So = /* @__PURE__ */ Ae(ko, [["__scopeId", "data-v-45e382c1"]]), $o = ["id"], Po = {
808
+ }), So = /* @__PURE__ */ Ae(ko, [["__scopeId", "data-v-48c93d79"]]), $o = ["id"], Po = {
809
809
  key: 0,
810
810
  class: "maz-text-lg"
811
811
  }, Ao = /* @__PURE__ */ ke({
@@ -860,7 +860,7 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
860
860
  componentName: "MazPhoneNumberInput",
861
861
  instance: re,
862
862
  providedId: c.id
863
- }), j = h(), K = h(), k = Ye({
863
+ }), j = h(), K = h(), S = Ye({
864
864
  start: 0,
865
865
  end: 0,
866
866
  cursorAtEnd: !0
@@ -890,18 +890,18 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
890
890
  ...d,
891
891
  dialCode: `+${d.dialCode}`
892
892
  } : void 0).filter(Ne);
893
- }), S = f(() => ({
893
+ }), w = f(() => ({
894
894
  ...Ze,
895
895
  ...c.translations
896
896
  })), Q = f(() => {
897
897
  if (c.placeholder)
898
898
  return c.placeholder;
899
- const o = S.value.phoneInput.placeholder;
899
+ const o = w.value.phoneInput.placeholder;
900
900
  if (c.noExample || !N.value)
901
901
  return o;
902
902
  {
903
903
  const d = t(b.value);
904
- return w.value.isValid || !d ? o : `${S.value.phoneInput.example} ${d}`;
904
+ return I.value.isValid || !d ? o : `${w.value.phoneInput.example} ${d}`;
905
905
  }
906
906
  }), G = h(
907
907
  c.countryCode || c.defaultCountryCode
@@ -929,7 +929,7 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
929
929
  l.value = o;
930
930
  }
931
931
  );
932
- const g = h(), z = f(() => c.noFormattingAsYouType ? l.value ?? "" : g.value ?? l.value ?? ""), w = h(
932
+ const g = h(), z = f(() => c.noFormattingAsYouType ? l.value ?? "" : g.value ?? l.value ?? ""), I = h(
933
933
  $({
934
934
  phoneNumber: B.value,
935
935
  countryCode: b.value
@@ -949,7 +949,7 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
949
949
  Ee(async () => {
950
950
  await ye(B.value), await x(), c.fetchCountry && !b.value && await F(), !c.defaultCountryCode && !c.noUseBrowserLocale && !b.value && J(), await te();
951
951
  }), ce(
952
- () => w.value,
952
+ () => I.value,
953
953
  (o) => {
954
954
  m("update", o), m("data", o);
955
955
  },
@@ -964,8 +964,8 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
964
964
  async (o, d) => {
965
965
  if (!c.noFormattingAsYouType && o && o !== d) {
966
966
  const e = ie();
967
- if (e && !w.value.isValid && typeof k.start == "number" && !k.cursorAtEnd) {
968
- const n = k.start, r = k.end;
967
+ if (e && !I.value.isValid && typeof S.start == "number" && !S.cursorAtEnd) {
968
+ const n = S.start, r = S.end;
969
969
  setTimeout(() => {
970
970
  e.setSelectionRange(n, r ?? n);
971
971
  }, 0);
@@ -978,14 +978,14 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
978
978
  o && le(o);
979
979
  }
980
980
  function se(o, d) {
981
- w.value = $({
981
+ I.value = $({
982
982
  phoneNumber: o,
983
983
  countryCode: d
984
984
  });
985
985
  }
986
986
  async function me(o) {
987
987
  const d = ie();
988
- k.start = d == null ? void 0 : d.selectionStart, k.end = d == null ? void 0 : d.selectionEnd, k.cursorAtEnd = k.start ? k.start >= o.length : !0;
988
+ S.start = d == null ? void 0 : d.selectionStart, S.end = d == null ? void 0 : d.selectionEnd, S.cursorAtEnd = S.start ? S.start >= o.length : !0;
989
989
  const e = P(o);
990
990
  l.value = e;
991
991
  const n = $({
@@ -1005,10 +1005,10 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
1005
1005
  }
1006
1006
  }
1007
1007
  async function ye(o) {
1008
- se(o, b.value), await x(), c.noFormattingAsYouType ? l.value = z.value : o ? g.value = k.cursorAtEnd || w.value.isValid ? l.value = W(
1009
- w.value.countryCode ?? b.value,
1010
- w.value.formatNational ?? l.value
1011
- ) : l.value : g.value = void 0, await x(), ve(w.value);
1008
+ se(o, b.value), await x(), c.noFormattingAsYouType ? l.value = z.value : o ? g.value = S.cursorAtEnd || I.value.isValid ? l.value = W(
1009
+ I.value.countryCode ?? b.value,
1010
+ I.value.formatNational ?? l.value
1011
+ ) : l.value : g.value = void 0, await x(), ve(I.value);
1012
1012
  }
1013
1013
  function ve(o) {
1014
1014
  o.countryCode && b.value !== o.countryCode && le(o.countryCode);
@@ -1027,7 +1027,7 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
1027
1027
  }
1028
1028
  return (o, d) => {
1029
1029
  var e, n, r, i;
1030
- return v(), I("div", {
1030
+ return v(), k("div", {
1031
1031
  id: V(ue),
1032
1032
  class: E(["m-phone-number-input", [
1033
1033
  c.class,
@@ -1037,12 +1037,12 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
1037
1037
  ]]),
1038
1038
  style: ae(o.style)
1039
1039
  }, [
1040
- b.value && !o.noFlags && !o.noCountrySelector ? (v(), I(
1040
+ b.value && !o.noFlags && !o.noCountrySelector ? (v(), k(
1041
1041
  "button",
1042
1042
  {
1043
1043
  key: 0,
1044
1044
  class: E(["m-phone-number-input__country-flag maz-text-xl", {
1045
- "--should-have-bottom-flag": S.value.countrySelector.placeholder.length > 0
1045
+ "--should-have-bottom-flag": w.value.countrySelector.placeholder.length > 0
1046
1046
  }]),
1047
1047
  tabindex: "-1",
1048
1048
  type: "button",
@@ -1080,12 +1080,12 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
1080
1080
  size: o.size,
1081
1081
  "list-position": o.listPosition,
1082
1082
  search: !o.noSearch,
1083
- "search-placeholder": S.value.countrySelector.searchPlaceholder,
1083
+ "search-placeholder": w.value.countrySelector.searchPlaceholder,
1084
1084
  options: oe.value,
1085
1085
  error: o.error || (o.noValidationError ? !1 : !!z.value && !b.value),
1086
- hint: z.value && !b.value ? S.value.countrySelector.error : void 0,
1087
- success: o.success || (o.noValidationSuccess ? !1 : (e = w.value) == null ? void 0 : e.isValid),
1088
- label: S.value.countrySelector.placeholder,
1086
+ hint: z.value && !b.value ? w.value.countrySelector.error : void 0,
1087
+ success: o.success || (o.noValidationSuccess ? !1 : (e = I.value) == null ? void 0 : e.isValid),
1088
+ label: w.value.countrySelector.placeholder,
1089
1089
  style: ae({
1090
1090
  width: o.countrySelectorWidth
1091
1091
  }),
@@ -1100,7 +1100,7 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
1100
1100
  }])
1101
1101
  },
1102
1102
  [
1103
- !o.noFlags && typeof p.iso2 == "string" ? (v(), I("span", Po, [
1103
+ !o.noFlags && typeof p.iso2 == "string" ? (v(), k("span", Po, [
1104
1104
  y(`
1105
1105
  @slot Country list flag
1106
1106
  @binding {String} country-code - country code of option - Ex: \`"FR"\`
@@ -1119,7 +1119,7 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
1119
1119
  )
1120
1120
  ], !0)
1121
1121
  ])) : y("v-if", !0),
1122
- o.showCodeOnList ? (v(), I(
1122
+ o.showCodeOnList ? (v(), k(
1123
1123
  "span",
1124
1124
  {
1125
1125
  key: 1,
@@ -1154,17 +1154,17 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
1154
1154
  label: Q.value,
1155
1155
  disabled: o.disabled,
1156
1156
  color: o.color,
1157
- error: o.error || (o.noValidationError ? !1 : !!z.value && !((n = w.value) != null && n.isValid))
1157
+ error: o.error || (o.noValidationError ? !1 : !!z.value && !((n = I.value) != null && n.isValid))
1158
1158
  }, o.$attrs, {
1159
1159
  size: o.size,
1160
1160
  "icon-name": "phone",
1161
1161
  type: "tel",
1162
1162
  clearable: "",
1163
1163
  inputmode: "tel",
1164
- success: o.success || (o.noValidationSuccess ? !1 : (r = w.value) == null ? void 0 : r.isValid),
1164
+ success: o.success || (o.noValidationSuccess ? !1 : (r = I.value) == null ? void 0 : r.isValid),
1165
1165
  class: ["m-phone-number-input__input maz-flex-1", {
1166
1166
  "--border-radius": !o.noCountrySelector,
1167
- "--error": o.error || !((i = w.value) != null && i.isValid),
1167
+ "--error": o.error || !((i = I.value) != null && i.isValid),
1168
1168
  "--focused": R.value
1169
1169
  }],
1170
1170
  onFocus: d[2] || (d[2] = (p) => R.value = !0),
@@ -55,7 +55,7 @@ const ge = ({
55
55
  },
56
56
  emits: ["update:model-value", "focus", "blur", "click", "change"],
57
57
  setup(y, { emit: c }) {
58
- const v = I(() => import("./MazBtn-CR9C_X7R.mjs")), K = I(() => import("./MazIcon-Cxrv3_OK.mjs")), H = I(() => import("./eye-slash-tjfxO0LK.mjs")), X = I(() => import("./eye-DqO_Jx56.mjs")), Y = I(() => import("./check-7UA4j2f2.mjs")), o = y, h = c, g = m(!1), s = m(!1), D = m(), x = be(), _ = ge({
58
+ const v = I(() => import("./MazBtn-BL-LWc8X.mjs")), K = I(() => import("./MazIcon-Cxrv3_OK.mjs")), H = I(() => import("./eye-slash-tjfxO0LK.mjs")), X = I(() => import("./eye-DqO_Jx56.mjs")), Y = I(() => import("./check-7UA4j2f2.mjs")), o = y, h = c, g = m(!1), s = m(!1), D = m(), x = be(), _ = ge({
59
59
  componentName: "MazInput",
60
60
  instance: x,
61
61
  providedId: o.id
@@ -96,7 +96,7 @@ const ge = ({
96
96
  const { required: t, placeholder: p } = o;
97
97
  if (p)
98
98
  return t ? `${p} *` : p;
99
- }), C = d(() => B.value !== void 0 && B.value !== ""), T = qe(
99
+ }), S = d(() => B.value !== void 0 && B.value !== ""), T = qe(
100
100
  (t) => {
101
101
  B.value = t;
102
102
  },
@@ -108,8 +108,8 @@ const ge = ({
108
108
  return T(t);
109
109
  h("update:model-value", t);
110
110
  }
111
- }), R = d(() => (!!o.label || !!o.hint) && (s.value || !!C.value || !!o.placeholder || ["date", "month", "week"].includes(o.type))), j = d(() => !!o.label || !!o.hint);
112
- function S() {
111
+ }), R = d(() => (!!o.label || !!o.hint) && (s.value || !!S.value || !!o.placeholder || ["date", "month", "week"].includes(o.type))), j = d(() => !!o.label || !!o.hint);
112
+ function $() {
113
113
  return !!M["right-icon"] || W.value || !!M["valid-button"] || o.validButton || !!o.rightIcon;
114
114
  }
115
115
  function E() {
@@ -174,7 +174,7 @@ const ge = ({
174
174
  id: f(_),
175
175
  ref_key: "input",
176
176
  ref: D,
177
- "onUpdate:modelValue": p[0] || (p[0] = ($) => B.value = $),
177
+ "onUpdate:modelValue": p[0] || (p[0] = (C) => B.value = C),
178
178
  type: V.value,
179
179
  name: t.name
180
180
  }, t.$attrs, {
@@ -190,7 +190,7 @@ const ge = ({
190
190
  focus: te,
191
191
  change: A
192
192
  }, !0), {
193
- onClick: p[1] || (p[1] = ($) => t.$emit("click", $))
193
+ onClick: p[1] || (p[1] = (C) => t.$emit("click", C))
194
194
  }), null, 16, Ee), [
195
195
  [Le, B.value]
196
196
  ]),
@@ -219,7 +219,7 @@ const ge = ({
219
219
  /* CLASS */
220
220
  )) : r("v-if", !0)
221
221
  ]),
222
- S() ? (i(), z("div", Ue, [
222
+ $() ? (i(), z("div", Ue, [
223
223
  r(`
224
224
  @slot right-icon - The icon to display on the right of the input
225
225
  `),
@@ -238,7 +238,7 @@ const ge = ({
238
238
  color: "transparent",
239
239
  tabindex: "-1",
240
240
  size: "mini",
241
- onClick: p[2] || (p[2] = U(($) => g.value = !g.value, ["stop"]))
241
+ onClick: p[2] || (p[2] = U((C) => g.value = !g.value, ["stop"]))
242
242
  }, {
243
243
  default: J(() => [
244
244
  g.value ? (i(), w(f(H), {
@@ -326,11 +326,11 @@ const Re = ["aria-label"], je = { class: "m-select-list__no-results" }, Ze = {
326
326
  emits: ["close", "open", "blur", "focus", "change", "update:model-value", "selected-option"],
327
327
  setup(y, { emit: c }) {
328
328
  Me((e) => ({
329
- "48350faf": W.value,
330
- "234b58a4": x.value,
331
- 27843996: _.value
329
+ "021d98d9": W.value,
330
+ "3f038458": x.value,
331
+ c194e680: _.value
332
332
  }));
333
- const v = I(() => import("./MazCheckbox-BzrXpIyp.mjs")), K = I(() => import("./magnifying-glass-DZGg7953.mjs")), H = I(() => import("./chevron-down-CzMH-gFW.mjs")), X = I(() => import("./no-symbol-QAqP9IlR.mjs")), Y = be(), o = y, h = c, g = m(!1), s = m(), D = d(
333
+ const v = I(() => import("./MazCheckbox-EG8AZPtG.mjs")), K = I(() => import("./magnifying-glass-DZGg7953.mjs")), H = I(() => import("./chevron-down-CzMH-gFW.mjs")), X = I(() => import("./no-symbol-QAqP9IlR.mjs")), Y = be(), o = y, h = c, g = m(!1), s = m(), D = d(
334
334
  () => ["black", "transparent", "white"].includes(o.color)
335
335
  ), x = d(
336
336
  () => D.value ? "var(--maz-color-black)" : `var(--maz-color-${o.color}-800)`
@@ -358,7 +358,7 @@ const Re = ["aria-label"], je = { class: "m-select-list__no-results" }, Ze = {
358
358
  [o.optionInputValueKey]: e[o.optionInputValueKey]
359
359
  };
360
360
  }
361
- const C = d(() => {
361
+ const S = d(() => {
362
362
  var l;
363
363
  const e = [];
364
364
  if (!((l = o.options) != null && l.length))
@@ -374,28 +374,28 @@ const Re = ["aria-label"], je = { class: "m-select-list__no-results" }, Ze = {
374
374
  }), T = d(
375
375
  () => {
376
376
  var e;
377
- return ((e = C.value) == null ? void 0 : e.filter((l) => o.multiple ? Array.isArray(o.modelValue) ? o.modelValue.includes(l[o.optionValueKey]) && !S(l[o.optionValueKey]) : !1 : o.modelValue === l[o.optionValueKey] && !S(l[o.optionValueKey]))) ?? [];
377
+ return ((e = S.value) == null ? void 0 : e.filter((l) => o.multiple ? Array.isArray(o.modelValue) ? o.modelValue.includes(l[o.optionValueKey]) && !$(l[o.optionValueKey]) : !1 : o.modelValue === l[o.optionValueKey] && !$(l[o.optionValueKey]))) ?? [];
378
378
  }
379
379
  );
380
380
  Te(() => {
381
381
  var e;
382
382
  (e = o.options) != null && e.length || console.warn("[maz-ui](MazSelect) you must provide options"), ne();
383
383
  });
384
- const oe = m(), B = m(), R = m(), j = m(), S = (e) => e == null;
384
+ const oe = m(), B = m(), R = m(), j = m(), $ = (e) => e == null;
385
385
  function E(e) {
386
386
  var a;
387
387
  return (((a = T.value) == null ? void 0 : a.some(
388
388
  (n) => n[o.optionValueKey] === e[o.optionValueKey]
389
- )) ?? !1) && !S(e[o.optionValueKey]);
389
+ )) ?? !1) && !$(e[o.optionValueKey]);
390
390
  }
391
391
  const te = d(() => {
392
392
  var e, l;
393
393
  return o.multiple && o.modelValue && Array.isArray(o.modelValue) ? o.modelValue.map(
394
394
  (a) => {
395
395
  var n, u;
396
- return (u = (n = C.value) == null ? void 0 : n.find((b) => b[o.optionValueKey] === a)) == null ? void 0 : u[o.optionInputValueKey];
396
+ return (u = (n = S.value) == null ? void 0 : n.find((b) => b[o.optionValueKey] === a)) == null ? void 0 : u[o.optionInputValueKey];
397
397
  }
398
- ).join(", ") : (l = (e = C.value) == null ? void 0 : e.find(
398
+ ).join(", ") : (l = (e = S.value) == null ? void 0 : e.find(
399
399
  (a) => o.modelValue && a[o.optionValueKey] === o.modelValue
400
400
  )) == null ? void 0 : l[o.optionInputValueKey];
401
401
  }), le = d(
@@ -404,15 +404,15 @@ const Re = ["aria-label"], je = { class: "m-select-list__no-results" }, Ze = {
404
404
  function p(e) {
405
405
  return e.normalize("NFD").replaceAll(/[\u0300-\u036F]/g, "").replaceAll(/[^\dA-Za-z\u0400-\u04FF]/g, "");
406
406
  }
407
- const $ = (e, l) => l && e && p(e.toString().toLocaleLowerCase().trim()).includes(
407
+ const C = (e, l) => l && e && p(e.toString().toLocaleLowerCase().trim()).includes(
408
408
  p(l.toLocaleLowerCase().trim())
409
409
  );
410
410
  function re(e) {
411
411
  var l;
412
- return e ? (l = C.value) == null ? void 0 : l.filter((a) => {
412
+ return e ? (l = S.value) == null ? void 0 : l.filter((a) => {
413
413
  const n = a[o.optionLabelKey], u = a[o.optionValueKey], b = a[o.optionInputValueKey];
414
- return $(n, e) || $(u, e) || $(b, e);
415
- }) : C.value;
414
+ return C(n, e) || C(u, e) || C(b, e);
415
+ }) : S.value;
416
416
  }
417
417
  const k = d(() => re(A.value)), Z = async (e) => {
418
418
  var l;
@@ -461,7 +461,7 @@ const Re = ["aria-label"], je = { class: "m-select-list__no-results" }, Ze = {
461
461
  if (e.preventDefault(), !V.value)
462
462
  return O(e);
463
463
  const a = l ? ((n = k.value) == null ? void 0 : n[l]) ?? ((u = k.value) == null ? void 0 : u[0]) : (b = k.value) == null ? void 0 : b[0];
464
- S(a) || pe(a);
464
+ $(a) || pe(a);
465
465
  };
466
466
  async function ae(e) {
467
467
  var a, n;
@@ -594,7 +594,7 @@ const Re = ["aria-label"], je = { class: "m-select-list__no-results" }, Ze = {
594
594
  @slot Custom optgroup label
595
595
  @binding {String} label - the label of the optgroup
596
596
  `),
597
- a.label && !a[e.optionValueKey] ? F(e.$slots, "optgroup", {
597
+ a.label && $(a[e.optionValueKey]) ? F(e.$slots, "optgroup", {
598
598
  key: 0,
599
599
  label: a.label
600
600
  }, () => [
@@ -613,7 +613,7 @@ const Re = ["aria-label"], je = { class: "m-select-list__no-results" }, Ze = {
613
613
  {
614
614
  "--is-keyboard-selected": s.value === n,
615
615
  "--is-selected": E(a),
616
- "--is-none-value": S(a[e.optionValueKey])
616
+ "--is-none-value": $(a[e.optionValueKey])
617
617
  }
618
618
  ]]),
619
619
  style: G(e.itemHeight ? { minHeight: `${e.itemHeight}px` } : void 0),
@@ -665,7 +665,7 @@ const Re = ["aria-label"], je = { class: "m-select-list__no-results" }, Ze = {
665
665
  /* CLASS, STYLE, NEED_HYDRATION */
666
666
  ));
667
667
  }
668
- }), _e = /* @__PURE__ */ ze(Xe, [["__scopeId", "data-v-45e382c1"]]);
668
+ }), _e = /* @__PURE__ */ ze(Xe, [["__scopeId", "data-v-48c93d79"]]);
669
669
  export {
670
670
  _e as M,
671
671
  ze as _,
@@ -1,6 +1,6 @@
1
1
  import "../assets/MazSpinner.css";
2
2
  import { defineComponent as t, openBlock as o, createElementBlock as c, normalizeClass as n, pushScopeId as s, popScopeId as r, createElementVNode as i } from "vue";
3
- import { _ as p } from "./MazSelect-CVmgnTR-.mjs";
3
+ import { _ as p } from "./MazAvatar-Dv5LXKDM.mjs";
4
4
  const a = (e) => (s("data-v-c67298ec"), e = e(), r(), e), d = ["width", "height"], l = /* @__PURE__ */ a(() => /* @__PURE__ */ i(
5
5
  "path",
6
6
  { d: "M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z" },
@@ -1,6 +1,6 @@
1
1
  import "../assets/MazSpinner.css";
2
2
  import { defineComponent as t, openBlock as o, createElementBlock as c, normalizeClass as n, pushScopeId as s, popScopeId as r, createElementVNode as i } from "vue";
3
- import { _ as p } from "./MazAvatar-4EVPBdaz.mjs";
3
+ import { _ as p } from "./MazSelect-8_n2ovqP.mjs";
4
4
  const a = (e) => (s("data-v-c67298ec"), e = e(), r(), e), d = ["width", "height"], l = /* @__PURE__ */ a(() => /* @__PURE__ */ i(
5
5
  "path",
6
6
  { d: "M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z" },
@@ -1,6 +1,6 @@
1
1
  import "../assets/MazSpinner.css";
2
2
  import { defineComponent as t, openBlock as o, createElementBlock as c, normalizeClass as n, pushScopeId as s, popScopeId as r, createElementVNode as i } from "vue";
3
- import { _ as p } from "./MazPhoneNumberInput-7Tk_G1ML.mjs";
3
+ import { _ as p } from "./MazPhoneNumberInput-dbbjH9lI.mjs";
4
4
  const a = (e) => (s("data-v-c67298ec"), e = e(), r(), e), d = ["width", "height"], l = /* @__PURE__ */ a(() => /* @__PURE__ */ i(
5
5
  "path",
6
6
  { d: "M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z" },