maz-ui 2.3.13 → 2.4.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 (237) hide show
  1. package/components/MazArrowIcon.d.ts +43 -0
  2. package/components/MazArrowIcon.js +1 -0
  3. package/components/MazAvatar.d.ts +149 -0
  4. package/components/MazAvatar.js +3 -0
  5. package/components/MazBackdrop.d.ts +89 -0
  6. package/components/MazBackdrop.js +3 -0
  7. package/components/MazBadge.d.ts +68 -0
  8. package/components/MazBadge.js +1 -0
  9. package/components/MazBottomSheet.d.ts +29 -0
  10. package/components/MazBottomSheet.js +3 -0
  11. package/components/MazBtn.d.ts +171 -0
  12. package/components/MazBtn.js +3 -0
  13. package/components/MazCard.d.ts +183 -0
  14. package/components/MazCard.js +3 -0
  15. package/components/MazCarousel.d.ts +16 -0
  16. package/components/MazCarousel.js +3 -0
  17. package/components/MazChart/includes.d.ts +11 -0
  18. package/components/MazChart.d.ts +114 -0
  19. package/components/MazChart.js +1 -0
  20. package/components/MazCheckbox.d.ts +49 -0
  21. package/components/MazCheckbox.js +1 -0
  22. package/components/MazDialog.d.ts +29 -0
  23. package/components/MazDialog.js +3 -0
  24. package/components/MazDialogPromise/use-maz-dialog-promise.d.ts +30 -0
  25. package/components/MazDialogPromise.d.ts +28 -0
  26. package/components/MazDialogPromise.js +3 -0
  27. package/components/MazDrawer.d.ts +59 -0
  28. package/components/MazDrawer.js +3 -0
  29. package/components/MazDropzone.d.ts +128 -0
  30. package/components/MazDropzone.js +3 -0
  31. package/components/MazGallery.d.ts +144 -0
  32. package/components/MazGallery.js +3 -0
  33. package/components/MazIcon.d.ts +66 -0
  34. package/components/MazIcon.js +3 -0
  35. package/components/MazInput.d.ts +276 -0
  36. package/components/MazInput.js +3 -0
  37. package/components/MazInputNumber.d.ts +67 -0
  38. package/components/MazInputNumber.js +3 -0
  39. package/components/MazInputPrice.d.ts +64 -0
  40. package/components/MazInputPrice.js +3 -0
  41. package/components/MazInputTags.d.ts +96 -0
  42. package/components/MazInputTags.js +3 -0
  43. package/components/MazLazyImg.d.ts +80 -0
  44. package/components/MazLazyImg.js +3 -0
  45. package/components/MazPhoneNumberInput/constantes/locales.d.ts +12 -0
  46. package/components/MazPhoneNumberInput/types.d.ts +21 -0
  47. package/components/MazPhoneNumberInput/utils/countries-name-list-by-iso-code.d.ts +2 -0
  48. package/components/MazPhoneNumberInput/utils/index.d.ts +12 -0
  49. package/components/MazPhoneNumberInput.d.ts +255 -0
  50. package/components/MazPhoneNumberInput.js +3 -0
  51. package/components/MazPicker/MazPickerCalendar.vue.d.ts +137 -0
  52. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +22 -0
  53. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +114 -0
  54. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +124 -0
  55. package/components/MazPicker/MazPickerCalendarSwitcher.vue.d.ts +38 -0
  56. package/components/MazPicker/MazPickerContainer.vue.d.ts +212 -0
  57. package/components/MazPicker/MazPickerHeader.vue.d.ts +84 -0
  58. package/components/MazPicker/MazPickerMonthSwitcher.vue.d.ts +43 -0
  59. package/components/MazPicker/MazPickerShortcuts.vue.d.ts +62 -0
  60. package/components/MazPicker/MazPickerTime.vue.d.ts +129 -0
  61. package/components/MazPicker/MazPickerYearSwitcher.vue.d.ts +35 -0
  62. package/components/MazPicker/types.d.ts +15 -0
  63. package/components/MazPicker/utils.d.ts +54 -0
  64. package/components/MazPicker.d.ts +313 -0
  65. package/components/MazPicker.js +3 -0
  66. package/components/MazRadioButtons.d.ts +69 -0
  67. package/components/MazRadioButtons.js +1 -0
  68. package/components/MazSelect.d.ts +176 -0
  69. package/components/MazSelect.js +3 -0
  70. package/components/MazSlider/utils.d.ts +15 -0
  71. package/components/MazSlider.d.ts +96 -0
  72. package/components/MazSlider.js +3 -0
  73. package/components/MazSpinner.d.ts +30 -0
  74. package/components/MazSpinner.js +1 -0
  75. package/components/MazStepper.d.ts +73 -0
  76. package/components/MazStepper.js +1 -0
  77. package/components/MazSwitch.d.ts +56 -0
  78. package/components/MazSwitch.js +1 -0
  79. package/components/MazTabsBar.d.ts +49 -0
  80. package/components/MazTabsBar.js +3 -0
  81. package/components/MazTabsContent.d.ts +16 -0
  82. package/components/MazTabsContent.js +1 -0
  83. package/components/MazTabsContentItem.d.ts +14 -0
  84. package/components/MazTabsContentItem.js +3 -0
  85. package/components/MazTextarea/textarea-autogrow.d.ts +9 -0
  86. package/components/MazTextarea.d.ts +125 -0
  87. package/components/MazTextarea.js +1 -0
  88. package/components/MazTransitionExpand.d.ts +4 -0
  89. package/components/MazTransitionExpand.js +1 -0
  90. package/components/index.d.ts +34 -0
  91. package/components/index.js +36 -0
  92. package/components/no_photo-a72545e4.js +1 -0
  93. package/components/types.d.ts +17 -0
  94. package/css/aos.css +1 -0
  95. package/css/main.css +1 -0
  96. package/maz-ui.d.ts +307 -0
  97. package/modules/index.js +3 -0
  98. package/modules/no_photo-a72545e4.js +1 -0
  99. package/package.json +145 -81
  100. package/tailwindcss/tailwind.config.js +65 -0
  101. package/tailwindcss/utils/colors.js +28 -0
  102. package/tailwindcss/variables/breakpoints.js +15 -0
  103. package/tailwindcss/variables/colors.js +44 -0
  104. package/tailwindcss/variables/utilities.js +20 -0
  105. package/tailwindcss/variables/z-indexes.js +15 -0
  106. package/LICENSE +0 -21
  107. package/README.md +0 -66
  108. package/bin/index.js +0 -63
  109. package/bin/lib/_constantes/default-colors.js +0 -69
  110. package/bin/lib/index.d.ts +0 -2
  111. package/bin/lib/index.js +0 -145
  112. package/bin/lib/methods/generate-root-css.js +0 -49
  113. package/bin/lib/methods/get-theme-settings.js +0 -58
  114. package/bin/lib/methods/set-css-vars.js +0 -11
  115. package/lib/css/base.css +0 -1
  116. package/lib/css/index.css +0 -1
  117. package/lib/css/maz-avatar.css +0 -1
  118. package/lib/css/maz-bottom-sheet.css +0 -1
  119. package/lib/css/maz-btn-group.css +0 -1
  120. package/lib/css/maz-btn.css +0 -0
  121. package/lib/css/maz-card.css +0 -1
  122. package/lib/css/maz-carousel.css +0 -1
  123. package/lib/css/maz-checkbox.css +0 -1
  124. package/lib/css/maz-collapse.css +0 -1
  125. package/lib/css/maz-dialog.css +0 -1
  126. package/lib/css/maz-draggable-list.css +0 -1
  127. package/lib/css/maz-dropdown.css +0 -1
  128. package/lib/css/maz-dropzone.css +0 -1
  129. package/lib/css/maz-flex.css +0 -0
  130. package/lib/css/maz-gallery.css +0 -0
  131. package/lib/css/maz-img.css +0 -1
  132. package/lib/css/maz-input-tags.css +0 -1
  133. package/lib/css/maz-input.css +0 -0
  134. package/lib/css/maz-list-item.css +0 -1
  135. package/lib/css/maz-list.css +0 -1
  136. package/lib/css/maz-loader.css +0 -0
  137. package/lib/css/maz-pagination.css +0 -1
  138. package/lib/css/maz-phone-number-input.css +0 -1
  139. package/lib/css/maz-picker.css +0 -1
  140. package/lib/css/maz-plotly.css +0 -0
  141. package/lib/css/maz-progress-bar.css +0 -1
  142. package/lib/css/maz-radio.css +0 -1
  143. package/lib/css/maz-read-more.css +0 -1
  144. package/lib/css/maz-responsive-menu.css +0 -1
  145. package/lib/css/maz-search.css +0 -1
  146. package/lib/css/maz-select.css +0 -0
  147. package/lib/css/maz-sidebar.css +0 -1
  148. package/lib/css/maz-slider.css +0 -1
  149. package/lib/css/maz-spinner.css +0 -0
  150. package/lib/css/maz-stepper.css +0 -1
  151. package/lib/css/maz-switch.css +0 -1
  152. package/lib/css/maz-tabs-bar.css +0 -1
  153. package/lib/css/maz-tabs-content-item.css +0 -1
  154. package/lib/css/maz-tabs-content.css +0 -1
  155. package/lib/css/maz-transition-expand.css +0 -0
  156. package/lib/index.d.ts +0 -1
  157. package/lib/index.js +0 -1
  158. package/lib/maz-avatar.d.ts +0 -3
  159. package/lib/maz-avatar.js +0 -430
  160. package/lib/maz-bottom-sheet.d.ts +0 -3
  161. package/lib/maz-bottom-sheet.js +0 -1045
  162. package/lib/maz-btn-group.d.ts +0 -3
  163. package/lib/maz-btn-group.js +0 -907
  164. package/lib/maz-btn.d.ts +0 -3
  165. package/lib/maz-btn.js +0 -764
  166. package/lib/maz-card.d.ts +0 -3
  167. package/lib/maz-card.js +0 -572
  168. package/lib/maz-carousel.d.ts +0 -3
  169. package/lib/maz-carousel.js +0 -569
  170. package/lib/maz-checkbox.d.ts +0 -3
  171. package/lib/maz-checkbox.js +0 -359
  172. package/lib/maz-collapse.d.ts +0 -3
  173. package/lib/maz-collapse.js +0 -1238
  174. package/lib/maz-dialog.d.ts +0 -3
  175. package/lib/maz-dialog.js +0 -1315
  176. package/lib/maz-draggable-list.d.ts +0 -3
  177. package/lib/maz-draggable-list.js +0 -439
  178. package/lib/maz-dropdown.d.ts +0 -3
  179. package/lib/maz-dropdown.js +0 -438
  180. package/lib/maz-dropzone.d.ts +0 -3
  181. package/lib/maz-dropzone.js +0 -664
  182. package/lib/maz-flex.d.ts +0 -3
  183. package/lib/maz-flex.js +0 -427
  184. package/lib/maz-gallery.d.ts +0 -3
  185. package/lib/maz-gallery.js +0 -672
  186. package/lib/maz-img.d.ts +0 -3
  187. package/lib/maz-img.js +0 -612
  188. package/lib/maz-input-tags.d.ts +0 -3
  189. package/lib/maz-input-tags.js +0 -1207
  190. package/lib/maz-input.d.ts +0 -3
  191. package/lib/maz-input.js +0 -1076
  192. package/lib/maz-list-item.d.ts +0 -3
  193. package/lib/maz-list-item.js +0 -304
  194. package/lib/maz-list.d.ts +0 -3
  195. package/lib/maz-list.js +0 -331
  196. package/lib/maz-loader.d.ts +0 -3
  197. package/lib/maz-loader.js +0 -304
  198. package/lib/maz-pagination.d.ts +0 -3
  199. package/lib/maz-pagination.js +0 -1414
  200. package/lib/maz-phone-number-input.d.ts +0 -3
  201. package/lib/maz-phone-number-input.js +0 -3776
  202. package/lib/maz-picker.d.ts +0 -3
  203. package/lib/maz-picker.js +0 -6474
  204. package/lib/maz-plotly.d.ts +0 -3
  205. package/lib/maz-plotly.js +0 -500
  206. package/lib/maz-progress-bar.d.ts +0 -3
  207. package/lib/maz-progress-bar.js +0 -398
  208. package/lib/maz-radio.d.ts +0 -3
  209. package/lib/maz-radio.js +0 -358
  210. package/lib/maz-read-more.d.ts +0 -3
  211. package/lib/maz-read-more.js +0 -344
  212. package/lib/maz-responsive-menu.d.ts +0 -3
  213. package/lib/maz-responsive-menu.js +0 -438
  214. package/lib/maz-search.d.ts +0 -3
  215. package/lib/maz-search.js +0 -1590
  216. package/lib/maz-select.d.ts +0 -3
  217. package/lib/maz-select.js +0 -2740
  218. package/lib/maz-sidebar.d.ts +0 -3
  219. package/lib/maz-sidebar.js +0 -815
  220. package/lib/maz-slider.d.ts +0 -3
  221. package/lib/maz-slider.js +0 -1014
  222. package/lib/maz-spinner.d.ts +0 -3
  223. package/lib/maz-spinner.js +0 -328
  224. package/lib/maz-stepper.d.ts +0 -3
  225. package/lib/maz-stepper.js +0 -1011
  226. package/lib/maz-switch.d.ts +0 -3
  227. package/lib/maz-switch.js +0 -375
  228. package/lib/maz-tabs-bar.d.ts +0 -3
  229. package/lib/maz-tabs-bar.js +0 -428
  230. package/lib/maz-tabs-content-item.d.ts +0 -3
  231. package/lib/maz-tabs-content-item.js +0 -376
  232. package/lib/maz-tabs-content.d.ts +0 -3
  233. package/lib/maz-tabs-content.js +0 -367
  234. package/lib/maz-transition-expand.d.ts +0 -3
  235. package/lib/maz-transition-expand.js +0 -328
  236. package/lib/maz-ui.common.d.ts +0 -1
  237. package/lib/maz-ui.common.js +0 -17202
@@ -0,0 +1,21 @@
1
+ import type { CountryCallingCode, CountryCode, NationalNumber, NumberType } from 'libphonenumber-js';
2
+ import type locales from './constantes/locales';
3
+ export type Result = {
4
+ isValid: boolean;
5
+ isPossible?: boolean;
6
+ countryCode?: CountryCode;
7
+ countryCallingCode?: CountryCallingCode;
8
+ nationalNumber?: NationalNumber;
9
+ type?: NumberType;
10
+ formatInternational?: string;
11
+ formatNational?: string;
12
+ uri?: string;
13
+ e164?: string;
14
+ rfc3966?: string;
15
+ };
16
+ export type Translations = typeof locales;
17
+ export type Country = {
18
+ iso2: CountryCode;
19
+ dialCode: CountryCallingCode;
20
+ name: string;
21
+ };
@@ -0,0 +1,2 @@
1
+ import type { CountryCode } from 'libphonenumber-js';
2
+ export declare const countriesNameListByIsoCode: Record<CountryCode, string>;
@@ -0,0 +1,12 @@
1
+ import { type CountryCode, type Examples } from 'libphonenumber-js';
2
+ import type { Country, Result } from '../types';
3
+ export declare function getCountryName(code: CountryCode | string, customCountriesNameListByIsoCode?: Record<CountryCode, string>): string | undefined;
4
+ export declare function loadPhoneNumberExamplesFile(): Promise<Examples>;
5
+ export declare function getExamplePhoneNumber(countryCode: CountryCode): import("libphonenumber-js").PhoneNumber | undefined;
6
+ export declare function sanitizePhoneNumber(input?: string): string | undefined;
7
+ export declare function getCountriesList(customCountriesNameListByIsoCode?: Record<CountryCode, string>): Country[] | undefined;
8
+ export declare function browserLocale(): string | undefined;
9
+ export declare function isCountryAvailable(locale: string): boolean;
10
+ export declare const getResultsFromPhoneNumber: (countryCode?: CountryCode, phoneNumber?: string) => Result;
11
+ export declare function getAsYouTypeFormat(countryCode: CountryCode, phoneNumber?: string): string | undefined;
12
+ export declare function fetchCountryCode(): Promise<string | undefined>;
@@ -0,0 +1,255 @@
1
+ import type { CountryCode } from 'libphonenumber-js';
2
+ import type { Color, Position, Size } from './types';
3
+ import { type PropType } from 'vue';
4
+ export type { Color, Size, Position } from './types';
5
+ export type { CountryCode } from 'libphonenumber-js';
6
+ export type { Result, Translations } from './MazPhoneNumberInput/types';
7
+ declare const _default: import("vue").DefineComponent<{
8
+ modelValue: {
9
+ type: StringConstructor;
10
+ validator: (prop: string) => boolean;
11
+ default: undefined;
12
+ };
13
+ id: {
14
+ type: StringConstructor;
15
+ default: undefined;
16
+ };
17
+ placeholder: {
18
+ type: StringConstructor;
19
+ default: undefined;
20
+ };
21
+ defaultPhoneNumber: {
22
+ type: StringConstructor;
23
+ default: undefined;
24
+ };
25
+ defaultCountryCode: {
26
+ type: PropType<string>;
27
+ default: undefined;
28
+ validator: (code: string) => boolean;
29
+ };
30
+ preferredCountries: {
31
+ type: PropType<CountryCode[]>;
32
+ default: undefined;
33
+ };
34
+ ignoredCountries: {
35
+ type: PropType<CountryCode[]>;
36
+ default: undefined;
37
+ };
38
+ onlyCountries: {
39
+ type: PropType<CountryCode[]>;
40
+ default: undefined;
41
+ };
42
+ translations: {
43
+ type: PropType<{
44
+ countrySelector: {
45
+ placeholder: string;
46
+ error: string;
47
+ searchPlaceholder: string;
48
+ };
49
+ phoneInput: {
50
+ placeholder: string;
51
+ example: string;
52
+ };
53
+ }>;
54
+ default: undefined;
55
+ };
56
+ listPosition: {
57
+ type: PropType<Position>;
58
+ default: string;
59
+ validator: (value: Position) => boolean;
60
+ };
61
+ color: {
62
+ type: PropType<Color>;
63
+ default: string;
64
+ validator: (value: string) => boolean;
65
+ };
66
+ size: {
67
+ type: PropType<Size>;
68
+ default: string;
69
+ validator: (value: string) => boolean;
70
+ };
71
+ noFlags: {
72
+ type: BooleanConstructor;
73
+ default: boolean;
74
+ };
75
+ disabled: {
76
+ type: BooleanConstructor;
77
+ default: boolean;
78
+ };
79
+ noExample: {
80
+ type: BooleanConstructor;
81
+ default: boolean;
82
+ };
83
+ noSearch: {
84
+ type: BooleanConstructor;
85
+ default: boolean;
86
+ };
87
+ noUseBrowserLocale: {
88
+ type: BooleanConstructor;
89
+ default: boolean;
90
+ };
91
+ fetchCountry: {
92
+ type: BooleanConstructor;
93
+ default: boolean;
94
+ };
95
+ noCountrySelector: {
96
+ type: BooleanConstructor;
97
+ default: boolean;
98
+ };
99
+ showCodeOnList: {
100
+ type: BooleanConstructor;
101
+ default: boolean;
102
+ };
103
+ error: {
104
+ type: BooleanConstructor;
105
+ default: boolean;
106
+ };
107
+ customCountriesList: {
108
+ type: PropType<Record<CountryCode, string>>;
109
+ default: undefined;
110
+ };
111
+ }, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
112
+ [key: string]: any;
113
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update" | "update:model-value" | "country-code")[], "update" | "update:model-value" | "country-code", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
114
+ modelValue: {
115
+ type: StringConstructor;
116
+ validator: (prop: string) => boolean;
117
+ default: undefined;
118
+ };
119
+ id: {
120
+ type: StringConstructor;
121
+ default: undefined;
122
+ };
123
+ placeholder: {
124
+ type: StringConstructor;
125
+ default: undefined;
126
+ };
127
+ defaultPhoneNumber: {
128
+ type: StringConstructor;
129
+ default: undefined;
130
+ };
131
+ defaultCountryCode: {
132
+ type: PropType<string>;
133
+ default: undefined;
134
+ validator: (code: string) => boolean;
135
+ };
136
+ preferredCountries: {
137
+ type: PropType<CountryCode[]>;
138
+ default: undefined;
139
+ };
140
+ ignoredCountries: {
141
+ type: PropType<CountryCode[]>;
142
+ default: undefined;
143
+ };
144
+ onlyCountries: {
145
+ type: PropType<CountryCode[]>;
146
+ default: undefined;
147
+ };
148
+ translations: {
149
+ type: PropType<{
150
+ countrySelector: {
151
+ placeholder: string;
152
+ error: string;
153
+ searchPlaceholder: string;
154
+ };
155
+ phoneInput: {
156
+ placeholder: string;
157
+ example: string;
158
+ };
159
+ }>;
160
+ default: undefined;
161
+ };
162
+ listPosition: {
163
+ type: PropType<Position>;
164
+ default: string;
165
+ validator: (value: Position) => boolean;
166
+ };
167
+ color: {
168
+ type: PropType<Color>;
169
+ default: string;
170
+ validator: (value: string) => boolean;
171
+ };
172
+ size: {
173
+ type: PropType<Size>;
174
+ default: string;
175
+ validator: (value: string) => boolean;
176
+ };
177
+ noFlags: {
178
+ type: BooleanConstructor;
179
+ default: boolean;
180
+ };
181
+ disabled: {
182
+ type: BooleanConstructor;
183
+ default: boolean;
184
+ };
185
+ noExample: {
186
+ type: BooleanConstructor;
187
+ default: boolean;
188
+ };
189
+ noSearch: {
190
+ type: BooleanConstructor;
191
+ default: boolean;
192
+ };
193
+ noUseBrowserLocale: {
194
+ type: BooleanConstructor;
195
+ default: boolean;
196
+ };
197
+ fetchCountry: {
198
+ type: BooleanConstructor;
199
+ default: boolean;
200
+ };
201
+ noCountrySelector: {
202
+ type: BooleanConstructor;
203
+ default: boolean;
204
+ };
205
+ showCodeOnList: {
206
+ type: BooleanConstructor;
207
+ default: boolean;
208
+ };
209
+ error: {
210
+ type: BooleanConstructor;
211
+ default: boolean;
212
+ };
213
+ customCountriesList: {
214
+ type: PropType<Record<CountryCode, string>>;
215
+ default: undefined;
216
+ };
217
+ }>> & {
218
+ onUpdate?: ((...args: any[]) => any) | undefined;
219
+ "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
220
+ "onCountry-code"?: ((...args: any[]) => any) | undefined;
221
+ }, {
222
+ id: string;
223
+ modelValue: string;
224
+ placeholder: string;
225
+ defaultPhoneNumber: string;
226
+ defaultCountryCode: string;
227
+ preferredCountries: CountryCode[];
228
+ ignoredCountries: CountryCode[];
229
+ onlyCountries: CountryCode[];
230
+ translations: {
231
+ countrySelector: {
232
+ placeholder: string;
233
+ error: string;
234
+ searchPlaceholder: string;
235
+ };
236
+ phoneInput: {
237
+ placeholder: string;
238
+ example: string;
239
+ };
240
+ };
241
+ listPosition: Position;
242
+ color: Color;
243
+ size: Size;
244
+ noFlags: boolean;
245
+ disabled: boolean;
246
+ noExample: boolean;
247
+ noSearch: boolean;
248
+ noUseBrowserLocale: boolean;
249
+ fetchCountry: boolean;
250
+ noCountrySelector: boolean;
251
+ showCodeOnList: boolean;
252
+ error: boolean;
253
+ customCountriesList: Record<CountryCode, string>;
254
+ }>;
255
+ export default _default;