maz-ui 3.46.1-beta.6 → 3.47.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 (139) hide show
  1. package/components/MazAccordion.mjs +30 -30
  2. package/components/MazBottomSheet.mjs +1 -1
  3. package/components/MazBtn.mjs +1 -1
  4. package/components/MazCard.mjs +1 -1
  5. package/components/MazCardSpotlight.mjs +15 -15
  6. package/components/MazCarousel.mjs +1 -1
  7. package/components/MazChecklist.d.ts +79 -0
  8. package/components/MazChecklist.mjs +4 -0
  9. package/components/MazDialog.mjs +1 -1
  10. package/components/MazDialogPromise.d.ts +2 -0
  11. package/components/MazDialogPromise.mjs +1 -1
  12. package/components/MazDrawer.mjs +1 -1
  13. package/components/MazDropdown.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/MazPagination.mjs +1 -1
  19. package/components/MazPhoneNumberInput.mjs +1 -1
  20. package/components/MazPicker.d.ts +1 -1
  21. package/components/MazPicker.mjs +1 -1
  22. package/components/MazSelect.mjs +1 -1
  23. package/components/MazTable.mjs +1 -1
  24. package/components/assets/MazAccordion.css +1 -1
  25. package/components/assets/MazBtn.css +1 -1
  26. package/components/assets/MazCardSpotlight.css +1 -1
  27. package/components/assets/MazChecklist.css +1 -0
  28. package/components/assets/MazDialog.css +1 -1
  29. package/components/assets/MazDialogPromise.css +1 -1
  30. package/components/assets/MazDropdown.css +1 -1
  31. package/components/assets/MazInputNumber.css +1 -1
  32. package/components/assets/MazInputTags.css +1 -1
  33. package/components/assets/MazPagination.css +1 -1
  34. package/components/assets/MazPicker.css +1 -1
  35. package/components/assets/MazTabsBar.css +1 -1
  36. package/components/chunks/{MazBottomSheet-DeAah_or.mjs → MazBottomSheet-BvdiOa8P.mjs} +1 -1
  37. package/components/chunks/{MazBtn-CESOVC-a.mjs → MazBtn-4g56EBmg.mjs} +1 -1
  38. package/components/chunks/{MazBtn-CRpqDW12.mjs → MazBtn-4jMQE2G-.mjs} +3 -3
  39. package/components/chunks/MazBtn-B3i4Ypas.mjs +118 -0
  40. package/components/chunks/MazBtn-B7rKmEGw.mjs +118 -0
  41. package/components/chunks/{MazBtn-BV212IYv.mjs → MazBtn-BAxR_dt3.mjs} +3 -3
  42. package/components/chunks/{MazBtn-C2htID_X.mjs → MazBtn-BF48_wJx.mjs} +3 -3
  43. package/components/chunks/{MazBtn-BXvObcWn.mjs → MazBtn-BRdMg4tc.mjs} +3 -3
  44. package/components/chunks/{MazBtn-C5IbN0rp.mjs → MazBtn-BvirhKh3.mjs} +11 -11
  45. package/components/chunks/{MazBtn-C2dJYsnq.mjs → MazBtn-CEOWwReA.mjs} +3 -3
  46. package/components/chunks/MazBtn-CGYoHDXm.mjs +118 -0
  47. package/components/chunks/{MazBtn-zMzxqcCs.mjs → MazBtn-CVDDOeLF.mjs} +11 -11
  48. package/components/chunks/MazBtn-D6T9wOxO.mjs +118 -0
  49. package/components/chunks/{MazBtn-CEFfMm7k.mjs → MazBtn-DYMxHlYa.mjs} +3 -3
  50. package/components/chunks/{MazBtn-C4xZC-A2.mjs → MazBtn-D_IQO-P2.mjs} +3 -3
  51. package/components/chunks/{MazCard-BF-2_gZV.mjs → MazCard-StYuQv11.mjs} +1 -1
  52. package/components/chunks/{MazCarousel-DVBUt8NL.mjs → MazCarousel-DEO7Tz8F.mjs} +1 -1
  53. package/components/chunks/{MazCheckbox-mgtQBs4K.mjs → MazCheckbox-CtiUQoBe.mjs} +1 -1
  54. package/components/chunks/{MazCheckbox-CeVxgVY8.mjs → MazCheckbox-D9RW0OPf.mjs} +1 -1
  55. package/components/chunks/{MazCheckbox-CEfJco3U.mjs → MazCheckbox-TiwCiE2s.mjs} +1 -1
  56. package/components/chunks/MazChecklist-B9bw1Mn4.mjs +484 -0
  57. package/components/chunks/{MazDialog-fn7vXgBg.mjs → MazDialog-C3urFx7y.mjs} +50 -54
  58. package/components/chunks/{MazDialogPromise-C8dpQb5k.mjs → MazDialogPromise-BuOWwo6n.mjs} +40 -44
  59. package/components/chunks/{MazGallery-CXJsK5ve.mjs → MazGallery-DLNvXEka.mjs} +2 -2
  60. package/components/chunks/{MazIcon-BXX3RaoN.mjs → MazIcon-DyrYf9Sl.mjs} +1 -1
  61. package/components/chunks/{MazInput-Dnwxraz4.mjs → MazInput-BZ2U145p.mjs} +1 -1
  62. package/components/chunks/MazInput-Bq_SbBRE.mjs +290 -0
  63. package/components/chunks/{MazInput-AcA93-8Q.mjs → MazInput-_rEW9XWJ.mjs} +2 -2
  64. package/components/chunks/{MazInputNumber-OY_UqCMs.mjs → MazInputNumber-G8880Neu.mjs} +2 -2
  65. package/components/chunks/{MazInputPrice-DvVAZa12.mjs → MazInputPrice-DROLM9PX.mjs} +1 -1
  66. package/components/chunks/{MazInputTags-DKlGT2IB.mjs → MazInputTags-BRmcZBo4.mjs} +2 -2
  67. package/components/chunks/{MazLoadingBar-By1umvdC.mjs → MazLoadingBar-DHFjKEEm.mjs} +1 -1
  68. package/components/chunks/{MazPagination-BL9LU84U.mjs → MazPagination-6MyYnTer.mjs} +2 -2
  69. package/components/chunks/{MazPhoneNumberInput-C7gUk5lg.mjs → MazPhoneNumberInput-r6OjPeRI.mjs} +3 -3
  70. package/components/chunks/{MazPicker-Dhm3u2MN.mjs → MazPicker-B28fQccE.mjs} +3 -3
  71. package/components/chunks/{MazPickerMonthSwitcher-ck8cl1-N.mjs → MazPickerMonthSwitcher-DrtbXCca.mjs} +1 -1
  72. package/components/chunks/{MazPickerShortcuts-hEpUqVC-.mjs → MazPickerShortcuts-TbhHaKoJ.mjs} +1 -1
  73. package/components/chunks/{MazPickerYearSwitcher-CmMxOc69.mjs → MazPickerYearSwitcher-KwUBj6Cb.mjs} +1 -1
  74. package/components/chunks/{MazSelect-ed445MXs.mjs → MazSelect-BvC9QQ6M.mjs} +2 -2
  75. package/components/chunks/{MazSelect-CGsMRdr7.mjs → MazSelect-DyQC9j4n.mjs} +3 -3
  76. package/components/chunks/{MazSpinner-Akyx5wgU.mjs → MazSpinner-3vO8e4FF.mjs} +1 -1
  77. package/components/chunks/MazSpinner-B0291afs.mjs +37 -0
  78. package/components/chunks/MazSpinner-B0aGd8rG.mjs +37 -0
  79. package/components/chunks/{MazSpinner-DbaTlD5B.mjs → MazSpinner-BziSiJFV.mjs} +1 -1
  80. package/components/chunks/MazSpinner-CKX-8iim.mjs +37 -0
  81. package/components/chunks/MazSpinner-CQ2XrZIS.mjs +37 -0
  82. package/components/chunks/{MazSpinner-B2dsE23u.mjs → MazSpinner-CRW667yE.mjs} +1 -1
  83. package/components/chunks/{MazSpinner-BCOeuzTB.mjs → MazSpinner-D-7IOf2L.mjs} +1 -1
  84. package/components/chunks/MazSpinner-D0t4IJyq.mjs +37 -0
  85. package/components/chunks/{MazSpinner-C9meLNrb.mjs → MazSpinner-D5hiFgo4.mjs} +1 -1
  86. package/components/chunks/{MazSpinner-CKOy0M1T.mjs → MazSpinner-DkXUB0w5.mjs} +1 -1
  87. package/components/chunks/{MazSpinner-BakExtKd.mjs → MazSpinner-DyVjCwmM.mjs} +1 -1
  88. package/components/chunks/MazSpinner-HZYglQFY.mjs +37 -0
  89. package/components/chunks/MazSpinner-JpzVmSvW.mjs +37 -0
  90. package/components/chunks/MazSpinner-Nu5h2A6E.mjs +37 -0
  91. package/components/chunks/MazSpinner-S6Bx7B15.mjs +37 -0
  92. package/components/chunks/MazSpinner-wR0F3mAY.mjs +37 -0
  93. package/components/chunks/{MazTable-QwG-Kh88.mjs → MazTable-DozpABdn.mjs} +1 -1
  94. package/components/chunks/{MazTableCell-BSNyqTSX.mjs → MazTableCell-DPgvJ7vY.mjs} +1 -1
  95. package/components/chunks/{MazTableRow-CgubMdrX.mjs → MazTableRow-CCcjwAV1.mjs} +1 -1
  96. package/components/chunks/{MazTableTitle-h4dattYD.mjs → MazTableTitle-Df7F9Cjh.mjs} +1 -1
  97. package/components/chunks/{MazTransitionExpand-BvqRDM9d.mjs → MazTransitionExpand--vHzXjx7.mjs} +1 -1
  98. package/components/index.d.ts +1 -0
  99. package/components/index.mjs +1 -0
  100. package/css/main.css +1 -1
  101. package/modules/assets/MazBtn.css +1 -1
  102. package/modules/assets/index.css +1 -1
  103. package/modules/chunks/{MazBtn-DvffpPyV.mjs → MazBtn-BVxI1WwF.mjs} +3 -3
  104. package/modules/chunks/{MazBtn-DeAZcD0R.cjs → MazBtn-DrB5FzZN.cjs} +2 -2
  105. package/modules/chunks/{MazIcon-BiwOZEZl.cjs → MazIcon-BMJqOZnG.cjs} +1 -1
  106. package/modules/chunks/{MazIcon-D2B0umvn.mjs → MazIcon-b8WRy8OV.mjs} +1 -1
  107. package/modules/chunks/{MazSpinner-CZIYnX05.cjs → MazSpinner-6H0uaGkV.cjs} +1 -1
  108. package/modules/chunks/{MazSpinner-Csgl_Uho.mjs → MazSpinner-B-Tki1aV.mjs} +1 -1
  109. package/modules/chunks/{index-C34aEXzu.mjs → index-Ch4k74ro.mjs} +1066 -875
  110. package/modules/chunks/index-G8fhXnFU.cjs +149 -0
  111. package/modules/index.cjs +1 -1
  112. package/modules/index.mjs +37 -35
  113. package/nuxt/index.d.mts +20 -20
  114. package/nuxt/index.d.ts +20 -20
  115. package/nuxt/index.json +1 -1
  116. package/nuxt/index.mjs +26 -5
  117. package/package.json +1 -1
  118. package/resolvers/index.cjs +1 -1
  119. package/resolvers/index.mjs +3 -1
  120. package/types/components/MazChecklist.vue.d.ts +79 -0
  121. package/types/components/MazDialogPromise.vue.d.ts +2 -0
  122. package/types/components/MazPicker.vue.d.ts +1 -1
  123. package/types/components/index.d.ts +1 -0
  124. package/types/modules/composables/index.d.ts +1 -0
  125. package/types/modules/composables/useLanguageDisplayNames.d.ts +17 -0
  126. package/types/modules/helpers/normalize-string.d.ts +1 -2
  127. package/components/chunks/MazBtn-CLFly8Ie.mjs +0 -118
  128. package/components/chunks/MazBtn-D2H26ExI.mjs +0 -118
  129. package/components/chunks/MazBtn-y4vRRWDg.mjs +0 -118
  130. package/components/chunks/MazSpinner-CL6orjX7.mjs +0 -37
  131. package/components/chunks/MazSpinner-CQTq0J6f.mjs +0 -37
  132. package/components/chunks/MazSpinner-CeZk8jA9.mjs +0 -37
  133. package/components/chunks/MazSpinner-CqS3onAE.mjs +0 -37
  134. package/components/chunks/MazSpinner-D1zj-581.mjs +0 -37
  135. package/components/chunks/MazSpinner-DJ2t85tY.mjs +0 -37
  136. package/components/chunks/MazSpinner-DgJ9tVv_.mjs +0 -37
  137. package/components/chunks/MazSpinner-DoKvoICM.mjs +0 -37
  138. package/components/chunks/MazSpinner-Oy4E193R.mjs +0 -37
  139. package/modules/chunks/index-B6Pf_QhC.cjs +0 -149
@@ -1,5 +1,5 @@
1
- import { defineComponent as T, ref as L, onMounted as S, watch as O, openBlock as u, createBlock as g, Teleport as F, createVNode as N, Transition as P, withCtx as h, createElementBlock as B, normalizeClass as E, createElementVNode as v, withModifiers as H, mergeProps as A, renderSlot as f, createCommentVNode as a, defineAsyncComponent as V, useAttrs as K, computed as w, createTextVNode as W, toDisplayString as I, unref as z } from "vue";
2
- import '../assets/MazDialog.css';const M = "--backdrop-present", q = /* @__PURE__ */ T({
1
+ import { defineComponent as M, ref as T, onMounted as N, watch as S, openBlock as u, createBlock as g, Teleport as O, createVNode as F, Transition as P, withCtx as L, createElementBlock as h, normalizeClass as B, createElementVNode as v, withModifiers as H, mergeProps as E, renderSlot as f, createCommentVNode as a, defineAsyncComponent as D, useAttrs as K, computed as V, createTextVNode as W, toDisplayString as I, unref as w } from "vue";
2
+ import '../assets/MazDialog.css';const z = "--backdrop-present", q = /* @__PURE__ */ M({
3
3
  inheritAttrs: !1,
4
4
  __name: "MazBackdrop",
5
5
  props: {
@@ -16,12 +16,12 @@ import '../assets/MazDialog.css';const M = "--backdrop-present", q = /* @__PURE_
16
16
  setup(i, { expose: m, emit: d }) {
17
17
  const t = i, l = d;
18
18
  function p() {
19
- document.documentElement.classList.add(M);
19
+ document.documentElement.classList.add(z);
20
20
  }
21
21
  async function b() {
22
- document.querySelector(".m-backdrop.--present") || document.documentElement.classList.remove(M);
22
+ document.querySelector(".m-backdrop.--present") || document.documentElement.classList.remove(z);
23
23
  }
24
- const r = L(t.modelValue);
24
+ const r = T(t.modelValue);
25
25
  function c() {
26
26
  e(!1);
27
27
  }
@@ -29,52 +29,52 @@ import '../assets/MazDialog.css';const M = "--backdrop-present", q = /* @__PURE_
29
29
  var C;
30
30
  o || (l("before-close"), await ((C = t.beforeClose) == null ? void 0 : C.call(t))), r.value = o;
31
31
  }
32
- function n() {
32
+ function s() {
33
33
  l("open");
34
34
  }
35
- function s() {
35
+ function n() {
36
36
  l("update:model-value", !1), l("close"), y();
37
37
  }
38
- function $() {
38
+ function A() {
39
39
  t.persistent || c();
40
40
  }
41
41
  function k(o) {
42
42
  !t.noCloseOnEscKey && o.key === "Escape" && !t.persistent && c();
43
43
  }
44
- function D() {
44
+ function $() {
45
45
  p(), document.addEventListener("keyup", k, !1);
46
46
  }
47
47
  function y() {
48
48
  document.removeEventListener("keyup", k), b();
49
49
  }
50
- return S(() => {
51
- t.modelValue ? D() : y();
52
- }), O(
50
+ return N(() => {
51
+ t.modelValue ? $() : y();
52
+ }), S(
53
53
  () => t.modelValue,
54
54
  (o) => {
55
- r.value = o, o ? D() : y();
55
+ r.value = o, o ? $() : y();
56
56
  }
57
57
  ), m({
58
- onBackdropAnimationEnter: n,
59
- onBackdropAnimationLeave: s,
60
- onBackdropClicked: $,
58
+ onBackdropAnimationEnter: s,
59
+ onBackdropAnimationLeave: n,
60
+ onBackdropClicked: A,
61
61
  close: c,
62
62
  present: r,
63
63
  toggleModal: e,
64
64
  onKeyPress: k
65
- }), (o, C) => (u(), g(F, { to: o.teleportSelector }, [
66
- N(P, {
65
+ }), (o, C) => (u(), g(O, { to: o.teleportSelector }, [
66
+ F(P, {
67
67
  appear: "",
68
68
  name: o.transitionName,
69
- onAfterEnter: n,
70
- onAfterLeave: s
69
+ onAfterEnter: s,
70
+ onAfterLeave: n
71
71
  }, {
72
- default: h(() => [
73
- r.value ? (u(), B(
72
+ default: L(() => [
73
+ r.value ? (u(), h(
74
74
  "div",
75
75
  {
76
76
  key: 0,
77
- class: E(["m-backdrop --present", [o.backdropClass]]),
77
+ class: B(["m-backdrop --present", [o.backdropClass]]),
78
78
  tabindex: "-1",
79
79
  role: "dialog"
80
80
  },
@@ -82,9 +82,9 @@ import '../assets/MazDialog.css';const M = "--backdrop-present", q = /* @__PURE_
82
82
  v(
83
83
  "button",
84
84
  {
85
- class: E(["m-backdrop-overlay", { "--disabled": o.persistent }]),
85
+ class: B(["m-backdrop-overlay", { "--disabled": o.persistent }]),
86
86
  tabindex: "-1",
87
- onClick: H($, ["self"])
87
+ onClick: H(A, ["self"])
88
88
  },
89
89
  null,
90
90
  2
@@ -92,7 +92,7 @@ import '../assets/MazDialog.css';const M = "--backdrop-present", q = /* @__PURE_
92
92
  ),
93
93
  v(
94
94
  "div",
95
- A({
95
+ E({
96
96
  class: ["m-backdrop-content", o.backdropContentClass]
97
97
  }, o.$attrs, {
98
98
  role: "document",
@@ -124,7 +124,7 @@ import '../assets/MazDialog.css';const M = "--backdrop-present", q = /* @__PURE_
124
124
  }, j = {
125
125
  key: 0,
126
126
  class: "m-dialog-footer"
127
- }, G = /* @__PURE__ */ T({
127
+ }, G = /* @__PURE__ */ M({
128
128
  __name: "MazDialog",
129
129
  props: {
130
130
  modelValue: { type: Boolean },
@@ -144,22 +144,22 @@ import '../assets/MazDialog.css';const M = "--backdrop-present", q = /* @__PURE_
144
144
  },
145
145
  emits: ["open", "close", "update:model-value"],
146
146
  setup(i, { expose: m }) {
147
- const d = i, t = V(() => import("./MazBtn-CEFfMm7k.mjs")), l = V(() => import("./x-mark-CnZwVvA7.mjs")), p = K(), b = L();
147
+ const d = i, t = D(() => import("./MazBtn-4jMQE2G-.mjs")), l = D(() => import("./x-mark-CnZwVvA7.mjs")), p = K(), b = T();
148
148
  m({
149
149
  close: () => {
150
- var e, n;
151
- return (n = (e = b.value) == null ? void 0 : e.close) == null ? void 0 : n.call(e);
150
+ var e, s;
151
+ return (s = (e = b.value) == null ? void 0 : e.close) == null ? void 0 : s.call(e);
152
152
  }
153
153
  });
154
- const r = w(() => ({
154
+ const r = V(() => ({
155
155
  ...p,
156
156
  class: void 0,
157
157
  style: void 0
158
- })), c = w(() => ({
158
+ })), c = V(() => ({
159
159
  class: p.class,
160
160
  style: p.style
161
161
  }));
162
- return (e, n) => (u(), g(q, A({ ...r.value, ...d }, {
162
+ return (e, s) => (u(), g(q, E({ ...r.value, ...d }, {
163
163
  ref_key: "backdrop",
164
164
  ref: b,
165
165
  persistent: e.persistent,
@@ -167,14 +167,14 @@ import '../assets/MazDialog.css';const M = "--backdrop-present", q = /* @__PURE_
167
167
  "transition-name": "modal-anim",
168
168
  "aria-labelledby": "dialogTitle",
169
169
  "aria-describedby": "dialogDesc",
170
- onClose: n[0] || (n[0] = (s) => e.$emit("close", s)),
171
- onOpen: n[1] || (n[1] = (s) => e.$emit("open", s)),
172
- "onUpdate:modelValue": n[2] || (n[2] = (s) => e.$emit("update:model-value", s))
170
+ onClose: s[0] || (s[0] = (n) => e.$emit("close", n)),
171
+ onOpen: s[1] || (s[1] = (n) => e.$emit("open", n)),
172
+ "onUpdate:modelValue": s[2] || (s[2] = (n) => e.$emit("update:model-value", n))
173
173
  }), {
174
- default: h(({ close: s }) => [
174
+ default: L(({ close: n }) => [
175
175
  v(
176
176
  "div",
177
- A({
177
+ E({
178
178
  class: ["m-dialog", { "--scrollable": e.scrollable }],
179
179
  role: "dialog",
180
180
  "aria-modal": "true",
@@ -185,14 +185,14 @@ import '../assets/MazDialog.css';const M = "--backdrop-present", q = /* @__PURE_
185
185
  @slot Header slot
186
186
  @binding {Function} close close function
187
187
  `),
188
- f(e.$slots, "header", { close: s }, () => [
188
+ f(e.$slots, "header", { close: n }, () => [
189
189
  v(
190
190
  "div",
191
191
  {
192
- class: E(["m-dialog-header", { "--has-title": e.$slots.title || e.title }])
192
+ class: B(["m-dialog-header", { "--has-title": e.$slots.title || e.title }])
193
193
  },
194
194
  [
195
- e.$slots.title || e.title ? (u(), B("h2", U, [
195
+ e.$slots.title || e.title ? (u(), h("h2", U, [
196
196
  a(`
197
197
  @slot Title slot in the header
198
198
  `),
@@ -204,18 +204,14 @@ import '../assets/MazDialog.css';const M = "--backdrop-present", q = /* @__PURE_
204
204
  )
205
205
  ], !0)
206
206
  ])) : a("v-if", !0),
207
- !e.noClose && !e.persistent ? (u(), g(z(t), {
207
+ !e.noClose && !e.persistent ? (u(), g(w(t), {
208
208
  key: 1,
209
209
  class: "m-dialog-closebtn",
210
210
  color: "transparent",
211
- onClick: s
212
- }, {
213
- default: h(() => [
214
- N(z(l), { class: "maz-text-lg" })
215
- ]),
216
- _: 2
217
- /* DYNAMIC */
218
- }, 1032, ["onClick"])) : a("v-if", !0)
211
+ size: "sm",
212
+ icon: w(l),
213
+ onClick: n
214
+ }, null, 8, ["icon", "onClick"])) : a("v-if", !0)
219
215
  ],
220
216
  2
221
217
  /* CLASS */
@@ -226,14 +222,14 @@ import '../assets/MazDialog.css';const M = "--backdrop-present", q = /* @__PURE_
226
222
  @slot Default content
227
223
  @binding {Function} close close function
228
224
  `),
229
- f(e.$slots, "default", { close: s }, void 0, !0)
225
+ f(e.$slots, "default", { close: n }, void 0, !0)
230
226
  ]),
231
- e.$slots.footer ? (u(), B("div", j, [
227
+ e.$slots.footer ? (u(), h("div", j, [
232
228
  a(`
233
229
  @slot Footer slot
234
230
  @binding {Function} close close function
235
231
  `),
236
- f(e.$slots, "footer", { close: s }, void 0, !0)
232
+ f(e.$slots, "footer", { close: n }, void 0, !0)
237
233
  ])) : a("v-if", !0)
238
234
  ],
239
235
  16
@@ -249,7 +245,7 @@ import '../assets/MazDialog.css';const M = "--backdrop-present", q = /* @__PURE_
249
245
  for (const [t, l] of m)
250
246
  d[t] = l;
251
247
  return d;
252
- }, R = /* @__PURE__ */ J(G, [["__scopeId", "data-v-948f8cae"]]);
248
+ }, R = /* @__PURE__ */ J(G, [["__scopeId", "data-v-50775b17"]]);
253
249
  export {
254
250
  R as M,
255
251
  J as _
@@ -1,4 +1,4 @@
1
- import { defineComponent as N, ref as S, onMounted as U, watch as q, openBlock as v, createBlock as D, Teleport as X, createVNode as x, Transition as G, withCtx as b, createElementBlock as P, normalizeClass as M, createElementVNode as V, withModifiers as J, mergeProps as A, renderSlot as C, createCommentVNode as d, defineAsyncComponent as L, useAttrs as Q, computed as h, createTextVNode as w, toDisplayString as T, unref as p, Fragment as H, renderList as R } from "vue";
1
+ import { defineComponent as N, ref as S, onMounted as I, watch as U, openBlock as v, createBlock as D, Teleport as q, createVNode as X, Transition as G, withCtx as k, createElementBlock as P, normalizeClass as M, createElementVNode as V, withModifiers as J, mergeProps as A, renderSlot as C, createCommentVNode as d, defineAsyncComponent as L, useAttrs as Q, computed as h, createTextVNode as w, toDisplayString as T, unref as p, Fragment as H, renderList as R } from "vue";
2
2
  import '../assets/MazDialogPromise.css';const K = "--backdrop-present", Y = /* @__PURE__ */ N({
3
3
  inheritAttrs: !1,
4
4
  __name: "MazBackdrop",
@@ -22,7 +22,7 @@ import '../assets/MazDialogPromise.css';const K = "--backdrop-present", Y = /* @
22
22
  document.querySelector(".m-backdrop.--present") || document.documentElement.classList.remove(K);
23
23
  }
24
24
  const m = S(a.modelValue);
25
- function g() {
25
+ function b() {
26
26
  t(!1);
27
27
  }
28
28
  async function t(e) {
@@ -36,10 +36,10 @@ import '../assets/MazDialogPromise.css';const K = "--backdrop-present", Y = /* @
36
36
  c("update:model-value", !1), c("close"), F();
37
37
  }
38
38
  function f() {
39
- a.persistent || g();
39
+ a.persistent || b();
40
40
  }
41
41
  function E(e) {
42
- !a.noCloseOnEscKey && e.key === "Escape" && !a.persistent && g();
42
+ !a.noCloseOnEscKey && e.key === "Escape" && !a.persistent && b();
43
43
  }
44
44
  function O() {
45
45
  y(), document.addEventListener("keyup", E, !1);
@@ -47,9 +47,9 @@ import '../assets/MazDialogPromise.css';const K = "--backdrop-present", Y = /* @
47
47
  function F() {
48
48
  document.removeEventListener("keyup", E), B();
49
49
  }
50
- return U(() => {
50
+ return I(() => {
51
51
  a.modelValue ? O() : F();
52
- }), q(
52
+ }), U(
53
53
  () => a.modelValue,
54
54
  (e) => {
55
55
  m.value = e, e ? O() : F();
@@ -58,18 +58,18 @@ import '../assets/MazDialogPromise.css';const K = "--backdrop-present", Y = /* @
58
58
  onBackdropAnimationEnter: u,
59
59
  onBackdropAnimationLeave: r,
60
60
  onBackdropClicked: f,
61
- close: g,
61
+ close: b,
62
62
  present: m,
63
63
  toggleModal: t,
64
64
  onKeyPress: E
65
- }), (e, n) => (v(), D(X, { to: e.teleportSelector }, [
66
- x(G, {
65
+ }), (e, n) => (v(), D(q, { to: e.teleportSelector }, [
66
+ X(G, {
67
67
  appear: "",
68
68
  name: e.transitionName,
69
69
  onAfterEnter: u,
70
70
  onAfterLeave: r
71
71
  }, {
72
- default: b(() => [
72
+ default: k(() => [
73
73
  m.value ? (v(), P(
74
74
  "div",
75
75
  {
@@ -99,7 +99,7 @@ import '../assets/MazDialogPromise.css';const K = "--backdrop-present", Y = /* @
99
99
  tabindex: "0"
100
100
  }),
101
101
  [
102
- C(e.$slots, "default", { close: g })
102
+ C(e.$slots, "default", { close: b })
103
103
  ],
104
104
  16
105
105
  /* FULL_PROPS */
@@ -144,7 +144,7 @@ import '../assets/MazDialogPromise.css';const K = "--backdrop-present", Y = /* @
144
144
  },
145
145
  emits: ["open", "close", "update:model-value"],
146
146
  setup(i, { expose: s }) {
147
- const l = i, a = L(() => import("./MazBtn-CLFly8Ie.mjs")), c = L(() => import("./x-mark-CnZwVvA7.mjs")), y = Q(), B = S();
147
+ const l = i, a = L(() => import("./MazBtn-B3i4Ypas.mjs")), c = L(() => import("./x-mark-CnZwVvA7.mjs")), y = Q(), B = S();
148
148
  s({
149
149
  close: () => {
150
150
  var t, u;
@@ -155,7 +155,7 @@ import '../assets/MazDialogPromise.css';const K = "--backdrop-present", Y = /* @
155
155
  ...y,
156
156
  class: void 0,
157
157
  style: void 0
158
- })), g = h(() => ({
158
+ })), b = h(() => ({
159
159
  class: y.class,
160
160
  style: y.style
161
161
  }));
@@ -171,7 +171,7 @@ import '../assets/MazDialogPromise.css';const K = "--backdrop-present", Y = /* @
171
171
  onOpen: u[1] || (u[1] = (r) => t.$emit("open", r)),
172
172
  "onUpdate:modelValue": u[2] || (u[2] = (r) => t.$emit("update:model-value", r))
173
173
  }), {
174
- default: b(({ close: r }) => [
174
+ default: k(({ close: r }) => [
175
175
  V(
176
176
  "div",
177
177
  A({
@@ -179,7 +179,7 @@ import '../assets/MazDialogPromise.css';const K = "--backdrop-present", Y = /* @
179
179
  role: "dialog",
180
180
  "aria-modal": "true",
181
181
  style: [{ width: t.width, maxWidth: t.maxWidth, maxHeight: t.maxHeight }]
182
- }, g.value),
182
+ }, b.value),
183
183
  [
184
184
  d(`
185
185
  @slot Header slot
@@ -208,14 +208,10 @@ import '../assets/MazDialogPromise.css';const K = "--backdrop-present", Y = /* @
208
208
  key: 1,
209
209
  class: "m-dialog-closebtn",
210
210
  color: "transparent",
211
+ size: "sm",
212
+ icon: p(c),
211
213
  onClick: r
212
- }, {
213
- default: b(() => [
214
- x(p(c), { class: "maz-text-lg" })
215
- ]),
216
- _: 2
217
- /* DYNAMIC */
218
- }, 1032, ["onClick"])) : d("v-if", !0)
214
+ }, null, 8, ["icon", "onClick"])) : d("v-if", !0)
219
215
  ],
220
216
  2
221
217
  /* CLASS */
@@ -249,7 +245,7 @@ import '../assets/MazDialogPromise.css';const K = "--backdrop-present", Y = /* @
249
245
  for (const [a, c] of s)
250
246
  l[a] = c;
251
247
  return l;
252
- }, ne = /* @__PURE__ */ oe(te, [["__scopeId", "data-v-948f8cae"]]), z = {
248
+ }, ne = /* @__PURE__ */ oe(te, [["__scopeId", "data-v-50775b17"]]), z = {
253
249
  cancelText: "Cancel",
254
250
  confirmText: "Confirm",
255
251
  cancelButton: {
@@ -278,13 +274,13 @@ function se(i, s) {
278
274
  ];
279
275
  });
280
276
  }
281
- function I(i) {
277
+ function x(i) {
282
278
  return j.value = j.value.filter(({ id: s }) => s !== i), j.value;
283
279
  }
284
280
  function W(i, s, l) {
285
281
  var a;
286
282
  s && ((a = s[i]) == null || a.call(s, l), s.isActive = !1, setTimeout(() => {
287
- I(s.id);
283
+ x(s.id);
288
284
  }, 500));
289
285
  }
290
286
  function ae() {
@@ -292,8 +288,8 @@ function ae() {
292
288
  data: le,
293
289
  dialogState: j,
294
290
  showDialogAndWaitChoice: se,
295
- removeDialogFromState: I,
296
- rejectDialog: async (i, s = "cancel", l) => (await (l == null ? void 0 : l()), W("reject", i, s)),
291
+ removeDialogFromState: x,
292
+ rejectDialog: async (i, s = new Error("cancel"), l) => (await (l == null ? void 0 : l()), W("reject", i, s)),
297
293
  resolveDialog: async (i, s = "accept", l) => (await (l == null ? void 0 : l()), W("resolve", i, s))
298
294
  };
299
295
  }
@@ -301,8 +297,8 @@ const ie = { class: "maz-flex maz-items-center maz-gap-2" }, de = /* @__PURE__ *
301
297
  __name: "MazDialogPromise",
302
298
  props: {
303
299
  data: { default: void 0 },
304
- message: {},
305
- identifier: {},
300
+ message: { default: void 0 },
301
+ identifier: { default: void 0 },
306
302
  buttons: { default: void 0 },
307
303
  modelValue: { type: Boolean },
308
304
  title: {},
@@ -325,20 +321,20 @@ const ie = { class: "maz-flex maz-items-center maz-gap-2" }, de = /* @__PURE__ *
325
321
  },
326
322
  emits: ["open", "close"],
327
323
  setup(i, { expose: s }) {
328
- const l = i, a = L(() => import("./MazBtn-CLFly8Ie.mjs")), { dialogState: c, rejectDialog: y, resolveDialog: B, data: m } = ae(), g = h(() => {
324
+ const l = i, a = L(() => import("./MazBtn-B3i4Ypas.mjs")), { dialogState: c, rejectDialog: y, resolveDialog: B, data: m } = ae(), b = h(() => {
329
325
  var e;
330
326
  return l.buttons ?? ((e = l.data) == null ? void 0 : e.buttons) ?? m.value.buttons;
331
327
  }), t = h(() => {
332
- var n, k, o, $;
333
- if (((n = m.value) == null ? void 0 : n.cancelButton) ?? ((k = l.data) == null ? void 0 : k.cancelButton) ?? z.cancelButton)
328
+ var n, g, o, $;
329
+ if (((n = m.value) == null ? void 0 : n.cancelButton) ?? ((g = l.data) == null ? void 0 : g.cancelButton) ?? z.cancelButton)
334
330
  return {
335
331
  ...z.cancelButton,
336
332
  ...(o = m.value) == null ? void 0 : o.cancelButton,
337
333
  ...($ = l.data) == null ? void 0 : $.cancelButton
338
334
  };
339
335
  }), u = h(() => {
340
- var n, k, o, $;
341
- if (((n = m.value) == null ? void 0 : n.confirmButton) ?? ((k = l.data) == null ? void 0 : k.confirmButton) ?? z.confirmButton)
336
+ var n, g, o, $;
337
+ if (((n = m.value) == null ? void 0 : n.confirmButton) ?? ((g = l.data) == null ? void 0 : g.confirmButton) ?? z.confirmButton)
342
338
  return {
343
339
  ...z.confirmButton,
344
340
  ...(o = m.value) == null ? void 0 : o.confirmButton,
@@ -364,17 +360,17 @@ const ie = { class: "maz-flex maz-items-center maz-gap-2" }, de = /* @__PURE__ *
364
360
  return O(n) ? n.type === "resolve" ? B(e, n.response) : y(e, n.response) : B(e, void 0, n.action);
365
361
  }
366
362
  return (e, n) => {
367
- var k;
363
+ var g;
368
364
  return v(), D(ne, A({
369
365
  ref_key: "dialog",
370
366
  ref: E
371
367
  }, { ...e.$attrs, ...l }, {
372
- "model-value": ((k = f.value) == null ? void 0 : k.isActive) ?? e.modelValue ?? !1,
368
+ "model-value": ((g = f.value) == null ? void 0 : g.isActive) ?? e.modelValue ?? !1,
373
369
  onClose: n[2] || (n[2] = (o) => e.$emit("close", o)),
374
370
  onOpen: n[3] || (n[3] = (o) => e.$emit("open", o)),
375
371
  "onUpdate:modelValue": n[4] || (n[4] = (o) => p(y)(f.value))
376
372
  }), {
377
- title: b(() => [
373
+ title: k(() => [
378
374
  d(`
379
375
  @slot title slot - Place your title
380
376
  `),
@@ -389,7 +385,7 @@ const ie = { class: "maz-flex maz-items-center maz-gap-2" }, de = /* @__PURE__ *
389
385
  ];
390
386
  })
391
387
  ]),
392
- default: b(() => [
388
+ default: k(() => [
393
389
  d(`
394
390
  @slot Default slot - Place your content
395
391
  @binding {Function} resolve resolve function
@@ -409,7 +405,7 @@ const ie = { class: "maz-flex maz-items-center maz-gap-2" }, de = /* @__PURE__ *
409
405
  ];
410
406
  })
411
407
  ]),
412
- footer: b(() => [
408
+ footer: k(() => [
413
409
  d(`
414
410
  @slot Footer slot
415
411
  @binding {Function} resolve resolve function
@@ -420,10 +416,10 @@ const ie = { class: "maz-flex maz-items-center maz-gap-2" }, de = /* @__PURE__ *
420
416
  reject: (o) => p(y)(f.value, o)
421
417
  }, () => [
422
418
  V("div", ie, [
423
- g.value ? (v(!0), P(
419
+ b.value ? (v(!0), P(
424
420
  H,
425
421
  { key: 0 },
426
- R(g.value, (o, $) => (v(), D(p(a), A({
422
+ R(b.value, (o, $) => (v(), D(p(a), A({
427
423
  key: $,
428
424
  ref_for: !0
429
425
  }, {
@@ -432,7 +428,7 @@ const ie = { class: "maz-flex maz-items-center maz-gap-2" }, de = /* @__PURE__ *
432
428
  }, {
433
429
  onClick: (re) => F(f.value, o)
434
430
  }), {
435
- default: b(() => [
431
+ default: k(() => [
436
432
  w(
437
433
  T(o.text),
438
434
  1
@@ -454,7 +450,7 @@ const ie = { class: "maz-flex maz-items-center maz-gap-2" }, de = /* @__PURE__ *
454
450
  onClick: n[0] || (n[0] = (o) => p(y)(f.value))
455
451
  }),
456
452
  {
457
- default: b(() => [
453
+ default: k(() => [
458
454
  d(`
459
455
  @slot cancel-text slot - Place your cancel text
460
456
  `),
@@ -481,7 +477,7 @@ const ie = { class: "maz-flex maz-items-center maz-gap-2" }, de = /* @__PURE__ *
481
477
  onClick: n[1] || (n[1] = (o) => p(B)(f.value))
482
478
  }),
483
479
  {
484
- default: b(() => [
480
+ default: k(() => [
485
481
  d(`
486
482
  @slot confirm-text slot - Place your confirm text
487
483
  `),
@@ -2,7 +2,7 @@ import '../assets/MazGallery.css';var ye = Object.defineProperty;
2
2
  var be = (o, e, t) => e in o ? ye(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
3
  var f = (o, e, t) => be(o, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { createVNode as x, render as B, defineComponent as oe, defineAsyncComponent as _, ref as y, computed as E, watch as Ae, onMounted as Ie, onBeforeUnmount as Ee, openBlock as b, createElementBlock as A, withModifiers as S, withKeys as Le, withDirectives as R, unref as L, vShow as we, createCommentVNode as O, createElementVNode as P, normalizeClass as F, useCssVars as Ce, onBeforeMount as ze, normalizeStyle as ee, Fragment as te, renderList as se, toDisplayString as xe } from "vue";
5
- import { _ as ae } from "./MazCard-BF-2_gZV.mjs";
5
+ import { _ as ae } from "./MazCard-StYuQv11.mjs";
6
6
  function Oe(o, e) {
7
7
  let t = e == null ? void 0 : e.element;
8
8
  function s() {
@@ -33,7 +33,7 @@ const Pe = ["onKeypress"], Se = { class: "m-fullscreen-img-scroller" }, ke = ["s
33
33
  },
34
34
  emits: ["close", "previous", "next", "before-close"],
35
35
  setup(o, { emit: e }) {
36
- const t = o, s = e, r = _(() => import("./MazSpinner-BCOeuzTB.mjs")), l = _(() => import("./x-mark-CnZwVvA7.mjs")), p = _(() => import("./chevron-left-BqVOLRdC.mjs")), g = y(!1), C = y(!1), w = y(!1), m = y(!1), d = y(!1), c = y(t.clickedElement), u = E(() => t.clickedElement.getBoundingClientRect()), re = E(
36
+ const t = o, s = e, r = _(() => import("./MazSpinner-D-7IOf2L.mjs")), l = _(() => import("./x-mark-CnZwVvA7.mjs")), p = _(() => import("./chevron-left-BqVOLRdC.mjs")), g = y(!1), C = y(!1), w = y(!1), m = y(!1), d = y(!1), c = y(t.clickedElement), u = E(() => t.clickedElement.getBoundingClientRect()), re = E(
37
37
  () => u.value.height < u.value.width
38
38
  ), W = y(t.src), Z = y(t.alt), j = y(), z = y(), ie = E(() => d.value ? "--is-zoomed maz-cursor-zoom-out" : "maz-cursor-zoom-in");
39
39
  function le() {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as T, ref as m, computed as v, onMounted as x, watchEffect as L, openBlock as P, createElementBlock as _, mergeProps as A, createCommentVNode as C, nextTick as $ } from "vue";
2
- import { i as q } from "./MazPhoneNumberInput-C7gUk5lg.mjs";
2
+ import { i as q } from "./MazPhoneNumberInput-r6OjPeRI.mjs";
3
3
  const H = ["innerHTML"], V = /* @__PURE__ */ T({
4
4
  __name: "MazIcon",
5
5
  props: {
@@ -58,7 +58,7 @@ const ie = {
58
58
  },
59
59
  emits: ["update:model-value", "focus", "blur", "click", "change", "input"],
60
60
  setup(i, { emit: u }) {
61
- const t = i, a = u, m = f(() => import("./MazBtn-C4xZC-A2.mjs")), B = f(() => import("./MazIcon-BbvBov5G.mjs")), M = f(() => import("./eye-slash-BoO00xzs.mjs")), q = f(() => import("./eye-f8zAUc30.mjs")), T = f(() => import("./check-BmubdHc_.mjs")), v = z(!1), c = z(!1), w = z(), D = le({
61
+ const t = i, a = u, m = f(() => import("./MazBtn-D_IQO-P2.mjs")), B = f(() => import("./MazIcon-BbvBov5G.mjs")), M = f(() => import("./eye-slash-BoO00xzs.mjs")), q = f(() => import("./eye-f8zAUc30.mjs")), T = f(() => import("./check-BmubdHc_.mjs")), v = z(!1), c = z(!1), w = z(), D = le({
62
62
  componentName: "MazInput",
63
63
  providedId: t.id
64
64
  });