maz-ui 3.40.4 → 3.41.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.
@@ -0,0 +1,75 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
2
+ /**
3
+ * The number to animate
4
+ */
5
+ count: number;
6
+ /**
7
+ * Duration of the animation in milliseconds
8
+ * @default 1000
9
+ */
10
+ duration?: number | undefined;
11
+ /**
12
+ * Suffix to display next to the number
13
+ */
14
+ prefix?: string | undefined;
15
+ /**
16
+ * Suffix to display next to the number
17
+ */
18
+ suffix?: string | undefined;
19
+ }>, {
20
+ duration: number;
21
+ prefix: undefined;
22
+ suffix: undefined;
23
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
24
+ /**
25
+ * The number to animate
26
+ */
27
+ count: number;
28
+ /**
29
+ * Duration of the animation in milliseconds
30
+ * @default 1000
31
+ */
32
+ duration?: number | undefined;
33
+ /**
34
+ * Suffix to display next to the number
35
+ */
36
+ prefix?: string | undefined;
37
+ /**
38
+ * Suffix to display next to the number
39
+ */
40
+ suffix?: string | undefined;
41
+ }>, {
42
+ duration: number;
43
+ prefix: undefined;
44
+ suffix: undefined;
45
+ }>>>, {
46
+ duration: number;
47
+ prefix: string;
48
+ suffix: string;
49
+ }, {}>, {
50
+ prefix?(_: {}): any;
51
+ suffix?(_: {}): any;
52
+ }>;
53
+ export default _default;
54
+ type __VLS_WithDefaults<P, D> = {
55
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
56
+ default: D[K];
57
+ }> : P[K];
58
+ };
59
+ type __VLS_Prettify<T> = {
60
+ [K in keyof T]: T[K];
61
+ } & {};
62
+ type __VLS_WithTemplateSlots<T, S> = T & {
63
+ new (): {
64
+ $slots: S;
65
+ };
66
+ };
67
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
68
+ type __VLS_TypePropsToOption<T> = {
69
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
70
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
71
+ } : {
72
+ type: import('vue').PropType<T[K]>;
73
+ required: true;
74
+ };
75
+ };
@@ -0,0 +1,91 @@
1
+ import './assets/MazAnimatedCounter.css';
2
+ import { defineComponent as v, useCssVars as _, useSlots as h, computed as l, ref as C, watch as $, openBlock as p, createElementBlock as m, normalizeClass as A, createElementVNode as S, renderSlot as f, createTextVNode as o, toDisplayString as a, createCommentVNode as d } from "vue";
3
+ const b = { class: "maz-sr-only" }, g = {
4
+ key: 0,
5
+ class: "m-animated-counter__fix"
6
+ }, k = /* @__PURE__ */ v({
7
+ __name: "MazAnimatedCounter",
8
+ props: {
9
+ count: {},
10
+ duration: { default: 1e3 },
11
+ prefix: { default: void 0 },
12
+ suffix: { default: void 0 }
13
+ },
14
+ setup(n) {
15
+ _((e) => ({
16
+ "0b7109b2": x.value,
17
+ e965ff72: e.count
18
+ }));
19
+ const t = n, s = h(), r = l(() => !!t.prefix || !!s.prefix), u = l(() => !!t.suffix || !!s.suffix), i = C(!0);
20
+ $(
21
+ () => t.count,
22
+ (e, c) => {
23
+ e !== c && (i.value = !1, setTimeout(() => {
24
+ i.value = !0;
25
+ }, 100));
26
+ }
27
+ );
28
+ const x = l(() => `${t.duration}ms`);
29
+ return (e, c) => (p(), m(
30
+ "span",
31
+ {
32
+ class: A(["m-animated-counter", {
33
+ "--animated": i.value,
34
+ "--prefixed": r.value,
35
+ "--suffixed": u.value
36
+ }])
37
+ },
38
+ [
39
+ S("span", b, [
40
+ f(e.$slots, "prefix", {}, () => [
41
+ o(
42
+ a(e.prefix),
43
+ 1
44
+ /* TEXT */
45
+ )
46
+ ], !0),
47
+ o(
48
+ " " + a(e.count) + " ",
49
+ 1
50
+ /* TEXT */
51
+ ),
52
+ f(e.$slots, "suffix", {}, () => [
53
+ o(
54
+ a(e.suffix),
55
+ 1
56
+ /* TEXT */
57
+ )
58
+ ], !0)
59
+ ]),
60
+ r.value || u.value ? (p(), m("span", g, [
61
+ d(' @slot Prefix slot - Add a prefix next to the number (e.g: "$") '),
62
+ f(e.$slots, "prefix", {}, () => [
63
+ o(
64
+ a(e.prefix),
65
+ 1
66
+ /* TEXT */
67
+ )
68
+ ], !0),
69
+ d(' @slot Suffix slot - Add a suffix next to the number (e.g: "%") '),
70
+ f(e.$slots, "suffix", {}, () => [
71
+ o(
72
+ a(e.suffix),
73
+ 1
74
+ /* TEXT */
75
+ )
76
+ ], !0)
77
+ ])) : d("v-if", !0)
78
+ ],
79
+ 2
80
+ /* CLASS */
81
+ ));
82
+ }
83
+ }), y = (n, t) => {
84
+ const s = n.__vccOpts || n;
85
+ for (const [r, u] of t)
86
+ s[r] = u;
87
+ return s;
88
+ }, V = /* @__PURE__ */ y(k, [["__scopeId", "data-v-ca68c5dd"]]);
89
+ export {
90
+ V as default
91
+ };
@@ -0,0 +1,114 @@
1
+ import { type Color } from './types';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
3
+ /**
4
+ * The percentage value of the progress bar
5
+ */
6
+ percentage: number;
7
+ /**
8
+ * The size of the progress bar
9
+ * @default '10em'
10
+ */
11
+ size?: string | undefined;
12
+ /**
13
+ * Duration of the animation in milliseconds
14
+ * @default 1000
15
+ */
16
+ duration?: number | undefined;
17
+ /**
18
+ * The color of the progress bar
19
+ */
20
+ color?: Color | undefined;
21
+ /**
22
+ * Auto color based on the count (danger, warning, success)
23
+ * @default false
24
+ */
25
+ autoColor?: boolean | undefined;
26
+ /**
27
+ * Suffix to display next to the number
28
+ */
29
+ prefix?: string | undefined;
30
+ /**
31
+ * Suffix to display next to the number
32
+ */
33
+ suffix?: string | undefined;
34
+ }>, {
35
+ percentage: number;
36
+ size: string;
37
+ duration: number;
38
+ color: undefined;
39
+ prefix: undefined;
40
+ suffix: undefined;
41
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
42
+ /**
43
+ * The percentage value of the progress bar
44
+ */
45
+ percentage: number;
46
+ /**
47
+ * The size of the progress bar
48
+ * @default '10em'
49
+ */
50
+ size?: string | undefined;
51
+ /**
52
+ * Duration of the animation in milliseconds
53
+ * @default 1000
54
+ */
55
+ duration?: number | undefined;
56
+ /**
57
+ * The color of the progress bar
58
+ */
59
+ color?: Color | undefined;
60
+ /**
61
+ * Auto color based on the count (danger, warning, success)
62
+ * @default false
63
+ */
64
+ autoColor?: boolean | undefined;
65
+ /**
66
+ * Suffix to display next to the number
67
+ */
68
+ prefix?: string | undefined;
69
+ /**
70
+ * Suffix to display next to the number
71
+ */
72
+ suffix?: string | undefined;
73
+ }>, {
74
+ percentage: number;
75
+ size: string;
76
+ duration: number;
77
+ color: undefined;
78
+ prefix: undefined;
79
+ suffix: undefined;
80
+ }>>>, {
81
+ size: string;
82
+ color: Color;
83
+ duration: number;
84
+ prefix: string;
85
+ suffix: string;
86
+ percentage: number;
87
+ }, {}>, {
88
+ default?(_: {}): any;
89
+ prefix?(_: {}): any;
90
+ suffix?(_: {}): any;
91
+ }>;
92
+ export default _default;
93
+ type __VLS_WithDefaults<P, D> = {
94
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
95
+ default: D[K];
96
+ }> : P[K];
97
+ };
98
+ type __VLS_Prettify<T> = {
99
+ [K in keyof T]: T[K];
100
+ } & {};
101
+ type __VLS_WithTemplateSlots<T, S> = T & {
102
+ new (): {
103
+ $slots: S;
104
+ };
105
+ };
106
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
107
+ type __VLS_TypePropsToOption<T> = {
108
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
109
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
110
+ } : {
111
+ type: import('vue').PropType<T[K]>;
112
+ required: true;
113
+ };
114
+ };
@@ -0,0 +1,220 @@
1
+ import './assets/MazCircularProgressBar.css';
2
+ import { defineComponent as $, useCssVars as y, useSlots as k, computed as r, ref as w, watch as b, openBlock as p, createElementBlock as v, normalizeClass as B, createElementVNode as n, renderSlot as l, createTextVNode as u, toDisplayString as i, createCommentVNode as m, getCurrentInstance as P, normalizeStyle as A, unref as g, createBlock as M, createSlots as I, withCtx as _ } from "vue";
3
+ const N = { class: "maz-sr-only" }, V = {
4
+ key: 0,
5
+ class: "m-animated-counter__fix"
6
+ }, D = /* @__PURE__ */ $({
7
+ __name: "MazAnimatedCounter",
8
+ props: {
9
+ count: {},
10
+ duration: { default: 1e3 },
11
+ prefix: { default: void 0 },
12
+ suffix: { default: void 0 }
13
+ },
14
+ setup(a) {
15
+ y((t) => ({
16
+ "0b7109b2": h.value,
17
+ e965ff72: t.count
18
+ }));
19
+ const e = a, o = k(), f = r(() => !!e.prefix || !!o.prefix), c = r(() => !!e.suffix || !!o.suffix), d = w(!0);
20
+ b(
21
+ () => e.count,
22
+ (t, x) => {
23
+ t !== x && (d.value = !1, setTimeout(() => {
24
+ d.value = !0;
25
+ }, 100));
26
+ }
27
+ );
28
+ const h = r(() => `${e.duration}ms`);
29
+ return (t, x) => (p(), v(
30
+ "span",
31
+ {
32
+ class: B(["m-animated-counter", {
33
+ "--animated": d.value,
34
+ "--prefixed": f.value,
35
+ "--suffixed": c.value
36
+ }])
37
+ },
38
+ [
39
+ n("span", N, [
40
+ l(t.$slots, "prefix", {}, () => [
41
+ u(
42
+ i(t.prefix),
43
+ 1
44
+ /* TEXT */
45
+ )
46
+ ], !0),
47
+ u(
48
+ " " + i(t.count) + " ",
49
+ 1
50
+ /* TEXT */
51
+ ),
52
+ l(t.$slots, "suffix", {}, () => [
53
+ u(
54
+ i(t.suffix),
55
+ 1
56
+ /* TEXT */
57
+ )
58
+ ], !0)
59
+ ]),
60
+ f.value || c.value ? (p(), v("span", V, [
61
+ m(' @slot Prefix slot - Add a prefix next to the number (e.g: "$") '),
62
+ l(t.$slots, "prefix", {}, () => [
63
+ u(
64
+ i(t.prefix),
65
+ 1
66
+ /* TEXT */
67
+ )
68
+ ], !0),
69
+ m(' @slot Suffix slot - Add a suffix next to the number (e.g: "%") '),
70
+ l(t.$slots, "suffix", {}, () => [
71
+ u(
72
+ i(t.suffix),
73
+ 1
74
+ /* TEXT */
75
+ )
76
+ ], !0)
77
+ ])) : m("v-if", !0)
78
+ ],
79
+ 2
80
+ /* CLASS */
81
+ ));
82
+ }
83
+ }), z = (a, e) => {
84
+ const o = a.__vccOpts || a;
85
+ for (const [f, c] of e)
86
+ o[f] = c;
87
+ return o;
88
+ }, E = /* @__PURE__ */ z(D, [["__scopeId", "data-v-ca68c5dd"]]);
89
+ function T({
90
+ componentName: a,
91
+ providedId: e
92
+ }) {
93
+ const o = P();
94
+ return r(() => e ?? `${a}-${o == null ? void 0 : o.uid}`);
95
+ }
96
+ const j = { class: "outer" }, q = { class: "inner" }, G = { key: 0 }, O = {
97
+ xmlns: "http://www.w3.org/2000/svg",
98
+ height: "1em",
99
+ width: "1em",
100
+ viewBox: "0 0 100 100"
101
+ }, R = ["id"], U = ["stop-color"], F = ["stop-color"], H = ["stroke"], J = /* @__PURE__ */ $({
102
+ __name: "MazCircularProgressBar",
103
+ props: {
104
+ percentage: { default: 0 },
105
+ size: { default: "10em" },
106
+ duration: { default: 1e3 },
107
+ color: { default: void 0 },
108
+ autoColor: { type: Boolean },
109
+ prefix: { default: void 0 },
110
+ suffix: { default: void 0 }
111
+ },
112
+ setup(a) {
113
+ y((s) => ({
114
+ "2ff460f7": C.value,
115
+ "181ba074": S.value
116
+ }));
117
+ const e = a, o = k(), f = r(() => !!e.prefix || !!o.prefix), c = r(() => !!e.suffix || !!o.suffix), d = T({
118
+ componentName: "MazCircularProgressBar"
119
+ }), h = r(() => e.percentage > 100 ? 100 : e.percentage <= 0 ? 0.5 : e.percentage), t = r(
120
+ () => e.autoColor ? x(e.percentage) : e.color
121
+ );
122
+ function x(s) {
123
+ return s < 50 || s > 100 ? "danger" : s < 100 ? "warning" : "success";
124
+ }
125
+ const C = r(() => `${e.duration}ms`), S = r(() => Math.round(290 - 290 * (h.value / 100)));
126
+ return (s, K) => (p(), v(
127
+ "div",
128
+ {
129
+ class: "m-circular-progress-bar",
130
+ style: A([
131
+ {
132
+ fontSize: s.size
133
+ }
134
+ ])
135
+ },
136
+ [
137
+ n("div", j, [
138
+ n("div", q, [
139
+ g(o).default ? (p(), v("span", G, [
140
+ m(" @slot Default slot - Replace the percaentage value "),
141
+ l(s.$slots, "default", {}, void 0, !0)
142
+ ])) : (p(), M(E, {
143
+ key: 1,
144
+ count: s.percentage,
145
+ duration: s.duration
146
+ }, I({
147
+ _: 2
148
+ /* DYNAMIC */
149
+ }, [
150
+ f.value ? {
151
+ name: "prefix",
152
+ fn: _(() => [
153
+ m(' @slot Prefix slot - Add a prefix next to the number (e.g: "$") '),
154
+ l(s.$slots, "prefix", {}, () => [
155
+ u(
156
+ i(s.prefix),
157
+ 1
158
+ /* TEXT */
159
+ )
160
+ ], !0)
161
+ ]),
162
+ key: "0"
163
+ } : void 0,
164
+ c.value ? {
165
+ name: "suffix",
166
+ fn: _(() => [
167
+ m(' @slot Suffix slot - Add a suffix next to the number (e.g: "%") '),
168
+ l(s.$slots, "suffix", {}, () => [
169
+ u(
170
+ i(s.suffix),
171
+ 1
172
+ /* TEXT */
173
+ )
174
+ ], !0)
175
+ ]),
176
+ key: "1"
177
+ } : void 0
178
+ ]), 1032, ["count", "duration"]))
179
+ ])
180
+ ]),
181
+ (p(), v("svg", O, [
182
+ n("defs", null, [
183
+ n("linearGradient", {
184
+ id: `${g(d)}-gradient`,
185
+ x1: "0",
186
+ x2: "0",
187
+ y1: "1",
188
+ y2: "0"
189
+ }, [
190
+ n("stop", {
191
+ offset: "0%",
192
+ "stop-color": t.value ? `var(--maz-color-${t.value}-400)` : "var(--maz-color-primary)"
193
+ }, null, 8, U),
194
+ n("stop", {
195
+ offset: "100%",
196
+ "stop-color": t.value ? `var(--maz-color-${t.value}-700)` : "var(--maz-color-secondary)"
197
+ }, null, 8, F)
198
+ ], 8, R)
199
+ ]),
200
+ n("circle", {
201
+ cx: "50",
202
+ cy: "50",
203
+ r: "46",
204
+ "stroke-width": "6",
205
+ "stroke-dasharray": "290",
206
+ "stroke-dashoffset": "290",
207
+ stroke: `url(#${g(d)}-gradient)`,
208
+ fill: "none",
209
+ "stroke-linecap": "round"
210
+ }, null, 8, H)
211
+ ]))
212
+ ],
213
+ 4
214
+ /* STYLE */
215
+ ));
216
+ }
217
+ }), Q = /* @__PURE__ */ z(J, [["__scopeId", "data-v-9b86a1a5"]]);
218
+ export {
219
+ Q as default
220
+ };
@@ -0,0 +1 @@
1
+ .m-animated-counter[data-v-ca68c5dd]{white-space:nowrap;--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.m-animated-counter.--animated[data-v-ca68c5dd]{-webkit-animation:counter-ca68c5dd var(--0b7109b2) ease-out forwards;animation:counter-ca68c5dd var(--0b7109b2) ease-out forwards;counter-set:count var(--count-end)}.m-animated-counter.--prefixed[data-v-ca68c5dd]:after{content:counter(count)}.m-animated-counter.--suffixed[data-v-ca68c5dd]:before{content:counter(count)}.m-animated-counter[data-v-ca68c5dd]:not(.--prefixed,.--suffixed):before{content:counter(count)}@property --count{syntax: "<integer>"; initial-value: 0; inherits: false;}@property --count-end{syntax: "<integer>"; initial-value: 0; inherits: false;}@-webkit-keyframes counter-ca68c5dd{0%{--count-end: 0}to{--count-end: var(--e965ff72)}}@keyframes counter-ca68c5dd{0%{--count-end: 0}to{--count-end: var(--e965ff72)}}
@@ -0,0 +1 @@
1
+ .m-animated-counter[data-v-ca68c5dd]{white-space:nowrap;--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.m-animated-counter.--animated[data-v-ca68c5dd]{-webkit-animation:counter-ca68c5dd var(--0b7109b2) ease-out forwards;animation:counter-ca68c5dd var(--0b7109b2) ease-out forwards;counter-set:count var(--count-end)}.m-animated-counter.--prefixed[data-v-ca68c5dd]:after{content:counter(count)}.m-animated-counter.--suffixed[data-v-ca68c5dd]:before{content:counter(count)}.m-animated-counter[data-v-ca68c5dd]:not(.--prefixed,.--suffixed):before{content:counter(count)}@property --count{syntax: "<integer>"; initial-value: 0; inherits: false;}@property --count-end{syntax: "<integer>"; initial-value: 0; inherits: false;}@-webkit-keyframes counter-ca68c5dd{0%{--count-end: 0}to{--count-end: var(--e965ff72)}}@keyframes counter-ca68c5dd{0%{--count-end: 0}to{--count-end: var(--e965ff72)}}.m-circular-progress-bar[data-v-9b86a1a5]{position:relative;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;height:1em;width:1em;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.m-circular-progress-bar .outer[data-v-9b86a1a5]{display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;width:100%;border-radius:9999px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.m-circular-progress-bar .inner[data-v-9b86a1a5]{display:-webkit-box;display:-ms-flexbox;display:flex;height:.85em;width:.85em;border-radius:9999px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.m-circular-progress-bar .inner[data-v-9b86a1a5]>*{font-size:.25em}.m-circular-progress-bar svg[data-v-9b86a1a5]{position:absolute;--tw-rotate: -90deg;-webkit-transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.m-circular-progress-bar svg circle[data-v-9b86a1a5]{-webkit-animation:animate-9b86a1a5 var(--2ff460f7) linear forwards;animation:animate-9b86a1a5 var(--2ff460f7) linear forwards}@-webkit-keyframes animate-9b86a1a5{to{stroke-dashoffset:var(--181ba074)}}@keyframes animate-9b86a1a5{to{stroke-dashoffset:var(--181ba074)}}
@@ -1,4 +1,5 @@
1
1
  export { default as MazAccordion } from './MazAccordion.js';
2
+ export { default as MazAnimatedCounter } from './MazAnimatedCounter.js';
2
3
  export { default as MazAvatar } from './MazAvatar.js';
3
4
  export { default as MazBackdrop } from './MazBackdrop.js';
4
5
  export { default as MazBadge } from './MazBadge.js';
@@ -9,6 +10,7 @@ export { default as MazCardSpotlight } from './MazCardSpotlight.js';
9
10
  export { default as MazCarousel } from './MazCarousel.js';
10
11
  export { default as MazChart } from './MazChart.js';
11
12
  export { default as MazCheckbox } from './MazCheckbox.js';
13
+ export { default as MazCircularProgressBar } from './MazCircularProgressBar.js';
12
14
  export { default as MazDialog } from './MazDialog.js';
13
15
  export { default as MazDialogPromise } from './MazDialogPromise.js';
14
16
  export { default as MazDrawer } from './MazDrawer.js';
@@ -1,6 +1,7 @@
1
1
  /* Automatically generated by ./build/generate-lib-entry.js */
2
2
 
3
3
  export { default as MazAccordion } from './MazAccordion.mjs'
4
+ export { default as MazAnimatedCounter } from './MazAnimatedCounter.mjs'
4
5
  export { default as MazAvatar } from './MazAvatar.mjs'
5
6
  export { default as MazBackdrop } from './MazBackdrop.mjs'
6
7
  export { default as MazBadge } from './MazBadge.mjs'
@@ -11,6 +12,7 @@ export { default as MazCardSpotlight } from './MazCardSpotlight.mjs'
11
12
  export { default as MazCarousel } from './MazCarousel.mjs'
12
13
  export { default as MazChart } from './MazChart.mjs'
13
14
  export { default as MazCheckbox } from './MazCheckbox.mjs'
15
+ export { default as MazCircularProgressBar } from './MazCircularProgressBar.mjs'
14
16
  export { default as MazDialog } from './MazDialog.mjs'
15
17
  export { default as MazDialogPromise } from './MazDialogPromise.mjs'
16
18
  export { default as MazDrawer } from './MazDrawer.mjs'
package/nuxt/index.json CHANGED
@@ -4,5 +4,5 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "3.40.4"
7
+ "version": "3.41.0"
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maz-ui",
3
- "version": "3.40.4",
3
+ "version": "3.41.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,75 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
2
+ /**
3
+ * The number to animate
4
+ */
5
+ count: number;
6
+ /**
7
+ * Duration of the animation in milliseconds
8
+ * @default 1000
9
+ */
10
+ duration?: number | undefined;
11
+ /**
12
+ * Suffix to display next to the number
13
+ */
14
+ prefix?: string | undefined;
15
+ /**
16
+ * Suffix to display next to the number
17
+ */
18
+ suffix?: string | undefined;
19
+ }>, {
20
+ duration: number;
21
+ prefix: undefined;
22
+ suffix: undefined;
23
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
24
+ /**
25
+ * The number to animate
26
+ */
27
+ count: number;
28
+ /**
29
+ * Duration of the animation in milliseconds
30
+ * @default 1000
31
+ */
32
+ duration?: number | undefined;
33
+ /**
34
+ * Suffix to display next to the number
35
+ */
36
+ prefix?: string | undefined;
37
+ /**
38
+ * Suffix to display next to the number
39
+ */
40
+ suffix?: string | undefined;
41
+ }>, {
42
+ duration: number;
43
+ prefix: undefined;
44
+ suffix: undefined;
45
+ }>>>, {
46
+ duration: number;
47
+ prefix: string;
48
+ suffix: string;
49
+ }, {}>, {
50
+ prefix?(_: {}): any;
51
+ suffix?(_: {}): any;
52
+ }>;
53
+ export default _default;
54
+ type __VLS_WithDefaults<P, D> = {
55
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
56
+ default: D[K];
57
+ }> : P[K];
58
+ };
59
+ type __VLS_Prettify<T> = {
60
+ [K in keyof T]: T[K];
61
+ } & {};
62
+ type __VLS_WithTemplateSlots<T, S> = T & {
63
+ new (): {
64
+ $slots: S;
65
+ };
66
+ };
67
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
68
+ type __VLS_TypePropsToOption<T> = {
69
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
70
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
71
+ } : {
72
+ type: import('vue').PropType<T[K]>;
73
+ required: true;
74
+ };
75
+ };
@@ -0,0 +1,114 @@
1
+ import { type Color } from './types';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
3
+ /**
4
+ * The percentage value of the progress bar
5
+ */
6
+ percentage: number;
7
+ /**
8
+ * The size of the progress bar
9
+ * @default '10em'
10
+ */
11
+ size?: string | undefined;
12
+ /**
13
+ * Duration of the animation in milliseconds
14
+ * @default 1000
15
+ */
16
+ duration?: number | undefined;
17
+ /**
18
+ * The color of the progress bar
19
+ */
20
+ color?: Color | undefined;
21
+ /**
22
+ * Auto color based on the count (danger, warning, success)
23
+ * @default false
24
+ */
25
+ autoColor?: boolean | undefined;
26
+ /**
27
+ * Suffix to display next to the number
28
+ */
29
+ prefix?: string | undefined;
30
+ /**
31
+ * Suffix to display next to the number
32
+ */
33
+ suffix?: string | undefined;
34
+ }>, {
35
+ percentage: number;
36
+ size: string;
37
+ duration: number;
38
+ color: undefined;
39
+ prefix: undefined;
40
+ suffix: undefined;
41
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
42
+ /**
43
+ * The percentage value of the progress bar
44
+ */
45
+ percentage: number;
46
+ /**
47
+ * The size of the progress bar
48
+ * @default '10em'
49
+ */
50
+ size?: string | undefined;
51
+ /**
52
+ * Duration of the animation in milliseconds
53
+ * @default 1000
54
+ */
55
+ duration?: number | undefined;
56
+ /**
57
+ * The color of the progress bar
58
+ */
59
+ color?: Color | undefined;
60
+ /**
61
+ * Auto color based on the count (danger, warning, success)
62
+ * @default false
63
+ */
64
+ autoColor?: boolean | undefined;
65
+ /**
66
+ * Suffix to display next to the number
67
+ */
68
+ prefix?: string | undefined;
69
+ /**
70
+ * Suffix to display next to the number
71
+ */
72
+ suffix?: string | undefined;
73
+ }>, {
74
+ percentage: number;
75
+ size: string;
76
+ duration: number;
77
+ color: undefined;
78
+ prefix: undefined;
79
+ suffix: undefined;
80
+ }>>>, {
81
+ size: string;
82
+ color: Color;
83
+ duration: number;
84
+ prefix: string;
85
+ suffix: string;
86
+ percentage: number;
87
+ }, {}>, {
88
+ default?(_: {}): any;
89
+ prefix?(_: {}): any;
90
+ suffix?(_: {}): any;
91
+ }>;
92
+ export default _default;
93
+ type __VLS_WithDefaults<P, D> = {
94
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
95
+ default: D[K];
96
+ }> : P[K];
97
+ };
98
+ type __VLS_Prettify<T> = {
99
+ [K in keyof T]: T[K];
100
+ } & {};
101
+ type __VLS_WithTemplateSlots<T, S> = T & {
102
+ new (): {
103
+ $slots: S;
104
+ };
105
+ };
106
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
107
+ type __VLS_TypePropsToOption<T> = {
108
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
109
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
110
+ } : {
111
+ type: import('vue').PropType<T[K]>;
112
+ required: true;
113
+ };
114
+ };
@@ -1,4 +1,5 @@
1
1
  export { default as MazAccordion } from './MazAccordion.vue';
2
+ export { default as MazAnimatedCounter } from './MazAnimatedCounter.vue';
2
3
  export { default as MazAvatar } from './MazAvatar.vue';
3
4
  export { default as MazBackdrop } from './MazBackdrop.vue';
4
5
  export { default as MazBadge } from './MazBadge.vue';
@@ -9,6 +10,7 @@ export { default as MazCardSpotlight } from './MazCardSpotlight.vue';
9
10
  export { default as MazCarousel } from './MazCarousel.vue';
10
11
  export { default as MazChart } from './MazChart.vue';
11
12
  export { default as MazCheckbox } from './MazCheckbox.vue';
13
+ export { default as MazCircularProgressBar } from './MazCircularProgressBar.vue';
12
14
  export { default as MazDialog } from './MazDialog.vue';
13
15
  export { default as MazDialogPromise } from './MazDialogPromise.vue';
14
16
  export { default as MazDrawer } from './MazDrawer.vue';