@cobre-npm/ds-v3 0.76.6 → 0.77.0

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 (65) hide show
  1. package/dist/cobre-ds-v3-lib.es.js +9621 -9636
  2. package/dist/style.css +1 -1
  3. package/dist/types/App.vue.d.ts +1 -1
  4. package/dist/types/components/HelloWorld.vue.d.ts +13 -3
  5. package/dist/types/components/atoms/CobreAlert/CobreAlert.vue.d.ts +34 -17
  6. package/dist/types/components/atoms/CobreAvatar/CobreAvatar.vue.d.ts +11 -1
  7. package/dist/types/components/atoms/CobreBankLogo/CobreBankLogo.vue.d.ts +25 -2
  8. package/dist/types/components/atoms/CobreButton/CobreButton.vue.d.ts +10 -10
  9. package/dist/types/components/atoms/CobreButtonMenu/CobreButtonMenu.vue.d.ts +8 -8
  10. package/dist/types/components/atoms/CobreCardButton/CobreCardButton.vue.d.ts +25 -2
  11. package/dist/types/components/atoms/CobreCheckbox/CobreCheckbox.vue.d.ts +29 -16
  12. package/dist/types/components/atoms/CobreColumnTable/CobreColumnTable.vue.d.ts +32 -13
  13. package/dist/types/components/atoms/CobreCountryFlag/CobreCountryFlag.vue.d.ts +27 -2
  14. package/dist/types/components/atoms/CobreEmptyResults/CobreEmptyResults.vue.d.ts +28 -3
  15. package/dist/types/components/atoms/CobreEmptyState/CobreEmptyState.vue.d.ts +16 -12
  16. package/dist/types/components/atoms/CobreIndicative/CobreIndicative.vue.d.ts +43 -20
  17. package/dist/types/components/atoms/CobreInfoDetail/CobreInfoDetail.vue.d.ts +31 -10
  18. package/dist/types/components/atoms/CobreInputLabel/CobreInputLabel.vue.d.ts +10 -1
  19. package/dist/types/components/atoms/CobreOptionsSwitch/CobreOptionsSwitch.vue.d.ts +26 -8
  20. package/dist/types/components/atoms/CobrePager/CobrePager.vue.d.ts +31 -4
  21. package/dist/types/components/atoms/CobreRadio/CobreRadio.vue.d.ts +35 -12
  22. package/dist/types/components/atoms/CobreRowActions/CobreRowActions.vue.d.ts +18 -6
  23. package/dist/types/components/atoms/CobreSwitch/CobreSwitch.vue.d.ts +20 -3
  24. package/dist/types/components/atoms/CobreTabMenu/CobreTabMenu.vue.d.ts +5 -5
  25. package/dist/types/components/atoms/CobreTabMenuV2/CobreTabMenu.vue.d.ts +20 -7
  26. package/dist/types/components/atoms/CobreToastAlert/CobreToastAlert.vue.d.ts +30 -7
  27. package/dist/types/components/atoms/CobreTruncateTooltipText/CobreTruncateTooltipText.vue.d.ts +23 -4
  28. package/dist/types/components/atoms/CobreUploader/CobreUploader.vue.d.ts +30 -5
  29. package/dist/types/components/molecules/CobreAccountCpButton/CobreAccountCpButton.vue.d.ts +25 -4
  30. package/dist/types/components/molecules/CobreAccountInfoFiled/CobreAccountInfoField.vue.d.ts +33 -4
  31. package/dist/types/components/molecules/CobreActionList/CobreActionList.vue.d.ts +34 -17
  32. package/dist/types/components/molecules/CobreAvatarsGroup/CobreAvatarsGroup.vue.d.ts +14 -3
  33. package/dist/types/components/molecules/CobreBadge/CobreBadge.vue.d.ts +35 -14
  34. package/dist/types/components/molecules/CobreCardIcon/CobreCardIcon.vue.d.ts +35 -14
  35. package/dist/types/components/molecules/CobreChips/CobreChips.vue.d.ts +27 -4
  36. package/dist/types/components/molecules/CobreCopyTextBox/CobreCopyTextBox.vue.d.ts +31 -4
  37. package/dist/types/components/molecules/CobreDrawer/CobreDrawer.vue.d.ts +41 -16
  38. package/dist/types/components/molecules/CobreDropdownButton/CobreDropdownButton.vue.d.ts +27 -12
  39. package/dist/types/components/molecules/CobreFieldLogo/CobreFieldLogo.vue.d.ts +27 -10
  40. package/dist/types/components/molecules/CobreFlowResult/CobreFlowResult.vue.d.ts +35 -12
  41. package/dist/types/components/molecules/CobreFormOtp/CobreFormOtp.vue.d.ts +45 -262
  42. package/dist/types/components/molecules/CobreInput/CobreInput.vue.d.ts +50 -5
  43. package/dist/types/components/molecules/CobreInputAmount/CobreInputAmount.vue.d.ts +44 -9
  44. package/dist/types/components/molecules/CobreInputCurrency/CobreInputCurrency.vue.d.ts +52 -15
  45. package/dist/types/components/molecules/CobreInputPhoneNumber/CobreInputPhoneNumber.vue.d.ts +46 -5
  46. package/dist/types/components/molecules/CobreInputUrl/CobreInputUrl.vue.d.ts +46 -5
  47. package/dist/types/components/molecules/CobreKebabMenu/CobreKebabMenu.vue.d.ts +12 -3
  48. package/dist/types/components/molecules/CobreLogoField/CobreLogoField.vue.d.ts +27 -10
  49. package/dist/types/components/molecules/CobreModal/CobreModal.vue.d.ts +33 -14
  50. package/dist/types/components/molecules/CobreModalAction/CobreModalAction.vue.d.ts +63 -0
  51. package/dist/types/components/molecules/CobreRowTable/CobreRowTable.vue.d.ts +59 -23
  52. package/dist/types/components/molecules/CobreSelect/CobreSelect.vue.d.ts +66 -43
  53. package/dist/types/components/molecules/CobreSnackBar/CobreSnackBar.vue.d.ts +31 -2
  54. package/dist/types/components/molecules/CobreTableCellCopy/CobreTableCellCopy.vue.d.ts +39 -12
  55. package/dist/types/components/molecules/CobreTextArea/CobreTextArea.vue.d.ts +46 -5
  56. package/dist/types/components/molecules/Toolbar/CobreInputSearch/CobreInputSearch.vue.d.ts +27 -6
  57. package/dist/types/components/molecules/Toolbar/CobreInputSearchV2/CobreInputSearchV2.vue.d.ts +29 -6
  58. package/dist/types/components/organisms/CobreDateFilter/CobreDateFilter.vue.d.ts +67 -0
  59. package/dist/types/components/organisms/CobreHeader/CobreHeader.vue.d.ts +28 -13
  60. package/dist/types/components/organisms/CobreHeader/components/Navbar.vue.d.ts +29 -4
  61. package/dist/types/components/organisms/CobreSideMenu/CobreSideMenu.vue.d.ts +33 -14
  62. package/dist/types/components/organisms/CobreSideMenu/components/SideMenuItem.vue.d.ts +12 -5
  63. package/dist/types/components/organisms/CobreSideMenu/components/SubItems.vue.d.ts +12 -3
  64. package/dist/types/components/organisms/CobreTimeline/CobreTimeline.vue.d.ts +27 -12
  65. package/package.json +2 -2
@@ -10,284 +10,67 @@ interface Props {
10
10
  showActionsBorder?: boolean;
11
11
  }
12
12
  declare function __VLS_template(): {
13
- attrs: Partial<{}>;
14
- slots: {
15
- bottom?(_: {}): any;
16
- };
17
- refs: {
18
- otpInput: import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
19
- value: {
20
- type: import("vue").PropType<string>;
21
- required: true;
22
- default: string;
23
- };
24
- placeholder: {
25
- type: import("vue").PropType<string[]>;
26
- };
27
- isDisabled: {
28
- type: import("vue").PropType<boolean>;
29
- };
30
- inputmode: {
31
- type: import("vue").PropType<"text" | "search" | "email" | "tel" | "url" | "none" | "numeric" | "decimal">;
32
- default: string;
33
- };
34
- numInputs: {
35
- type: import("vue").PropType<number>;
36
- default: number;
37
- };
38
- separator: {
39
- type: import("vue").PropType<string>;
40
- default: string;
41
- };
42
- inputClasses: {
43
- type: import("vue").PropType<string | string[]>;
44
- default: string;
45
- };
46
- conditionalClass: {
47
- type: import("vue").PropType<string[]>;
48
- };
49
- inputType: {
50
- type: import("vue").PropType<"number" | "password" | "tel" | "letter-numeric">;
51
- };
52
- shouldAutoFocus: {
53
- type: import("vue").PropType<boolean>;
54
- default: boolean;
55
- };
56
- shouldFocusOrder: {
57
- type: import("vue").PropType<boolean>;
58
- };
59
- }>> & {
60
- "onOn-change"?: ((value: string) => any) | undefined;
61
- "onUpdate:value"?: ((value: string) => any) | undefined;
62
- "onOn-complete"?: ((value: string) => any) | undefined;
63
- }, {
64
- clearInput: () => void;
65
- fillInput: (value: string) => void;
66
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
67
- "update:value": (value: string) => void;
68
- "on-change": (value: string) => void;
69
- "on-complete": (value: string) => void;
70
- }, import("vue").PublicProps, {
71
- inputmode: "tel" | "none" | "text" | "url" | "email" | "numeric" | "decimal" | "search";
72
- value: string;
73
- separator: string;
74
- inputClasses: string | string[];
75
- shouldAutoFocus: boolean;
76
- numInputs: number;
77
- }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
78
- P: {};
79
- B: {};
80
- D: {};
81
- C: {};
82
- M: {};
83
- Defaults: {};
84
- }, Readonly<import("vue").ExtractPropTypes<{
85
- value: {
86
- type: import("vue").PropType<string>;
87
- required: true;
88
- default: string;
89
- };
90
- placeholder: {
91
- type: import("vue").PropType<string[]>;
92
- };
93
- isDisabled: {
94
- type: import("vue").PropType<boolean>;
95
- };
96
- inputmode: {
97
- type: import("vue").PropType<"text" | "search" | "email" | "tel" | "url" | "none" | "numeric" | "decimal">;
98
- default: string;
99
- };
100
- numInputs: {
101
- type: import("vue").PropType<number>;
102
- default: number;
103
- };
104
- separator: {
105
- type: import("vue").PropType<string>;
106
- default: string;
107
- };
108
- inputClasses: {
109
- type: import("vue").PropType<string | string[]>;
110
- default: string;
111
- };
112
- conditionalClass: {
113
- type: import("vue").PropType<string[]>;
114
- };
115
- inputType: {
116
- type: import("vue").PropType<"number" | "password" | "tel" | "letter-numeric">;
117
- };
118
- shouldAutoFocus: {
119
- type: import("vue").PropType<boolean>;
120
- default: boolean;
121
- };
122
- shouldFocusOrder: {
123
- type: import("vue").PropType<boolean>;
124
- };
125
- }>> & {
126
- "onOn-change"?: ((value: string) => any) | undefined;
127
- "onUpdate:value"?: ((value: string) => any) | undefined;
128
- "onOn-complete"?: ((value: string) => any) | undefined;
129
- }, {
130
- clearInput: () => void;
131
- fillInput: (value: string) => void;
132
- }, {}, {}, {}, {
133
- inputmode: "tel" | "none" | "text" | "url" | "email" | "numeric" | "decimal" | "search";
134
- value: string;
135
- separator: string;
136
- inputClasses: string | string[];
137
- shouldAutoFocus: boolean;
138
- numInputs: number;
139
- }> | null;
140
- };
141
- rootEl: HTMLElement;
13
+ bottom?(_: {}): any;
142
14
  };
143
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
144
- declare const __VLS_component: import("vue").DefineComponent<Props, {
15
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
16
+ isLoading: boolean;
17
+ title: string;
18
+ description: string;
19
+ textCancelButton: string;
20
+ textSubmitButton: string;
21
+ hideIcon: boolean;
22
+ isInvalidOtp: boolean;
23
+ errorMsg: string;
24
+ }>, {
145
25
  clearInput: () => void | undefined;
146
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
147
- cancel: (...args: any[]) => void;
26
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
148
27
  submit: (...args: any[]) => void;
28
+ cancel: (...args: any[]) => void;
149
29
  onComplete: (...args: any[]) => void;
150
- }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
151
- onCancel?: ((...args: any[]) => any) | undefined;
30
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
31
+ isLoading: boolean;
32
+ title: string;
33
+ description: string;
34
+ textCancelButton: string;
35
+ textSubmitButton: string;
36
+ hideIcon: boolean;
37
+ isInvalidOtp: boolean;
38
+ errorMsg: string;
39
+ }>>> & {
152
40
  onSubmit?: ((...args: any[]) => any) | undefined;
41
+ onCancel?: ((...args: any[]) => any) | undefined;
153
42
  onOnComplete?: ((...args: any[]) => any) | undefined;
154
- }>, {
43
+ }, {
155
44
  title: string;
156
- isLoading: boolean;
157
45
  description: string;
46
+ isLoading: boolean;
158
47
  errorMsg: string;
159
48
  textCancelButton: string;
160
49
  textSubmitButton: string;
161
50
  hideIcon: boolean;
162
51
  isInvalidOtp: boolean;
163
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {
164
- otpInput: import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
165
- value: {
166
- type: import("vue").PropType<string>;
167
- required: true;
168
- default: string;
169
- };
170
- placeholder: {
171
- type: import("vue").PropType<string[]>;
172
- };
173
- isDisabled: {
174
- type: import("vue").PropType<boolean>;
175
- };
176
- inputmode: {
177
- type: import("vue").PropType<"text" | "search" | "email" | "tel" | "url" | "none" | "numeric" | "decimal">;
178
- default: string;
179
- };
180
- numInputs: {
181
- type: import("vue").PropType<number>;
182
- default: number;
183
- };
184
- separator: {
185
- type: import("vue").PropType<string>;
186
- default: string;
187
- };
188
- inputClasses: {
189
- type: import("vue").PropType<string | string[]>;
190
- default: string;
191
- };
192
- conditionalClass: {
193
- type: import("vue").PropType<string[]>;
194
- };
195
- inputType: {
196
- type: import("vue").PropType<"number" | "password" | "tel" | "letter-numeric">;
197
- };
198
- shouldAutoFocus: {
199
- type: import("vue").PropType<boolean>;
200
- default: boolean;
201
- };
202
- shouldFocusOrder: {
203
- type: import("vue").PropType<boolean>;
204
- };
205
- }>> & {
206
- "onOn-change"?: ((value: string) => any) | undefined;
207
- "onUpdate:value"?: ((value: string) => any) | undefined;
208
- "onOn-complete"?: ((value: string) => any) | undefined;
209
- }, {
210
- clearInput: () => void;
211
- fillInput: (value: string) => void;
212
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
213
- "update:value": (value: string) => void;
214
- "on-change": (value: string) => void;
215
- "on-complete": (value: string) => void;
216
- }, import("vue").PublicProps, {
217
- inputmode: "tel" | "none" | "text" | "url" | "email" | "numeric" | "decimal" | "search";
218
- value: string;
219
- separator: string;
220
- inputClasses: string | string[];
221
- shouldAutoFocus: boolean;
222
- numInputs: number;
223
- }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
224
- P: {};
225
- B: {};
226
- D: {};
227
- C: {};
228
- M: {};
229
- Defaults: {};
230
- }, Readonly<import("vue").ExtractPropTypes<{
231
- value: {
232
- type: import("vue").PropType<string>;
233
- required: true;
234
- default: string;
235
- };
236
- placeholder: {
237
- type: import("vue").PropType<string[]>;
238
- };
239
- isDisabled: {
240
- type: import("vue").PropType<boolean>;
241
- };
242
- inputmode: {
243
- type: import("vue").PropType<"text" | "search" | "email" | "tel" | "url" | "none" | "numeric" | "decimal">;
244
- default: string;
245
- };
246
- numInputs: {
247
- type: import("vue").PropType<number>;
248
- default: number;
249
- };
250
- separator: {
251
- type: import("vue").PropType<string>;
252
- default: string;
253
- };
254
- inputClasses: {
255
- type: import("vue").PropType<string | string[]>;
256
- default: string;
257
- };
258
- conditionalClass: {
259
- type: import("vue").PropType<string[]>;
260
- };
261
- inputType: {
262
- type: import("vue").PropType<"number" | "password" | "tel" | "letter-numeric">;
263
- };
264
- shouldAutoFocus: {
265
- type: import("vue").PropType<boolean>;
266
- default: boolean;
267
- };
268
- shouldFocusOrder: {
269
- type: import("vue").PropType<boolean>;
270
- };
271
- }>> & {
272
- "onOn-change"?: ((value: string) => any) | undefined;
273
- "onUpdate:value"?: ((value: string) => any) | undefined;
274
- "onOn-complete"?: ((value: string) => any) | undefined;
275
- }, {
276
- clearInput: () => void;
277
- fillInput: (value: string) => void;
278
- }, {}, {}, {}, {
279
- inputmode: "tel" | "none" | "text" | "url" | "email" | "numeric" | "decimal" | "search";
280
- value: string;
281
- separator: string;
282
- inputClasses: string | string[];
283
- shouldAutoFocus: boolean;
284
- numInputs: number;
285
- }> | null;
286
- }, HTMLElement>;
287
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
52
+ }, {}>;
53
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
288
54
  export default _default;
55
+ type __VLS_WithDefaults<P, D> = {
56
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
57
+ default: D[K];
58
+ }> : P[K];
59
+ };
60
+ type __VLS_Prettify<T> = {
61
+ [K in keyof T]: T[K];
62
+ } & {};
289
63
  type __VLS_WithTemplateSlots<T, S> = T & {
290
64
  new (): {
291
65
  $slots: S;
292
66
  };
293
67
  };
68
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
69
+ type __VLS_TypePropsToOption<T> = {
70
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
71
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
72
+ } : {
73
+ type: import('vue').PropType<T[K]>;
74
+ required: true;
75
+ };
76
+ };
@@ -15,8 +15,22 @@ interface Props {
15
15
  infoLabel?: string | null;
16
16
  iconInfoLabel?: boolean;
17
17
  showErrors?: boolean;
18
+ isSearchable?: boolean;
18
19
  }
19
- declare const _default: import("vue").DefineComponent<Props, {
20
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
21
+ isRequired: boolean;
22
+ minlength: string;
23
+ maxlength: string;
24
+ errorMsg: string;
25
+ isDisabled: boolean;
26
+ type: string;
27
+ labelOptional: string;
28
+ infoLabel: string;
29
+ iconInfoLabel: boolean;
30
+ theme: string;
31
+ showErrors: boolean;
32
+ isSearchable: boolean;
33
+ }>, {
20
34
  isValid: import("vue").ComputedRef<boolean>;
21
35
  isValidMinlength: import("vue").ComputedRef<boolean>;
22
36
  isValidMaxlength: import("vue").ComputedRef<boolean>;
@@ -25,11 +39,24 @@ declare const _default: import("vue").DefineComponent<Props, {
25
39
  isValidEmail: import("vue").ComputedRef<boolean>;
26
40
  areValidLetters: import("vue").ComputedRef<boolean>;
27
41
  isDirty: import("vue").ComputedRef<boolean>;
28
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
42
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
29
43
  "update:modelValue": (...args: any[]) => void;
30
- }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
44
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
45
+ isRequired: boolean;
46
+ minlength: string;
47
+ maxlength: string;
48
+ errorMsg: string;
49
+ isDisabled: boolean;
50
+ type: string;
51
+ labelOptional: string;
52
+ infoLabel: string;
53
+ iconInfoLabel: boolean;
54
+ theme: string;
55
+ showErrors: boolean;
56
+ isSearchable: boolean;
57
+ }>>> & {
31
58
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
32
- }>, {
59
+ }, {
33
60
  type: "alphanumeric" | "numeric" | "letters" | "anyCharacter" | "password" | "email";
34
61
  theme: "white" | "cloudy";
35
62
  isRequired: boolean;
@@ -41,5 +68,23 @@ declare const _default: import("vue").DefineComponent<Props, {
41
68
  infoLabel: string | null;
42
69
  iconInfoLabel: boolean;
43
70
  showErrors: boolean;
44
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
71
+ isSearchable: boolean;
72
+ }, {}>;
45
73
  export default _default;
74
+ type __VLS_WithDefaults<P, D> = {
75
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
76
+ default: D[K];
77
+ }> : P[K];
78
+ };
79
+ type __VLS_Prettify<T> = {
80
+ [K in keyof T]: T[K];
81
+ } & {};
82
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
83
+ type __VLS_TypePropsToOption<T> = {
84
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
85
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
86
+ } : {
87
+ type: import('vue').PropType<T[K]>;
88
+ required: true;
89
+ };
90
+ };
@@ -15,28 +15,63 @@ interface Props {
15
15
  labelOptional?: string;
16
16
  allowDecimals?: boolean;
17
17
  }
18
- declare const _default: import("vue").DefineComponent<Props, {
18
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
19
+ isRequired: boolean;
20
+ minlength: string;
21
+ maxlength: string;
22
+ errorMsg: string;
23
+ disabled: boolean;
24
+ min: number;
25
+ max: number;
26
+ labelOptional: string;
27
+ allowDecimals: boolean;
28
+ }>, {
19
29
  isValid: import("vue").ComputedRef<boolean>;
20
30
  isDirty: import("vue").ComputedRef<boolean>;
21
31
  showErrors: () => void;
22
32
  isValidMinAmount: import("vue").ComputedRef<boolean>;
23
33
  isValidMaxAmount: import("vue").ComputedRef<boolean>;
24
34
  handleSetValue: (value: number) => void;
25
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
35
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
36
  "update:modelValue": (...args: any[]) => void;
27
- }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
37
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
38
+ isRequired: boolean;
39
+ minlength: string;
40
+ maxlength: string;
41
+ errorMsg: string;
42
+ disabled: boolean;
43
+ min: number;
44
+ max: number;
45
+ labelOptional: string;
46
+ allowDecimals: boolean;
47
+ }>>> & {
28
48
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
29
- }>, {
49
+ }, {
30
50
  disabled: boolean;
31
51
  isRequired: boolean;
52
+ max: number;
53
+ min: number;
32
54
  minlength: string;
33
55
  maxlength: string;
34
56
  errorMsg: string;
35
57
  labelOptional: string;
36
- min: number;
37
- max: number;
38
58
  allowDecimals: boolean;
39
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {
40
- inputRef: HTMLInputElement;
41
- }, HTMLDivElement>;
59
+ }, {}>;
42
60
  export default _default;
61
+ type __VLS_WithDefaults<P, D> = {
62
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
63
+ default: D[K];
64
+ }> : P[K];
65
+ };
66
+ type __VLS_Prettify<T> = {
67
+ [K in keyof T]: T[K];
68
+ } & {};
69
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
70
+ type __VLS_TypePropsToOption<T> = {
71
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
72
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
73
+ } : {
74
+ type: import('vue').PropType<T[K]>;
75
+ required: true;
76
+ };
77
+ };
@@ -24,39 +24,76 @@ interface Props {
24
24
  hideCountrySelector?: boolean;
25
25
  allowZero?: boolean;
26
26
  }
27
- type __VLS_Props = Props;
28
- declare const currencySelected: import("vue").ModelRef<string | undefined, string, string | undefined, string | undefined>;
27
+ declare let __VLS_typeProps: Props;
28
+ declare const currencySelected: import("vue").ModelRef<string | undefined, string>;
29
29
  type __VLS_PublicProps = {
30
- 'currencySelected'?: typeof currencySelected['value'];
31
- } & __VLS_Props;
32
- declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {
30
+ 'currencySelected'?: NonNullable<typeof currencySelected['value']>;
31
+ } & typeof __VLS_typeProps;
32
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
33
+ isRequired: boolean;
34
+ minlength: string;
35
+ maxlength: string;
36
+ errorMsg: string;
37
+ isDisabled: boolean;
38
+ min: number;
39
+ max: number;
40
+ labelOptional: string;
41
+ allowZero: boolean;
42
+ hideCountrySelector: boolean;
43
+ }>, {
33
44
  isValid: import("vue").ComputedRef<boolean>;
34
45
  isDirty: import("vue").ComputedRef<boolean>;
35
46
  isValidMinAmount: import("vue").ComputedRef<boolean>;
36
47
  isValidMaxAmount: import("vue").ComputedRef<boolean>;
37
48
  handleSetValue: (value: number | null) => void;
38
49
  handleOnBlur: () => void;
39
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
50
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
51
+ "update:currencySelected": (currencySelected: string) => void;
40
52
  "update:modelValue": (...args: any[]) => void;
41
53
  "update:amount": (...args: any[]) => void;
42
54
  "update:currency": (...args: any[]) => void;
43
- "update:currencySelected": (value: string | undefined) => void;
44
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
55
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
56
+ isRequired: boolean;
57
+ minlength: string;
58
+ maxlength: string;
59
+ errorMsg: string;
60
+ isDisabled: boolean;
61
+ min: number;
62
+ max: number;
63
+ labelOptional: string;
64
+ allowZero: boolean;
65
+ hideCountrySelector: boolean;
66
+ }>>> & {
45
67
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
46
68
  "onUpdate:amount"?: ((...args: any[]) => any) | undefined;
47
69
  "onUpdate:currency"?: ((...args: any[]) => any) | undefined;
48
- "onUpdate:currencySelected"?: ((value: string | undefined) => any) | undefined;
49
- }>, {
70
+ "onUpdate:currencySelected"?: ((currencySelected: string) => any) | undefined;
71
+ }, {
50
72
  isRequired: boolean;
73
+ max: number;
74
+ min: number;
51
75
  minlength: string;
52
76
  maxlength: string;
53
77
  errorMsg: string;
54
78
  labelOptional: string;
55
- min: number;
56
- max: number;
57
79
  hideCountrySelector: boolean;
58
80
  allowZero: boolean;
59
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {
60
- inputRef: HTMLInputElement;
61
- }, HTMLDivElement>;
81
+ }, {}>;
62
82
  export default _default;
83
+ type __VLS_WithDefaults<P, D> = {
84
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
85
+ default: D[K];
86
+ }> : P[K];
87
+ };
88
+ type __VLS_Prettify<T> = {
89
+ [K in keyof T]: T[K];
90
+ } & {};
91
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
92
+ type __VLS_TypePropsToOption<T> = {
93
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
94
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
95
+ } : {
96
+ type: import('vue').PropType<T[K]>;
97
+ required: true;
98
+ };
99
+ };
@@ -15,16 +15,40 @@ interface Props {
15
15
  iconInfoLabel?: boolean;
16
16
  showErrors?: boolean;
17
17
  }
18
- declare const _default: import("vue").DefineComponent<Props, {
18
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
19
+ isRequired: boolean;
20
+ minlength: string;
21
+ maxlength: string;
22
+ placeholder: string;
23
+ errorMsg: string;
24
+ isDisabled: boolean;
25
+ labelOptional: string;
26
+ infoLabel: string;
27
+ iconInfoLabel: boolean;
28
+ theme: string;
29
+ showErrors: boolean;
30
+ }>, {
19
31
  isValid: import("vue").ComputedRef<boolean>;
20
32
  isValidMinlength: import("vue").ComputedRef<boolean>;
21
33
  isValidMaxlength: import("vue").ComputedRef<boolean>;
22
34
  isValidNumeric: import("vue").ComputedRef<boolean>;
23
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
35
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
36
  "update:modelValue": (...args: any[]) => void;
25
- }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
37
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
38
+ isRequired: boolean;
39
+ minlength: string;
40
+ maxlength: string;
41
+ placeholder: string;
42
+ errorMsg: string;
43
+ isDisabled: boolean;
44
+ labelOptional: string;
45
+ infoLabel: string;
46
+ iconInfoLabel: boolean;
47
+ theme: string;
48
+ showErrors: boolean;
49
+ }>>> & {
26
50
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
27
- }>, {
51
+ }, {
28
52
  theme: "white" | "cloudy";
29
53
  placeholder: string;
30
54
  isRequired: boolean;
@@ -36,5 +60,22 @@ declare const _default: import("vue").DefineComponent<Props, {
36
60
  infoLabel: string | null;
37
61
  iconInfoLabel: boolean;
38
62
  showErrors: boolean;
39
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
63
+ }, {}>;
40
64
  export default _default;
65
+ type __VLS_WithDefaults<P, D> = {
66
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
67
+ default: D[K];
68
+ }> : P[K];
69
+ };
70
+ type __VLS_Prettify<T> = {
71
+ [K in keyof T]: T[K];
72
+ } & {};
73
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
74
+ type __VLS_TypePropsToOption<T> = {
75
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
76
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
77
+ } : {
78
+ type: import('vue').PropType<T[K]>;
79
+ required: true;
80
+ };
81
+ };