maz-ui 3.44.4-beta.8 → 3.45.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 (223) hide show
  1. package/components/MazAccordion.mjs +5 -3
  2. package/components/MazBackdrop.d.ts +1 -1
  3. package/components/MazBottomSheet.mjs +1 -1
  4. package/components/MazBtn.d.ts +1 -0
  5. package/components/MazBtn.mjs +1 -1
  6. package/components/MazCard.mjs +1 -1
  7. package/components/MazCarousel.mjs +1 -1
  8. package/components/MazChart.d.ts +1 -1
  9. package/components/MazCheckbox.d.ts +45 -65
  10. package/components/MazCheckbox.mjs +107 -79
  11. package/components/MazCircularProgressBar.mjs +22 -20
  12. package/components/MazDialog.mjs +1 -1
  13. package/components/MazDialogPromise/use-maz-dialog-promise.d.ts +105 -29
  14. package/components/MazDialogPromise.mjs +1 -1
  15. package/components/MazDrawer.mjs +1 -1
  16. package/components/MazDropdown.d.ts +4 -4
  17. package/components/MazDropdown.mjs +7 -16
  18. package/components/MazDropzone.d.ts +3 -3
  19. package/components/MazInput.d.ts +3 -3
  20. package/components/MazInput.mjs +1 -1
  21. package/components/MazInputCode.d.ts +17 -67
  22. package/components/MazInputCode.mjs +109 -93
  23. package/components/MazInputNumber.d.ts +9 -1
  24. package/components/MazInputNumber.mjs +1 -1
  25. package/components/MazInputPrice.d.ts +23 -6
  26. package/components/MazInputPrice.mjs +1 -1
  27. package/components/MazInputTags.d.ts +6 -4
  28. package/components/MazInputTags.mjs +1 -1
  29. package/components/MazPagination.mjs +1 -1
  30. package/components/MazPhoneNumberInput.mjs +1 -1
  31. package/components/MazPicker.d.ts +16 -0
  32. package/components/MazPicker.mjs +1 -1
  33. package/components/MazRadio.d.ts +41 -87
  34. package/components/MazRadio.mjs +88 -58
  35. package/components/MazRadioButtons.d.ts +40 -67
  36. package/components/MazRadioButtons.mjs +157 -122
  37. package/components/MazReadingProgressBar.mjs +29 -28
  38. package/components/MazSelect.d.ts +3 -3
  39. package/components/MazSelect.mjs +1 -1
  40. package/components/MazStepper.mjs +1 -1
  41. package/components/MazSwitch.d.ts +15 -1
  42. package/components/MazSwitch.mjs +82 -37
  43. package/components/MazTable.d.ts +6 -34
  44. package/components/MazTable.mjs +1 -1
  45. package/components/MazTextarea.d.ts +7 -5
  46. package/components/MazTextarea.mjs +26 -19
  47. package/components/assets/MazAccordion.css +1 -1
  48. package/components/assets/MazBtn.css +1 -1
  49. package/components/assets/MazCard.css +1 -1
  50. package/components/assets/MazCheckbox.css +1 -1
  51. package/components/assets/MazCircularProgressBar.css +1 -1
  52. package/components/assets/MazDropdown.css +1 -1
  53. package/components/assets/MazInput.css +1 -1
  54. package/components/assets/MazInputCode.css +1 -1
  55. package/components/assets/MazInputNumber.css +1 -1
  56. package/components/assets/MazInputPrice.css +1 -1
  57. package/components/assets/MazInputTags.css +1 -1
  58. package/components/assets/MazPagination.css +1 -1
  59. package/components/assets/MazPhoneNumberInput.css +1 -1
  60. package/components/assets/MazPicker.css +1 -1
  61. package/components/assets/MazRadio.css +1 -1
  62. package/components/assets/MazRadioButtons.css +1 -1
  63. package/components/assets/MazSelect.css +1 -1
  64. package/components/assets/MazStepper.css +1 -1
  65. package/components/assets/MazSwitch.css +1 -1
  66. package/components/assets/MazTable.css +1 -1
  67. package/components/assets/MazTabsBar.css +1 -1
  68. package/components/assets/MazTextarea.css +1 -1
  69. package/components/chunks/{MazBottomSheet-DpI8wFgc.mjs → MazBottomSheet-CH2HERnA.mjs} +1 -1
  70. package/components/chunks/MazBtn-25C5Rxq8.mjs +150 -0
  71. package/components/chunks/{MazBtn-B6TXxFme.mjs → MazBtn-Am8V9GhQ.mjs} +4 -4
  72. package/components/chunks/{MazBtn-BIVlttu0.mjs → MazBtn-BY3WK1_J.mjs} +4 -4
  73. package/components/chunks/MazBtn-CHiPgDBd.mjs +150 -0
  74. package/components/chunks/MazBtn-Cljl5o-I.mjs +150 -0
  75. package/components/chunks/MazBtn-Ctia-461.mjs +150 -0
  76. package/components/chunks/MazBtn-DODywrLx.mjs +150 -0
  77. package/components/chunks/{MazBtn-BQ7aH6Qe.mjs → MazBtn-DUxqd_DK.mjs} +3 -3
  78. package/components/chunks/{MazBtn-BURByjBO.mjs → MazBtn-DaGlZoUy.mjs} +4 -4
  79. package/components/chunks/{MazBtn-Dfz-5FeI.mjs → MazBtn-Db9bWwr8.mjs} +3 -3
  80. package/components/chunks/{MazBtn-C7RDTnn-.mjs → MazBtn-DtBz7Sra.mjs} +4 -4
  81. package/components/chunks/{MazCard-BiDXoNWK.mjs → MazCard-BOVaL2TX.mjs} +3 -3
  82. package/components/chunks/{MazCarousel-DJ_nQfy4.mjs → MazCarousel-abKXCTQA.mjs} +1 -1
  83. package/components/chunks/MazCheckbox-DJUwF9Ic.mjs +145 -0
  84. package/components/chunks/MazCheckbox-cCi1trWo.mjs +145 -0
  85. package/components/chunks/{MazDialog-DXaeCp-b.mjs → MazDialog-DvwYzTxG.mjs} +1 -1
  86. package/components/chunks/{MazDialogPromise-Bgxjg9ss.mjs → MazDialogPromise-LtvHsHIp.mjs} +2 -2
  87. package/components/chunks/{MazExpandAnimation-ChSSdQAq.mjs → MazExpandAnimation-KC7-CJjE.mjs} +1 -1
  88. package/components/chunks/{MazGallery-SSMQ_JIA.mjs → MazGallery-CPYyQmRZ.mjs} +2 -2
  89. package/components/chunks/{MazIcon-x_aGvHlZ.mjs → MazIcon-Cj1BW9sd.mjs} +1 -1
  90. package/components/chunks/{MazIcon-CwITLbPL.mjs → MazIcon-RoOmzDJT.mjs} +1 -1
  91. package/components/chunks/{MazInput-DtXDTEbn.mjs → MazInput-Bh4h0r_b.mjs} +7 -5
  92. package/components/chunks/{MazInputNumber-Bbo6UwHG.mjs → MazInputNumber-C6X8wPcR.mjs} +64 -54
  93. package/components/chunks/{MazInputPrice-CSft00gJ.mjs → MazInputPrice-C8JPpUqb.mjs} +176 -154
  94. package/components/chunks/{MazInputTags-CMLyznXG.mjs → MazInputTags-B7CtC8ES.mjs} +50 -43
  95. package/components/chunks/{MazPagination-NbHR41CQ.mjs → MazPagination-nBtlECFm.mjs} +3 -3
  96. package/components/chunks/{MazPhoneNumberInput-fo2MtuWB.mjs → MazPhoneNumberInput-D9jYdzsz.mjs} +192 -186
  97. package/components/chunks/{MazPicker-Df-LRtwz.mjs → MazPicker-DyZrLgfS.mjs} +829 -829
  98. package/components/chunks/{MazPickerMonthSwitcher-CrrfUDPA.mjs → MazPickerMonthSwitcher-DuCmmEkc.mjs} +1 -1
  99. package/components/chunks/{MazPickerShortcuts-Dpm1ra_Y.mjs → MazPickerShortcuts-ByXlLUrf.mjs} +1 -1
  100. package/components/chunks/{MazPickerYearSwitcher-BIeGuXI7.mjs → MazPickerYearSwitcher-C4lu0v5Z.mjs} +1 -1
  101. package/components/chunks/{MazSelect-xBiD7HuJ.mjs → MazSelect-YzzlcNEB.mjs} +201 -195
  102. package/components/chunks/{MazSpinner-CvucKhXp.mjs → MazSpinner--8_8u8F8.mjs} +1 -1
  103. package/components/chunks/{MazSpinner-CrDTibNk.mjs → MazSpinner-B6CCWjsr.mjs} +1 -1
  104. package/components/chunks/{MazSpinner-C5MXwcx7.mjs → MazSpinner-BB7RmZDm.mjs} +1 -1
  105. package/components/chunks/MazSpinner-BJN_jbhh.mjs +37 -0
  106. package/components/chunks/{MazSpinner-C6T_enKo.mjs → MazSpinner-BaF0DUe_.mjs} +1 -1
  107. package/components/chunks/{MazSpinner-Cytz0rab.mjs → MazSpinner-BkThjKrN.mjs} +1 -1
  108. package/components/chunks/{MazSpinner-Bj5hXQuh.mjs → MazSpinner-C26AbFPs.mjs} +1 -1
  109. package/components/chunks/{MazSpinner-C8x7LsHq.mjs → MazSpinner-CeqhaMHQ.mjs} +1 -1
  110. package/components/chunks/MazSpinner-ClVjU4gS.mjs +37 -0
  111. package/components/chunks/MazSpinner-CrfX4MuO.mjs +37 -0
  112. package/components/chunks/{MazSpinner-BzQ5Fn3J.mjs → MazSpinner-CxE3Az_C.mjs} +1 -1
  113. package/components/chunks/{MazSpinner-rAqBu92m.mjs → MazSpinner-DH5fMQ2V.mjs} +1 -1
  114. package/components/chunks/MazSpinner-DRDcCM66.mjs +37 -0
  115. package/components/chunks/MazSpinner-aOtXYirZ.mjs +37 -0
  116. package/components/chunks/{MazSpinner-CLz4ccD0.mjs → MazSpinner-vlqbojbC.mjs} +1 -1
  117. package/components/chunks/MazSpinner-xXJol44G.mjs +37 -0
  118. package/components/chunks/{MazStepper-DxrzKz06.mjs → MazStepper-yS_V0Blo.mjs} +11 -11
  119. package/components/chunks/{MazTable-1D7GRSpa.mjs → MazTable-IHEexOjS.mjs} +731 -699
  120. package/components/chunks/{MazTransitionExpand-BLFZPAt_.mjs → MazTransitionExpand-5BehexAr.mjs} +1 -1
  121. package/css/main.css +1 -1
  122. package/icons/star-solid.svg +3 -0
  123. package/modules/assets/MazBtn.css +1 -1
  124. package/modules/assets/index.css +1 -1
  125. package/modules/chunks/MazBtn-BFQY0H-i.mjs +150 -0
  126. package/modules/chunks/{MazBtn-ubyxuJuX.cjs → MazBtn-I7JqHQTq.cjs} +2 -2
  127. package/modules/chunks/{MazIcon-CBb0nZ3j.cjs → MazIcon-CsxV_mO2.cjs} +1 -1
  128. package/modules/chunks/{MazIcon-DgtEHf2O.mjs → MazIcon-p3FoIAP_.mjs} +1 -1
  129. package/modules/chunks/{MazSpinner-DT1vzfwj.cjs → MazSpinner-BpSg3Y-2.cjs} +1 -1
  130. package/modules/chunks/{MazSpinner-BgwaoBcS.mjs → MazSpinner-Ci05iNOI.mjs} +1 -1
  131. package/modules/chunks/index--QQ7NnV6.cjs +1 -0
  132. package/modules/chunks/{index-BRPyIVYZ.mjs → index-BB6bju-X.mjs} +1195 -1011
  133. package/modules/chunks/index-DKf8K15k.cjs +124 -0
  134. package/modules/chunks/{index-IH_7hv2n.mjs → index-DLSZ-jVW.mjs} +654 -618
  135. package/modules/index.cjs +1 -1
  136. package/modules/index.mjs +44 -43
  137. package/nuxt/index.d.mts +5 -0
  138. package/nuxt/index.d.ts +5 -0
  139. package/nuxt/index.json +1 -1
  140. package/nuxt/index.mjs +16 -4
  141. package/package.json +32 -27
  142. package/resolvers/index.cjs +1 -1
  143. package/resolvers/index.d.ts +1 -0
  144. package/resolvers/index.mjs +50 -10
  145. package/resolvers/unplugin-directives-resolver.d.ts +1 -1
  146. package/resolvers/unplugin-modules-resolver.d.ts +2 -0
  147. package/resolvers/unplugin-vue-components-resolver.d.ts +1 -1
  148. package/types/components/MazBackdrop.vue.d.ts +1 -1
  149. package/types/components/MazBtn.vue.d.ts +1 -0
  150. package/types/components/MazChart.vue.d.ts +1 -1
  151. package/types/components/MazCheckbox.vue.d.ts +45 -65
  152. package/types/components/MazDialogPromise/use-maz-dialog-promise.d.ts +105 -29
  153. package/types/components/MazDropdown.vue.d.ts +4 -4
  154. package/types/components/MazDropzone.vue.d.ts +3 -3
  155. package/types/components/MazInput.vue.d.ts +3 -3
  156. package/types/components/MazInputCode.vue.d.ts +17 -67
  157. package/types/components/MazInputNumber.vue.d.ts +9 -1
  158. package/types/components/MazInputPrice.vue.d.ts +23 -6
  159. package/types/components/MazInputTags.vue.d.ts +6 -4
  160. package/types/components/MazPicker.vue.d.ts +16 -0
  161. package/types/components/MazRadio.vue.d.ts +41 -87
  162. package/types/components/MazRadioButtons.vue.d.ts +40 -67
  163. package/types/components/MazSelect.vue.d.ts +3 -3
  164. package/types/components/MazSwitch.vue.d.ts +15 -1
  165. package/types/components/MazTable.vue.d.ts +6 -34
  166. package/types/components/MazTextarea.vue.d.ts +7 -5
  167. package/types/modules/composables/index.d.ts +14 -14
  168. package/types/modules/composables/{use-breakpoints.d.ts → useBreakpoints.d.ts} +2 -2
  169. package/types/modules/composables/useFormValidator/config.d.ts +7 -0
  170. package/types/modules/composables/useFormValidator/index.d.ts +3 -0
  171. package/types/modules/composables/{use-form-validator → useFormValidator}/types.d.ts +22 -18
  172. package/types/modules/composables/useFormValidator/useFormField.d.ts +16 -0
  173. package/types/modules/composables/useFormValidator/useFormValidator.d.ts +17 -0
  174. package/types/modules/composables/useFormValidator/utils.d.ts +114 -0
  175. package/types/modules/composables/useSwipe.d.ts +11 -0
  176. package/types/modules/composables/{use-theme-handler.d.ts → useThemeHandler.d.ts} +2 -2
  177. package/types/modules/composables/{use-timer.d.ts → useTimer.d.ts} +1 -1
  178. package/types/modules/composables/{use-window-size.d.ts → useWindowSize.d.ts} +2 -2
  179. package/types/modules/helpers/check-availability.d.ts +5 -0
  180. package/types/modules/helpers/debounce-id.d.ts +6 -0
  181. package/types/modules/helpers/index.d.ts +1 -0
  182. package/types/modules/helpers/{throttle-async.d.ts → throttle-id.d.ts} +2 -2
  183. package/types/modules/helpers/throttle.d.ts +1 -1
  184. package/types/resolvers/index.d.ts +1 -0
  185. package/types/resolvers/unplugin-directives-resolver.d.ts +1 -1
  186. package/types/resolvers/unplugin-modules-resolver.d.ts +2 -0
  187. package/types/resolvers/unplugin-vue-components-resolver.d.ts +1 -1
  188. package/components/chunks/MazBtn-D1TNsXIe.mjs +0 -150
  189. package/components/chunks/MazBtn-D2tIsob2.mjs +0 -150
  190. package/components/chunks/MazBtn-DeLJCP2D.mjs +0 -150
  191. package/components/chunks/MazBtn-Vas62hFD.mjs +0 -150
  192. package/components/chunks/MazBtn-YtY4PeyZ.mjs +0 -150
  193. package/components/chunks/MazCheckbox-BMzMZ-_l.mjs +0 -119
  194. package/components/chunks/MazCheckbox-B_Rx3ZCe.mjs +0 -119
  195. package/components/chunks/MazSpinner-CmJlBqgH.mjs +0 -37
  196. package/components/chunks/MazSpinner-DDmCKWOx.mjs +0 -37
  197. package/components/chunks/MazSpinner-DIa-qXiV.mjs +0 -37
  198. package/components/chunks/MazSpinner-QIX5R4Hk.mjs +0 -37
  199. package/components/chunks/MazSpinner-dFnsq52G.mjs +0 -37
  200. package/components/chunks/MazSpinner-iA4Rz7K5.mjs +0 -37
  201. package/modules/chunks/MazBtn-DKX3gZbQ.mjs +0 -150
  202. package/modules/chunks/index-V9QBN08z.cjs +0 -124
  203. package/modules/chunks/index-bVxwbrqO.cjs +0 -1
  204. package/types/modules/composables/use-form-validator/index.d.ts +0 -53
  205. package/types/modules/composables/use-form-validator/utils.d.ts +0 -45
  206. package/types/modules/composables/use-swipe.d.ts +0 -11
  207. package/types/modules/helpers/debounce-async.d.ts +0 -6
  208. /package/nuxt/runtime/composables/{use-aos.d.ts → useAos.d.ts} +0 -0
  209. /package/nuxt/runtime/composables/{use-aos.js → useAos.js} +0 -0
  210. /package/nuxt/runtime/composables/{use-theme-handler.d.ts → useThemeHandler.d.ts} +0 -0
  211. /package/nuxt/runtime/composables/{use-theme-handler.js → useThemeHandler.js} +0 -0
  212. /package/nuxt/runtime/composables/{use-toast.d.ts → useToast.d.ts} +0 -0
  213. /package/nuxt/runtime/composables/{use-toast.js → useToast.js} +0 -0
  214. /package/nuxt/runtime/composables/{use-wait.d.ts → useWait.d.ts} +0 -0
  215. /package/nuxt/runtime/composables/{use-wait.js → useWait.js} +0 -0
  216. /package/types/modules/composables/{use-aos.d.ts → useAos.d.ts} +0 -0
  217. /package/types/modules/composables/{use-idle-timeout.d.ts → useIdleTimeout.d.ts} +0 -0
  218. /package/types/modules/composables/{use-instance-uniq-id.d.ts → useInstanceUniqId.d.ts} +0 -0
  219. /package/types/modules/composables/{use-reading-time.d.ts → useReadingTime.d.ts} +0 -0
  220. /package/types/modules/composables/{use-string-matching.d.ts → useStringMatching.d.ts} +0 -0
  221. /package/types/modules/composables/{use-toast.d.ts → useToast.d.ts} +0 -0
  222. /package/types/modules/composables/{use-user-visibilty.d.ts → useUserVisibilty.d.ts} +0 -0
  223. /package/types/modules/composables/{use-wait.d.ts → useWait.d.ts} +0 -0
@@ -175,8 +175,10 @@ function Y({
175
175
  componentName: r,
176
176
  providedId: a
177
177
  }) {
178
- const t = N();
179
- return $(() => a ?? `${r}-${t == null ? void 0 : t.uid}`);
178
+ return $(() => {
179
+ var t;
180
+ return a ?? `${r}-${(t = N()) == null ? void 0 : t.uid}`;
181
+ });
180
182
  }
181
183
  const Z = {
182
184
  class: "m-accordion",
@@ -272,7 +274,7 @@ const Z = {
272
274
  ))
273
275
  ]));
274
276
  }
275
- }), ae = /* @__PURE__ */ k(te, [["__scopeId", "data-v-3413d328"]]);
277
+ }), ae = /* @__PURE__ */ k(te, [["__scopeId", "data-v-45a9432f"]]);
276
278
  export {
277
279
  ae as default
278
280
  };
@@ -34,7 +34,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
34
34
  onBackdropAnimationLeave: typeof onBackdropAnimationLeave;
35
35
  onBackdropClicked: typeof onBackdropClicked;
36
36
  close: typeof close;
37
- present: import("vue").Ref<boolean>;
37
+ present: import("vue").Ref<boolean, boolean>;
38
38
  toggleModal: typeof toggleModal;
39
39
  onKeyPress: typeof onKeyPress;
40
40
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazBottomSheet-DpI8wFgc.mjs";
1
+ import { M as f } from "./chunks/MazBottomSheet-CH2HERnA.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -32,6 +32,7 @@ export interface Props {
32
32
  /**
33
33
  * Size of the rounded
34
34
  * @values `'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full'`
35
+ * @default 'lg'
35
36
  */
36
37
  roundedSize?: 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
37
38
  /**
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazBtn-Dfz-5FeI.mjs";
1
+ import { M as f } from "./chunks/MazBtn-Db9bWwr8.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazCard-BiDXoNWK.mjs";
1
+ import { M as f } from "./chunks/MazCard-BOVaL2TX.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazCarousel-DJ_nQfy4.mjs";
1
+ import { M as f } from "./chunks/MazCarousel-abKXCTQA.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -97,8 +97,8 @@ declare const _default: import("vue").DefineComponent<{
97
97
  };
98
98
  }>>, {
99
99
  options: Record<string, any>;
100
+ updateMode: "reset" | "resize" | "default" | "none" | "hide" | "show" | "active";
100
101
  plugins: unknown[];
101
102
  datasetIdKey: string;
102
- updateMode: "reset" | "resize" | "default" | "none" | "hide" | "show" | "active";
103
103
  }, {}>;
104
104
  export default _default;
@@ -1,82 +1,62 @@
1
1
  import { type HTMLAttributes } from 'vue';
2
2
  import type { Color, Size } from './types';
3
- export type { Color, Size };
4
- export interface Props {
3
+ export interface Props<T = boolean | (string | number)[]> {
4
+ /** Style attribut of the component root element */
5
5
  style?: HTMLAttributes['style'];
6
+ /** Class attribut of the component root element */
6
7
  class?: HTMLAttributes['class'];
7
- modelValue?: boolean | (string | number)[];
8
+ /** The model value of the checkbox */
9
+ modelValue?: T;
10
+ /** The id of the checkbox */
8
11
  id?: string;
12
+ /** The color of the checkbox */
9
13
  color?: Color;
14
+ /** The value of the checkbox when selected */
10
15
  value?: string | number | boolean;
16
+ /** The name of the checkbox */
11
17
  name?: string;
18
+ /** The size of the checkbox */
12
19
  size?: Size;
20
+ /** Text label */
13
21
  label?: string;
22
+ /** If the checkbox is disabled */
14
23
  disabled?: boolean;
24
+ /** Whether there is an error with the input. */
25
+ error?: boolean;
26
+ /** Whether the input is successful. */
27
+ success?: boolean;
28
+ /** Whether there is a warning with the input. */
29
+ warning?: boolean;
30
+ /** The hint text to display below the input. */
31
+ hint?: string;
15
32
  }
16
- declare function __VLS_template(): {
17
- default?(_: {}): any;
33
+ export type { Color, Size } from './types';
34
+ declare const _default: <T extends boolean | (string | number)[]>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
35
+ props: __VLS_Prettify<Pick<Partial<{}> & Omit<{
36
+ onFocus?: ((value: FocusEvent) => any) | undefined;
37
+ onBlur?: ((value: FocusEvent) => any) | undefined;
38
+ onChange?: ((value: T) => any) | undefined;
39
+ "onUpdate:model-value"?: ((value: T) => any) | undefined;
40
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{}>> & {
41
+ onFocus?: ((value: FocusEvent) => any) | undefined;
42
+ onBlur?: ((value: FocusEvent) => any) | undefined;
43
+ onChange?: ((value: T) => any) | undefined;
44
+ "onUpdate:model-value"?: ((value: T) => any) | undefined;
45
+ }, never>, "onFocus" | "onBlur" | "onChange" | "onUpdate:model-value"> & Props<T>> & import("vue").PublicProps;
46
+ expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
47
+ attrs: any;
48
+ slots: ReturnType<() => {
49
+ default?(_: {
50
+ value: string | number | boolean | undefined;
51
+ }): any;
52
+ }>;
53
+ emit: (((evt: "blur", value: FocusEvent) => void) & ((evt: "change", value: T) => void) & ((evt: "focus", value: FocusEvent) => void) & ((evt: "update:model-value", value: T) => void)) & {};
54
+ }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
55
+ [key: string]: any;
56
+ }> & {
57
+ __ctx?: Awaited<typeof __VLS_setup>;
18
58
  };
19
- declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
20
- style: undefined;
21
- class: undefined;
22
- modelValue: undefined;
23
- label: undefined;
24
- id: undefined;
25
- color: string;
26
- value: undefined;
27
- name: string;
28
- size: string;
29
- disabled: boolean;
30
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
31
- change: (...args: any[]) => void;
32
- "update:model-value": (...args: any[]) => void;
33
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
34
- style: undefined;
35
- class: undefined;
36
- modelValue: undefined;
37
- label: undefined;
38
- id: undefined;
39
- color: string;
40
- value: undefined;
41
- name: string;
42
- size: string;
43
- disabled: boolean;
44
- }>>> & {
45
- onChange?: ((...args: any[]) => any) | undefined;
46
- "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
47
- }, {
48
- size: Size;
49
- label: string;
50
- style: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
51
- name: string;
52
- id: string;
53
- value: string | number | boolean;
54
- disabled: boolean;
55
- color: Color;
56
- class: HTMLAttributes["class"];
57
- modelValue: boolean | (string | number)[];
58
- }, {}>;
59
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
60
59
  export default _default;
61
- type __VLS_WithDefaults<P, D> = {
62
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
63
- default: D[K];
64
- }> : P[K];
65
- };
66
60
  type __VLS_Prettify<T> = {
67
61
  [K in keyof T]: T[K];
68
62
  } & {};
69
- type __VLS_WithTemplateSlots<T, S> = T & {
70
- new (): {
71
- $slots: S;
72
- };
73
- };
74
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
75
- type __VLS_TypePropsToOption<T> = {
76
- [K in keyof T]-?: {} extends Pick<T, K> ? {
77
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
78
- } : {
79
- type: import('vue').PropType<T[K]>;
80
- required: true;
81
- };
82
- };
@@ -1,18 +1,20 @@
1
- import { getCurrentInstance as _, computed as l, openBlock as p, createElementBlock as b, createElementVNode as u, defineComponent as w, useCssVars as C, unref as d, normalizeClass as h, normalizeStyle as I, mergeProps as S, createVNode as B, renderSlot as A, createTextVNode as N, toDisplayString as $ } from "vue";
2
- import './assets/MazCheckbox.css';function M({
3
- componentName: a,
4
- providedId: r
1
+ import { computed as n, getCurrentInstance as I, openBlock as f, createElementBlock as h, createElementVNode as c, defineComponent as S, useCssVars as N, ref as E, unref as i, normalizeClass as m, normalizeStyle as $, mergeProps as A, createVNode as M, renderSlot as D, createTextVNode as R, toDisplayString as k, createCommentVNode as j } from "vue";
2
+ import './assets/MazCheckbox.css';function q({
3
+ componentName: r,
4
+ providedId: t
5
5
  }) {
6
- const e = _();
7
- return l(() => r ?? `${a}-${e == null ? void 0 : e.uid}`);
6
+ return n(() => {
7
+ var o;
8
+ return t ?? `${r}-${(o = I()) == null ? void 0 : o.uid}`;
9
+ });
8
10
  }
9
- const D = {
11
+ const F = {
10
12
  xmlns: "http://www.w3.org/2000/svg",
11
13
  width: "1em",
12
14
  height: "1em",
13
15
  fill: "none",
14
16
  viewBox: "0 0 24 24"
15
- }, E = /* @__PURE__ */ u(
17
+ }, H = /* @__PURE__ */ c(
16
18
  "path",
17
19
  {
18
20
  stroke: "currentColor",
@@ -24,47 +26,46 @@ const D = {
24
26
  null,
25
27
  -1
26
28
  /* HOISTED */
27
- ), j = [
28
- E
29
+ ), K = [
30
+ H
29
31
  ];
30
- function q(a, r) {
31
- return p(), b("svg", D, [...j]);
32
+ function O(r, t) {
33
+ return f(), h("svg", F, [...K]);
32
34
  }
33
- const H = { render: q }, K = ["for", "aria-checked"], O = ["id", "checked", "disabled", "name"], P = /* @__PURE__ */ w({
35
+ const P = { render: O }, T = ["for", "aria-checked"], U = ["id", "checked", "disabled", "name"], G = { class: "m-checkbox__text" }, J = /* @__PURE__ */ S({
34
36
  inheritAttrs: !1,
35
37
  __name: "MazCheckbox",
36
38
  props: {
37
39
  style: { default: void 0 },
38
40
  class: { default: void 0 },
39
- modelValue: { type: [Boolean, Array], default: void 0 },
41
+ modelValue: { default: void 0 },
40
42
  id: { default: void 0 },
41
43
  color: { default: "primary" },
42
44
  value: { type: [String, Number, Boolean], default: void 0 },
43
45
  name: { default: "m-checkbox" },
44
46
  size: { default: "md" },
45
47
  label: { default: void 0 },
46
- disabled: { type: Boolean, default: !1 }
48
+ disabled: { type: Boolean, default: !1 },
49
+ error: { type: Boolean },
50
+ success: { type: Boolean },
51
+ warning: { type: Boolean },
52
+ hint: {}
47
53
  },
48
- emits: [
49
- /* emitted when value change */
50
- "update:model-value",
51
- /* emited when value change */
52
- "change"
53
- ],
54
- setup(a, { emit: r }) {
55
- C((o) => ({
56
- "30ad0e00": v.value,
57
- "46bd1cbc": k.value,
58
- "7c7c6907": y.value,
59
- "47a52c6c": V.value
54
+ emits: ["update:model-value", "change", "blur", "focus"],
55
+ setup(r, { emit: t }) {
56
+ N((e) => ({
57
+ "637b9682": z.value,
58
+ "7a7f3c21": y.value,
59
+ "4af0fd68": w.value,
60
+ "27d552aa": V.value
60
61
  }));
61
- const e = a, n = r, c = M({
62
+ const o = r, l = t, s = q({
62
63
  componentName: "MazCheckbox",
63
- providedId: e.id
64
- }), i = l(
65
- () => typeof e.value != "boolean" && Array.isArray(e.modelValue) ? e.modelValue.includes(e.value) : typeof e.modelValue == "boolean" ? e.modelValue : !1
66
- ), k = l(() => {
67
- switch (e.size) {
64
+ providedId: o.id
65
+ }), p = n(
66
+ () => typeof o.value != "boolean" && Array.isArray(o.modelValue) ? o.modelValue.includes(o.value) : typeof o.modelValue == "boolean" ? o.modelValue : !1
67
+ ), y = n(() => {
68
+ switch (o.size) {
68
69
  case "xl":
69
70
  return "2.25rem";
70
71
  case "lg":
@@ -78,8 +79,8 @@ const H = { render: q }, K = ["for", "aria-checked"], O = ["id", "checked", "dis
78
79
  default:
79
80
  return "1.625rem";
80
81
  }
81
- }), x = l(() => {
82
- switch (e.size) {
82
+ }), g = n(() => {
83
+ switch (o.size) {
83
84
  case "xl":
84
85
  return "maz-text-2xl";
85
86
  case "lg":
@@ -93,61 +94,88 @@ const H = { render: q }, K = ["for", "aria-checked"], O = ["id", "checked", "dis
93
94
  default:
94
95
  return "maz-text-lg";
95
96
  }
96
- }), v = l(() => `var(--maz-color-${e.color}-contrast)`), y = l(() => `var(--maz-color-${e.color})`), V = l(
97
- () => ["black", "transparent"].includes(e.color) ? "var(--maz-color-muted)" : `var(--maz-color-${e.color}-alpha)`
98
- );
99
- function z(o) {
100
- ["Space"].includes(o.code) && (o.preventDefault(), m(e.value ?? !e.modelValue));
97
+ }), z = n(() => `var(--maz-color-${o.color}-contrast)`), w = n(() => `var(--maz-color-${o.color})`), V = n(() => o.error ? "var(--maz-color-danger)" : o.warning ? "var(--maz-color-warning)" : o.success ? "var(--maz-color-success)" : ["black", "transparent"].includes(o.color) ? "var(--maz-color-muted)" : `var(--maz-color-${o.color}-alpha)`);
98
+ function x(e) {
99
+ ["Space"].includes(e.code) && (e.preventDefault(), b(o.value ?? !o.modelValue));
101
100
  }
102
- function g(o) {
103
- return typeof o == "boolean" && (typeof e.modelValue == "boolean" || e.modelValue === void 0 || e.modelValue === null) ? !e.modelValue : Array.isArray(e.modelValue) && typeof o != "boolean" ? e.modelValue.includes(o) ? e.modelValue.filter((t) => t !== o) : [...e.modelValue, o] : [o];
101
+ function C(e) {
102
+ return typeof e == "boolean" && (typeof o.modelValue == "boolean" || o.modelValue === void 0 || o.modelValue === null) ? !o.modelValue : Array.isArray(o.modelValue) && typeof e != "boolean" ? o.modelValue.includes(e) ? o.modelValue.filter((a) => a !== e) : [...o.modelValue, e] : [e];
104
103
  }
105
- function m(o) {
106
- const t = g(o);
107
- n("update:model-value", t), n("change", t);
104
+ function b(e) {
105
+ const a = C(e);
106
+ l("update:model-value", a), l("change", a);
108
107
  }
109
- return (o, t) => (p(), b("label", {
110
- for: d(c),
111
- class: h(["m-checkbox", [{ "--disabled": o.disabled }, e.class]]),
108
+ const u = E();
109
+ function _(e) {
110
+ var a;
111
+ (a = u.value) == null || a.dispatchEvent(new Event("blur")), l("blur", e);
112
+ }
113
+ function B(e) {
114
+ var a;
115
+ (a = u.value) == null || a.dispatchEvent(new Event("focus")), l("focus", e);
116
+ }
117
+ return (e, a) => (f(), h("label", {
118
+ for: i(s),
119
+ class: m(["m-checkbox", [{ "--disabled": e.disabled, "--error": e.error, "--warning": e.warning, "--success": e.success }, o.class]]),
112
120
  tabindex: "0",
113
- style: I(o.style),
121
+ style: $(e.style),
114
122
  role: "checkbox",
115
- "aria-checked": i.value,
116
- onKeydown: z
123
+ "aria-checked": p.value,
124
+ onKeydown: x,
125
+ onBlur: _,
126
+ onFocus: B
117
127
  }, [
118
- u("input", S({
119
- id: d(c),
120
- checked: i.value
121
- }, o.$attrs, {
128
+ c("input", A({
129
+ id: i(s),
130
+ ref_key: "inputRef",
131
+ ref: u,
132
+ checked: p.value
133
+ }, e.$attrs, {
122
134
  tabindex: "-1",
123
- disabled: o.disabled,
124
- name: o.name,
135
+ disabled: e.disabled,
136
+ name: e.name,
125
137
  type: "checkbox",
126
- onChange: t[0] || (t[0] = (s) => {
127
- var f;
128
- return m(o.value ?? ((f = s == null ? void 0 : s.target) == null ? void 0 : f.checked));
138
+ onChange: a[0] || (a[0] = (d) => {
139
+ var v;
140
+ return b(e.value ?? ((v = d == null ? void 0 : d.target) == null ? void 0 : v.checked));
129
141
  })
130
- }), null, 16, O),
131
- u("span", null, [
132
- B(d(H), {
133
- class: h(["check-icon", x.value])
142
+ }), null, 16, U),
143
+ c("span", null, [
144
+ M(i(P), {
145
+ class: m(["check-icon", g.value])
134
146
  }, null, 8, ["class"])
135
147
  ]),
136
- A(o.$slots, "default", {}, () => [
137
- N(
138
- $(o.label),
139
- 1
140
- /* TEXT */
141
- )
142
- ], !0)
143
- ], 46, K));
148
+ c("div", G, [
149
+ D(e.$slots, "default", { value: e.value }, () => [
150
+ R(
151
+ k(e.label),
152
+ 1
153
+ /* TEXT */
154
+ )
155
+ ], !0),
156
+ e.hint ? (f(), h(
157
+ "span",
158
+ {
159
+ key: 0,
160
+ class: m(["m-checkbox__hint", {
161
+ "--error": e.error,
162
+ "--success": e.success,
163
+ "--warning": e.warning
164
+ }])
165
+ },
166
+ k(e.hint),
167
+ 3
168
+ /* TEXT, CLASS */
169
+ )) : j("v-if", !0)
170
+ ])
171
+ ], 46, T));
144
172
  }
145
- }), T = (a, r) => {
146
- const e = a.__vccOpts || a;
147
- for (const [n, c] of r)
148
- e[n] = c;
149
- return e;
150
- }, F = /* @__PURE__ */ T(P, [["__scopeId", "data-v-85c875a9"]]);
173
+ }), L = (r, t) => {
174
+ const o = r.__vccOpts || r;
175
+ for (const [l, s] of t)
176
+ o[l] = s;
177
+ return o;
178
+ }, W = /* @__PURE__ */ L(J, [["__scopeId", "data-v-a2b23999"]]);
151
179
  export {
152
- F as default
180
+ W as default
153
181
  };
@@ -1,10 +1,12 @@
1
- import { getCurrentInstance as S, computed as r, defineComponent as _, useCssVars as $, useSlots as y, ref as b, watch as B, openBlock as p, createElementBlock as v, normalizeClass as P, createElementVNode as n, renderSlot as l, createTextVNode as u, toDisplayString as i, createCommentVNode as m, normalizeStyle as A, unref as g, createBlock as M, createSlots as I, withCtx as k } from "vue";
1
+ import { computed as r, getCurrentInstance as S, defineComponent as _, useCssVars as $, useSlots as y, ref as b, watch as B, openBlock as p, createElementBlock as v, normalizeClass as P, createElementVNode as n, renderSlot as l, createTextVNode as i, toDisplayString as u, createCommentVNode as m, normalizeStyle as A, unref as g, createBlock as M, createSlots as I, withCtx as k } from "vue";
2
2
  import './assets/MazCircularProgressBar.css';function N({
3
3
  componentName: a,
4
4
  providedId: e
5
5
  }) {
6
- const s = S();
7
- return r(() => e ?? `${a}-${s == null ? void 0 : s.uid}`);
6
+ return r(() => {
7
+ var s;
8
+ return e ?? `${a}-${(s = S()) == null ? void 0 : s.uid}`;
9
+ });
8
10
  }
9
11
  const V = { class: "maz-sr-only" }, D = {
10
12
  key: 0,
@@ -44,20 +46,20 @@ const V = { class: "maz-sr-only" }, D = {
44
46
  [
45
47
  n("span", V, [
46
48
  l(t.$slots, "prefix", {}, () => [
47
- u(
48
- i(t.prefix),
49
+ i(
50
+ u(t.prefix),
49
51
  1
50
52
  /* TEXT */
51
53
  )
52
54
  ], !0),
53
- u(
54
- " " + i(t.count) + " ",
55
+ i(
56
+ " " + u(t.count) + " ",
55
57
  1
56
58
  /* TEXT */
57
59
  ),
58
60
  l(t.$slots, "suffix", {}, () => [
59
- u(
60
- i(t.suffix),
61
+ i(
62
+ u(t.suffix),
61
63
  1
62
64
  /* TEXT */
63
65
  )
@@ -66,16 +68,16 @@ const V = { class: "maz-sr-only" }, D = {
66
68
  f.value || d.value ? (p(), v("span", D, [
67
69
  m(' @slot Prefix slot - Add a prefix next to the number (e.g: "$") '),
68
70
  l(t.$slots, "prefix", {}, () => [
69
- u(
70
- i(t.prefix),
71
+ i(
72
+ u(t.prefix),
71
73
  1
72
74
  /* TEXT */
73
75
  )
74
76
  ], !0),
75
77
  m(' @slot Suffix slot - Add a suffix next to the number (e.g: "%") '),
76
78
  l(t.$slots, "suffix", {}, () => [
77
- u(
78
- i(t.suffix),
79
+ i(
80
+ u(t.suffix),
79
81
  1
80
82
  /* TEXT */
81
83
  )
@@ -112,8 +114,8 @@ const V = { class: "maz-sr-only" }, D = {
112
114
  },
113
115
  setup(a) {
114
116
  $((o) => ({
115
- "0bf2c547": C.value,
116
- "7e590576": w.value
117
+ "266a8742": C.value,
118
+ "1f7e595e": w.value
117
119
  }));
118
120
  const e = a, s = y(), f = r(() => !!e.prefix || !!s.prefix), d = r(() => !!e.suffix || !!s.suffix), c = N({
119
121
  componentName: "MazCircularProgressBar"
@@ -153,8 +155,8 @@ const V = { class: "maz-sr-only" }, D = {
153
155
  fn: k(() => [
154
156
  m(' @slot Prefix slot - Add a prefix next to the number (e.g: "$") '),
155
157
  l(o.$slots, "prefix", {}, () => [
156
- u(
157
- i(o.prefix),
158
+ i(
159
+ u(o.prefix),
158
160
  1
159
161
  /* TEXT */
160
162
  )
@@ -167,8 +169,8 @@ const V = { class: "maz-sr-only" }, D = {
167
169
  fn: k(() => [
168
170
  m(' @slot Suffix slot - Add a suffix next to the number (e.g: "%") '),
169
171
  l(o.$slots, "suffix", {}, () => [
170
- u(
171
- i(o.suffix),
172
+ i(
173
+ u(o.suffix),
172
174
  1
173
175
  /* TEXT */
174
176
  )
@@ -215,7 +217,7 @@ const V = { class: "maz-sr-only" }, D = {
215
217
  /* STYLE */
216
218
  ));
217
219
  }
218
- }), K = /* @__PURE__ */ z(F, [["__scopeId", "data-v-3ac6dd71"]]);
220
+ }), K = /* @__PURE__ */ z(F, [["__scopeId", "data-v-5505af81"]]);
219
221
  export {
220
222
  K as default
221
223
  };
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazDialog-DXaeCp-b.mjs";
1
+ import { M as f } from "./chunks/MazDialog-DvwYzTxG.mjs";
2
2
  export {
3
3
  f as default
4
4
  };