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.
- package/components/MazAccordion.mjs +91 -98
- package/components/MazAnimatedCounter.mjs +26 -26
- package/components/MazCard.mjs +1 -1
- package/components/MazCardSpotlight.mjs +18 -22
- package/components/MazCheckbox.mjs +74 -70
- package/components/MazChecklist.mjs +1 -1
- package/components/MazCircularProgressBar.mjs +48 -48
- package/components/MazExpandAnimation.mjs +22 -25
- package/components/MazGallery.mjs +1 -1
- package/components/MazInputCode.mjs +36 -39
- package/components/MazLoadingBar.mjs +31 -27
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.d.ts +2 -0
- package/components/MazPicker.mjs +1 -1
- package/components/MazRadio.mjs +31 -36
- package/components/MazSelect.mjs +1 -1
- package/components/MazStepper.mjs +1 -1
- package/components/MazSwitch.mjs +20 -23
- package/components/MazTable.d.ts +6 -0
- package/components/MazTable.mjs +1 -1
- package/components/MazTableCell.d.ts +5 -1
- package/components/MazTableCell.mjs +22 -19
- package/components/MazTableRow.mjs +1 -1
- package/components/MazTableTitle.d.ts +5 -1
- package/components/MazTableTitle.mjs +16 -13
- package/components/MazTabsBar.mjs +1 -1
- package/components/assets/MazAccordion.css +1 -1
- package/components/assets/MazAnimatedCounter.css +1 -1
- package/components/assets/MazCardSpotlight.css +1 -1
- package/components/assets/MazCheckbox.css +1 -1
- package/components/assets/MazChecklist.css +1 -1
- package/components/assets/MazCircularProgressBar.css +1 -1
- package/components/assets/MazExpandAnimation.css +1 -1
- package/components/assets/MazGallery.css +1 -1
- package/components/assets/MazInputCode.css +1 -1
- package/components/assets/MazLoadingBar.css +1 -1
- package/components/assets/MazPhoneNumberInput.css +1 -1
- package/components/assets/MazPicker.css +1 -1
- package/components/assets/MazRadio.css +1 -1
- package/components/assets/MazSelect.css +1 -1
- package/components/assets/MazStepper.css +1 -1
- package/components/assets/MazSwitch.css +1 -1
- package/components/assets/MazTable.css +1 -1
- package/components/assets/MazTableCell.css +1 -1
- package/components/assets/MazTableRow.css +1 -1
- package/components/assets/MazTableTitle.css +1 -1
- package/components/assets/MazTabsBar.css +1 -1
- package/components/chunks/{MazBadge-CqppWg2j.mjs → MazBadge-D-0XgPWR.mjs} +1 -1
- package/components/chunks/{MazBtn-BBb9-9O6.mjs → MazBtn-B0Q6Kw8H.mjs} +2 -2
- package/components/chunks/{MazBtn-CfUZ9QSO.mjs → MazBtn-DFLIzh6y.mjs} +2 -2
- package/components/chunks/{MazBtn-Lsac2Q0p.mjs → MazBtn-D_K6k6A7.mjs} +2 -2
- package/components/chunks/{MazBtn-DhEO9uvT.mjs → MazBtn-DnZ_pj-t.mjs} +2 -2
- package/components/chunks/{MazBtn-D7tI764y.mjs → MazBtn-DvfMuN3B.mjs} +2 -2
- package/components/chunks/{MazCard-CAPZoSqv.mjs → MazCard-BkcxQOWL.mjs} +1 -1
- package/components/chunks/{MazCheckbox-BI2um2gY.mjs → MazCheckbox-B9iBXhoG.mjs} +63 -60
- package/components/chunks/{MazCheckbox-DwAd7p8o.mjs → MazCheckbox-BHhDBSbJ.mjs} +63 -58
- package/components/chunks/{MazCheckbox-IhiWZ8D0.mjs → MazCheckbox-BcwWN7iD.mjs} +63 -59
- package/components/chunks/{MazChecklist-Bqd7qTO1.mjs → MazChecklist-DxtYuoEu.mjs} +116 -116
- package/components/chunks/MazExpandAnimation-CUgYZyTw.mjs +54 -0
- package/components/chunks/{MazGallery-CRY5X5zS.mjs → MazGallery-BfdKcDIu.mjs} +39 -42
- package/components/chunks/{MazGallery-CXQiXWFr.mjs → MazGallery-ndO4hRUh.mjs} +38 -41
- package/components/chunks/{MazIcon-D3TB52NM.mjs → MazIcon-DVTWgYB6.mjs} +1 -1
- package/components/chunks/{MazInput-rW-KBJGJ.mjs → MazInput-DnmjeD0Q.mjs} +2 -2
- package/components/chunks/{MazInput-ROgC-JLt.mjs → MazInput-SGx7gJ9r.mjs} +2 -2
- package/components/chunks/MazLoadingBar-CBNuhilE.mjs +36 -0
- package/components/chunks/{MazPhoneNumberInput-Bbr0zHPZ.mjs → MazPhoneNumberInput-rGR80IeJ.mjs} +91 -96
- package/components/chunks/{MazPicker-EMOuyWJy.mjs → MazPicker-CUpQ552W.mjs} +341 -321
- package/components/chunks/{MazPickerMonthSwitcher-DJGgb6BT.mjs → MazPickerMonthSwitcher-duzi8uZ8.mjs} +1 -1
- package/components/chunks/{MazPickerShortcuts-Cg1uqryw.mjs → MazPickerShortcuts-Coq4ITAj.mjs} +1 -1
- package/components/chunks/{MazPickerYearSwitcher-BLUXEs0G.mjs → MazPickerYearSwitcher-vUTntpYE.mjs} +1 -1
- package/components/chunks/{MazSelect-BUETsREx.mjs → MazSelect-DA1D4Aus.mjs} +85 -90
- package/components/chunks/{MazSelect-BDMOrVry.mjs → MazSelect-DpLBpopb.mjs} +40 -45
- package/components/chunks/{MazSpinner--fscjBdL.mjs → MazSpinner-Bbagpn0P.mjs} +1 -1
- package/components/chunks/{MazSpinner-RzOGVi6V.mjs → MazSpinner-Bi3tSdWr.mjs} +1 -1
- package/components/chunks/MazSpinner-Btv2qATX.mjs +34 -0
- package/components/chunks/MazSpinner-CR8HZnWn.mjs +34 -0
- package/components/chunks/{MazSpinner-C0PBSYpC.mjs → MazSpinner-DIPbNESr.mjs} +1 -1
- package/components/chunks/{MazSpinner-C-64WJje.mjs → MazSpinner-a80KrraB.mjs} +1 -1
- package/components/chunks/{MazSpinner-CEgSruvD.mjs → MazSpinner-v0FIBDiy.mjs} +1 -1
- package/components/chunks/MazStepper-DKPl3uIk.mjs +218 -0
- package/components/chunks/{MazTable-CWsaB02U.mjs → MazTable-DBiW_J2i.mjs} +104 -100
- package/components/chunks/MazTableCell-D10vPzyI.mjs +26 -0
- package/components/chunks/{MazTableRow-6KrQQQbm.mjs → MazTableRow-CSxkhwUM.mjs} +8 -8
- package/components/chunks/MazTableTitle-BdRR_MXI.mjs +26 -0
- package/components/chunks/{MazTabsBar-CM-w7V97.mjs → MazTabsBar-BVg2pxLA.mjs} +2 -2
- package/components/chunks/{MazTransitionExpand-BCgH8NZP.mjs → MazTransitionExpand-2Ft7atX1.mjs} +1 -1
- package/css/main.css +1 -1
- package/nuxt/index.json +1 -1
- package/package.json +1 -1
- package/tailwindcss/variables/colors.ts +2 -0
- package/types/components/MazPicker.vue.d.ts +2 -0
- package/types/components/MazTable.vue.d.ts +6 -0
- package/types/components/MazTableCell.vue.d.ts +5 -1
- package/types/components/MazTableTitle.vue.d.ts +5 -1
- package/types/tailwindcss/variables/colors.d.ts +2 -0
- package/components/chunks/MazExpandAnimation-MDimlZGj.mjs +0 -57
- package/components/chunks/MazLoadingBar-D8a5KF29.mjs +0 -32
- package/components/chunks/MazSpinner-CMMBCwk2.mjs +0 -34
- package/components/chunks/MazSpinner-DebSlkVT.mjs +0 -34
- package/components/chunks/MazStepper-BREfkpUb.mjs +0 -213
- package/components/chunks/MazTableCell-CgiGF3bL.mjs +0 -23
- package/components/chunks/MazTableTitle-C8P3v8b6.mjs +0 -23
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { openBlock as
|
|
2
|
-
import './assets/MazAccordion.css';const
|
|
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
|
|
10
|
-
return
|
|
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
|
|
27
|
-
function
|
|
26
|
+
const T = { render: P };
|
|
27
|
+
function U({
|
|
28
28
|
componentName: r,
|
|
29
|
-
providedId:
|
|
29
|
+
providedId: n
|
|
30
30
|
}) {
|
|
31
|
-
const
|
|
32
|
-
return g(() =>
|
|
31
|
+
const o = V();
|
|
32
|
+
return g(() => n ?? `${r}-${o}`);
|
|
33
33
|
}
|
|
34
|
-
const
|
|
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
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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 -
|
|
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
|
|
68
|
-
return
|
|
69
|
-
window.addEventListener("mousemove",
|
|
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",
|
|
72
|
-
}), (d, u) => (
|
|
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:
|
|
72
|
+
style: k({ backgroundColor: i.value, "--inner-opacity": d.innerOpacity })
|
|
77
73
|
},
|
|
78
74
|
[
|
|
79
|
-
c("div",
|
|
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:
|
|
92
|
+
ref: o,
|
|
97
93
|
class: "blob",
|
|
98
|
-
style:
|
|
94
|
+
style: k({ backgroundColor: l.value })
|
|
99
95
|
},
|
|
100
96
|
null,
|
|
101
97
|
4
|
|
102
98
|
/* STYLE */
|
|
103
99
|
), [
|
|
104
|
-
[z,
|
|
100
|
+
[z, s.value]
|
|
105
101
|
]),
|
|
106
102
|
E(c(
|
|
107
103
|
"div",
|
|
108
104
|
{
|
|
109
105
|
ref_key: "fakeblobElement",
|
|
110
|
-
ref:
|
|
106
|
+
ref: a,
|
|
111
107
|
class: "fakeblob"
|
|
112
108
|
},
|
|
113
109
|
null,
|
|
114
110
|
512
|
|
115
111
|
/* NEED_PATCH */
|
|
116
112
|
), [
|
|
117
|
-
[z,
|
|
113
|
+
[z, s.value]
|
|
118
114
|
])
|
|
119
115
|
],
|
|
120
116
|
6
|
|
121
117
|
/* CLASS, STYLE */
|
|
122
118
|
));
|
|
123
119
|
}
|
|
124
|
-
}), C = (r,
|
|
125
|
-
const
|
|
126
|
-
for (const [
|
|
127
|
-
a
|
|
128
|
-
return
|
|
129
|
-
},
|
|
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__ */
|
|
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
|
-
|
|
142
|
-
|
|
143
|
-
|
|
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
|
|
150
|
-
|
|
141
|
+
function m() {
|
|
142
|
+
n.value && (o.value = !1);
|
|
151
143
|
}
|
|
152
|
-
return
|
|
153
|
-
var
|
|
154
|
-
(
|
|
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
|
|
157
|
-
(
|
|
158
|
-
}), (
|
|
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:
|
|
161
|
-
class: $(["m-expand-animation", { "m-expand-animation--expanded":
|
|
162
|
-
"aria-hidden": !
|
|
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
|
-
|
|
160
|
+
I({ class: "m-expand-animation__inner" }, l.$attrs, {
|
|
168
161
|
class: {
|
|
169
|
-
"--overflow-hidden":
|
|
162
|
+
"--overflow-hidden": o.value
|
|
170
163
|
}
|
|
171
164
|
}),
|
|
172
165
|
[
|
|
173
|
-
h(
|
|
166
|
+
h(l.$slots, "default", {}, void 0, !0)
|
|
174
167
|
],
|
|
175
168
|
16
|
|
176
169
|
/* FULL_PROPS */
|
|
177
170
|
)
|
|
178
|
-
],
|
|
171
|
+
], 14, W));
|
|
179
172
|
}
|
|
180
|
-
}),
|
|
173
|
+
}), J = /* @__PURE__ */ C(G, [["__scopeId", "data-v-3bfdfbc1"]]), K = {
|
|
181
174
|
class: "m-accordion",
|
|
182
175
|
role: "presentation"
|
|
183
|
-
},
|
|
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:
|
|
192
|
-
const
|
|
184
|
+
setup(r, { emit: n }) {
|
|
185
|
+
const o = r, a = n, s = U({
|
|
193
186
|
componentName: "MazAccordion",
|
|
194
|
-
providedId:
|
|
195
|
-
}),
|
|
196
|
-
() => Object.keys(
|
|
197
|
-
),
|
|
198
|
-
get: () =>
|
|
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
|
-
|
|
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
|
|
207
|
-
d.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, _) => (
|
|
210
|
-
(
|
|
211
|
-
|
|
202
|
+
return (e, _) => (p(), b("div", K, [
|
|
203
|
+
(p(!0), b(
|
|
204
|
+
j,
|
|
212
205
|
null,
|
|
213
|
-
|
|
214
|
-
|
|
206
|
+
F(l.value, (t) => (p(), N(
|
|
207
|
+
H,
|
|
215
208
|
{
|
|
216
|
-
key:
|
|
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-${
|
|
216
|
+
id: `step-${t}-${y(s)}`,
|
|
224
217
|
class: "m-accordion__header",
|
|
225
|
-
"aria-controls": `step-${
|
|
226
|
-
"aria-expanded": u(
|
|
227
|
-
onClick: (
|
|
218
|
+
"aria-controls": `step-${t}-${y(s)}`,
|
|
219
|
+
"aria-expanded": u(t),
|
|
220
|
+
onClick: (Y) => v(t)
|
|
228
221
|
}, [
|
|
229
|
-
h(e.$slots, `title-${
|
|
230
|
-
isOpen: u(
|
|
222
|
+
h(e.$slots, `title-${t}`, {
|
|
223
|
+
isOpen: u(t)
|
|
231
224
|
}, void 0, !0),
|
|
232
|
-
S(
|
|
233
|
-
class: $(["header-icon", { "--rotate": u(
|
|
225
|
+
S(y(T), {
|
|
226
|
+
class: $(["header-icon", { "--rotate": u(t) }])
|
|
234
227
|
}, null, 8, ["class"])
|
|
235
|
-
], 8,
|
|
236
|
-
S(
|
|
228
|
+
], 8, Q),
|
|
229
|
+
S(J, {
|
|
237
230
|
"animation-duration": "300ms",
|
|
238
|
-
"model-value": u(
|
|
239
|
-
"aria-labelledby": `step-${
|
|
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(
|
|
242
|
+
isOpen: u(t)
|
|
250
243
|
}, void 0, !0),
|
|
251
|
-
h(e.$slots, `content-${
|
|
252
|
-
isOpen: u(
|
|
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
|
-
}),
|
|
267
|
+
}), ee = /* @__PURE__ */ C(X, [["__scopeId", "data-v-052b6500"]]);
|
|
275
268
|
export {
|
|
276
|
-
|
|
269
|
+
ee as default
|
|
277
270
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as v,
|
|
2
|
-
import './assets/MazAnimatedCounter.css';const
|
|
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
|
-
},
|
|
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((
|
|
15
|
-
|
|
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 && (
|
|
23
|
-
|
|
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:
|
|
32
|
-
"--animated":
|
|
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
|
-
|
|
39
|
-
|
|
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
|
-
|
|
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",
|
|
60
|
-
|
|
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
|
-
|
|
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
|
-
])) :
|
|
74
|
+
])) : S("v-if", !0)
|
|
75
75
|
],
|
|
76
|
-
|
|
77
|
-
/* CLASS */
|
|
76
|
+
6
|
|
77
|
+
/* CLASS, STYLE */
|
|
78
78
|
));
|
|
79
79
|
}
|
|
80
|
-
}),
|
|
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
|
-
},
|
|
85
|
+
}, V = /* @__PURE__ */ M(A, [["__scopeId", "data-v-fc78b268"]]);
|
|
86
86
|
export {
|
|
87
|
-
|
|
87
|
+
V as default
|
|
88
88
|
};
|
package/components/MazCard.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as _,
|
|
2
|
-
import './assets/MazCardSpotlight.css';const
|
|
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:
|
|
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,${
|
|
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
|
|
36
|
-
return
|
|
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
|
-
}),
|
|
34
|
+
}), E(() => {
|
|
39
35
|
window.removeEventListener("mousemove", d);
|
|
40
|
-
}), (e,
|
|
36
|
+
}), (e, u) => (w(), z(
|
|
41
37
|
"div",
|
|
42
38
|
{
|
|
43
|
-
class:
|
|
44
|
-
style:
|
|
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:
|
|
47
|
+
class: m(["content", [{ "maz-p-4": e.padding }, e.contentClass]])
|
|
52
48
|
},
|
|
53
49
|
[
|
|
54
|
-
|
|
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:
|
|
62
|
+
style: b({ backgroundColor: g.value })
|
|
67
63
|
},
|
|
68
64
|
null,
|
|
69
65
|
4
|
|
70
66
|
/* STYLE */
|
|
71
67
|
), [
|
|
72
|
-
[
|
|
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
|
-
[
|
|
81
|
+
[h, t.value]
|
|
86
82
|
])
|
|
87
83
|
],
|
|
88
84
|
6
|
|
89
85
|
/* CLASS, STYLE */
|
|
90
86
|
));
|
|
91
87
|
}
|
|
92
|
-
}),
|
|
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__ */
|
|
93
|
+
}, L = /* @__PURE__ */ O($, [["__scopeId", "data-v-30c7054c"]]);
|
|
98
94
|
export {
|
|
99
95
|
L as default
|
|
100
96
|
};
|