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.
@@ -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-MWYquPZ4.mjs";
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-DsryKnTH.mjs")), c = z(() => import("./MazIcon-RrJDzX3V.mjs")), { href: B, to: h } = E(), b = L(), n = e;
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-KS6DAMFz.mjs")), u = c(() => import("./MazGallery-CEUOlb-F.mjs")), y = c(() => import("./MazTransitionExpand-dEnhdFi5.mjs")), z = c(() => import("./chevron-down-bC0s_0yH.mjs")), r = e, S = N(), o = H(r.collapsable ? r.collapseOpen : !0);
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-MWYquPZ4.mjs";
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-MWYquPZ4.mjs";
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-C2Ftcb-S.mjs")), g = m(() => import("./check-circle-JGd6LGss.mjs")), $ = m(
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
@@ -1,31 +1,37 @@
1
1
  import "../assets/MazTransitionExpand.css";
2
- import { defineComponent as n, openBlock as p, createBlock as h, TransitionGroup as d, withCtx as y, renderSlot as g, nextTick as s } from "vue";
3
- import { _ as u } from "./MazStepper-jTbyQoAN.mjs";
4
- const l = /* @__PURE__ */ n({
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
- setup(f) {
7
- const e = (t) => {
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
- }, r = (t) => {
20
+ }, n = (t) => {
15
21
  t.style.height = "auto";
16
- }, a = (t) => {
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) => (p(), h(d, {
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) => e(i)),
27
- onAfterEnter: o[1] || (o[1] = (i) => r(i)),
28
- onLeave: o[2] || (o[2] = (i) => a(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
- }), _ = /* @__PURE__ */ u(l, [["__scopeId", "data-v-3182ea88"]]);
43
+ }), c = /* @__PURE__ */ l(f, [["__scopeId", "data-v-a751ae58"]]);
38
44
  export {
39
- _ as default
45
+ c as default
40
46
  };
@@ -1,31 +1,37 @@
1
1
  import "../assets/MazTransitionExpand.css";
2
- import { defineComponent as n, openBlock as p, createBlock as h, TransitionGroup as d, withCtx as y, renderSlot as g, nextTick as s } from "vue";
3
- import { _ as u } from "./MazCard-MWYquPZ4.mjs";
4
- const l = /* @__PURE__ */ n({
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
- setup(f) {
7
- const e = (t) => {
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
- }, r = (t) => {
20
+ }, n = (t) => {
15
21
  t.style.height = "auto";
16
- }, a = (t) => {
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) => (p(), h(d, {
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) => e(i)),
27
- onAfterEnter: o[1] || (o[1] = (i) => r(i)),
28
- onLeave: o[2] || (o[2] = (i) => a(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
- }), _ = /* @__PURE__ */ u(l, [["__scopeId", "data-v-3182ea88"]]);
43
+ }), c = /* @__PURE__ */ l(f, [["__scopeId", "data-v-a751ae58"]]);
38
44
  export {
39
- _ as default
45
+ c as default
40
46
  };
@@ -1,3 +1,4 @@
1
+ export { default as MazAccordion } from './MazAccordion.js';
1
2
  export { default as MazAvatar } from './MazAvatar.js';
2
3
  export { default as MazBackdrop } from './MazBackdrop.js';
3
4
  export { default as MazBadge } from './MazBadge.js';
@@ -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
@@ -4,5 +4,5 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "3.26.0"
7
+ "version": "3.27.0"
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maz-ui",
3
- "version": "3.26.0",
3
+ "version": "3.27.0",
4
4
  "description": "A standalone components library for Vue.Js 3 & Nuxt.Js 3",
5
5
  "author": "Louis Mazel <me@loicmazuel.com>",
6
6
  "main": "./modules/index.cjs",
@@ -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<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, {
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;
@@ -1,3 +1,4 @@
1
+ export { default as MazAccordion } from './MazAccordion.vue';
1
2
  export { default as MazAvatar } from './MazAvatar.vue';
2
3
  export { default as MazBackdrop } from './MazBackdrop.vue';
3
4
  export { default as MazBadge } from './MazBadge.vue';