@destyler/toggle 0.0.3 → 0.0.5
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.
- package/README.md +7 -0
- package/dist/component.cjs +254 -9
- package/dist/component.d.cts +549 -4
- package/dist/component.d.mts +549 -4
- package/dist/component.d.ts +549 -4
- package/dist/component.mjs +250 -6
- package/dist/index.cjs +12 -198
- package/dist/index.d.cts +4 -369
- package/dist/index.d.mts +4 -369
- package/dist/index.d.ts +4 -369
- package/dist/index.mjs +6 -199
- package/dist/resolver.cjs +5 -3
- package/dist/resolver.d.cts +2 -2
- package/dist/resolver.d.mts +2 -2
- package/dist/resolver.d.ts +2 -2
- package/dist/resolver.mjs +5 -3
- package/package.json +15 -17
package/dist/component.d.cts
CHANGED
|
@@ -1,4 +1,549 @@
|
|
|
1
|
-
|
|
2
|
-
import 'vue';
|
|
3
|
-
import '@destyler/primitive';
|
|
4
|
-
import '@destyler/shared';
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import { PropType, Ref } from 'vue';
|
|
3
|
+
import * as _destyler_primitive from '@destyler/primitive';
|
|
4
|
+
import { ExtractPublicPropTypes, DataOrientation, Direction } from '@destyler/shared';
|
|
5
|
+
|
|
6
|
+
declare const toggleProps: {
|
|
7
|
+
/**
|
|
8
|
+
* @default button
|
|
9
|
+
*/
|
|
10
|
+
readonly as: {
|
|
11
|
+
readonly default: "button";
|
|
12
|
+
readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
|
|
13
|
+
readonly required: false;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* The pressed state of the toggle when it is initially rendered. Use when you do not need to control its open state.
|
|
17
|
+
*/
|
|
18
|
+
readonly defaultValue: {
|
|
19
|
+
readonly type: PropType<boolean>;
|
|
20
|
+
readonly required: false;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* The controlled pressed state of the toggle. Can be bind as `v-model`.
|
|
24
|
+
*
|
|
25
|
+
* @default undefined
|
|
26
|
+
*/
|
|
27
|
+
readonly pressed: {
|
|
28
|
+
readonly type: PropType<boolean>;
|
|
29
|
+
readonly required: false;
|
|
30
|
+
readonly default: undefined;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* When `true`, prevents the user from interacting with the toggle.
|
|
34
|
+
*/
|
|
35
|
+
readonly disabled: {
|
|
36
|
+
readonly type: PropType<boolean>;
|
|
37
|
+
readonly required: false;
|
|
38
|
+
readonly default: false;
|
|
39
|
+
};
|
|
40
|
+
readonly asChild: {
|
|
41
|
+
readonly type: PropType<boolean>;
|
|
42
|
+
readonly required: false;
|
|
43
|
+
readonly default: false;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
type ToggleProps = ExtractPublicPropTypes<typeof toggleProps>;
|
|
47
|
+
declare const toggleEmits: {
|
|
48
|
+
/**
|
|
49
|
+
* Event handler called when the pressed state of the toggle changes.
|
|
50
|
+
*/
|
|
51
|
+
'update:pressed': (_value: boolean) => boolean;
|
|
52
|
+
};
|
|
53
|
+
type DataState = 'on' | 'off';
|
|
54
|
+
declare const Toggle: vue.DefineComponent<{
|
|
55
|
+
/**
|
|
56
|
+
* @default button
|
|
57
|
+
*/
|
|
58
|
+
readonly as: {
|
|
59
|
+
readonly default: "button";
|
|
60
|
+
readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
|
|
61
|
+
readonly required: false;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* The pressed state of the toggle when it is initially rendered. Use when you do not need to control its open state.
|
|
65
|
+
*/
|
|
66
|
+
readonly defaultValue: {
|
|
67
|
+
readonly type: PropType<boolean>;
|
|
68
|
+
readonly required: false;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* The controlled pressed state of the toggle. Can be bind as `v-model`.
|
|
72
|
+
*
|
|
73
|
+
* @default undefined
|
|
74
|
+
*/
|
|
75
|
+
readonly pressed: {
|
|
76
|
+
readonly type: PropType<boolean>;
|
|
77
|
+
readonly required: false;
|
|
78
|
+
readonly default: undefined;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* When `true`, prevents the user from interacting with the toggle.
|
|
82
|
+
*/
|
|
83
|
+
readonly disabled: {
|
|
84
|
+
readonly type: PropType<boolean>;
|
|
85
|
+
readonly required: false;
|
|
86
|
+
readonly default: false;
|
|
87
|
+
};
|
|
88
|
+
readonly asChild: {
|
|
89
|
+
readonly type: PropType<boolean>;
|
|
90
|
+
readonly required: false;
|
|
91
|
+
readonly default: false;
|
|
92
|
+
};
|
|
93
|
+
}, {
|
|
94
|
+
pressed: vue.WritableComputedRef<boolean | undefined>;
|
|
95
|
+
togglePressed: () => void;
|
|
96
|
+
dataState: vue.ComputedRef<DataState>;
|
|
97
|
+
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
98
|
+
/**
|
|
99
|
+
* Event handler called when the pressed state of the toggle changes.
|
|
100
|
+
*/
|
|
101
|
+
'update:pressed': (_value: boolean) => boolean;
|
|
102
|
+
}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
103
|
+
/**
|
|
104
|
+
* @default button
|
|
105
|
+
*/
|
|
106
|
+
readonly as: {
|
|
107
|
+
readonly default: "button";
|
|
108
|
+
readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
|
|
109
|
+
readonly required: false;
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* The pressed state of the toggle when it is initially rendered. Use when you do not need to control its open state.
|
|
113
|
+
*/
|
|
114
|
+
readonly defaultValue: {
|
|
115
|
+
readonly type: PropType<boolean>;
|
|
116
|
+
readonly required: false;
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* The controlled pressed state of the toggle. Can be bind as `v-model`.
|
|
120
|
+
*
|
|
121
|
+
* @default undefined
|
|
122
|
+
*/
|
|
123
|
+
readonly pressed: {
|
|
124
|
+
readonly type: PropType<boolean>;
|
|
125
|
+
readonly required: false;
|
|
126
|
+
readonly default: undefined;
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* When `true`, prevents the user from interacting with the toggle.
|
|
130
|
+
*/
|
|
131
|
+
readonly disabled: {
|
|
132
|
+
readonly type: PropType<boolean>;
|
|
133
|
+
readonly required: false;
|
|
134
|
+
readonly default: false;
|
|
135
|
+
};
|
|
136
|
+
readonly asChild: {
|
|
137
|
+
readonly type: PropType<boolean>;
|
|
138
|
+
readonly required: false;
|
|
139
|
+
readonly default: false;
|
|
140
|
+
};
|
|
141
|
+
}>> & {
|
|
142
|
+
"onUpdate:pressed"?: ((_value: boolean) => any) | undefined;
|
|
143
|
+
}, {
|
|
144
|
+
readonly as: _destyler_primitive.AsTag | vue.Component;
|
|
145
|
+
readonly pressed: boolean;
|
|
146
|
+
readonly disabled: boolean;
|
|
147
|
+
readonly asChild: boolean;
|
|
148
|
+
}, {}>;
|
|
149
|
+
|
|
150
|
+
type TypeEnum = 'single' | 'multiple';
|
|
151
|
+
declare const toggleGroupRootProps: {
|
|
152
|
+
/**
|
|
153
|
+
* Determines whether a "single" or "multiple" items can be pressed at a time.
|
|
154
|
+
*
|
|
155
|
+
* This prop will be ignored if any of `v-model` or `defaultValue` is an defined, as the type will be inferred from the value.
|
|
156
|
+
*
|
|
157
|
+
* @default single
|
|
158
|
+
*/
|
|
159
|
+
readonly type: {
|
|
160
|
+
readonly type: PropType<TypeEnum>;
|
|
161
|
+
readonly required: false;
|
|
162
|
+
readonly default: "single";
|
|
163
|
+
};
|
|
164
|
+
/**
|
|
165
|
+
* The default active value of the item(s).
|
|
166
|
+
*
|
|
167
|
+
* Use when you do not need to control the state of the item(s).
|
|
168
|
+
*/
|
|
169
|
+
readonly defaultValue: {
|
|
170
|
+
readonly type: PropType<string | string[]>;
|
|
171
|
+
readonly required: false;
|
|
172
|
+
};
|
|
173
|
+
/**
|
|
174
|
+
* The controlled value of the active item(s).
|
|
175
|
+
*
|
|
176
|
+
* Use this when you need to control the state of the items. Can be binded with `v-model`
|
|
177
|
+
*/
|
|
178
|
+
readonly modelValue: {
|
|
179
|
+
readonly type: PropType<string | string[]>;
|
|
180
|
+
readonly required: false;
|
|
181
|
+
};
|
|
182
|
+
/**
|
|
183
|
+
* When `false`, navigating through the items using arrow keys will be disabled.
|
|
184
|
+
*
|
|
185
|
+
* @default true
|
|
186
|
+
*/
|
|
187
|
+
readonly rovingFocus: {
|
|
188
|
+
readonly type: PropType<boolean>;
|
|
189
|
+
readonly required: false;
|
|
190
|
+
readonly default: true;
|
|
191
|
+
};
|
|
192
|
+
/**
|
|
193
|
+
* When `true`, prevents the user from interacting with the toggle group and all its items.
|
|
194
|
+
*
|
|
195
|
+
* @default false
|
|
196
|
+
*/
|
|
197
|
+
readonly disabled: {
|
|
198
|
+
readonly type: PropType<boolean>;
|
|
199
|
+
readonly required: false;
|
|
200
|
+
readonly default: false;
|
|
201
|
+
};
|
|
202
|
+
/**
|
|
203
|
+
* The orientation of the component, which determines how focus moves: `horizontal` for left/right arrows and `vertical` for up/down arrows.
|
|
204
|
+
*/
|
|
205
|
+
readonly orientation: {
|
|
206
|
+
readonly type: PropType<DataOrientation>;
|
|
207
|
+
readonly required: false;
|
|
208
|
+
};
|
|
209
|
+
/**
|
|
210
|
+
* The reading direction of the combobox when applicable.
|
|
211
|
+
*/
|
|
212
|
+
readonly dir: {
|
|
213
|
+
readonly type: PropType<Direction>;
|
|
214
|
+
readonly required: false;
|
|
215
|
+
};
|
|
216
|
+
/**
|
|
217
|
+
* When `loop` and `rovingFocus` is `true`, keyboard navigation will loop from last item to first, and vice versa.
|
|
218
|
+
*/
|
|
219
|
+
readonly loop: {
|
|
220
|
+
readonly type: PropType<boolean>;
|
|
221
|
+
readonly required: false;
|
|
222
|
+
readonly default: true;
|
|
223
|
+
};
|
|
224
|
+
readonly as: {
|
|
225
|
+
readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
|
|
226
|
+
readonly required: false;
|
|
227
|
+
readonly default: "div";
|
|
228
|
+
};
|
|
229
|
+
readonly asChild: {
|
|
230
|
+
readonly type: PropType<boolean>;
|
|
231
|
+
readonly required: false;
|
|
232
|
+
readonly default: false;
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
type ToggleGroupRootProps = ExtractPublicPropTypes<typeof toggleGroupRootProps>;
|
|
236
|
+
declare const toggleGroupRootEmits: {
|
|
237
|
+
/**
|
|
238
|
+
* Event handler called when the value changes.
|
|
239
|
+
*/
|
|
240
|
+
'update:modelValue': (_value: string) => boolean;
|
|
241
|
+
};
|
|
242
|
+
interface ToggleGroupRootContext {
|
|
243
|
+
type: TypeEnum;
|
|
244
|
+
modelValue: Ref<string | string[] | undefined>;
|
|
245
|
+
changeModelValue: (value: string) => void;
|
|
246
|
+
dir?: Ref<Direction>;
|
|
247
|
+
orientation?: DataOrientation;
|
|
248
|
+
loop: Ref<boolean>;
|
|
249
|
+
rovingFocus: Ref<boolean>;
|
|
250
|
+
disabled?: Ref<boolean>;
|
|
251
|
+
}
|
|
252
|
+
declare const ToggleGroupRoot: vue.DefineComponent<{
|
|
253
|
+
/**
|
|
254
|
+
* Determines whether a "single" or "multiple" items can be pressed at a time.
|
|
255
|
+
*
|
|
256
|
+
* This prop will be ignored if any of `v-model` or `defaultValue` is an defined, as the type will be inferred from the value.
|
|
257
|
+
*
|
|
258
|
+
* @default single
|
|
259
|
+
*/
|
|
260
|
+
readonly type: {
|
|
261
|
+
readonly type: PropType<TypeEnum>;
|
|
262
|
+
readonly required: false;
|
|
263
|
+
readonly default: "single";
|
|
264
|
+
};
|
|
265
|
+
/**
|
|
266
|
+
* The default active value of the item(s).
|
|
267
|
+
*
|
|
268
|
+
* Use when you do not need to control the state of the item(s).
|
|
269
|
+
*/
|
|
270
|
+
readonly defaultValue: {
|
|
271
|
+
readonly type: PropType<string | string[]>;
|
|
272
|
+
readonly required: false;
|
|
273
|
+
};
|
|
274
|
+
/**
|
|
275
|
+
* The controlled value of the active item(s).
|
|
276
|
+
*
|
|
277
|
+
* Use this when you need to control the state of the items. Can be binded with `v-model`
|
|
278
|
+
*/
|
|
279
|
+
readonly modelValue: {
|
|
280
|
+
readonly type: PropType<string | string[]>;
|
|
281
|
+
readonly required: false;
|
|
282
|
+
};
|
|
283
|
+
/**
|
|
284
|
+
* When `false`, navigating through the items using arrow keys will be disabled.
|
|
285
|
+
*
|
|
286
|
+
* @default true
|
|
287
|
+
*/
|
|
288
|
+
readonly rovingFocus: {
|
|
289
|
+
readonly type: PropType<boolean>;
|
|
290
|
+
readonly required: false;
|
|
291
|
+
readonly default: true;
|
|
292
|
+
};
|
|
293
|
+
/**
|
|
294
|
+
* When `true`, prevents the user from interacting with the toggle group and all its items.
|
|
295
|
+
*
|
|
296
|
+
* @default false
|
|
297
|
+
*/
|
|
298
|
+
readonly disabled: {
|
|
299
|
+
readonly type: PropType<boolean>;
|
|
300
|
+
readonly required: false;
|
|
301
|
+
readonly default: false;
|
|
302
|
+
};
|
|
303
|
+
/**
|
|
304
|
+
* The orientation of the component, which determines how focus moves: `horizontal` for left/right arrows and `vertical` for up/down arrows.
|
|
305
|
+
*/
|
|
306
|
+
readonly orientation: {
|
|
307
|
+
readonly type: PropType<DataOrientation>;
|
|
308
|
+
readonly required: false;
|
|
309
|
+
};
|
|
310
|
+
/**
|
|
311
|
+
* The reading direction of the combobox when applicable.
|
|
312
|
+
*/
|
|
313
|
+
readonly dir: {
|
|
314
|
+
readonly type: PropType<Direction>;
|
|
315
|
+
readonly required: false;
|
|
316
|
+
};
|
|
317
|
+
/**
|
|
318
|
+
* When `loop` and `rovingFocus` is `true`, keyboard navigation will loop from last item to first, and vice versa.
|
|
319
|
+
*/
|
|
320
|
+
readonly loop: {
|
|
321
|
+
readonly type: PropType<boolean>;
|
|
322
|
+
readonly required: false;
|
|
323
|
+
readonly default: true;
|
|
324
|
+
};
|
|
325
|
+
readonly as: {
|
|
326
|
+
readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
|
|
327
|
+
readonly required: false;
|
|
328
|
+
readonly default: "div";
|
|
329
|
+
};
|
|
330
|
+
readonly asChild: {
|
|
331
|
+
readonly type: PropType<boolean>;
|
|
332
|
+
readonly required: false;
|
|
333
|
+
readonly default: false;
|
|
334
|
+
};
|
|
335
|
+
}, {
|
|
336
|
+
rovingFocus: Ref<boolean>;
|
|
337
|
+
dir: vue.ComputedRef<Direction>;
|
|
338
|
+
loop: Ref<boolean>;
|
|
339
|
+
forwardRef: (ref: Element | vue.ComponentPublicInstance | null) => void;
|
|
340
|
+
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
341
|
+
/**
|
|
342
|
+
* Event handler called when the value changes.
|
|
343
|
+
*/
|
|
344
|
+
'update:modelValue': (_value: string) => boolean;
|
|
345
|
+
}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
346
|
+
/**
|
|
347
|
+
* Determines whether a "single" or "multiple" items can be pressed at a time.
|
|
348
|
+
*
|
|
349
|
+
* This prop will be ignored if any of `v-model` or `defaultValue` is an defined, as the type will be inferred from the value.
|
|
350
|
+
*
|
|
351
|
+
* @default single
|
|
352
|
+
*/
|
|
353
|
+
readonly type: {
|
|
354
|
+
readonly type: PropType<TypeEnum>;
|
|
355
|
+
readonly required: false;
|
|
356
|
+
readonly default: "single";
|
|
357
|
+
};
|
|
358
|
+
/**
|
|
359
|
+
* The default active value of the item(s).
|
|
360
|
+
*
|
|
361
|
+
* Use when you do not need to control the state of the item(s).
|
|
362
|
+
*/
|
|
363
|
+
readonly defaultValue: {
|
|
364
|
+
readonly type: PropType<string | string[]>;
|
|
365
|
+
readonly required: false;
|
|
366
|
+
};
|
|
367
|
+
/**
|
|
368
|
+
* The controlled value of the active item(s).
|
|
369
|
+
*
|
|
370
|
+
* Use this when you need to control the state of the items. Can be binded with `v-model`
|
|
371
|
+
*/
|
|
372
|
+
readonly modelValue: {
|
|
373
|
+
readonly type: PropType<string | string[]>;
|
|
374
|
+
readonly required: false;
|
|
375
|
+
};
|
|
376
|
+
/**
|
|
377
|
+
* When `false`, navigating through the items using arrow keys will be disabled.
|
|
378
|
+
*
|
|
379
|
+
* @default true
|
|
380
|
+
*/
|
|
381
|
+
readonly rovingFocus: {
|
|
382
|
+
readonly type: PropType<boolean>;
|
|
383
|
+
readonly required: false;
|
|
384
|
+
readonly default: true;
|
|
385
|
+
};
|
|
386
|
+
/**
|
|
387
|
+
* When `true`, prevents the user from interacting with the toggle group and all its items.
|
|
388
|
+
*
|
|
389
|
+
* @default false
|
|
390
|
+
*/
|
|
391
|
+
readonly disabled: {
|
|
392
|
+
readonly type: PropType<boolean>;
|
|
393
|
+
readonly required: false;
|
|
394
|
+
readonly default: false;
|
|
395
|
+
};
|
|
396
|
+
/**
|
|
397
|
+
* The orientation of the component, which determines how focus moves: `horizontal` for left/right arrows and `vertical` for up/down arrows.
|
|
398
|
+
*/
|
|
399
|
+
readonly orientation: {
|
|
400
|
+
readonly type: PropType<DataOrientation>;
|
|
401
|
+
readonly required: false;
|
|
402
|
+
};
|
|
403
|
+
/**
|
|
404
|
+
* The reading direction of the combobox when applicable.
|
|
405
|
+
*/
|
|
406
|
+
readonly dir: {
|
|
407
|
+
readonly type: PropType<Direction>;
|
|
408
|
+
readonly required: false;
|
|
409
|
+
};
|
|
410
|
+
/**
|
|
411
|
+
* When `loop` and `rovingFocus` is `true`, keyboard navigation will loop from last item to first, and vice versa.
|
|
412
|
+
*/
|
|
413
|
+
readonly loop: {
|
|
414
|
+
readonly type: PropType<boolean>;
|
|
415
|
+
readonly required: false;
|
|
416
|
+
readonly default: true;
|
|
417
|
+
};
|
|
418
|
+
readonly as: {
|
|
419
|
+
readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
|
|
420
|
+
readonly required: false;
|
|
421
|
+
readonly default: "div";
|
|
422
|
+
};
|
|
423
|
+
readonly asChild: {
|
|
424
|
+
readonly type: PropType<boolean>;
|
|
425
|
+
readonly required: false;
|
|
426
|
+
readonly default: false;
|
|
427
|
+
};
|
|
428
|
+
}>> & {
|
|
429
|
+
"onUpdate:modelValue"?: ((_value: string) => any) | undefined;
|
|
430
|
+
}, {
|
|
431
|
+
readonly as: _destyler_primitive.AsTag | vue.Component;
|
|
432
|
+
readonly disabled: boolean;
|
|
433
|
+
readonly asChild: boolean;
|
|
434
|
+
readonly type: TypeEnum;
|
|
435
|
+
readonly rovingFocus: boolean;
|
|
436
|
+
readonly loop: boolean;
|
|
437
|
+
}, {}>;
|
|
438
|
+
|
|
439
|
+
declare const toggleGroupItemProps: {
|
|
440
|
+
/**
|
|
441
|
+
* A string value for the toggle group item. All items within a toggle group should use a unique value.
|
|
442
|
+
*/
|
|
443
|
+
readonly value: {
|
|
444
|
+
readonly type: PropType<string>;
|
|
445
|
+
readonly required: true;
|
|
446
|
+
};
|
|
447
|
+
readonly as: {
|
|
448
|
+
readonly default: "button";
|
|
449
|
+
readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
|
|
450
|
+
readonly required: false;
|
|
451
|
+
};
|
|
452
|
+
readonly defaultValue: {
|
|
453
|
+
readonly type: PropType<boolean>;
|
|
454
|
+
readonly required: false;
|
|
455
|
+
};
|
|
456
|
+
readonly pressed: {
|
|
457
|
+
readonly type: PropType<boolean>;
|
|
458
|
+
readonly required: false;
|
|
459
|
+
readonly default: undefined;
|
|
460
|
+
};
|
|
461
|
+
readonly disabled: {
|
|
462
|
+
readonly type: PropType<boolean>;
|
|
463
|
+
readonly required: false;
|
|
464
|
+
readonly default: false;
|
|
465
|
+
};
|
|
466
|
+
readonly asChild: {
|
|
467
|
+
readonly type: PropType<boolean>;
|
|
468
|
+
readonly required: false;
|
|
469
|
+
readonly default: false;
|
|
470
|
+
};
|
|
471
|
+
};
|
|
472
|
+
type ToggleGroupItemProps = ExtractPublicPropTypes<typeof toggleGroupItemProps>;
|
|
473
|
+
declare const ToggleGroupItem: vue.DefineComponent<{
|
|
474
|
+
/**
|
|
475
|
+
* A string value for the toggle group item. All items within a toggle group should use a unique value.
|
|
476
|
+
*/
|
|
477
|
+
readonly value: {
|
|
478
|
+
readonly type: PropType<string>;
|
|
479
|
+
readonly required: true;
|
|
480
|
+
};
|
|
481
|
+
readonly as: {
|
|
482
|
+
readonly default: "button";
|
|
483
|
+
readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
|
|
484
|
+
readonly required: false;
|
|
485
|
+
};
|
|
486
|
+
readonly defaultValue: {
|
|
487
|
+
readonly type: PropType<boolean>;
|
|
488
|
+
readonly required: false;
|
|
489
|
+
};
|
|
490
|
+
readonly pressed: {
|
|
491
|
+
readonly type: PropType<boolean>;
|
|
492
|
+
readonly required: false;
|
|
493
|
+
readonly default: undefined;
|
|
494
|
+
};
|
|
495
|
+
readonly disabled: {
|
|
496
|
+
readonly type: PropType<boolean>;
|
|
497
|
+
readonly required: false;
|
|
498
|
+
readonly default: false;
|
|
499
|
+
};
|
|
500
|
+
readonly asChild: {
|
|
501
|
+
readonly type: PropType<boolean>;
|
|
502
|
+
readonly required: false;
|
|
503
|
+
readonly default: false;
|
|
504
|
+
};
|
|
505
|
+
}, {
|
|
506
|
+
rootContext: ToggleGroupRootContext;
|
|
507
|
+
disabled: vue.ComputedRef<boolean>;
|
|
508
|
+
pressed: vue.ComputedRef<boolean | undefined>;
|
|
509
|
+
forwardRef: (ref: Element | vue.ComponentPublicInstance | null) => void;
|
|
510
|
+
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
511
|
+
/**
|
|
512
|
+
* A string value for the toggle group item. All items within a toggle group should use a unique value.
|
|
513
|
+
*/
|
|
514
|
+
readonly value: {
|
|
515
|
+
readonly type: PropType<string>;
|
|
516
|
+
readonly required: true;
|
|
517
|
+
};
|
|
518
|
+
readonly as: {
|
|
519
|
+
readonly default: "button";
|
|
520
|
+
readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
|
|
521
|
+
readonly required: false;
|
|
522
|
+
};
|
|
523
|
+
readonly defaultValue: {
|
|
524
|
+
readonly type: PropType<boolean>;
|
|
525
|
+
readonly required: false;
|
|
526
|
+
};
|
|
527
|
+
readonly pressed: {
|
|
528
|
+
readonly type: PropType<boolean>;
|
|
529
|
+
readonly required: false;
|
|
530
|
+
readonly default: undefined;
|
|
531
|
+
};
|
|
532
|
+
readonly disabled: {
|
|
533
|
+
readonly type: PropType<boolean>;
|
|
534
|
+
readonly required: false;
|
|
535
|
+
readonly default: false;
|
|
536
|
+
};
|
|
537
|
+
readonly asChild: {
|
|
538
|
+
readonly type: PropType<boolean>;
|
|
539
|
+
readonly required: false;
|
|
540
|
+
readonly default: false;
|
|
541
|
+
};
|
|
542
|
+
}>>, {
|
|
543
|
+
readonly as: _destyler_primitive.AsTag | vue.Component;
|
|
544
|
+
readonly pressed: boolean;
|
|
545
|
+
readonly disabled: boolean;
|
|
546
|
+
readonly asChild: boolean;
|
|
547
|
+
}, {}>;
|
|
548
|
+
|
|
549
|
+
export { Toggle, ToggleGroupItem, type ToggleGroupItemProps, ToggleGroupRoot, type ToggleGroupRootProps, type ToggleProps, toggleEmits, toggleGroupItemProps, toggleGroupRootEmits, toggleGroupRootProps, toggleProps };
|