maz-ui 3.26.0 → 3.27.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.
- package/components/MazAccordion.d.ts +46 -0
- package/components/MazAccordion.mjs +4 -0
- package/components/MazCard.mjs +1 -1
- package/components/MazStepper.mjs +1 -1
- package/components/MazTransitionExpand.d.ts +28 -1
- package/components/MazTransitionExpand.mjs +17 -11
- package/components/assets/MazAccordion.css +1 -0
- package/components/assets/MazTransitionExpand.css +1 -1
- package/components/chunks/MazAccordion-Q2kHrFrd.mjs +924 -0
- package/components/chunks/{MazBtn-KS6DAMFz.mjs → MazBtn-ltYqEtp-.mjs} +2 -2
- package/components/chunks/{MazCard-MWYquPZ4.mjs → MazCard-oUcvRAn1.mjs} +1 -1
- package/components/chunks/{MazGallery-CEUOlb-F.mjs → MazGallery-ynPSyerS.mjs} +1 -1
- package/components/chunks/MazSpinner-7bjzmspR.mjs +37 -0
- package/components/chunks/{MazSpinner-DsryKnTH.mjs → MazSpinner-UWaOBW3P.mjs} +1 -1
- package/components/chunks/{MazStepper-jTbyQoAN.mjs → MazStepper--XEPRoxi.mjs} +1 -1
- package/components/chunks/{MazTransitionExpand-C2Ftcb-S.mjs → MazTransitionExpand-FX3aJeVS.mjs} +19 -13
- package/components/chunks/{MazTransitionExpand-dEnhdFi5.mjs → MazTransitionExpand-k5BjIF7s.mjs} +19 -13
- package/components/index.d.ts +1 -0
- package/components/index.mjs +1 -0
- package/nuxt/index.json +1 -1
- package/package.json +1 -1
- package/types/components/MazAccordion.vue.d.ts +46 -0
- package/types/components/MazTransitionExpand.vue.d.ts +28 -1
- package/types/components/index.d.ts +1 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../assets/MazBtn.css";
|
|
2
2
|
import { defineComponent as M, defineAsyncComponent as z, useAttrs as E, useSlots as L, onBeforeMount as R, computed as t, openBlock as o, createBlock as i, resolveDynamicComponent as w, normalizeClass as u, withCtx as A, createElementBlock as v, renderSlot as r, unref as d, createCommentVNode as a, createElementVNode as D } from "vue";
|
|
3
|
-
import { _ as N } from "./MazCard-
|
|
3
|
+
import { _ as N } from "./MazCard-oUcvRAn1.mjs";
|
|
4
4
|
const P = /* @__PURE__ */ M({
|
|
5
5
|
__name: "MazBtn",
|
|
6
6
|
props: {
|
|
@@ -40,7 +40,7 @@ const P = /* @__PURE__ */ M({
|
|
|
40
40
|
noElevation: { type: Boolean, default: !1 }
|
|
41
41
|
},
|
|
42
42
|
setup(e) {
|
|
43
|
-
const p = z(() => import("./MazSpinner-
|
|
43
|
+
const p = z(() => import("./MazSpinner-UWaOBW3P.mjs")), c = z(() => import("./MazIcon-RrJDzX3V.mjs")), { href: B, to: h } = E(), b = L(), n = e;
|
|
44
44
|
R(() => {
|
|
45
45
|
n.icon && !n.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|
|
46
46
|
});
|
|
@@ -68,7 +68,7 @@ const E = {
|
|
|
68
68
|
collapseOpen: { type: Boolean, default: !1 }
|
|
69
69
|
},
|
|
70
70
|
setup(e) {
|
|
71
|
-
const g = c(() => import("./MazBtn-
|
|
71
|
+
const g = c(() => import("./MazBtn-ltYqEtp-.mjs")), u = c(() => import("./MazGallery-ynPSyerS.mjs")), y = c(() => import("./MazTransitionExpand-FX3aJeVS.mjs")), z = c(() => import("./chevron-down-bC0s_0yH.mjs")), r = e, S = N(), o = H(r.collapsable ? r.collapseOpen : !0);
|
|
72
72
|
j(
|
|
73
73
|
() => r.collapseOpen,
|
|
74
74
|
(t) => {
|
|
@@ -3,7 +3,7 @@ var B = (o, e, t) => e in o ? H(o, e, { enumerable: !0, configurable: !0, writab
|
|
|
3
3
|
var i = (o, e, t) => (B(o, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
4
|
import "../assets/MazGallery.css";
|
|
5
5
|
import { defineComponent as S, useCssVars as O, defineAsyncComponent as M, onBeforeMount as _, computed as p, openBlock as u, createElementBlock as g, normalizeClass as y, normalizeStyle as E, createElementVNode as b, Fragment as x, renderList as C, withDirectives as w, unref as v, toDisplayString as T, createCommentVNode as L, createVNode as N } from "vue";
|
|
6
|
-
import { _ as R } from "./MazCard-
|
|
6
|
+
import { _ as R } from "./MazCard-oUcvRAn1.mjs";
|
|
7
7
|
const U = `
|
|
8
8
|
.maz-zoom-img {
|
|
9
9
|
position: fixed;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { defineComponent as t, openBlock as o, createElementBlock as c, normalizeClass as n, pushScopeId as s, popScopeId as r, createElementVNode as i } from "vue";
|
|
2
|
+
import { _ as p } from "./MazAccordion-Q2kHrFrd.mjs";
|
|
3
|
+
const a = (e) => (s("data-v-c67298ec"), e = e(), r(), e), d = ["width", "height"], l = /* @__PURE__ */ a(() => /* @__PURE__ */ i(
|
|
4
|
+
"path",
|
|
5
|
+
{ d: "M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z" },
|
|
6
|
+
null,
|
|
7
|
+
-1
|
|
8
|
+
/* HOISTED */
|
|
9
|
+
)), m = [
|
|
10
|
+
l
|
|
11
|
+
], h = /* @__PURE__ */ t({
|
|
12
|
+
__name: "MazSpinner",
|
|
13
|
+
props: {
|
|
14
|
+
size: { type: String, default: "2em" },
|
|
15
|
+
color: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: "primary"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
setup(e) {
|
|
21
|
+
return (_, u) => (o(), c("svg", {
|
|
22
|
+
width: e.size,
|
|
23
|
+
height: e.size,
|
|
24
|
+
version: "1.1",
|
|
25
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
26
|
+
x: "0px",
|
|
27
|
+
y: "0px",
|
|
28
|
+
viewBox: "0 0 50 50",
|
|
29
|
+
"xml:space": "preserve",
|
|
30
|
+
class: n(["m-spinner", `m-spinner--${e.color}`]),
|
|
31
|
+
style: { "enable-background": "new 0 0 50 50" }
|
|
32
|
+
}, m, 10, d));
|
|
33
|
+
}
|
|
34
|
+
}), f = /* @__PURE__ */ p(h, [["__scopeId", "data-v-c67298ec"]]);
|
|
35
|
+
export {
|
|
36
|
+
f as default
|
|
37
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../assets/MazSpinner.css";
|
|
2
2
|
import { defineComponent as t, openBlock as o, createElementBlock as c, normalizeClass as n, pushScopeId as s, popScopeId as r, createElementVNode as i } from "vue";
|
|
3
|
-
import { _ as p } from "./MazCard-
|
|
3
|
+
import { _ as p } from "./MazCard-oUcvRAn1.mjs";
|
|
4
4
|
const a = (e) => (s("data-v-c67298ec"), e = e(), r(), e), d = ["width", "height"], l = /* @__PURE__ */ a(() => /* @__PURE__ */ i(
|
|
5
5
|
"path",
|
|
6
6
|
{ d: "M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z" },
|
|
@@ -28,7 +28,7 @@ const ee = { class: "m-stepper" }, te = ["disabled", "onClick"], se = { class: "
|
|
|
28
28
|
"61cc49aa": M.value,
|
|
29
29
|
"9242a27c": P.value
|
|
30
30
|
}));
|
|
31
|
-
const _ = m(() => import("./MazTransitionExpand-
|
|
31
|
+
const _ = m(() => import("./MazTransitionExpand-k5BjIF7s.mjs")), g = m(() => import("./check-circle-JGd6LGss.mjs")), $ = m(
|
|
32
32
|
() => import("./exclamation-circle-AoEMgPzE.mjs")
|
|
33
33
|
), A = m(() => import("./exclamation-triangle-KCpIguWV.mjs")), s = i, M = f(() => `var(--maz-color-${s.color})`), P = f(() => `var(--maz-color-${s.color}-contrast)`), W = C, I = G(), v = f(
|
|
34
34
|
() => Object.keys(I).filter((e) => e.startsWith("content-")).length
|
package/components/chunks/{MazTransitionExpand-C2Ftcb-S.mjs → MazTransitionExpand-FX3aJeVS.mjs}
RENAMED
|
@@ -1,31 +1,37 @@
|
|
|
1
1
|
import "../assets/MazTransitionExpand.css";
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { _ as
|
|
4
|
-
const
|
|
2
|
+
import { defineComponent as e, useCssVars as p, openBlock as d, createBlock as h, TransitionGroup as u, withCtx as y, renderSlot as g, nextTick as s } from "vue";
|
|
3
|
+
import { _ as l } from "./MazCard-oUcvRAn1.mjs";
|
|
4
|
+
const f = /* @__PURE__ */ e({
|
|
5
5
|
__name: "MazTransitionExpand",
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
props: {
|
|
7
|
+
animationDuration: { default: "300ms" }
|
|
8
|
+
},
|
|
9
|
+
setup(x) {
|
|
10
|
+
p((t) => ({
|
|
11
|
+
"05585d49": t.animationDuration
|
|
12
|
+
}));
|
|
13
|
+
const a = (t) => {
|
|
8
14
|
const o = getComputedStyle(t).width;
|
|
9
15
|
t.style.width = o, t.style.position = "absolute", t.style.visibility = "hidden", t.style.height = "auto", t.style.top = "bottom";
|
|
10
16
|
const i = getComputedStyle(t).height;
|
|
11
17
|
t.style.width = "", t.style.position = "", t.style.visibility = "", t.style.height = "0px", getComputedStyle(t).height, s(() => {
|
|
12
18
|
t.style.height = i;
|
|
13
19
|
});
|
|
14
|
-
},
|
|
20
|
+
}, n = (t) => {
|
|
15
21
|
t.style.height = "auto";
|
|
16
|
-
},
|
|
22
|
+
}, r = (t) => {
|
|
17
23
|
const o = getComputedStyle(t).height;
|
|
18
24
|
t.style.height = o, getComputedStyle(t).height, s(() => {
|
|
19
25
|
t.style.height = "0px";
|
|
20
26
|
});
|
|
21
27
|
};
|
|
22
|
-
return (t, o) => (
|
|
28
|
+
return (t, o) => (d(), h(u, {
|
|
23
29
|
class: "m-transition-expand",
|
|
24
30
|
name: "maz-expand",
|
|
25
31
|
tag: "div",
|
|
26
|
-
onEnter: o[0] || (o[0] = (i) =>
|
|
27
|
-
onAfterEnter: o[1] || (o[1] = (i) =>
|
|
28
|
-
onLeave: o[2] || (o[2] = (i) =>
|
|
32
|
+
onEnter: o[0] || (o[0] = (i) => a(i)),
|
|
33
|
+
onAfterEnter: o[1] || (o[1] = (i) => n(i)),
|
|
34
|
+
onLeave: o[2] || (o[2] = (i) => r(i))
|
|
29
35
|
}, {
|
|
30
36
|
default: y(() => [
|
|
31
37
|
g(t.$slots, "default", {}, void 0, !0)
|
|
@@ -34,7 +40,7 @@ const l = /* @__PURE__ */ n({
|
|
|
34
40
|
/* FORWARDED */
|
|
35
41
|
}));
|
|
36
42
|
}
|
|
37
|
-
}),
|
|
43
|
+
}), c = /* @__PURE__ */ l(f, [["__scopeId", "data-v-a751ae58"]]);
|
|
38
44
|
export {
|
|
39
|
-
|
|
45
|
+
c as default
|
|
40
46
|
};
|
package/components/chunks/{MazTransitionExpand-dEnhdFi5.mjs → MazTransitionExpand-k5BjIF7s.mjs}
RENAMED
|
@@ -1,31 +1,37 @@
|
|
|
1
1
|
import "../assets/MazTransitionExpand.css";
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { _ as
|
|
4
|
-
const
|
|
2
|
+
import { defineComponent as e, useCssVars as p, openBlock as d, createBlock as h, TransitionGroup as u, withCtx as y, renderSlot as g, nextTick as s } from "vue";
|
|
3
|
+
import { _ as l } from "./MazStepper--XEPRoxi.mjs";
|
|
4
|
+
const f = /* @__PURE__ */ e({
|
|
5
5
|
__name: "MazTransitionExpand",
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
props: {
|
|
7
|
+
animationDuration: { default: "300ms" }
|
|
8
|
+
},
|
|
9
|
+
setup(x) {
|
|
10
|
+
p((t) => ({
|
|
11
|
+
"05585d49": t.animationDuration
|
|
12
|
+
}));
|
|
13
|
+
const a = (t) => {
|
|
8
14
|
const o = getComputedStyle(t).width;
|
|
9
15
|
t.style.width = o, t.style.position = "absolute", t.style.visibility = "hidden", t.style.height = "auto", t.style.top = "bottom";
|
|
10
16
|
const i = getComputedStyle(t).height;
|
|
11
17
|
t.style.width = "", t.style.position = "", t.style.visibility = "", t.style.height = "0px", getComputedStyle(t).height, s(() => {
|
|
12
18
|
t.style.height = i;
|
|
13
19
|
});
|
|
14
|
-
},
|
|
20
|
+
}, n = (t) => {
|
|
15
21
|
t.style.height = "auto";
|
|
16
|
-
},
|
|
22
|
+
}, r = (t) => {
|
|
17
23
|
const o = getComputedStyle(t).height;
|
|
18
24
|
t.style.height = o, getComputedStyle(t).height, s(() => {
|
|
19
25
|
t.style.height = "0px";
|
|
20
26
|
});
|
|
21
27
|
};
|
|
22
|
-
return (t, o) => (
|
|
28
|
+
return (t, o) => (d(), h(u, {
|
|
23
29
|
class: "m-transition-expand",
|
|
24
30
|
name: "maz-expand",
|
|
25
31
|
tag: "div",
|
|
26
|
-
onEnter: o[0] || (o[0] = (i) =>
|
|
27
|
-
onAfterEnter: o[1] || (o[1] = (i) =>
|
|
28
|
-
onLeave: o[2] || (o[2] = (i) =>
|
|
32
|
+
onEnter: o[0] || (o[0] = (i) => a(i)),
|
|
33
|
+
onAfterEnter: o[1] || (o[1] = (i) => n(i)),
|
|
34
|
+
onLeave: o[2] || (o[2] = (i) => r(i))
|
|
29
35
|
}, {
|
|
30
36
|
default: y(() => [
|
|
31
37
|
g(t.$slots, "default", {}, void 0, !0)
|
|
@@ -34,7 +40,7 @@ const l = /* @__PURE__ */ n({
|
|
|
34
40
|
/* FORWARDED */
|
|
35
41
|
}));
|
|
36
42
|
}
|
|
37
|
-
}),
|
|
43
|
+
}), c = /* @__PURE__ */ l(f, [["__scopeId", "data-v-a751ae58"]]);
|
|
38
44
|
export {
|
|
39
|
-
|
|
45
|
+
c as default
|
|
40
46
|
};
|
package/components/index.d.ts
CHANGED
package/components/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* Automatically generated by ./build/generate-lib-entry.js */
|
|
2
2
|
|
|
3
|
+
export { default as MazAccordion } from './MazAccordion.mjs'
|
|
3
4
|
export { default as MazAvatar } from './MazAvatar.mjs'
|
|
4
5
|
export { default as MazBackdrop } from './MazBackdrop.mjs'
|
|
5
6
|
export { default as MazBadge } from './MazBadge.mjs'
|
package/nuxt/index.json
CHANGED
package/package.json
CHANGED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
modelValue?: number | undefined;
|
|
3
|
+
}>, {
|
|
4
|
+
modelValue: number;
|
|
5
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
"update:model-value": (...args: any[]) => void;
|
|
7
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
8
|
+
modelValue?: number | undefined;
|
|
9
|
+
}>, {
|
|
10
|
+
modelValue: number;
|
|
11
|
+
}>>> & {
|
|
12
|
+
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
13
|
+
}, {
|
|
14
|
+
modelValue: number;
|
|
15
|
+
}, {}>, Partial<Record<`title-${number}`, (_: {
|
|
16
|
+
isOpen: boolean;
|
|
17
|
+
}) => any>> & Partial<Record<`content-${number}`, (_: {
|
|
18
|
+
isOpen: boolean;
|
|
19
|
+
}) => any>> & {
|
|
20
|
+
content?(_: {
|
|
21
|
+
isOpen: boolean;
|
|
22
|
+
}): any;
|
|
23
|
+
}>;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
26
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
27
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
28
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
29
|
+
} : {
|
|
30
|
+
type: import('vue').PropType<T[K]>;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
type __VLS_WithDefaults<P, D> = {
|
|
35
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
36
|
+
default: D[K];
|
|
37
|
+
}> : P[K];
|
|
38
|
+
};
|
|
39
|
+
type __VLS_Prettify<T> = {
|
|
40
|
+
[K in keyof T]: T[K];
|
|
41
|
+
} & {};
|
|
42
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
43
|
+
new (): {
|
|
44
|
+
$slots: S;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
@@ -1,7 +1,34 @@
|
|
|
1
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
animationDuration?: string | undefined;
|
|
3
|
+
}>, {
|
|
4
|
+
animationDuration: string;
|
|
5
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
6
|
+
animationDuration?: string | undefined;
|
|
7
|
+
}>, {
|
|
8
|
+
animationDuration: string;
|
|
9
|
+
}>>>, {
|
|
10
|
+
animationDuration: string;
|
|
11
|
+
}, {}>, {
|
|
2
12
|
default?(_: {}): any;
|
|
3
13
|
}>;
|
|
4
14
|
export default _default;
|
|
15
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
16
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
17
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
18
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
19
|
+
} : {
|
|
20
|
+
type: import('vue').PropType<T[K]>;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
type __VLS_WithDefaults<P, D> = {
|
|
25
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
26
|
+
default: D[K];
|
|
27
|
+
}> : P[K];
|
|
28
|
+
};
|
|
29
|
+
type __VLS_Prettify<T> = {
|
|
30
|
+
[K in keyof T]: T[K];
|
|
31
|
+
} & {};
|
|
5
32
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
6
33
|
new (): {
|
|
7
34
|
$slots: S;
|