@solfacil/girassol 0.2.12 → 0.3.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 (36) hide show
  1. package/dist/components.d.ts +2 -3
  2. package/dist/components.json +1 -1
  3. package/dist/girassol.es.js +3010 -985
  4. package/dist/girassol.umd.js +10 -6
  5. package/dist/style.css +1 -1
  6. package/dist/types/components/forms/button/{Button.vue.d.ts → button/Button.vue.d.ts} +0 -0
  7. package/dist/types/components/forms/button/{button.spec.d.ts → button/button.spec.d.ts} +0 -0
  8. package/dist/types/components/forms/button/{ButtonDestructive.vue.d.ts → button-destructive/ButtonDestructive.vue.d.ts} +0 -0
  9. package/dist/types/components/forms/button/index.d.ts +2 -2
  10. package/dist/types/components/forms/checkbox/{Checkbox.vue.d.ts → checkbox/Checkbox.vue.d.ts} +12 -8
  11. package/dist/types/components/forms/checkbox/{checkbox.spec.d.ts → checkbox/checkbox.spec.d.ts} +0 -0
  12. package/dist/types/components/forms/checkbox/{CheckboxGroup.vue.d.ts → checkbox-group/CheckboxGroup.vue.d.ts} +12 -12
  13. package/dist/types/components/forms/checkbox/{checkbox-group.spec.d.ts → checkbox-group/checkbox-group.spec.d.ts} +0 -0
  14. package/dist/types/components/forms/checkbox/index.d.ts +2 -2
  15. package/dist/types/components/forms/checkbox/{checkbox-type.d.ts → type.d.ts} +1 -0
  16. package/dist/types/components/forms/inputs/index.d.ts +3 -0
  17. package/dist/types/components/forms/{input → inputs/input-core}/Input.vue.d.ts +47 -23
  18. package/dist/types/components/forms/{input → inputs/input-core}/input.spec.d.ts +0 -0
  19. package/dist/types/components/forms/{textfield/TextfieldPassword.vue.d.ts → inputs/input-password/InputPassword.vue.d.ts} +76 -23
  20. package/dist/types/components/forms/{textfield/textfield-password.spec.d.ts → inputs/input-password/input-password.spec.d.ts} +0 -0
  21. package/dist/types/components/forms/inputs/input-text/InputText.vue.d.ts +181 -0
  22. package/dist/types/components/forms/{textfield/textfield.spec.d.ts → inputs/input-text/input-text.spec.d.ts} +0 -0
  23. package/dist/types/components/forms/inputs/types.d.ts +24 -0
  24. package/dist/types/components/forms/switch/Switch.vue.d.ts +52 -22
  25. package/dist/types/components/loader/CircleLoader.vue.d.ts +19 -8
  26. package/dist/types/components/menus/menu/Menu.vue.d.ts +7 -7
  27. package/dist/types/composables/use-validate-field/index.d.ts +5 -0
  28. package/dist/types/composables/use-validate-field/types.d.ts +9 -0
  29. package/dist/types/index.d.ts +544 -302
  30. package/package.json +22 -19
  31. package/theme/solfacil/colors.ts +1 -1
  32. package/windi.config.ts +11 -11
  33. package/dist/theme/safelist.d.ts +0 -14
  34. package/dist/types/components/forms/input/index.d.ts +0 -2
  35. package/dist/types/components/forms/textfield/Textfield.vue.d.ts +0 -129
  36. package/dist/types/components/forms/textfield/index.d.ts +0 -3
@@ -1,15 +1,21 @@
1
+ import type { InputCore } from '../types';
1
2
  declare const _default: {
2
3
  new (...args: any[]): {
3
4
  $: import("vue").ComponentInternalInstance;
4
5
  $data: {};
5
- $props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
6
- id: string;
7
- modelValue: string | number;
8
- invert?: boolean | undefined;
9
- error?: boolean | undefined;
6
+ $props: Partial<{
7
+ size: "sm" | "md";
8
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
9
+ id: InputCore['id'];
10
+ modelValue: InputCore['modelValue'];
11
+ error?: InputCore['error'];
12
+ size?: InputCore['size'];
13
+ hasFeedbackIcon?: InputCore['hasFeedbackIcon'];
14
+ }>, {
15
+ size: string;
10
16
  }>>> & {
11
17
  "onUpdate:modelValue"?: ((event: string) => any) | undefined;
12
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
18
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "size">;
13
19
  $attrs: {
14
20
  [x: string]: unknown;
15
21
  };
@@ -23,18 +29,23 @@ declare const _default: {
23
29
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
24
30
  $emit: (event: "update:modelValue", event: string) => void;
25
31
  $el: any;
26
- $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
27
- id: string;
28
- modelValue: string | number;
29
- invert?: boolean | undefined;
30
- error?: boolean | undefined;
32
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
33
+ id: InputCore['id'];
34
+ modelValue: InputCore['modelValue'];
35
+ error?: InputCore['error'];
36
+ size?: InputCore['size'];
37
+ hasFeedbackIcon?: InputCore['hasFeedbackIcon'];
38
+ }>, {
39
+ size: string;
31
40
  }>>> & {
32
41
  "onUpdate:modelValue"?: ((event: string) => any) | undefined;
33
42
  }, {
34
43
  input: import("vue").Ref<string>;
35
44
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
36
45
  "update:modelValue": (event: string) => void;
37
- }, string, {}> & {
46
+ }, string, {
47
+ size: "sm" | "md";
48
+ }> & {
38
49
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
39
50
  created?: ((() => void) | (() => void)[]) | undefined;
40
51
  beforeMount?: ((() => void) | (() => void)[]) | undefined;
@@ -54,11 +65,14 @@ declare const _default: {
54
65
  $forceUpdate: () => void;
55
66
  $nextTick: typeof import("vue").nextTick;
56
67
  $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
57
- } & Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
58
- id: string;
59
- modelValue: string | number;
60
- invert?: boolean | undefined;
61
- error?: boolean | undefined;
68
+ } & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
69
+ id: InputCore['id'];
70
+ modelValue: InputCore['modelValue'];
71
+ error?: InputCore['error'];
72
+ size?: InputCore['size'];
73
+ hasFeedbackIcon?: InputCore['hasFeedbackIcon'];
74
+ }>, {
75
+ size: string;
62
76
  }>>> & {
63
77
  "onUpdate:modelValue"?: ((event: string) => any) | undefined;
64
78
  } & import("vue").ShallowUnwrapRef<{
@@ -67,18 +81,23 @@ declare const _default: {
67
81
  __isFragment?: undefined;
68
82
  __isTeleport?: undefined;
69
83
  __isSuspense?: undefined;
70
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
71
- id: string;
72
- modelValue: string | number;
73
- invert?: boolean | undefined;
74
- error?: boolean | undefined;
84
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
85
+ id: InputCore['id'];
86
+ modelValue: InputCore['modelValue'];
87
+ error?: InputCore['error'];
88
+ size?: InputCore['size'];
89
+ hasFeedbackIcon?: InputCore['hasFeedbackIcon'];
90
+ }>, {
91
+ size: string;
75
92
  }>>> & {
76
93
  "onUpdate:modelValue"?: ((event: string) => any) | undefined;
77
94
  }, {
78
95
  input: import("vue").Ref<string>;
79
96
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
80
97
  "update:modelValue": (event: string) => void;
81
- }, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
98
+ }, string, {
99
+ size: "sm" | "md";
100
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
82
101
  $slots: {};
83
102
  });
84
103
  export default _default;
@@ -91,3 +110,8 @@ declare type __VLS_TypePropsToRuntimeProps<T> = {
91
110
  required: true;
92
111
  };
93
112
  };
113
+ declare type __VLS_WithDefaults<P, D> = {
114
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
115
+ default: D[K];
116
+ } : P[K];
117
+ };
@@ -1,17 +1,32 @@
1
+ import type { InputText as InputType } from '../types';
2
+ import type { ParentValidation } from '@/composables/use-validate-field/types';
1
3
  declare const _default: {
2
4
  new (...args: any[]): {
3
5
  $: import("vue").ComponentInternalInstance;
4
6
  $data: {};
5
7
  $props: Partial<{
6
- label: string;
7
- id: string;
8
+ required: boolean;
9
+ name: InputType['name'];
10
+ placeholder: string;
8
11
  }> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
9
- id: string;
10
- label?: string | undefined;
12
+ id: InputType['id'];
13
+ label?: InputType['label'];
14
+ name: InputType['name'];
15
+ placeholder?: string | undefined;
16
+ helperText?: InputType['helperText'];
17
+ required?: InputType['required'];
18
+ disabled?: InputType['disabled'];
19
+ size?: InputType['size'];
20
+ error?: string | null | undefined;
21
+ modelValue?: string | undefined;
22
+ useField?: ParentValidation['useFieldParent'];
23
+ rules?: ParentValidation['rules'];
24
+ opts?: ParentValidation['opts'];
11
25
  }>, {
12
- id: string;
13
- label: string;
14
- }>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "label" | "id">;
26
+ name: string;
27
+ required: boolean;
28
+ placeholder: string;
29
+ }>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "required" | "name" | "placeholder">;
15
30
  $attrs: {
16
31
  [x: string]: unknown;
17
32
  };
@@ -26,14 +41,27 @@ declare const _default: {
26
41
  $emit: (event: string, ...args: any[]) => void;
27
42
  $el: any;
28
43
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
29
- id: string;
30
- label?: string | undefined;
44
+ id: InputType['id'];
45
+ label?: InputType['label'];
46
+ name: InputType['name'];
47
+ placeholder?: string | undefined;
48
+ helperText?: InputType['helperText'];
49
+ required?: InputType['required'];
50
+ disabled?: InputType['disabled'];
51
+ size?: InputType['size'];
52
+ error?: string | null | undefined;
53
+ modelValue?: string | undefined;
54
+ useField?: ParentValidation['useFieldParent'];
55
+ rules?: ParentValidation['rules'];
56
+ opts?: ParentValidation['opts'];
31
57
  }>, {
32
- id: string;
33
- label: string;
58
+ name: string;
59
+ required: boolean;
60
+ placeholder: string;
34
61
  }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
35
- label: string;
36
- id: string;
62
+ required: boolean;
63
+ name: InputType['name'];
64
+ placeholder: string;
37
65
  }> & {
38
66
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
39
67
  created?: ((() => void) | (() => void)[]) | undefined;
@@ -55,24 +83,49 @@ declare const _default: {
55
83
  $nextTick: typeof import("vue").nextTick;
56
84
  $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
57
85
  } & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
58
- id: string;
59
- label?: string | undefined;
86
+ id: InputType['id'];
87
+ label?: InputType['label'];
88
+ name: InputType['name'];
89
+ placeholder?: string | undefined;
90
+ helperText?: InputType['helperText'];
91
+ required?: InputType['required'];
92
+ disabled?: InputType['disabled'];
93
+ size?: InputType['size'];
94
+ error?: string | null | undefined;
95
+ modelValue?: string | undefined;
96
+ useField?: ParentValidation['useFieldParent'];
97
+ rules?: ParentValidation['rules'];
98
+ opts?: ParentValidation['opts'];
60
99
  }>, {
61
- id: string;
62
- label: string;
100
+ name: string;
101
+ required: boolean;
102
+ placeholder: string;
63
103
  }>>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
64
104
  __isFragment?: undefined;
65
105
  __isTeleport?: undefined;
66
106
  __isSuspense?: undefined;
67
107
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
68
- id: string;
69
- label?: string | undefined;
108
+ id: InputType['id'];
109
+ label?: InputType['label'];
110
+ name: InputType['name'];
111
+ placeholder?: string | undefined;
112
+ helperText?: InputType['helperText'];
113
+ required?: InputType['required'];
114
+ disabled?: InputType['disabled'];
115
+ size?: InputType['size'];
116
+ error?: string | null | undefined;
117
+ modelValue?: string | undefined;
118
+ useField?: ParentValidation['useFieldParent'];
119
+ rules?: ParentValidation['rules'];
120
+ opts?: ParentValidation['opts'];
70
121
  }>, {
71
- id: string;
72
- label: string;
122
+ name: string;
123
+ required: boolean;
124
+ placeholder: string;
73
125
  }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
74
- label: string;
75
- id: string;
126
+ required: boolean;
127
+ name: InputType['name'];
128
+ placeholder: string;
76
129
  }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
77
130
  $slots: {};
78
131
  });
@@ -0,0 +1,181 @@
1
+ import type { ParentValidation } from '@composables/use-validate-field/types';
2
+ import type { InputText } from '../types';
3
+ declare const _default: {
4
+ new (...args: any[]): {
5
+ $: import("vue").ComponentInternalInstance;
6
+ $data: {};
7
+ $props: Partial<{
8
+ error: string | null;
9
+ size: "sm" | "md";
10
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
11
+ id: InputText['id'];
12
+ name: InputText['name'];
13
+ class?: InputText['class'];
14
+ label?: InputText['label'];
15
+ helperText?: InputText['helperText'];
16
+ successText?: InputText['successText'];
17
+ loadingText?: InputText['loadingText'];
18
+ required?: InputText['required'];
19
+ disabled?: InputText['disabled'];
20
+ isSuccess?: InputText['isSuccess'];
21
+ isLoading?: InputText['isLoading'];
22
+ size?: InputText['size'];
23
+ error?: string | null | undefined;
24
+ modelValue?: string | undefined;
25
+ placeholder?: string | undefined;
26
+ useField?: ParentValidation['useFieldParent'];
27
+ rules?: ParentValidation['rules'];
28
+ opts?: ParentValidation['opts'];
29
+ }>, {
30
+ size: string;
31
+ error: null;
32
+ }>>> & {
33
+ onInput?: ((event: string) => any) | undefined;
34
+ "onUpdate:modelValue"?: ((event: string) => any) | undefined;
35
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "error" | "size">;
36
+ $attrs: {
37
+ [x: string]: unknown;
38
+ };
39
+ $refs: {
40
+ [x: string]: unknown;
41
+ };
42
+ $slots: Readonly<{
43
+ [name: string]: import("vue").Slot | undefined;
44
+ }>;
45
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
46
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
47
+ $emit: ((event: "input", event: string) => void) & ((event: "update:modelValue", event: string) => void);
48
+ $el: any;
49
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
50
+ id: InputText['id'];
51
+ name: InputText['name'];
52
+ class?: InputText['class'];
53
+ label?: InputText['label'];
54
+ helperText?: InputText['helperText'];
55
+ successText?: InputText['successText'];
56
+ loadingText?: InputText['loadingText'];
57
+ required?: InputText['required'];
58
+ disabled?: InputText['disabled'];
59
+ isSuccess?: InputText['isSuccess'];
60
+ isLoading?: InputText['isLoading'];
61
+ size?: InputText['size'];
62
+ error?: string | null | undefined;
63
+ modelValue?: string | undefined;
64
+ placeholder?: string | undefined;
65
+ useField?: ParentValidation['useFieldParent'];
66
+ rules?: ParentValidation['rules'];
67
+ opts?: ParentValidation['opts'];
68
+ }>, {
69
+ size: string;
70
+ error: null;
71
+ }>>> & {
72
+ onInput?: ((event: string) => any) | undefined;
73
+ "onUpdate:modelValue"?: ((event: string) => any) | undefined;
74
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
75
+ input: (event: string) => void;
76
+ } & {
77
+ "update:modelValue": (event: string) => void;
78
+ }, string, {
79
+ error: string | null;
80
+ size: "sm" | "md";
81
+ }> & {
82
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
83
+ created?: ((() => void) | (() => void)[]) | undefined;
84
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
85
+ mounted?: ((() => void) | (() => void)[]) | undefined;
86
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
87
+ updated?: ((() => void) | (() => void)[]) | undefined;
88
+ activated?: ((() => void) | (() => void)[]) | undefined;
89
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
90
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
91
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
92
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
93
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
94
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
95
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
96
+ errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
97
+ };
98
+ $forceUpdate: () => void;
99
+ $nextTick: typeof import("vue").nextTick;
100
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
101
+ } & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
102
+ id: InputText['id'];
103
+ name: InputText['name'];
104
+ class?: InputText['class'];
105
+ label?: InputText['label'];
106
+ helperText?: InputText['helperText'];
107
+ successText?: InputText['successText'];
108
+ loadingText?: InputText['loadingText'];
109
+ required?: InputText['required'];
110
+ disabled?: InputText['disabled'];
111
+ isSuccess?: InputText['isSuccess'];
112
+ isLoading?: InputText['isLoading'];
113
+ size?: InputText['size'];
114
+ error?: string | null | undefined;
115
+ modelValue?: string | undefined;
116
+ placeholder?: string | undefined;
117
+ useField?: ParentValidation['useFieldParent'];
118
+ rules?: ParentValidation['rules'];
119
+ opts?: ParentValidation['opts'];
120
+ }>, {
121
+ size: string;
122
+ error: null;
123
+ }>>> & {
124
+ onInput?: ((event: string) => any) | undefined;
125
+ "onUpdate:modelValue"?: ((event: string) => any) | undefined;
126
+ } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
127
+ __isFragment?: undefined;
128
+ __isTeleport?: undefined;
129
+ __isSuspense?: undefined;
130
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
131
+ id: InputText['id'];
132
+ name: InputText['name'];
133
+ class?: InputText['class'];
134
+ label?: InputText['label'];
135
+ helperText?: InputText['helperText'];
136
+ successText?: InputText['successText'];
137
+ loadingText?: InputText['loadingText'];
138
+ required?: InputText['required'];
139
+ disabled?: InputText['disabled'];
140
+ isSuccess?: InputText['isSuccess'];
141
+ isLoading?: InputText['isLoading'];
142
+ size?: InputText['size'];
143
+ error?: string | null | undefined;
144
+ modelValue?: string | undefined;
145
+ placeholder?: string | undefined;
146
+ useField?: ParentValidation['useFieldParent'];
147
+ rules?: ParentValidation['rules'];
148
+ opts?: ParentValidation['opts'];
149
+ }>, {
150
+ size: string;
151
+ error: null;
152
+ }>>> & {
153
+ onInput?: ((event: string) => any) | undefined;
154
+ "onUpdate:modelValue"?: ((event: string) => any) | undefined;
155
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
156
+ input: (event: string) => void;
157
+ } & {
158
+ "update:modelValue": (event: string) => void;
159
+ }, string, {
160
+ error: string | null;
161
+ size: "sm" | "md";
162
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
163
+ $slots: {
164
+ icon: (_: {}) => any;
165
+ };
166
+ });
167
+ export default _default;
168
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
169
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
170
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
171
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
172
+ } : {
173
+ type: import('vue').PropType<T[K]>;
174
+ required: true;
175
+ };
176
+ };
177
+ declare type __VLS_WithDefaults<P, D> = {
178
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
179
+ default: D[K];
180
+ } : P[K];
181
+ };
@@ -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 {};
@@ -2,18 +2,25 @@ declare const _default: {
2
2
  new (...args: any[]): {
3
3
  $: import("vue").ComponentInternalInstance;
4
4
  $data: {};
5
- $props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
5
+ $props: Partial<{
6
+ textDirection: 'left' | 'right';
7
+ stretchLabel: boolean;
8
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
6
9
  id: string;
7
10
  name: string;
8
- value: string;
11
+ value?: string | undefined;
9
12
  label: string;
10
13
  checked?: boolean | undefined;
11
14
  class?: string | Record<string, boolean> | undefined;
15
+ textDirection?: "left" | "right" | undefined;
12
16
  hideLabel?: boolean | undefined;
13
- horizontalLabel?: boolean | undefined;
17
+ stretchLabel?: boolean | undefined;
18
+ }>, {
19
+ textDirection: string;
20
+ stretchLabel: boolean;
14
21
  }>>> & {
15
- onChange?: ((value: string) => any) | undefined;
16
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
22
+ onChange?: ((value: string | boolean) => any) | undefined;
23
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "textDirection" | "stretchLabel">;
17
24
  $attrs: {
18
25
  [x: string]: unknown;
19
26
  };
@@ -25,22 +32,29 @@ declare const _default: {
25
32
  }>;
26
33
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
27
34
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
28
- $emit: (event: "change", value: string) => void;
35
+ $emit: (event: "change", value: string | boolean) => void;
29
36
  $el: any;
30
- $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
37
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
31
38
  id: string;
32
39
  name: string;
33
- value: string;
40
+ value?: string | undefined;
34
41
  label: string;
35
42
  checked?: boolean | undefined;
36
43
  class?: string | Record<string, boolean> | undefined;
44
+ textDirection?: "left" | "right" | undefined;
37
45
  hideLabel?: boolean | undefined;
38
- horizontalLabel?: boolean | undefined;
46
+ stretchLabel?: boolean | undefined;
47
+ }>, {
48
+ textDirection: string;
49
+ stretchLabel: boolean;
39
50
  }>>> & {
40
- onChange?: ((value: string) => any) | undefined;
51
+ onChange?: ((value: string | boolean) => any) | undefined;
41
52
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
42
- change: (value: string) => void;
43
- }, string, {}> & {
53
+ change: (value: string | boolean) => void;
54
+ }, string, {
55
+ textDirection: 'left' | 'right';
56
+ stretchLabel: boolean;
57
+ }> & {
44
58
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
45
59
  created?: ((() => void) | (() => void)[]) | undefined;
46
60
  beforeMount?: ((() => void) | (() => void)[]) | undefined;
@@ -60,35 +74,46 @@ declare const _default: {
60
74
  $forceUpdate: () => void;
61
75
  $nextTick: typeof import("vue").nextTick;
62
76
  $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
63
- } & Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
77
+ } & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
64
78
  id: string;
65
79
  name: string;
66
- value: string;
80
+ value?: string | undefined;
67
81
  label: string;
68
82
  checked?: boolean | undefined;
69
83
  class?: string | Record<string, boolean> | undefined;
84
+ textDirection?: "left" | "right" | undefined;
70
85
  hideLabel?: boolean | undefined;
71
- horizontalLabel?: boolean | undefined;
86
+ stretchLabel?: boolean | undefined;
87
+ }>, {
88
+ textDirection: string;
89
+ stretchLabel: boolean;
72
90
  }>>> & {
73
- onChange?: ((value: string) => any) | undefined;
91
+ onChange?: ((value: string | boolean) => any) | undefined;
74
92
  } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
75
93
  __isFragment?: undefined;
76
94
  __isTeleport?: undefined;
77
95
  __isSuspense?: undefined;
78
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
96
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
79
97
  id: string;
80
98
  name: string;
81
- value: string;
99
+ value?: string | undefined;
82
100
  label: string;
83
101
  checked?: boolean | undefined;
84
102
  class?: string | Record<string, boolean> | undefined;
103
+ textDirection?: "left" | "right" | undefined;
85
104
  hideLabel?: boolean | undefined;
86
- horizontalLabel?: boolean | undefined;
105
+ stretchLabel?: boolean | undefined;
106
+ }>, {
107
+ textDirection: string;
108
+ stretchLabel: boolean;
87
109
  }>>> & {
88
- onChange?: ((value: string) => any) | undefined;
110
+ onChange?: ((value: string | boolean) => any) | undefined;
89
111
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
90
- change: (value: string) => void;
91
- }, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
112
+ change: (value: string | boolean) => void;
113
+ }, string, {
114
+ textDirection: 'left' | 'right';
115
+ stretchLabel: boolean;
116
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
92
117
  $slots: {};
93
118
  });
94
119
  export default _default;
@@ -101,3 +126,8 @@ declare type __VLS_TypePropsToRuntimeProps<T> = {
101
126
  required: true;
102
127
  };
103
128
  };
129
+ declare type __VLS_WithDefaults<P, D> = {
130
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
131
+ default: D[K];
132
+ } : P[K];
133
+ };