maz-ui 3.40.2 → 3.40.4
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/README.md +1 -1
- package/components/MazAccordion.mjs +121 -104
- package/components/MazAvatar.mjs +1 -1
- package/components/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.d.ts +2 -2
- package/components/MazBtn.mjs +1 -1
- package/components/MazCard.d.ts +8 -2
- package/components/MazCard.mjs +1 -1
- package/components/MazCardSpotlight.d.ts +41 -2
- package/components/MazCardSpotlight.mjs +56 -39
- package/components/MazCarousel.mjs +1 -1
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.mjs +1 -1
- package/components/MazDropdown.mjs +1 -1
- package/components/MazInput.mjs +1 -1
- package/components/MazInputCode.mjs +32 -32
- package/components/MazInputNumber.mjs +1 -1
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.mjs +1 -1
- package/components/MazPagination.mjs +1 -1
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.mjs +1 -1
- package/components/MazSelect.mjs +1 -1
- package/components/MazStepper.mjs +1 -1
- package/components/MazTable.mjs +1 -1
- package/components/assets/MazAccordion.css +1 -1
- package/components/assets/MazAvatar.css +1 -1
- package/components/assets/MazBtn.css +1 -1
- package/components/assets/MazCard.css +1 -1
- package/components/assets/MazCardSpotlight.css +1 -1
- package/components/assets/MazDropzone.css +1 -1
- package/components/assets/MazInputCode.css +1 -1
- package/components/assets/MazInputNumber.css +1 -1
- package/components/assets/MazInputTags.css +1 -1
- package/components/assets/MazPagination.css +1 -1
- package/components/assets/MazPickerCalendar.css +1 -1
- package/components/assets/MazStepper.css +1 -1
- package/components/assets/MazTable.css +1 -1
- package/components/chunks/{MazAvatar-CfJSw4Yv.mjs → MazAvatar-QDlH6tvz.mjs} +2 -2
- package/components/chunks/{MazBottomSheet-uKxvK85D.mjs → MazBottomSheet-CIlIdn-2.mjs} +1 -1
- package/components/chunks/{MazBtn-Cf6bpPps.mjs → MazBtn-78ToUjeK.mjs} +38 -38
- package/components/chunks/MazBtn-BKtYocJV.mjs +151 -0
- package/components/chunks/{MazBtn-C1Hevhzu.mjs → MazBtn-BydIwD1J.mjs} +5 -5
- package/components/chunks/MazBtn-Bz4-bhWf.mjs +151 -0
- package/components/chunks/{MazBtn-DBGIZYN0.mjs → MazBtn-CPyDRy19.mjs} +38 -38
- package/components/chunks/MazBtn-CauvhLv6.mjs +151 -0
- package/components/chunks/{MazBtn-WxZqpFgw.mjs → MazBtn-Ccvl1ZWv.mjs} +5 -5
- package/components/chunks/MazBtn-DWDitOvL.mjs +151 -0
- package/components/chunks/{MazBtn-Ct6j9jc6.mjs → MazBtn-Da5Nh9ga.mjs} +38 -38
- package/components/chunks/MazBtn-Dnq16gKt.mjs +151 -0
- package/components/chunks/MazBtn-Ng8Jql0R.mjs +151 -0
- package/components/chunks/MazBtn-_NGDIlQK.mjs +151 -0
- package/components/chunks/{MazCard-EXkymtQk.mjs → MazCard-DCz1q6wT.mjs} +70 -69
- package/components/chunks/{MazCarousel-iKzlrVVy.mjs → MazCarousel-DZZilIAg.mjs} +1 -1
- package/components/chunks/{MazCheckbox-Dqw5B6BC.mjs → MazCheckbox-C1O-MBZa.mjs} +1 -1
- package/components/chunks/{MazCheckbox-CZdX-eyY.mjs → MazCheckbox-PgXh8RSO.mjs} +1 -1
- package/components/chunks/{MazDialog-4Th-Xut5.mjs → MazDialog-wPf8YzO5.mjs} +1 -1
- package/components/chunks/{MazDialogPromise-CJsnYYpX.mjs → MazDialogPromise-C4xTbUi9.mjs} +2 -2
- package/components/chunks/{MazGallery-D7CXzxIH.mjs → MazGallery-CaZnMqiM.mjs} +2 -2
- package/components/chunks/{MazIcon-DgT8iWEh.mjs → MazIcon-BfD79t7M.mjs} +1 -1
- package/components/chunks/{MazIcon-B-UuPklS.mjs → MazIcon-DAWEYUs6.mjs} +1 -1
- package/components/chunks/{MazInput-DDZFdad5.mjs → MazInput-BZBaDBjc.mjs} +1 -1
- package/components/chunks/{MazInputNumber-Cu15o5vo.mjs → MazInputNumber-DsSRD1TO.mjs} +64 -64
- package/components/chunks/{MazInputPrice-B7l9-xh2.mjs → MazInputPrice-BjI2ZK_A.mjs} +1 -1
- package/components/chunks/{MazInputTags-CNEK5pfK.mjs → MazInputTags-CUV1HRPI.mjs} +5 -5
- package/components/chunks/{MazLazyImg-BImCTi5K.mjs → MazLazyImg-BGK0RZe2.mjs} +2 -2
- package/components/chunks/{MazPagination-C4p_B9Dg.mjs → MazPagination-CfLOeWuj.mjs} +41 -41
- package/components/chunks/{MazPhoneNumberInput-DGf04XP4.mjs → MazPhoneNumberInput-CsBXHpCq.mjs} +2 -2
- package/components/chunks/{MazPicker-DzOi-CWS.mjs → MazPicker-_ndeWiCy.mjs} +2 -2
- package/components/chunks/{MazPickerCalendar-BZyGvAzQ.mjs → MazPickerCalendar-BXadlngJ.mjs} +7 -7
- package/components/chunks/{MazPickerHeader-CgoLWXed.mjs → MazPickerHeader-BpNxHXI2.mjs} +1 -1
- package/components/chunks/{MazPickerMonthSwitcher-BzxzHg15.mjs → MazPickerMonthSwitcher-BzEZ5x7j.mjs} +2 -2
- package/components/chunks/{MazPickerShortcuts-CUfm1E2A.mjs → MazPickerShortcuts-BreMu-Sy.mjs} +2 -2
- package/components/chunks/{MazPickerTime-BRb6pDOe.mjs → MazPickerTime-Cc2hHJlp.mjs} +2 -2
- package/components/chunks/{MazPickerYearSwitcher-CJY_QYpN.mjs → MazPickerYearSwitcher-B2Dk5iso.mjs} +3 -3
- package/components/chunks/{MazSelect-BsWij77Q.mjs → MazSelect-CraB8U5x.mjs} +2 -2
- package/components/chunks/{MazSpinner-3KgM7Cpe.mjs → MazSpinner-8VnYwZdB.mjs} +1 -1
- package/components/chunks/{MazSpinner-O0WGwdtL.mjs → MazSpinner-B_WP-2kr.mjs} +1 -1
- package/components/chunks/MazSpinner-BmOvvC7W.mjs +38 -0
- package/components/chunks/{MazSpinner-DHAlXW-A.mjs → MazSpinner-BtpIL60X.mjs} +1 -1
- package/components/chunks/{MazSpinner-CkigTMVl.mjs → MazSpinner-BxYAlebs.mjs} +1 -1
- package/components/chunks/MazSpinner-C-lFmcUR.mjs +38 -0
- package/components/chunks/MazSpinner-CTm1URNC.mjs +38 -0
- package/components/chunks/{MazSpinner-BxTf8_F4.mjs → MazSpinner-CXoCX_ho.mjs} +1 -1
- package/components/chunks/{MazSpinner-DUmQCQu_.mjs → MazSpinner-CZBhl7ce.mjs} +1 -1
- package/components/chunks/{MazSpinner-B_yl5MqC.mjs → MazSpinner-DWts_Ogu.mjs} +1 -1
- package/components/chunks/{MazSpinner-DzWvDo6x.mjs → MazSpinner-DYkIZhje.mjs} +1 -1
- package/components/chunks/MazSpinner-DibP0zFm.mjs +38 -0
- package/components/chunks/MazSpinner-DkLBbDGC.mjs +38 -0
- package/components/chunks/MazSpinner-DpOv_AqU.mjs +38 -0
- package/components/chunks/{MazSpinner-BazLgFW3.mjs → MazSpinner-Dt5ax5Hn.mjs} +1 -1
- package/components/chunks/MazSpinner-RodpKP96.mjs +38 -0
- package/components/chunks/MazSpinner-bGMoZfcX.mjs +38 -0
- package/components/chunks/{MazStepper-BvKEjtJo.mjs → MazStepper-CV4dwvS9.mjs} +22 -22
- package/components/chunks/{MazTable-Ds_9n2ph.mjs → MazTable-Cr4kGAth.mjs} +119 -119
- package/components/chunks/{MazTransitionExpand-F8UmMAin.mjs → MazTransitionExpand-Bxl5ajH4.mjs} +1 -1
- package/components/chunks/{MazTransitionExpand-C6uOt--l.mjs → MazTransitionExpand-DLMtNsk_.mjs} +1 -1
- package/css/main.css +1 -1
- package/modules/assets/MazBtn.css +1 -1
- package/modules/chunks/MazBtn-CJkDV-lC.cjs +9 -0
- package/{components/chunks/MazBtn-CuUu5chG.mjs → modules/chunks/MazBtn-Dv9nwclG.mjs} +38 -38
- package/modules/chunks/{MazIcon-Bm9aj2GA.cjs → MazIcon-C8crlYdE.cjs} +1 -1
- package/modules/chunks/{MazIcon-qdhBwo_3.mjs → MazIcon-CRXUvqjd.mjs} +1 -1
- package/modules/chunks/{MazSpinner-DCWCHgly.mjs → MazSpinner-AmAmgKgK.mjs} +1 -1
- package/modules/chunks/{MazSpinner-BFGq9o4c.cjs → MazSpinner-C7r_jjn3.cjs} +1 -1
- package/modules/chunks/{index-Cl2Z9oxB.cjs → index-95nXhooW.cjs} +1 -1
- package/modules/chunks/{index-BRqo10xg.mjs → index-B99VOYdM.mjs} +2 -2
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +1 -1
- package/nuxt/index.json +1 -1
- package/package.json +1 -1
- package/types/components/MazBtn.vue.d.ts +2 -2
- package/types/components/MazCard.vue.d.ts +8 -2
- package/types/components/MazCardSpotlight.vue.d.ts +41 -2
- package/components/chunks/MazBtn-DWZMLLYY.mjs +0 -151
- package/components/chunks/MazBtn-DgWU7Vzx.mjs +0 -151
- package/components/chunks/MazBtn-Dp7XmWvD.mjs +0 -151
- package/components/chunks/MazBtn-Ds_0Y11U.mjs +0 -151
- package/components/chunks/MazBtn-qHhaccbJ.mjs +0 -151
- package/components/chunks/MazBtn-yFDtvtao.mjs +0 -151
- package/components/chunks/MazSpinner-CPFxMAVg.mjs +0 -38
- package/components/chunks/MazSpinner-DQTSh25q.mjs +0 -38
- package/components/chunks/MazSpinner-Dhgoim8I.mjs +0 -38
- package/components/chunks/MazSpinner-DuQDsXrM.mjs +0 -38
- package/components/chunks/MazSpinner-S7b1mVEd.mjs +0 -38
- package/components/chunks/MazSpinner-YQWKVqVa.mjs +0 -38
- package/components/chunks/MazSpinner-v_h1kbbd.mjs +0 -38
- package/components/chunks/MazSpinner-zKKOOicV.mjs +0 -38
- package/modules/chunks/MazBtn-0K3jTP4n.cjs +0 -9
- package/modules/chunks/MazBtn-D7GTVnKj.mjs +0 -151
package/README.md
CHANGED
|
@@ -1,69 +1,74 @@
|
|
|
1
1
|
import './assets/MazAccordion.css';
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
const
|
|
2
|
+
import { defineComponent as z, useCssVars as B, openBlock as v, createBlock as I, TransitionGroup as O, withCtx as $, renderSlot as f, nextTick as S, ref as y, computed as g, onMounted as V, onUnmounted as A, createElementBlock as b, normalizeClass as C, normalizeStyle as x, createElementVNode as u, withDirectives as k, vShow as w, getCurrentInstance as L, useSlots as T, Fragment as D, renderList as N, unref as _, createVNode as M } from "vue";
|
|
3
|
+
const j = /* @__PURE__ */ z({
|
|
4
4
|
__name: "MazTransitionExpand",
|
|
5
5
|
props: {
|
|
6
6
|
animationDuration: { default: "300ms" }
|
|
7
7
|
},
|
|
8
8
|
setup(r) {
|
|
9
|
-
|
|
9
|
+
B((t) => ({
|
|
10
10
|
"26239c6e": t.animationDuration
|
|
11
11
|
}));
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
t.style.width =
|
|
12
|
+
const l = (t) => {
|
|
13
|
+
const a = getComputedStyle(t).width;
|
|
14
|
+
t.style.width = a, t.style.position = "absolute", t.style.visibility = "hidden", t.style.height = "auto", t.style.top = "bottom";
|
|
15
15
|
const s = getComputedStyle(t).height;
|
|
16
|
-
t.style.width = "", t.style.position = "", t.style.visibility = "", t.style.height = "0px", getComputedStyle(t).height,
|
|
16
|
+
t.style.width = "", t.style.position = "", t.style.visibility = "", t.style.height = "0px", getComputedStyle(t).height, S(() => {
|
|
17
17
|
t.style.height = s;
|
|
18
18
|
});
|
|
19
|
-
},
|
|
19
|
+
}, n = (t) => {
|
|
20
20
|
t.style.height = "auto";
|
|
21
21
|
}, d = (t) => {
|
|
22
|
-
const
|
|
23
|
-
t.style.height =
|
|
22
|
+
const a = getComputedStyle(t).height;
|
|
23
|
+
t.style.height = a, getComputedStyle(t).height, S(() => {
|
|
24
24
|
t.style.height = "0px";
|
|
25
25
|
});
|
|
26
26
|
};
|
|
27
|
-
return (t,
|
|
27
|
+
return (t, a) => (v(), I(O, {
|
|
28
28
|
class: "m-transition-expand",
|
|
29
29
|
name: "maz-expand",
|
|
30
30
|
tag: "div",
|
|
31
|
-
onEnter:
|
|
32
|
-
onAfterEnter:
|
|
33
|
-
onLeave:
|
|
31
|
+
onEnter: a[0] || (a[0] = (s) => l(s)),
|
|
32
|
+
onAfterEnter: a[1] || (a[1] = (s) => n(s)),
|
|
33
|
+
onLeave: a[2] || (a[2] = (s) => d(s))
|
|
34
34
|
}, {
|
|
35
|
-
default:
|
|
36
|
-
|
|
35
|
+
default: $(() => [
|
|
36
|
+
f(t.$slots, "default", {}, void 0, !0)
|
|
37
37
|
]),
|
|
38
38
|
_: 3
|
|
39
39
|
/* FORWARDED */
|
|
40
40
|
}));
|
|
41
41
|
}
|
|
42
|
-
}),
|
|
43
|
-
const
|
|
44
|
-
for (const [d, t] of
|
|
45
|
-
|
|
46
|
-
return
|
|
47
|
-
},
|
|
42
|
+
}), E = (r, l) => {
|
|
43
|
+
const n = r.__vccOpts || r;
|
|
44
|
+
for (const [d, t] of l)
|
|
45
|
+
n[d] = t;
|
|
46
|
+
return n;
|
|
47
|
+
}, U = /* @__PURE__ */ E(j, [["__scopeId", "data-v-49c2af88"]]), q = { class: "inner" }, F = /* @__PURE__ */ z({
|
|
48
48
|
__name: "MazCardSpotlight",
|
|
49
49
|
props: {
|
|
50
50
|
color: { default: "primary" },
|
|
51
|
-
noElevation: { type: Boolean, default: !1 }
|
|
51
|
+
noElevation: { type: Boolean, default: !1 },
|
|
52
|
+
padding: { type: Boolean, default: !0 },
|
|
53
|
+
contentClass: { default: void 0 },
|
|
54
|
+
contentStyle: { default: void 0 },
|
|
55
|
+
innerOpacity: { default: 0.95 }
|
|
52
56
|
},
|
|
53
57
|
setup(r) {
|
|
54
|
-
|
|
55
|
-
"
|
|
56
|
-
|
|
58
|
+
B((i) => ({
|
|
59
|
+
"474a7292": i.innerOpacity,
|
|
60
|
+
f69a3cbc: s.value
|
|
57
61
|
}));
|
|
58
|
-
const
|
|
59
|
-
function
|
|
60
|
-
var
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
const l = r, n = y(), d = y(), t = y(!1);
|
|
63
|
+
function a({ clientX: i, clientY: c }) {
|
|
64
|
+
var e, m, o;
|
|
65
|
+
t.value = !0;
|
|
66
|
+
const p = (e = d.value) == null ? void 0 : e.getBoundingClientRect();
|
|
67
|
+
p && ((o = (m = n.value) == null ? void 0 : m.animate) == null || o.call(
|
|
68
|
+
m,
|
|
64
69
|
[
|
|
65
70
|
{
|
|
66
|
-
transform: `translate(${
|
|
71
|
+
transform: `translate(${i - p.left - p.width / 2}px,${c - p.top - p.height / 2}px)`
|
|
67
72
|
}
|
|
68
73
|
],
|
|
69
74
|
{
|
|
@@ -72,36 +77,46 @@ const N = /* @__PURE__ */ b({
|
|
|
72
77
|
}
|
|
73
78
|
));
|
|
74
79
|
}
|
|
75
|
-
const
|
|
76
|
-
return
|
|
77
|
-
window.addEventListener("mousemove",
|
|
78
|
-
}),
|
|
79
|
-
window.removeEventListener("mousemove",
|
|
80
|
-
}), (
|
|
80
|
+
const s = g(() => `var(--maz-color-${l.color}-alpha)`), h = g(() => `var(--maz-color-${l.color}-alpha-20)`);
|
|
81
|
+
return V(() => {
|
|
82
|
+
window.addEventListener("mousemove", a);
|
|
83
|
+
}), A(() => {
|
|
84
|
+
window.removeEventListener("mousemove", a);
|
|
85
|
+
}), (i, c) => (v(), b(
|
|
81
86
|
"div",
|
|
82
87
|
{
|
|
83
|
-
class:
|
|
84
|
-
style:
|
|
88
|
+
class: C(["m-card-spotlight", { "maz-elevation": !i.noElevation }]),
|
|
89
|
+
style: x({ backgroundColor: h.value })
|
|
85
90
|
},
|
|
86
91
|
[
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
92
|
+
u("div", q, [
|
|
93
|
+
u(
|
|
94
|
+
"div",
|
|
95
|
+
{
|
|
96
|
+
class: C(["content", [{ "maz-p-4": i.padding }, i.contentClass]])
|
|
97
|
+
},
|
|
98
|
+
[
|
|
99
|
+
f(i.$slots, "default", {}, void 0, !0)
|
|
100
|
+
],
|
|
101
|
+
2
|
|
102
|
+
/* CLASS */
|
|
103
|
+
)
|
|
91
104
|
]),
|
|
92
|
-
|
|
105
|
+
k(u(
|
|
93
106
|
"div",
|
|
94
107
|
{
|
|
95
108
|
ref_key: "blobElement",
|
|
96
|
-
ref:
|
|
109
|
+
ref: n,
|
|
97
110
|
class: "blob",
|
|
98
|
-
style:
|
|
111
|
+
style: x({ backgroundColor: s.value })
|
|
99
112
|
},
|
|
100
113
|
null,
|
|
101
114
|
4
|
|
102
115
|
/* STYLE */
|
|
103
|
-
),
|
|
104
|
-
|
|
116
|
+
), [
|
|
117
|
+
[w, t.value]
|
|
118
|
+
]),
|
|
119
|
+
k(u(
|
|
105
120
|
"div",
|
|
106
121
|
{
|
|
107
122
|
ref_key: "fakeblobElement",
|
|
@@ -111,19 +126,21 @@ const N = /* @__PURE__ */ b({
|
|
|
111
126
|
null,
|
|
112
127
|
512
|
|
113
128
|
/* NEED_PATCH */
|
|
114
|
-
)
|
|
129
|
+
), [
|
|
130
|
+
[w, t.value]
|
|
131
|
+
])
|
|
115
132
|
],
|
|
116
133
|
6
|
|
117
134
|
/* CLASS, STYLE */
|
|
118
135
|
));
|
|
119
136
|
}
|
|
120
|
-
}), G = /* @__PURE__ */
|
|
137
|
+
}), G = /* @__PURE__ */ E(F, [["__scopeId", "data-v-14299ed5"]]), P = {
|
|
121
138
|
xmlns: "http://www.w3.org/2000/svg",
|
|
122
139
|
width: "1em",
|
|
123
140
|
height: "1em",
|
|
124
141
|
fill: "none",
|
|
125
142
|
viewBox: "0 0 24 24"
|
|
126
|
-
}, R = /* @__PURE__ */
|
|
143
|
+
}, R = /* @__PURE__ */ u(
|
|
127
144
|
"path",
|
|
128
145
|
{
|
|
129
146
|
stroke: "currentColor",
|
|
@@ -138,91 +155,91 @@ const N = /* @__PURE__ */ b({
|
|
|
138
155
|
), W = [
|
|
139
156
|
R
|
|
140
157
|
];
|
|
141
|
-
function
|
|
142
|
-
return v(),
|
|
158
|
+
function H(r, l) {
|
|
159
|
+
return v(), b("svg", P, [...W]);
|
|
143
160
|
}
|
|
144
|
-
const
|
|
145
|
-
function
|
|
161
|
+
const J = { render: H };
|
|
162
|
+
function K({
|
|
146
163
|
componentName: r,
|
|
147
|
-
providedId:
|
|
164
|
+
providedId: l
|
|
148
165
|
}) {
|
|
149
|
-
const
|
|
150
|
-
return
|
|
166
|
+
const n = L();
|
|
167
|
+
return g(() => l ?? `${r}-${n == null ? void 0 : n.uid}`);
|
|
151
168
|
}
|
|
152
|
-
const
|
|
169
|
+
const Q = {
|
|
153
170
|
class: "m-accordion",
|
|
154
171
|
role: "presentation"
|
|
155
|
-
},
|
|
172
|
+
}, X = ["aria-controls", "aria-expanded", "onClick"], Y = ["id", "aria-labelledby", "aria-hidden"], Z = { class: "maz-pt-4" }, tt = /* @__PURE__ */ z({
|
|
156
173
|
__name: "MazAccordion",
|
|
157
174
|
props: {
|
|
158
175
|
id: { default: void 0 },
|
|
159
176
|
modelValue: { default: 0 }
|
|
160
177
|
},
|
|
161
178
|
emits: ["update:model-value"],
|
|
162
|
-
setup(r, { emit:
|
|
163
|
-
const
|
|
179
|
+
setup(r, { emit: l }) {
|
|
180
|
+
const n = r, d = l, t = K({
|
|
164
181
|
componentName: "MazAccordion",
|
|
165
|
-
providedId:
|
|
166
|
-
}),
|
|
167
|
-
() => Object.keys(
|
|
168
|
-
),
|
|
169
|
-
get: () =>
|
|
182
|
+
providedId: n.id
|
|
183
|
+
}), a = T(), s = g(
|
|
184
|
+
() => Object.keys(a).filter((e) => e.startsWith("title-")).length
|
|
185
|
+
), h = y(n.modelValue), i = g({
|
|
186
|
+
get: () => n.modelValue || h.value,
|
|
170
187
|
set: (e) => {
|
|
171
|
-
|
|
188
|
+
h.value = e, d("update:model-value", e);
|
|
172
189
|
}
|
|
173
190
|
});
|
|
174
191
|
function c(e) {
|
|
175
|
-
return
|
|
192
|
+
return i.value === e;
|
|
176
193
|
}
|
|
177
|
-
function
|
|
178
|
-
|
|
194
|
+
function p(e) {
|
|
195
|
+
i.value === e ? (h.value = 0, d("update:model-value", 0)) : (h.value = e, d("update:model-value", e));
|
|
179
196
|
}
|
|
180
|
-
return (e,
|
|
181
|
-
(v(!0),
|
|
182
|
-
|
|
197
|
+
return (e, m) => (v(), b("div", Q, [
|
|
198
|
+
(v(!0), b(
|
|
199
|
+
D,
|
|
183
200
|
null,
|
|
184
|
-
|
|
201
|
+
N(s.value, (o) => (v(), I(
|
|
185
202
|
G,
|
|
186
203
|
{
|
|
187
|
-
key:
|
|
204
|
+
key: o,
|
|
188
205
|
class: "spotlight"
|
|
189
206
|
},
|
|
190
207
|
{
|
|
191
|
-
default:
|
|
192
|
-
|
|
208
|
+
default: $(() => [
|
|
209
|
+
u("button", {
|
|
193
210
|
class: "header",
|
|
194
|
-
"aria-controls": `step-${
|
|
195
|
-
"aria-expanded": c(
|
|
196
|
-
onClick: (
|
|
211
|
+
"aria-controls": `step-${o}-${_(t)}`,
|
|
212
|
+
"aria-expanded": c(o),
|
|
213
|
+
onClick: (et) => p(o)
|
|
197
214
|
}, [
|
|
198
|
-
|
|
199
|
-
isOpen: c(
|
|
215
|
+
f(e.$slots, `title-${o}`, {
|
|
216
|
+
isOpen: c(o)
|
|
200
217
|
}, void 0, !0),
|
|
201
|
-
|
|
202
|
-
class:
|
|
218
|
+
M(_(J), {
|
|
219
|
+
class: C(["header-icon", { "--rotate": c(o) }])
|
|
203
220
|
}, null, 8, ["class"])
|
|
204
|
-
], 8,
|
|
205
|
-
|
|
206
|
-
|
|
221
|
+
], 8, X),
|
|
222
|
+
M(
|
|
223
|
+
U,
|
|
207
224
|
{ "animation-duration": "300ms" },
|
|
208
225
|
{
|
|
209
|
-
default:
|
|
210
|
-
|
|
211
|
-
id: `step-${
|
|
226
|
+
default: $(() => [
|
|
227
|
+
k(u("div", {
|
|
228
|
+
id: `step-${o}-${_(t)}`,
|
|
212
229
|
role: "region",
|
|
213
|
-
"aria-labelledby": `step-${
|
|
214
|
-
"aria-hidden": !c(
|
|
230
|
+
"aria-labelledby": `step-${o}-${_(t)}`,
|
|
231
|
+
"aria-hidden": !c(o)
|
|
215
232
|
}, [
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
isOpen: c(
|
|
233
|
+
u("div", Z, [
|
|
234
|
+
f(e.$slots, "content", {
|
|
235
|
+
isOpen: c(o)
|
|
219
236
|
}, void 0, !0),
|
|
220
|
-
|
|
221
|
-
isOpen: c(
|
|
237
|
+
f(e.$slots, `content-${o}`, {
|
|
238
|
+
isOpen: c(o)
|
|
222
239
|
}, void 0, !0)
|
|
223
240
|
])
|
|
224
|
-
], 8,
|
|
225
|
-
[
|
|
241
|
+
], 8, Y), [
|
|
242
|
+
[w, c(o)]
|
|
226
243
|
])
|
|
227
244
|
]),
|
|
228
245
|
_: 2
|
|
@@ -243,7 +260,7 @@ const J = {
|
|
|
243
260
|
))
|
|
244
261
|
]));
|
|
245
262
|
}
|
|
246
|
-
}),
|
|
263
|
+
}), nt = /* @__PURE__ */ E(tt, [["__scopeId", "data-v-7a54c498"]]);
|
|
247
264
|
export {
|
|
248
|
-
|
|
265
|
+
nt as default
|
|
249
266
|
};
|
package/components/MazAvatar.mjs
CHANGED
package/components/MazBtn.d.ts
CHANGED
|
@@ -109,7 +109,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
109
109
|
leftIcon: undefined;
|
|
110
110
|
rightIcon: undefined;
|
|
111
111
|
contentClass: undefined;
|
|
112
|
-
roundedSize:
|
|
112
|
+
roundedSize: string;
|
|
113
113
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
114
114
|
variant: string;
|
|
115
115
|
size: string;
|
|
@@ -119,7 +119,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
119
119
|
leftIcon: undefined;
|
|
120
120
|
rightIcon: undefined;
|
|
121
121
|
contentClass: undefined;
|
|
122
|
-
roundedSize:
|
|
122
|
+
roundedSize: string;
|
|
123
123
|
}>>>, {
|
|
124
124
|
size: Size;
|
|
125
125
|
type: "button" | "reset" | "submit";
|
package/components/MazBtn.mjs
CHANGED
package/components/MazCard.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export type Props = {
|
|
|
25
25
|
elevation?: boolean;
|
|
26
26
|
/** Set radius to card */
|
|
27
27
|
radius?: boolean;
|
|
28
|
-
/** Set border to card */
|
|
28
|
+
/** Set border to card (in dark mode, the card is always bordered) */
|
|
29
29
|
bordered?: boolean;
|
|
30
30
|
/** Number of images shown in the gallery */
|
|
31
31
|
imagesShowCount?: number;
|
|
@@ -39,8 +39,14 @@ export type Props = {
|
|
|
39
39
|
noPadding?: boolean;
|
|
40
40
|
/** Hide overflow */
|
|
41
41
|
overflowHidden?: boolean;
|
|
42
|
-
/**
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated Use `collapsible` instead
|
|
44
|
+
*/
|
|
43
45
|
collapsable?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Card can be open and close
|
|
48
|
+
*/
|
|
49
|
+
collapsible?: boolean;
|
|
44
50
|
/** Card is open by default if `true` */
|
|
45
51
|
collapseOpen?: boolean;
|
|
46
52
|
/** Title of the card in header */
|
package/components/MazCard.mjs
CHANGED
|
@@ -1,20 +1,59 @@
|
|
|
1
|
+
import { type HTMLAttributes, type StyleValue } from 'vue';
|
|
1
2
|
import type { Color } from './types';
|
|
2
3
|
export type { Color };
|
|
3
4
|
export type Props = {
|
|
4
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* The color of the component.
|
|
7
|
+
* @default primary
|
|
8
|
+
*/
|
|
5
9
|
color?: Color;
|
|
6
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* Remove the elevation of the component
|
|
12
|
+
* @default false
|
|
13
|
+
*/
|
|
7
14
|
noElevation?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Add padding to the content
|
|
17
|
+
* @default true
|
|
18
|
+
*/
|
|
19
|
+
padding?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* The classes to apply to the content div
|
|
22
|
+
*/
|
|
23
|
+
contentClass?: HTMLAttributes['class'];
|
|
24
|
+
/**
|
|
25
|
+
* Style apply to the content div
|
|
26
|
+
*/
|
|
27
|
+
contentStyle?: StyleValue;
|
|
28
|
+
/**
|
|
29
|
+
* The opacity of the inner div - should be between 0 and 1
|
|
30
|
+
* When 0 the spotlight is completely visible
|
|
31
|
+
* When 1 the spotlight is only visible on borders
|
|
32
|
+
* @default 0.95
|
|
33
|
+
*/
|
|
34
|
+
innerOpacity?: number;
|
|
8
35
|
};
|
|
9
36
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
10
37
|
noElevation: boolean;
|
|
11
38
|
color: string;
|
|
39
|
+
padding: boolean;
|
|
40
|
+
contentClass: undefined;
|
|
41
|
+
contentStyle: undefined;
|
|
42
|
+
innerOpacity: number;
|
|
12
43
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
13
44
|
noElevation: boolean;
|
|
14
45
|
color: string;
|
|
46
|
+
padding: boolean;
|
|
47
|
+
contentClass: undefined;
|
|
48
|
+
contentStyle: undefined;
|
|
49
|
+
innerOpacity: number;
|
|
15
50
|
}>>>, {
|
|
16
51
|
color: Color;
|
|
17
52
|
noElevation: boolean;
|
|
53
|
+
contentClass: any;
|
|
54
|
+
padding: boolean;
|
|
55
|
+
contentStyle: string | false | import("vue").CSSProperties | StyleValue[] | null;
|
|
56
|
+
innerOpacity: number;
|
|
18
57
|
}, {}>, {
|
|
19
58
|
default?(_: {}): any;
|
|
20
59
|
}>;
|
|
@@ -1,25 +1,30 @@
|
|
|
1
1
|
import './assets/MazCardSpotlight.css';
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
const
|
|
2
|
+
import { defineComponent as g, 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 C } from "vue";
|
|
3
|
+
const $ = { class: "inner" }, M = /* @__PURE__ */ g({
|
|
4
4
|
__name: "MazCardSpotlight",
|
|
5
5
|
props: {
|
|
6
6
|
color: { default: "primary" },
|
|
7
|
-
noElevation: { type: Boolean, default: !1 }
|
|
7
|
+
noElevation: { type: Boolean, default: !1 },
|
|
8
|
+
padding: { type: Boolean, default: !0 },
|
|
9
|
+
contentClass: { default: void 0 },
|
|
10
|
+
contentStyle: { default: void 0 },
|
|
11
|
+
innerOpacity: { default: 0.95 }
|
|
8
12
|
},
|
|
9
|
-
setup(
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
+
setup(l) {
|
|
14
|
+
k((e) => ({
|
|
15
|
+
"474a7292": e.innerOpacity,
|
|
16
|
+
f69a3cbc: u.value
|
|
13
17
|
}));
|
|
14
|
-
const l =
|
|
15
|
-
function
|
|
16
|
-
var
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
const n = l, o = c(), r = c(), t = c(!1);
|
|
19
|
+
function d({ clientX: e, clientY: p }) {
|
|
20
|
+
var v, s, f;
|
|
21
|
+
t.value = !0;
|
|
22
|
+
const a = (v = r.value) == null ? void 0 : v.getBoundingClientRect();
|
|
23
|
+
a && ((f = (s = o.value) == null ? void 0 : s.animate) == null || f.call(
|
|
19
24
|
s,
|
|
20
25
|
[
|
|
21
26
|
{
|
|
22
|
-
transform: `translate(${e
|
|
27
|
+
transform: `translate(${e - a.left - a.width / 2}px,${p - a.top - a.height / 2}px)`
|
|
23
28
|
}
|
|
24
29
|
],
|
|
25
30
|
{
|
|
@@ -28,57 +33,69 @@ const z = { class: "inner" }, w = { class: "content" }, B = /* @__PURE__ */ _({
|
|
|
28
33
|
}
|
|
29
34
|
));
|
|
30
35
|
}
|
|
31
|
-
const
|
|
32
|
-
return
|
|
33
|
-
window.addEventListener("mousemove",
|
|
34
|
-
}),
|
|
35
|
-
window.removeEventListener("mousemove",
|
|
36
|
-
}), (e,
|
|
36
|
+
const u = m(() => `var(--maz-color-${n.color}-alpha)`), _ = m(() => `var(--maz-color-${n.color}-alpha-20)`);
|
|
37
|
+
return E(() => {
|
|
38
|
+
window.addEventListener("mousemove", d);
|
|
39
|
+
}), w(() => {
|
|
40
|
+
window.removeEventListener("mousemove", d);
|
|
41
|
+
}), (e, p) => (z(), B(
|
|
37
42
|
"div",
|
|
38
43
|
{
|
|
39
|
-
class:
|
|
40
|
-
style:
|
|
44
|
+
class: b(["m-card-spotlight", { "maz-elevation": !e.noElevation }]),
|
|
45
|
+
style: h({ backgroundColor: _.value })
|
|
41
46
|
},
|
|
42
47
|
[
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
48
|
+
i("div", $, [
|
|
49
|
+
i(
|
|
50
|
+
"div",
|
|
51
|
+
{
|
|
52
|
+
class: b(["content", [{ "maz-p-4": e.padding }, e.contentClass]])
|
|
53
|
+
},
|
|
54
|
+
[
|
|
55
|
+
S(e.$slots, "default", {}, void 0, !0)
|
|
56
|
+
],
|
|
57
|
+
2
|
|
58
|
+
/* CLASS */
|
|
59
|
+
)
|
|
47
60
|
]),
|
|
48
|
-
|
|
61
|
+
y(i(
|
|
49
62
|
"div",
|
|
50
63
|
{
|
|
51
64
|
ref_key: "blobElement",
|
|
52
|
-
ref:
|
|
65
|
+
ref: o,
|
|
53
66
|
class: "blob",
|
|
54
|
-
style:
|
|
67
|
+
style: h({ backgroundColor: u.value })
|
|
55
68
|
},
|
|
56
69
|
null,
|
|
57
70
|
4
|
|
58
71
|
/* STYLE */
|
|
59
|
-
),
|
|
60
|
-
|
|
72
|
+
), [
|
|
73
|
+
[C, t.value]
|
|
74
|
+
]),
|
|
75
|
+
y(i(
|
|
61
76
|
"div",
|
|
62
77
|
{
|
|
63
78
|
ref_key: "fakeblobElement",
|
|
64
|
-
ref:
|
|
79
|
+
ref: r,
|
|
65
80
|
class: "fakeblob"
|
|
66
81
|
},
|
|
67
82
|
null,
|
|
68
83
|
512
|
|
69
84
|
/* NEED_PATCH */
|
|
70
|
-
)
|
|
85
|
+
), [
|
|
86
|
+
[C, t.value]
|
|
87
|
+
])
|
|
71
88
|
],
|
|
72
89
|
6
|
|
73
90
|
/* CLASS, STYLE */
|
|
74
91
|
));
|
|
75
92
|
}
|
|
76
|
-
}),
|
|
77
|
-
const
|
|
78
|
-
for (const [
|
|
79
|
-
|
|
80
|
-
return
|
|
81
|
-
},
|
|
93
|
+
}), O = (l, n) => {
|
|
94
|
+
const o = l.__vccOpts || l;
|
|
95
|
+
for (const [r, t] of n)
|
|
96
|
+
o[r] = t;
|
|
97
|
+
return o;
|
|
98
|
+
}, L = /* @__PURE__ */ O(M, [["__scopeId", "data-v-14299ed5"]]);
|
|
82
99
|
export {
|
|
83
|
-
|
|
100
|
+
L as default
|
|
84
101
|
};
|
package/components/MazDialog.mjs
CHANGED