maz-ui 3.40.2 → 3.40.3

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.
Files changed (130) hide show
  1. package/README.md +1 -1
  2. package/components/MazAccordion.mjs +121 -104
  3. package/components/MazAvatar.mjs +1 -1
  4. package/components/MazBottomSheet.mjs +1 -1
  5. package/components/MazBtn.d.ts +2 -2
  6. package/components/MazBtn.mjs +1 -1
  7. package/components/MazCard.d.ts +8 -2
  8. package/components/MazCard.mjs +1 -1
  9. package/components/MazCardSpotlight.d.ts +41 -2
  10. package/components/MazCardSpotlight.mjs +56 -39
  11. package/components/MazCarousel.mjs +1 -1
  12. package/components/MazDialog.mjs +1 -1
  13. package/components/MazDialogPromise.mjs +1 -1
  14. package/components/MazDrawer.mjs +1 -1
  15. package/components/MazDropdown.mjs +1 -1
  16. package/components/MazInput.mjs +1 -1
  17. package/components/MazInputCode.mjs +32 -32
  18. package/components/MazInputNumber.mjs +1 -1
  19. package/components/MazInputPrice.mjs +1 -1
  20. package/components/MazInputTags.mjs +1 -1
  21. package/components/MazPagination.mjs +1 -1
  22. package/components/MazPhoneNumberInput.mjs +1 -1
  23. package/components/MazPicker.mjs +1 -1
  24. package/components/MazSelect.mjs +1 -1
  25. package/components/MazStepper.mjs +1 -1
  26. package/components/MazTable.mjs +1 -1
  27. package/components/assets/MazAccordion.css +1 -1
  28. package/components/assets/MazAvatar.css +1 -1
  29. package/components/assets/MazBtn.css +1 -1
  30. package/components/assets/MazCard.css +1 -1
  31. package/components/assets/MazCardSpotlight.css +1 -1
  32. package/components/assets/MazDropzone.css +1 -1
  33. package/components/assets/MazInputCode.css +1 -1
  34. package/components/assets/MazInputNumber.css +1 -1
  35. package/components/assets/MazInputTags.css +1 -1
  36. package/components/assets/MazPagination.css +1 -1
  37. package/components/assets/MazPickerCalendar.css +1 -1
  38. package/components/assets/MazStepper.css +1 -1
  39. package/components/assets/MazTable.css +1 -1
  40. package/components/chunks/{MazAvatar-CfJSw4Yv.mjs → MazAvatar-QDlH6tvz.mjs} +2 -2
  41. package/components/chunks/{MazBottomSheet-uKxvK85D.mjs → MazBottomSheet-BuBc8C9L.mjs} +1 -1
  42. package/components/chunks/MazBtn-4I65a0tG.mjs +151 -0
  43. package/components/chunks/MazBtn-BBKOvmc0.mjs +151 -0
  44. package/components/chunks/{MazBtn-WxZqpFgw.mjs → MazBtn-Bhjz7DkY.mjs} +4 -4
  45. package/components/chunks/{MazBtn-CuUu5chG.mjs → MazBtn-Ch56YVOw.mjs} +9 -9
  46. package/components/chunks/{MazBtn-DBGIZYN0.mjs → MazBtn-CjKivGUG.mjs} +9 -9
  47. package/components/chunks/{MazBtn-Cf6bpPps.mjs → MazBtn-DAvgjToE.mjs} +9 -9
  48. package/components/chunks/MazBtn-DfXeBnFe.mjs +151 -0
  49. package/components/chunks/{MazBtn-Ct6j9jc6.mjs → MazBtn-Dyw1WZgU.mjs} +9 -9
  50. package/components/chunks/{MazBtn-C1Hevhzu.mjs → MazBtn-IBS93Vda.mjs} +4 -4
  51. package/components/chunks/MazBtn-SJl9Kugs.mjs +151 -0
  52. package/components/chunks/MazBtn-ZcEB5i12.mjs +151 -0
  53. package/components/chunks/MazBtn-peKwI3PB.mjs +151 -0
  54. package/components/chunks/{MazCard-EXkymtQk.mjs → MazCard-zP6XYYO8.mjs} +70 -69
  55. package/components/chunks/{MazCarousel-iKzlrVVy.mjs → MazCarousel-IzbBgBrr.mjs} +1 -1
  56. package/components/chunks/{MazCheckbox-Dqw5B6BC.mjs → MazCheckbox-CnQ4qPG4.mjs} +1 -1
  57. package/components/chunks/{MazCheckbox-CZdX-eyY.mjs → MazCheckbox-CylZNBvL.mjs} +1 -1
  58. package/components/chunks/{MazDialog-4Th-Xut5.mjs → MazDialog-DfykSNZV.mjs} +1 -1
  59. package/components/chunks/{MazDialogPromise-CJsnYYpX.mjs → MazDialogPromise-DW7DF186.mjs} +2 -2
  60. package/components/chunks/{MazGallery-D7CXzxIH.mjs → MazGallery-DK724Wxg.mjs} +2 -2
  61. package/components/chunks/{MazIcon-B-UuPklS.mjs → MazIcon-C0jJgPt6.mjs} +1 -1
  62. package/components/chunks/{MazIcon-DgT8iWEh.mjs → MazIcon-DAuhmKoh.mjs} +1 -1
  63. package/components/chunks/{MazInput-DDZFdad5.mjs → MazInput-CuNNbyX5.mjs} +1 -1
  64. package/components/chunks/{MazInputNumber-Cu15o5vo.mjs → MazInputNumber-D9lhCaXw.mjs} +36 -36
  65. package/components/chunks/{MazInputPrice-B7l9-xh2.mjs → MazInputPrice-C5gaLIoj.mjs} +1 -1
  66. package/components/chunks/{MazInputTags-CNEK5pfK.mjs → MazInputTags-DHawCIaZ.mjs} +4 -4
  67. package/components/chunks/{MazLazyImg-BImCTi5K.mjs → MazLazyImg-BGK0RZe2.mjs} +2 -2
  68. package/components/chunks/{MazPagination-C4p_B9Dg.mjs → MazPagination-B5x3ZUrk.mjs} +23 -23
  69. package/components/chunks/{MazPhoneNumberInput-DGf04XP4.mjs → MazPhoneNumberInput-ChPzHftZ.mjs} +2 -2
  70. package/components/chunks/{MazPicker-DzOi-CWS.mjs → MazPicker-BVsSfMXU.mjs} +2 -2
  71. package/components/chunks/{MazPickerCalendar-BZyGvAzQ.mjs → MazPickerCalendar-DVB8Rr9I.mjs} +7 -7
  72. package/components/chunks/{MazPickerHeader-CgoLWXed.mjs → MazPickerHeader-bClHUr7z.mjs} +1 -1
  73. package/components/chunks/{MazPickerMonthSwitcher-BzxzHg15.mjs → MazPickerMonthSwitcher-12vPV_ek.mjs} +2 -2
  74. package/components/chunks/{MazPickerShortcuts-CUfm1E2A.mjs → MazPickerShortcuts-BcJpy3BQ.mjs} +2 -2
  75. package/components/chunks/{MazPickerTime-BRb6pDOe.mjs → MazPickerTime-_IheJF21.mjs} +2 -2
  76. package/components/chunks/{MazPickerYearSwitcher-CJY_QYpN.mjs → MazPickerYearSwitcher-AG8UoA8w.mjs} +3 -3
  77. package/components/chunks/{MazSelect-BsWij77Q.mjs → MazSelect-v2Qz7qp9.mjs} +2 -2
  78. package/components/chunks/MazSpinner-B9PIGTBM.mjs +38 -0
  79. package/components/chunks/{MazSpinner-B_yl5MqC.mjs → MazSpinner-BpD28_Nv.mjs} +1 -1
  80. package/components/chunks/{MazSpinner-BxTf8_F4.mjs → MazSpinner-BrRExSkV.mjs} +1 -1
  81. package/components/chunks/{MazSpinner-DUmQCQu_.mjs → MazSpinner-CT-zwBmg.mjs} +1 -1
  82. package/components/chunks/{MazSpinner-BazLgFW3.mjs → MazSpinner-CTOH4qIV.mjs} +1 -1
  83. package/components/chunks/MazSpinner-CXoCX_ho.mjs +38 -0
  84. package/components/chunks/{MazSpinner-O0WGwdtL.mjs → MazSpinner-CZMyB5uT.mjs} +1 -1
  85. package/components/chunks/{MazSpinner-DHAlXW-A.mjs → MazSpinner-CeOzWwoA.mjs} +1 -1
  86. package/components/chunks/MazSpinner-CeUPefEl.mjs +38 -0
  87. package/components/chunks/MazSpinner-Cj16ZXPC.mjs +38 -0
  88. package/components/chunks/{MazSpinner-3KgM7Cpe.mjs → MazSpinner-D14Qdl-q.mjs} +1 -1
  89. package/components/chunks/MazSpinner-DJyu0bjt.mjs +38 -0
  90. package/components/chunks/{MazSpinner-CkigTMVl.mjs → MazSpinner-DcsAehl9.mjs} +1 -1
  91. package/components/chunks/MazSpinner-DeiRyoct.mjs +38 -0
  92. package/components/chunks/MazSpinner-DmsRmaiI.mjs +38 -0
  93. package/components/chunks/MazSpinner-ISxUR3Y1.mjs +38 -0
  94. package/components/chunks/{MazSpinner-DzWvDo6x.mjs → MazSpinner-afth4SV3.mjs} +1 -1
  95. package/components/chunks/{MazStepper-BvKEjtJo.mjs → MazStepper-CV4dwvS9.mjs} +22 -22
  96. package/components/chunks/{MazTable-Ds_9n2ph.mjs → MazTable-CjlSdLnh.mjs} +5 -5
  97. package/components/chunks/{MazTransitionExpand-F8UmMAin.mjs → MazTransitionExpand-BBkwCVdE.mjs} +1 -1
  98. package/components/chunks/{MazTransitionExpand-C6uOt--l.mjs → MazTransitionExpand-DLMtNsk_.mjs} +1 -1
  99. package/css/main.css +1 -1
  100. package/modules/assets/MazBtn.css +1 -1
  101. package/modules/chunks/{MazBtn-0K3jTP4n.cjs → MazBtn-C3u6aAVE.cjs} +2 -2
  102. package/modules/chunks/MazBtn-kEp7hZt8.mjs +151 -0
  103. package/modules/chunks/{MazIcon-qdhBwo_3.mjs → MazIcon-8SXd9pCW.mjs} +1 -1
  104. package/modules/chunks/{MazIcon-Bm9aj2GA.cjs → MazIcon-_eQBprV9.cjs} +1 -1
  105. package/modules/chunks/{MazSpinner-DCWCHgly.mjs → MazSpinner-BeST_Oa5.mjs} +1 -1
  106. package/modules/chunks/{MazSpinner-BFGq9o4c.cjs → MazSpinner-Box3DbCT.cjs} +1 -1
  107. package/modules/chunks/{index-Cl2Z9oxB.cjs → index-C5Co4FGk.cjs} +1 -1
  108. package/modules/chunks/{index-BRqo10xg.mjs → index-CU4cxgKq.mjs} +2 -2
  109. package/modules/index.cjs +1 -1
  110. package/modules/index.mjs +1 -1
  111. package/nuxt/index.json +1 -1
  112. package/package.json +1 -1
  113. package/types/components/MazBtn.vue.d.ts +2 -2
  114. package/types/components/MazCard.vue.d.ts +8 -2
  115. package/types/components/MazCardSpotlight.vue.d.ts +41 -2
  116. package/components/chunks/MazBtn-DWZMLLYY.mjs +0 -151
  117. package/components/chunks/MazBtn-DgWU7Vzx.mjs +0 -151
  118. package/components/chunks/MazBtn-Dp7XmWvD.mjs +0 -151
  119. package/components/chunks/MazBtn-Ds_0Y11U.mjs +0 -151
  120. package/components/chunks/MazBtn-qHhaccbJ.mjs +0 -151
  121. package/components/chunks/MazBtn-yFDtvtao.mjs +0 -151
  122. package/components/chunks/MazSpinner-CPFxMAVg.mjs +0 -38
  123. package/components/chunks/MazSpinner-DQTSh25q.mjs +0 -38
  124. package/components/chunks/MazSpinner-Dhgoim8I.mjs +0 -38
  125. package/components/chunks/MazSpinner-DuQDsXrM.mjs +0 -38
  126. package/components/chunks/MazSpinner-S7b1mVEd.mjs +0 -38
  127. package/components/chunks/MazSpinner-YQWKVqVa.mjs +0 -38
  128. package/components/chunks/MazSpinner-v_h1kbbd.mjs +0 -38
  129. package/components/chunks/MazSpinner-zKKOOicV.mjs +0 -38
  130. package/modules/chunks/MazBtn-D7GTVnKj.mjs +0 -151
package/README.md CHANGED
@@ -54,7 +54,7 @@ export default defineNuxtConfig({
54
54
 
55
55
  All options of the module are available [here](https://maz-ui.com/guide/nuxt)
56
56
 
57
- ### @mazui/cli
57
+ ### @mazui/cli (theme generator)
58
58
 
59
59
  [Documentation & Commands](https://maz-ui.com/guide/cli)
60
60
 
@@ -1,69 +1,74 @@
1
1
  import './assets/MazAccordion.css';
2
- import { defineComponent as b, useCssVars as z, openBlock as v, createBlock as S, TransitionGroup as M, withCtx as y, renderSlot as m, nextTick as k, ref as $, computed as f, onMounted as I, onUnmounted as B, createElementBlock as g, normalizeClass as x, normalizeStyle as w, createElementVNode as p, getCurrentInstance as V, useSlots as O, Fragment as A, renderList as L, unref as _, createVNode as E, withDirectives as T, vShow as D } from "vue";
3
- const N = /* @__PURE__ */ b({
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
- z((t) => ({
9
+ B((t) => ({
10
10
  "26239c6e": t.animationDuration
11
11
  }));
12
- const i = (t) => {
13
- const n = getComputedStyle(t).width;
14
- t.style.width = n, t.style.position = "absolute", t.style.visibility = "hidden", t.style.height = "auto", t.style.top = "bottom";
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, k(() => {
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
- }, o = (t) => {
19
+ }, n = (t) => {
20
20
  t.style.height = "auto";
21
21
  }, d = (t) => {
22
- const n = getComputedStyle(t).height;
23
- t.style.height = n, getComputedStyle(t).height, k(() => {
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, n) => (v(), S(M, {
27
+ return (t, a) => (v(), I(O, {
28
28
  class: "m-transition-expand",
29
29
  name: "maz-expand",
30
30
  tag: "div",
31
- onEnter: n[0] || (n[0] = (s) => i(s)),
32
- onAfterEnter: n[1] || (n[1] = (s) => o(s)),
33
- onLeave: n[2] || (n[2] = (s) => d(s))
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: y(() => [
36
- m(t.$slots, "default", {}, void 0, !0)
35
+ default: $(() => [
36
+ f(t.$slots, "default", {}, void 0, !0)
37
37
  ]),
38
38
  _: 3
39
39
  /* FORWARDED */
40
40
  }));
41
41
  }
42
- }), C = (r, i) => {
43
- const o = r.__vccOpts || r;
44
- for (const [d, t] of i)
45
- o[d] = t;
46
- return o;
47
- }, j = /* @__PURE__ */ C(N, [["__scopeId", "data-v-49c2af88"]]), U = { class: "inner" }, q = { class: "content" }, F = /* @__PURE__ */ b({
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: "maz-p-4" },
54
+ contentStyle: { default: void 0 },
55
+ innerOpacity: { default: 0.95 }
52
56
  },
53
57
  setup(r) {
54
- z((l) => ({
55
- "4126589a": s.value,
56
- "080f395c": n.value
58
+ B((i) => ({
59
+ "49b43185": i.innerOpacity,
60
+ "37547d56": s.value
57
61
  }));
58
- const i = r, o = $(), d = $();
59
- function t(l) {
60
- var c, h, e;
61
- const u = (c = d.value) == null ? void 0 : c.getBoundingClientRect();
62
- u && ((e = (h = o.value) == null ? void 0 : h.animate) == null || e.call(
63
- h,
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(${l.clientX - u.left - u.width / 2}px,${l.clientY - u.top - u.height / 2}px)`
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 n = f(() => `var(--maz-color-${i.color}-alpha)`), s = f(() => `var(--maz-color-${i.color}-alpha-20)`);
76
- return I(() => {
77
- window.addEventListener("mousemove", t);
78
- }), B(() => {
79
- window.removeEventListener("mousemove", t);
80
- }), (l, u) => (v(), g(
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: x(["m-card", { "maz-elevation": !l.noElevation }]),
84
- style: w({ backgroundColor: s.value })
88
+ class: C(["m-card-spotlight", { "maz-elevation": !i.noElevation }]),
89
+ style: x({ backgroundColor: h.value })
85
90
  },
86
91
  [
87
- p("div", U, [
88
- p("div", q, [
89
- m(l.$slots, "default", {}, void 0, !0)
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
- p(
105
+ k(u(
93
106
  "div",
94
107
  {
95
108
  ref_key: "blobElement",
96
- ref: o,
109
+ ref: n,
97
110
  class: "blob",
98
- style: w({ backgroundColor: n.value })
111
+ style: x({ backgroundColor: s.value })
99
112
  },
100
113
  null,
101
114
  4
102
115
  /* STYLE */
103
- ),
104
- p(
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__ */ C(F, [["__scopeId", "data-v-11af6ef3"]]), P = {
137
+ }), G = /* @__PURE__ */ E(F, [["__scopeId", "data-v-3030d98c"]]), 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__ */ p(
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 X(r, i) {
142
- return v(), g("svg", P, [...W]);
158
+ function H(r, l) {
159
+ return v(), b("svg", P, [...W]);
143
160
  }
144
- const Y = { render: X };
145
- function H({
161
+ const J = { render: H };
162
+ function K({
146
163
  componentName: r,
147
- providedId: i
164
+ providedId: l
148
165
  }) {
149
- const o = V();
150
- return f(() => i ?? `${r}-${o == null ? void 0 : o.uid}`);
166
+ const n = L();
167
+ return g(() => l ?? `${r}-${n == null ? void 0 : n.uid}`);
151
168
  }
152
- const J = {
169
+ const Q = {
153
170
  class: "m-accordion",
154
171
  role: "presentation"
155
- }, K = ["aria-controls", "aria-expanded", "onClick"], Q = ["id", "aria-labelledby", "aria-hidden"], Z = { class: "maz-p-4" }, tt = /* @__PURE__ */ b({
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: i }) {
163
- const o = r, d = i, t = H({
179
+ setup(r, { emit: l }) {
180
+ const n = r, d = l, t = K({
164
181
  componentName: "MazAccordion",
165
- providedId: o.id
166
- }), n = O(), s = f(
167
- () => Object.keys(n).filter((e) => e.startsWith("title-")).length
168
- ), l = $(o.modelValue), u = f({
169
- get: () => o.modelValue || l.value,
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
- l.value = e, d("update:model-value", e);
188
+ h.value = e, d("update:model-value", e);
172
189
  }
173
190
  });
174
191
  function c(e) {
175
- return u.value === e;
192
+ return i.value === e;
176
193
  }
177
- function h(e) {
178
- u.value === e ? (l.value = 0, d("update:model-value", 0)) : (l.value = e, d("update:model-value", e));
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, et) => (v(), g("div", J, [
181
- (v(!0), g(
182
- A,
197
+ return (e, m) => (v(), b("div", Q, [
198
+ (v(!0), b(
199
+ D,
183
200
  null,
184
- L(s.value, (a) => (v(), S(
201
+ N(s.value, (o) => (v(), I(
185
202
  G,
186
203
  {
187
- key: a,
204
+ key: o,
188
205
  class: "spotlight"
189
206
  },
190
207
  {
191
- default: y(() => [
192
- p("button", {
208
+ default: $(() => [
209
+ u("button", {
193
210
  class: "header",
194
- "aria-controls": `step-${a}-${_(t)}`,
195
- "aria-expanded": c(a),
196
- onClick: (ot) => h(a)
211
+ "aria-controls": `step-${o}-${_(t)}`,
212
+ "aria-expanded": c(o),
213
+ onClick: (et) => p(o)
197
214
  }, [
198
- m(e.$slots, `title-${a}`, {
199
- isOpen: c(a)
215
+ f(e.$slots, `title-${o}`, {
216
+ isOpen: c(o)
200
217
  }, void 0, !0),
201
- E(_(Y), {
202
- class: x(["header-icon", { "--rotate": c(a) }])
218
+ M(_(J), {
219
+ class: C(["header-icon", { "--rotate": c(o) }])
203
220
  }, null, 8, ["class"])
204
- ], 8, K),
205
- E(
206
- j,
221
+ ], 8, X),
222
+ M(
223
+ U,
207
224
  { "animation-duration": "300ms" },
208
225
  {
209
- default: y(() => [
210
- T(p("div", {
211
- id: `step-${a}-${_(t)}`,
226
+ default: $(() => [
227
+ k(u("div", {
228
+ id: `step-${o}-${_(t)}`,
212
229
  role: "region",
213
- "aria-labelledby": `step-${a}-${_(t)}`,
214
- "aria-hidden": !c(a)
230
+ "aria-labelledby": `step-${o}-${_(t)}`,
231
+ "aria-hidden": !c(o)
215
232
  }, [
216
- p("div", Z, [
217
- m(e.$slots, "content", {
218
- isOpen: c(a)
233
+ u("div", Z, [
234
+ f(e.$slots, "content", {
235
+ isOpen: c(o)
219
236
  }, void 0, !0),
220
- m(e.$slots, `content-${a}`, {
221
- isOpen: c(a)
237
+ f(e.$slots, `content-${o}`, {
238
+ isOpen: c(o)
222
239
  }, void 0, !0)
223
240
  ])
224
- ], 8, Q), [
225
- [D, c(a)]
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
- }), at = /* @__PURE__ */ C(tt, [["__scopeId", "data-v-630c9b2d"]]);
263
+ }), nt = /* @__PURE__ */ E(tt, [["__scopeId", "data-v-7a54c498"]]);
247
264
  export {
248
- at as default
265
+ nt as default
249
266
  };
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazAvatar-CfJSw4Yv.mjs";
1
+ import { M as f } from "./chunks/MazAvatar-QDlH6tvz.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazBottomSheet-uKxvK85D.mjs";
1
+ import { M as f } from "./chunks/MazBottomSheet-BuBc8C9L.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -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: undefined;
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: undefined;
122
+ roundedSize: string;
123
123
  }>>>, {
124
124
  size: Size;
125
125
  type: "button" | "reset" | "submit";
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazBtn-WxZqpFgw.mjs";
1
+ import { M as f } from "./chunks/MazBtn-Bhjz7DkY.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -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
- /** Card can be open and close */
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 */
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazCard-EXkymtQk.mjs";
1
+ import { M as f } from "./chunks/MazCard-zP6XYYO8.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -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
- /** The color of the component. */
5
+ /**
6
+ * The color of the component.
7
+ * @default primary
8
+ */
5
9
  color?: Color;
6
- /** Remove the elevation of the component. */
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: string;
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: string;
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 _, useCssVars as b, ref as f, computed as p, onMounted as h, onUnmounted as k, openBlock as C, createElementBlock as E, normalizeClass as g, normalizeStyle as v, createElementVNode as c, renderSlot as y } from "vue";
3
- const z = { class: "inner" }, w = { class: "content" }, B = /* @__PURE__ */ _({
2
+ import { defineComponent as g, useCssVars as k, ref as c, computed as f, onMounted as E, onUnmounted as z, openBlock as w, 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: "maz-p-4" },
10
+ contentStyle: { default: void 0 },
11
+ innerOpacity: { default: 0.95 }
8
12
  },
9
- setup(a) {
10
- b((e) => ({
11
- "4126589a": d.value,
12
- "080f395c": i.value
13
+ setup(l) {
14
+ k((e) => ({
15
+ "49b43185": e.innerOpacity,
16
+ "37547d56": u.value
13
17
  }));
14
- const l = a, t = f(), n = f();
15
- function r(e) {
16
- var m, s, u;
17
- const o = (m = n.value) == null ? void 0 : m.getBoundingClientRect();
18
- o && ((u = (s = t.value) == null ? void 0 : s.animate) == null || u.call(
18
+ const n = l, o = c(), r = c(), t = c(!1);
19
+ function d({ clientX: e, clientY: p }) {
20
+ var m, s, v;
21
+ t.value = !0;
22
+ const a = (m = r.value) == null ? void 0 : m.getBoundingClientRect();
23
+ a && ((v = (s = o.value) == null ? void 0 : s.animate) == null || v.call(
19
24
  s,
20
25
  [
21
26
  {
22
- transform: `translate(${e.clientX - o.left - o.width / 2}px,${e.clientY - o.top - o.height / 2}px)`
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 i = p(() => `var(--maz-color-${l.color}-alpha)`), d = p(() => `var(--maz-color-${l.color}-alpha-20)`);
32
- return h(() => {
33
- window.addEventListener("mousemove", r);
34
- }), k(() => {
35
- window.removeEventListener("mousemove", r);
36
- }), (e, o) => (C(), E(
36
+ const u = f(() => `var(--maz-color-${n.color}-alpha)`), _ = f(() => `var(--maz-color-${n.color}-alpha-20)`);
37
+ return E(() => {
38
+ window.addEventListener("mousemove", d);
39
+ }), z(() => {
40
+ window.removeEventListener("mousemove", d);
41
+ }), (e, p) => (w(), B(
37
42
  "div",
38
43
  {
39
- class: g(["m-card", { "maz-elevation": !e.noElevation }]),
40
- style: v({ backgroundColor: d.value })
44
+ class: b(["m-card-spotlight", { "maz-elevation": !e.noElevation }]),
45
+ style: h({ backgroundColor: _.value })
41
46
  },
42
47
  [
43
- c("div", z, [
44
- c("div", w, [
45
- y(e.$slots, "default", {}, void 0, !0)
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
- c(
61
+ y(i(
49
62
  "div",
50
63
  {
51
64
  ref_key: "blobElement",
52
- ref: t,
65
+ ref: o,
53
66
  class: "blob",
54
- style: v({ backgroundColor: i.value })
67
+ style: h({ backgroundColor: u.value })
55
68
  },
56
69
  null,
57
70
  4
58
71
  /* STYLE */
59
- ),
60
- c(
72
+ ), [
73
+ [C, t.value]
74
+ ]),
75
+ y(i(
61
76
  "div",
62
77
  {
63
78
  ref_key: "fakeblobElement",
64
- ref: n,
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
- }), $ = (a, l) => {
77
- const t = a.__vccOpts || a;
78
- for (const [n, r] of l)
79
- t[n] = r;
80
- return t;
81
- }, S = /* @__PURE__ */ $(B, [["__scopeId", "data-v-11af6ef3"]]);
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-3030d98c"]]);
82
99
  export {
83
- S as default
100
+ L as default
84
101
  };
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazCarousel-iKzlrVVy.mjs";
1
+ import { M as f } from "./chunks/MazCarousel-IzbBgBrr.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazDialog-4Th-Xut5.mjs";
1
+ import { M as f } from "./chunks/MazDialog-DfykSNZV.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { a as o, u as s } from "./chunks/MazDialogPromise-CJsnYYpX.mjs";
1
+ import { a as o, u as s } from "./chunks/MazDialogPromise-DW7DF186.mjs";
2
2
  export {
3
3
  o as default,
4
4
  s as useMazDialogPromise