@destyler/dynamic 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,854 @@
1
- export { DestylerDynamicClear, DestylerDynamicClearProps, DestylerDynamicInput, DestylerDynamicInputProps, DestylerDynamicItem, DestylerDynamicItemDelete, DestylerDynamicItemDeleteProps, DestylerDynamicItemProops, DestylerDynamicItemText, DestylerDynamicItemTextProps, DestylerDynamicRoot, DestylerDynamicRootProps } from './index.cjs';
2
- import 'vue';
3
- import '@destyler/primitive';
4
- import '@destyler/shared';
1
+ import * as vue from 'vue';
2
+ import { PropType, Ref, SlotsType, VNode } from 'vue';
3
+ import * as _destyler_primitive from '@destyler/primitive';
4
+ import { Direction, ExtractPublicPropTypes } from '@destyler/shared';
5
+
6
+ declare const dynamicRootProps: {
7
+ /**
8
+ * The controlled value of the tags input. Can be bind as `v-model`.
9
+ *
10
+ * @default () => []
11
+ */
12
+ readonly modelValue: {
13
+ readonly type: PropType<string[]>;
14
+ readonly required: false;
15
+ readonly default: () => never[];
16
+ };
17
+ /**
18
+ * The value of the tags that should be added.
19
+ * Use when you do not need to control the state of the tags input
20
+ */
21
+ readonly defaultValue: {
22
+ readonly type: PropType<string[]>;
23
+ readonly required: false;
24
+ };
25
+ /**
26
+ * When `true`, allow adding tags on paste.
27
+ * Work in conjunction with delimiter prop.
28
+ *
29
+ * @default false
30
+ */
31
+ readonly addOnPaste: {
32
+ readonly type: PropType<boolean>;
33
+ readonly required: false;
34
+ readonly default: false;
35
+ };
36
+ /**
37
+ * When `true` allow adding tags on tab keydown
38
+ *
39
+ * @default false
40
+ */
41
+ readonly addOnTab: {
42
+ readonly type: PropType<boolean>;
43
+ readonly required: false;
44
+ readonly default: false;
45
+ };
46
+ /**
47
+ * When `true` allow adding tags blur input
48
+ *
49
+ * @default false
50
+ */
51
+ readonly addOnBlur: {
52
+ readonly type: PropType<boolean>;
53
+ readonly required: false;
54
+ readonly default: false;
55
+ };
56
+ /**
57
+ * When `true`, allow duplicated tags.
58
+ *
59
+ * @default false
60
+ */
61
+ readonly duplicate: {
62
+ readonly type: PropType<boolean>;
63
+ readonly required: false;
64
+ readonly default: false;
65
+ };
66
+ /**
67
+ * When `true`, prevents the user from interacting with the tags input.
68
+ *
69
+ * @default false
70
+ */
71
+ readonly disabled: {
72
+ readonly type: PropType<boolean>;
73
+ readonly required: false;
74
+ readonly default: false;
75
+ };
76
+ /**
77
+ * The character to trigger the addition of a new tag.
78
+ * Also used to split tags for `@paste` event
79
+ *
80
+ * @default ,
81
+ */
82
+ readonly delimiter: {
83
+ readonly type: PropType<string>;
84
+ readonly required: false;
85
+ readonly default: ",";
86
+ };
87
+ /**
88
+ s* The reading direction of the combobox when applicable.
89
+ */
90
+ readonly dir: {
91
+ readonly type: PropType<Direction>;
92
+ readonly required: false;
93
+ };
94
+ /**
95
+ * Maximum number of tags.
96
+ *
97
+ * @default 0
98
+ */
99
+ readonly max: {
100
+ readonly type: PropType<number>;
101
+ readonly required: false;
102
+ readonly default: 0;
103
+ };
104
+ /**
105
+ * When `true`, indicates that the user must add the
106
+ * tags input before the owning form can be submitted.
107
+ *
108
+ * @default false
109
+ */
110
+ readonly required: {
111
+ readonly type: PropType<boolean>;
112
+ readonly required: false;
113
+ readonly default: false;
114
+ };
115
+ /**
116
+ * The name of the tags input submitted with its
117
+ * owning form as part of a name/value pair.
118
+ */
119
+ readonly name: {
120
+ readonly type: PropType<string>;
121
+ readonly required: false;
122
+ };
123
+ /**
124
+ * The unique identifier of the machine.
125
+ */
126
+ readonly id: {
127
+ readonly type: PropType<string>;
128
+ readonly required: false;
129
+ };
130
+ readonly as: {
131
+ readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
132
+ readonly required: false;
133
+ readonly default: "div";
134
+ };
135
+ readonly asChild: {
136
+ readonly type: PropType<boolean>;
137
+ readonly required: false;
138
+ readonly default: false;
139
+ };
140
+ };
141
+ type DynamicRootProps = ExtractPublicPropTypes<typeof dynamicRootProps>;
142
+ declare const dynamicRootEmits: {
143
+ /**
144
+ * Event handler called when the value is invalid
145
+ */
146
+ invalid: (_payload: string) => boolean;
147
+ /**
148
+ * Event handler called when the value changes
149
+ */
150
+ 'update:modelValue': (_value: Array<string>) => boolean;
151
+ };
152
+ interface DynamicRootContext {
153
+ modelValue: Ref<Array<string>>;
154
+ onAddValue: (payload: string) => boolean;
155
+ onRemoveValue: (index: number) => void;
156
+ onInputKeydown: (event: KeyboardEvent) => void;
157
+ selectedElement: Ref<HTMLElement | undefined>;
158
+ isInvalidInput: Ref<boolean>;
159
+ addOnPaste: Ref<boolean>;
160
+ addOnTab: Ref<boolean>;
161
+ addOnBlur: Ref<boolean>;
162
+ disabled: Ref<boolean>;
163
+ delimiter: Ref<string>;
164
+ dir: Ref<Direction>;
165
+ max: Ref<number>;
166
+ id: Ref<string | undefined> | undefined;
167
+ }
168
+ declare const DynamicRoot: vue.DefineComponent<{
169
+ /**
170
+ * The controlled value of the tags input. Can be bind as `v-model`.
171
+ *
172
+ * @default () => []
173
+ */
174
+ readonly modelValue: {
175
+ readonly type: PropType<string[]>;
176
+ readonly required: false;
177
+ readonly default: () => never[];
178
+ };
179
+ /**
180
+ * The value of the tags that should be added.
181
+ * Use when you do not need to control the state of the tags input
182
+ */
183
+ readonly defaultValue: {
184
+ readonly type: PropType<string[]>;
185
+ readonly required: false;
186
+ };
187
+ /**
188
+ * When `true`, allow adding tags on paste.
189
+ * Work in conjunction with delimiter prop.
190
+ *
191
+ * @default false
192
+ */
193
+ readonly addOnPaste: {
194
+ readonly type: PropType<boolean>;
195
+ readonly required: false;
196
+ readonly default: false;
197
+ };
198
+ /**
199
+ * When `true` allow adding tags on tab keydown
200
+ *
201
+ * @default false
202
+ */
203
+ readonly addOnTab: {
204
+ readonly type: PropType<boolean>;
205
+ readonly required: false;
206
+ readonly default: false;
207
+ };
208
+ /**
209
+ * When `true` allow adding tags blur input
210
+ *
211
+ * @default false
212
+ */
213
+ readonly addOnBlur: {
214
+ readonly type: PropType<boolean>;
215
+ readonly required: false;
216
+ readonly default: false;
217
+ };
218
+ /**
219
+ * When `true`, allow duplicated tags.
220
+ *
221
+ * @default false
222
+ */
223
+ readonly duplicate: {
224
+ readonly type: PropType<boolean>;
225
+ readonly required: false;
226
+ readonly default: false;
227
+ };
228
+ /**
229
+ * When `true`, prevents the user from interacting with the tags input.
230
+ *
231
+ * @default false
232
+ */
233
+ readonly disabled: {
234
+ readonly type: PropType<boolean>;
235
+ readonly required: false;
236
+ readonly default: false;
237
+ };
238
+ /**
239
+ * The character to trigger the addition of a new tag.
240
+ * Also used to split tags for `@paste` event
241
+ *
242
+ * @default ,
243
+ */
244
+ readonly delimiter: {
245
+ readonly type: PropType<string>;
246
+ readonly required: false;
247
+ readonly default: ",";
248
+ };
249
+ /**
250
+ s* The reading direction of the combobox when applicable.
251
+ */
252
+ readonly dir: {
253
+ readonly type: PropType<Direction>;
254
+ readonly required: false;
255
+ };
256
+ /**
257
+ * Maximum number of tags.
258
+ *
259
+ * @default 0
260
+ */
261
+ readonly max: {
262
+ readonly type: PropType<number>;
263
+ readonly required: false;
264
+ readonly default: 0;
265
+ };
266
+ /**
267
+ * When `true`, indicates that the user must add the
268
+ * tags input before the owning form can be submitted.
269
+ *
270
+ * @default false
271
+ */
272
+ readonly required: {
273
+ readonly type: PropType<boolean>;
274
+ readonly required: false;
275
+ readonly default: false;
276
+ };
277
+ /**
278
+ * The name of the tags input submitted with its
279
+ * owning form as part of a name/value pair.
280
+ */
281
+ readonly name: {
282
+ readonly type: PropType<string>;
283
+ readonly required: false;
284
+ };
285
+ /**
286
+ * The unique identifier of the machine.
287
+ */
288
+ readonly id: {
289
+ readonly type: PropType<string>;
290
+ readonly required: false;
291
+ };
292
+ readonly as: {
293
+ readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
294
+ readonly required: false;
295
+ readonly default: "div";
296
+ };
297
+ readonly asChild: {
298
+ readonly type: PropType<boolean>;
299
+ readonly required: false;
300
+ readonly default: false;
301
+ };
302
+ }, {
303
+ forwardRef: (ref: Element | vue.ComponentPublicInstance | null) => void;
304
+ dir: vue.ComputedRef<Direction>;
305
+ isInvalidInput: Ref<boolean>;
306
+ disabled: Ref<boolean>;
307
+ focused: vue.ComputedRef<boolean>;
308
+ modelValue: Ref<string[]>;
309
+ isFormControl: vue.ComputedRef<boolean>;
310
+ }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
311
+ /**
312
+ * Event handler called when the value is invalid
313
+ */
314
+ invalid: (_payload: string) => boolean;
315
+ /**
316
+ * Event handler called when the value changes
317
+ */
318
+ 'update:modelValue': (_value: Array<string>) => boolean;
319
+ }, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
320
+ /**
321
+ * The controlled value of the tags input. Can be bind as `v-model`.
322
+ *
323
+ * @default () => []
324
+ */
325
+ readonly modelValue: {
326
+ readonly type: PropType<string[]>;
327
+ readonly required: false;
328
+ readonly default: () => never[];
329
+ };
330
+ /**
331
+ * The value of the tags that should be added.
332
+ * Use when you do not need to control the state of the tags input
333
+ */
334
+ readonly defaultValue: {
335
+ readonly type: PropType<string[]>;
336
+ readonly required: false;
337
+ };
338
+ /**
339
+ * When `true`, allow adding tags on paste.
340
+ * Work in conjunction with delimiter prop.
341
+ *
342
+ * @default false
343
+ */
344
+ readonly addOnPaste: {
345
+ readonly type: PropType<boolean>;
346
+ readonly required: false;
347
+ readonly default: false;
348
+ };
349
+ /**
350
+ * When `true` allow adding tags on tab keydown
351
+ *
352
+ * @default false
353
+ */
354
+ readonly addOnTab: {
355
+ readonly type: PropType<boolean>;
356
+ readonly required: false;
357
+ readonly default: false;
358
+ };
359
+ /**
360
+ * When `true` allow adding tags blur input
361
+ *
362
+ * @default false
363
+ */
364
+ readonly addOnBlur: {
365
+ readonly type: PropType<boolean>;
366
+ readonly required: false;
367
+ readonly default: false;
368
+ };
369
+ /**
370
+ * When `true`, allow duplicated tags.
371
+ *
372
+ * @default false
373
+ */
374
+ readonly duplicate: {
375
+ readonly type: PropType<boolean>;
376
+ readonly required: false;
377
+ readonly default: false;
378
+ };
379
+ /**
380
+ * When `true`, prevents the user from interacting with the tags input.
381
+ *
382
+ * @default false
383
+ */
384
+ readonly disabled: {
385
+ readonly type: PropType<boolean>;
386
+ readonly required: false;
387
+ readonly default: false;
388
+ };
389
+ /**
390
+ * The character to trigger the addition of a new tag.
391
+ * Also used to split tags for `@paste` event
392
+ *
393
+ * @default ,
394
+ */
395
+ readonly delimiter: {
396
+ readonly type: PropType<string>;
397
+ readonly required: false;
398
+ readonly default: ",";
399
+ };
400
+ /**
401
+ s* The reading direction of the combobox when applicable.
402
+ */
403
+ readonly dir: {
404
+ readonly type: PropType<Direction>;
405
+ readonly required: false;
406
+ };
407
+ /**
408
+ * Maximum number of tags.
409
+ *
410
+ * @default 0
411
+ */
412
+ readonly max: {
413
+ readonly type: PropType<number>;
414
+ readonly required: false;
415
+ readonly default: 0;
416
+ };
417
+ /**
418
+ * When `true`, indicates that the user must add the
419
+ * tags input before the owning form can be submitted.
420
+ *
421
+ * @default false
422
+ */
423
+ readonly required: {
424
+ readonly type: PropType<boolean>;
425
+ readonly required: false;
426
+ readonly default: false;
427
+ };
428
+ /**
429
+ * The name of the tags input submitted with its
430
+ * owning form as part of a name/value pair.
431
+ */
432
+ readonly name: {
433
+ readonly type: PropType<string>;
434
+ readonly required: false;
435
+ };
436
+ /**
437
+ * The unique identifier of the machine.
438
+ */
439
+ readonly id: {
440
+ readonly type: PropType<string>;
441
+ readonly required: false;
442
+ };
443
+ readonly as: {
444
+ readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
445
+ readonly required: false;
446
+ readonly default: "div";
447
+ };
448
+ readonly asChild: {
449
+ readonly type: PropType<boolean>;
450
+ readonly required: false;
451
+ readonly default: false;
452
+ };
453
+ }>> & {
454
+ onInvalid?: ((_payload: string) => any) | undefined;
455
+ "onUpdate:modelValue"?: ((_value: string[]) => any) | undefined;
456
+ }, {
457
+ readonly modelValue: string[];
458
+ readonly addOnPaste: boolean;
459
+ readonly addOnTab: boolean;
460
+ readonly addOnBlur: boolean;
461
+ readonly duplicate: boolean;
462
+ readonly disabled: boolean;
463
+ readonly delimiter: string;
464
+ readonly max: number;
465
+ readonly required: boolean;
466
+ readonly as: _destyler_primitive.AsTag | vue.Component;
467
+ readonly asChild: boolean;
468
+ }, SlotsType<{
469
+ default: (opts: {
470
+ /**
471
+ * Current input values
472
+ */
473
+ modelValue: string[];
474
+ }) => VNode[];
475
+ }>>;
476
+
477
+ declare const dynamicClearProps: {
478
+ /**
479
+ * @default button
480
+ */
481
+ readonly as: {
482
+ readonly default: "button";
483
+ readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
484
+ readonly required: false;
485
+ };
486
+ readonly asChild: {
487
+ readonly type: vue.PropType<boolean>;
488
+ readonly required: false;
489
+ readonly default: false;
490
+ };
491
+ };
492
+ type DynamicClearProps = ExtractPublicPropTypes<typeof dynamicClearProps>;
493
+ declare const DynamicClear: vue.DefineComponent<{
494
+ /**
495
+ * @default button
496
+ */
497
+ readonly as: {
498
+ readonly default: "button";
499
+ readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
500
+ readonly required: false;
501
+ };
502
+ readonly asChild: {
503
+ readonly type: vue.PropType<boolean>;
504
+ readonly required: false;
505
+ readonly default: false;
506
+ };
507
+ }, {
508
+ context: DynamicRootContext;
509
+ handleCancel: () => void;
510
+ }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
511
+ /**
512
+ * @default button
513
+ */
514
+ readonly as: {
515
+ readonly default: "button";
516
+ readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
517
+ readonly required: false;
518
+ };
519
+ readonly asChild: {
520
+ readonly type: vue.PropType<boolean>;
521
+ readonly required: false;
522
+ readonly default: false;
523
+ };
524
+ }>>, {
525
+ readonly as: _destyler_primitive.AsTag | vue.Component;
526
+ readonly asChild: boolean;
527
+ }, {}>;
528
+
529
+ declare const dynamicInputProps: {
530
+ /**
531
+ * @default input
532
+ */
533
+ readonly as: {
534
+ readonly default: "input";
535
+ readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
536
+ readonly required: false;
537
+ };
538
+ /**
539
+ * The placeholder character to use for empty tags input.
540
+ */
541
+ readonly placeholder: {
542
+ readonly type: PropType<string>;
543
+ readonly required: false;
544
+ };
545
+ /**
546
+ * Focus on element when mounted.
547
+ */
548
+ readonly autoFocus: {
549
+ readonly type: PropType<boolean>;
550
+ readonly required: false;
551
+ };
552
+ /**
553
+ * Maximum number of character allowed.
554
+ */
555
+ readonly maxLength: {
556
+ readonly type: PropType<number>;
557
+ readonly required: false;
558
+ };
559
+ readonly asChild: {
560
+ readonly type: PropType<boolean>;
561
+ readonly required: false;
562
+ readonly default: false;
563
+ };
564
+ };
565
+ type DynamicInputProps = ExtractPublicPropTypes<typeof dynamicInputProps>;
566
+ declare const DynamicInput: vue.DefineComponent<{
567
+ /**
568
+ * @default input
569
+ */
570
+ readonly as: {
571
+ readonly default: "input";
572
+ readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
573
+ readonly required: false;
574
+ };
575
+ /**
576
+ * The placeholder character to use for empty tags input.
577
+ */
578
+ readonly placeholder: {
579
+ readonly type: PropType<string>;
580
+ readonly required: false;
581
+ };
582
+ /**
583
+ * Focus on element when mounted.
584
+ */
585
+ readonly autoFocus: {
586
+ readonly type: PropType<boolean>;
587
+ readonly required: false;
588
+ };
589
+ /**
590
+ * Maximum number of character allowed.
591
+ */
592
+ readonly maxLength: {
593
+ readonly type: PropType<number>;
594
+ readonly required: false;
595
+ };
596
+ readonly asChild: {
597
+ readonly type: PropType<boolean>;
598
+ readonly required: false;
599
+ readonly default: false;
600
+ };
601
+ }, {
602
+ forwardRef: (ref: Element | vue.ComponentPublicInstance | null) => void;
603
+ context: DynamicRootContext;
604
+ handleInput: (event: InputEvent) => void;
605
+ handlePaste: (event: ClipboardEvent) => void;
606
+ handleCustomKeydown: (event: Event) => Promise<void>;
607
+ handleBlur: (event: Event) => void;
608
+ handleTab: (event: Event) => void;
609
+ }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
610
+ /**
611
+ * @default input
612
+ */
613
+ readonly as: {
614
+ readonly default: "input";
615
+ readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
616
+ readonly required: false;
617
+ };
618
+ /**
619
+ * The placeholder character to use for empty tags input.
620
+ */
621
+ readonly placeholder: {
622
+ readonly type: PropType<string>;
623
+ readonly required: false;
624
+ };
625
+ /**
626
+ * Focus on element when mounted.
627
+ */
628
+ readonly autoFocus: {
629
+ readonly type: PropType<boolean>;
630
+ readonly required: false;
631
+ };
632
+ /**
633
+ * Maximum number of character allowed.
634
+ */
635
+ readonly maxLength: {
636
+ readonly type: PropType<number>;
637
+ readonly required: false;
638
+ };
639
+ readonly asChild: {
640
+ readonly type: PropType<boolean>;
641
+ readonly required: false;
642
+ readonly default: false;
643
+ };
644
+ }>>, {
645
+ readonly as: _destyler_primitive.AsTag | vue.Component;
646
+ readonly asChild: boolean;
647
+ }, {}>;
648
+
649
+ declare const dynamicItemProps: {
650
+ /**
651
+ * Value associated with the tags
652
+ */
653
+ readonly value: {
654
+ readonly type: PropType<string>;
655
+ readonly required: true;
656
+ };
657
+ /**
658
+ * When `true`, prevents the user from interacting with the tags input.
659
+ */
660
+ readonly disabled: {
661
+ readonly type: PropType<boolean>;
662
+ readonly required: false;
663
+ };
664
+ readonly as: {
665
+ readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
666
+ readonly required: false;
667
+ readonly default: "div";
668
+ };
669
+ readonly asChild: {
670
+ readonly type: PropType<boolean>;
671
+ readonly required: false;
672
+ readonly default: false;
673
+ };
674
+ };
675
+ type DynamicItemProops = ExtractPublicPropTypes<typeof dynamicItemProps>;
676
+ interface DynamicItemContext {
677
+ value: Ref<string>;
678
+ isSelected: Ref<boolean>;
679
+ disabled: Ref<boolean | undefined>;
680
+ textId: string;
681
+ }
682
+ declare const DynamicItem: vue.DefineComponent<{
683
+ /**
684
+ * Value associated with the tags
685
+ */
686
+ readonly value: {
687
+ readonly type: PropType<string>;
688
+ readonly required: true;
689
+ };
690
+ /**
691
+ * When `true`, prevents the user from interacting with the tags input.
692
+ */
693
+ readonly disabled: {
694
+ readonly type: PropType<boolean>;
695
+ readonly required: false;
696
+ };
697
+ readonly as: {
698
+ readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
699
+ readonly required: false;
700
+ readonly default: "div";
701
+ };
702
+ readonly asChild: {
703
+ readonly type: PropType<boolean>;
704
+ readonly required: false;
705
+ readonly default: false;
706
+ };
707
+ }, {
708
+ forwardRef: (ref: Element | vue.ComponentPublicInstance | null) => void;
709
+ textId: string;
710
+ isSelected: vue.ComputedRef<boolean>;
711
+ disabled: vue.ComputedRef<boolean>;
712
+ }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
713
+ /**
714
+ * Value associated with the tags
715
+ */
716
+ readonly value: {
717
+ readonly type: PropType<string>;
718
+ readonly required: true;
719
+ };
720
+ /**
721
+ * When `true`, prevents the user from interacting with the tags input.
722
+ */
723
+ readonly disabled: {
724
+ readonly type: PropType<boolean>;
725
+ readonly required: false;
726
+ };
727
+ readonly as: {
728
+ readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
729
+ readonly required: false;
730
+ readonly default: "div";
731
+ };
732
+ readonly asChild: {
733
+ readonly type: PropType<boolean>;
734
+ readonly required: false;
735
+ readonly default: false;
736
+ };
737
+ }>>, {
738
+ readonly as: _destyler_primitive.AsTag | vue.Component;
739
+ readonly asChild: boolean;
740
+ }, {}>;
741
+
742
+ declare const dynamicItemDeleteProps: {
743
+ /**
744
+ * @default button
745
+ */
746
+ readonly as: {
747
+ readonly default: "button";
748
+ readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
749
+ readonly required: false;
750
+ };
751
+ readonly asChild: {
752
+ readonly type: vue.PropType<boolean>;
753
+ readonly required: false;
754
+ readonly default: false;
755
+ };
756
+ };
757
+ type DynamicItemDeleteProps = ExtractPublicPropTypes<typeof dynamicItemDeleteProps>;
758
+ declare const DynamicItemDelete: vue.DefineComponent<{
759
+ /**
760
+ * @default button
761
+ */
762
+ readonly as: {
763
+ readonly default: "button";
764
+ readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
765
+ readonly required: false;
766
+ };
767
+ readonly asChild: {
768
+ readonly type: vue.PropType<boolean>;
769
+ readonly required: false;
770
+ readonly default: false;
771
+ };
772
+ }, {
773
+ context: DynamicRootContext;
774
+ itemContext: DynamicItemContext;
775
+ disabled: vue.ComputedRef<boolean>;
776
+ handleDelete: () => void;
777
+ }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
778
+ /**
779
+ * @default button
780
+ */
781
+ readonly as: {
782
+ readonly default: "button";
783
+ readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
784
+ readonly required: false;
785
+ };
786
+ readonly asChild: {
787
+ readonly type: vue.PropType<boolean>;
788
+ readonly required: false;
789
+ readonly default: false;
790
+ };
791
+ }>>, {
792
+ readonly as: _destyler_primitive.AsTag | vue.Component;
793
+ readonly asChild: boolean;
794
+ }, {}>;
795
+
796
+ declare const dynamicItemTextProps: {
797
+ /**
798
+ * @default span
799
+ */
800
+ readonly as: {
801
+ readonly default: "span";
802
+ readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
803
+ readonly required: false;
804
+ };
805
+ readonly asChild: {
806
+ readonly type: vue.PropType<boolean>;
807
+ readonly required: false;
808
+ readonly default: false;
809
+ };
810
+ };
811
+ type DynamicItemTextProps = ExtractPublicPropTypes<typeof dynamicItemTextProps>;
812
+ declare const DynamicItemText: vue.DefineComponent<{
813
+ /**
814
+ * @default span
815
+ */
816
+ readonly as: {
817
+ readonly default: "span";
818
+ readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
819
+ readonly required: false;
820
+ };
821
+ readonly asChild: {
822
+ readonly type: vue.PropType<boolean>;
823
+ readonly required: false;
824
+ readonly default: false;
825
+ };
826
+ }, {
827
+ itemContext: DynamicItemContext;
828
+ }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
829
+ /**
830
+ * @default span
831
+ */
832
+ readonly as: {
833
+ readonly default: "span";
834
+ readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
835
+ readonly required: false;
836
+ };
837
+ readonly asChild: {
838
+ readonly type: vue.PropType<boolean>;
839
+ readonly required: false;
840
+ readonly default: false;
841
+ };
842
+ }>>, {
843
+ readonly as: _destyler_primitive.AsTag | vue.Component;
844
+ readonly asChild: boolean;
845
+ }, SlotsType<{
846
+ default: (opts: {
847
+ /**
848
+ * The text of the item.
849
+ */
850
+ text: string;
851
+ }) => VNode[];
852
+ }>>;
853
+
854
+ export { DynamicClear, type DynamicClearProps, DynamicInput, type DynamicInputProps, DynamicItem, DynamicItemDelete, type DynamicItemDeleteProps, type DynamicItemProops, DynamicItemText, type DynamicItemTextProps, DynamicRoot, type DynamicRootProps, dynamicClearProps, dynamicInputProps, dynamicItemDeleteProps, dynamicItemProps, dynamicItemTextProps, dynamicRootEmits, dynamicRootProps };