maz-ui 3.4.5 → 3.6.1

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 (176) hide show
  1. package/components/MazAvatar.d.ts +156 -149
  2. package/components/MazAvatar.mjs +656 -0
  3. package/components/MazAvatar.umd.js +2 -0
  4. package/components/MazBackdrop.d.ts +89 -89
  5. package/components/MazBackdrop.mjs +140 -0
  6. package/components/MazBackdrop.umd.js +2 -0
  7. package/components/MazBadge.d.ts +73 -68
  8. package/components/MazBadge.mjs +61 -0
  9. package/components/MazBadge.umd.js +2 -0
  10. package/components/MazBottomSheet.d.ts +36 -29
  11. package/components/MazBottomSheet.mjs +553 -0
  12. package/components/MazBottomSheet.umd.js +2 -0
  13. package/components/MazBtn.d.ts +178 -171
  14. package/components/MazBtn.mjs +371 -0
  15. package/components/MazBtn.umd.js +2 -0
  16. package/components/MazCard.d.ts +194 -183
  17. package/components/MazCard.mjs +1390 -0
  18. package/components/MazCard.umd.js +2 -0
  19. package/components/MazCarousel.d.ts +24 -16
  20. package/components/MazCarousel.mjs +469 -0
  21. package/components/MazCarousel.umd.js +2 -0
  22. package/components/MazChart/includes.d.ts +11 -11
  23. package/components/MazChart.d.ts +114 -114
  24. package/components/MazChart.mjs +135 -0
  25. package/components/MazChart.umd.js +2 -0
  26. package/components/MazCheckbox.d.ts +54 -49
  27. package/components/MazCheckbox.mjs +86 -0
  28. package/components/MazCheckbox.umd.js +2 -0
  29. package/components/MazDialog.d.ts +40 -29
  30. package/components/MazDialog.mjs +566 -0
  31. package/components/MazDialog.umd.js +2 -0
  32. package/components/MazDialogPromise/use-maz-dialog-promise.d.ts +30 -30
  33. package/components/MazDialogPromise.d.ts +36 -28
  34. package/components/MazDialogPromise.mjs +692 -0
  35. package/components/MazDialogPromise.umd.js +2 -0
  36. package/components/MazDrawer.d.ts +69 -59
  37. package/components/MazDrawer.mjs +572 -0
  38. package/components/MazDrawer.umd.js +2 -0
  39. package/components/MazDropzone.d.ts +128 -128
  40. package/components/MazDropzone.mjs +369 -0
  41. package/components/MazDropzone.umd.js +2 -0
  42. package/components/MazGallery.d.ts +144 -144
  43. package/components/MazGallery.mjs +948 -0
  44. package/components/MazGallery.umd.js +2 -0
  45. package/components/MazIcon.d.ts +64 -66
  46. package/components/MazIcon.mjs +161 -0
  47. package/components/MazIcon.umd.js +2 -0
  48. package/components/MazInput.d.ts +276 -276
  49. package/components/MazInput.mjs +750 -0
  50. package/components/MazInput.umd.js +2 -0
  51. package/components/MazInputNumber.d.ts +65 -67
  52. package/components/MazInputNumber.mjs +857 -0
  53. package/components/MazInputNumber.umd.js +2 -0
  54. package/components/MazInputPrice.d.ts +69 -64
  55. package/components/MazInputPrice.mjs +889 -0
  56. package/components/MazInputPrice.umd.js +2 -0
  57. package/components/MazInputTags.d.ts +94 -96
  58. package/components/MazInputTags.mjs +904 -0
  59. package/components/MazInputTags.umd.js +2 -0
  60. package/components/MazLazyImg.d.ts +85 -80
  61. package/components/MazLazyImg.mjs +376 -0
  62. package/components/MazLazyImg.umd.js +2 -0
  63. package/components/MazPhoneNumberInput/constantes/locales.d.ts +12 -12
  64. package/components/MazPhoneNumberInput/types.d.ts +21 -21
  65. package/components/MazPhoneNumberInput/utils/countries-name-list-by-iso-code.d.ts +2 -2
  66. package/components/MazPhoneNumberInput/utils/index.d.ts +12 -12
  67. package/components/MazPhoneNumberInput.d.ts +253 -255
  68. package/components/MazPhoneNumberInput.mjs +1904 -0
  69. package/components/MazPhoneNumberInput.umd.js +2 -0
  70. package/components/MazPicker/MazPickerCalendar.vue.d.ts +135 -137
  71. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +20 -22
  72. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +112 -114
  73. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +122 -124
  74. package/components/MazPicker/MazPickerCalendarSwitcher.vue.d.ts +36 -38
  75. package/components/MazPicker/MazPickerContainer.vue.d.ts +210 -212
  76. package/components/MazPicker/MazPickerFooter.vue.d.ts +16 -0
  77. package/components/MazPicker/MazPickerHeader.vue.d.ts +82 -84
  78. package/components/MazPicker/MazPickerMonthSwitcher.vue.d.ts +41 -43
  79. package/components/MazPicker/MazPickerShortcuts.vue.d.ts +60 -62
  80. package/components/MazPicker/MazPickerTime.vue.d.ts +127 -129
  81. package/components/MazPicker/MazPickerYearSwitcher.vue.d.ts +33 -35
  82. package/components/MazPicker/types.d.ts +15 -15
  83. package/components/MazPicker/utils.d.ts +54 -54
  84. package/components/MazPicker.d.ts +311 -313
  85. package/components/MazPicker.mjs +2942 -0
  86. package/components/MazPicker.umd.js +2 -0
  87. package/components/MazRadioButtons.d.ts +77 -69
  88. package/components/MazRadioButtons.mjs +80 -0
  89. package/components/MazRadioButtons.umd.js +2 -0
  90. package/components/MazSelect.d.ts +185 -176
  91. package/components/MazSelect.mjs +1082 -0
  92. package/components/MazSelect.umd.js +2 -0
  93. package/components/MazSlider/utils.d.ts +15 -15
  94. package/components/MazSlider.d.ts +94 -96
  95. package/components/MazSlider.mjs +377 -0
  96. package/components/MazSlider.umd.js +2 -0
  97. package/components/MazSpinner.d.ts +28 -30
  98. package/components/MazSpinner.mjs +59 -0
  99. package/components/MazSpinner.umd.js +2 -0
  100. package/components/MazStepper.d.ts +71 -73
  101. package/components/MazStepper.mjs +227 -0
  102. package/components/MazStepper.umd.js +2 -0
  103. package/components/MazSwitch.d.ts +54 -56
  104. package/components/MazSwitch.mjs +61 -0
  105. package/components/MazSwitch.umd.js +2 -0
  106. package/components/MazTabsBar.d.ts +47 -49
  107. package/components/MazTabsBar.mjs +470 -0
  108. package/components/MazTabsBar.umd.js +2 -0
  109. package/components/MazTabsContent.d.ts +21 -16
  110. package/components/MazTabsContent.mjs +89 -0
  111. package/components/MazTabsContent.umd.js +2 -0
  112. package/components/MazTabsContentItem.d.ts +19 -14
  113. package/components/MazTabsContentItem.mjs +61 -0
  114. package/components/MazTabsContentItem.umd.js +2 -0
  115. package/components/MazTextarea/textarea-autogrow.d.ts +9 -9
  116. package/components/MazTextarea.d.ts +123 -125
  117. package/components/MazTextarea.mjs +260 -0
  118. package/components/MazTextarea.umd.js +2 -0
  119. package/components/MazTransitionExpand.d.ts +9 -4
  120. package/components/MazTransitionExpand.mjs +62 -0
  121. package/components/MazTransitionExpand.umd.js +2 -0
  122. package/components/index.d.ts +33 -34
  123. package/components/index.mjs +35 -0
  124. package/components/index.umd.js +35 -0
  125. package/components/no_photo-410a8f01.mjs +4 -0
  126. package/components/types.d.ts +17 -17
  127. package/css/main.css +1 -1
  128. package/maz-ui.d.ts +234 -231
  129. package/modules/maz-ui.mjs +1892 -0
  130. package/modules/maz-ui.umd.js +2 -0
  131. package/modules/no_photo-410a8f01.mjs +4 -0
  132. package/package.json +45 -54
  133. package/tailwindcss/tailwind.config.js +6 -7
  134. package/tailwindcss/utils/colors.js +1 -3
  135. package/tailwindcss/variables/breakpoints.js +1 -2
  136. package/tailwindcss/variables/utilities.js +1 -2
  137. package/tailwindcss/variables/z-indexes.js +1 -1
  138. package/components/MazArrowIcon.d.ts +0 -43
  139. package/components/MazArrowIcon.js +0 -1
  140. package/components/MazAvatar.js +0 -3
  141. package/components/MazBackdrop.js +0 -3
  142. package/components/MazBadge.js +0 -1
  143. package/components/MazBottomSheet.js +0 -3
  144. package/components/MazBtn.js +0 -3
  145. package/components/MazCard.js +0 -3
  146. package/components/MazCarousel.js +0 -3
  147. package/components/MazChart.js +0 -1
  148. package/components/MazCheckbox.js +0 -1
  149. package/components/MazDialog.js +0 -3
  150. package/components/MazDialogPromise.js +0 -3
  151. package/components/MazDrawer.js +0 -3
  152. package/components/MazDropzone.js +0 -3
  153. package/components/MazGallery.js +0 -3
  154. package/components/MazIcon.js +0 -3
  155. package/components/MazInput.js +0 -3
  156. package/components/MazInputNumber.js +0 -3
  157. package/components/MazInputPrice.js +0 -3
  158. package/components/MazInputTags.js +0 -3
  159. package/components/MazLazyImg.js +0 -3
  160. package/components/MazPhoneNumberInput.js +0 -3
  161. package/components/MazPicker.js +0 -3
  162. package/components/MazRadioButtons.js +0 -1
  163. package/components/MazSelect.js +0 -3
  164. package/components/MazSlider.js +0 -3
  165. package/components/MazSpinner.js +0 -1
  166. package/components/MazStepper.js +0 -1
  167. package/components/MazSwitch.js +0 -1
  168. package/components/MazTabsBar.js +0 -3
  169. package/components/MazTabsContent.js +0 -1
  170. package/components/MazTabsContentItem.js +0 -3
  171. package/components/MazTextarea.js +0 -1
  172. package/components/MazTransitionExpand.js +0 -1
  173. package/components/index.js +0 -36
  174. package/components/no_photo-a72545e4.js +0 -1
  175. package/modules/index.js +0 -3
  176. package/modules/no_photo-a72545e4.js +0 -1
@@ -1,54 +1,54 @@
1
- import type { ConfigType, OpUnitType } from 'dayjs';
2
- import type { PartialRangeValue } from './types';
3
- export type DateTimeFormatOptions = Pick<Intl.DateTimeFormatOptions, 'hour12' | 'dateStyle' | 'timeStyle' | 'timeZone'>;
4
- export declare function getFormattedDate({ value, locale, options, }: {
5
- value?: string;
6
- locale: string;
7
- options?: Intl.DateTimeFormatOptions;
8
- }): string | undefined;
9
- export declare function getRangeFormattedDate({ value, locale, options, }: {
10
- value: PartialRangeValue;
11
- locale: string;
12
- options: Intl.DateTimeFormatOptions;
13
- }): string | undefined;
14
- export declare function getFirstDayOfMonth(value: ConfigType): number;
15
- export declare function getWeekDays(locale: string, offset?: number): {
16
- label: string;
17
- dayNumber: number;
18
- }[];
19
- export declare function getDaysInMonth(date: ConfigType): number;
20
- export declare function isToday(date: ConfigType): boolean;
21
- export declare function isSameDate(date: ConfigType, date2: ConfigType, unit: OpUnitType): boolean;
22
- export declare function isSmaller(date: ConfigType, date2: ConfigType): boolean;
23
- export declare function isSameDay(date: ConfigType, dayNumber: number): boolean;
24
- export declare function getISODate(value?: ConfigType, format?: string): string | undefined;
25
- export declare function getRangeISODate(value: PartialRangeValue, format?: string): {
26
- start: string | undefined;
27
- end: string | undefined;
28
- };
29
- type CheckValueResponse = {
30
- newValue?: string;
31
- newCurrentDate?: string;
32
- };
33
- export declare function checkValueWithMinMaxDates({ value, minDate, maxDate, format, }: {
34
- value: string;
35
- minDate?: string;
36
- maxDate?: string;
37
- format: string;
38
- }): CheckValueResponse;
39
- export declare function isValueDisabledWeekly({ value, disabledWeekly, }: {
40
- value: string;
41
- disabledWeekly: number[];
42
- }): boolean;
43
- export declare function isValueDisabledDate({ value, disabledDates, }: {
44
- value: string;
45
- disabledDates: string[];
46
- }): boolean;
47
- export declare const scrollToTarget: (scrollContainer: HTMLElement, target: HTMLElement, offset?: number, hasSmoothEffect?: boolean) => void;
48
- export declare const findNearestNumberInList: (list: number[], number: number) => number;
49
- export declare function convertHour24to12Format(baseHour: number): number;
50
- export declare function convertHour12to24Format(baseHour: number): number;
51
- export declare const convert12To24TimeFormat: (timeStr: string) => string;
52
- export declare function getBrowserLocale(): string | undefined;
53
- export declare function fetchLocale(): Promise<string | undefined>;
54
- export {};
1
+ import type { ConfigType, OpUnitType } from 'dayjs';
2
+ import type { PartialRangeValue } from './types';
3
+ export type DateTimeFormatOptions = Pick<Intl.DateTimeFormatOptions, 'hour12' | 'dateStyle' | 'timeStyle' | 'timeZone'>;
4
+ export declare function getFormattedDate({ value, locale, options, }: {
5
+ value?: string;
6
+ locale: string;
7
+ options?: Intl.DateTimeFormatOptions;
8
+ }): string | undefined;
9
+ export declare function getRangeFormattedDate({ value, locale, options, }: {
10
+ value: PartialRangeValue;
11
+ locale: string;
12
+ options: Intl.DateTimeFormatOptions;
13
+ }): string | undefined;
14
+ export declare function getFirstDayOfMonth(value: ConfigType): number;
15
+ export declare function getWeekDays(locale: string, offset?: number): {
16
+ label: string;
17
+ dayNumber: number;
18
+ }[];
19
+ export declare function getDaysInMonth(date: ConfigType): number;
20
+ export declare function isToday(date: ConfigType): boolean;
21
+ export declare function isSameDate(date: ConfigType, date2: ConfigType, unit: OpUnitType): boolean;
22
+ export declare function isSmaller(date: ConfigType, date2: ConfigType): boolean;
23
+ export declare function isSameDay(date: ConfigType, dayNumber: number): boolean;
24
+ export declare function getISODate(value?: ConfigType, format?: string): string | undefined;
25
+ export declare function getRangeISODate(value: PartialRangeValue, format?: string): {
26
+ start: string | undefined;
27
+ end: string | undefined;
28
+ };
29
+ type CheckValueResponse = {
30
+ newValue?: string;
31
+ newCurrentDate?: string;
32
+ };
33
+ export declare function checkValueWithMinMaxDates({ value, minDate, maxDate, format, }: {
34
+ value: string;
35
+ minDate?: string;
36
+ maxDate?: string;
37
+ format: string;
38
+ }): CheckValueResponse;
39
+ export declare function isValueDisabledWeekly({ value, disabledWeekly, }: {
40
+ value: string;
41
+ disabledWeekly: number[];
42
+ }): boolean;
43
+ export declare function isValueDisabledDate({ value, disabledDates, }: {
44
+ value: string;
45
+ disabledDates: string[];
46
+ }): boolean;
47
+ export declare const scrollToTarget: (scrollContainer: HTMLElement, target: HTMLElement, offset?: number, hasSmoothEffect?: boolean) => void;
48
+ export declare const findNearestNumberInList: (list: number[], number: number) => number;
49
+ export declare function convertHour24to12Format(baseHour: number): number;
50
+ export declare function convertHour12to24Format(baseHour: number): number;
51
+ export declare const convert12To24TimeFormat: (timeStr: string) => string;
52
+ export declare function getBrowserLocale(): string | undefined;
53
+ export declare function fetchLocale(): Promise<string | undefined>;
54
+ export {};