maz-ui 3.48.4-beta.0 → 3.48.4-beta.2

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 (140) hide show
  1. package/components/MazAnimatedCounter.d.ts +6 -0
  2. package/components/MazAnimatedCounter.mjs +12 -11
  3. package/components/MazAnimatedElement.d.ts +37 -0
  4. package/components/MazAnimatedElement.mjs +44 -0
  5. package/components/MazAnimatedText.d.ts +50 -0
  6. package/components/MazAnimatedText.mjs +165 -0
  7. package/components/MazBottomSheet.mjs +1 -1
  8. package/components/MazBtn.mjs +1 -1
  9. package/components/MazCard.mjs +1 -1
  10. package/components/MazCarousel.mjs +1 -1
  11. package/components/MazChecklist.d.ts +9 -4
  12. package/components/MazChecklist.mjs +1 -1
  13. package/components/MazCircularProgressBar.mjs +19 -18
  14. package/components/MazDialog.mjs +1 -1
  15. package/components/MazDialogPromise.mjs +1 -1
  16. package/components/MazDrawer.mjs +1 -1
  17. package/components/MazDropdown.mjs +1 -1
  18. package/components/MazInput.mjs +1 -1
  19. package/components/MazInputNumber.mjs +1 -1
  20. package/components/MazInputPrice.mjs +1 -1
  21. package/components/MazInputTags.mjs +1 -1
  22. package/components/MazPagination.mjs +1 -1
  23. package/components/MazPhoneNumberInput.mjs +1 -1
  24. package/components/MazPicker.mjs +1 -1
  25. package/components/MazSelect.d.ts +7 -2
  26. package/components/MazSelect.mjs +1 -1
  27. package/components/MazTable.mjs +1 -1
  28. package/components/assets/MazAnimatedCounter.css +1 -1
  29. package/components/assets/MazAnimatedElement.css +1 -0
  30. package/components/assets/MazAnimatedText.css +1 -0
  31. package/components/assets/MazBtn.css +1 -1
  32. package/components/assets/MazChecklist.css +1 -1
  33. package/components/assets/MazCircularProgressBar.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/MazPhoneNumberInput.css +1 -1
  38. package/components/assets/MazPicker.css +1 -1
  39. package/components/assets/MazSelect.css +1 -1
  40. package/components/chunks/{MazBottomSheet-CMqzf-dT.mjs → MazBottomSheet-CNFupuJS.mjs} +1 -1
  41. package/components/chunks/{MazBtn-S7EnZYtZ.mjs → MazBtn-BJNzz7YT.mjs} +3 -3
  42. package/components/chunks/{MazBtn-DCyFSkZo.mjs → MazBtn-BO1U1gVG.mjs} +3 -3
  43. package/components/chunks/MazBtn-BugQGoO-.mjs +103 -0
  44. package/components/chunks/{MazBtn-DsGaq_eB.mjs → MazBtn-CKDJOBcC.mjs} +2 -2
  45. package/components/chunks/{MazBtn-B16x1gSu.mjs → MazBtn-CP-m-KDm.mjs} +3 -3
  46. package/components/chunks/{MazBtn-CvB-Sf2r.mjs → MazBtn-CUoFOAML.mjs} +3 -3
  47. package/components/chunks/{MazBtn-Cf-LPT5p.mjs → MazBtn-Cyn7ObTB.mjs} +3 -3
  48. package/components/chunks/{MazBtn-BcrrOaO_.mjs → MazBtn-D53RC3KP.mjs} +3 -3
  49. package/components/chunks/{MazBtn-DETtZdlj.mjs → MazBtn-DYURBZtp.mjs} +2 -2
  50. package/components/chunks/{MazBtn-B7cg2yO2.mjs → MazBtn-DiYly5sp.mjs} +3 -3
  51. package/components/chunks/{MazBtn-CPwCJ1l-.mjs → MazBtn-Dlx6nLm2.mjs} +3 -3
  52. package/components/chunks/{MazBtn-BvIoLKMM.mjs → MazBtn-MJYP-poo.mjs} +3 -3
  53. package/components/chunks/{MazBtn-DnJzOPh9.mjs → MazBtn-MvFibIXn.mjs} +3 -3
  54. package/components/chunks/{MazBtn-C5sb0470.mjs → MazBtn-tS9ACNLi.mjs} +3 -3
  55. package/components/chunks/{MazCard-l54W3CUU.mjs → MazCard-D-q6vhWd.mjs} +1 -1
  56. package/components/chunks/{MazCarousel-C16E1i1T.mjs → MazCarousel-Z4XypOn_.mjs} +1 -1
  57. package/components/chunks/{MazCheckbox-DKM-G0Pw.mjs → MazCheckbox-BImOZ1aM.mjs} +1 -1
  58. package/components/chunks/{MazCheckbox-CEsAHbdi.mjs → MazCheckbox-DJi0g4uK.mjs} +1 -1
  59. package/components/chunks/{MazCheckbox-D-7-TdgO.mjs → MazCheckbox-DafMJoEw.mjs} +1 -1
  60. package/components/chunks/{MazChecklist-y4axtsRX.mjs → MazChecklist-DaEf6wix.mjs} +50 -49
  61. package/components/chunks/{MazDialog-DQXX2APp.mjs → MazDialog-PVsds2Mw.mjs} +1 -1
  62. package/components/chunks/{MazDialogPromise-CD1d5ig-.mjs → MazDialogPromise-BdtiOZGU.mjs} +2 -2
  63. package/components/chunks/{MazDrawer-BqNLfW4e.mjs → MazDrawer-CMHe_JEh.mjs} +1 -1
  64. package/components/chunks/{MazDropdown-DNXKdC_3.mjs → MazDropdown-DpGSAqe0.mjs} +1 -1
  65. package/components/chunks/{MazGallery-CzlKPQFX.mjs → MazGallery-BtuCo-H0.mjs} +2 -2
  66. package/components/chunks/{MazIcon-BIoDsehI.mjs → MazIcon-Bnebkvf6.mjs} +1 -1
  67. package/components/chunks/MazIcon-C7ZMosGw.mjs +4 -0
  68. package/components/chunks/{MazInput-yBii2AFS.mjs → MazInput-C3QweR84.mjs} +1 -1
  69. package/components/chunks/{MazInput-BWtGbtW0.mjs → MazInput-DjvBbUZl.mjs} +2 -2
  70. package/components/chunks/{MazInput-DB4HtpCQ.mjs → MazInput-DvaaM9Iq.mjs} +2 -2
  71. package/components/chunks/{MazInputNumber-DqnLi9-C.mjs → MazInputNumber-D904Pg1R.mjs} +2 -2
  72. package/components/chunks/{MazInputPrice-Ca8mL53M.mjs → MazInputPrice-CQiJFPWB.mjs} +1 -1
  73. package/components/chunks/{MazInputTags-Bto9dVQq.mjs → MazInputTags-BPSG1X1a.mjs} +2 -2
  74. package/components/chunks/{MazLink-DlUG7E5K.mjs → MazLink-DnnBkVEE.mjs} +1 -1
  75. package/components/chunks/{MazLoadingBar-DBt1Ltm5.mjs → MazLoadingBar-Dm14PSs6.mjs} +1 -1
  76. package/components/chunks/{MazPagination-sxkvTajI.mjs → MazPagination-CuCKS1Qr.mjs} +2 -2
  77. package/components/chunks/{MazPhoneNumberInput-ovuoYxd9.mjs → MazPhoneNumberInput-CKpP3yWz.mjs} +379 -378
  78. package/components/chunks/{MazPicker-B_IP-4P3.mjs → MazPicker-g10_1sY_.mjs} +3 -3
  79. package/components/chunks/{MazPickerMonthSwitcher-BmHHmSvo.mjs → MazPickerMonthSwitcher-BDxk_Msi.mjs} +1 -1
  80. package/components/chunks/{MazPickerShortcuts-BSgRCAAD.mjs → MazPickerShortcuts-DtHvsdEW.mjs} +1 -1
  81. package/components/chunks/{MazPickerYearSwitcher-Cy-WbilD.mjs → MazPickerYearSwitcher-DXkaTXFw.mjs} +1 -1
  82. package/components/chunks/{MazSelect-CBaOs6va.mjs → MazSelect-VAPsGKXy.mjs} +193 -192
  83. package/components/chunks/{MazSelect-BwahUlbE.mjs → MazSelect-cthYMQqx.mjs} +277 -276
  84. package/components/chunks/MazSpinner-94rvbsAk.mjs +34 -0
  85. package/components/chunks/{MazSpinner-D6PdYOcD.mjs → MazSpinner-B5j5EaKc.mjs} +1 -1
  86. package/components/chunks/MazSpinner-BLh6PkZJ.mjs +34 -0
  87. package/components/chunks/MazSpinner-Ba5WXlbx.mjs +34 -0
  88. package/components/chunks/MazSpinner-C2mutMJX.mjs +34 -0
  89. package/components/chunks/{MazSpinner-Bb1BgWPD.mjs → MazSpinner-C7TbmneX.mjs} +1 -1
  90. package/components/chunks/MazSpinner-CcshuKK9.mjs +34 -0
  91. package/components/chunks/{MazSpinner-CizL97Q2.mjs → MazSpinner-D2J_jdkK.mjs} +1 -1
  92. package/components/chunks/{MazSpinner-Bs089W1b.mjs → MazSpinner-DIzWfhcT.mjs} +1 -1
  93. package/components/chunks/{MazSpinner-Bpkl7q5u.mjs → MazSpinner-DLR4lVAu.mjs} +1 -1
  94. package/components/chunks/MazSpinner-DP019rLG.mjs +34 -0
  95. package/components/chunks/{MazSpinner-Bc-lfBcQ.mjs → MazSpinner-DXCofnqs.mjs} +1 -1
  96. package/components/chunks/MazSpinner-DmeOhZXm.mjs +34 -0
  97. package/components/chunks/{MazSpinner-Cmy2WyWY.mjs → MazSpinner-DtFpBxRT.mjs} +1 -1
  98. package/components/chunks/{MazSpinner-CCThMV5o.mjs → MazSpinner-SnOek826.mjs} +1 -1
  99. package/components/chunks/MazSpinner-ZDRUpUqo.mjs +34 -0
  100. package/components/chunks/{MazSpinner-BVQYjLWp.mjs → MazSpinner-qRqfN8k4.mjs} +1 -1
  101. package/components/chunks/{MazTable-Soe-MrTW.mjs → MazTable-BuFlCw1p.mjs} +1 -1
  102. package/components/chunks/{MazTableCell-DtoO9MOe.mjs → MazTableCell-C6oDOvNH.mjs} +1 -1
  103. package/components/chunks/{MazTableRow-ChFMulaU.mjs → MazTableRow-BBS8sW7w.mjs} +1 -1
  104. package/components/chunks/{MazTableTitle-D8El-v5p.mjs → MazTableTitle-D7J-0k_j.mjs} +1 -1
  105. package/components/chunks/{MazTransitionExpand-CRArAQZu.mjs → MazTransitionExpand-BlcqxvGq.mjs} +1 -1
  106. package/components/index.d.ts +2 -0
  107. package/components/index.mjs +2 -0
  108. package/css/main.css +1 -1
  109. package/modules/assets/MazBtn.css +1 -1
  110. package/modules/chunks/{MazBtn-DoDAW5pU.mjs → MazBtn-BjiQC2PC.mjs} +3 -3
  111. package/modules/chunks/{MazBtn-BXg6oosO.cjs → MazBtn-BnQrui8R.cjs} +1 -1
  112. package/modules/chunks/{MazIcon-DPvxTNIQ.cjs → MazIcon-D4oz63T8.cjs} +1 -1
  113. package/modules/chunks/{MazIcon-0i0FnfM4.mjs → MazIcon-DwFVj44O.mjs} +1 -1
  114. package/modules/chunks/{MazSpinner-Bkl2lVff.mjs → MazSpinner-7nqeVBxW.mjs} +1 -1
  115. package/modules/chunks/{MazSpinner-n0cEv2AX.cjs → MazSpinner-B18bQ49b.cjs} +1 -1
  116. package/modules/chunks/{index-Dx2ZhWwj.mjs → index-D8S1X6Fy.mjs} +4 -4
  117. package/modules/chunks/{index-pV6oqfJc.cjs → index-IBifh-oY.cjs} +2 -2
  118. package/modules/index.cjs +1 -1
  119. package/modules/index.mjs +1 -1
  120. package/nuxt/index.d.mts +1 -1
  121. package/nuxt/index.d.ts +1 -1
  122. package/nuxt/index.json +1 -1
  123. package/nuxt/index.mjs +1 -1
  124. package/package.json +1 -1
  125. package/types/components/MazAnimatedCounter.vue.d.ts +6 -0
  126. package/types/components/MazAnimatedElement.vue.d.ts +37 -0
  127. package/types/components/MazAnimatedText.vue.d.ts +50 -0
  128. package/types/components/MazChecklist.vue.d.ts +9 -4
  129. package/types/components/MazSelect.vue.d.ts +7 -2
  130. package/types/components/index.d.ts +2 -0
  131. package/components/chunks/MazBtn-CuIeT4TK.mjs +0 -103
  132. package/components/chunks/MazIcon-Gv6n6i4M.mjs +0 -4
  133. package/components/chunks/MazSpinner-BqgAfyh1.mjs +0 -34
  134. package/components/chunks/MazSpinner-C1Rr3w9l.mjs +0 -34
  135. package/components/chunks/MazSpinner-CBHbVSef.mjs +0 -34
  136. package/components/chunks/MazSpinner-Da-bE-KC.mjs +0 -34
  137. package/components/chunks/MazSpinner-DoFpeVcl.mjs +0 -34
  138. package/components/chunks/MazSpinner-Dx-3_EFZ.mjs +0 -34
  139. package/components/chunks/MazSpinner-PXSS3XT3.mjs +0 -34
  140. package/components/chunks/MazSpinner-vDZ0VOEK.mjs +0 -34
package/nuxt/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { defineNuxtModule, createResolver, addComponent, addPlugin, addImports } from '@nuxt/kit';
2
1
  import { resolve, dirname } from 'node:path';
3
2
  import { fileURLToPath } from 'node:url';
3
+ import { defineNuxtModule, createResolver, addComponent, addPlugin, addImports } from '@nuxt/kit';
4
4
  import { readdir } from 'node:fs/promises';
5
5
 
6
6
  function isPlainObject(value) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "maz-ui",
3
3
  "type": "module",
4
- "version": "3.48.4-beta.0",
4
+ "version": "3.48.4-beta.2",
5
5
  "description": "A standalone components library for Vue.Js 3 & Nuxt.Js 3",
6
6
  "author": "Louis Mazel <me@loicmazuel.com>",
7
7
  "license": "MIT",
@@ -16,6 +16,11 @@ type __VLS_Props = {
16
16
  * Suffix to display next to the number
17
17
  */
18
18
  suffix?: string;
19
+ /**
20
+ * Delay before the animation starts in milliseconds
21
+ * @default 100
22
+ */
23
+ delay?: number;
19
24
  };
20
25
  declare function __VLS_template(): {
21
26
  attrs: Partial<{}>;
@@ -30,6 +35,7 @@ declare function __VLS_template(): {
30
35
  };
31
36
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
32
37
  declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
38
+ delay: number;
33
39
  duration: number;
34
40
  prefix: string;
35
41
  suffix: string;
@@ -0,0 +1,37 @@
1
+ interface MazAnimatedElementProps {
2
+ /**
3
+ * The direction of the animation
4
+ * @default "up"
5
+ * @values "up", "down", "left", "right"
6
+ */
7
+ direction?: 'up' | 'down' | 'left' | 'right';
8
+ /**
9
+ * The delay of the animation
10
+ * @default 0
11
+ */
12
+ delay?: number;
13
+ /**
14
+ * The duration of the animation
15
+ * @default 2000
16
+ */
17
+ duration?: number;
18
+ }
19
+ declare function __VLS_template(): {
20
+ attrs: Partial<{}>;
21
+ slots: {
22
+ default?(_: {}): any;
23
+ };
24
+ refs: {
25
+ element: HTMLDivElement;
26
+ };
27
+ rootEl: HTMLDivElement;
28
+ };
29
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
30
+ declare const __VLS_component: import("vue").DefineComponent<MazAnimatedElementProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MazAnimatedElementProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
31
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
32
+ export default _default;
33
+ type __VLS_WithTemplateSlots<T, S> = T & {
34
+ new (): {
35
+ $slots: S;
36
+ };
37
+ };
@@ -0,0 +1,50 @@
1
+ interface MazAnimatedTextProps {
2
+ /**
3
+ * The text to animate
4
+ * @example "Hello"
5
+ */
6
+ text: string;
7
+ /**
8
+ * The last word(s) to be highlighted
9
+ * @example "world"
10
+ */
11
+ lastWord?: string;
12
+ /**
13
+ * The delay of the animation
14
+ * @default 0
15
+ */
16
+ delay?: number;
17
+ /**
18
+ * The direction of the animation
19
+ * @default "up"
20
+ * @values "up", "down", "left", "right"
21
+ */
22
+ direction?: 'up' | 'down' | 'left' | 'right';
23
+ /**
24
+ * The tag to use for the text
25
+ * @default "span"
26
+ */
27
+ tag?: string;
28
+ /**
29
+ * The delay between each word
30
+ * @default 75
31
+ */
32
+ wordDelay?: number;
33
+ /**
34
+ * The column gap between each word
35
+ * @default 0.5
36
+ */
37
+ columnGap?: number;
38
+ /**
39
+ * The row gap between each word
40
+ * @default 0
41
+ */
42
+ rowGap?: number;
43
+ /**
44
+ * The duration of the animation
45
+ * @default 2000
46
+ */
47
+ duration?: number;
48
+ }
49
+ declare const _default: import("vue").DefineComponent<MazAnimatedTextProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MazAnimatedTextProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
50
+ export default _default;
@@ -4,7 +4,7 @@ export type ItemOption = {
4
4
  label: string;
5
5
  value: string;
6
6
  } & Record<string, any>;
7
- export interface MazCheckListProps<T, O> {
7
+ export interface MazChecklistProps<T, O> {
8
8
  /**
9
9
  * The model value of the checklist (selected items)
10
10
  */
@@ -28,15 +28,20 @@ export interface MazCheckListProps<T, O> {
28
28
  elevation?: boolean;
29
29
  /**
30
30
  * The search input options
31
- * @default { enabled: false }
31
+ * @default { enabled: false, debounce: 300, autoFocus: false }
32
32
  */
33
33
  search?: {
34
34
  enabled?: boolean;
35
35
  } & MazInputProps<string>;
36
36
  /**
37
- * The options to normalize the search query
37
+ * The options to normalize the search query (used by the default search function)
38
38
  */
39
39
  searchOptions?: NormalizeStringOptions;
40
+ /**
41
+ * Replace the default search function to provide a custom search function
42
+ * @default undefined
43
+ */
44
+ searchFunction?: (query: string, items: O[]) => O[] | undefined;
40
45
  /**
41
46
  * The color of the checklist (card, checkbox and search input)
42
47
  * @default primary
@@ -49,7 +54,7 @@ declare const _default: <T extends string, O extends ItemOption>(__VLS_props: No
49
54
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
50
55
  readonly "onUpdate:model-value"?: ((value?: T[] | undefined) => any) | undefined;
51
56
  readonly "onUpdate:query"?: ((value?: string | undefined) => any) | undefined;
52
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:model-value" | "onUpdate:query"> & Partial<{}> & MazCheckListProps<T, O>> & import("vue").PublicProps;
57
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:model-value" | "onUpdate:query"> & Partial<{}> & MazChecklistProps<T, O>> & import("vue").PublicProps;
53
58
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
54
59
  attrs: any;
55
60
  slots: {
@@ -6,7 +6,7 @@ export interface MazSelectOptionWithOptGroup {
6
6
  options: (NormalizedOption | string | number | boolean)[];
7
7
  }
8
8
  export type MazSelectOption = NormalizedOption | string | number | boolean | MazSelectOptionWithOptGroup;
9
- export interface Props<T extends ModelValueSimple, U extends MazSelectOption> {
9
+ export interface MazSelectProps<T extends ModelValueSimple, U extends MazSelectOption> {
10
10
  /** Style attribut of the component root element */
11
11
  style?: HTMLAttributes['style'];
12
12
  /** Class attribut of the component root element */
@@ -64,6 +64,11 @@ export interface Props<T extends ModelValueSimple, U extends MazSelectOption> {
64
64
  * @default 'Search in options'
65
65
  */
66
66
  searchPlaceholder?: string;
67
+ /**
68
+ * Replace the default search function to provide a custom search function
69
+ * @default undefined
70
+ */
71
+ searchFunction?: (query: string, options: U[]) => U[] | undefined;
67
72
  /**
68
73
  * The threshold for the search input where 1 is a perfect match and 0 is a match with any character
69
74
  * @default 0.75
@@ -98,7 +103,7 @@ declare const _default: <T extends ModelValueSimple, U extends MazSelectOption>(
98
103
  readonly onOpen?: ((value: boolean) => any) | undefined;
99
104
  readonly "onUpdate:model-value"?: ((value: T | T[]) => any) | undefined;
100
105
  readonly "onSelected-option"?: ((value: U) => any) | undefined;
101
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onFocus" | "onBlur" | "onChange" | "onInput" | "onClose" | "onOpen" | "onUpdate:model-value" | "onSelected-option"> & Partial<{}> & Props<T, U>> & import("vue").PublicProps;
106
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onFocus" | "onBlur" | "onChange" | "onInput" | "onClose" | "onOpen" | "onUpdate:model-value" | "onSelected-option"> & Partial<{}> & MazSelectProps<T, U>> & import("vue").PublicProps;
102
107
  expose(exposed: import("vue").ShallowUnwrapRef<{
103
108
  openList: (event: Event) => Promise<void>;
104
109
  closeList: (event?: Event) => Promise<void>;
@@ -1,5 +1,7 @@
1
1
  export { default as MazAccordion } from './MazAccordion.vue';
2
2
  export { default as MazAnimatedCounter } from './MazAnimatedCounter.vue';
3
+ export { default as MazAnimatedElement } from './MazAnimatedElement.vue';
4
+ export { default as MazAnimatedText } from './MazAnimatedText.vue';
3
5
  export { default as MazAvatar } from './MazAvatar.vue';
4
6
  export { default as MazBackdrop } from './MazBackdrop.vue';
5
7
  export { default as MazBadge } from './MazBadge.vue';
@@ -1,103 +0,0 @@
1
- import { defineComponent as C, defineAsyncComponent as m, useAttrs as $, computed as o, openBlock as t, createBlock as l, resolveDynamicComponent as r, normalizeClass as a, normalizeStyle as S, withCtx as j, renderSlot as i, unref as u, createCommentVNode as d, createElementBlock as M, createVNode as E } from "vue";
2
- import { _ as F } from "./MazPhoneNumberInput-ovuoYxd9.mjs";
3
- import '../assets/MazBtn.css';const O = {
4
- key: 0,
5
- class: "m-btn-loader-container"
6
- }, A = /* @__PURE__ */ C({
7
- __name: "MazBtn",
8
- props: {
9
- variant: { default: "button" },
10
- size: { default: "md" },
11
- color: { default: "primary" },
12
- type: { default: "button" },
13
- rounded: { type: Boolean },
14
- roundedSize: { default: "lg" },
15
- noRounded: { type: Boolean },
16
- outline: { type: Boolean },
17
- pastel: { type: Boolean },
18
- block: { type: Boolean },
19
- noUnderline: { type: Boolean },
20
- loading: { type: Boolean },
21
- disabled: { type: Boolean },
22
- fab: { type: Boolean },
23
- icon: { type: [String, Function, Object], default: void 0 },
24
- leftIcon: { type: [String, Function, Object], default: void 0 },
25
- rightIcon: { type: [String, Function, Object], default: void 0 },
26
- noPadding: { type: Boolean },
27
- noElevation: { type: Boolean },
28
- justify: { default: "center" }
29
- },
30
- setup(y) {
31
- const n = y, v = m(() => import("./MazSpinner-BqgAfyh1.mjs")), c = m(() => import("./MazIcon-BIoDsehI.mjs")), { href: b, to: z } = $(), f = o(() => b ? "a" : z ? "router-link" : "button"), g = o(() => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`), p = o(
32
- () => (n.loading || n.disabled) && f.value === "button"
33
- ), B = o(() => p.value ? "--cursor-default" : "--cursor-pointer"), k = o(() => `--is-${n.variant}`), I = o(() => n.loading && n.variant === "button"), h = o(() => f.value === "button" ? n.type : void 0), s = o(() => n.size === "xl" ? "maz-text-3xl" : n.size === "lg" ? "maz-text-2xl" : n.size === "md" ? "maz-text-xl" : n.size === "sm" ? "maz-text-lg" : n.size === "xs" ? "maz-text-base" : n.size === "mini" ? "maz-text-sm" : "maz-text-xl");
34
- return (e, D) => (t(), l(r(f.value), {
35
- disabled: p.value || void 0,
36
- class: a(["m-btn m-reset-css", [
37
- `--${e.size}`,
38
- !e.fab && !e.rounded && e.roundedSize && `--rounded-${e.roundedSize}`,
39
- g.value,
40
- B.value,
41
- k.value,
42
- {
43
- "--block": e.block,
44
- "--no-underline": e.noUnderline,
45
- "--fab": e.fab,
46
- "--loading": e.loading,
47
- "--disabled": p.value,
48
- "--rounded": e.rounded,
49
- "--no-rounded": e.noRounded,
50
- "--no-padding": e.noPadding,
51
- "--no-elevation": e.noElevation
52
- }
53
- ]]),
54
- style: S([`--justify: ${e.justify}`]),
55
- type: h.value
56
- }, {
57
- default: j(() => [
58
- i(e.$slots, "left-icon", {}, () => [
59
- typeof e.leftIcon == "string" ? (t(), l(u(c), {
60
- key: 0,
61
- name: e.leftIcon,
62
- class: a([s.value])
63
- }, null, 8, ["name", "class"])) : e.leftIcon ? (t(), l(r(e.leftIcon), {
64
- key: 1,
65
- class: a([s.value])
66
- }, null, 8, ["class"])) : d("v-if", !0)
67
- ], !0),
68
- i(e.$slots, "icon", {}, () => [
69
- typeof e.icon == "string" ? (t(), l(u(c), {
70
- key: 0,
71
- name: e.icon,
72
- class: a([s.value])
73
- }, null, 8, ["name", "class"])) : e.icon ? (t(), l(r(e.icon), {
74
- key: 1,
75
- class: a([s.value])
76
- }, null, 8, ["class"])) : d("v-if", !0)
77
- ], !0),
78
- i(e.$slots, "default", {}, void 0, !0),
79
- i(e.$slots, "right-icon", {}, () => [
80
- typeof e.rightIcon == "string" ? (t(), l(u(c), {
81
- key: 0,
82
- name: e.rightIcon,
83
- class: a([s.value])
84
- }, null, 8, ["name", "class"])) : e.rightIcon ? (t(), l(r(e.rightIcon), {
85
- key: 1,
86
- class: a([s.value])
87
- }, null, 8, ["class"])) : d("v-if", !0)
88
- ], !0),
89
- I.value ? (t(), M("div", O, [
90
- E(u(v), {
91
- size: "2em",
92
- color: e.color
93
- }, null, 8, ["color"])
94
- ])) : d("v-if", !0)
95
- ]),
96
- _: 3
97
- /* FORWARDED */
98
- }, 8, ["disabled", "class", "style", "type"]));
99
- }
100
- }), R = /* @__PURE__ */ F(A, [["__scopeId", "data-v-cac550b2"]]);
101
- export {
102
- R as default
103
- };
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./MazDropdown-DNXKdC_3.mjs";
2
- export {
3
- f as default
4
- };
@@ -1,34 +0,0 @@
1
- import { defineComponent as n, openBlock as o, createElementBlock as t, normalizeClass as r, createElementVNode as p } from "vue";
2
- import { _ as a } from "./MazPhoneNumberInput-ovuoYxd9.mjs";
3
- import '../assets/MazSpinner.css';const i = ["width", "height"], l = /* @__PURE__ */ n({
4
- __name: "MazSpinner",
5
- props: {
6
- size: { default: "2em" },
7
- color: { default: "theme" }
8
- },
9
- setup(m) {
10
- return (e, s) => (o(), t("svg", {
11
- width: e.size,
12
- height: e.size,
13
- version: "1.1",
14
- xmlns: "http://www.w3.org/2000/svg",
15
- x: "0px",
16
- y: "0px",
17
- viewBox: "0 0 50 50",
18
- "xml:space": "preserve",
19
- class: r(["m-spinner m-reset-css", `m-spinner--${e.color}`]),
20
- style: { "enable-background": "new 0 0 50 50" }
21
- }, s[0] || (s[0] = [
22
- p(
23
- "path",
24
- { 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" },
25
- null,
26
- -1
27
- /* HOISTED */
28
- )
29
- ]), 10, i));
30
- }
31
- }), h = /* @__PURE__ */ a(l, [["__scopeId", "data-v-52831d3b"]]);
32
- export {
33
- h as default
34
- };
@@ -1,34 +0,0 @@
1
- import { defineComponent as n, openBlock as o, createElementBlock as t, normalizeClass as r, createElementVNode as p } from "vue";
2
- import { _ as a } from "./MazInputPrice-Ca8mL53M.mjs";
3
- import '../assets/MazSpinner.css';const i = ["width", "height"], l = /* @__PURE__ */ n({
4
- __name: "MazSpinner",
5
- props: {
6
- size: { default: "2em" },
7
- color: { default: "theme" }
8
- },
9
- setup(m) {
10
- return (e, s) => (o(), t("svg", {
11
- width: e.size,
12
- height: e.size,
13
- version: "1.1",
14
- xmlns: "http://www.w3.org/2000/svg",
15
- x: "0px",
16
- y: "0px",
17
- viewBox: "0 0 50 50",
18
- "xml:space": "preserve",
19
- class: r(["m-spinner m-reset-css", `m-spinner--${e.color}`]),
20
- style: { "enable-background": "new 0 0 50 50" }
21
- }, s[0] || (s[0] = [
22
- p(
23
- "path",
24
- { 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" },
25
- null,
26
- -1
27
- /* HOISTED */
28
- )
29
- ]), 10, i));
30
- }
31
- }), h = /* @__PURE__ */ a(l, [["__scopeId", "data-v-52831d3b"]]);
32
- export {
33
- h as default
34
- };
@@ -1,34 +0,0 @@
1
- import { defineComponent as n, openBlock as o, createElementBlock as t, normalizeClass as r, createElementVNode as p } from "vue";
2
- import { _ as a } from "./MazInputNumber-DqnLi9-C.mjs";
3
- import '../assets/MazSpinner.css';const i = ["width", "height"], l = /* @__PURE__ */ n({
4
- __name: "MazSpinner",
5
- props: {
6
- size: { default: "2em" },
7
- color: { default: "theme" }
8
- },
9
- setup(m) {
10
- return (e, s) => (o(), t("svg", {
11
- width: e.size,
12
- height: e.size,
13
- version: "1.1",
14
- xmlns: "http://www.w3.org/2000/svg",
15
- x: "0px",
16
- y: "0px",
17
- viewBox: "0 0 50 50",
18
- "xml:space": "preserve",
19
- class: r(["m-spinner m-reset-css", `m-spinner--${e.color}`]),
20
- style: { "enable-background": "new 0 0 50 50" }
21
- }, s[0] || (s[0] = [
22
- p(
23
- "path",
24
- { 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" },
25
- null,
26
- -1
27
- /* HOISTED */
28
- )
29
- ]), 10, i));
30
- }
31
- }), h = /* @__PURE__ */ a(l, [["__scopeId", "data-v-52831d3b"]]);
32
- export {
33
- h as default
34
- };
@@ -1,34 +0,0 @@
1
- import { defineComponent as n, openBlock as o, createElementBlock as t, normalizeClass as r, createElementVNode as p } from "vue";
2
- import { _ as a } from "./MazDialog-DQXX2APp.mjs";
3
- import '../assets/MazSpinner.css';const i = ["width", "height"], l = /* @__PURE__ */ n({
4
- __name: "MazSpinner",
5
- props: {
6
- size: { default: "2em" },
7
- color: { default: "theme" }
8
- },
9
- setup(m) {
10
- return (e, s) => (o(), t("svg", {
11
- width: e.size,
12
- height: e.size,
13
- version: "1.1",
14
- xmlns: "http://www.w3.org/2000/svg",
15
- x: "0px",
16
- y: "0px",
17
- viewBox: "0 0 50 50",
18
- "xml:space": "preserve",
19
- class: r(["m-spinner m-reset-css", `m-spinner--${e.color}`]),
20
- style: { "enable-background": "new 0 0 50 50" }
21
- }, s[0] || (s[0] = [
22
- p(
23
- "path",
24
- { 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" },
25
- null,
26
- -1
27
- /* HOISTED */
28
- )
29
- ]), 10, i));
30
- }
31
- }), h = /* @__PURE__ */ a(l, [["__scopeId", "data-v-52831d3b"]]);
32
- export {
33
- h as default
34
- };
@@ -1,34 +0,0 @@
1
- import { defineComponent as n, openBlock as o, createElementBlock as t, normalizeClass as r, createElementVNode as p } from "vue";
2
- import { _ as a } from "./MazDrawer-BqNLfW4e.mjs";
3
- import '../assets/MazSpinner.css';const i = ["width", "height"], l = /* @__PURE__ */ n({
4
- __name: "MazSpinner",
5
- props: {
6
- size: { default: "2em" },
7
- color: { default: "theme" }
8
- },
9
- setup(m) {
10
- return (e, s) => (o(), t("svg", {
11
- width: e.size,
12
- height: e.size,
13
- version: "1.1",
14
- xmlns: "http://www.w3.org/2000/svg",
15
- x: "0px",
16
- y: "0px",
17
- viewBox: "0 0 50 50",
18
- "xml:space": "preserve",
19
- class: r(["m-spinner m-reset-css", `m-spinner--${e.color}`]),
20
- style: { "enable-background": "new 0 0 50 50" }
21
- }, s[0] || (s[0] = [
22
- p(
23
- "path",
24
- { 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" },
25
- null,
26
- -1
27
- /* HOISTED */
28
- )
29
- ]), 10, i));
30
- }
31
- }), h = /* @__PURE__ */ a(l, [["__scopeId", "data-v-52831d3b"]]);
32
- export {
33
- h as default
34
- };
@@ -1,34 +0,0 @@
1
- import { defineComponent as n, openBlock as o, createElementBlock as t, normalizeClass as r, createElementVNode as p } from "vue";
2
- import { _ as a } from "./MazSelect-BwahUlbE.mjs";
3
- import '../assets/MazSpinner.css';const i = ["width", "height"], l = /* @__PURE__ */ n({
4
- __name: "MazSpinner",
5
- props: {
6
- size: { default: "2em" },
7
- color: { default: "theme" }
8
- },
9
- setup(m) {
10
- return (e, s) => (o(), t("svg", {
11
- width: e.size,
12
- height: e.size,
13
- version: "1.1",
14
- xmlns: "http://www.w3.org/2000/svg",
15
- x: "0px",
16
- y: "0px",
17
- viewBox: "0 0 50 50",
18
- "xml:space": "preserve",
19
- class: r(["m-spinner m-reset-css", `m-spinner--${e.color}`]),
20
- style: { "enable-background": "new 0 0 50 50" }
21
- }, s[0] || (s[0] = [
22
- p(
23
- "path",
24
- { 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" },
25
- null,
26
- -1
27
- /* HOISTED */
28
- )
29
- ]), 10, i));
30
- }
31
- }), h = /* @__PURE__ */ a(l, [["__scopeId", "data-v-52831d3b"]]);
32
- export {
33
- h as default
34
- };
@@ -1,34 +0,0 @@
1
- import { defineComponent as n, openBlock as o, createElementBlock as t, normalizeClass as r, createElementVNode as p } from "vue";
2
- import { _ as a } from "./MazBottomSheet-CMqzf-dT.mjs";
3
- import '../assets/MazSpinner.css';const i = ["width", "height"], l = /* @__PURE__ */ n({
4
- __name: "MazSpinner",
5
- props: {
6
- size: { default: "2em" },
7
- color: { default: "theme" }
8
- },
9
- setup(m) {
10
- return (e, s) => (o(), t("svg", {
11
- width: e.size,
12
- height: e.size,
13
- version: "1.1",
14
- xmlns: "http://www.w3.org/2000/svg",
15
- x: "0px",
16
- y: "0px",
17
- viewBox: "0 0 50 50",
18
- "xml:space": "preserve",
19
- class: r(["m-spinner m-reset-css", `m-spinner--${e.color}`]),
20
- style: { "enable-background": "new 0 0 50 50" }
21
- }, s[0] || (s[0] = [
22
- p(
23
- "path",
24
- { 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" },
25
- null,
26
- -1
27
- /* HOISTED */
28
- )
29
- ]), 10, i));
30
- }
31
- }), h = /* @__PURE__ */ a(l, [["__scopeId", "data-v-52831d3b"]]);
32
- export {
33
- h as default
34
- };
@@ -1,34 +0,0 @@
1
- import { defineComponent as n, openBlock as o, createElementBlock as t, normalizeClass as r, createElementVNode as p } from "vue";
2
- import { _ as a } from "./MazPicker-B_IP-4P3.mjs";
3
- import '../assets/MazSpinner.css';const i = ["width", "height"], l = /* @__PURE__ */ n({
4
- __name: "MazSpinner",
5
- props: {
6
- size: { default: "2em" },
7
- color: { default: "theme" }
8
- },
9
- setup(m) {
10
- return (e, s) => (o(), t("svg", {
11
- width: e.size,
12
- height: e.size,
13
- version: "1.1",
14
- xmlns: "http://www.w3.org/2000/svg",
15
- x: "0px",
16
- y: "0px",
17
- viewBox: "0 0 50 50",
18
- "xml:space": "preserve",
19
- class: r(["m-spinner m-reset-css", `m-spinner--${e.color}`]),
20
- style: { "enable-background": "new 0 0 50 50" }
21
- }, s[0] || (s[0] = [
22
- p(
23
- "path",
24
- { 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" },
25
- null,
26
- -1
27
- /* HOISTED */
28
- )
29
- ]), 10, i));
30
- }
31
- }), h = /* @__PURE__ */ a(l, [["__scopeId", "data-v-52831d3b"]]);
32
- export {
33
- h as default
34
- };