@solfacil/girassol 0.3.0 → 0.3.3

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