maz-ui 4.1.8-beta.0 → 4.1.8-beta.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 (144) hide show
  1. package/dist/components/MazAccordion.vue.d.ts +36 -0
  2. package/dist/components/MazAnimatedCounter.vue.d.ts +59 -0
  3. package/dist/components/MazAnimatedElement.vue.d.ts +44 -0
  4. package/dist/components/MazAnimatedText.vue.d.ts +57 -0
  5. package/dist/components/MazAvatar.vue.d.ts +99 -0
  6. package/dist/components/MazBackdrop.vue.d.ts +91 -0
  7. package/dist/components/MazBadge.vue.d.ts +61 -0
  8. package/dist/components/MazBottomSheet.vue.d.ts +35 -0
  9. package/dist/components/MazBtn.vue.d.ts +105 -0
  10. package/dist/components/MazCard.vue.d.ts +81 -0
  11. package/dist/components/MazCardSpotlight.vue.d.ts +57 -0
  12. package/dist/components/MazCarousel.vue.d.ts +48 -0
  13. package/dist/components/MazChart.vue.d.ts +53 -0
  14. package/dist/components/MazCheckbox.vue.d.ts +55 -0
  15. package/dist/components/MazChecklist.vue.d.ts +87 -0
  16. package/dist/components/MazCircularProgressBar.vue.d.ts +106 -0
  17. package/dist/components/MazDatePicker/MazPickerCalendar.vue.d.ts +28 -0
  18. package/dist/components/MazDatePicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +20 -0
  19. package/dist/components/MazDatePicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +133 -0
  20. package/dist/components/MazDatePicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +142 -0
  21. package/dist/components/MazDatePicker/MazPickerCalendarSwitcher.vue.d.ts +42 -0
  22. package/dist/components/MazDatePicker/MazPickerContainer.vue.d.ts +38 -0
  23. package/dist/components/MazDatePicker/MazPickerHeader.vue.d.ts +15 -0
  24. package/dist/components/MazDatePicker/MazPickerMonthSwitcher.vue.d.ts +44 -0
  25. package/dist/components/MazDatePicker/MazPickerShortcuts.vue.d.ts +16 -0
  26. package/dist/components/MazDatePicker/MazPickerTime.vue.d.ts +107 -0
  27. package/dist/components/MazDatePicker/MazPickerYearSwitcher.vue.d.ts +36 -0
  28. package/dist/components/MazDatePicker/types.d.ts +14 -0
  29. package/dist/components/MazDatePicker/utils.d.ts +61 -0
  30. package/dist/components/MazDatePicker.vue.d.ts +567 -0
  31. package/dist/components/MazDialog.vue.d.ts +247 -0
  32. package/dist/components/MazDialogConfirm/useMazDialogConfirm.d.ts +47 -0
  33. package/dist/components/MazDialogConfirm.vue.d.ts +270 -0
  34. package/dist/components/MazDrawer.vue.d.ts +52 -0
  35. package/dist/components/MazDropdown.vue.d.ts +246 -0
  36. package/dist/components/MazDropzone.vue.d.ts +294 -0
  37. package/dist/components/MazExpandAnimation.vue.d.ts +44 -0
  38. package/dist/components/MazFullscreenLoader.vue.d.ts +26 -0
  39. package/dist/components/MazGallery.vue.d.ts +85 -0
  40. package/dist/components/MazIcon.vue.d.ts +33 -0
  41. package/dist/components/MazInput.vue.d.ts +225 -0
  42. package/dist/components/MazInputCode.vue.d.ts +49 -0
  43. package/dist/components/MazInputNumber.vue.d.ts +125 -0
  44. package/dist/components/MazInputPhoneNumber/PhoneInput.vue.d.ts +29 -0
  45. package/dist/components/MazInputPhoneNumber/useLibphonenumber.d.ts +26 -0
  46. package/dist/components/MazInputPhoneNumber/useMazInputPhoneNumber.d.ts +26 -0
  47. package/dist/components/MazInputPhoneNumber.vue.d.ts +421 -0
  48. package/dist/components/MazInputPrice.vue.d.ts +48 -0
  49. package/dist/components/MazInputTags.vue.d.ts +51 -0
  50. package/dist/components/MazLazyImg.vue.d.ts +78 -0
  51. package/dist/components/MazLink.vue.d.ts +116 -0
  52. package/dist/components/MazLoadingBar.vue.d.ts +12 -0
  53. package/dist/components/MazPagination.vue.d.ts +83 -0
  54. package/dist/components/MazPopover.vue.d.ts +258 -0
  55. package/dist/components/MazPullToRefresh.vue.d.ts +52 -0
  56. package/dist/components/MazRadio.vue.d.ts +55 -0
  57. package/dist/components/MazRadioButtons.vue.d.ts +74 -0
  58. package/dist/components/MazReadingProgressBar.vue.d.ts +55 -0
  59. package/dist/components/MazSelect.vue.d.ts +209 -0
  60. package/dist/components/MazSelectCountry.vue.d.ts +171 -0
  61. package/dist/components/MazSlider/utils.d.ts +15 -0
  62. package/dist/components/MazSlider.vue.d.ts +31 -0
  63. package/dist/components/MazSpinner.vue.d.ts +15 -0
  64. package/dist/components/MazStepper.vue.d.ts +60 -0
  65. package/dist/components/MazSwitch.vue.d.ts +69 -0
  66. package/dist/components/MazTable.vue.d.ts +324 -0
  67. package/dist/components/MazTableCell.vue.d.ts +17 -0
  68. package/dist/components/MazTableRow.vue.d.ts +23 -0
  69. package/dist/components/MazTableTitle.vue.d.ts +17 -0
  70. package/dist/components/MazTabs.vue.d.ts +30 -0
  71. package/dist/components/MazTabsBar.vue.d.ts +96 -0
  72. package/dist/components/MazTabsContent.vue.d.ts +17 -0
  73. package/dist/components/MazTabsContentItem.vue.d.ts +31 -0
  74. package/dist/components/MazTextarea.vue.d.ts +88 -0
  75. package/dist/components/constantes.d.ts +2 -0
  76. package/dist/components/index.d.ts +109 -0
  77. package/dist/components/types.d.ts +4 -0
  78. package/dist/composables/index.d.ts +22 -0
  79. package/dist/composables/useAos.d.ts +2 -0
  80. package/dist/composables/useBreakpoints.d.ts +38 -0
  81. package/dist/composables/useDialog.d.ts +2 -0
  82. package/dist/composables/useDisplayNames.d.ts +101 -0
  83. package/dist/composables/useDropzone.d.ts +27 -0
  84. package/dist/composables/useFormField.d.ts +16 -0
  85. package/dist/composables/useFormValidator/config.d.ts +7 -0
  86. package/dist/composables/useFormValidator/dom-events.d.ts +19 -0
  87. package/dist/composables/useFormValidator/state-management.d.ts +72 -0
  88. package/dist/composables/useFormValidator/types.d.ts +98 -0
  89. package/dist/composables/useFormValidator/validation.d.ts +37 -0
  90. package/dist/composables/useFormValidator.d.ts +23 -0
  91. package/dist/composables/useFreezeValue.d.ts +5 -0
  92. package/dist/composables/useIdleTimeout.d.ts +5 -0
  93. package/dist/composables/useInjectStrict.d.ts +2 -0
  94. package/dist/composables/useInstanceUniqId.d.ts +4 -0
  95. package/dist/composables/useMountComponent.d.ts +14 -0
  96. package/dist/composables/useMutationObserver.d.ts +13 -0
  97. package/dist/composables/useReadingTime.d.ts +25 -0
  98. package/dist/composables/useStringMatching.d.ts +5 -0
  99. package/dist/composables/useSwipe.d.ts +14 -0
  100. package/dist/composables/useTimer.d.ts +30 -0
  101. package/dist/composables/useToast.d.ts +22 -0
  102. package/dist/composables/useUserVisibility.d.ts +5 -0
  103. package/dist/composables/useWait.d.ts +2 -0
  104. package/dist/composables/useWindowSize.d.ts +32 -0
  105. package/dist/directives/index.d.ts +5 -0
  106. package/dist/directives/vClickOutside.d.ts +36 -0
  107. package/dist/directives/vFullscreenImg/MazFullscreenImg.vue.d.ts +50 -0
  108. package/dist/directives/vFullscreenImg/fullscreen-img.directive.d.ts +5 -0
  109. package/dist/directives/vFullscreenImg/fullscreen-img.handler.d.ts +36 -0
  110. package/dist/directives/vFullscreenImg.d.ts +11 -0
  111. package/dist/directives/vLazyImg/lazy-img.directive.d.ts +5 -0
  112. package/dist/directives/vLazyImg/lazy-img.handler.d.ts +38 -0
  113. package/dist/directives/vLazyImg/types.d.ts +29 -0
  114. package/dist/directives/vLazyImg.d.ts +12 -0
  115. package/dist/directives/vTooltip.d.ts +54 -0
  116. package/dist/directives/vZoomImg/style.d.ts +1 -0
  117. package/dist/directives/vZoomImg/svgs.d.ts +3 -0
  118. package/dist/directives/vZoomImg/zoom-img.directive.d.ts +8 -0
  119. package/dist/directives/vZoomImg/zoom-img.handler.d.ts +46 -0
  120. package/dist/directives/vZoomImg.d.ts +10 -0
  121. package/dist/index.d.ts +1 -0
  122. package/dist/plugins/aos.d.ts +81 -0
  123. package/dist/plugins/dialog/DialogHandler.d.ts +16 -0
  124. package/dist/plugins/dialog.d.ts +26 -0
  125. package/dist/plugins/index.d.ts +5 -0
  126. package/dist/plugins/maz-ui.d.ts +43 -0
  127. package/dist/plugins/toast/MazToast.vue.d.ts +34 -0
  128. package/dist/plugins/toast/ToastHandler.d.ts +29 -0
  129. package/dist/plugins/toast/types.d.ts +104 -0
  130. package/dist/plugins/toast.d.ts +25 -0
  131. package/dist/plugins/wait.d.ts +33 -0
  132. package/dist/resolvers/MazComponentsResolver.d.ts +10 -0
  133. package/dist/resolvers/MazDirectivesResolver.d.ts +11 -0
  134. package/dist/resolvers/MazModulesResolver.d.ts +11 -0
  135. package/dist/resolvers/index.d.ts +3 -0
  136. package/dist/tailwindcss/index.d.ts +6 -0
  137. package/dist/tailwindcss/tailwind.config.d.ts +89 -0
  138. package/dist/tailwindcss/utils/colors.d.ts +7 -0
  139. package/dist/tailwindcss/variables/breakpoints.d.ts +15 -0
  140. package/dist/tailwindcss/variables/colors.d.ts +21 -0
  141. package/dist/tailwindcss/variables/design-tokens.d.ts +35 -0
  142. package/dist/tailwindcss/variables/utilities.d.ts +17 -0
  143. package/dist/tailwindcss/variables/z-indexes.d.ts +14 -0
  144. package/package.json +9 -9
@@ -0,0 +1,55 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ import { MazColor } from './types';
3
+ export interface MazReadingProgressBarProps {
4
+ /**
5
+ * Height of the progress bar
6
+ * @default 4px
7
+ */
8
+ height?: string;
9
+ /**
10
+ * Color of the progress bar
11
+ * @default primary
12
+ */
13
+ color?: MazColor;
14
+ /**
15
+ * Selector of the element to teleport the progress bar
16
+ * @default body
17
+ */
18
+ teleportSelector?: string;
19
+ /**
20
+ * Selector of the element to get the height
21
+ * @default body
22
+ */
23
+ contentSelector?: string;
24
+ /**
25
+ * Offset of the progress bar
26
+ * @default 0
27
+ */
28
+ offset?: number;
29
+ /**
30
+ * Class of the progress bar
31
+ * @default undefined
32
+ */
33
+ barClass?: HTMLAttributes['class'];
34
+ /**
35
+ * Instead of using the height of the content with a selector, you can set a scroll distance
36
+ * @default undefined
37
+ */
38
+ distance?: number;
39
+ }
40
+ declare const _default: import('vue').DefineComponent<MazReadingProgressBarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
41
+ begin: () => any;
42
+ complete: () => any;
43
+ }, string, import('vue').PublicProps, Readonly<MazReadingProgressBarProps> & Readonly<{
44
+ onBegin?: (() => any) | undefined;
45
+ onComplete?: (() => any) | undefined;
46
+ }>, {
47
+ height: string;
48
+ color: MazColor;
49
+ offset: number;
50
+ teleportSelector: string;
51
+ distance: number;
52
+ contentSelector: string;
53
+ barClass: HTMLAttributes["class"];
54
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
55
+ export default _default;
@@ -0,0 +1,209 @@
1
+ import { MazUiTranslationsNestedSchema } from '@maz-ui/translations';
2
+ import { HTMLAttributes } from 'vue';
3
+ import { MazInputValue } from './MazInput.vue';
4
+ import { MazPopoverProps } from './MazPopover.vue';
5
+ import { MazColor, MazSize } from './types';
6
+ export interface MazSelectNormalizedOption {
7
+ [key: string]: MazInputValue;
8
+ }
9
+ export interface MazSelectOptionWithOptGroup {
10
+ label: string;
11
+ options: (MazSelectNormalizedOption | string | number | boolean)[];
12
+ }
13
+ export type MazSelectOption = MazSelectNormalizedOption | string | number | boolean | MazSelectOptionWithOptGroup;
14
+ export interface MazSelectProps<Value extends MazInputValue, Option extends MazSelectOption, Multiple extends boolean> {
15
+ /**
16
+ * Style attribut of the component root element
17
+ * @type {HTMLAttributes['style']}
18
+ */
19
+ style?: HTMLAttributes['style'];
20
+ /**
21
+ * Class attribut of the component root element
22
+ * @type {HTMLAttributes['class']}
23
+ */
24
+ class?: HTMLAttributes['class'];
25
+ /** The id of the select */
26
+ id?: string;
27
+ /**
28
+ * The label of the select
29
+ */
30
+ label?: string;
31
+ /**
32
+ * The placeholder of the select
33
+ */
34
+ placeholder?: string;
35
+ /**
36
+ * The value of the select
37
+ * @type {Value | Value[]}
38
+ */
39
+ modelValue?: Multiple extends true ? Value[] : Value;
40
+ /**
41
+ * The options of the select
42
+ * @type {Option[]}
43
+ */
44
+ options: Option[];
45
+ /**
46
+ * The key of the option value
47
+ * @default 'value'
48
+ */
49
+ optionValueKey?: string;
50
+ /**
51
+ * The key of the option label
52
+ * @default 'label'
53
+ */
54
+ optionLabelKey?: string;
55
+ /**
56
+ * The key of the option input value
57
+ * @default 'label'
58
+ */
59
+ optionInputValueKey?: string;
60
+ /**
61
+ * The position of the list (auto by default - will switch between bottom-start and top-start)
62
+ * @type {MazPopoverProps['position']}
63
+ * @default 'auto'
64
+ */
65
+ listPosition?: MazPopoverProps['position'];
66
+ /**
67
+ * The prefer position of the list
68
+ * @type {MazPopoverProps['preferPosition']}
69
+ * @default 'bottom-start'
70
+ */
71
+ preferPosition?: MazPopoverProps['preferPosition'];
72
+ /**
73
+ * The fallback position of the list
74
+ * @type {MazPopoverProps['fallbackPosition']}
75
+ * @default 'top-start'
76
+ */
77
+ fallbackPosition?: MazPopoverProps['fallbackPosition'];
78
+ /** The height of the option list item */
79
+ itemHeight?: number;
80
+ /**
81
+ * The max height of the option list
82
+ * @default 240
83
+ */
84
+ maxListHeight?: number;
85
+ /** The max width of the option list */
86
+ maxListWidth?: number;
87
+ /** The min height of the option list */
88
+ minListHeight?: number;
89
+ /** The min width of the option list */
90
+ minListWidth?: number;
91
+ /**
92
+ * The size of the select
93
+ * @default 'md'
94
+ */
95
+ size?: MazSize;
96
+ /**
97
+ * The color of the select
98
+ * @default 'primary'
99
+ */
100
+ color?: MazColor;
101
+ /** Display search input in option list */
102
+ search?: boolean;
103
+ /**
104
+ * Replace the default search function to provide a custom search function
105
+ * @default undefined
106
+ */
107
+ searchFunction?: (query: string, options: Option[]) => Option[] | undefined;
108
+ /**
109
+ * The threshold for the search input where 1 is a perfect match and 0 is a match with any character
110
+ * @default 0.75
111
+ */
112
+ searchThreshold?: number;
113
+ /** Enable the multiple selection */
114
+ multiple?: Multiple;
115
+ /** Make the input required in the form */
116
+ required?: boolean;
117
+ /** Disable the component */
118
+ disabled?: boolean;
119
+ /** The input will be displayed in full width */
120
+ block?: boolean;
121
+ /**
122
+ * The autocomplete attribute of the input
123
+ * @default 'off'
124
+ */
125
+ autocomplete?: string;
126
+ /**
127
+ * The translations of the component
128
+ * @type {Partial<MazUiTranslationsNestedSchema['select']>}
129
+ * @default {
130
+ * searchPlaceholder: 'Search in options',
131
+ * }
132
+ */
133
+ translations?: Partial<MazUiTranslationsNestedSchema['select']>;
134
+ /**
135
+ * The function to format the input value
136
+ * @type {(value: Multiple extends true ? Value[] : Value) => string}
137
+ * @default undefined
138
+ */
139
+ formatInputValue?: (value: Multiple extends true ? Value[] : Value) => string;
140
+ /**
141
+ * The transition name of the panel list options
142
+ * @type {MazPopoverProps['transition']}
143
+ * @default 'scale-fade'
144
+ */
145
+ transition?: MazPopoverProps['transition'];
146
+ }
147
+ declare const _default: <Option extends MazSelectOption, Value extends MazInputValue, Multiple extends boolean>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
148
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
149
+ readonly onBlur?: ((value: Event) => any) | undefined;
150
+ readonly onChange?: ((value: Event) => any) | undefined;
151
+ readonly onClose?: (() => any) | undefined;
152
+ readonly onFocus?: ((value?: Event | undefined) => any) | undefined;
153
+ readonly onInput?: ((value: Event) => any) | undefined;
154
+ readonly onOpen?: (() => any) | undefined;
155
+ readonly "onUpdate:model-value"?: ((value: Multiple extends true ? Value[] : Value) => any) | undefined;
156
+ readonly "onUpdate:open"?: ((value: boolean) => any) | undefined;
157
+ readonly "onSelected-option"?: ((value: Option) => any) | undefined;
158
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onFocus" | "onBlur" | "onChange" | "onInput" | "onClose" | "onOpen" | "onUpdate:model-value" | "onUpdate:open" | "onSelected-option"> & ({
159
+ open?: boolean;
160
+ } & MazSelectProps<Value, Option, Multiple> & {
161
+ multiple?: boolean;
162
+ }) & Partial<{}>> & import('vue').PublicProps;
163
+ expose(exposed: import('vue').ShallowUnwrapRef<{
164
+ /**
165
+ * Open the select
166
+ * @description This is used to open the list options
167
+ */
168
+ open: () => void;
169
+ /**
170
+ * Close the select
171
+ * @description This is used to close the list options
172
+ */
173
+ close: () => void;
174
+ }>): void;
175
+ attrs: any;
176
+ slots: {
177
+ 'left-icon'?(_: {
178
+ isOpen: boolean;
179
+ close: () => void;
180
+ open: () => void;
181
+ toggle: () => void;
182
+ }): any;
183
+ 'right-icon'?(_: {
184
+ isOpen: boolean;
185
+ close: () => void;
186
+ open: () => void;
187
+ toggle: () => void;
188
+ }): any;
189
+ 'no-results'?(_: {}): any;
190
+ optgroup?(_: {
191
+ label: string | number | true;
192
+ }): any;
193
+ default?(_: {
194
+ option: Option;
195
+ isSelected: boolean;
196
+ isOpen: boolean;
197
+ close: () => void;
198
+ open: () => void;
199
+ toggle: () => void;
200
+ }): any;
201
+ };
202
+ emit: (((evt: "blur", value: Event) => void) & ((evt: "change", value: Event) => void) & ((evt: "close") => void) & ((evt: "focus", value?: Event | undefined) => void) & ((evt: "input", value: Event) => void) & ((evt: "open") => void) & ((evt: "update:model-value", value: Multiple extends true ? Value[] : Value) => void) & ((evt: "selected-option", value: Option) => void)) & ((evt: "update:open", value: boolean) => void);
203
+ }>) => import('vue').VNode & {
204
+ __ctx?: Awaited<typeof __VLS_setup>;
205
+ };
206
+ export default _default;
207
+ type __VLS_PrettifyLocal<T> = {
208
+ [K in keyof T]: T[K];
209
+ } & {};
@@ -0,0 +1,171 @@
1
+ import { MazUiTranslationsNestedSchema } from '@maz-ui/translations';
2
+ import { HTMLAttributes } from 'vue';
3
+ import { CodesType, DisplayNameCode, DisplayNamesOptions } from '../composables/useDisplayNames';
4
+ import { MazPopoverProps } from './MazPopover.vue';
5
+ import { MazSelectProps } from './MazSelect.vue';
6
+ import { MazColor, MazSize } from './types';
7
+ export interface MazSelectCountryProps<Option extends {
8
+ name: string;
9
+ code: DisplayNameCode | string;
10
+ } = {
11
+ name: string;
12
+ code: string;
13
+ }> extends Omit<MazSelectProps<Option['code'], Option, false>, 'options' | 'multiple'> {
14
+ /**
15
+ * Style attribut of the component root element
16
+ * @type {HTMLAttributes['style']}
17
+ */
18
+ style?: HTMLAttributes['style'];
19
+ /**
20
+ * Class attribut of the component root element
21
+ * @type {HTMLAttributes['class']}
22
+ */
23
+ class?: HTMLAttributes['class'];
24
+ /**
25
+ * Id of the component
26
+ */
27
+ id?: string;
28
+ /**
29
+ * Color of the component
30
+ * @type {MazColor}
31
+ * @default primary
32
+ */
33
+ color?: MazColor;
34
+ /**
35
+ * Size of the component
36
+ * @type {MazSize}
37
+ * @default md
38
+ */
39
+ size?: MazSize;
40
+ /**
41
+ * Preferred countries to display
42
+ * @type {Option['code'][]}
43
+ */
44
+ preferredCodes?: Option['code'][];
45
+ /**
46
+ * Ignored countries to display
47
+ * @type {Option['code'][]}
48
+ */
49
+ ignoredCodes?: Option['code'][];
50
+ /**
51
+ * Only countries to display
52
+ * @type {Option['code'][]}
53
+ */
54
+ onlyCodes?: Option['code'][];
55
+ /**
56
+ * Position of the list
57
+ * @type {MazPopoverProps['position']}
58
+ * @default 'auto'
59
+ */
60
+ listPosition?: MazPopoverProps['position'];
61
+ /**
62
+ * Hide flags
63
+ */
64
+ hideFlags?: boolean;
65
+ /**
66
+ * Display search input in options list
67
+ * @type {boolean}
68
+ * @default true
69
+ */
70
+ search?: boolean;
71
+ /**
72
+ * Show code on list
73
+ * @default false
74
+ */
75
+ showCodeInList?: boolean;
76
+ /**
77
+ * Locale
78
+ * @type {string}
79
+ * @default locale defined within the maz-ui plugin or browser locale or en-US
80
+ */
81
+ locale?: string;
82
+ /**
83
+ * Success state
84
+ */
85
+ success?: boolean;
86
+ /**
87
+ * Error state
88
+ */
89
+ error?: boolean;
90
+ /**
91
+ * Warning state
92
+ */
93
+ warning?: boolean;
94
+ /**
95
+ *
96
+ */
97
+ displayCode?: boolean;
98
+ /**
99
+ * Search threshold
100
+ */
101
+ searchThreshold?: number;
102
+ /**
103
+ * Translations
104
+ * @type {Partial<MazUiTranslationsNestedSchema['selectCountry']>}
105
+ * @default MazUiTranslationsNestedSchema['selectCountry']
106
+ */
107
+ translations?: Partial<MazUiTranslationsNestedSchema['selectCountry']>;
108
+ /**
109
+ * Hint message displayed
110
+ */
111
+ hint?: string;
112
+ /**
113
+ * Options
114
+ * @type {Option[]}
115
+ */
116
+ options?: Option[];
117
+ /**
118
+ * Display name type
119
+ * @type {Intl.DisplayNamesOptions}
120
+ * @default { type: 'region', languageDisplay: 'standard', fallback: 'code', style: 'long' }
121
+ */
122
+ displayNamesOptions?: DisplayNamesOptions;
123
+ /**
124
+ * Codes type
125
+ * @type {CodesType}
126
+ * @default defined by displayNamesOptions.type (if 'region', 'country' is used, otherwise 'iso')
127
+ * @values 'iso' | 'bcp' | 'country' | 'all'
128
+ */
129
+ codesType?: CodesType;
130
+ /**
131
+ * Open the select
132
+ * @type {boolean}
133
+ * @default false
134
+ */
135
+ open?: boolean;
136
+ }
137
+ declare const _default: <Option extends {
138
+ name: string;
139
+ code: DisplayNameCode | string;
140
+ }>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
141
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
142
+ readonly "onUpdate:model-value"?: ((value?: Option["code"] | undefined) => any) | undefined;
143
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:model-value"> & MazSelectCountryProps<Option> & Partial<{}>> & import('vue').PublicProps;
144
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
145
+ attrs: any;
146
+ slots: {
147
+ 'selector-flag'?(_: {
148
+ countryCode: Option["code"] | undefined;
149
+ }): any;
150
+ 'no-results'?(_: {}): any;
151
+ 'country-list-flag'?(_: {
152
+ option: Option;
153
+ isSelected: boolean;
154
+ }): any;
155
+ 'country-list-code'?(_: {
156
+ option: Option;
157
+ isSelected: boolean;
158
+ }): any;
159
+ 'country-list-name'?(_: {
160
+ option: Option;
161
+ isSelected: boolean;
162
+ }): any;
163
+ };
164
+ emit: (evt: "update:model-value", value?: Option["code"] | undefined) => void;
165
+ }>) => import('vue').VNode & {
166
+ __ctx?: Awaited<typeof __VLS_setup>;
167
+ };
168
+ export default _default;
169
+ type __VLS_PrettifyLocal<T> = {
170
+ [K in keyof T]: T[K];
171
+ } & {};
@@ -0,0 +1,15 @@
1
+ interface IPosObject {
2
+ x: number;
3
+ y: number;
4
+ }
5
+ export declare function getOffset(elem: HTMLDivElement): IPosObject;
6
+ /**
7
+ * Get the position of the mouse/finger in the element
8
+ * @param e Trigger event
9
+ * @param elem Container element
10
+ * @param isReverse From the right/bottom
11
+ */
12
+ export declare function getPos(e: MouseEvent | TouchEvent, elem: HTMLDivElement, isReverse?: boolean): IPosObject;
13
+ export declare function isBetween(value: number, prev: number, next: number, direction: string): boolean;
14
+ export declare function getOpacityCoeff(index: number, middle: number, length: number): number;
15
+ export {};
@@ -0,0 +1,31 @@
1
+ import { MazColor } from './types';
2
+ export interface MazSliderProps {
3
+ /** Array of cursors values */
4
+ modelValue: number | number[] | undefined | null;
5
+ /** array of cursors label */
6
+ labels?: string[];
7
+ /** min value of sliders */
8
+ min?: number;
9
+ /** max value of sliders */
10
+ max?: number;
11
+ /** step value for slider increments */
12
+ step?: number;
13
+ /** height size of slider bar */
14
+ size?: string;
15
+ /** remove div in different colors */
16
+ divider?: boolean;
17
+ /** become a logarithmic slider (exponential) */
18
+ log?: boolean;
19
+ /** main slider color */
20
+ color?: MazColor;
21
+ /** disables cursor animation when active */
22
+ cursorAnim?: boolean;
23
+ }
24
+ declare const _default: import('vue').DefineComponent<MazSliderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
25
+ "update:model-value": (...args: any[]) => void;
26
+ }, string, import('vue').PublicProps, Readonly<MazSliderProps> & Readonly<{
27
+ "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
28
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
29
+ MazSlider: HTMLDivElement;
30
+ }, any>;
31
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import { MazColor } from './types';
2
+ export interface MazSpinnerProps {
3
+ /**
4
+ * The size of the spinner
5
+ * @default 2em
6
+ */
7
+ size?: string;
8
+ /**
9
+ * The color of the spinner
10
+ * @default theme
11
+ */
12
+ color?: MazColor;
13
+ }
14
+ declare const _default: import('vue').DefineComponent<MazSpinnerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<MazSpinnerProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, SVGSVGElement>;
15
+ export default _default;
@@ -0,0 +1,60 @@
1
+ import { IconComponent } from '@maz-ui/icons';
2
+ import { MazColor } from './types';
3
+ export interface MazStepperStep {
4
+ title?: string;
5
+ subtitle?: string;
6
+ titleInfo?: string;
7
+ disabled?: boolean;
8
+ error?: boolean;
9
+ success?: boolean;
10
+ warning?: boolean;
11
+ icon?: string | IconComponent;
12
+ }
13
+ export interface MazStepperProps {
14
+ /** The current step */
15
+ modelValue?: number;
16
+ /** The steps */
17
+ steps?: MazStepperStep[];
18
+ /**
19
+ * The color of the stepper
20
+ * @default primary
21
+ */
22
+ color?: MazColor;
23
+ /** Disable the next steps */
24
+ disabledNextSteps?: boolean;
25
+ /** Disable the previous steps */
26
+ disabledPreviousSteps?: boolean;
27
+ /** Auto validate the steps */
28
+ autoValidateSteps?: boolean;
29
+ /** Open all steps */
30
+ allStepsOpened?: boolean;
31
+ /** Validate all steps */
32
+ allStepsValidated?: boolean;
33
+ /** Allow to close the steps */
34
+ canCloseSteps?: boolean;
35
+ }
36
+ declare function __VLS_template(): {
37
+ attrs: Partial<{}>;
38
+ slots: Partial<Record<`icon-${number}`, (_: {}) => any>> & Partial<Record<`title-${number}`, (_: {}) => any>> & Partial<Record<`subtitle-${number}`, (_: {}) => any>> & Partial<Record<`title-info-${number}`, (_: {}) => any>> & Partial<Record<`content-${number}`, (_: {
39
+ validated: boolean;
40
+ error: boolean | undefined;
41
+ warning: boolean | undefined;
42
+ nextStep: () => void;
43
+ previousStep: () => void;
44
+ }) => any>>;
45
+ refs: {};
46
+ rootEl: HTMLDivElement;
47
+ };
48
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
49
+ declare const __VLS_component: import('vue').DefineComponent<MazStepperProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
50
+ "update:model-value": (value: number) => any;
51
+ }, string, import('vue').PublicProps, Readonly<MazStepperProps> & Readonly<{
52
+ "onUpdate:model-value"?: ((value: number) => any) | undefined;
53
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
54
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
55
+ export default _default;
56
+ type __VLS_WithTemplateSlots<T, S> = T & {
57
+ new (): {
58
+ $slots: S;
59
+ };
60
+ };
@@ -0,0 +1,69 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ import { MazColor } from './types';
3
+ export interface MazSwitchProps {
4
+ /** Style attribut of the component root element */
5
+ style?: HTMLAttributes['style'];
6
+ /** Class attribut of the component root element */
7
+ class?: HTMLAttributes['class'];
8
+ /** The model value of the switch */
9
+ modelValue?: boolean;
10
+ /** The id of the switch */
11
+ id?: string;
12
+ /** If the switch is disabled */
13
+ disabled?: boolean;
14
+ /** The name of the switch */
15
+ name?: string;
16
+ /** Text label */
17
+ label?: string;
18
+ /** The color of the switch */
19
+ color?: MazColor;
20
+ /** Whether there is an error with the input. */
21
+ error?: boolean;
22
+ /** Whether the input is successful. */
23
+ success?: boolean;
24
+ /** Whether there is a warning with the input. */
25
+ warning?: boolean;
26
+ /** The hint text to display below the input. */
27
+ hint?: string;
28
+ }
29
+ declare function __VLS_template(): {
30
+ attrs: Partial<{}>;
31
+ slots: {
32
+ default?(_: {
33
+ value: boolean;
34
+ }): any;
35
+ };
36
+ refs: {
37
+ inputRef: HTMLInputElement;
38
+ };
39
+ rootEl: any;
40
+ };
41
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
42
+ declare const __VLS_component: import('vue').DefineComponent<MazSwitchProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
43
+ blur: (value: FocusEvent) => any;
44
+ change: (value: boolean) => any;
45
+ focus: (value: FocusEvent) => any;
46
+ "update:model-value": (value: boolean) => any;
47
+ }, string, import('vue').PublicProps, Readonly<MazSwitchProps> & Readonly<{
48
+ onBlur?: ((value: FocusEvent) => any) | undefined;
49
+ onChange?: ((value: boolean) => any) | undefined;
50
+ onFocus?: ((value: FocusEvent) => any) | undefined;
51
+ "onUpdate:model-value"?: ((value: boolean) => any) | undefined;
52
+ }>, {
53
+ name: string;
54
+ style: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
55
+ class: HTMLAttributes["class"];
56
+ color: MazColor;
57
+ disabled: boolean;
58
+ id: string;
59
+ modelValue: boolean;
60
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
61
+ inputRef: HTMLInputElement;
62
+ }, any>;
63
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
64
+ export default _default;
65
+ type __VLS_WithTemplateSlots<T, S> = T & {
66
+ new (): {
67
+ $slots: S;
68
+ };
69
+ };