maz-ui 3.10.0 → 3.10.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 (112) hide show
  1. package/README.md +40 -0
  2. package/components/MazAvatar.d.ts +156 -0
  3. package/components/MazAvatar.mjs +4 -4
  4. package/components/MazAvatar.umd.js +2 -2
  5. package/components/MazBackdrop.d.ts +91 -0
  6. package/components/MazBadge.d.ts +73 -0
  7. package/components/MazBottomSheet.d.ts +36 -0
  8. package/components/MazBottomSheet.mjs +5 -5
  9. package/components/MazBottomSheet.umd.js +2 -2
  10. package/components/MazBtn.d.ts +178 -0
  11. package/components/MazBtn.mjs +2 -2
  12. package/components/MazBtn.umd.js +1 -1
  13. package/components/MazCard.d.ts +194 -0
  14. package/components/MazCard.mjs +8 -10
  15. package/components/MazCard.umd.js +2 -2
  16. package/components/MazCarousel.d.ts +24 -0
  17. package/components/MazCarousel.mjs +5 -5
  18. package/components/MazCarousel.umd.js +2 -2
  19. package/components/MazCheckbox.d.ts +54 -0
  20. package/components/MazDialog.d.ts +91 -0
  21. package/components/MazDialog.mjs +4 -4
  22. package/components/MazDialog.umd.js +2 -2
  23. package/components/MazDialogPromise/use-maz-dialog-promise.d.ts +30 -0
  24. package/components/MazDialogPromise.d.ts +72 -0
  25. package/components/MazDialogPromise.mjs +4 -4
  26. package/components/MazDialogPromise.umd.js +2 -2
  27. package/components/MazDrawer.d.ts +69 -0
  28. package/components/MazDrawer.mjs +2 -2
  29. package/components/MazDrawer.umd.js +1 -1
  30. package/components/MazDropzone.d.ts +128 -0
  31. package/components/MazGallery.d.ts +125 -0
  32. package/components/MazGallery.mjs +5 -7
  33. package/components/MazGallery.umd.js +2 -2
  34. package/components/MazIcon.d.ts +64 -0
  35. package/components/MazIcon.mjs +2 -2
  36. package/components/MazIcon.umd.js +1 -1
  37. package/components/MazInput.d.ts +273 -0
  38. package/components/MazInput.mjs +4 -4
  39. package/components/MazInput.umd.js +2 -2
  40. package/components/MazInputNumber.d.ts +65 -0
  41. package/components/MazInputNumber.mjs +4 -4
  42. package/components/MazInputNumber.umd.js +2 -2
  43. package/components/MazInputPrice.d.ts +69 -0
  44. package/components/MazInputPrice.mjs +4 -4
  45. package/components/MazInputPrice.umd.js +2 -2
  46. package/components/MazInputTags.d.ts +94 -0
  47. package/components/MazInputTags.mjs +6 -6
  48. package/components/MazInputTags.umd.js +2 -2
  49. package/components/MazLazyImg.d.ts +77 -0
  50. package/components/MazLazyImg.mjs +1 -1
  51. package/components/MazLazyImg.umd.js +1 -1
  52. package/components/MazPhoneNumberInput/constantes/locales.d.ts +12 -0
  53. package/components/MazPhoneNumberInput/types.d.ts +21 -0
  54. package/components/MazPhoneNumberInput/utils/countries-name-list-by-iso-code.d.ts +2 -0
  55. package/components/MazPhoneNumberInput/utils/index.d.ts +12 -0
  56. package/components/MazPhoneNumberInput.d.ts +253 -0
  57. package/components/MazPhoneNumberInput.mjs +6 -6
  58. package/components/MazPhoneNumberInput.umd.js +2 -2
  59. package/components/MazPicker/MazPickerCalendar.vue.d.ts +135 -0
  60. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +20 -0
  61. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +112 -0
  62. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +122 -0
  63. package/components/MazPicker/MazPickerCalendarSwitcher.vue.d.ts +36 -0
  64. package/components/MazPicker/MazPickerContainer.vue.d.ts +210 -0
  65. package/components/MazPicker/MazPickerFooter.vue.d.ts +16 -0
  66. package/components/MazPicker/MazPickerHeader.vue.d.ts +82 -0
  67. package/components/MazPicker/MazPickerMonthSwitcher.vue.d.ts +41 -0
  68. package/components/MazPicker/MazPickerShortcuts.vue.d.ts +60 -0
  69. package/components/MazPicker/MazPickerTime.vue.d.ts +127 -0
  70. package/components/MazPicker/MazPickerYearSwitcher.vue.d.ts +33 -0
  71. package/components/MazPicker/types.d.ts +15 -0
  72. package/components/MazPicker/utils.d.ts +54 -0
  73. package/components/MazPicker.d.ts +311 -0
  74. package/components/MazPicker.mjs +13 -16
  75. package/components/MazPicker.umd.js +2 -2
  76. package/components/MazRadioButtons.d.ts +77 -0
  77. package/components/MazSelect.d.ts +186 -0
  78. package/components/MazSelect.mjs +6 -6
  79. package/components/MazSelect.umd.js +2 -2
  80. package/components/MazSlider/utils.d.ts +15 -0
  81. package/components/MazSlider.d.ts +94 -0
  82. package/components/MazSpinner.d.ts +28 -0
  83. package/components/MazStepper.d.ts +114 -0
  84. package/components/MazStepper.mjs +6 -6
  85. package/components/MazStepper.umd.js +2 -2
  86. package/components/MazSwitch.d.ts +54 -0
  87. package/components/MazTabsBar.d.ts +47 -0
  88. package/components/MazTabsBar.mjs +2 -2
  89. package/components/MazTabsBar.umd.js +1 -1
  90. package/components/MazTabsContent.d.ts +21 -0
  91. package/components/MazTabsContent.mjs +2 -2
  92. package/components/MazTabsContent.umd.js +1 -1
  93. package/components/MazTabsContentItem.d.ts +19 -0
  94. package/components/MazTextarea/textarea-autogrow.d.ts +9 -0
  95. package/components/MazTextarea.d.ts +123 -0
  96. package/components/MazTextarea.mjs +2 -2
  97. package/components/MazTextarea.umd.js +1 -1
  98. package/components/MazTransitionExpand.d.ts +9 -0
  99. package/components/assets/no-photography-584c6185.mjs +4 -0
  100. package/components/component-list.d.ts +1 -0
  101. package/components/index.d.ts +34 -0
  102. package/components/index.mjs +36 -0
  103. package/components/types.d.ts +17 -0
  104. package/css/aos.css +1 -0
  105. package/css/main.css +1 -0
  106. package/modules/assets/no-photography-584c6185.mjs +4 -0
  107. package/modules/index.d.ts +338 -0
  108. package/modules/index.mjs +4 -4
  109. package/modules/index.umd.js +2 -2
  110. package/package.json +3 -2
  111. package/tailwindcss/tailwind.css +1 -1
  112. package/modules/assets/no-photography-7a1e4d68.mjs +0 -36
@@ -0,0 +1,82 @@
1
+ import { type PropType } from 'vue';
2
+ import type { Color } from '../types';
3
+ import type { PickerValue } from './types';
4
+ import type { DateTimeFormatOptions } from './utils';
5
+ declare const _default: import("vue").DefineComponent<{
6
+ modelValue: {
7
+ type: PropType<PickerValue>;
8
+ default: undefined;
9
+ };
10
+ color: {
11
+ type: PropType<Color>;
12
+ required: true;
13
+ };
14
+ locale: {
15
+ type: StringConstructor;
16
+ required: true;
17
+ };
18
+ noShortcuts: {
19
+ type: BooleanConstructor;
20
+ required: true;
21
+ };
22
+ double: {
23
+ type: BooleanConstructor;
24
+ required: true;
25
+ };
26
+ hasDate: {
27
+ type: BooleanConstructor;
28
+ required: true;
29
+ };
30
+ hasTime: {
31
+ type: BooleanConstructor;
32
+ required: true;
33
+ };
34
+ formatterOptions: {
35
+ type: PropType<DateTimeFormatOptions>;
36
+ required: true;
37
+ };
38
+ calendarDate: {
39
+ type: StringConstructor;
40
+ required: true;
41
+ };
42
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
43
+ modelValue: {
44
+ type: PropType<PickerValue>;
45
+ default: undefined;
46
+ };
47
+ color: {
48
+ type: PropType<Color>;
49
+ required: true;
50
+ };
51
+ locale: {
52
+ type: StringConstructor;
53
+ required: true;
54
+ };
55
+ noShortcuts: {
56
+ type: BooleanConstructor;
57
+ required: true;
58
+ };
59
+ double: {
60
+ type: BooleanConstructor;
61
+ required: true;
62
+ };
63
+ hasDate: {
64
+ type: BooleanConstructor;
65
+ required: true;
66
+ };
67
+ hasTime: {
68
+ type: BooleanConstructor;
69
+ required: true;
70
+ };
71
+ formatterOptions: {
72
+ type: PropType<DateTimeFormatOptions>;
73
+ required: true;
74
+ };
75
+ calendarDate: {
76
+ type: StringConstructor;
77
+ required: true;
78
+ };
79
+ }>>, {
80
+ modelValue: PickerValue;
81
+ }, {}>;
82
+ export default _default;
@@ -0,0 +1,41 @@
1
+ import type { PropType } from 'vue';
2
+ import type { Color } from '../types';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ calendarDate: {
5
+ type: StringConstructor;
6
+ required: true;
7
+ };
8
+ color: {
9
+ type: PropType<Color>;
10
+ required: true;
11
+ };
12
+ locale: {
13
+ type: StringConstructor;
14
+ required: true;
15
+ };
16
+ double: {
17
+ type: BooleanConstructor;
18
+ required: true;
19
+ };
20
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "update:calendar-date")[], "close" | "update:calendar-date", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
21
+ calendarDate: {
22
+ type: StringConstructor;
23
+ required: true;
24
+ };
25
+ color: {
26
+ type: PropType<Color>;
27
+ required: true;
28
+ };
29
+ locale: {
30
+ type: StringConstructor;
31
+ required: true;
32
+ };
33
+ double: {
34
+ type: BooleanConstructor;
35
+ required: true;
36
+ };
37
+ }>> & {
38
+ onClose?: ((...args: any[]) => any) | undefined;
39
+ "onUpdate:calendar-date"?: ((...args: any[]) => any) | undefined;
40
+ }, {}, {}>;
41
+ export default _default;
@@ -0,0 +1,60 @@
1
+ import { type PropType } from 'vue';
2
+ import type { Color } from '../types';
3
+ import type { PickerShortcut, PickerValue } from './types';
4
+ declare const _default: import("vue").DefineComponent<{
5
+ color: {
6
+ type: PropType<Color>;
7
+ required: true;
8
+ };
9
+ modelValue: {
10
+ type: PropType<PickerValue>;
11
+ default: undefined;
12
+ };
13
+ shortcuts: {
14
+ type: PropType<PickerShortcut[]>;
15
+ required: true;
16
+ };
17
+ double: {
18
+ type: BooleanConstructor;
19
+ required: true;
20
+ };
21
+ shortcut: {
22
+ type: StringConstructor;
23
+ default: undefined;
24
+ };
25
+ disabled: {
26
+ type: BooleanConstructor;
27
+ required: true;
28
+ };
29
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:model-value"[], "update:model-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
30
+ color: {
31
+ type: PropType<Color>;
32
+ required: true;
33
+ };
34
+ modelValue: {
35
+ type: PropType<PickerValue>;
36
+ default: undefined;
37
+ };
38
+ shortcuts: {
39
+ type: PropType<PickerShortcut[]>;
40
+ required: true;
41
+ };
42
+ double: {
43
+ type: BooleanConstructor;
44
+ required: true;
45
+ };
46
+ shortcut: {
47
+ type: StringConstructor;
48
+ default: undefined;
49
+ };
50
+ disabled: {
51
+ type: BooleanConstructor;
52
+ required: true;
53
+ };
54
+ }>> & {
55
+ "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
56
+ }, {
57
+ modelValue: PickerValue;
58
+ shortcut: string;
59
+ }, {}>;
60
+ export default _default;
@@ -0,0 +1,127 @@
1
+ import { type PropType } from 'vue';
2
+ import { type DateTimeFormatOptions } from './utils';
3
+ import type { PickerValue } from './types';
4
+ import type { Color } from '../types';
5
+ declare const _default: import("vue").DefineComponent<{
6
+ modelValue: {
7
+ type: PropType<PickerValue>;
8
+ default: undefined;
9
+ };
10
+ calendarDate: {
11
+ type: StringConstructor;
12
+ required: true;
13
+ };
14
+ formatterOptions: {
15
+ type: PropType<DateTimeFormatOptions>;
16
+ required: true;
17
+ };
18
+ locale: {
19
+ type: StringConstructor;
20
+ required: true;
21
+ };
22
+ color: {
23
+ type: PropType<Color>;
24
+ required: true;
25
+ };
26
+ isOpen: {
27
+ type: BooleanConstructor;
28
+ required: true;
29
+ };
30
+ hasDate: {
31
+ type: BooleanConstructor;
32
+ required: true;
33
+ };
34
+ minuteInterval: {
35
+ type: NumberConstructor;
36
+ required: true;
37
+ };
38
+ disabledHours: {
39
+ type: PropType<number[]>;
40
+ default: undefined;
41
+ };
42
+ format: {
43
+ type: StringConstructor;
44
+ required: true;
45
+ };
46
+ isHour12: {
47
+ type: BooleanConstructor;
48
+ required: true;
49
+ };
50
+ minDate: {
51
+ type: StringConstructor;
52
+ default: undefined;
53
+ };
54
+ maxDate: {
55
+ type: StringConstructor;
56
+ default: undefined;
57
+ };
58
+ disabled: {
59
+ type: BooleanConstructor;
60
+ required: true;
61
+ };
62
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:model-value"[], "update:model-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
63
+ modelValue: {
64
+ type: PropType<PickerValue>;
65
+ default: undefined;
66
+ };
67
+ calendarDate: {
68
+ type: StringConstructor;
69
+ required: true;
70
+ };
71
+ formatterOptions: {
72
+ type: PropType<DateTimeFormatOptions>;
73
+ required: true;
74
+ };
75
+ locale: {
76
+ type: StringConstructor;
77
+ required: true;
78
+ };
79
+ color: {
80
+ type: PropType<Color>;
81
+ required: true;
82
+ };
83
+ isOpen: {
84
+ type: BooleanConstructor;
85
+ required: true;
86
+ };
87
+ hasDate: {
88
+ type: BooleanConstructor;
89
+ required: true;
90
+ };
91
+ minuteInterval: {
92
+ type: NumberConstructor;
93
+ required: true;
94
+ };
95
+ disabledHours: {
96
+ type: PropType<number[]>;
97
+ default: undefined;
98
+ };
99
+ format: {
100
+ type: StringConstructor;
101
+ required: true;
102
+ };
103
+ isHour12: {
104
+ type: BooleanConstructor;
105
+ required: true;
106
+ };
107
+ minDate: {
108
+ type: StringConstructor;
109
+ default: undefined;
110
+ };
111
+ maxDate: {
112
+ type: StringConstructor;
113
+ default: undefined;
114
+ };
115
+ disabled: {
116
+ type: BooleanConstructor;
117
+ required: true;
118
+ };
119
+ }>> & {
120
+ "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
121
+ }, {
122
+ modelValue: PickerValue;
123
+ minDate: string;
124
+ maxDate: string;
125
+ disabledHours: number[];
126
+ }, {}>;
127
+ export default _default;
@@ -0,0 +1,33 @@
1
+ import { type PropType } from 'vue';
2
+ import type { Color } from './../types';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ color: {
5
+ type: PropType<Color>;
6
+ required: true;
7
+ };
8
+ locale: {
9
+ type: StringConstructor;
10
+ required: true;
11
+ };
12
+ calendarDate: {
13
+ type: StringConstructor;
14
+ required: true;
15
+ };
16
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "update:calendar-date")[], "close" | "update:calendar-date", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
17
+ color: {
18
+ type: PropType<Color>;
19
+ required: true;
20
+ };
21
+ locale: {
22
+ type: StringConstructor;
23
+ required: true;
24
+ };
25
+ calendarDate: {
26
+ type: StringConstructor;
27
+ required: true;
28
+ };
29
+ }>> & {
30
+ onClose?: ((...args: any[]) => any) | undefined;
31
+ "onUpdate:calendar-date"?: ((...args: any[]) => any) | undefined;
32
+ }, {}, {}>;
33
+ export default _default;
@@ -0,0 +1,15 @@
1
+ export type SimpleValue = string | undefined;
2
+ export type RangeValue = {
3
+ start: string;
4
+ end: string;
5
+ };
6
+ export type PartialRangeValue = Partial<RangeValue>;
7
+ export type PickerValue = SimpleValue | PartialRangeValue;
8
+ export type PickerShortcut = {
9
+ identifier: string;
10
+ label: string;
11
+ value: {
12
+ start: string;
13
+ end: string;
14
+ };
15
+ };
@@ -0,0 +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 {};