maz-ui 3.47.2-beta.13 → 3.47.2-beta.15

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 (129) hide show
  1. package/components/MazAccordion.mjs +34 -35
  2. package/components/MazBackdrop.mjs +1 -1
  3. package/components/MazBottomSheet.mjs +1 -1
  4. package/components/MazCard.mjs +1 -1
  5. package/components/MazCheckbox.mjs +35 -36
  6. package/components/MazChecklist.mjs +1 -1
  7. package/components/MazCircularProgressBar.mjs +15 -16
  8. package/components/MazDialog.mjs +1 -1
  9. package/components/MazDialogPromise.mjs +1 -1
  10. package/components/MazDrawer.mjs +1 -1
  11. package/components/MazDropdown.mjs +1 -1
  12. package/components/MazFullscreenLoader.mjs +7 -7
  13. package/components/MazGallery.mjs +1 -1
  14. package/components/MazInput.mjs +1 -1
  15. package/components/MazInputNumber.mjs +1 -1
  16. package/components/MazInputPrice.mjs +1 -1
  17. package/components/MazInputTags.mjs +1 -1
  18. package/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +2 -2
  19. package/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +3 -3
  20. package/components/MazPhoneNumberInput/types.d.ts +1 -1
  21. package/components/MazPhoneNumberInput/use-libphonenumber.d.ts +4 -4
  22. package/components/MazPhoneNumberInput/use-maz-phone-number-input.d.ts +1 -1
  23. package/components/MazPhoneNumberInput.d.ts +65 -24
  24. package/components/MazPhoneNumberInput.mjs +1 -1
  25. package/components/MazPicker.mjs +1 -1
  26. package/components/MazRadio.mjs +19 -20
  27. package/components/MazSelect.mjs +1 -1
  28. package/components/MazSwitch.mjs +15 -16
  29. package/components/MazTable.mjs +1 -1
  30. package/components/MazTabsBar.mjs +1 -1
  31. package/components/MazTabsContentItem.mjs +7 -7
  32. package/components/MazTextarea.mjs +2 -3
  33. package/components/assets/MazGallery.css +1 -1
  34. package/components/assets/MazPhoneNumberInput.css +1 -1
  35. package/components/assets/MazSelect.css +1 -1
  36. package/components/assets/MazTabsBar.css +1 -1
  37. package/components/assets/MazTabsContentItem.css +1 -1
  38. package/components/chunks/{MazBadge-CupQjB8D.mjs → MazBadge-DCzaExPj.mjs} +1 -1
  39. package/components/chunks/{MazBottomSheet-D9EPpEV8.mjs → MazBottomSheet-B1cqFZxd.mjs} +2 -2
  40. package/components/chunks/{MazBtn-CQq-U8qQ.mjs → MazBtn-BBjeD4hu.mjs} +2 -2
  41. package/components/chunks/MazBtn-BDrYYq_W.mjs +103 -0
  42. package/components/chunks/MazBtn-BQwIuO_Q.mjs +103 -0
  43. package/components/chunks/{MazBtn-Chk7DWOF.mjs → MazBtn-C4nwxs9T.mjs} +2 -2
  44. package/components/chunks/{MazBtn-BSgCMRt0.mjs → MazBtn-CElHmZjv.mjs} +2 -2
  45. package/components/chunks/{MazBtn-Br3xKJMD.mjs → MazBtn-D1jMqwE1.mjs} +2 -2
  46. package/components/chunks/MazBtn-Db6ai-Mv.mjs +103 -0
  47. package/components/chunks/{MazBtn-CB6xVwox.mjs → MazBtn-LssGZPPh.mjs} +2 -2
  48. package/components/chunks/{MazBtn-BfIn7glE.mjs → MazBtn-ZigrzA2_.mjs} +2 -2
  49. package/components/chunks/{MazBtn-DhSKmF01.mjs → MazBtn-oZhhJy09.mjs} +1 -1
  50. package/components/chunks/{MazBtn-DI80W9rl.mjs → MazBtn-u8A4zbVD.mjs} +2 -2
  51. package/components/chunks/{MazCard-XBaeDZkg.mjs → MazCard-98OuVlyK.mjs} +1 -1
  52. package/components/chunks/{MazCheckbox-DxfneUvu.mjs → MazCheckbox-CE_7EoUE.mjs} +1 -1
  53. package/components/chunks/{MazCheckbox-B-Sw22La.mjs → MazCheckbox-D2fkthdh.mjs} +1 -1
  54. package/components/chunks/{MazCheckbox-DjY15PA3.mjs → MazCheckbox-Df1bTvTA.mjs} +2 -2
  55. package/components/chunks/{MazChecklist-DaozZlNb.mjs → MazChecklist-BurPprmw.mjs} +2 -3
  56. package/components/chunks/{MazDialog-XiX9LEiz.mjs → MazDialog-C3h6Ydey.mjs} +2 -2
  57. package/components/chunks/{MazDialogPromise-B9_e3Ma9.mjs → MazDialogPromise-BZm1F0X2.mjs} +3 -3
  58. package/components/chunks/{MazDropdown-CKuIGitT.mjs → MazDropdown-0r445NfW.mjs} +3 -4
  59. package/components/chunks/{MazGallery-BooLoRWi.mjs → MazGallery-r8SBTCgJ.mjs} +6 -6
  60. package/components/chunks/{MazGallery-DUOQamrE.mjs → MazGallery-xPp1apvO.mjs} +65 -65
  61. package/components/chunks/MazIcon-BoTByt7n.mjs +4 -0
  62. package/components/chunks/{MazIcon-DFW4cVVf.mjs → MazIcon-Y4qVlKF1.mjs} +1 -1
  63. package/components/chunks/{MazInput-BWAWlxDa.mjs → MazInput-BCxcwHct.mjs} +3 -3
  64. package/components/chunks/{MazInput-HLPtw5QK.mjs → MazInput-BT-mbJfZ.mjs} +2 -2
  65. package/components/chunks/{MazInput-DIN1VAoX.mjs → MazInput-BfWJoPre.mjs} +3 -4
  66. package/components/chunks/{MazInputNumber-7Ku2ZcG-.mjs → MazInputNumber-R0RzDeyD.mjs} +20 -21
  67. package/components/chunks/{MazInputPrice-C5yErBFP.mjs → MazInputPrice-CKSdqO4X.mjs} +3 -4
  68. package/components/chunks/{MazInputTags-DvbQ2mK8.mjs → MazInputTags-D6jQ2-Ia.mjs} +2 -3
  69. package/components/chunks/{MazLink-mrqHeBS0.mjs → MazLink-tud3eDgU.mjs} +1 -1
  70. package/components/chunks/{MazLoadingBar-CNm3Yt6D.mjs → MazLoadingBar-Difme_hf.mjs} +1 -1
  71. package/components/chunks/{MazPhoneNumberInput-B5Up8CqL.mjs → MazPhoneNumberInput-Brc7mthM.mjs} +155 -153
  72. package/components/chunks/{MazPicker-CzYUZcLy.mjs → MazPicker-CwiuW5Pv.mjs} +4 -5
  73. package/components/chunks/{MazPickerMonthSwitcher-Ds5agR3Z.mjs → MazPickerMonthSwitcher-C65el7R0.mjs} +1 -1
  74. package/components/chunks/{MazPickerShortcuts-BP6CY9-c.mjs → MazPickerShortcuts-DbrOoszH.mjs} +1 -1
  75. package/components/chunks/{MazPickerYearSwitcher-PM8qZMzR.mjs → MazPickerYearSwitcher-D9lqntyR.mjs} +1 -1
  76. package/components/chunks/{MazSelect-DOexatNj.mjs → MazSelect-BTj-gsNu.mjs} +4 -5
  77. package/components/chunks/{MazSelect-DaDRzcT_.mjs → MazSelect-rBU47Yma.mjs} +4 -4
  78. package/components/chunks/{MazSpinner-Bsy1nA3c.mjs → MazSpinner-1F6A6qVD.mjs} +1 -1
  79. package/components/chunks/MazSpinner-4ja9Gafa.mjs +34 -0
  80. package/components/chunks/{MazSpinner-BJpv1muf.mjs → MazSpinner-BDda3YzZ.mjs} +1 -1
  81. package/components/chunks/{MazSpinner-CxyUHAvm.mjs → MazSpinner-C2-JMhVh.mjs} +1 -1
  82. package/components/chunks/MazSpinner-CS1_l-tv.mjs +34 -0
  83. package/components/chunks/{MazSpinner-ZPQe8ON_.mjs → MazSpinner-CbQ43lMx.mjs} +1 -1
  84. package/components/chunks/{MazSpinner-9M_EGMpy.mjs → MazSpinner-Cp_nPioh.mjs} +1 -1
  85. package/components/chunks/MazSpinner-CwmaAuL1.mjs +34 -0
  86. package/components/chunks/{MazSpinner-CDx6lo7l.mjs → MazSpinner-Dfj-lu-U.mjs} +1 -1
  87. package/components/chunks/MazSpinner-DqD51Fb6.mjs +34 -0
  88. package/components/chunks/{MazSpinner-C30YfScc.mjs → MazSpinner-DudoF-cG.mjs} +1 -1
  89. package/components/chunks/MazSpinner-DzFcVNs_.mjs +34 -0
  90. package/components/chunks/{MazSpinner-C_GueolV.mjs → MazSpinner-mtv0dluJ.mjs} +1 -1
  91. package/components/chunks/MazSpinner-wQasUhyI.mjs +34 -0
  92. package/components/chunks/{MazTable-Ci8nhgOP.mjs → MazTable-C0rcyl2r.mjs} +1 -1
  93. package/components/chunks/{MazTableCell-BIganK6X.mjs → MazTableCell-BhTwC2iX.mjs} +1 -1
  94. package/components/chunks/{MazTableRow-CIO-x6Lb.mjs → MazTableRow-BY_2wH3h.mjs} +1 -1
  95. package/components/chunks/{MazTableTitle-OEgTPQB3.mjs → MazTableTitle-DM_f1xmU.mjs} +1 -1
  96. package/components/chunks/{MazTabsBar-CT35SCIK.mjs → MazTabsBar--Xq_cpuz.mjs} +3 -3
  97. package/components/chunks/{MazTransitionExpand-Bcwdl9g2.mjs → MazTransitionExpand-Cedz9Ree.mjs} +1 -1
  98. package/components/chunks/useInstanceUniqId-BkOfxhk8.mjs +10 -0
  99. package/modules/assets/index.css +1 -1
  100. package/modules/chunks/{MazBtn-0CRjeBvn.mjs → MazBtn-5kChLyut.mjs} +2 -2
  101. package/modules/chunks/{MazBtn-DRqCRJD-.cjs → MazBtn-DDy5YiXc.cjs} +1 -1
  102. package/modules/chunks/{MazIcon-CeT6HK_q.mjs → MazIcon-COgM-qpZ.mjs} +1 -1
  103. package/modules/chunks/{MazIcon-D-Gna0vz.cjs → MazIcon-CQFeylgS.cjs} +1 -1
  104. package/modules/chunks/{MazSpinner-DV--lwdI.mjs → MazSpinner-bBkHNQ_l.mjs} +1 -1
  105. package/modules/chunks/{MazSpinner-DersvZQw.cjs → MazSpinner-y2YtVsZV.cjs} +1 -1
  106. package/modules/chunks/index-BsSNJt-B.cjs +124 -0
  107. package/modules/chunks/{index-Kry9j5uD.mjs → index-Bxs7y8eO.mjs} +12 -13
  108. package/modules/index.cjs +1 -1
  109. package/modules/index.mjs +1 -1
  110. package/nuxt/index.json +1 -1
  111. package/package.json +3 -3
  112. package/types/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +2 -2
  113. package/types/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +3 -3
  114. package/types/components/MazPhoneNumberInput/types.d.ts +1 -1
  115. package/types/components/MazPhoneNumberInput/use-libphonenumber.d.ts +4 -4
  116. package/types/components/MazPhoneNumberInput/use-maz-phone-number-input.d.ts +1 -1
  117. package/types/components/MazPhoneNumberInput.vue.d.ts +65 -24
  118. package/components/chunks/MazBtn-Ck84sP9a.mjs +0 -103
  119. package/components/chunks/MazBtn-DzwuLea3.mjs +0 -103
  120. package/components/chunks/MazBtn-tOUtVpek.mjs +0 -103
  121. package/components/chunks/MazIcon-BX2Gbz8R.mjs +0 -4
  122. package/components/chunks/MazSpinner-C5mnD76l.mjs +0 -34
  123. package/components/chunks/MazSpinner-Cgg2dkzQ.mjs +0 -34
  124. package/components/chunks/MazSpinner-CkKIUYXO.mjs +0 -34
  125. package/components/chunks/MazSpinner-DROgQW2M.mjs +0 -34
  126. package/components/chunks/MazSpinner-Dzs2W0kq.mjs +0 -34
  127. package/components/chunks/MazSpinner-NCtEpFMm.mjs +0 -34
  128. package/components/chunks/useInstanceUniqId-DW9jO1Sz.mjs +0 -11
  129. package/modules/chunks/index-DvromXrX.cjs +0 -124
@@ -6,7 +6,7 @@ declare function getBrowserLocale(): {
6
6
  } | undefined;
7
7
  declare function getCountriesList(locale?: string, customCountriesNameListByIsoCode?: Record<CountryCode, string>): Country[] | undefined;
8
8
  declare function fetchCountryCode(): Promise<string | undefined>;
9
- declare function sanitizePhoneNumber(input?: string): string;
9
+ declare function sanitizePhoneNumber(input?: string | undefined | null): string;
10
10
  export declare function useMazPhoneNumberInput(): {
11
11
  sanitizePhoneNumber: typeof sanitizePhoneNumber;
12
12
  fetchCountryCode: typeof fetchCountryCode;
@@ -1,7 +1,7 @@
1
1
  import type { CountryCode } from 'libphonenumber-js';
2
2
  import type { Results, Translations } from './MazPhoneNumberInput/types';
3
3
  import type { Color, Position, Size } from './types';
4
- import { type HTMLAttributes, type Ref } from 'vue';
4
+ import { type HTMLAttributes } from 'vue';
5
5
  export type { Color, CountryCode, Position, Results, Results as Result, Size, Translations };
6
6
  export interface Props {
7
7
  /** Style attribut of the component root element */
@@ -9,13 +9,13 @@ export interface Props {
9
9
  /** Class attribut of the component root element */
10
10
  class?: HTMLAttributes['class'];
11
11
  /** @model Country calling code + telephone number in international format */
12
- modelValue?: string;
12
+ modelValue?: string | undefined | null;
13
13
  /** @deprecated */
14
- defaultPhoneNumber?: string;
14
+ defaultPhoneNumber?: string | undefined | null;
15
15
  /** @model Country code selected - Ex: "FR" */
16
- countryCode?: CountryCode;
16
+ countryCode?: CountryCode | undefined | null;
17
17
  /** @deprecated - use country-code or v-model:country-code */
18
- defaultCountryCode?: CountryCode;
18
+ defaultCountryCode?: CountryCode | undefined | null;
19
19
  /** Id of the component */
20
20
  id?: string;
21
21
  /** Placeholder of the input */
@@ -107,17 +107,58 @@ export interface Props {
107
107
  */
108
108
  phoneInputAttributes?: Record<string, unknown>;
109
109
  }
110
+ /**
111
+ * State
112
+ */
113
+ declare const phoneNumber: import("vue").Ref<string | null | undefined, string | null | undefined>;
114
+ declare const selectedCountry: import("vue").Ref<CountryCode | null | undefined, CountryCode | null | undefined>;
115
+ declare const results: import("vue").Ref<{
116
+ isValid: boolean;
117
+ isPossible?: boolean | undefined;
118
+ countryCode?: CountryCode | undefined | null;
119
+ countryCallingCode?: import("libphonenumber-js").CountryCallingCode | undefined;
120
+ nationalNumber?: import("libphonenumber-js").NationalNumber | undefined;
121
+ type?: import("libphonenumber-js").NumberType;
122
+ formatInternational?: string | undefined;
123
+ formatNational?: string | undefined;
124
+ uri?: string | undefined;
125
+ e164?: string | undefined;
126
+ rfc3966?: string | undefined;
127
+ phoneNumber?: string | undefined;
128
+ }, Results | {
129
+ isValid: boolean;
130
+ isPossible?: boolean | undefined;
131
+ countryCode?: CountryCode | undefined | null;
132
+ countryCallingCode?: import("libphonenumber-js").CountryCallingCode | undefined;
133
+ nationalNumber?: import("libphonenumber-js").NationalNumber | undefined;
134
+ type?: import("libphonenumber-js").NumberType;
135
+ formatInternational?: string | undefined;
136
+ formatNational?: string | undefined;
137
+ uri?: string | undefined;
138
+ e164?: string | undefined;
139
+ rfc3966?: string | undefined;
140
+ phoneNumber?: string | undefined;
141
+ }>;
110
142
  interface SelectionRange {
111
143
  start?: number | null;
112
144
  end?: number | null;
113
145
  cursorAtEnd?: boolean;
114
146
  }
115
147
  export interface InjectedData {
116
- selectedCountry: Ref<CountryCode | undefined>;
117
- phoneNumber: Ref<string>;
118
- results: Ref<Results>;
119
- selectionRange: Ref<SelectionRange>;
148
+ selectedCountry: typeof selectedCountry;
149
+ phoneNumber: typeof phoneNumber;
150
+ results: typeof results;
151
+ selectionRange: typeof selectionRange;
120
152
  }
153
+ declare const selectionRange: import("vue").Ref<{
154
+ start?: (number | null) | undefined;
155
+ end?: (number | null) | undefined;
156
+ cursorAtEnd?: boolean | undefined;
157
+ }, SelectionRange | {
158
+ start?: (number | null) | undefined;
159
+ end?: (number | null) | undefined;
160
+ cursorAtEnd?: boolean | undefined;
161
+ }>;
121
162
  declare function __VLS_template(): {
122
163
  attrs: Partial<{}>;
123
164
  slots: {
@@ -133,7 +174,7 @@ declare function __VLS_template(): {
133
174
  };
134
175
  refs: {
135
176
  PhoneInputRef: import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
136
- modelValue?: string;
177
+ modelValue?: string | undefined | null;
137
178
  } & {
138
179
  id: string;
139
180
  color: Color;
@@ -150,10 +191,10 @@ declare function __VLS_template(): {
150
191
  noFormattingAsYouType?: boolean;
151
192
  }> & Readonly<{
152
193
  "onUpdate:model-value"?: ((phoneNumber?: string | undefined) => any) | undefined;
153
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
194
+ "onUpdate:modelValue"?: ((value: string | null | undefined) => any) | undefined;
154
195
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
155
196
  "update:model-value": (phoneNumber?: string | undefined) => any;
156
- "update:modelValue": (value: string) => any;
197
+ "update:modelValue": (value: string | null | undefined) => any;
157
198
  }, import("vue").PublicProps, {
158
199
  label: string;
159
200
  placeholder: string;
@@ -165,7 +206,7 @@ declare function __VLS_template(): {
165
206
  M: {};
166
207
  Defaults: {};
167
208
  }, Readonly<{
168
- modelValue?: string;
209
+ modelValue?: string | undefined | null;
169
210
  } & {
170
211
  id: string;
171
212
  color: Color;
@@ -182,7 +223,7 @@ declare function __VLS_template(): {
182
223
  noFormattingAsYouType?: boolean;
183
224
  }> & Readonly<{
184
225
  "onUpdate:model-value"?: ((phoneNumber?: string | undefined) => any) | undefined;
185
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
226
+ "onUpdate:modelValue"?: ((value: string | null | undefined) => any) | undefined;
186
227
  }>, {}, {}, {}, {}, {
187
228
  label: string;
188
229
  placeholder: string;
@@ -193,16 +234,16 @@ declare function __VLS_template(): {
193
234
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
194
235
  declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
195
236
  data: (results: Results) => any;
196
- "update:model-value": (value: string) => any;
237
+ "update:model-value": (value: string | null | undefined) => any;
197
238
  update: (results: Results) => any;
198
- "country-code": (countryCode?: CountryCode | undefined) => any;
199
- "update:country-code": (countryCode?: CountryCode | undefined) => any;
239
+ "country-code": (countryCode?: CountryCode | null | undefined) => any;
240
+ "update:country-code": (countryCode?: CountryCode | null | undefined) => any;
200
241
  }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
201
242
  onData?: ((results: Results) => any) | undefined;
202
- "onUpdate:model-value"?: ((value: string) => any) | undefined;
243
+ "onUpdate:model-value"?: ((value: string | null | undefined) => any) | undefined;
203
244
  onUpdate?: ((results: Results) => any) | undefined;
204
- "onCountry-code"?: ((countryCode?: CountryCode | undefined) => any) | undefined;
205
- "onUpdate:country-code"?: ((countryCode?: CountryCode | undefined) => any) | undefined;
245
+ "onCountry-code"?: ((countryCode?: CountryCode | null | undefined) => any) | undefined;
246
+ "onUpdate:country-code"?: ((countryCode?: CountryCode | null | undefined) => any) | undefined;
206
247
  }>, {
207
248
  label: string;
208
249
  style: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
@@ -210,7 +251,7 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
210
251
  color: Color;
211
252
  class: HTMLAttributes["class"];
212
253
  id: string;
213
- modelValue: string;
254
+ modelValue: string | null;
214
255
  orientation: "row" | "col" | "responsive";
215
256
  placeholder: string;
216
257
  listPosition: Position;
@@ -221,11 +262,11 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
221
262
  onlyCountries: CountryCode[];
222
263
  customCountriesList: Record<CountryCode, string>;
223
264
  countryLocale: string;
224
- countryCode: CountryCode;
265
+ countryCode: CountryCode | null;
225
266
  autoFormat: boolean;
226
267
  noFormattingAsYouType: boolean;
227
- defaultPhoneNumber: string;
228
- defaultCountryCode: CountryCode;
268
+ defaultPhoneNumber: string | null;
269
+ defaultCountryCode: CountryCode | null;
229
270
  translations: Partial<Translations>;
230
271
  countrySelectorWidth: string;
231
272
  countrySelectAttributes: Record<string, unknown>;
@@ -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 "./MazBottomSheet-D9EPpEV8.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-C30YfScc.mjs")), c = m(() => import("./MazIcon-_hN-Kivn.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", [
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-bee684ff"]]);
101
- export {
102
- R as default
103
- };
@@ -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 "./MazDialogPromise-B9_e3Ma9.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-C5mnD76l.mjs")), c = m(() => import("./MazIcon-_hN-Kivn.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", [
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-bee684ff"]]);
101
- export {
102
- R as default
103
- };
@@ -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 "./MazInputPrice-C5yErBFP.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-CkKIUYXO.mjs")), c = m(() => import("./MazIcon-_hN-Kivn.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", [
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-bee684ff"]]);
101
- export {
102
- R as default
103
- };
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./MazDropdown-CKuIGitT.mjs";
2
- export {
3
- f as default
4
- };
@@ -1,34 +0,0 @@
1
- import { defineComponent as o, openBlock as s, createElementBlock as t, normalizeClass as r, createElementVNode as p } from "vue";
2
- import { _ as a } from "./MazDialogPromise-B9_e3Ma9.mjs";
3
- import '../assets/MazSpinner.css';const i = ["width", "height"], l = /* @__PURE__ */ o({
4
- __name: "MazSpinner",
5
- props: {
6
- size: { default: "2em" },
7
- color: { default: "theme" }
8
- },
9
- setup(m) {
10
- return (e, n) => (s(), 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-spinner--${e.color}`]),
20
- style: { "enable-background": "new 0 0 50 50" }
21
- }, n[0] || (n[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-2868435d"]]);
32
- export {
33
- h as default
34
- };
@@ -1,34 +0,0 @@
1
- import { defineComponent as o, openBlock as s, createElementBlock as t, normalizeClass as r, createElementVNode as p } from "vue";
2
- import { _ as a } from "./MazGallery-DUOQamrE.mjs";
3
- import '../assets/MazSpinner.css';const i = ["width", "height"], l = /* @__PURE__ */ o({
4
- __name: "MazSpinner",
5
- props: {
6
- size: { default: "2em" },
7
- color: { default: "theme" }
8
- },
9
- setup(m) {
10
- return (e, n) => (s(), 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-spinner--${e.color}`]),
20
- style: { "enable-background": "new 0 0 50 50" }
21
- }, n[0] || (n[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-2868435d"]]);
32
- export {
33
- h as default
34
- };
@@ -1,34 +0,0 @@
1
- import { defineComponent as o, openBlock as s, createElementBlock as t, normalizeClass as r, createElementVNode as p } from "vue";
2
- import { _ as a } from "./MazInputPrice-C5yErBFP.mjs";
3
- import '../assets/MazSpinner.css';const i = ["width", "height"], l = /* @__PURE__ */ o({
4
- __name: "MazSpinner",
5
- props: {
6
- size: { default: "2em" },
7
- color: { default: "theme" }
8
- },
9
- setup(m) {
10
- return (e, n) => (s(), 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-spinner--${e.color}`]),
20
- style: { "enable-background": "new 0 0 50 50" }
21
- }, n[0] || (n[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-2868435d"]]);
32
- export {
33
- h as default
34
- };
@@ -1,34 +0,0 @@
1
- import { defineComponent as o, openBlock as s, createElementBlock as t, normalizeClass as r, createElementVNode as p } from "vue";
2
- import { _ as a } from "./MazInputNumber-7Ku2ZcG-.mjs";
3
- import '../assets/MazSpinner.css';const i = ["width", "height"], l = /* @__PURE__ */ o({
4
- __name: "MazSpinner",
5
- props: {
6
- size: { default: "2em" },
7
- color: { default: "theme" }
8
- },
9
- setup(m) {
10
- return (e, n) => (s(), 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-spinner--${e.color}`]),
20
- style: { "enable-background": "new 0 0 50 50" }
21
- }, n[0] || (n[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-2868435d"]]);
32
- export {
33
- h as default
34
- };