maz-ui 3.45.6 → 3.46.1-beta.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 (136) hide show
  1. package/components/MazAvatar.d.ts +12 -0
  2. package/components/MazAvatar.mjs +1 -1
  3. package/components/MazBackdrop.d.ts +4 -4
  4. package/components/MazBtn.d.ts +2 -2
  5. package/components/MazCard.mjs +1 -1
  6. package/components/MazChart.d.ts +1 -1
  7. package/components/MazDialog.d.ts +121 -4
  8. package/components/MazDialog.mjs +1 -1
  9. package/components/MazDialogPromise/useMazDialogPromise.d.ts +80 -0
  10. package/components/MazDialogPromise.d.ts +20 -10
  11. package/components/MazDialogPromise.mjs +1 -1
  12. package/components/MazDrawer.d.ts +2 -2
  13. package/components/MazDropdown.d.ts +11 -7
  14. package/components/MazDropdown.mjs +136 -141
  15. package/components/MazGallery.d.ts +1 -1
  16. package/components/MazGallery.mjs +1 -1
  17. package/components/MazIcon.d.ts +1 -1
  18. package/components/MazInputNumber.d.ts +1 -1
  19. package/components/MazInputPrice.d.ts +1 -1
  20. package/components/MazInputTags.d.ts +1 -1
  21. package/components/MazLink.d.ts +6 -2
  22. package/components/MazLink.mjs +3 -3
  23. package/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +2 -2
  24. package/components/MazPhoneNumberInput.d.ts +18 -6
  25. package/components/MazPhoneNumberInput.mjs +1 -1
  26. package/components/MazPicker.d.ts +3 -3
  27. package/components/MazPullToRefresh.d.ts +2 -2
  28. package/components/MazSelect.d.ts +5 -0
  29. package/components/MazSelect.mjs +1 -1
  30. package/components/MazSwitch.d.ts +1 -1
  31. package/components/MazTable.d.ts +1 -1
  32. package/components/MazTable.mjs +1 -1
  33. package/components/MazTabsBar.mjs +1 -1
  34. package/components/MazTextarea.d.ts +3 -3
  35. package/components/assets/MazAvatar.css +1 -1
  36. package/components/assets/MazDialog.css +1 -1
  37. package/components/assets/MazDialogPromise.css +1 -1
  38. package/components/assets/MazDropdown.css +1 -1
  39. package/components/assets/MazLink.css +1 -1
  40. package/components/assets/MazPhoneNumberInput.css +1 -1
  41. package/components/assets/MazSelect.css +1 -1
  42. package/components/assets/MazTable.css +1 -1
  43. package/components/assets/MazTabsBar.css +1 -1
  44. package/components/chunks/MazAvatar-BXZpFUaZ.mjs +154 -0
  45. package/components/chunks/{MazBadge-BtT5dcnQ.mjs → MazBadge-CNSfzYq-.mjs} +1 -1
  46. package/components/chunks/{MazBtn-DY7j6OiY.mjs → MazBtn-BFG89vCa.mjs} +2 -2
  47. package/components/chunks/{MazBtn-FrVhILjZ.mjs → MazBtn-BGoomw9I.mjs} +2 -2
  48. package/components/chunks/{MazBtn-BdOCsAcJ.mjs → MazBtn-Bv2ZJa_R.mjs} +2 -2
  49. package/components/chunks/MazBtn-Da2iB5Ca.mjs +150 -0
  50. package/components/chunks/{MazBtn-BiqIAH4q.mjs → MazBtn-K-VSnuAG.mjs} +2 -2
  51. package/components/chunks/{MazCard-BY62rYtJ.mjs → MazCard-dFVJALiZ.mjs} +1 -1
  52. package/components/chunks/{MazCheckbox-DH9P-r_8.mjs → MazCheckbox-BOQ3rCJA.mjs} +1 -1
  53. package/components/chunks/{MazCheckbox-CR_iUN0_.mjs → MazCheckbox-Dia9JuH9.mjs} +1 -1
  54. package/components/chunks/{MazDialog-DZhBJeVd.mjs → MazDialog-C3DzTTKe.mjs} +82 -73
  55. package/components/chunks/MazDialogPromise-BjfZazCh.mjs +519 -0
  56. package/components/chunks/{MazGallery-Dpo7kTFH.mjs → MazGallery-BOmH2smL.mjs} +60 -60
  57. package/components/chunks/{MazGallery-CKofGCb2.mjs → MazGallery-PjwNt897.mjs} +61 -61
  58. package/components/chunks/{MazIcon-B5s0fahc.mjs → MazIcon-BJbOf-7v.mjs} +1 -1
  59. package/components/chunks/{MazIcon-ufe3UEle.mjs → MazIcon-DtpY3t9J.mjs} +1 -1
  60. package/components/chunks/{MazLazyImg-BmmDjOiK.mjs → MazLazyImg-D2seDVoC.mjs} +2 -2
  61. package/components/chunks/{MazPhoneNumberInput-CSCiLEae.mjs → MazPhoneNumberInput-ahQrhENR.mjs} +207 -197
  62. package/components/chunks/{MazSelect-C7j7fHLt.mjs → MazSelect-DZ86urPA.mjs} +11 -9
  63. package/components/chunks/{MazSpinner-B5tlgNCz.mjs → MazSpinner-C6h_11fE.mjs} +1 -1
  64. package/components/chunks/MazSpinner-CQbd8Ovn.mjs +37 -0
  65. package/components/chunks/{MazSpinner-SlwNtf5M.mjs → MazSpinner-CeYCrySe.mjs} +1 -1
  66. package/components/chunks/{MazSpinner-D0Z_mIJF.mjs → MazSpinner-DCpFSO05.mjs} +1 -1
  67. package/components/chunks/{MazSpinner-C5wp4j5g.mjs → MazSpinner-Dr_lfVQQ.mjs} +1 -1
  68. package/components/chunks/{MazSpinner-DAAoiGES.mjs → MazSpinner-XWBim6LV.mjs} +1 -1
  69. package/components/chunks/MazSpinner-dU5ZzoYV.mjs +37 -0
  70. package/components/chunks/{MazSpinner-DfHwN_9D.mjs → MazSpinner-gYRmfrSM.mjs} +1 -1
  71. package/components/chunks/{MazTable-DjAvTaKP.mjs → MazTable-CverwWXf.mjs} +39 -37
  72. package/components/chunks/{MazTabsBar-BzmfPGf0.mjs → MazTabsBar-MZYefBb8.mjs} +73 -59
  73. package/components/chunks/{MazTransitionExpand-pD1Oj5jl.mjs → MazTransitionExpand-C1PC0VLx.mjs} +1 -1
  74. package/modules/assets/index.css +1 -1
  75. package/modules/chunks/{MazBtn-DBCfLTEq.cjs → MazBtn-O5zWLH6k.cjs} +1 -1
  76. package/modules/chunks/{MazBtn-ZodGJGYi.mjs → MazBtn-VbPzVjkw.mjs} +2 -2
  77. package/modules/chunks/{MazIcon-BmzyL3xC.cjs → MazIcon-5tUs5Esl.cjs} +1 -1
  78. package/modules/chunks/{MazIcon-Cc_Rfdkr.mjs → MazIcon-B-f-2ZQG.mjs} +1 -1
  79. package/modules/chunks/{MazSpinner-CqfQGJXH.cjs → MazSpinner-BUSCYYJR.cjs} +1 -1
  80. package/modules/chunks/{MazSpinner-1HepG9lI.mjs → MazSpinner-fEByRc1j.mjs} +1 -1
  81. package/modules/chunks/index-B26Eo5t8.mjs +3316 -0
  82. package/modules/chunks/index-Bos4zUyQ.cjs +149 -0
  83. package/modules/index.cjs +1 -1
  84. package/modules/index.mjs +55 -52
  85. package/nuxt/index.d.mts +6 -1
  86. package/nuxt/index.d.ts +6 -1
  87. package/nuxt/index.json +1 -1
  88. package/nuxt/index.mjs +8 -0
  89. package/nuxt/runtime/composables/useDialog.d.ts +2 -0
  90. package/nuxt/runtime/composables/useDialog.js +5 -0
  91. package/nuxt/runtime/plugins/dialog.d.ts +8 -0
  92. package/nuxt/runtime/plugins/dialog.js +23 -0
  93. package/package.json +10 -10
  94. package/types/components/MazAvatar.vue.d.ts +12 -0
  95. package/types/components/MazBackdrop.vue.d.ts +4 -4
  96. package/types/components/MazBtn.vue.d.ts +2 -2
  97. package/types/components/MazChart.vue.d.ts +1 -1
  98. package/types/components/MazDialog.vue.d.ts +121 -4
  99. package/types/components/MazDialogPromise/useMazDialogPromise.d.ts +80 -0
  100. package/types/components/MazDialogPromise.vue.d.ts +20 -10
  101. package/types/components/MazDrawer.vue.d.ts +2 -2
  102. package/types/components/MazDropdown.vue.d.ts +11 -7
  103. package/types/components/MazGallery.vue.d.ts +1 -1
  104. package/types/components/MazIcon.vue.d.ts +1 -1
  105. package/types/components/MazInputNumber.vue.d.ts +1 -1
  106. package/types/components/MazInputPrice.vue.d.ts +1 -1
  107. package/types/components/MazInputTags.vue.d.ts +1 -1
  108. package/types/components/MazLink.vue.d.ts +6 -2
  109. package/types/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +2 -2
  110. package/types/components/MazPhoneNumberInput.vue.d.ts +18 -6
  111. package/types/components/MazPicker.vue.d.ts +3 -3
  112. package/types/components/MazPullToRefresh.vue.d.ts +2 -2
  113. package/types/components/MazSelect.vue.d.ts +5 -0
  114. package/types/components/MazSwitch.vue.d.ts +1 -1
  115. package/types/components/MazTable.vue.d.ts +1 -1
  116. package/types/components/MazTextarea.vue.d.ts +3 -3
  117. package/types/modules/composables/index.d.ts +1 -0
  118. package/types/modules/composables/useDialog.d.ts +2 -0
  119. package/types/modules/composables/useToast.d.ts +1 -1
  120. package/types/modules/directives/v-fullscreen-img/MazFullscreenImg.vue.d.ts +3 -3
  121. package/types/modules/helpers/mount-component.d.ts +3 -3
  122. package/types/modules/plugins/dialog/DialogHandler.d.ts +15 -0
  123. package/types/modules/plugins/dialog/index.d.ts +6 -0
  124. package/types/modules/plugins/index.d.ts +1 -0
  125. package/types/modules/plugins/toaster/MazToast.vue.d.ts +2 -2
  126. package/types/modules/plugins/toaster/index.d.ts +2 -2
  127. package/components/MazDialogPromise/use-maz-dialog-promise.d.ts +0 -201
  128. package/components/chunks/MazAvatar-DVjTbmNj.mjs +0 -127
  129. package/components/chunks/MazBtn-hPyCTfnD.mjs +0 -150
  130. package/components/chunks/MazDialogPromise-B5xH3Ew4.mjs +0 -478
  131. package/components/chunks/MazSpinner-DhtejNvD.mjs +0 -37
  132. package/components/chunks/MazSpinner-DyOBVD2n.mjs +0 -37
  133. package/modules/chunks/index-BbpA7Mc4.cjs +0 -124
  134. package/modules/chunks/index-CR18QNVD.mjs +0 -2768
  135. package/types/components/MazDialogPromise/use-maz-dialog-promise.d.ts +0 -201
  136. /package/types/modules/plugins/toaster/{toaster-handler.d.ts → ToasterHandler.d.ts} +0 -0
@@ -1,56 +1,56 @@
1
- import { computed as Y, getCurrentInstance as Z, nextTick as x, defineComponent as ee, defineAsyncComponent as A, ref as I, watch as L, resolveComponent as oe, withDirectives as T, openBlock as v, createElementBlock as h, unref as u, normalizeClass as k, normalizeStyle as ne, createElementVNode as C, withModifiers as D, renderSlot as p, createTextVNode as E, toDisplayString as $, createCommentVNode as b, createVNode as U, mergeProps as te, withCtx as B, createBlock as N, Transition as le, Fragment as S, renderList as se, vShow as re } from "vue";
1
+ import { computed as x, getCurrentInstance as ee, nextTick as oe, defineComponent as ne, defineAsyncComponent as I, ref as L, watch as T, resolveComponent as te, withDirectives as U, openBlock as b, createElementBlock as h, unref as u, normalizeClass as M, normalizeStyle as le, createElementVNode as w, withModifiers as z, renderSlot as m, createTextVNode as C, toDisplayString as g, createCommentVNode as v, createVNode as N, mergeProps as A, withCtx as B, createBlock as S, Transition as re, Fragment as F, renderList as se, vShow as ie } from "vue";
2
2
  import './assets/MazDropdown.css';function ae({
3
3
  componentName: t,
4
4
  providedId: l
5
5
  }) {
6
- return Y(() => {
6
+ return x(() => {
7
7
  var n;
8
- return l ?? `${t}-${(n = Z()) == null ? void 0 : n.uid}`;
8
+ return l ?? `${t}-${(n = ee()) == null ? void 0 : n.uid}`;
9
9
  });
10
10
  }
11
- const M = "__maz-click-outside__";
12
- function F() {
11
+ const D = "__maz-click-outside__";
12
+ function V() {
13
13
  return document.ontouchstart === null ? "touchstart" : "click";
14
14
  }
15
- async function V(t, l) {
15
+ async function _(t, l) {
16
16
  try {
17
- R(t);
18
- const n = l.instance, c = l.value, w = typeof c == "function";
19
- if (!w)
17
+ q(t);
18
+ const n = l.instance, c = l.value, k = typeof c == "function";
19
+ if (!k)
20
20
  throw new Error("[maz-ui](vClickOutside) the callback should be a function");
21
- await x(), t[M] = (f) => {
22
- if ((!t || f.target && !t.contains(f.target)) && c && w)
21
+ await oe(), t[D] = (f) => {
22
+ if ((!t || f.target && !t.contains(f.target)) && c && k)
23
23
  return c.call(n, f);
24
24
  };
25
- const z = F();
26
- document.addEventListener(z, t[M], { passive: !0 });
25
+ const E = V();
26
+ document.addEventListener(E, t[D], { passive: !0 });
27
27
  } catch (n) {
28
28
  console.error("[maz-ui](vClickOutside)", n);
29
29
  }
30
30
  }
31
- function R(t) {
31
+ function q(t) {
32
32
  try {
33
- const l = F();
34
- document.removeEventListener(l, t[M], !1), delete t[M];
33
+ const l = V();
34
+ document.removeEventListener(l, t[D], !1), delete t[D];
35
35
  } catch (l) {
36
36
  console.error("[maz-ui](vClickOutside)", l);
37
37
  }
38
38
  }
39
- function ie(t, l) {
39
+ function ue(t, l) {
40
40
  try {
41
41
  if (l.value === l.oldValue)
42
42
  return;
43
- V(t, l);
43
+ _(t, l);
44
44
  } catch (n) {
45
45
  console.error("[maz-ui](vClickOutside)", n);
46
46
  }
47
47
  }
48
- const ue = {
49
- mounted: V,
50
- updated: ie,
51
- unmounted: R
48
+ const de = {
49
+ mounted: _,
50
+ updated: ue,
51
+ unmounted: q
52
52
  };
53
- function de(t, l) {
53
+ function ce(t, l) {
54
54
  let n;
55
55
  return function(...c) {
56
56
  clearTimeout(n), n = setTimeout(() => {
@@ -58,7 +58,7 @@ function de(t, l) {
58
58
  }, l);
59
59
  };
60
60
  }
61
- const ce = ["id"], fe = ["aria-expanded"], pe = ["id"], me = { class: "button-span" }, ve = ["target", "href"], be = ["onClick"], ye = /* @__PURE__ */ ee({
61
+ const fe = ["id"], pe = ["aria-expanded"], me = ["id"], ve = { class: "button-span" }, be = ["onClick"], ye = /* @__PURE__ */ ne({
62
62
  inheritAttrs: !1,
63
63
  __name: "MazDropdown",
64
64
  props: {
@@ -77,181 +77,193 @@ const ce = ["id"], fe = ["aria-expanded"], pe = ["id"], me = { class: "button-sp
77
77
  },
78
78
  emits: ["menuitem-clicked", "update:open"],
79
79
  setup(t, { emit: l }) {
80
- const n = t, c = l, w = A(() => import("./chunks/MazBtn-C-RDq3T0.mjs").then((e) => e.M)), z = A(() => import("./chunks/chevron-down-BkvtON3b.mjs")), f = ae({
80
+ const n = t, c = l, k = I(() => import("./chunks/MazBtn-C-RDq3T0.mjs").then((e) => e.M)), E = I(() => import("./chunks/chevron-down-BkvtON3b.mjs")), f = ae({
81
81
  componentName: "MazDropdown",
82
82
  providedId: n.id
83
- }), a = I(n.open), r = I(), m = de((e) => {
84
- i(e);
83
+ }), i = L(n.open), s = L(), p = ce((e) => {
84
+ a(e);
85
85
  }, 200);
86
- function q() {
87
- a.value && i(!1);
88
- }
89
86
  function H() {
90
- i(!a.value);
87
+ i.value && a(!1);
91
88
  }
92
- function _() {
93
- ["click"].includes(n.trigger) && H();
89
+ function R() {
90
+ a(!i.value);
94
91
  }
95
92
  function j() {
96
- ["hover", "both"].includes(n.trigger) && i(!0);
93
+ ["click"].includes(n.trigger) && R();
97
94
  }
98
95
  function K() {
99
- ["hover", "both"].includes(n.trigger) && (a.value === !1 ? i(!0) : m(!0));
96
+ ["hover", "both"].includes(n.trigger) && a(!0);
100
97
  }
101
98
  function P() {
102
- ["hover", "both"].includes(n.trigger) && m(!1);
99
+ ["hover", "both"].includes(n.trigger) && (i.value === !1 ? a(!0) : p(!0));
103
100
  }
104
101
  function Q() {
105
- m(!1);
102
+ ["hover", "both"].includes(n.trigger) && p(!1);
103
+ }
104
+ function G() {
105
+ p(!1);
106
106
  }
107
- function i(e) {
108
- n.disabled || (a.value = e, c("update:open", e));
107
+ function a(e) {
108
+ n.disabled || (i.value = e, c("update:open", e));
109
109
  }
110
- async function G(e, s) {
110
+ function J(e) {
111
+ return "action" in e;
112
+ }
113
+ async function W(e, r) {
111
114
  var d;
112
- c("menuitem-clicked", s), await ((d = e.action) == null ? void 0 : d.call(e)), n.noCloseOnClick || y();
115
+ c("menuitem-clicked", r), await ((d = e.action) == null ? void 0 : d.call(e)), n.noCloseOnClick || y();
113
116
  }
114
117
  function y() {
115
- n.noCloseOnClick === !1 && i(!1);
118
+ n.noCloseOnClick === !1 && a(!1);
116
119
  }
117
120
  function O(e) {
118
- e.key === "Escape" ? (e.preventDefault(), i(!1)) : ["ArrowDown", "ArrowUp"].includes(e.key) ? W(e) : e.key === "Enter" && typeof r.value == "number" && (e.preventDefault(), document.querySelectorAll(`#${f.value} .menuitem`)[r.value].click(), y());
121
+ e.key === "Escape" ? (e.preventDefault(), a(!1)) : ["ArrowDown", "ArrowUp"].includes(e.key) ? Y(e) : e.key === "Enter" && typeof s.value == "number" && (e.preventDefault(), document.querySelectorAll(`#${f.value} .menuitem`)[s.value].click(), y());
119
122
  }
120
- function J(e) {
121
- ["ArrowDown", "ArrowUp", "Enter"].includes(e.key) && a.value === !1 && (e.preventDefault(), i(!0));
123
+ function X(e) {
124
+ ["ArrowDown", "ArrowUp", "Enter"].includes(e.key) && i.value === !1 && (e.preventDefault(), a(!0));
122
125
  }
123
- function W(e) {
126
+ function Y(e) {
124
127
  var o;
125
128
  e.preventDefault();
126
- const s = e.key;
127
- a.value || i(!0);
129
+ const r = e.key;
130
+ i.value || a(!0);
128
131
  const d = (o = n.items) == null ? void 0 : o.length;
129
- d && (typeof r.value == "number" ? r.value === d - 1 && s === "ArrowDown" ? r.value = 0 : r.value === 0 && s === "ArrowUp" ? r.value = d - 1 : r.value = s === "ArrowDown" ? r.value + 1 : r.value - 1 : r.value = s === "ArrowDown" ? 0 : d - 1);
132
+ d && (typeof s.value == "number" ? s.value === d - 1 && r === "ArrowDown" ? s.value = 0 : s.value === 0 && r === "ArrowUp" ? s.value = d - 1 : s.value = r === "ArrowDown" ? s.value + 1 : s.value - 1 : s.value = r === "ArrowDown" ? 0 : d - 1);
130
133
  }
131
- return L(
132
- () => a.value,
134
+ return T(
135
+ () => i.value,
133
136
  (e) => {
134
- e ? document.addEventListener("keydown", O) : document.removeEventListener("keydown", O), r.value = void 0;
137
+ e ? document.addEventListener("keydown", O) : document.removeEventListener("keydown", O), s.value = void 0;
135
138
  }
136
- ), L(
139
+ ), T(
137
140
  () => n.open,
138
- (e) => i(e)
139
- ), (e, s) => {
140
- const d = oe("RouterLink");
141
- return T((v(), h("div", {
141
+ (e) => a(e)
142
+ ), (e, r) => {
143
+ const d = te("MazLink");
144
+ return U((b(), h("div", {
142
145
  id: u(f),
143
- class: k(["m-dropdown", [n.class]]),
144
- style: ne(e.style)
146
+ class: M(["m-dropdown", [n.class]]),
147
+ style: le(e.style)
145
148
  }, [
146
- C("div", {
149
+ w("div", {
147
150
  role: "button",
148
151
  tabindex: "0",
149
152
  class: "m-dropdown__wrapper",
150
- "aria-expanded": a.value,
153
+ "aria-expanded": i.value,
151
154
  "aria-haspopup": "menu",
152
- onClick: D(_, ["stop"]),
153
- onFocus: j,
154
- onBlur: Q,
155
- onKeydown: J,
156
- onMouseenter: K,
157
- onMouseleave: P
155
+ onClick: z(j, ["stop"]),
156
+ onFocus: K,
157
+ onBlur: G,
158
+ onKeydown: X,
159
+ onMouseenter: P,
160
+ onMouseleave: Q
158
161
  }, [
159
- C("span", {
162
+ w("span", {
160
163
  id: `${u(f)}-labelspan`,
161
164
  class: "maz-sr-only"
162
165
  }, [
163
- p(e.$slots, "screen-reader-description", {}, () => [
164
- E(
165
- $(e.screenReaderDescription),
166
+ m(e.$slots, "screen-reader-description", {}, () => [
167
+ C(
168
+ g(e.screenReaderDescription),
166
169
  1
167
170
  /* TEXT */
168
171
  )
169
172
  ])
170
- ], 8, pe),
171
- b(`
173
+ ], 8, me),
174
+ v(`
172
175
  @slot Custom Element
173
176
  @binding {Boolen} is-open close function
174
177
  @default \`<MazBtn />\`
175
178
  `),
176
- p(e.$slots, "element", { isOpen: a.value }, () => [
177
- U(u(w), te({
179
+ m(e.$slots, "element", { isOpen: i.value }, () => [
180
+ N(u(k), A({
178
181
  color: e.color,
179
182
  disabled: e.disabled,
180
183
  "aria-labelledby": `${u(f)}-labelspan`
181
184
  }, e.$attrs, { tabindex: "-1" }), {
182
185
  default: B(() => [
183
- C("span", me, [
184
- b(" @slot Button text "),
185
- p(e.$slots, "default"),
186
- e.noChevron ? b("v-if", !0) : (v(), N(u(z), {
186
+ w("span", ve, [
187
+ v(" @slot Button text "),
188
+ m(e.$slots, "default"),
189
+ e.noChevron ? v("v-if", !0) : (b(), S(u(E), {
187
190
  key: 0,
188
- class: k([{ "maz-rotate-180": a.value }, "chevron-icon"])
191
+ class: M([{ "maz-rotate-180": i.value }, "chevron-icon"])
189
192
  }, null, 8, ["class"]))
190
193
  ]),
191
- b(" @slot Menu Label ")
194
+ v(" @slot Menu Label ")
192
195
  ]),
193
196
  _: 3
194
197
  /* FORWARDED */
195
198
  }, 16, ["color", "disabled", "aria-labelledby"])
196
199
  ])
197
- ], 40, fe),
198
- U(le, {
200
+ ], 40, pe),
201
+ N(re, {
199
202
  name: "maz-scale-fade",
200
203
  persisted: ""
201
204
  }, {
202
205
  default: B(() => [
203
- T(C(
206
+ U(w(
204
207
  "div",
205
208
  {
206
209
  role: "menu",
207
210
  "aria-label": "Menu",
208
- class: k(["menu", {
211
+ class: M(["menu", {
209
212
  "--top": e.position.includes("top"),
210
213
  "--left": e.position.includes("left"),
211
214
  "--right": e.position.includes("right"),
212
215
  "--bottom": e.position.includes("bottom")
213
216
  }]),
214
217
  tabindex: "-1",
215
- onFocus: s[0] || (s[0] = (o) => u(m)(!0)),
216
- onBlur: s[1] || (s[1] = (o) => u(m)(!1)),
217
- onMouseenter: s[2] || (s[2] = (o) => ["hover", "both"].includes(e.trigger) ? u(m)(!0) : void 0),
218
- onMouseleave: s[3] || (s[3] = (o) => ["hover", "both"].includes(e.trigger) ? u(m)(!1) : void 0)
218
+ onFocus: r[0] || (r[0] = (o) => u(p)(!0)),
219
+ onBlur: r[1] || (r[1] = (o) => u(p)(!1)),
220
+ onMouseenter: r[2] || (r[2] = (o) => ["hover", "both"].includes(e.trigger) ? u(p)(!0) : void 0),
221
+ onMouseleave: r[3] || (r[3] = (o) => ["hover", "both"].includes(e.trigger) ? u(p)(!1) : void 0)
219
222
  },
220
223
  [
221
- b(`
224
+ v(`
222
225
  @slot Custom dropdown panel
223
226
  @binding {Array} items - items prop data
224
227
  `),
225
- p(e.$slots, "dropdown", { items: e.items }, () => [
226
- (v(!0), h(
227
- S,
228
+ m(e.$slots, "dropdown", { items: e.items }, () => [
229
+ (b(!0), h(
230
+ F,
228
231
  null,
229
- se(e.items, (o, g) => (v(), h(
230
- S,
231
- { key: g },
232
+ se(e.items, (o, $) => (b(), h(
233
+ F,
234
+ { key: $ },
232
235
  [
233
- b(`
236
+ v(`
234
237
  @slot Custom menu item
235
238
  @binding {Object} item - menu item
236
239
  `),
237
- p(e.$slots, "menuitem", { item: o }, () => [
238
- o.to ? (v(), N(d, {
240
+ m(e.$slots, "menuitem", { item: o }, () => [
241
+ C(
242
+ g(o.label) + " ",
243
+ 1
244
+ /* TEXT */
245
+ ),
246
+ o.to || o.href ? (b(), S(d, A({
239
247
  key: 0,
240
248
  target: o.href ? o.target ?? "_self" : void 0,
241
249
  to: o.to,
242
- class: k(["menuitem", [
250
+ href: o.href,
251
+ color: o.color ?? "theme",
252
+ ref_for: !0
253
+ }, o, {
254
+ class: ["menuitem", [
243
255
  {
244
- "--is-keyboard-selected": r.value === g
256
+ "--is-keyboard-selected": s.value === $
245
257
  },
246
258
  o.class
247
- ]]),
259
+ ]],
248
260
  tabindex: "-1",
249
- onClick: D(y, ["stop"])
250
- }, {
261
+ onClick: z(y, ["stop"])
262
+ }), {
251
263
  default: B(() => [
252
- p(e.$slots, "menuitem-label", { item: o }, () => [
253
- E(
254
- $(o.label),
264
+ m(e.$slots, "menuitem-label", { item: o }, () => [
265
+ C(
266
+ g(o.label),
255
267
  1
256
268
  /* TEXT */
257
269
  )
@@ -259,46 +271,29 @@ const ce = ["id"], fe = ["aria-expanded"], pe = ["id"], me = { class: "button-sp
259
271
  ]),
260
272
  _: 2
261
273
  /* DYNAMIC */
262
- }, 1032, ["target", "to", "class"])) : o.href ? (v(), h("a", {
274
+ }, 1040, ["target", "to", "href", "color", "class"])) : o.action ? (b(), h("button", A({
263
275
  key: 1,
264
- target: o.href ? o.target ?? "_self" : void 0,
265
- href: o.href,
266
- tabindex: "-1",
267
- class: k(["menuitem", [
268
- {
269
- "--is-keyboard-selected": r.value === g
270
- },
271
- o.class
272
- ]]),
273
- onClick: D(y, ["stop"])
274
- }, [
275
- p(e.$slots, "menuitem-label", { item: o }, () => [
276
- E(
277
- $(o.label),
278
- 1
279
- /* TEXT */
280
- )
281
- ])
282
- ], 10, ve)) : o.action ? (v(), h("button", {
283
- key: 2,
284
276
  tabindex: "-1",
285
277
  type: "button",
286
- class: k(["menuitem", [
278
+ ref_for: !0
279
+ }, o, {
280
+ class: ["menuitem menuitem__button", [
287
281
  {
288
- "--is-keyboard-selected": r.value === g
282
+ "--is-keyboard-selected": s.value === $
289
283
  },
290
- o.class
291
- ]]),
292
- onClick: D((X) => o.action ? G(o, X) : y(), ["stop"])
293
- }, [
294
- p(e.$slots, "menuitem-label", { item: o }, () => [
295
- E(
296
- $(o.label),
284
+ o.class,
285
+ `--${o.color ?? "theme"}`
286
+ ]],
287
+ onClick: z((Z) => J(o) ? W(o, Z) : y(), ["stop"])
288
+ }), [
289
+ m(e.$slots, "menuitem-label", { item: o }, () => [
290
+ C(
291
+ g(o.label),
297
292
  1
298
293
  /* TEXT */
299
294
  )
300
295
  ])
301
- ], 10, be)) : b("v-if", !0)
296
+ ], 16, be)) : v("v-if", !0)
302
297
  ])
303
298
  ],
304
299
  64
@@ -312,14 +307,14 @@ const ce = ["id"], fe = ["aria-expanded"], pe = ["id"], me = { class: "button-sp
312
307
  34
313
308
  /* CLASS, NEED_HYDRATION */
314
309
  ), [
315
- [re, a.value]
310
+ [ie, i.value]
316
311
  ])
317
312
  ]),
318
313
  _: 3
319
314
  /* FORWARDED */
320
315
  })
321
- ], 14, ce)), [
322
- [u(ue), q]
316
+ ], 14, fe)), [
317
+ [u(de), H]
323
318
  ]);
324
319
  };
325
320
  }
@@ -150,9 +150,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
150
150
  }>> & Readonly<{}>, {
151
151
  blur: boolean;
152
152
  width: string | number;
153
- lazy: boolean;
154
153
  height: string | number;
155
154
  scale: boolean;
155
+ lazy: boolean;
156
156
  images: MazGalleryImage[];
157
157
  imagesShownCount: number;
158
158
  noRemaining: boolean;
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazGallery-Dpo7kTFH.mjs";
1
+ import { M as f } from "./chunks/MazGallery-BOmH2smL.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -72,9 +72,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
72
72
  }>, {
73
73
  title: string;
74
74
  path: string;
75
- name: string;
76
75
  size: string;
77
76
  src: string;
77
+ name: string;
78
78
  transformSource: (param: SVGElement) => typeof param;
79
79
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
80
80
  export default _default;
@@ -56,7 +56,7 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
56
56
  min: number;
57
57
  modelValue: number;
58
58
  step: number;
59
- inputmode: "search" | "text" | "email" | "tel" | "none" | "decimal" | "url" | "numeric";
59
+ inputmode: "search" | "text" | "none" | "email" | "tel" | "decimal" | "url" | "numeric";
60
60
  noButtons: boolean;
61
61
  textCenter: boolean;
62
62
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -48,8 +48,8 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
48
48
  }>, {
49
49
  max: number;
50
50
  min: number;
51
- currency: string;
52
51
  modelValue: number;
52
+ currency: string;
53
53
  locale: string;
54
54
  noIcon: boolean;
55
55
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -39,9 +39,9 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
39
39
  label: string;
40
40
  style: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
41
41
  error: boolean;
42
- size: Size;
43
42
  success: boolean;
44
43
  warning: boolean;
44
+ size: Size;
45
45
  color: Color;
46
46
  class: HTMLAttributes["class"];
47
47
  disabled: boolean;
@@ -36,7 +36,10 @@ export interface Props {
36
36
  underline?: boolean;
37
37
  /** Add an underline only on hover */
38
38
  underlineOnlyHover?: boolean;
39
- /** Add an external icon to the link if target is '_blank' */
39
+ /**
40
+ * Add an external icon to the link if target is '_blank'
41
+ * @default true
42
+ */
40
43
  autoExternal?: boolean;
41
44
  /**
42
45
  * The name of the icon or component to display on the left of the text
@@ -69,11 +72,12 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
69
72
  to: RouteLocationRaw;
70
73
  id: string;
71
74
  target: "_blank" | "_self" | "_parent" | "_top" | string;
75
+ underline: boolean;
72
76
  download: string;
73
77
  rel: string;
74
78
  ariaLabel: string;
75
- underline: boolean;
76
79
  underlineOnlyHover: boolean;
80
+ autoExternal: boolean;
77
81
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
78
82
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
79
83
  export default _default;
@@ -7,13 +7,13 @@ import './assets/MazLink.css';const m = /* @__PURE__ */ p({
7
7
  href: { default: "#" },
8
8
  to: { default: void 0 },
9
9
  color: { default: "primary" },
10
- target: { default: "_slef" },
10
+ target: { default: "_self" },
11
11
  download: { default: void 0 },
12
12
  rel: { default: void 0 },
13
13
  ariaLabel: { default: void 0 },
14
14
  underline: { type: Boolean, default: !1 },
15
15
  underlineOnlyHover: { type: Boolean, default: !0 },
16
- autoExternal: { type: Boolean },
16
+ autoExternal: { type: Boolean, default: !0 },
17
17
  leftIcon: { type: [String, Function, Object], default: void 0 },
18
18
  rightIcon: { type: [String, Function, Object], default: void 0 }
19
19
  },
@@ -77,7 +77,7 @@ import './assets/MazLink.css';const m = /* @__PURE__ */ p({
77
77
  for (const [e, u] of i)
78
78
  o[e] = u;
79
79
  return o;
80
- }, k = /* @__PURE__ */ v(m, [["__scopeId", "data-v-4779a8e3"]]);
80
+ }, k = /* @__PURE__ */ v(m, [["__scopeId", "data-v-b1120a61"]]);
81
81
  export {
82
82
  k as default
83
83
  };
@@ -18,11 +18,11 @@ type __VLS_PublicProps = {
18
18
  modelValue?: string;
19
19
  } & typeof __VLS_typeProps;
20
20
  declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
- "update:modelValue": (modelValue: string) => any;
22
21
  "update:model-value": (phoneNumber?: string | undefined) => any;
22
+ "update:modelValue": (modelValue: string) => any;
23
23
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
24
- "onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
25
24
  "onUpdate:model-value"?: ((phoneNumber?: string | undefined) => any) | undefined;
25
+ "onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
26
26
  }>, {
27
27
  label: string;
28
28
  placeholder: string;
@@ -96,6 +96,16 @@ export interface Props {
96
96
  * @values "row" | "col" | "responsive"
97
97
  */
98
98
  orientation?: 'row' | 'col' | 'responsive';
99
+ /**
100
+ * Meta attributes of the country input
101
+ * @default {Record<string, unknown>} { autocomplete: 'off', name: 'country' }
102
+ */
103
+ countrySelectAttributes?: Record<string, unknown>;
104
+ /**
105
+ * Meta attributes of the phone number input
106
+ * @default {Record<string, unknown>} { autocomplete: 'tel', name: 'phone', inputmode: 'tel' }
107
+ */
108
+ phoneInputAttributes?: Record<string, unknown>;
99
109
  }
100
110
  interface SelectionRange {
101
111
  start?: number | null;
@@ -138,11 +148,11 @@ declare function __VLS_template(): {
138
148
  autoFormat?: boolean;
139
149
  noFormattingAsYouType?: boolean;
140
150
  }> & Readonly<{
141
- "onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
142
151
  "onUpdate:model-value"?: ((phoneNumber?: string | undefined) => any) | undefined;
152
+ "onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
143
153
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
144
- "update:modelValue": (modelValue: string) => any;
145
154
  "update:model-value": (phoneNumber?: string | undefined) => any;
155
+ "update:modelValue": (modelValue: string) => any;
146
156
  }, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<{
147
157
  modelValue?: string;
148
158
  } & {
@@ -160,8 +170,8 @@ declare function __VLS_template(): {
160
170
  autoFormat?: boolean;
161
171
  noFormattingAsYouType?: boolean;
162
172
  }> & Readonly<{
163
- "onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
164
173
  "onUpdate:model-value"?: ((phoneNumber?: string | undefined) => any) | undefined;
174
+ "onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
165
175
  }>, {
166
176
  label: string;
167
177
  placeholder: string;
@@ -189,8 +199,8 @@ declare function __VLS_template(): {
189
199
  autoFormat?: boolean;
190
200
  noFormattingAsYouType?: boolean;
191
201
  }> & Readonly<{
192
- "onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
193
202
  "onUpdate:model-value"?: ((phoneNumber?: string | undefined) => any) | undefined;
203
+ "onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
194
204
  }>, {}, {}, {}, {}, {
195
205
  label: string;
196
206
  placeholder: string;
@@ -201,14 +211,14 @@ declare function __VLS_template(): {
201
211
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
202
212
  declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
203
213
  data: (results: Results) => any;
204
- update: (results: Results) => any;
205
214
  "update:model-value": (value: string) => any;
215
+ update: (results: Results) => any;
206
216
  "country-code": (countryCode?: CountryCode | undefined) => any;
207
217
  "update:country-code": (countryCode?: CountryCode | undefined) => any;
208
218
  }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
209
219
  onData?: ((results: Results) => any) | undefined;
210
- onUpdate?: ((results: Results) => any) | undefined;
211
220
  "onUpdate:model-value"?: ((value: string) => any) | undefined;
221
+ onUpdate?: ((results: Results) => any) | undefined;
212
222
  "onCountry-code"?: ((countryCode?: CountryCode | undefined) => any) | undefined;
213
223
  "onUpdate:country-code"?: ((countryCode?: CountryCode | undefined) => any) | undefined;
214
224
  }>, {
@@ -236,6 +246,8 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
236
246
  defaultCountryCode: CountryCode;
237
247
  translations: Partial<Translations>;
238
248
  countrySelectorWidth: string;
249
+ countrySelectAttributes: Record<string, unknown>;
250
+ phoneInputAttributes: Record<string, unknown>;
239
251
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
240
252
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
241
253
  export default _default;