maz-ui 3.22.3 → 3.23.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.
Files changed (243) hide show
  1. package/components/MazAvatar.mjs +2 -2
  2. package/components/MazBackdrop.mjs +67 -107
  3. package/components/MazBadge.mjs +41 -50
  4. package/components/MazBottomSheet.mjs +2 -2
  5. package/components/MazBtn.mjs +2 -2
  6. package/components/MazCard.mjs +2 -2
  7. package/components/MazCarousel.mjs +2 -2
  8. package/components/MazChart.mjs +53 -63
  9. package/components/MazCheckbox.mjs +84 -128
  10. package/components/MazDialog.mjs +2 -2
  11. package/components/MazDialogPromise.mjs +3 -3
  12. package/components/MazDrawer.mjs +2 -2
  13. package/components/MazDropdown.mjs +2 -2
  14. package/components/MazDropzone.mjs +2 -2
  15. package/components/MazFullscreenLoader.mjs +14 -18
  16. package/components/MazGallery.d.ts +41 -0
  17. package/components/MazGallery.mjs +370 -567
  18. package/components/MazIcon.mjs +76 -140
  19. package/components/MazInput.mjs +2 -2
  20. package/components/MazInputNumber.mjs +72 -99
  21. package/components/MazInputPrice.mjs +2 -2
  22. package/components/MazInputTags.mjs +2 -2
  23. package/components/MazLazyImg.mjs +2 -2
  24. package/components/MazPhoneNumberInput.mjs +2 -2
  25. package/components/MazPicker.mjs +2 -2
  26. package/components/MazRadio.mjs +65 -94
  27. package/components/MazRadioButtons.mjs +64 -78
  28. package/components/MazSelect.mjs +2 -2
  29. package/components/MazSlider.mjs +213 -325
  30. package/components/MazSpinner.mjs +25 -34
  31. package/components/MazStepper.mjs +2 -2
  32. package/components/MazSwitch.mjs +43 -60
  33. package/components/MazTabs.mjs +16 -25
  34. package/components/MazTabsBar.mjs +2 -2
  35. package/components/MazTabsContent.mjs +34 -43
  36. package/components/MazTabsContentItem.mjs +49 -63
  37. package/components/MazTextarea.mjs +124 -169
  38. package/components/MazTransitionExpand.mjs +36 -54
  39. package/components/assets/MazBackdrop.css +1 -1
  40. package/components/assets/MazBottomSheet.css +1 -1
  41. package/components/assets/MazDialog.css +1 -1
  42. package/components/assets/MazDialogPromise.css +1 -1
  43. package/components/assets/MazDrawer.css +1 -1
  44. package/components/assets/MazGallery.css +1 -1
  45. package/components/assets/MazPhoneNumberInput.css +1 -1
  46. package/components/assets/MazSelect.css +1 -1
  47. package/components/chunks/MazAvatar-1636f58b.mjs +126 -0
  48. package/components/chunks/MazBottomSheet-c24f92f8.mjs +217 -0
  49. package/components/chunks/MazBtn-124f3700.mjs +153 -0
  50. package/components/chunks/MazBtn-1e61862b.mjs +153 -0
  51. package/components/chunks/MazBtn-2d1d1ba5.mjs +153 -0
  52. package/components/chunks/MazBtn-3d74f737.mjs +153 -0
  53. package/components/chunks/MazBtn-4a447126.mjs +153 -0
  54. package/components/chunks/MazBtn-555928ed.mjs +153 -0
  55. package/components/chunks/MazBtn-571454f6.mjs +153 -0
  56. package/components/chunks/MazBtn-5e426592.mjs +153 -0
  57. package/components/chunks/MazBtn-6905cc39.mjs +153 -0
  58. package/components/chunks/MazBtn-6ce4cfd3.mjs +153 -0
  59. package/components/chunks/MazBtn-74656d5b.mjs +153 -0
  60. package/components/chunks/MazBtn-7706b2da.mjs +158 -0
  61. package/components/chunks/MazBtn-a7a913dd.mjs +153 -0
  62. package/components/chunks/MazBtn-ba27c61d.mjs +153 -0
  63. package/components/chunks/MazBtn-fb3c7af8.mjs +153 -0
  64. package/components/chunks/MazCard-bcc36489.mjs +214 -0
  65. package/components/chunks/MazCarousel-6da75122.mjs +107 -0
  66. package/components/chunks/MazCheckbox-040dc2c4.mjs +117 -0
  67. package/components/chunks/MazCheckbox-3a2b48b4.mjs +117 -0
  68. package/components/chunks/MazDialog-44eda544.mjs +250 -0
  69. package/components/chunks/MazDialogPromise-eec5acde.mjs +419 -0
  70. package/components/chunks/MazDrawer-b628b37e.mjs +206 -0
  71. package/components/chunks/MazDropdown-6f2248b0.mjs +345 -0
  72. package/components/chunks/MazDropzone-8cac10a6.mjs +242 -0
  73. package/components/chunks/MazGallery-6b8ecedf.mjs +617 -0
  74. package/components/chunks/MazIcon-52a76873.mjs +101 -0
  75. package/components/chunks/MazIcon-95e31ff8.mjs +96 -0
  76. package/components/chunks/MazInput-1ed4f946.mjs +283 -0
  77. package/components/chunks/MazInput-c51881ea.mjs +278 -0
  78. package/components/chunks/MazInput-e1373eaf.mjs +271 -0
  79. package/components/chunks/MazInputPrice-cd348d46.mjs +392 -0
  80. package/components/chunks/MazInputTags-aa95fae7.mjs +446 -0
  81. package/components/chunks/MazLazyImg-0412ab38.mjs +259 -0
  82. package/components/chunks/MazLazyImg-47d3449a.mjs +254 -0
  83. package/components/chunks/MazPhoneNumberInput-e1bf46f9.mjs +1216 -0
  84. package/components/chunks/MazPicker-c85774e5.mjs +1140 -0
  85. package/components/chunks/MazPickerCalendar-f5bbea58.mjs +532 -0
  86. package/components/chunks/MazPickerHeader-31a3619b.mjs +186 -0
  87. package/components/chunks/MazPickerMonthSwitcher-aaa759b9.mjs +97 -0
  88. package/components/chunks/MazPickerShortcuts-d0623e2d.mjs +74 -0
  89. package/components/chunks/MazPickerTime-de9cfc63.mjs +219 -0
  90. package/components/chunks/MazPickerYearSwitcher-746c84fc.mjs +106 -0
  91. package/components/chunks/MazSelect-6ff6bb96.mjs +652 -0
  92. package/components/chunks/MazSpinner-054f948c.mjs +39 -0
  93. package/components/chunks/MazSpinner-059ee1d2.mjs +39 -0
  94. package/components/chunks/MazSpinner-08ee440b.mjs +39 -0
  95. package/components/chunks/MazSpinner-13403729.mjs +39 -0
  96. package/components/chunks/MazSpinner-44011019.mjs +39 -0
  97. package/components/chunks/MazSpinner-452a1534.mjs +39 -0
  98. package/components/chunks/MazSpinner-4c02cfd2.mjs +39 -0
  99. package/components/chunks/MazSpinner-6d1d24d5.mjs +39 -0
  100. package/components/chunks/MazSpinner-6e7c4705.mjs +39 -0
  101. package/components/chunks/MazSpinner-7895f54f.mjs +39 -0
  102. package/components/chunks/MazSpinner-7eee202e.mjs +39 -0
  103. package/components/chunks/MazSpinner-805e14a6.mjs +39 -0
  104. package/components/chunks/MazSpinner-85080b43.mjs +39 -0
  105. package/components/chunks/MazSpinner-a13a50c9.mjs +39 -0
  106. package/components/chunks/MazSpinner-a6d61cee.mjs +43 -0
  107. package/components/chunks/MazSpinner-b065168a.mjs +39 -0
  108. package/components/chunks/MazSpinner-c67b05bb.mjs +39 -0
  109. package/components/chunks/MazSpinner-caa33afc.mjs +39 -0
  110. package/components/chunks/MazSpinner-cb8fbe9a.mjs +39 -0
  111. package/components/chunks/MazSpinner-d9ef329f.mjs +39 -0
  112. package/components/chunks/MazStepper-39f018f3.mjs +191 -0
  113. package/components/chunks/MazTabsBar-27965f16.mjs +132 -0
  114. package/components/chunks/MazTransitionExpand-55cfbecb.mjs +41 -0
  115. package/components/chunks/MazTransitionExpand-cd24498f.mjs +41 -0
  116. package/components/chunks/_plugin-vue_export-helper-dad06003.mjs +9 -0
  117. package/components/chunks/check-31d7ba2f.mjs +30 -0
  118. package/components/chunks/check-c9b483c0.mjs +30 -0
  119. package/components/chunks/{check-circle-7acfa4c4.mjs → check-circle-59c383ed.mjs} +10 -12
  120. package/components/chunks/chevron-down-2b60111a.mjs +30 -0
  121. package/components/chunks/chevron-left-39b4621e.mjs +30 -0
  122. package/components/chunks/chevron-right-949a60fa.mjs +30 -0
  123. package/components/chunks/debounce-19c516b6.mjs +11 -0
  124. package/components/chunks/examples.mobile.json-f63d22fb.mjs +4 -0
  125. package/components/chunks/{exclamation-circle-2e115536.mjs → exclamation-circle-e2620aab.mjs} +10 -12
  126. package/components/chunks/{exclamation-triangle-10eb48dc.mjs → exclamation-triangle-21bf116a.mjs} +10 -12
  127. package/components/chunks/{eye-fbb13657.mjs → eye-dc12ce09.mjs} +12 -15
  128. package/components/chunks/{eye-slash-342420ff.mjs → eye-slash-fa42a017.mjs} +10 -12
  129. package/components/chunks/{magnifying-glass-5dffa35e.mjs → magnifying-glass-908981c0.mjs} +10 -12
  130. package/components/chunks/minus-e71140e1.mjs +30 -0
  131. package/components/chunks/no-photography-4c6c77cf.mjs +4 -0
  132. package/components/chunks/{no-photography-b0d08d6f.mjs → no-photography-be94ddda.mjs} +12 -15
  133. package/components/chunks/{no-symbol-975ce547.mjs → no-symbol-87477ad0.mjs} +10 -12
  134. package/components/chunks/{pencil-2f766dc8.mjs → pencil-4c35b4e7.mjs} +10 -12
  135. package/components/chunks/plus-c20544c3.mjs +30 -0
  136. package/components/chunks/x-mark-35f2f1e7.mjs +30 -0
  137. package/components/chunks/x-mark-7761acf4.mjs +29 -0
  138. package/modules/chunks/MazBtn-82a868df.mjs +153 -0
  139. package/modules/chunks/MazIcon-169747b4.mjs +96 -0
  140. package/modules/chunks/MazSpinner-3febbfdc.mjs +39 -0
  141. package/modules/chunks/{arrow-top-right-on-square-32bbe5a1.mjs → arrow-top-right-on-square-15191934.mjs} +10 -12
  142. package/modules/chunks/chevron-left-39b4621e.mjs +30 -0
  143. package/modules/chunks/index-d9a25303.mjs +1628 -0
  144. package/modules/chunks/{link-4eb05848.mjs → link-bb14441d.mjs} +10 -12
  145. package/modules/chunks/no-photography-4c6c77cf.mjs +4 -0
  146. package/modules/chunks/x-mark-35f2f1e7.mjs +30 -0
  147. package/modules/index.mjs +45 -44
  148. package/nuxt/index.json +1 -1
  149. package/nuxt/types.d.mts +3 -2
  150. package/nuxt/types.d.ts +3 -2
  151. package/package.json +11 -7
  152. package/types/components/MazGallery.vue.d.ts +41 -0
  153. package/types/modules/index.d.ts +1 -0
  154. package/types/modules/resolvers/index.d.ts +2 -0
  155. package/components/chunks/MazAvatar-358d78d4.mjs +0 -138
  156. package/components/chunks/MazBottomSheet-61090f4a.mjs +0 -267
  157. package/components/chunks/MazBtn-0e02f0da.mjs +0 -184
  158. package/components/chunks/MazBtn-2f4fa942.mjs +0 -184
  159. package/components/chunks/MazBtn-31c6b731.mjs +0 -184
  160. package/components/chunks/MazBtn-48382169.mjs +0 -184
  161. package/components/chunks/MazBtn-4e1e116e.mjs +0 -184
  162. package/components/chunks/MazBtn-50abc4c5.mjs +0 -184
  163. package/components/chunks/MazBtn-84e12b6a.mjs +0 -184
  164. package/components/chunks/MazBtn-b42e3575.mjs +0 -184
  165. package/components/chunks/MazBtn-b56a7278.mjs +0 -184
  166. package/components/chunks/MazBtn-bbd6e9c8.mjs +0 -184
  167. package/components/chunks/MazBtn-cf0c8fcb.mjs +0 -184
  168. package/components/chunks/MazBtn-d92908b2.mjs +0 -191
  169. package/components/chunks/MazBtn-f48da79c.mjs +0 -184
  170. package/components/chunks/MazBtn-f7e94b59.mjs +0 -184
  171. package/components/chunks/MazBtn-fec4c3b7.mjs +0 -184
  172. package/components/chunks/MazCard-01b81dd2.mjs +0 -237
  173. package/components/chunks/MazCarousel-7825c7c9.mjs +0 -133
  174. package/components/chunks/MazCheckbox-ab5ddda2.mjs +0 -153
  175. package/components/chunks/MazCheckbox-e0bbe6ec.mjs +0 -153
  176. package/components/chunks/MazDialog-83e54b8c.mjs +0 -290
  177. package/components/chunks/MazDialogPromise-6967e821.mjs +0 -474
  178. package/components/chunks/MazDrawer-d778b3d2.mjs +0 -256
  179. package/components/chunks/MazDropdown-6f4482d7.mjs +0 -426
  180. package/components/chunks/MazDropzone-d1bb62dc.mjs +0 -325
  181. package/components/chunks/MazGallery-a8f6748b.mjs +0 -812
  182. package/components/chunks/MazIcon-b779da0a.mjs +0 -159
  183. package/components/chunks/MazIcon-bda198b4.mjs +0 -165
  184. package/components/chunks/MazInput-713b00d0.mjs +0 -326
  185. package/components/chunks/MazInput-b9386887.mjs +0 -341
  186. package/components/chunks/MazInput-c33627dd.mjs +0 -334
  187. package/components/chunks/MazInputPrice-452297f5.mjs +0 -481
  188. package/components/chunks/MazInputTags-7a463b81.mjs +0 -526
  189. package/components/chunks/MazLazyImg-6e395356.mjs +0 -336
  190. package/components/chunks/MazLazyImg-e0d8b6d0.mjs +0 -329
  191. package/components/chunks/MazPhoneNumberInput-48fe2445.mjs +0 -1536
  192. package/components/chunks/MazPicker-50fc11d1.mjs +0 -1352
  193. package/components/chunks/MazPickerCalendar-cacb361c.mjs +0 -689
  194. package/components/chunks/MazPickerHeader-63d45179.mjs +0 -216
  195. package/components/chunks/MazPickerMonthSwitcher-913c6e2c.mjs +0 -110
  196. package/components/chunks/MazPickerShortcuts-c6fabfc6.mjs +0 -88
  197. package/components/chunks/MazPickerTime-5e4475da.mjs +0 -301
  198. package/components/chunks/MazPickerYearSwitcher-dd4fa89c.mjs +0 -125
  199. package/components/chunks/MazSelect-2e5cd411.mjs +0 -850
  200. package/components/chunks/MazSpinner-022d7bee.mjs +0 -46
  201. package/components/chunks/MazSpinner-100c99b8.mjs +0 -46
  202. package/components/chunks/MazSpinner-191ad23b.mjs +0 -46
  203. package/components/chunks/MazSpinner-3155378b.mjs +0 -46
  204. package/components/chunks/MazSpinner-339a9006.mjs +0 -46
  205. package/components/chunks/MazSpinner-53979e96.mjs +0 -46
  206. package/components/chunks/MazSpinner-68d2f2ac.mjs +0 -46
  207. package/components/chunks/MazSpinner-6b563b22.mjs +0 -46
  208. package/components/chunks/MazSpinner-7cdc13e7.mjs +0 -46
  209. package/components/chunks/MazSpinner-8859d658.mjs +0 -46
  210. package/components/chunks/MazSpinner-8e180605.mjs +0 -52
  211. package/components/chunks/MazSpinner-98dd1f9d.mjs +0 -46
  212. package/components/chunks/MazSpinner-9950424b.mjs +0 -46
  213. package/components/chunks/MazSpinner-c8270a93.mjs +0 -46
  214. package/components/chunks/MazSpinner-cb491238.mjs +0 -46
  215. package/components/chunks/MazSpinner-cb6f99f3.mjs +0 -46
  216. package/components/chunks/MazSpinner-ce4be8f1.mjs +0 -46
  217. package/components/chunks/MazSpinner-e5a9f319.mjs +0 -46
  218. package/components/chunks/MazSpinner-e92bd359.mjs +0 -46
  219. package/components/chunks/MazSpinner-eea9056d.mjs +0 -46
  220. package/components/chunks/MazStepper-4c19dbfc.mjs +0 -255
  221. package/components/chunks/MazTabsBar-3c2e2d69.mjs +0 -157
  222. package/components/chunks/MazTransitionExpand-f293b830.mjs +0 -57
  223. package/components/chunks/MazTransitionExpand-f9e5a2d6.mjs +0 -57
  224. package/components/chunks/_plugin-vue_export-helper-cc2b3d55.mjs +0 -10
  225. package/components/chunks/check-8da249b1.mjs +0 -32
  226. package/components/chunks/check-f2fcce10.mjs +0 -32
  227. package/components/chunks/chevron-down-a78b9604.mjs +0 -32
  228. package/components/chunks/chevron-left-3365d59b.mjs +0 -32
  229. package/components/chunks/chevron-right-02f9e837.mjs +0 -32
  230. package/components/chunks/debounce-7d66ffa9.mjs +0 -12
  231. package/components/chunks/examples.mobile.json-618ba782.mjs +0 -4
  232. package/components/chunks/minus-c9cdee90.mjs +0 -32
  233. package/components/chunks/no-photography-7f2be516.mjs +0 -4
  234. package/components/chunks/plus-b1b0a5a8.mjs +0 -32
  235. package/components/chunks/x-mark-3b05101b.mjs +0 -31
  236. package/components/chunks/x-mark-c6ff45dd.mjs +0 -32
  237. package/modules/chunks/MazBtn-90ffd148.mjs +0 -184
  238. package/modules/chunks/MazIcon-988edef7.mjs +0 -159
  239. package/modules/chunks/MazSpinner-a16a3d8f.mjs +0 -46
  240. package/modules/chunks/chevron-left-3365d59b.mjs +0 -32
  241. package/modules/chunks/index-b1625fc2.mjs +0 -2315
  242. package/modules/chunks/no-photography-7f2be516.mjs +0 -4
  243. package/modules/chunks/x-mark-c6ff45dd.mjs +0 -32
@@ -1,18 +1,14 @@
1
1
  import "./assets/MazSpinner.css";
2
- import { defineComponent, openBlock, createElementBlock, normalizeClass, pushScopeId, popScopeId, createElementVNode } from "vue";
3
- const _withScopeId = (n) => (pushScopeId("data-v-c67298ec"), n = n(), popScopeId(), n);
4
- const _hoisted_1 = ["width", "height"];
5
- const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode(
2
+ import { defineComponent as s, openBlock as r, createElementBlock as p, normalizeClass as a, pushScopeId as i, popScopeId as _, createElementVNode as l } from "vue";
3
+ const d = (e) => (i("data-v-c67298ec"), e = e(), _(), e), h = ["width", "height"], m = /* @__PURE__ */ d(() => /* @__PURE__ */ l(
6
4
  "path",
7
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" },
8
6
  null,
9
7
  -1
10
8
  /* HOISTED */
11
- ));
12
- const _hoisted_3 = [
13
- _hoisted_2
14
- ];
15
- const _sfc_main = /* @__PURE__ */ defineComponent({
9
+ )), u = [
10
+ m
11
+ ], v = /* @__PURE__ */ s({
16
12
  __name: "MazSpinner",
17
13
  props: {
18
14
  size: { type: String, default: "2em" },
@@ -21,32 +17,27 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
21
17
  default: "primary"
22
18
  }
23
19
  },
24
- setup(__props) {
25
- return (_ctx, _cache) => {
26
- return openBlock(), createElementBlock("svg", {
27
- width: __props.size,
28
- height: __props.size,
29
- version: "1.1",
30
- xmlns: "http://www.w3.org/2000/svg",
31
- x: "0px",
32
- y: "0px",
33
- viewBox: "0 0 50 50",
34
- "xml:space": "preserve",
35
- class: normalizeClass(["m-spinner", `m-spinner--${__props.color}`]),
36
- style: { "enable-background": "new 0 0 50 50" }
37
- }, _hoisted_3, 10, _hoisted_1);
38
- };
20
+ setup(e) {
21
+ return (c, t) => (r(), p("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: a(["m-spinner", `m-spinner--${e.color}`]),
31
+ style: { "enable-background": "new 0 0 50 50" }
32
+ }, u, 10, h));
39
33
  }
40
34
  });
41
- const MazSpinner_vue_vue_type_style_index_0_scoped_c67298ec_lang = "";
42
- const _export_sfc = (sfc, props) => {
43
- const target = sfc.__vccOpts || sfc;
44
- for (const [key, val] of props) {
45
- target[key] = val;
46
- }
47
- return target;
48
- };
49
- const MazSpinner = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c67298ec"]]);
35
+ const g = (e, c) => {
36
+ const t = e.__vccOpts || e;
37
+ for (const [n, o] of c)
38
+ t[n] = o;
39
+ return t;
40
+ }, f = /* @__PURE__ */ g(v, [["__scopeId", "data-v-c67298ec"]]);
50
41
  export {
51
- MazSpinner as default
42
+ f as default
52
43
  };
@@ -1,4 +1,4 @@
1
- import { M } from "./chunks/MazStepper-4c19dbfc.mjs";
1
+ import { M as f } from "./chunks/MazStepper-39f018f3.mjs";
2
2
  export {
3
- M as default
3
+ f as default
4
4
  };
@@ -1,31 +1,24 @@
1
1
  import "./assets/MazSwitch.css";
2
- import { computed, defineComponent, useCssVars, getCurrentInstance, openBlock, createElementBlock, unref, normalizeClass, createElementVNode, mergeProps, renderSlot, createCommentVNode } from "vue";
3
- const useInstanceUniqId = ({
4
- componentName,
5
- instance,
6
- providedId
7
- }) => {
8
- return computed(() => providedId ?? `${componentName}-${instance == null ? void 0 : instance.uid}`);
9
- };
10
- const _hoisted_1 = ["for", "aria-checked"];
11
- const _hoisted_2 = ["id", "name", "checked", "disabled"];
12
- const _hoisted_3 = /* @__PURE__ */ createElementVNode(
2
+ import { computed as s, defineComponent as _, useCssVars as b, getCurrentInstance as v, openBlock as n, createElementBlock as i, unref as r, normalizeClass as g, createElementVNode as m, mergeProps as k, renderSlot as y, createCommentVNode as C } from "vue";
3
+ const w = ({
4
+ componentName: e,
5
+ instance: l,
6
+ providedId: a
7
+ }) => s(() => a ?? `${e}-${l == null ? void 0 : l.uid}`), V = ["for", "aria-checked"], z = ["id", "name", "checked", "disabled"], S = /* @__PURE__ */ m(
13
8
  "span",
14
9
  { class: "m-switch__toggle" },
15
10
  null,
16
11
  -1
17
12
  /* HOISTED */
18
- );
19
- const _hoisted_4 = {
13
+ ), $ = {
20
14
  key: 0,
21
15
  class: "m-switch__label"
22
- };
23
- const _sfc_main = /* @__PURE__ */ defineComponent({
16
+ }, B = /* @__PURE__ */ _({
24
17
  __name: "MazSwitch",
25
18
  props: {
26
- modelValue: { type: Boolean, required: true },
19
+ modelValue: { type: Boolean, required: !0 },
27
20
  id: { type: String, default: void 0 },
28
- disabled: { type: Boolean, default: false },
21
+ disabled: { type: Boolean, default: !1 },
29
22
  name: { type: String, default: void 0 },
30
23
  color: { type: String, default: "primary" }
31
24
  },
@@ -35,53 +28,43 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
35
28
  /* emitted on value change */
36
29
  "change"
37
30
  ],
38
- setup(__props, { emit: __emit }) {
39
- useCssVars((_ctx) => ({
40
- "61b7edd8": bgColorClassVar.value,
41
- "d86aa1f0": bgColorStyle.value
31
+ setup(e, { emit: l }) {
32
+ b((o) => ({
33
+ "61b7edd8": h.value,
34
+ d86aa1f0: p.value
42
35
  }));
43
- const props = __props;
44
- const emits = __emit;
45
- const instance = getCurrentInstance();
46
- const instanceId = useInstanceUniqId({
36
+ const a = e, d = l, u = v(), c = w({
47
37
  componentName: "MazCheckbox",
48
- instance,
49
- providedId: props.id
50
- });
51
- const bgColorClassVar = computed(() => `var(--maz-color-${props.color}-alpha)`);
52
- const bgColorStyle = computed(
53
- () => props.modelValue ? `var(--maz-color-${props.color})` : "var(--maz-color-white)"
54
- );
55
- const emit = (e) => {
56
- const target = e.target;
57
- emits("update:model-value", (target == null ? void 0 : target.checked) ?? false);
58
- emits("change", (target == null ? void 0 : target.checked) ?? false);
59
- };
60
- return (_ctx, _cache) => {
61
- return openBlock(), createElementBlock("label", {
62
- for: unref(instanceId),
63
- class: normalizeClass(["m-switch", { "--is-disabled": __props.disabled }]),
64
- role: "switch",
65
- "aria-checked": __props.modelValue,
66
- tabindex: "0"
67
- }, [
68
- createElementVNode("input", mergeProps({ id: unref(instanceId) }, _ctx.$attrs, {
69
- type: "checkbox",
70
- name: __props.name,
71
- checked: __props.modelValue,
72
- disabled: __props.disabled,
73
- class: "m-switch__input",
74
- onChange: emit
75
- }), null, 16, _hoisted_2),
76
- _hoisted_3,
77
- _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_4, [
78
- renderSlot(_ctx.$slots, "default")
79
- ])) : createCommentVNode("v-if", true)
80
- ], 10, _hoisted_1);
38
+ instance: u,
39
+ providedId: a.id
40
+ }), h = s(() => `var(--maz-color-${a.color}-alpha)`), p = s(
41
+ () => a.modelValue ? `var(--maz-color-${a.color})` : "var(--maz-color-white)"
42
+ ), f = (o) => {
43
+ const t = o.target;
44
+ d("update:model-value", (t == null ? void 0 : t.checked) ?? !1), d("change", (t == null ? void 0 : t.checked) ?? !1);
81
45
  };
46
+ return (o, t) => (n(), i("label", {
47
+ for: r(c),
48
+ class: g(["m-switch", { "--is-disabled": e.disabled }]),
49
+ role: "switch",
50
+ "aria-checked": e.modelValue,
51
+ tabindex: "0"
52
+ }, [
53
+ m("input", k({ id: r(c) }, o.$attrs, {
54
+ type: "checkbox",
55
+ name: e.name,
56
+ checked: e.modelValue,
57
+ disabled: e.disabled,
58
+ class: "m-switch__input",
59
+ onChange: f
60
+ }), null, 16, z),
61
+ S,
62
+ o.$slots.default ? (n(), i("span", $, [
63
+ y(o.$slots, "default")
64
+ ])) : C("v-if", !0)
65
+ ], 10, V));
82
66
  }
83
67
  });
84
- const MazSwitch_vue_vue_type_style_index_0_lang = "";
85
68
  export {
86
- _sfc_main as default
69
+ B as default
87
70
  };
@@ -1,37 +1,28 @@
1
- import { defineComponent, ref, computed, provide, openBlock, createElementBlock, renderSlot } from "vue";
2
- const _hoisted_1 = { class: "m-tabs" };
3
- const _sfc_main = /* @__PURE__ */ defineComponent({
1
+ import { defineComponent as n, ref as c, computed as m, provide as d, openBlock as p, createElementBlock as i, renderSlot as f } from "vue";
2
+ const v = { class: "m-tabs" }, T = /* @__PURE__ */ n({
4
3
  __name: "MazTabs",
5
4
  props: {
6
5
  modelValue: { type: Number, default: void 0 }
7
6
  },
8
7
  emits: ["update:model-value"],
9
- setup(__props, { emit: __emit }) {
10
- const props = __props;
11
- const emits = __emit;
12
- const localValue = ref(1);
13
- const currentTab = computed({
14
- get: () => props.modelValue ?? localValue.value,
15
- set: (index) => {
16
- localValue.value = index;
17
- emits("update:model-value", index);
8
+ setup(o, { emit: l }) {
9
+ const u = o, s = l, t = c(1), a = m({
10
+ get: () => u.modelValue ?? t.value,
11
+ set: (e) => {
12
+ t.value = e, s("update:model-value", e);
18
13
  }
19
14
  });
20
- function updateCurrentTab(index) {
21
- currentTab.value = index;
22
- return index;
15
+ function r(e) {
16
+ return a.value = e, e;
23
17
  }
24
- provide("maz-tabs", {
25
- currentTab,
26
- updateCurrentTab
27
- });
28
- return (_ctx, _cache) => {
29
- return openBlock(), createElementBlock("div", _hoisted_1, [
30
- renderSlot(_ctx.$slots, "default")
31
- ]);
32
- };
18
+ return d("maz-tabs", {
19
+ currentTab: a,
20
+ updateCurrentTab: r
21
+ }), (e, _) => (p(), i("div", v, [
22
+ f(e.$slots, "default")
23
+ ]));
33
24
  }
34
25
  });
35
26
  export {
36
- _sfc_main as default
27
+ T as default
37
28
  };
@@ -1,4 +1,4 @@
1
- import { M } from "./chunks/MazTabsBar-3c2e2d69.mjs";
1
+ import { M as f } from "./chunks/MazTabsBar-27965f16.mjs";
2
2
  export {
3
- M as default
3
+ f as default
4
4
  };
@@ -1,52 +1,43 @@
1
- import { inject, defineComponent, ref, watch, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
2
- function debounce(fn, delay) {
3
- let timeout;
4
- return function(...args) {
5
- clearTimeout(timeout);
6
- timeout = setTimeout(() => {
7
- fn.apply(this, args);
8
- }, delay);
1
+ import { inject as l, defineComponent as c, ref as i, watch as s, openBlock as u, createElementBlock as m, normalizeClass as f, renderSlot as d } from "vue";
2
+ function v(n, e) {
3
+ let t;
4
+ return function(...o) {
5
+ clearTimeout(t), t = setTimeout(() => {
6
+ n.apply(this, o);
7
+ }, e);
9
8
  };
10
9
  }
11
- function injectStrict(key, fallback) {
12
- const resolved = inject(key, fallback);
13
- if (!resolved) {
14
- throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${key}`);
15
- }
16
- return resolved;
10
+ function p(n, e) {
11
+ const t = l(n, e);
12
+ if (!t)
13
+ throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${n}`);
14
+ return t;
17
15
  }
18
- const _sfc_main = /* @__PURE__ */ defineComponent({
16
+ const h = /* @__PURE__ */ c({
19
17
  __name: "MazTabsContent",
20
- setup(__props) {
21
- const hideOverflow = ref(false);
22
- const { currentTab } = injectStrict("maz-tabs");
23
- const setOverflowHiddenTemp = () => {
24
- hideOverflow.value = true;
25
- allowOverFlow();
26
- };
27
- const allowOverFlow = debounce(function() {
28
- hideOverflow.value = false;
18
+ setup(n) {
19
+ const e = i(!1), { currentTab: t } = p("maz-tabs"), o = () => {
20
+ e.value = !0, r();
21
+ }, r = v(function() {
22
+ e.value = !1;
29
23
  }, 700);
30
- watch(
31
- () => currentTab.value,
32
- () => setOverflowHiddenTemp(),
33
- { immediate: true }
34
- );
35
- return (_ctx, _cache) => {
36
- return openBlock(), createElementBlock(
37
- "div",
38
- {
39
- class: normalizeClass(["m-tabs-content maz-relative", { "maz-overflow-hidden": hideOverflow.value }])
40
- },
41
- [
42
- renderSlot(_ctx.$slots, "default")
43
- ],
44
- 2
45
- /* CLASS */
46
- );
47
- };
24
+ return s(
25
+ () => t.value,
26
+ () => o(),
27
+ { immediate: !0 }
28
+ ), (a, w) => (u(), m(
29
+ "div",
30
+ {
31
+ class: f(["m-tabs-content maz-relative", { "maz-overflow-hidden": e.value }])
32
+ },
33
+ [
34
+ d(a.$slots, "default")
35
+ ],
36
+ 2
37
+ /* CLASS */
38
+ ));
48
39
  }
49
40
  });
50
41
  export {
51
- _sfc_main as default
42
+ h as default
52
43
  };
@@ -1,75 +1,61 @@
1
1
  import "./assets/MazTabsContentItem.css";
2
- import { inject, defineComponent, ref, watch, computed, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, renderSlot, vShow } from "vue";
3
- function injectStrict(key, fallback) {
4
- const resolved = inject(key, fallback);
5
- if (!resolved) {
6
- throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${key}`);
7
- }
8
- return resolved;
2
+ import { inject as _, defineComponent as p, ref as c, watch as d, computed as i, openBlock as l, createBlock as v, Transition as f, withCtx as T, withDirectives as z, createElementVNode as C, renderSlot as y, vShow as w } from "vue";
3
+ function I(t, n) {
4
+ const e = _(t, n);
5
+ if (!e)
6
+ throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${t}`);
7
+ return e;
9
8
  }
10
- const _sfc_main = /* @__PURE__ */ defineComponent({
9
+ const h = /* @__PURE__ */ p({
11
10
  __name: "MazTabsContentItem",
12
11
  props: {
13
- tab: { type: Number, required: true }
12
+ tab: { type: Number, required: !0 }
14
13
  },
15
- setup(__props) {
16
- const transitionName = ref("maz-tab-transition");
17
- const MazTabsContentItem2 = ref();
18
- const props = __props;
19
- const { currentTab } = injectStrict("maz-tabs");
20
- watch(
21
- () => currentTab.value,
22
- async (value, oldValue) => {
23
- if (typeof value === "number" && typeof oldValue === "number") {
24
- const newTabIsBigger = oldValue < value;
25
- transitionName.value = newTabIsBigger ? "maz-tab-transition" : "maz-tab-reverse-transition";
14
+ setup(t) {
15
+ const n = c("maz-tab-transition"), e = c(), o = t, { currentTab: r } = I("maz-tabs");
16
+ d(
17
+ () => r.value,
18
+ async (a, s) => {
19
+ if (typeof a == "number" && typeof s == "number") {
20
+ const b = s < a;
21
+ n.value = b ? "maz-tab-transition" : "maz-tab-reverse-transition";
26
22
  }
27
23
  },
28
- { immediate: true }
24
+ { immediate: !0 }
29
25
  );
30
- const itemTabNumber = computed(() => {
31
- return props.tab - 1;
32
- });
33
- const isCurrentTab = computed(() => {
34
- return currentTab.value - 1 === itemTabNumber.value;
35
- });
36
- return (_ctx, _cache) => {
37
- return openBlock(), createBlock(Transition, {
38
- name: transitionName.value,
39
- persisted: ""
40
- }, {
41
- default: withCtx(() => [
42
- withDirectives(createElementVNode(
43
- "div",
44
- {
45
- ref_key: "MazTabsContentItem",
46
- ref: MazTabsContentItem2,
47
- class: "m-tabs-content-item"
48
- },
49
- [
50
- renderSlot(_ctx.$slots, "default", {}, void 0, true)
51
- ],
52
- 512
53
- /* NEED_PATCH */
54
- ), [
55
- [vShow, isCurrentTab.value]
56
- ])
57
- ]),
58
- _: 3
59
- /* FORWARDED */
60
- }, 8, ["name"]);
61
- };
26
+ const m = i(() => o.tab - 1), u = i(() => r.value - 1 === m.value);
27
+ return (a, s) => (l(), v(f, {
28
+ name: n.value,
29
+ persisted: ""
30
+ }, {
31
+ default: T(() => [
32
+ z(C(
33
+ "div",
34
+ {
35
+ ref_key: "MazTabsContentItem",
36
+ ref: e,
37
+ class: "m-tabs-content-item"
38
+ },
39
+ [
40
+ y(a.$slots, "default", {}, void 0, !0)
41
+ ],
42
+ 512
43
+ /* NEED_PATCH */
44
+ ), [
45
+ [w, u.value]
46
+ ])
47
+ ]),
48
+ _: 3
49
+ /* FORWARDED */
50
+ }, 8, ["name"]));
62
51
  }
63
52
  });
64
- const MazTabsContentItem_vue_vue_type_style_index_0_scoped_bb2d5094_lang = "";
65
- const _export_sfc = (sfc, props) => {
66
- const target = sfc.__vccOpts || sfc;
67
- for (const [key, val] of props) {
68
- target[key] = val;
69
- }
70
- return target;
71
- };
72
- const MazTabsContentItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-bb2d5094"]]);
53
+ const M = (t, n) => {
54
+ const e = t.__vccOpts || t;
55
+ for (const [o, r] of n)
56
+ e[o] = r;
57
+ return e;
58
+ }, N = /* @__PURE__ */ M(h, [["__scopeId", "data-v-bb2d5094"]]);
73
59
  export {
74
- MazTabsContentItem as default
60
+ N as default
75
61
  };