maz-ui 3.47.2-beta.6 → 3.47.2-beta.7

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 (102) hide show
  1. package/components/MazAccordion.mjs +91 -98
  2. package/components/MazAnimatedCounter.mjs +26 -26
  3. package/components/MazCard.mjs +1 -1
  4. package/components/MazCardSpotlight.mjs +18 -22
  5. package/components/MazCheckbox.mjs +74 -70
  6. package/components/MazChecklist.mjs +1 -1
  7. package/components/MazCircularProgressBar.mjs +48 -48
  8. package/components/MazExpandAnimation.mjs +22 -25
  9. package/components/MazGallery.mjs +1 -1
  10. package/components/MazInputCode.mjs +36 -39
  11. package/components/MazLoadingBar.mjs +31 -27
  12. package/components/MazPhoneNumberInput.mjs +1 -1
  13. package/components/MazPicker.d.ts +2 -0
  14. package/components/MazPicker.mjs +1 -1
  15. package/components/MazRadio.mjs +31 -36
  16. package/components/MazSelect.mjs +1 -1
  17. package/components/MazStepper.mjs +1 -1
  18. package/components/MazSwitch.mjs +20 -23
  19. package/components/MazTable.d.ts +6 -0
  20. package/components/MazTable.mjs +1 -1
  21. package/components/MazTableCell.d.ts +5 -1
  22. package/components/MazTableCell.mjs +22 -19
  23. package/components/MazTableRow.mjs +1 -1
  24. package/components/MazTableTitle.d.ts +5 -1
  25. package/components/MazTableTitle.mjs +16 -13
  26. package/components/MazTabsBar.mjs +1 -1
  27. package/components/assets/MazAccordion.css +1 -1
  28. package/components/assets/MazAnimatedCounter.css +1 -1
  29. package/components/assets/MazCardSpotlight.css +1 -1
  30. package/components/assets/MazCheckbox.css +1 -1
  31. package/components/assets/MazChecklist.css +1 -1
  32. package/components/assets/MazCircularProgressBar.css +1 -1
  33. package/components/assets/MazExpandAnimation.css +1 -1
  34. package/components/assets/MazGallery.css +1 -1
  35. package/components/assets/MazInputCode.css +1 -1
  36. package/components/assets/MazLoadingBar.css +1 -1
  37. package/components/assets/MazPhoneNumberInput.css +1 -1
  38. package/components/assets/MazPicker.css +1 -1
  39. package/components/assets/MazRadio.css +1 -1
  40. package/components/assets/MazSelect.css +1 -1
  41. package/components/assets/MazStepper.css +1 -1
  42. package/components/assets/MazSwitch.css +1 -1
  43. package/components/assets/MazTable.css +1 -1
  44. package/components/assets/MazTableCell.css +1 -1
  45. package/components/assets/MazTableRow.css +1 -1
  46. package/components/assets/MazTableTitle.css +1 -1
  47. package/components/assets/MazTabsBar.css +1 -1
  48. package/components/chunks/{MazBadge-CqppWg2j.mjs → MazBadge-D-0XgPWR.mjs} +1 -1
  49. package/components/chunks/{MazBtn-BBb9-9O6.mjs → MazBtn-B0Q6Kw8H.mjs} +2 -2
  50. package/components/chunks/{MazBtn-CfUZ9QSO.mjs → MazBtn-DFLIzh6y.mjs} +2 -2
  51. package/components/chunks/{MazBtn-Lsac2Q0p.mjs → MazBtn-D_K6k6A7.mjs} +2 -2
  52. package/components/chunks/{MazBtn-DhEO9uvT.mjs → MazBtn-DnZ_pj-t.mjs} +2 -2
  53. package/components/chunks/{MazBtn-D7tI764y.mjs → MazBtn-DvfMuN3B.mjs} +2 -2
  54. package/components/chunks/{MazCard-CAPZoSqv.mjs → MazCard-BkcxQOWL.mjs} +1 -1
  55. package/components/chunks/{MazCheckbox-BI2um2gY.mjs → MazCheckbox-B9iBXhoG.mjs} +63 -60
  56. package/components/chunks/{MazCheckbox-DwAd7p8o.mjs → MazCheckbox-BHhDBSbJ.mjs} +63 -58
  57. package/components/chunks/{MazCheckbox-IhiWZ8D0.mjs → MazCheckbox-BcwWN7iD.mjs} +63 -59
  58. package/components/chunks/{MazChecklist-Bqd7qTO1.mjs → MazChecklist-DxtYuoEu.mjs} +116 -116
  59. package/components/chunks/MazExpandAnimation-CUgYZyTw.mjs +54 -0
  60. package/components/chunks/{MazGallery-CRY5X5zS.mjs → MazGallery-BfdKcDIu.mjs} +39 -42
  61. package/components/chunks/{MazGallery-CXQiXWFr.mjs → MazGallery-ndO4hRUh.mjs} +38 -41
  62. package/components/chunks/{MazIcon-D3TB52NM.mjs → MazIcon-DVTWgYB6.mjs} +1 -1
  63. package/components/chunks/{MazInput-rW-KBJGJ.mjs → MazInput-DnmjeD0Q.mjs} +2 -2
  64. package/components/chunks/{MazInput-ROgC-JLt.mjs → MazInput-SGx7gJ9r.mjs} +2 -2
  65. package/components/chunks/MazLoadingBar-CBNuhilE.mjs +36 -0
  66. package/components/chunks/{MazPhoneNumberInput-Bbr0zHPZ.mjs → MazPhoneNumberInput-rGR80IeJ.mjs} +91 -96
  67. package/components/chunks/{MazPicker-EMOuyWJy.mjs → MazPicker-CUpQ552W.mjs} +341 -321
  68. package/components/chunks/{MazPickerMonthSwitcher-DJGgb6BT.mjs → MazPickerMonthSwitcher-duzi8uZ8.mjs} +1 -1
  69. package/components/chunks/{MazPickerShortcuts-Cg1uqryw.mjs → MazPickerShortcuts-Coq4ITAj.mjs} +1 -1
  70. package/components/chunks/{MazPickerYearSwitcher-BLUXEs0G.mjs → MazPickerYearSwitcher-vUTntpYE.mjs} +1 -1
  71. package/components/chunks/{MazSelect-BUETsREx.mjs → MazSelect-DA1D4Aus.mjs} +85 -90
  72. package/components/chunks/{MazSelect-BDMOrVry.mjs → MazSelect-DpLBpopb.mjs} +40 -45
  73. package/components/chunks/{MazSpinner--fscjBdL.mjs → MazSpinner-Bbagpn0P.mjs} +1 -1
  74. package/components/chunks/{MazSpinner-RzOGVi6V.mjs → MazSpinner-Bi3tSdWr.mjs} +1 -1
  75. package/components/chunks/MazSpinner-Btv2qATX.mjs +34 -0
  76. package/components/chunks/MazSpinner-CR8HZnWn.mjs +34 -0
  77. package/components/chunks/{MazSpinner-C0PBSYpC.mjs → MazSpinner-DIPbNESr.mjs} +1 -1
  78. package/components/chunks/{MazSpinner-C-64WJje.mjs → MazSpinner-a80KrraB.mjs} +1 -1
  79. package/components/chunks/{MazSpinner-CEgSruvD.mjs → MazSpinner-v0FIBDiy.mjs} +1 -1
  80. package/components/chunks/MazStepper-DKPl3uIk.mjs +218 -0
  81. package/components/chunks/{MazTable-CWsaB02U.mjs → MazTable-DBiW_J2i.mjs} +104 -100
  82. package/components/chunks/MazTableCell-D10vPzyI.mjs +26 -0
  83. package/components/chunks/{MazTableRow-6KrQQQbm.mjs → MazTableRow-CSxkhwUM.mjs} +8 -8
  84. package/components/chunks/MazTableTitle-BdRR_MXI.mjs +26 -0
  85. package/components/chunks/{MazTabsBar-CM-w7V97.mjs → MazTabsBar-BVg2pxLA.mjs} +2 -2
  86. package/components/chunks/{MazTransitionExpand-BCgH8NZP.mjs → MazTransitionExpand-2Ft7atX1.mjs} +1 -1
  87. package/css/main.css +1 -1
  88. package/nuxt/index.json +1 -1
  89. package/package.json +1 -1
  90. package/tailwindcss/variables/colors.ts +2 -0
  91. package/types/components/MazPicker.vue.d.ts +2 -0
  92. package/types/components/MazTable.vue.d.ts +6 -0
  93. package/types/components/MazTableCell.vue.d.ts +5 -1
  94. package/types/components/MazTableTitle.vue.d.ts +5 -1
  95. package/types/tailwindcss/variables/colors.d.ts +2 -0
  96. package/components/chunks/MazExpandAnimation-MDimlZGj.mjs +0 -57
  97. package/components/chunks/MazLoadingBar-D8a5KF29.mjs +0 -32
  98. package/components/chunks/MazSpinner-CMMBCwk2.mjs +0 -34
  99. package/components/chunks/MazSpinner-DebSlkVT.mjs +0 -34
  100. package/components/chunks/MazStepper-BREfkpUb.mjs +0 -213
  101. package/components/chunks/MazTableCell-CgiGF3bL.mjs +0 -23
  102. package/components/chunks/MazTableTitle-C8P3v8b6.mjs +0 -23
@@ -1,13 +1,13 @@
1
- import { openBlock as f, createElementBlock as b, createElementVNode as c, useId as A, computed as g, defineComponent as y, useCssVars as O, ref as p, onMounted as V, onUnmounted as B, normalizeClass as $, normalizeStyle as w, renderSlot as h, withDirectives as E, vShow as z, mergeModels as x, useModel as I, mergeProps as L, useSlots as j, Fragment as F, renderList as N, createBlock as R, withCtx as M, unref as k, createVNode as S } from "vue";
2
- import './assets/MazAccordion.css';const P = {
1
+ import { openBlock as p, createElementBlock as b, createElementVNode as c, useId as V, computed as g, defineComponent as w, ref as f, onMounted as O, onUnmounted as B, normalizeClass as $, normalizeStyle as k, renderSlot as h, withDirectives as E, vShow as z, mergeModels as A, useModel as x, mergeProps as I, useSlots as L, Fragment as j, renderList as F, createBlock as N, withCtx as M, unref as y, createVNode as S } from "vue";
2
+ import './assets/MazAccordion.css';const R = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  width: "1em",
5
5
  height: "1em",
6
6
  fill: "none",
7
7
  viewBox: "0 0 24 24"
8
8
  };
9
- function T(r, t) {
10
- return f(), b("svg", P, t[0] || (t[0] = [
9
+ function P(r, n) {
10
+ return p(), b("svg", R, n[0] || (n[0] = [
11
11
  c(
12
12
  "path",
13
13
  {
@@ -23,15 +23,15 @@ function T(r, t) {
23
23
  )
24
24
  ]));
25
25
  }
26
- const U = { render: T };
27
- function q({
26
+ const T = { render: P };
27
+ function U({
28
28
  componentName: r,
29
- providedId: t
29
+ providedId: n
30
30
  }) {
31
- const a = A();
32
- return g(() => t ?? `${r}-${a}`);
31
+ const o = V();
32
+ return g(() => n ?? `${r}-${o}`);
33
33
  }
34
- const D = { class: "inner" }, H = /* @__PURE__ */ y({
34
+ const q = { class: "inner" }, D = /* @__PURE__ */ w({
35
35
  __name: "MazCardSpotlight",
36
36
  props: {
37
37
  color: { default: "primary" },
@@ -42,20 +42,16 @@ const D = { class: "inner" }, H = /* @__PURE__ */ y({
42
42
  innerOpacity: { default: 0.95 }
43
43
  },
44
44
  setup(r) {
45
- O((d) => ({
46
- "4f499add": d.innerOpacity,
47
- "2e65a0ad": n.value
48
- }));
49
- const t = r, a = p(), l = p(), i = p(!1);
50
- function v({ clientX: d, clientY: u }) {
51
- var e, _, o;
52
- i.value = !0;
53
- const m = (e = l.value) == null ? void 0 : e.getBoundingClientRect();
54
- m && ((o = (_ = a.value) == null ? void 0 : _.animate) == null || o.call(
45
+ const n = r, o = f(), a = f(), s = f(!1);
46
+ function m({ clientX: d, clientY: u }) {
47
+ var e, _, t;
48
+ s.value = !0;
49
+ const v = (e = a.value) == null ? void 0 : e.getBoundingClientRect();
50
+ v && ((t = (_ = o.value) == null ? void 0 : _.animate) == null || t.call(
55
51
  _,
56
52
  [
57
53
  {
58
- transform: `translate(${d - m.left - m.width / 2}px,${u - m.top - m.height / 2}px)`
54
+ transform: `translate(${d - v.left - v.width / 2}px,${u - v.top - v.height / 2}px)`
59
55
  }
60
56
  ],
61
57
  {
@@ -64,19 +60,19 @@ const D = { class: "inner" }, H = /* @__PURE__ */ y({
64
60
  }
65
61
  ));
66
62
  }
67
- const n = g(() => `var(--maz-color-${t.color}-alpha)`), s = g(() => `var(--maz-color-${t.color}-alpha-20)`);
68
- return V(() => {
69
- window.addEventListener("mousemove", v);
63
+ const l = g(() => `var(--maz-color-${n.color}-alpha)`), i = g(() => `var(--maz-color-${n.color}-alpha-20)`);
64
+ return O(() => {
65
+ window.addEventListener("mousemove", m);
70
66
  }), B(() => {
71
- window.removeEventListener("mousemove", v);
72
- }), (d, u) => (f(), b(
67
+ window.removeEventListener("mousemove", m);
68
+ }), (d, u) => (p(), b(
73
69
  "div",
74
70
  {
75
71
  class: $(["m-card-spotlight", { "maz-elevation": !d.noElevation }]),
76
- style: w({ backgroundColor: s.value })
72
+ style: k({ backgroundColor: i.value, "--inner-opacity": d.innerOpacity })
77
73
  },
78
74
  [
79
- c("div", D, [
75
+ c("div", q, [
80
76
  c(
81
77
  "div",
82
78
  {
@@ -93,43 +89,43 @@ const D = { class: "inner" }, H = /* @__PURE__ */ y({
93
89
  "div",
94
90
  {
95
91
  ref_key: "blobElement",
96
- ref: a,
92
+ ref: o,
97
93
  class: "blob",
98
- style: w({ backgroundColor: n.value })
94
+ style: k({ backgroundColor: l.value })
99
95
  },
100
96
  null,
101
97
  4
102
98
  /* STYLE */
103
99
  ), [
104
- [z, i.value]
100
+ [z, s.value]
105
101
  ]),
106
102
  E(c(
107
103
  "div",
108
104
  {
109
105
  ref_key: "fakeblobElement",
110
- ref: l,
106
+ ref: a,
111
107
  class: "fakeblob"
112
108
  },
113
109
  null,
114
110
  512
115
111
  /* NEED_PATCH */
116
112
  ), [
117
- [z, i.value]
113
+ [z, s.value]
118
114
  ])
119
115
  ],
120
116
  6
121
117
  /* CLASS, STYLE */
122
118
  ));
123
119
  }
124
- }), C = (r, t) => {
125
- const a = r.__vccOpts || r;
126
- for (const [l, i] of t)
127
- a[l] = i;
128
- return a;
129
- }, W = /* @__PURE__ */ C(H, [["__scopeId", "data-v-31abf9ff"]]), G = ["aria-hidden"], J = /* @__PURE__ */ y({
120
+ }), C = (r, n) => {
121
+ const o = r.__vccOpts || r;
122
+ for (const [a, s] of n)
123
+ o[a] = s;
124
+ return o;
125
+ }, H = /* @__PURE__ */ C(D, [["__scopeId", "data-v-30c7054c"]]), W = ["aria-hidden"], G = /* @__PURE__ */ w({
130
126
  inheritAttrs: !1,
131
127
  __name: "MazExpandAnimation",
132
- props: /* @__PURE__ */ x({
128
+ props: /* @__PURE__ */ A({
133
129
  duration: { default: "300ms" },
134
130
  timingFunction: { default: "ease-in-out" }
135
131
  }, {
@@ -138,49 +134,46 @@ const D = { class: "inner" }, H = /* @__PURE__ */ y({
138
134
  }),
139
135
  emits: ["update:modelValue"],
140
136
  setup(r) {
141
- O((n) => ({
142
- "3628b947": n.duration,
143
- "239277b5": n.timingFunction
144
- }));
145
- const t = I(r, "modelValue"), a = p(!t.value), l = p();
146
- function i() {
147
- t.value || (a.value = !0);
137
+ const n = x(r, "modelValue"), o = f(!n.value), a = f();
138
+ function s() {
139
+ n.value || (o.value = !0);
148
140
  }
149
- function v() {
150
- t.value && (a.value = !1);
141
+ function m() {
142
+ n.value && (o.value = !1);
151
143
  }
152
- return V(() => {
153
- var n, s;
154
- (n = l.value) == null || n.addEventListener("transitionstart", i, !1), (s = l.value) == null || s.addEventListener("transitionend", v, !1);
144
+ return O(() => {
145
+ var l, i;
146
+ (l = a.value) == null || l.addEventListener("transitionstart", s, !1), (i = a.value) == null || i.addEventListener("transitionend", m, !1);
155
147
  }), B(() => {
156
- var n, s;
157
- (n = l.value) == null || n.removeEventListener("transitionstart", i, !1), (s = l.value) == null || s.removeEventListener("transitionend", v, !1);
158
- }), (n, s) => (f(), b("div", {
148
+ var l, i;
149
+ (l = a.value) == null || l.removeEventListener("transitionstart", s, !1), (i = a.value) == null || i.removeEventListener("transitionend", m, !1);
150
+ }), (l, i) => (p(), b("div", {
159
151
  ref_key: "expandAnimationRef",
160
- ref: l,
161
- class: $(["m-expand-animation", { "m-expand-animation--expanded": t.value }]),
162
- "aria-hidden": !t.value,
163
- role: "region"
152
+ ref: a,
153
+ class: $(["m-expand-animation", { "m-expand-animation--expanded": n.value }]),
154
+ "aria-hidden": !n.value,
155
+ role: "region",
156
+ style: k([{ "--expand-animation-duration": l.duration, "--expand-animation-timing-function": l.timingFunction }])
164
157
  }, [
165
158
  c(
166
159
  "div",
167
- L({ class: "m-expand-animation__inner" }, n.$attrs, {
160
+ I({ class: "m-expand-animation__inner" }, l.$attrs, {
168
161
  class: {
169
- "--overflow-hidden": a.value
162
+ "--overflow-hidden": o.value
170
163
  }
171
164
  }),
172
165
  [
173
- h(n.$slots, "default", {}, void 0, !0)
166
+ h(l.$slots, "default", {}, void 0, !0)
174
167
  ],
175
168
  16
176
169
  /* FULL_PROPS */
177
170
  )
178
- ], 10, G));
171
+ ], 14, W));
179
172
  }
180
- }), K = /* @__PURE__ */ C(J, [["__scopeId", "data-v-b7ca6b97"]]), Q = {
173
+ }), J = /* @__PURE__ */ C(G, [["__scopeId", "data-v-3bfdfbc1"]]), K = {
181
174
  class: "m-accordion",
182
175
  role: "presentation"
183
- }, X = ["id", "aria-controls", "aria-expanded", "onClick"], Y = /* @__PURE__ */ y({
176
+ }, Q = ["id", "aria-controls", "aria-expanded", "onClick"], X = /* @__PURE__ */ w({
184
177
  __name: "MazAccordion",
185
178
  props: {
186
179
  id: { default: void 0 },
@@ -188,55 +181,55 @@ const D = { class: "inner" }, H = /* @__PURE__ */ y({
188
181
  contentClass: { default: void 0 }
189
182
  },
190
183
  emits: ["update:model-value"],
191
- setup(r, { emit: t }) {
192
- const a = r, l = t, i = q({
184
+ setup(r, { emit: n }) {
185
+ const o = r, a = n, s = U({
193
186
  componentName: "MazAccordion",
194
- providedId: a.id
195
- }), v = j(), n = g(
196
- () => Object.keys(v).filter((e) => e.startsWith("title-")).length
197
- ), s = p(a.modelValue), d = g({
198
- get: () => a.modelValue || s.value,
187
+ providedId: o.id
188
+ }), m = L(), l = g(
189
+ () => Object.keys(m).filter((e) => e.startsWith("title-")).length
190
+ ), i = f(o.modelValue), d = g({
191
+ get: () => o.modelValue || i.value,
199
192
  set: (e) => {
200
- s.value = e, l("update:model-value", e);
193
+ i.value = e, a("update:model-value", e);
201
194
  }
202
195
  });
203
196
  function u(e) {
204
197
  return d.value === e;
205
198
  }
206
- function m(e) {
207
- d.value === e ? (s.value = 0, l("update:model-value", 0)) : (s.value = e, l("update:model-value", e));
199
+ function v(e) {
200
+ d.value === e ? (i.value = 0, a("update:model-value", 0)) : (i.value = e, a("update:model-value", e));
208
201
  }
209
- return (e, _) => (f(), b("div", Q, [
210
- (f(!0), b(
211
- F,
202
+ return (e, _) => (p(), b("div", K, [
203
+ (p(!0), b(
204
+ j,
212
205
  null,
213
- N(n.value, (o) => (f(), R(
214
- W,
206
+ F(l.value, (t) => (p(), N(
207
+ H,
215
208
  {
216
- key: o,
209
+ key: t,
217
210
  class: "m-accordion__spotlight",
218
211
  padding: !1
219
212
  },
220
213
  {
221
214
  default: M(() => [
222
215
  c("button", {
223
- id: `step-${o}-${k(i)}`,
216
+ id: `step-${t}-${y(s)}`,
224
217
  class: "m-accordion__header",
225
- "aria-controls": `step-${o}-${k(i)}`,
226
- "aria-expanded": u(o),
227
- onClick: (Z) => m(o)
218
+ "aria-controls": `step-${t}-${y(s)}`,
219
+ "aria-expanded": u(t),
220
+ onClick: (Y) => v(t)
228
221
  }, [
229
- h(e.$slots, `title-${o}`, {
230
- isOpen: u(o)
222
+ h(e.$slots, `title-${t}`, {
223
+ isOpen: u(t)
231
224
  }, void 0, !0),
232
- S(k(U), {
233
- class: $(["header-icon", { "--rotate": u(o) }])
225
+ S(y(T), {
226
+ class: $(["header-icon", { "--rotate": u(t) }])
234
227
  }, null, 8, ["class"])
235
- ], 8, X),
236
- S(K, {
228
+ ], 8, Q),
229
+ S(J, {
237
230
  "animation-duration": "300ms",
238
- "model-value": u(o),
239
- "aria-labelledby": `step-${o}-${k(i)}`
231
+ "model-value": u(t),
232
+ "aria-labelledby": `step-${t}-${y(s)}`
240
233
  }, {
241
234
  default: M(() => [
242
235
  c(
@@ -246,10 +239,10 @@ const D = { class: "inner" }, H = /* @__PURE__ */ y({
246
239
  },
247
240
  [
248
241
  h(e.$slots, "content", {
249
- isOpen: u(o)
242
+ isOpen: u(t)
250
243
  }, void 0, !0),
251
- h(e.$slots, `content-${o}`, {
252
- isOpen: u(o)
244
+ h(e.$slots, `content-${t}`, {
245
+ isOpen: u(t)
253
246
  }, void 0, !0)
254
247
  ],
255
248
  2
@@ -271,7 +264,7 @@ const D = { class: "inner" }, H = /* @__PURE__ */ y({
271
264
  ))
272
265
  ]));
273
266
  }
274
- }), te = /* @__PURE__ */ C(Y, [["__scopeId", "data-v-052b6500"]]);
267
+ }), ee = /* @__PURE__ */ C(X, [["__scopeId", "data-v-052b6500"]]);
275
268
  export {
276
- te as default
269
+ ee as default
277
270
  };
@@ -1,8 +1,8 @@
1
- import { defineComponent as v, useCssVars as x, useSlots as _, computed as l, ref as h, watch as C, openBlock as d, createElementBlock as p, normalizeClass as $, createElementVNode as b, renderSlot as f, createTextVNode as o, toDisplayString as a, createCommentVNode as k } from "vue";
2
- import './assets/MazAnimatedCounter.css';const y = { class: "maz-sr-only" }, z = {
1
+ import { defineComponent as v, useSlots as x, computed as l, ref as _, watch as h, openBlock as d, createElementBlock as p, normalizeClass as y, normalizeStyle as z, createElementVNode as C, renderSlot as i, createTextVNode as o, toDisplayString as a, createCommentVNode as S } from "vue";
2
+ import './assets/MazAnimatedCounter.css';const $ = { class: "maz-sr-only" }, k = {
3
3
  key: 0,
4
4
  class: "m-animated-counter__fix"
5
- }, S = /* @__PURE__ */ v({
5
+ }, A = /* @__PURE__ */ v({
6
6
  __name: "MazAnimatedCounter",
7
7
  props: {
8
8
  count: {},
@@ -11,16 +11,12 @@ import './assets/MazAnimatedCounter.css';const y = { class: "maz-sr-only" }, z =
11
11
  suffix: { default: void 0 }
12
12
  },
13
13
  setup(n) {
14
- x((e) => ({
15
- "7cf84c3b": m.value,
16
- a2b7049a: e.count
17
- }));
18
- const t = n, s = _(), r = l(() => !!t.prefix || !!s.prefix), u = l(() => !!t.suffix || !!s.suffix), i = h(!0);
19
- C(
14
+ const t = n, s = x(), r = l(() => !!t.prefix || !!s.prefix), u = l(() => !!t.suffix || !!s.suffix), f = _(!0);
15
+ h(
20
16
  () => t.count,
21
17
  (e, c) => {
22
- e !== c && (i.value = !1, setTimeout(() => {
23
- i.value = !0;
18
+ e !== c && (f.value = !1, setTimeout(() => {
19
+ f.value = !0;
24
20
  }, 100));
25
21
  }
26
22
  );
@@ -28,15 +24,19 @@ import './assets/MazAnimatedCounter.css';const y = { class: "maz-sr-only" }, z =
28
24
  return (e, c) => (d(), p(
29
25
  "span",
30
26
  {
31
- class: $(["m-animated-counter", {
32
- "--animated": i.value,
27
+ class: y(["m-animated-counter", {
28
+ "--animated": f.value,
33
29
  "--prefixed": r.value,
34
30
  "--suffixed": u.value
35
- }])
31
+ }]),
32
+ style: z({
33
+ "--count": e.count,
34
+ "--animation-duration": m.value
35
+ })
36
36
  },
37
37
  [
38
- b("span", y, [
39
- f(e.$slots, "prefix", {}, () => [
38
+ C("span", $, [
39
+ i(e.$slots, "prefix", {}, () => [
40
40
  o(
41
41
  a(e.prefix),
42
42
  1
@@ -48,7 +48,7 @@ import './assets/MazAnimatedCounter.css';const y = { class: "maz-sr-only" }, z =
48
48
  1
49
49
  /* TEXT */
50
50
  ),
51
- f(e.$slots, "suffix", {}, () => [
51
+ i(e.$slots, "suffix", {}, () => [
52
52
  o(
53
53
  a(e.suffix),
54
54
  1
@@ -56,33 +56,33 @@ import './assets/MazAnimatedCounter.css';const y = { class: "maz-sr-only" }, z =
56
56
  )
57
57
  ], !0)
58
58
  ]),
59
- r.value || u.value ? (d(), p("span", z, [
60
- f(e.$slots, "prefix", {}, () => [
59
+ r.value || u.value ? (d(), p("span", k, [
60
+ i(e.$slots, "prefix", {}, () => [
61
61
  o(
62
62
  a(e.prefix),
63
63
  1
64
64
  /* TEXT */
65
65
  )
66
66
  ], !0),
67
- f(e.$slots, "suffix", {}, () => [
67
+ i(e.$slots, "suffix", {}, () => [
68
68
  o(
69
69
  a(e.suffix),
70
70
  1
71
71
  /* TEXT */
72
72
  )
73
73
  ], !0)
74
- ])) : k("v-if", !0)
74
+ ])) : S("v-if", !0)
75
75
  ],
76
- 2
77
- /* CLASS */
76
+ 6
77
+ /* CLASS, STYLE */
78
78
  ));
79
79
  }
80
- }), V = (n, t) => {
80
+ }), M = (n, t) => {
81
81
  const s = n.__vccOpts || n;
82
82
  for (const [r, u] of t)
83
83
  s[r] = u;
84
84
  return s;
85
- }, M = /* @__PURE__ */ V(S, [["__scopeId", "data-v-95ad1bb8"]]);
85
+ }, V = /* @__PURE__ */ M(A, [["__scopeId", "data-v-fc78b268"]]);
86
86
  export {
87
- M as default
87
+ V as default
88
88
  };
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazCard-CAPZoSqv.mjs";
1
+ import { M as f } from "./chunks/MazCard-BkcxQOWL.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as _, useCssVars as k, ref as c, computed as m, onMounted as E, onUnmounted as w, openBlock as z, createElementBlock as B, normalizeClass as b, normalizeStyle as h, createElementVNode as i, renderSlot as S, withDirectives as y, vShow as g } from "vue";
2
- import './assets/MazCardSpotlight.css';const $ = { class: "inner" }, O = /* @__PURE__ */ _({
1
+ import { defineComponent as _, ref as c, computed as f, onMounted as k, onUnmounted as E, openBlock as w, createElementBlock as z, normalizeClass as m, normalizeStyle as b, createElementVNode as i, renderSlot as B, withDirectives as y, vShow as h } from "vue";
2
+ import './assets/MazCardSpotlight.css';const S = { class: "inner" }, $ = /* @__PURE__ */ _({
3
3
  __name: "MazCardSpotlight",
4
4
  props: {
5
5
  color: { default: "primary" },
@@ -10,12 +10,8 @@ import './assets/MazCardSpotlight.css';const $ = { class: "inner" }, O = /* @__P
10
10
  innerOpacity: { default: 0.95 }
11
11
  },
12
12
  setup(l) {
13
- k((e) => ({
14
- "4f499add": e.innerOpacity,
15
- "2e65a0ad": u.value
16
- }));
17
13
  const n = l, o = c(), r = c(), t = c(!1);
18
- function d({ clientX: e, clientY: f }) {
14
+ function d({ clientX: e, clientY: u }) {
19
15
  var p, s, v;
20
16
  t.value = !0;
21
17
  const a = (p = r.value) == null ? void 0 : p.getBoundingClientRect();
@@ -23,7 +19,7 @@ import './assets/MazCardSpotlight.css';const $ = { class: "inner" }, O = /* @__P
23
19
  s,
24
20
  [
25
21
  {
26
- transform: `translate(${e - a.left - a.width / 2}px,${f - a.top - a.height / 2}px)`
22
+ transform: `translate(${e - a.left - a.width / 2}px,${u - a.top - a.height / 2}px)`
27
23
  }
28
24
  ],
29
25
  {
@@ -32,26 +28,26 @@ import './assets/MazCardSpotlight.css';const $ = { class: "inner" }, O = /* @__P
32
28
  }
33
29
  ));
34
30
  }
35
- const u = m(() => `var(--maz-color-${n.color}-alpha)`), C = m(() => `var(--maz-color-${n.color}-alpha-20)`);
36
- return E(() => {
31
+ const g = f(() => `var(--maz-color-${n.color}-alpha)`), C = f(() => `var(--maz-color-${n.color}-alpha-20)`);
32
+ return k(() => {
37
33
  window.addEventListener("mousemove", d);
38
- }), w(() => {
34
+ }), E(() => {
39
35
  window.removeEventListener("mousemove", d);
40
- }), (e, f) => (z(), B(
36
+ }), (e, u) => (w(), z(
41
37
  "div",
42
38
  {
43
- class: b(["m-card-spotlight", { "maz-elevation": !e.noElevation }]),
44
- style: h({ backgroundColor: C.value })
39
+ class: m(["m-card-spotlight", { "maz-elevation": !e.noElevation }]),
40
+ style: b({ backgroundColor: C.value, "--inner-opacity": e.innerOpacity })
45
41
  },
46
42
  [
47
- i("div", $, [
43
+ i("div", S, [
48
44
  i(
49
45
  "div",
50
46
  {
51
- class: b(["content", [{ "maz-p-4": e.padding }, e.contentClass]])
47
+ class: m(["content", [{ "maz-p-4": e.padding }, e.contentClass]])
52
48
  },
53
49
  [
54
- S(e.$slots, "default", {}, void 0, !0)
50
+ B(e.$slots, "default", {}, void 0, !0)
55
51
  ],
56
52
  2
57
53
  /* CLASS */
@@ -63,13 +59,13 @@ import './assets/MazCardSpotlight.css';const $ = { class: "inner" }, O = /* @__P
63
59
  ref_key: "blobElement",
64
60
  ref: o,
65
61
  class: "blob",
66
- style: h({ backgroundColor: u.value })
62
+ style: b({ backgroundColor: g.value })
67
63
  },
68
64
  null,
69
65
  4
70
66
  /* STYLE */
71
67
  ), [
72
- [g, t.value]
68
+ [h, t.value]
73
69
  ]),
74
70
  y(i(
75
71
  "div",
@@ -82,19 +78,19 @@ import './assets/MazCardSpotlight.css';const $ = { class: "inner" }, O = /* @__P
82
78
  512
83
79
  /* NEED_PATCH */
84
80
  ), [
85
- [g, t.value]
81
+ [h, t.value]
86
82
  ])
87
83
  ],
88
84
  6
89
85
  /* CLASS, STYLE */
90
86
  ));
91
87
  }
92
- }), M = (l, n) => {
88
+ }), O = (l, n) => {
93
89
  const o = l.__vccOpts || l;
94
90
  for (const [r, t] of n)
95
91
  o[r] = t;
96
92
  return o;
97
- }, L = /* @__PURE__ */ M(O, [["__scopeId", "data-v-31abf9ff"]]);
93
+ }, L = /* @__PURE__ */ O($, [["__scopeId", "data-v-30c7054c"]]);
98
94
  export {
99
95
  L as default
100
96
  };