@destyler/radio 0.0.6 → 0.0.7-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,216 +0,0 @@
1
- export { f as RadioGroupIndicator, h as RadioGroupIndicatorProps, c as RadioGroupItem, e as RadioGroupItemProps, R as RadioGroupRoot, b as RadioGroupRootProps, g as radioGroupIndicatorProps, d as radioGroupItemProps, a as radioGroupRootEmits, r as radioGroupRootProps } from './shared/radio.54693474.mjs';
2
- import * as vue from 'vue';
3
- import { PropType } from 'vue';
4
- import * as _destyler_primitive from '@destyler/primitive';
5
- import { ExtractPublicPropTypes } from '@destyler/shared';
6
-
7
- declare const radioProps: {
8
- /**
9
- * @default button
10
- */
11
- readonly as: {
12
- readonly default: "button";
13
- readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
14
- readonly required: false;
15
- };
16
- /**
17
- * The name of the input fields in the radio (Useful for form submission).
18
- */
19
- readonly id: {
20
- readonly type: PropType<string>;
21
- readonly required: false;
22
- };
23
- /**
24
- * The value given as data when submitted with a `name`.
25
- */
26
- readonly value: {
27
- readonly type: PropType<string>;
28
- readonly required: false;
29
- };
30
- /**
31
- * When `true`, prevents the user from interacting with the radio item.
32
- */
33
- readonly disabled: {
34
- readonly type: PropType<boolean>;
35
- readonly required: false;
36
- readonly default: false;
37
- };
38
- /**
39
- * When `true`, indicates that the user must check the radio item before the owning form can be submitted.
40
- */
41
- readonly required: {
42
- readonly type: PropType<boolean>;
43
- readonly required: false;
44
- };
45
- /**
46
- * The controlled value of the radio item to check. Can be binded as `v-model`.
47
- *
48
- * @default undefined
49
- */
50
- readonly checked: {
51
- readonly type: PropType<boolean>;
52
- readonly required: false;
53
- readonly default: undefined;
54
- };
55
- /**
56
- * The name of the input fields in the radio (Useful for form submission).
57
- */
58
- readonly name: {
59
- readonly type: PropType<string>;
60
- readonly required: false;
61
- };
62
- readonly asChild: {
63
- readonly type: PropType<boolean>;
64
- readonly required: false;
65
- readonly default: false;
66
- };
67
- };
68
- type RadioProps = ExtractPublicPropTypes<typeof radioProps>;
69
- declare const radioEmits: {
70
- /**
71
- * Event handler called when the radio item is checked.
72
- */
73
- 'update:checked': (_value: boolean) => boolean;
74
- };
75
- declare const Radio: vue.DefineComponent<{
76
- /**
77
- * @default button
78
- */
79
- readonly as: {
80
- readonly default: "button";
81
- readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
82
- readonly required: false;
83
- };
84
- /**
85
- * The name of the input fields in the radio (Useful for form submission).
86
- */
87
- readonly id: {
88
- readonly type: PropType<string>;
89
- readonly required: false;
90
- };
91
- /**
92
- * The value given as data when submitted with a `name`.
93
- */
94
- readonly value: {
95
- readonly type: PropType<string>;
96
- readonly required: false;
97
- };
98
- /**
99
- * When `true`, prevents the user from interacting with the radio item.
100
- */
101
- readonly disabled: {
102
- readonly type: PropType<boolean>;
103
- readonly required: false;
104
- readonly default: false;
105
- };
106
- /**
107
- * When `true`, indicates that the user must check the radio item before the owning form can be submitted.
108
- */
109
- readonly required: {
110
- readonly type: PropType<boolean>;
111
- readonly required: false;
112
- };
113
- /**
114
- * The controlled value of the radio item to check. Can be binded as `v-model`.
115
- *
116
- * @default undefined
117
- */
118
- readonly checked: {
119
- readonly type: PropType<boolean>;
120
- readonly required: false;
121
- readonly default: undefined;
122
- };
123
- /**
124
- * The name of the input fields in the radio (Useful for form submission).
125
- */
126
- readonly name: {
127
- readonly type: PropType<string>;
128
- readonly required: false;
129
- };
130
- readonly asChild: {
131
- readonly type: PropType<boolean>;
132
- readonly required: false;
133
- readonly default: false;
134
- };
135
- }, {
136
- forwardRef: (ref: Element | vue.ComponentPublicInstance | null) => void;
137
- checkedRef: vue.WritableComputedRef<boolean | undefined>;
138
- ariaLabel: vue.ComputedRef<string | undefined>;
139
- value: vue.Ref<string | undefined>;
140
- isFormControl: vue.ComputedRef<boolean>;
141
- handleClick: (event: MouseEvent) => void;
142
- }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
143
- /**
144
- * Event handler called when the radio item is checked.
145
- */
146
- 'update:checked': (_value: boolean) => boolean;
147
- }, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
148
- /**
149
- * @default button
150
- */
151
- readonly as: {
152
- readonly default: "button";
153
- readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
154
- readonly required: false;
155
- };
156
- /**
157
- * The name of the input fields in the radio (Useful for form submission).
158
- */
159
- readonly id: {
160
- readonly type: PropType<string>;
161
- readonly required: false;
162
- };
163
- /**
164
- * The value given as data when submitted with a `name`.
165
- */
166
- readonly value: {
167
- readonly type: PropType<string>;
168
- readonly required: false;
169
- };
170
- /**
171
- * When `true`, prevents the user from interacting with the radio item.
172
- */
173
- readonly disabled: {
174
- readonly type: PropType<boolean>;
175
- readonly required: false;
176
- readonly default: false;
177
- };
178
- /**
179
- * When `true`, indicates that the user must check the radio item before the owning form can be submitted.
180
- */
181
- readonly required: {
182
- readonly type: PropType<boolean>;
183
- readonly required: false;
184
- };
185
- /**
186
- * The controlled value of the radio item to check. Can be binded as `v-model`.
187
- *
188
- * @default undefined
189
- */
190
- readonly checked: {
191
- readonly type: PropType<boolean>;
192
- readonly required: false;
193
- readonly default: undefined;
194
- };
195
- /**
196
- * The name of the input fields in the radio (Useful for form submission).
197
- */
198
- readonly name: {
199
- readonly type: PropType<string>;
200
- readonly required: false;
201
- };
202
- readonly asChild: {
203
- readonly type: PropType<boolean>;
204
- readonly required: false;
205
- readonly default: false;
206
- };
207
- }>> & {
208
- "onUpdate:checked"?: ((_value: boolean) => any) | undefined;
209
- }, {
210
- readonly disabled: boolean;
211
- readonly as: _destyler_primitive.AsTag | vue.Component;
212
- readonly asChild: boolean;
213
- readonly checked: boolean;
214
- }, {}>;
215
-
216
- export { Radio, type RadioProps, radioEmits, radioProps };
@@ -1,216 +0,0 @@
1
- export { f as RadioGroupIndicator, h as RadioGroupIndicatorProps, c as RadioGroupItem, e as RadioGroupItemProps, R as RadioGroupRoot, b as RadioGroupRootProps, g as radioGroupIndicatorProps, d as radioGroupItemProps, a as radioGroupRootEmits, r as radioGroupRootProps } from './shared/radio.54693474.js';
2
- import * as vue from 'vue';
3
- import { PropType } from 'vue';
4
- import * as _destyler_primitive from '@destyler/primitive';
5
- import { ExtractPublicPropTypes } from '@destyler/shared';
6
-
7
- declare const radioProps: {
8
- /**
9
- * @default button
10
- */
11
- readonly as: {
12
- readonly default: "button";
13
- readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
14
- readonly required: false;
15
- };
16
- /**
17
- * The name of the input fields in the radio (Useful for form submission).
18
- */
19
- readonly id: {
20
- readonly type: PropType<string>;
21
- readonly required: false;
22
- };
23
- /**
24
- * The value given as data when submitted with a `name`.
25
- */
26
- readonly value: {
27
- readonly type: PropType<string>;
28
- readonly required: false;
29
- };
30
- /**
31
- * When `true`, prevents the user from interacting with the radio item.
32
- */
33
- readonly disabled: {
34
- readonly type: PropType<boolean>;
35
- readonly required: false;
36
- readonly default: false;
37
- };
38
- /**
39
- * When `true`, indicates that the user must check the radio item before the owning form can be submitted.
40
- */
41
- readonly required: {
42
- readonly type: PropType<boolean>;
43
- readonly required: false;
44
- };
45
- /**
46
- * The controlled value of the radio item to check. Can be binded as `v-model`.
47
- *
48
- * @default undefined
49
- */
50
- readonly checked: {
51
- readonly type: PropType<boolean>;
52
- readonly required: false;
53
- readonly default: undefined;
54
- };
55
- /**
56
- * The name of the input fields in the radio (Useful for form submission).
57
- */
58
- readonly name: {
59
- readonly type: PropType<string>;
60
- readonly required: false;
61
- };
62
- readonly asChild: {
63
- readonly type: PropType<boolean>;
64
- readonly required: false;
65
- readonly default: false;
66
- };
67
- };
68
- type RadioProps = ExtractPublicPropTypes<typeof radioProps>;
69
- declare const radioEmits: {
70
- /**
71
- * Event handler called when the radio item is checked.
72
- */
73
- 'update:checked': (_value: boolean) => boolean;
74
- };
75
- declare const Radio: vue.DefineComponent<{
76
- /**
77
- * @default button
78
- */
79
- readonly as: {
80
- readonly default: "button";
81
- readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
82
- readonly required: false;
83
- };
84
- /**
85
- * The name of the input fields in the radio (Useful for form submission).
86
- */
87
- readonly id: {
88
- readonly type: PropType<string>;
89
- readonly required: false;
90
- };
91
- /**
92
- * The value given as data when submitted with a `name`.
93
- */
94
- readonly value: {
95
- readonly type: PropType<string>;
96
- readonly required: false;
97
- };
98
- /**
99
- * When `true`, prevents the user from interacting with the radio item.
100
- */
101
- readonly disabled: {
102
- readonly type: PropType<boolean>;
103
- readonly required: false;
104
- readonly default: false;
105
- };
106
- /**
107
- * When `true`, indicates that the user must check the radio item before the owning form can be submitted.
108
- */
109
- readonly required: {
110
- readonly type: PropType<boolean>;
111
- readonly required: false;
112
- };
113
- /**
114
- * The controlled value of the radio item to check. Can be binded as `v-model`.
115
- *
116
- * @default undefined
117
- */
118
- readonly checked: {
119
- readonly type: PropType<boolean>;
120
- readonly required: false;
121
- readonly default: undefined;
122
- };
123
- /**
124
- * The name of the input fields in the radio (Useful for form submission).
125
- */
126
- readonly name: {
127
- readonly type: PropType<string>;
128
- readonly required: false;
129
- };
130
- readonly asChild: {
131
- readonly type: PropType<boolean>;
132
- readonly required: false;
133
- readonly default: false;
134
- };
135
- }, {
136
- forwardRef: (ref: Element | vue.ComponentPublicInstance | null) => void;
137
- checkedRef: vue.WritableComputedRef<boolean | undefined>;
138
- ariaLabel: vue.ComputedRef<string | undefined>;
139
- value: vue.Ref<string | undefined>;
140
- isFormControl: vue.ComputedRef<boolean>;
141
- handleClick: (event: MouseEvent) => void;
142
- }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
143
- /**
144
- * Event handler called when the radio item is checked.
145
- */
146
- 'update:checked': (_value: boolean) => boolean;
147
- }, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
148
- /**
149
- * @default button
150
- */
151
- readonly as: {
152
- readonly default: "button";
153
- readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
154
- readonly required: false;
155
- };
156
- /**
157
- * The name of the input fields in the radio (Useful for form submission).
158
- */
159
- readonly id: {
160
- readonly type: PropType<string>;
161
- readonly required: false;
162
- };
163
- /**
164
- * The value given as data when submitted with a `name`.
165
- */
166
- readonly value: {
167
- readonly type: PropType<string>;
168
- readonly required: false;
169
- };
170
- /**
171
- * When `true`, prevents the user from interacting with the radio item.
172
- */
173
- readonly disabled: {
174
- readonly type: PropType<boolean>;
175
- readonly required: false;
176
- readonly default: false;
177
- };
178
- /**
179
- * When `true`, indicates that the user must check the radio item before the owning form can be submitted.
180
- */
181
- readonly required: {
182
- readonly type: PropType<boolean>;
183
- readonly required: false;
184
- };
185
- /**
186
- * The controlled value of the radio item to check. Can be binded as `v-model`.
187
- *
188
- * @default undefined
189
- */
190
- readonly checked: {
191
- readonly type: PropType<boolean>;
192
- readonly required: false;
193
- readonly default: undefined;
194
- };
195
- /**
196
- * The name of the input fields in the radio (Useful for form submission).
197
- */
198
- readonly name: {
199
- readonly type: PropType<string>;
200
- readonly required: false;
201
- };
202
- readonly asChild: {
203
- readonly type: PropType<boolean>;
204
- readonly required: false;
205
- readonly default: false;
206
- };
207
- }>> & {
208
- "onUpdate:checked"?: ((_value: boolean) => any) | undefined;
209
- }, {
210
- readonly disabled: boolean;
211
- readonly as: _destyler_primitive.AsTag | vue.Component;
212
- readonly asChild: boolean;
213
- readonly checked: boolean;
214
- }, {}>;
215
-
216
- export { Radio, type RadioProps, radioEmits, radioProps };