@solfacil/girassol 0.3.1 → 0.3.4

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 (55) hide show
  1. package/.vscode/settings.json +1 -0
  2. package/dist/components.d.ts +3 -5
  3. package/dist/components.json +1 -1
  4. package/dist/girassol.es.js +3371 -1299
  5. package/dist/girassol.umd.js +14 -6
  6. package/dist/style.css +1 -1
  7. package/dist/theme/solfacil/index.d.ts +1 -0
  8. package/dist/theme/solfacil/utilities.d.ts +1 -0
  9. package/dist/types/components/accordion/Accordion.vue.d.ts +2 -2
  10. package/dist/types/components/forms/button/button/Button.vue.d.ts +2 -2
  11. package/dist/types/components/forms/button/button-destructive/ButtonDestructive.vue.d.ts +2 -2
  12. package/dist/types/components/forms/checkbox/checkbox/Checkbox.vue.d.ts +12 -80
  13. package/dist/types/components/forms/checkbox/checkbox-group/CheckboxGroup.vue.d.ts +55 -16
  14. package/dist/types/components/forms/inputs/index.d.ts +4 -0
  15. package/dist/types/components/forms/inputs/input-core/Input.vue.d.ts +44 -0
  16. package/dist/types/components/forms/{input → inputs/input-core}/input.spec.d.ts +0 -0
  17. package/dist/types/components/forms/inputs/input-password/InputPassword.vue.d.ts +58 -0
  18. package/dist/types/components/{dropdown/dropdown.spec.d.ts → forms/inputs/input-password/input-password.spec.d.ts} +0 -0
  19. package/dist/types/components/forms/{textarea/Textarea.vue.d.ts → inputs/input-text/InputText.vue.d.ts} +92 -52
  20. package/dist/types/components/forms/{textarea/textarea.spec.d.ts → inputs/input-text/input-text.spec.d.ts} +0 -0
  21. package/dist/types/components/forms/inputs/input-textarea/InputTextarea.vue.d.ts +70 -0
  22. package/dist/types/components/forms/{textfield/textfield-password.spec.d.ts → inputs/input-textarea/textarea.spec.d.ts} +0 -0
  23. package/dist/types/components/forms/inputs/types.d.ts +24 -0
  24. package/dist/types/components/forms/radio/radio/Radio.vue.d.ts +11 -77
  25. package/dist/types/components/forms/radio/radio-group/RadioGroup.vue.d.ts +53 -14
  26. package/dist/types/components/forms/select/ListOption.vue.d.ts +4 -9
  27. package/dist/types/components/forms/select/Select.vue.d.ts +139 -184
  28. package/dist/types/components/forms/select/types.d.ts +23 -0
  29. package/dist/types/components/forms/switch/Switch.vue.d.ts +18 -102
  30. package/dist/types/components/informations/chip/Chip.vue.d.ts +5 -5
  31. package/dist/types/components/loader/CircleLoader.vue.d.ts +15 -68
  32. package/dist/types/components/menus/menu/Menu.vue.d.ts +2 -2
  33. package/dist/types/components/menus/menu-navigation-links/MenuNavigationLinks.vue.d.ts +2 -2
  34. package/dist/types/composables/use-mask/index.d.ts +18 -0
  35. package/dist/types/composables/use-toast/Toast.vue.d.ts +2 -2
  36. package/dist/types/composables/use-validate-field/index.d.ts +5 -0
  37. package/dist/types/composables/use-validate-field/types.d.ts +22 -0
  38. package/dist/types/index.d.ts +1183 -1730
  39. package/package.json +7 -5
  40. package/theme/solfacil/colors.ts +1 -1
  41. package/theme/solfacil/index.ts +2 -1
  42. package/theme/solfacil/utilities.ts +27 -0
  43. package/windi.config.ts +12 -11
  44. package/dist/README.md.d.ts +0 -2
  45. package/dist/cli/readme.md.d.ts +0 -2
  46. package/dist/theme/safelist.d.ts +0 -14
  47. package/dist/types/components/dropdown/Dropdown.vue.d.ts +0 -238
  48. package/dist/types/components/dropdown/index.d.ts +0 -2
  49. package/dist/types/components/forms/input/Input.vue.d.ts +0 -93
  50. package/dist/types/components/forms/input/index.d.ts +0 -2
  51. package/dist/types/components/forms/textarea/index.d.ts +0 -2
  52. package/dist/types/components/forms/textfield/Textfield.vue.d.ts +0 -129
  53. package/dist/types/components/forms/textfield/TextfieldPassword.vue.d.ts +0 -93
  54. package/dist/types/components/forms/textfield/index.d.ts +0 -3
  55. package/dist/types/components/forms/textfield/textfield.spec.d.ts +0 -1
@@ -4,24 +4,34 @@ declare const _default: {
4
4
  $: import("vue").ComponentInternalInstance;
5
5
  $data: {};
6
6
  $props: Partial<{
7
+ error: string | null;
7
8
  hideTitle: boolean;
8
9
  direction: 'row' | 'column';
9
10
  }> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
10
11
  id: string;
11
12
  title: string;
13
+ name: string;
12
14
  hideTitle?: boolean | undefined;
13
- hint?: string | undefined;
14
- error?: string | undefined;
15
+ helperText?: string | undefined;
16
+ error?: string | null | undefined;
15
17
  checkboxes: CheckboxType[];
16
18
  modelValue?: import("@forms/checkbox/type").CheckboxValue[] | undefined;
17
19
  direction?: "row" | "column" | undefined;
20
+ useField?: typeof import("vee-validate").useField | undefined;
21
+ rules?: (string | Record<string, unknown> | import("vee-validate").GenericValidateFunction<unknown> | import("vee-validate").GenericValidateFunction<unknown>[] | {
22
+ validate(value: unknown, options: Record<string, any>): Promise<unknown>;
23
+ } | undefined) | import("vue").Ref<string | Record<string, unknown> | import("vee-validate").GenericValidateFunction<unknown> | import("vee-validate").GenericValidateFunction<unknown>[] | {
24
+ validate(value: unknown, options: Record<string, any>): Promise<unknown>;
25
+ } | undefined>;
26
+ opts?: Partial<import("vee-validate").FieldOptions<import("@forms/checkbox/type").CheckboxValue>> | undefined;
18
27
  }>, {
28
+ error: null;
19
29
  direction: string;
20
30
  hideTitle: boolean;
21
31
  }>>> & {
22
32
  onChange?: ((value: import("@forms/checkbox/type").CheckboxValue) => any) | undefined;
23
- "onUpdate:modelValue"?: ((a: any) => any) | undefined;
24
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "hideTitle" | "direction">;
33
+ "onUpdate:modelValue"?: ((v: import("@forms/checkbox/type").CheckboxValue[] | undefined) => any) | undefined;
34
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "error" | "hideTitle" | "direction">;
25
35
  $attrs: {
26
36
  [x: string]: unknown;
27
37
  };
@@ -33,28 +43,38 @@ declare const _default: {
33
43
  }>;
34
44
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
35
45
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
36
- $emit: ((event: "update:modelValue", a: any) => void) & ((event: "change", value: import("@forms/checkbox/type").CheckboxValue) => void);
46
+ $emit: ((event: "change", value: import("@forms/checkbox/type").CheckboxValue) => void) & ((event: "update:modelValue", v: import("@forms/checkbox/type").CheckboxValue[] | undefined) => void);
37
47
  $el: any;
38
48
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
39
49
  id: string;
40
50
  title: string;
51
+ name: string;
41
52
  hideTitle?: boolean | undefined;
42
- hint?: string | undefined;
43
- error?: string | undefined;
53
+ helperText?: string | undefined;
54
+ error?: string | null | undefined;
44
55
  checkboxes: CheckboxType[];
45
56
  modelValue?: import("@forms/checkbox/type").CheckboxValue[] | undefined;
46
57
  direction?: "row" | "column" | undefined;
58
+ useField?: typeof import("vee-validate").useField | undefined;
59
+ rules?: (string | Record<string, unknown> | import("vee-validate").GenericValidateFunction<unknown> | import("vee-validate").GenericValidateFunction<unknown>[] | {
60
+ validate(value: unknown, options: Record<string, any>): Promise<unknown>;
61
+ } | undefined) | import("vue").Ref<string | Record<string, unknown> | import("vee-validate").GenericValidateFunction<unknown> | import("vee-validate").GenericValidateFunction<unknown>[] | {
62
+ validate(value: unknown, options: Record<string, any>): Promise<unknown>;
63
+ } | undefined>;
64
+ opts?: Partial<import("vee-validate").FieldOptions<import("@forms/checkbox/type").CheckboxValue>> | undefined;
47
65
  }>, {
66
+ error: null;
48
67
  direction: string;
49
68
  hideTitle: boolean;
50
69
  }>>> & {
51
70
  onChange?: ((value: import("@forms/checkbox/type").CheckboxValue) => any) | undefined;
52
- "onUpdate:modelValue"?: ((a: any) => any) | undefined;
71
+ "onUpdate:modelValue"?: ((v: import("@forms/checkbox/type").CheckboxValue[] | undefined) => any) | undefined;
53
72
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
54
73
  change: (value: import("@forms/checkbox/type").CheckboxValue) => void;
55
74
  } & {
56
- "update:modelValue": (a: any) => void;
75
+ "update:modelValue": (v: import("@forms/checkbox/type").CheckboxValue[] | undefined) => void;
57
76
  }, string, {
77
+ error: string | null;
58
78
  hideTitle: boolean;
59
79
  direction: 'row' | 'column';
60
80
  }> & {
@@ -80,18 +100,27 @@ declare const _default: {
80
100
  } & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
81
101
  id: string;
82
102
  title: string;
103
+ name: string;
83
104
  hideTitle?: boolean | undefined;
84
- hint?: string | undefined;
85
- error?: string | undefined;
105
+ helperText?: string | undefined;
106
+ error?: string | null | undefined;
86
107
  checkboxes: CheckboxType[];
87
108
  modelValue?: import("@forms/checkbox/type").CheckboxValue[] | undefined;
88
109
  direction?: "row" | "column" | undefined;
110
+ useField?: typeof import("vee-validate").useField | undefined;
111
+ rules?: (string | Record<string, unknown> | import("vee-validate").GenericValidateFunction<unknown> | import("vee-validate").GenericValidateFunction<unknown>[] | {
112
+ validate(value: unknown, options: Record<string, any>): Promise<unknown>;
113
+ } | undefined) | import("vue").Ref<string | Record<string, unknown> | import("vee-validate").GenericValidateFunction<unknown> | import("vee-validate").GenericValidateFunction<unknown>[] | {
114
+ validate(value: unknown, options: Record<string, any>): Promise<unknown>;
115
+ } | undefined>;
116
+ opts?: Partial<import("vee-validate").FieldOptions<import("@forms/checkbox/type").CheckboxValue>> | undefined;
89
117
  }>, {
118
+ error: null;
90
119
  direction: string;
91
120
  hideTitle: boolean;
92
121
  }>>> & {
93
122
  onChange?: ((value: import("@forms/checkbox/type").CheckboxValue) => any) | undefined;
94
- "onUpdate:modelValue"?: ((a: any) => any) | undefined;
123
+ "onUpdate:modelValue"?: ((v: import("@forms/checkbox/type").CheckboxValue[] | undefined) => any) | undefined;
95
124
  } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
96
125
  __isFragment?: undefined;
97
126
  __isTeleport?: undefined;
@@ -99,23 +128,33 @@ declare const _default: {
99
128
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
100
129
  id: string;
101
130
  title: string;
131
+ name: string;
102
132
  hideTitle?: boolean | undefined;
103
- hint?: string | undefined;
104
- error?: string | undefined;
133
+ helperText?: string | undefined;
134
+ error?: string | null | undefined;
105
135
  checkboxes: CheckboxType[];
106
136
  modelValue?: import("@forms/checkbox/type").CheckboxValue[] | undefined;
107
137
  direction?: "row" | "column" | undefined;
138
+ useField?: typeof import("vee-validate").useField | undefined;
139
+ rules?: (string | Record<string, unknown> | import("vee-validate").GenericValidateFunction<unknown> | import("vee-validate").GenericValidateFunction<unknown>[] | {
140
+ validate(value: unknown, options: Record<string, any>): Promise<unknown>;
141
+ } | undefined) | import("vue").Ref<string | Record<string, unknown> | import("vee-validate").GenericValidateFunction<unknown> | import("vee-validate").GenericValidateFunction<unknown>[] | {
142
+ validate(value: unknown, options: Record<string, any>): Promise<unknown>;
143
+ } | undefined>;
144
+ opts?: Partial<import("vee-validate").FieldOptions<import("@forms/checkbox/type").CheckboxValue>> | undefined;
108
145
  }>, {
146
+ error: null;
109
147
  direction: string;
110
148
  hideTitle: boolean;
111
149
  }>>> & {
112
150
  onChange?: ((value: import("@forms/checkbox/type").CheckboxValue) => any) | undefined;
113
- "onUpdate:modelValue"?: ((a: any) => any) | undefined;
151
+ "onUpdate:modelValue"?: ((v: import("@forms/checkbox/type").CheckboxValue[] | undefined) => any) | undefined;
114
152
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
115
153
  change: (value: import("@forms/checkbox/type").CheckboxValue) => void;
116
154
  } & {
117
- "update:modelValue": (a: any) => void;
155
+ "update:modelValue": (v: import("@forms/checkbox/type").CheckboxValue[] | undefined) => void;
118
156
  }, string, {
157
+ error: string | null;
119
158
  hideTitle: boolean;
120
159
  direction: 'row' | 'column';
121
160
  }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
@@ -0,0 +1,4 @@
1
+ import SolInputText from './input-text/InputText.vue';
2
+ import SolInputTextPassword from './input-password/InputPassword.vue';
3
+ import SolInputTextarea from './input-textarea/InputTextarea.vue';
4
+ export { SolInputText, SolInputTextPassword, SolInputTextarea, };
@@ -0,0 +1,44 @@
1
+ import type { InputCore } from '../types';
2
+ import type { Mask } from '../../../../composables/use-mask';
3
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
+ id: InputCore['id'];
5
+ modelValue: InputCore['modelValue'];
6
+ error?: InputCore['error'];
7
+ mask?: Mask | undefined;
8
+ size?: InputCore['size'];
9
+ hasFeedbackIcon?: InputCore['hasFeedbackIcon'];
10
+ }>, {
11
+ size: string;
12
+ }>, {
13
+ input: import("vue").Ref<string>;
14
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
+ "update:modelValue": (event: string) => void;
16
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
17
+ id: InputCore['id'];
18
+ modelValue: InputCore['modelValue'];
19
+ error?: InputCore['error'];
20
+ mask?: Mask | undefined;
21
+ size?: InputCore['size'];
22
+ hasFeedbackIcon?: InputCore['hasFeedbackIcon'];
23
+ }>, {
24
+ size: string;
25
+ }>>> & {
26
+ "onUpdate:modelValue"?: ((event: string) => any) | undefined;
27
+ }, {
28
+ size: "sm" | "md";
29
+ }>;
30
+ export default _default;
31
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
32
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
33
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
34
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
35
+ } : {
36
+ type: import('vue').PropType<T[K]>;
37
+ required: true;
38
+ };
39
+ };
40
+ declare type __VLS_WithDefaults<P, D> = {
41
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
42
+ default: D[K];
43
+ } : P[K];
44
+ };
@@ -0,0 +1,58 @@
1
+ import type { InputText as InputType } from '../types';
2
+ import type { ParentValidation } from '@/composables/use-validate-field/types';
3
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
+ id: InputType['id'];
5
+ label?: InputType['label'];
6
+ name: InputType['name'];
7
+ placeholder?: string | undefined;
8
+ helperText?: InputType['helperText'];
9
+ required?: InputType['required'];
10
+ disabled?: InputType['disabled'];
11
+ size?: InputType['size'];
12
+ error?: string | null | undefined;
13
+ modelValue?: string | undefined;
14
+ useField?: ParentValidation<string>['useFieldParent'];
15
+ rules?: ParentValidation<string>['rules'];
16
+ opts?: ParentValidation<string>['opts'];
17
+ }>, {
18
+ name: string;
19
+ required: boolean;
20
+ placeholder: string;
21
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
22
+ id: InputType['id'];
23
+ label?: InputType['label'];
24
+ name: InputType['name'];
25
+ placeholder?: string | undefined;
26
+ helperText?: InputType['helperText'];
27
+ required?: InputType['required'];
28
+ disabled?: InputType['disabled'];
29
+ size?: InputType['size'];
30
+ error?: string | null | undefined;
31
+ modelValue?: string | undefined;
32
+ useField?: ParentValidation<string>['useFieldParent'];
33
+ rules?: ParentValidation<string>['rules'];
34
+ opts?: ParentValidation<string>['opts'];
35
+ }>, {
36
+ name: string;
37
+ required: boolean;
38
+ placeholder: string;
39
+ }>>>, {
40
+ required: boolean;
41
+ name: InputType['name'];
42
+ placeholder: string;
43
+ }>;
44
+ export default _default;
45
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
46
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
47
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
48
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
49
+ } : {
50
+ type: import('vue').PropType<T[K]>;
51
+ required: true;
52
+ };
53
+ };
54
+ declare type __VLS_WithDefaults<P, D> = {
55
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
56
+ default: D[K];
57
+ } : P[K];
58
+ };
@@ -1,27 +1,40 @@
1
+ import type { InputText } from '../types';
2
+ import type { ParentValidation } from '../../../../composables/use-validate-field/types';
3
+ import type { Mask } from '../../../../composables/use-mask';
4
+ declare type ParentValidationInput = ParentValidation<string>;
1
5
  declare const _default: {
2
6
  new (...args: any[]): {
3
7
  $: import("vue").ComponentInternalInstance;
4
8
  $data: {};
5
9
  $props: Partial<{
6
- label: string;
7
- modelValue: string;
8
- resize: 'both' | 'horizontal' | 'vertical' | 'none';
10
+ size: "sm" | "md";
11
+ error: string | null;
9
12
  }> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
10
- id: string;
11
- class?: string | undefined;
13
+ id: InputText['id'];
14
+ name: InputText['name'];
15
+ class?: InputText['class'];
16
+ label?: InputText['label'];
17
+ mask?: Mask | undefined;
18
+ helperText?: InputText['helperText'];
19
+ successText?: InputText['successText'];
20
+ loadingText?: InputText['loadingText'];
21
+ required?: InputText['required'];
22
+ disabled?: InputText['disabled'];
23
+ isSuccess?: InputText['isSuccess'];
24
+ isLoading?: InputText['isLoading'];
25
+ size?: InputText['size'];
26
+ error?: string | null | undefined;
12
27
  modelValue?: string | undefined;
13
- label?: string | undefined;
14
- hint?: string | undefined;
15
- invert?: boolean | undefined;
16
- resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
17
- error?: string | undefined;
28
+ placeholder?: string | undefined;
29
+ useField?: ParentValidationInput['useFieldParent'];
30
+ rules?: ParentValidationInput['rules'];
31
+ opts?: ParentValidationInput['opts'];
18
32
  }>, {
19
- modelValue: string;
20
- label: string;
21
- resize: string;
33
+ size: string;
34
+ error: null;
22
35
  }>>> & {
23
36
  "onUpdate:modelValue"?: ((event: string) => any) | undefined;
24
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "label" | "modelValue" | "resize">;
37
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "size" | "error">;
25
38
  $attrs: {
26
39
  [x: string]: unknown;
27
40
  };
@@ -36,26 +49,35 @@ declare const _default: {
36
49
  $emit: (event: "update:modelValue", event: string) => void;
37
50
  $el: any;
38
51
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
39
- id: string;
40
- class?: string | undefined;
52
+ id: InputText['id'];
53
+ name: InputText['name'];
54
+ class?: InputText['class'];
55
+ label?: InputText['label'];
56
+ mask?: Mask | undefined;
57
+ helperText?: InputText['helperText'];
58
+ successText?: InputText['successText'];
59
+ loadingText?: InputText['loadingText'];
60
+ required?: InputText['required'];
61
+ disabled?: InputText['disabled'];
62
+ isSuccess?: InputText['isSuccess'];
63
+ isLoading?: InputText['isLoading'];
64
+ size?: InputText['size'];
65
+ error?: string | null | undefined;
41
66
  modelValue?: string | undefined;
42
- label?: string | undefined;
43
- hint?: string | undefined;
44
- invert?: boolean | undefined;
45
- resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
46
- error?: string | undefined;
67
+ placeholder?: string | undefined;
68
+ useField?: ParentValidationInput['useFieldParent'];
69
+ rules?: ParentValidationInput['rules'];
70
+ opts?: ParentValidationInput['opts'];
47
71
  }>, {
48
- modelValue: string;
49
- label: string;
50
- resize: string;
72
+ size: string;
73
+ error: null;
51
74
  }>>> & {
52
75
  "onUpdate:modelValue"?: ((event: string) => any) | undefined;
53
76
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
54
77
  "update:modelValue": (event: string) => void;
55
78
  }, string, {
56
- label: string;
57
- modelValue: string;
58
- resize: 'both' | 'horizontal' | 'vertical' | 'none';
79
+ size: "sm" | "md";
80
+ error: string | null;
59
81
  }> & {
60
82
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
61
83
  created?: ((() => void) | (() => void)[]) | undefined;
@@ -77,18 +99,28 @@ declare const _default: {
77
99
  $nextTick: typeof import("vue").nextTick;
78
100
  $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
79
101
  } & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
80
- id: string;
81
- class?: string | undefined;
102
+ id: InputText['id'];
103
+ name: InputText['name'];
104
+ class?: InputText['class'];
105
+ label?: InputText['label'];
106
+ mask?: Mask | undefined;
107
+ helperText?: InputText['helperText'];
108
+ successText?: InputText['successText'];
109
+ loadingText?: InputText['loadingText'];
110
+ required?: InputText['required'];
111
+ disabled?: InputText['disabled'];
112
+ isSuccess?: InputText['isSuccess'];
113
+ isLoading?: InputText['isLoading'];
114
+ size?: InputText['size'];
115
+ error?: string | null | undefined;
82
116
  modelValue?: string | undefined;
83
- label?: string | undefined;
84
- hint?: string | undefined;
85
- invert?: boolean | undefined;
86
- resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
87
- error?: string | undefined;
117
+ placeholder?: string | undefined;
118
+ useField?: ParentValidationInput['useFieldParent'];
119
+ rules?: ParentValidationInput['rules'];
120
+ opts?: ParentValidationInput['opts'];
88
121
  }>, {
89
- modelValue: string;
90
- label: string;
91
- resize: string;
122
+ size: string;
123
+ error: null;
92
124
  }>>> & {
93
125
  "onUpdate:modelValue"?: ((event: string) => any) | undefined;
94
126
  } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
@@ -96,30 +128,38 @@ declare const _default: {
96
128
  __isTeleport?: undefined;
97
129
  __isSuspense?: undefined;
98
130
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
99
- id: string;
100
- class?: string | undefined;
131
+ id: InputText['id'];
132
+ name: InputText['name'];
133
+ class?: InputText['class'];
134
+ label?: InputText['label'];
135
+ mask?: Mask | undefined;
136
+ helperText?: InputText['helperText'];
137
+ successText?: InputText['successText'];
138
+ loadingText?: InputText['loadingText'];
139
+ required?: InputText['required'];
140
+ disabled?: InputText['disabled'];
141
+ isSuccess?: InputText['isSuccess'];
142
+ isLoading?: InputText['isLoading'];
143
+ size?: InputText['size'];
144
+ error?: string | null | undefined;
101
145
  modelValue?: string | undefined;
102
- label?: string | undefined;
103
- hint?: string | undefined;
104
- invert?: boolean | undefined;
105
- resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
106
- error?: string | undefined;
146
+ placeholder?: string | undefined;
147
+ useField?: ParentValidationInput['useFieldParent'];
148
+ rules?: ParentValidationInput['rules'];
149
+ opts?: ParentValidationInput['opts'];
107
150
  }>, {
108
- modelValue: string;
109
- label: string;
110
- resize: string;
151
+ size: string;
152
+ error: null;
111
153
  }>>> & {
112
154
  "onUpdate:modelValue"?: ((event: string) => any) | undefined;
113
155
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
114
156
  "update:modelValue": (event: string) => void;
115
157
  }, string, {
116
- label: string;
117
- modelValue: string;
118
- resize: 'both' | 'horizontal' | 'vertical' | 'none';
158
+ size: "sm" | "md";
159
+ error: string | null;
119
160
  }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
120
161
  $slots: {
121
- label: (_: {}) => any;
122
- default: (_: {}) => any;
162
+ icon: (_: {}) => any;
123
163
  };
124
164
  });
125
165
  export default _default;
@@ -0,0 +1,70 @@
1
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ id: string;
3
+ class?: string | undefined;
4
+ name: string;
5
+ label?: string | undefined;
6
+ required?: boolean | undefined;
7
+ helperText?: string | undefined;
8
+ resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
9
+ size?: "sm" | "md" | undefined;
10
+ error?: string | null | undefined;
11
+ placeholder?: string | undefined;
12
+ modelValue?: string | undefined;
13
+ useField?: typeof import("vee-validate").useField | undefined;
14
+ rules?: (string | Record<string, unknown> | import("vee-validate").GenericValidateFunction<unknown> | import("vee-validate").GenericValidateFunction<unknown>[] | {
15
+ validate(value: unknown, options: Record<string, any>): Promise<unknown>;
16
+ } | undefined) | import("vue").Ref<string | Record<string, unknown> | import("vee-validate").GenericValidateFunction<unknown> | import("vee-validate").GenericValidateFunction<unknown>[] | {
17
+ validate(value: unknown, options: Record<string, any>): Promise<unknown>;
18
+ } | undefined>;
19
+ opts?: Partial<import("vee-validate").FieldOptions<string>> | undefined;
20
+ }>, {
21
+ size: string;
22
+ resize: string;
23
+ error: null;
24
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
+ "update:modelValue": (event: string) => void;
26
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
27
+ id: string;
28
+ class?: string | undefined;
29
+ name: string;
30
+ label?: string | undefined;
31
+ required?: boolean | undefined;
32
+ helperText?: string | undefined;
33
+ resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
34
+ size?: "sm" | "md" | undefined;
35
+ error?: string | null | undefined;
36
+ placeholder?: string | undefined;
37
+ modelValue?: string | undefined;
38
+ useField?: typeof import("vee-validate").useField | undefined;
39
+ rules?: (string | Record<string, unknown> | import("vee-validate").GenericValidateFunction<unknown> | import("vee-validate").GenericValidateFunction<unknown>[] | {
40
+ validate(value: unknown, options: Record<string, any>): Promise<unknown>;
41
+ } | undefined) | import("vue").Ref<string | Record<string, unknown> | import("vee-validate").GenericValidateFunction<unknown> | import("vee-validate").GenericValidateFunction<unknown>[] | {
42
+ validate(value: unknown, options: Record<string, any>): Promise<unknown>;
43
+ } | undefined>;
44
+ opts?: Partial<import("vee-validate").FieldOptions<string>> | undefined;
45
+ }>, {
46
+ size: string;
47
+ resize: string;
48
+ error: null;
49
+ }>>> & {
50
+ "onUpdate:modelValue"?: ((event: string) => any) | undefined;
51
+ }, {
52
+ size: 'sm' | 'md';
53
+ error: string | null;
54
+ resize: 'both' | 'horizontal' | 'vertical' | 'none';
55
+ }>;
56
+ export default _default;
57
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
58
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
59
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
60
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
61
+ } : {
62
+ type: import('vue').PropType<T[K]>;
63
+ required: true;
64
+ };
65
+ };
66
+ declare type __VLS_WithDefaults<P, D> = {
67
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
68
+ default: D[K];
69
+ } : P[K];
70
+ };
@@ -0,0 +1,24 @@
1
+ declare type Size = 'sm' | 'md';
2
+ declare type ModelValue = string | number;
3
+ export interface InputCore {
4
+ id: string;
5
+ modelValue: ModelValue;
6
+ error?: boolean;
7
+ size?: Size;
8
+ hasFeedbackIcon?: boolean;
9
+ }
10
+ export interface InputText {
11
+ id: string;
12
+ name: string;
13
+ label?: string;
14
+ class?: string;
15
+ helperText?: string;
16
+ successText?: string;
17
+ loadingText?: string;
18
+ required?: boolean;
19
+ disabled?: boolean;
20
+ isSuccess?: boolean;
21
+ isLoading?: boolean;
22
+ size?: Size;
23
+ }
24
+ export {};