maz-ui 2.4.2 → 2.4.7

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/LICENSE +21 -0
  2. package/README.md +66 -0
  3. package/bin/index.js +63 -0
  4. package/bin/lib/_constantes/default-colors.js +69 -0
  5. package/bin/lib/index.d.ts +2 -0
  6. package/bin/lib/index.js +145 -0
  7. package/bin/lib/methods/generate-root-css.js +49 -0
  8. package/bin/lib/methods/get-theme-settings.js +58 -0
  9. package/bin/lib/methods/set-css-vars.js +11 -0
  10. package/lib/css/base.css +1 -0
  11. package/lib/css/index.css +1 -0
  12. package/lib/css/maz-avatar.css +1 -0
  13. package/lib/css/maz-bottom-sheet.css +1 -0
  14. package/lib/css/maz-btn-group.css +1 -0
  15. package/lib/css/maz-btn.css +0 -0
  16. package/lib/css/maz-card.css +1 -0
  17. package/lib/css/maz-carousel.css +1 -0
  18. package/lib/css/maz-checkbox.css +1 -0
  19. package/lib/css/maz-collapse.css +1 -0
  20. package/lib/css/maz-dialog.css +1 -0
  21. package/lib/css/maz-draggable-list.css +1 -0
  22. package/lib/css/maz-dropdown.css +1 -0
  23. package/lib/css/maz-dropzone.css +1 -0
  24. package/lib/css/maz-flex.css +0 -0
  25. package/lib/css/maz-gallery.css +0 -0
  26. package/lib/css/maz-img.css +1 -0
  27. package/lib/css/maz-input-tags.css +1 -0
  28. package/lib/css/maz-input.css +0 -0
  29. package/lib/css/maz-list-item.css +1 -0
  30. package/lib/css/maz-list.css +1 -0
  31. package/lib/css/maz-loader.css +0 -0
  32. package/lib/css/maz-pagination.css +1 -0
  33. package/lib/css/maz-phone-number-input.css +1 -0
  34. package/lib/css/maz-picker.css +1 -0
  35. package/lib/css/maz-plotly.css +0 -0
  36. package/lib/css/maz-progress-bar.css +1 -0
  37. package/lib/css/maz-radio.css +1 -0
  38. package/lib/css/maz-read-more.css +1 -0
  39. package/lib/css/maz-responsive-menu.css +1 -0
  40. package/lib/css/maz-search.css +1 -0
  41. package/lib/css/maz-select.css +0 -0
  42. package/lib/css/maz-sidebar.css +1 -0
  43. package/lib/css/maz-slider.css +1 -0
  44. package/lib/css/maz-spinner.css +0 -0
  45. package/lib/css/maz-stepper.css +1 -0
  46. package/lib/css/maz-switch.css +1 -0
  47. package/lib/css/maz-tabs-bar.css +1 -0
  48. package/lib/css/maz-tabs-content-item.css +1 -0
  49. package/lib/css/maz-tabs-content.css +1 -0
  50. package/lib/css/maz-transition-expand.css +0 -0
  51. package/lib/index.d.ts +1 -0
  52. package/lib/index.js +1 -0
  53. package/lib/maz-avatar.d.ts +3 -0
  54. package/lib/maz-avatar.js +430 -0
  55. package/lib/maz-bottom-sheet.d.ts +3 -0
  56. package/lib/maz-bottom-sheet.js +1045 -0
  57. package/lib/maz-btn-group.d.ts +3 -0
  58. package/lib/maz-btn-group.js +907 -0
  59. package/lib/maz-btn.d.ts +3 -0
  60. package/lib/maz-btn.js +764 -0
  61. package/lib/maz-card.d.ts +3 -0
  62. package/lib/maz-card.js +572 -0
  63. package/lib/maz-carousel.d.ts +3 -0
  64. package/lib/maz-carousel.js +569 -0
  65. package/lib/maz-checkbox.d.ts +3 -0
  66. package/lib/maz-checkbox.js +359 -0
  67. package/lib/maz-collapse.d.ts +3 -0
  68. package/lib/maz-collapse.js +1238 -0
  69. package/lib/maz-dialog.d.ts +3 -0
  70. package/lib/maz-dialog.js +1315 -0
  71. package/lib/maz-draggable-list.d.ts +3 -0
  72. package/lib/maz-draggable-list.js +439 -0
  73. package/lib/maz-dropdown.d.ts +3 -0
  74. package/lib/maz-dropdown.js +438 -0
  75. package/lib/maz-dropzone.d.ts +3 -0
  76. package/lib/maz-dropzone.js +664 -0
  77. package/lib/maz-flex.d.ts +3 -0
  78. package/lib/maz-flex.js +427 -0
  79. package/lib/maz-gallery.d.ts +3 -0
  80. package/lib/maz-gallery.js +672 -0
  81. package/lib/maz-img.d.ts +3 -0
  82. package/lib/maz-img.js +612 -0
  83. package/lib/maz-input-tags.d.ts +3 -0
  84. package/lib/maz-input-tags.js +1207 -0
  85. package/lib/maz-input.d.ts +3 -0
  86. package/lib/maz-input.js +1076 -0
  87. package/lib/maz-list-item.d.ts +3 -0
  88. package/lib/maz-list-item.js +304 -0
  89. package/lib/maz-list.d.ts +3 -0
  90. package/lib/maz-list.js +331 -0
  91. package/lib/maz-loader.d.ts +3 -0
  92. package/lib/maz-loader.js +304 -0
  93. package/lib/maz-pagination.d.ts +3 -0
  94. package/lib/maz-pagination.js +1414 -0
  95. package/lib/maz-phone-number-input.d.ts +3 -0
  96. package/lib/maz-phone-number-input.js +3776 -0
  97. package/lib/maz-picker.d.ts +3 -0
  98. package/lib/maz-picker.js +6474 -0
  99. package/lib/maz-plotly.d.ts +3 -0
  100. package/lib/maz-plotly.js +500 -0
  101. package/lib/maz-progress-bar.d.ts +3 -0
  102. package/lib/maz-progress-bar.js +398 -0
  103. package/lib/maz-radio.d.ts +3 -0
  104. package/lib/maz-radio.js +358 -0
  105. package/lib/maz-read-more.d.ts +3 -0
  106. package/lib/maz-read-more.js +344 -0
  107. package/lib/maz-responsive-menu.d.ts +3 -0
  108. package/lib/maz-responsive-menu.js +438 -0
  109. package/lib/maz-search.d.ts +3 -0
  110. package/lib/maz-search.js +1590 -0
  111. package/lib/maz-select.d.ts +3 -0
  112. package/lib/maz-select.js +2740 -0
  113. package/lib/maz-sidebar.d.ts +3 -0
  114. package/lib/maz-sidebar.js +815 -0
  115. package/lib/maz-slider.d.ts +3 -0
  116. package/lib/maz-slider.js +1014 -0
  117. package/lib/maz-spinner.d.ts +3 -0
  118. package/lib/maz-spinner.js +328 -0
  119. package/lib/maz-stepper.d.ts +3 -0
  120. package/lib/maz-stepper.js +1011 -0
  121. package/lib/maz-switch.d.ts +3 -0
  122. package/lib/maz-switch.js +375 -0
  123. package/lib/maz-tabs-bar.d.ts +3 -0
  124. package/lib/maz-tabs-bar.js +428 -0
  125. package/lib/maz-tabs-content-item.d.ts +3 -0
  126. package/lib/maz-tabs-content-item.js +376 -0
  127. package/lib/maz-tabs-content.d.ts +3 -0
  128. package/lib/maz-tabs-content.js +367 -0
  129. package/lib/maz-transition-expand.d.ts +3 -0
  130. package/lib/maz-transition-expand.js +328 -0
  131. package/lib/maz-ui.common.d.ts +1 -0
  132. package/lib/maz-ui.common.js +17202 -0
  133. package/package.json +81 -145
  134. package/components/MazArrowIcon.d.ts +0 -43
  135. package/components/MazArrowIcon.js +0 -1
  136. package/components/MazAvatar.d.ts +0 -149
  137. package/components/MazAvatar.js +0 -3
  138. package/components/MazBackdrop.d.ts +0 -89
  139. package/components/MazBackdrop.js +0 -3
  140. package/components/MazBadge.d.ts +0 -68
  141. package/components/MazBadge.js +0 -1
  142. package/components/MazBottomSheet.d.ts +0 -29
  143. package/components/MazBottomSheet.js +0 -3
  144. package/components/MazBtn.d.ts +0 -171
  145. package/components/MazBtn.js +0 -3
  146. package/components/MazCard.d.ts +0 -183
  147. package/components/MazCard.js +0 -3
  148. package/components/MazCarousel.d.ts +0 -16
  149. package/components/MazCarousel.js +0 -3
  150. package/components/MazChart/includes.d.ts +0 -11
  151. package/components/MazChart.d.ts +0 -114
  152. package/components/MazChart.js +0 -1
  153. package/components/MazCheckbox.d.ts +0 -49
  154. package/components/MazCheckbox.js +0 -1
  155. package/components/MazDialog.d.ts +0 -29
  156. package/components/MazDialog.js +0 -3
  157. package/components/MazDialogPromise/use-maz-dialog-promise.d.ts +0 -30
  158. package/components/MazDialogPromise.d.ts +0 -28
  159. package/components/MazDialogPromise.js +0 -3
  160. package/components/MazDrawer.d.ts +0 -59
  161. package/components/MazDrawer.js +0 -3
  162. package/components/MazDropzone.d.ts +0 -128
  163. package/components/MazDropzone.js +0 -3
  164. package/components/MazGallery.d.ts +0 -144
  165. package/components/MazGallery.js +0 -3
  166. package/components/MazIcon.d.ts +0 -66
  167. package/components/MazIcon.js +0 -3
  168. package/components/MazInput.d.ts +0 -276
  169. package/components/MazInput.js +0 -3
  170. package/components/MazInputNumber.d.ts +0 -67
  171. package/components/MazInputNumber.js +0 -3
  172. package/components/MazInputPrice.d.ts +0 -64
  173. package/components/MazInputPrice.js +0 -3
  174. package/components/MazInputTags.d.ts +0 -96
  175. package/components/MazInputTags.js +0 -3
  176. package/components/MazLazyImg.d.ts +0 -80
  177. package/components/MazLazyImg.js +0 -3
  178. package/components/MazPhoneNumberInput/constantes/locales.d.ts +0 -12
  179. package/components/MazPhoneNumberInput/types.d.ts +0 -21
  180. package/components/MazPhoneNumberInput/utils/countries-name-list-by-iso-code.d.ts +0 -2
  181. package/components/MazPhoneNumberInput/utils/index.d.ts +0 -12
  182. package/components/MazPhoneNumberInput.d.ts +0 -255
  183. package/components/MazPhoneNumberInput.js +0 -3
  184. package/components/MazPicker/MazPickerCalendar.vue.d.ts +0 -137
  185. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +0 -22
  186. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +0 -114
  187. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +0 -124
  188. package/components/MazPicker/MazPickerCalendarSwitcher.vue.d.ts +0 -38
  189. package/components/MazPicker/MazPickerContainer.vue.d.ts +0 -212
  190. package/components/MazPicker/MazPickerHeader.vue.d.ts +0 -84
  191. package/components/MazPicker/MazPickerMonthSwitcher.vue.d.ts +0 -43
  192. package/components/MazPicker/MazPickerShortcuts.vue.d.ts +0 -62
  193. package/components/MazPicker/MazPickerTime.vue.d.ts +0 -129
  194. package/components/MazPicker/MazPickerYearSwitcher.vue.d.ts +0 -35
  195. package/components/MazPicker/types.d.ts +0 -15
  196. package/components/MazPicker/utils.d.ts +0 -54
  197. package/components/MazPicker.d.ts +0 -313
  198. package/components/MazPicker.js +0 -3
  199. package/components/MazRadioButtons.d.ts +0 -69
  200. package/components/MazRadioButtons.js +0 -1
  201. package/components/MazSelect.d.ts +0 -176
  202. package/components/MazSelect.js +0 -3
  203. package/components/MazSlider/utils.d.ts +0 -15
  204. package/components/MazSlider.d.ts +0 -96
  205. package/components/MazSlider.js +0 -3
  206. package/components/MazSpinner.d.ts +0 -30
  207. package/components/MazSpinner.js +0 -1
  208. package/components/MazStepper.d.ts +0 -73
  209. package/components/MazStepper.js +0 -1
  210. package/components/MazSwitch.d.ts +0 -56
  211. package/components/MazSwitch.js +0 -1
  212. package/components/MazTabsBar.d.ts +0 -49
  213. package/components/MazTabsBar.js +0 -3
  214. package/components/MazTabsContent.d.ts +0 -16
  215. package/components/MazTabsContent.js +0 -1
  216. package/components/MazTabsContentItem.d.ts +0 -14
  217. package/components/MazTabsContentItem.js +0 -3
  218. package/components/MazTextarea/textarea-autogrow.d.ts +0 -9
  219. package/components/MazTextarea.d.ts +0 -125
  220. package/components/MazTextarea.js +0 -1
  221. package/components/MazTransitionExpand.d.ts +0 -4
  222. package/components/MazTransitionExpand.js +0 -1
  223. package/components/index.d.ts +0 -34
  224. package/components/index.js +0 -36
  225. package/components/no_photo-a72545e4.js +0 -1
  226. package/components/types.d.ts +0 -17
  227. package/css/aos.css +0 -1
  228. package/css/main.css +0 -1
  229. package/maz-ui.d.ts +0 -307
  230. package/modules/index.js +0 -3
  231. package/modules/no_photo-a72545e4.js +0 -1
  232. package/tailwindcss/tailwind.config.js +0 -65
  233. package/tailwindcss/utils/colors.js +0 -28
  234. package/tailwindcss/variables/breakpoints.js +0 -15
  235. package/tailwindcss/variables/colors.js +0 -44
  236. package/tailwindcss/variables/utilities.js +0 -20
  237. package/tailwindcss/variables/z-indexes.js +0 -15
@@ -1,21 +0,0 @@
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
- };
@@ -1,2 +0,0 @@
1
- import type { CountryCode } from 'libphonenumber-js';
2
- export declare const countriesNameListByIsoCode: Record<CountryCode, string>;
@@ -1,12 +0,0 @@
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>;
@@ -1,255 +0,0 @@
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;