@typlog/ui 0.11.5 → 0.11.7
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/dist/components/dialog.css +15 -11
- package/dist/components.css +15 -11
- package/dist/components.d.ts +91 -51
- package/dist/components.js +99 -51
- package/package.json +1 -1
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
|
|
2
|
+
.ui-DialogTitle {
|
|
3
|
+
font-size: var(--font-size-4);
|
|
4
|
+
font-weight: var(--font-weight-semibold);
|
|
5
|
+
line-height: var(--line-height-4);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.ui-DialogDescription {
|
|
9
|
+
font-size: var(--font-size-3);
|
|
10
|
+
line-height: var(--line-height-2);
|
|
11
|
+
color: var(--gray-11);
|
|
12
|
+
}
|
|
13
|
+
.ui-DialogTitle + .ui-DialogDescription {
|
|
14
|
+
margin-top: var(--space-2);
|
|
15
|
+
}
|
|
16
|
+
|
|
2
17
|
.ui-Button {
|
|
3
18
|
display: inline-flex;
|
|
4
19
|
align-items: center;
|
|
@@ -329,17 +344,6 @@
|
|
|
329
344
|
top: calc(var(--dialog-content-padding) / 1.5);
|
|
330
345
|
right: var(--dialog-content-padding);
|
|
331
346
|
}
|
|
332
|
-
.ui-DialogContent > h2[id^="reka-dialog-title"] {
|
|
333
|
-
font-size: var(--font-size-5);
|
|
334
|
-
font-weight: var(--font-weight-bold);
|
|
335
|
-
line-height: var(--line-height-4);
|
|
336
|
-
margin-bottom: var(--space-3);
|
|
337
|
-
}
|
|
338
|
-
.ui-DialogContent > p[id^="reka-dialog-description"] {
|
|
339
|
-
font-size: var(--font-size-3);
|
|
340
|
-
line-height: var(--line-height-2);
|
|
341
|
-
letter-spacing: var(--letter-spacing-2);
|
|
342
|
-
}
|
|
343
347
|
@media (min-width: 520px) {
|
|
344
348
|
.ui-DialogContainer {
|
|
345
349
|
justify-content: center;
|
package/dist/components.css
CHANGED
|
@@ -799,6 +799,21 @@
|
|
|
799
799
|
background-color: var(--gray-a9);
|
|
800
800
|
}
|
|
801
801
|
|
|
802
|
+
.ui-DialogTitle {
|
|
803
|
+
font-size: var(--font-size-4);
|
|
804
|
+
font-weight: var(--font-weight-semibold);
|
|
805
|
+
line-height: var(--line-height-4);
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
.ui-DialogDescription {
|
|
809
|
+
font-size: var(--font-size-3);
|
|
810
|
+
line-height: var(--line-height-2);
|
|
811
|
+
color: var(--gray-11);
|
|
812
|
+
}
|
|
813
|
+
.ui-DialogTitle + .ui-DialogDescription {
|
|
814
|
+
margin-top: var(--space-2);
|
|
815
|
+
}
|
|
816
|
+
|
|
802
817
|
.ui-DialogOverlay {
|
|
803
818
|
position: fixed;
|
|
804
819
|
inset: 0;
|
|
@@ -865,17 +880,6 @@
|
|
|
865
880
|
top: calc(var(--dialog-content-padding) / 1.5);
|
|
866
881
|
right: var(--dialog-content-padding);
|
|
867
882
|
}
|
|
868
|
-
.ui-DialogContent > h2[id^="reka-dialog-title"] {
|
|
869
|
-
font-size: var(--font-size-5);
|
|
870
|
-
font-weight: var(--font-weight-bold);
|
|
871
|
-
line-height: var(--line-height-4);
|
|
872
|
-
margin-bottom: var(--space-3);
|
|
873
|
-
}
|
|
874
|
-
.ui-DialogContent > p[id^="reka-dialog-description"] {
|
|
875
|
-
font-size: var(--font-size-3);
|
|
876
|
-
line-height: var(--line-height-2);
|
|
877
|
-
letter-spacing: var(--letter-spacing-2);
|
|
878
|
-
}
|
|
879
883
|
@media (min-width: 520px) {
|
|
880
884
|
.ui-DialogContainer {
|
|
881
885
|
justify-content: center;
|
package/dist/components.d.ts
CHANGED
|
@@ -27,11 +27,12 @@ import { ComponentOptionsMixin } from 'vue';
|
|
|
27
27
|
import { ComponentProvideOptions } from 'vue';
|
|
28
28
|
import { DefineComponent } from 'vue';
|
|
29
29
|
import { DialogClose } from 'reka-ui';
|
|
30
|
+
import { DialogCloseProps } from 'reka-ui';
|
|
30
31
|
import { DialogContentProps as DialogContentProps_2 } from 'reka-ui';
|
|
31
|
-
import { DialogDescription } from 'reka-ui';
|
|
32
32
|
import { DialogRoot } from 'reka-ui';
|
|
33
|
-
import {
|
|
33
|
+
import { DialogRootProps } from 'reka-ui';
|
|
34
34
|
import { DialogTrigger } from 'reka-ui';
|
|
35
|
+
import { DialogTriggerProps } from 'reka-ui';
|
|
35
36
|
import { DropdownMenuContentProps as DropdownMenuContentProps_2 } from 'reka-ui';
|
|
36
37
|
import { DropdownMenuItemProps as DropdownMenuItemProps_2 } from 'reka-ui';
|
|
37
38
|
import { DropdownMenuRoot } from 'reka-ui';
|
|
@@ -49,6 +50,7 @@ import { PublicProps } from 'vue';
|
|
|
49
50
|
import { RadioGroupItemProps } from 'reka-ui';
|
|
50
51
|
import { RadioGroupRootProps as RadioGroupRootProps_2 } from 'reka-ui';
|
|
51
52
|
import { RadioGroupItem as RadioTabsItem } from 'reka-ui';
|
|
53
|
+
import { Ref } from 'vue';
|
|
52
54
|
import { ScrollAreaRootProps } from 'reka-ui';
|
|
53
55
|
import { SelectContentProps as SelectContentProps_2 } from 'reka-ui';
|
|
54
56
|
import { SelectGroup } from 'reka-ui';
|
|
@@ -363,6 +365,18 @@ declare type __VLS_WithTemplateSlots_43<T, S> = T & {
|
|
|
363
365
|
};
|
|
364
366
|
};
|
|
365
367
|
|
|
368
|
+
declare type __VLS_WithTemplateSlots_44<T, S> = T & {
|
|
369
|
+
new (): {
|
|
370
|
+
$slots: S;
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
|
|
374
|
+
declare type __VLS_WithTemplateSlots_45<T, S> = T & {
|
|
375
|
+
new (): {
|
|
376
|
+
$slots: S;
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
|
|
366
380
|
declare type __VLS_WithTemplateSlots_5<T, S> = T & {
|
|
367
381
|
new (): {
|
|
368
382
|
$slots: S;
|
|
@@ -393,19 +407,19 @@ declare type __VLS_WithTemplateSlots_9<T, S> = T & {
|
|
|
393
407
|
};
|
|
394
408
|
};
|
|
395
409
|
|
|
396
|
-
export declare const AccordionContent:
|
|
410
|
+
export declare const AccordionContent: __VLS_WithTemplateSlots_40<DefineComponent<AccordionContentProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<AccordionContentProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
397
411
|
default?(_: {}): any;
|
|
398
412
|
}>;
|
|
399
413
|
|
|
400
414
|
export { AccordionContentProps }
|
|
401
415
|
|
|
402
|
-
export declare const AccordionItem:
|
|
416
|
+
export declare const AccordionItem: __VLS_WithTemplateSlots_39<DefineComponent<AccordionItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<AccordionItemProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
403
417
|
default?(_: {}): any;
|
|
404
418
|
}>;
|
|
405
419
|
|
|
406
420
|
export { AccordionItemProps }
|
|
407
421
|
|
|
408
|
-
export declare const AccordionRoot:
|
|
422
|
+
export declare const AccordionRoot: __VLS_WithTemplateSlots_38<DefineComponent<AccordionRootProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
409
423
|
"update:modelValue": (value: string | string[] | undefined) => any;
|
|
410
424
|
}, string, PublicProps, Readonly<AccordionRootProps> & Readonly<{
|
|
411
425
|
"onUpdate:modelValue"?: ((value: string | string[] | undefined) => any) | undefined;
|
|
@@ -419,7 +433,7 @@ export declare interface AccordionRootProps extends AccordionRootProps_2 {
|
|
|
419
433
|
size?: '1' | '2' | '3';
|
|
420
434
|
}
|
|
421
435
|
|
|
422
|
-
export declare const AccordionTrigger:
|
|
436
|
+
export declare const AccordionTrigger: __VLS_WithTemplateSlots_41<DefineComponent<AccordionTriggerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<AccordionTriggerProps> & Readonly<{}>, {
|
|
423
437
|
indicator: "plus-minus" | "chevron";
|
|
424
438
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
425
439
|
default?(_: {}): any;
|
|
@@ -428,7 +442,7 @@ indicator: "plus-minus" | "chevron";
|
|
|
428
442
|
export declare interface AccordionTriggerProps extends PrimitiveProps {
|
|
429
443
|
/**
|
|
430
444
|
* The indicator icon for the accordion trigger.
|
|
431
|
-
* @
|
|
445
|
+
* @default "chevron"
|
|
432
446
|
*/
|
|
433
447
|
indicator?: 'plus-minus' | 'chevron';
|
|
434
448
|
}
|
|
@@ -492,17 +506,17 @@ export declare interface AvatarProps {
|
|
|
492
506
|
fallback?: string;
|
|
493
507
|
/**
|
|
494
508
|
* Overrides the radius inherited from the theme.
|
|
495
|
-
* @
|
|
509
|
+
* @default "small"
|
|
496
510
|
*/
|
|
497
511
|
radius?: RadiusType;
|
|
498
512
|
/**
|
|
499
513
|
* The visual variant to apply.
|
|
500
|
-
* @
|
|
514
|
+
* @default "solid"
|
|
501
515
|
*/
|
|
502
516
|
variant?: 'solid' | 'soft' | 'ring';
|
|
503
517
|
/**
|
|
504
518
|
* Control the size of the avatar.
|
|
505
|
-
* @
|
|
519
|
+
* @default "2"
|
|
506
520
|
*/
|
|
507
521
|
size?: '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9';
|
|
508
522
|
/** Overrides the accent color inherited from the Theme. */
|
|
@@ -522,26 +536,26 @@ highContrast: boolean;
|
|
|
522
536
|
export declare interface BadgeProps {
|
|
523
537
|
/**
|
|
524
538
|
* The visual variant to apply.
|
|
525
|
-
* @
|
|
539
|
+
* @default "solid"
|
|
526
540
|
*/
|
|
527
541
|
variant?: 'solid' | 'soft' | 'surface' | 'outline';
|
|
528
542
|
/** Overrides the accent color inherited from the theme. */
|
|
529
543
|
color?: ColorType;
|
|
530
544
|
/**
|
|
531
545
|
* Overrides the radius inherited from the theme.
|
|
532
|
-
* @
|
|
546
|
+
* @default "small"
|
|
533
547
|
*/
|
|
534
548
|
radius?: RadiusType;
|
|
535
549
|
/**
|
|
536
550
|
* Control the size of the badge.
|
|
537
|
-
* @
|
|
551
|
+
* @default "1"
|
|
538
552
|
*/
|
|
539
553
|
size?: '1' | '2' | '3';
|
|
540
554
|
/** Uses a higher contrast color for the component. */
|
|
541
555
|
highContrast?: boolean;
|
|
542
556
|
/**
|
|
543
557
|
* The element or component this component should render as.
|
|
544
|
-
* @
|
|
558
|
+
* @default "span"
|
|
545
559
|
*/
|
|
546
560
|
as?: AsTag;
|
|
547
561
|
asChild?: boolean;
|
|
@@ -561,7 +575,7 @@ highContrast: boolean;
|
|
|
561
575
|
declare interface ButtonProps {
|
|
562
576
|
/**
|
|
563
577
|
* The visual variant to apply.
|
|
564
|
-
* @
|
|
578
|
+
* @default "solid"
|
|
565
579
|
*/
|
|
566
580
|
variant?: 'classic' | 'solid' | 'soft' | 'surface' | 'outline' | 'ghost';
|
|
567
581
|
/** Overrides the accent color inherited from the Theme. */
|
|
@@ -570,7 +584,7 @@ declare interface ButtonProps {
|
|
|
570
584
|
radius?: RadiusType;
|
|
571
585
|
/**
|
|
572
586
|
* Control the size of the button.
|
|
573
|
-
* @
|
|
587
|
+
* @default "2"
|
|
574
588
|
*/
|
|
575
589
|
size?: '1' | '2' | '3' | '4';
|
|
576
590
|
/** Uses a higher contrast color for the component. */
|
|
@@ -579,7 +593,7 @@ declare interface ButtonProps {
|
|
|
579
593
|
disabled?: boolean;
|
|
580
594
|
/**
|
|
581
595
|
* The element or component this component should render as.
|
|
582
|
-
* @
|
|
596
|
+
* @default "button"
|
|
583
597
|
*/
|
|
584
598
|
as?: AsTag | Component;
|
|
585
599
|
asChild?: boolean;
|
|
@@ -624,7 +638,7 @@ declare interface CheckboxGroupItemProps extends CheckboxProps {
|
|
|
624
638
|
value: string;
|
|
625
639
|
}
|
|
626
640
|
|
|
627
|
-
export declare const CheckboxGroupRoot:
|
|
641
|
+
export declare const CheckboxGroupRoot: __VLS_WithTemplateSlots_17<DefineComponent< {
|
|
628
642
|
modelValue?: any[];
|
|
629
643
|
} & CheckboxGroupRootProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
630
644
|
"update:modelValue": (value: any[]) => any;
|
|
@@ -656,7 +670,7 @@ declare interface ChevronIconProps {
|
|
|
656
670
|
arrowTransform?: 'right-down' | 'right-up' | 'up-down' | 'down-up';
|
|
657
671
|
}
|
|
658
672
|
|
|
659
|
-
export declare const CollapsibleContent:
|
|
673
|
+
export declare const CollapsibleContent: __VLS_WithTemplateSlots_42<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
|
|
660
674
|
|
|
661
675
|
export { CollapsibleRoot }
|
|
662
676
|
|
|
@@ -684,7 +698,7 @@ export declare interface ColorFieldProps {
|
|
|
684
698
|
|
|
685
699
|
export declare type ColorType = 'gray' | 'gold' | 'bronze' | 'brown' | 'yellow' | 'amber' | 'orange' | 'tomato' | 'red' | 'ruby' | 'crimson' | 'pink' | 'plum' | 'purple' | 'violet' | 'iris' | 'indigo' | 'blue' | 'cyan' | 'teal' | 'jade' | 'green' | 'grass' | 'lime' | 'mint' | 'sky';
|
|
686
700
|
|
|
687
|
-
export declare const ComboboxContent:
|
|
701
|
+
export declare const ComboboxContent: __VLS_WithTemplateSlots_29<DefineComponent<ComboboxContentProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
688
702
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
689
703
|
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
690
704
|
focusOutside: (event: FocusOutsideEvent) => any;
|
|
@@ -710,7 +724,7 @@ export { ComboboxEmpty }
|
|
|
710
724
|
|
|
711
725
|
export { ComboboxGroup }
|
|
712
726
|
|
|
713
|
-
export declare const ComboboxInput:
|
|
727
|
+
export declare const ComboboxInput: __VLS_WithTemplateSlots_28<DefineComponent<ComboboxInputProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
714
728
|
"update:modelValue": (args_0: string) => any;
|
|
715
729
|
}, string, PublicProps, Readonly<ComboboxInputProps> & Readonly<{
|
|
716
730
|
"onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
|
|
@@ -728,13 +742,13 @@ declare interface ComboboxInputProps extends ComboboxInputProps_2 {
|
|
|
728
742
|
placeholder?: string;
|
|
729
743
|
}
|
|
730
744
|
|
|
731
|
-
export declare const ComboboxItem:
|
|
745
|
+
export declare const ComboboxItem: __VLS_WithTemplateSlots_30<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
732
746
|
|
|
733
|
-
export declare const ComboboxLabel:
|
|
747
|
+
export declare const ComboboxLabel: __VLS_WithTemplateSlots_31<DefineComponent<ComboboxLabelProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ComboboxLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
734
748
|
default?(_: {}): any;
|
|
735
749
|
}>;
|
|
736
750
|
|
|
737
|
-
export declare const ComboboxRoot:
|
|
751
|
+
export declare const ComboboxRoot: __VLS_WithTemplateSlots_27<DefineComponent<ComboboxRootProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
738
752
|
"update:modelValue": (value: AcceptableValue) => any;
|
|
739
753
|
"update:open": (value: boolean) => any;
|
|
740
754
|
highlight: (payload: {
|
|
@@ -761,7 +775,7 @@ export declare interface ComboboxRootProps extends ComboboxRootProps_2 {
|
|
|
761
775
|
highContrast?: boolean;
|
|
762
776
|
}
|
|
763
777
|
|
|
764
|
-
declare const _default:
|
|
778
|
+
declare const _default: __VLS_WithTemplateSlots_32<DefineComponent<RadioGroupRootProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
765
779
|
"update:modelValue": (payload: string) => any;
|
|
766
780
|
}, string, PublicProps, Readonly<RadioGroupRootProps> & Readonly<{
|
|
767
781
|
"onUpdate:modelValue"?: ((payload: string) => any) | undefined;
|
|
@@ -776,7 +790,9 @@ export { _default as RadioGroupRoot }
|
|
|
776
790
|
|
|
777
791
|
export { DialogClose }
|
|
778
792
|
|
|
779
|
-
export
|
|
793
|
+
export { DialogCloseProps }
|
|
794
|
+
|
|
795
|
+
export declare const DialogContent: __VLS_WithTemplateSlots_13<DefineComponent<DialogContentProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
780
796
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
781
797
|
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
782
798
|
focusOutside: (event: FocusOutsideEvent) => any;
|
|
@@ -809,15 +825,27 @@ export declare interface DialogContentProps extends DialogContentProps_2 {
|
|
|
809
825
|
closeIcon?: boolean;
|
|
810
826
|
}
|
|
811
827
|
|
|
812
|
-
export
|
|
828
|
+
export declare const DialogDescription: __VLS_WithTemplateSlots_12<DefineComponent<PrimitiveProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PrimitiveProps> & Readonly<{}>, {
|
|
829
|
+
as: AsTag | Component;
|
|
830
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
831
|
+
default?(_: {}): any;
|
|
832
|
+
}>;
|
|
813
833
|
|
|
814
834
|
export { DialogRoot }
|
|
815
835
|
|
|
816
|
-
export {
|
|
836
|
+
export { DialogRootProps }
|
|
837
|
+
|
|
838
|
+
export declare const DialogTitle: __VLS_WithTemplateSlots_11<DefineComponent<PrimitiveProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PrimitiveProps> & Readonly<{}>, {
|
|
839
|
+
as: AsTag | Component;
|
|
840
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
841
|
+
default?(_: {}): any;
|
|
842
|
+
}>;
|
|
817
843
|
|
|
818
844
|
export { DialogTrigger }
|
|
819
845
|
|
|
820
|
-
export
|
|
846
|
+
export { DialogTriggerProps }
|
|
847
|
+
|
|
848
|
+
export declare const DropdownMenuContent: __VLS_WithTemplateSlots_14<DefineComponent<DropdownMenuContentProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
821
849
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
822
850
|
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
823
851
|
focusOutside: (event: FocusOutsideEvent) => any;
|
|
@@ -849,7 +877,7 @@ export declare interface DropdownMenuContentProps extends DropdownMenuContentPro
|
|
|
849
877
|
highContrast?: boolean;
|
|
850
878
|
}
|
|
851
879
|
|
|
852
|
-
export declare const DropdownMenuItem:
|
|
880
|
+
export declare const DropdownMenuItem: __VLS_WithTemplateSlots_15<DefineComponent<DropdownMenuItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
853
881
|
select: (event: Event) => any;
|
|
854
882
|
}, string, PublicProps, Readonly<DropdownMenuItemProps> & Readonly<{
|
|
855
883
|
onSelect?: ((event: Event) => any) | undefined;
|
|
@@ -882,14 +910,14 @@ size: "1" | "2" | "3";
|
|
|
882
910
|
export declare interface EditableProps extends EditableRootProps {
|
|
883
911
|
/**
|
|
884
912
|
* Overrides the radius inherited from the theme.
|
|
885
|
-
* @
|
|
913
|
+
* @default "small"
|
|
886
914
|
*/
|
|
887
915
|
radius?: RadiusType;
|
|
888
916
|
/** Overrides the accent color inherited from the theme. */
|
|
889
917
|
color?: ColorType;
|
|
890
918
|
/**
|
|
891
919
|
* Control the size of the padding and radius.
|
|
892
|
-
* @
|
|
920
|
+
* @default "1"
|
|
893
921
|
*/
|
|
894
922
|
size?: '1' | '2' | '3';
|
|
895
923
|
}
|
|
@@ -914,6 +942,8 @@ export declare interface IconCircleProps {
|
|
|
914
942
|
icon: string;
|
|
915
943
|
}
|
|
916
944
|
|
|
945
|
+
export declare const injectThemeContext: <T extends ThemeProviderContext | null | undefined = ThemeProviderContext>(fallback?: T | undefined) => T extends null ? ThemeProviderContext | null : ThemeProviderContext;
|
|
946
|
+
|
|
917
947
|
export declare const Inset: __VLS_WithTemplateSlots_3<DefineComponent<InsetProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<InsetProps> & Readonly<{}>, {
|
|
918
948
|
side: InsetSide;
|
|
919
949
|
clip: "border-box" | "padding-box";
|
|
@@ -928,7 +958,7 @@ export declare interface InsetProps {
|
|
|
928
958
|
|
|
929
959
|
declare type InsetSide = 'all' | 'x' | 'y' | 'top' | 'bottom' | 'left' | 'right';
|
|
930
960
|
|
|
931
|
-
export declare const Pagination:
|
|
961
|
+
export declare const Pagination: __VLS_WithTemplateSlots_43<DefineComponent< {
|
|
932
962
|
page: number;
|
|
933
963
|
} & PaginationProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
934
964
|
"update:page": (value: number) => any;
|
|
@@ -983,7 +1013,7 @@ declare interface PlusMinusIconProps {
|
|
|
983
1013
|
|
|
984
1014
|
export { PopoverClose }
|
|
985
1015
|
|
|
986
|
-
export declare const PopoverContent:
|
|
1016
|
+
export declare const PopoverContent: __VLS_WithTemplateSlots_16<DefineComponent<PopoverContentProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
987
1017
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
988
1018
|
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
989
1019
|
focusOutside: (event: FocusOutsideEvent) => any;
|
|
@@ -1012,6 +1042,8 @@ export { PopoverRoot }
|
|
|
1012
1042
|
|
|
1013
1043
|
export { PopoverTrigger }
|
|
1014
1044
|
|
|
1045
|
+
export declare const provideThemeContext: (contextValue: ThemeProviderContext) => ThemeProviderContext;
|
|
1046
|
+
|
|
1015
1047
|
export declare const Quota: DefineComponent<QuotaProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<QuotaProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1016
1048
|
|
|
1017
1049
|
export declare interface QuotaProps {
|
|
@@ -1032,11 +1064,11 @@ size: "1" | "2" | "3";
|
|
|
1032
1064
|
variant: "surface" | "soft";
|
|
1033
1065
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLInputElement>;
|
|
1034
1066
|
|
|
1035
|
-
export declare const RadioCardsItem:
|
|
1067
|
+
export declare const RadioCardsItem: __VLS_WithTemplateSlots_34<DefineComponent<RadioGroupItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<RadioGroupItemProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
1036
1068
|
default?(_: {}): any;
|
|
1037
1069
|
}>;
|
|
1038
1070
|
|
|
1039
|
-
export declare const RadioGroupItem:
|
|
1071
|
+
export declare const RadioGroupItem: __VLS_WithTemplateSlots_33<DefineComponent<RadioGroupItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<RadioGroupItemProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLLabelElement>, {
|
|
1040
1072
|
default?(_: {}): any;
|
|
1041
1073
|
}>;
|
|
1042
1074
|
|
|
@@ -1059,7 +1091,7 @@ export declare interface RadioProps {
|
|
|
1059
1091
|
|
|
1060
1092
|
export { RadioTabsItem }
|
|
1061
1093
|
|
|
1062
|
-
export declare const RadioTabsList:
|
|
1094
|
+
export declare const RadioTabsList: __VLS_WithTemplateSlots_35<DefineComponent<RadioTabsListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1063
1095
|
"update:modelValue": (payload: string) => any;
|
|
1064
1096
|
}, string, PublicProps, Readonly<RadioTabsListProps> & Readonly<{
|
|
1065
1097
|
"onUpdate:modelValue"?: ((payload: string) => any) | undefined;
|
|
@@ -1101,7 +1133,7 @@ export declare interface ScrollAreaProps extends ScrollAreaRootProps {
|
|
|
1101
1133
|
scrollbars?: 'vertical' | 'horizontal' | 'both';
|
|
1102
1134
|
}
|
|
1103
1135
|
|
|
1104
|
-
export declare const SelectContent:
|
|
1136
|
+
export declare const SelectContent: __VLS_WithTemplateSlots_23<DefineComponent<SelectContentProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SelectContentProps> & Readonly<{}>, {
|
|
1105
1137
|
variant: "solid" | "soft";
|
|
1106
1138
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
1107
1139
|
default?(_: {}): any;
|
|
@@ -1114,19 +1146,19 @@ export declare interface SelectContentProps extends SelectContentProps_2 {
|
|
|
1114
1146
|
|
|
1115
1147
|
export { SelectGroup }
|
|
1116
1148
|
|
|
1117
|
-
export declare const SelectItem:
|
|
1149
|
+
export declare const SelectItem: __VLS_WithTemplateSlots_25<DefineComponent<SelectItemProps<AcceptableValue>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SelectItemProps<AcceptableValue>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
1118
1150
|
default?(_: {}): any;
|
|
1119
1151
|
}>;
|
|
1120
1152
|
|
|
1121
1153
|
export { SelectItemProps }
|
|
1122
1154
|
|
|
1123
|
-
export declare const SelectLabel:
|
|
1155
|
+
export declare const SelectLabel: __VLS_WithTemplateSlots_26<DefineComponent<SelectLabelProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SelectLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
1124
1156
|
default?(_: {}): any;
|
|
1125
1157
|
}>;
|
|
1126
1158
|
|
|
1127
1159
|
export { SelectLabelProps }
|
|
1128
1160
|
|
|
1129
|
-
export declare const SelectRoot:
|
|
1161
|
+
export declare const SelectRoot: __VLS_WithTemplateSlots_22<DefineComponent<SelectRootProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1130
1162
|
"update:modelValue": (value: AcceptableValue) => any;
|
|
1131
1163
|
"update:open": (value: boolean) => any;
|
|
1132
1164
|
}, string, PublicProps, Readonly<SelectRootProps> & Readonly<{
|
|
@@ -1146,7 +1178,7 @@ export declare interface SelectRootProps extends SelectRootProps_2 {
|
|
|
1146
1178
|
|
|
1147
1179
|
export declare const SelectSeparator: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
1148
1180
|
|
|
1149
|
-
export declare const SelectTrigger:
|
|
1181
|
+
export declare const SelectTrigger: __VLS_WithTemplateSlots_24<DefineComponent<SelectTriggerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SelectTriggerProps> & Readonly<{}>, {
|
|
1150
1182
|
variant: "surface" | "soft" | "ghost";
|
|
1151
1183
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
1152
1184
|
default?(_: {
|
|
@@ -1186,7 +1218,7 @@ export declare interface SocialButtonProps extends PrimitiveProps {
|
|
|
1186
1218
|
radius?: RadiusType;
|
|
1187
1219
|
/**
|
|
1188
1220
|
* Control the size of the social button.
|
|
1189
|
-
* @
|
|
1221
|
+
* @default "2"
|
|
1190
1222
|
*/
|
|
1191
1223
|
size?: '1' | '2' | '3' | '4';
|
|
1192
1224
|
disabled?: boolean;
|
|
@@ -1221,7 +1253,7 @@ export declare interface SwitchProps extends SwitchRootProps {
|
|
|
1221
1253
|
radius?: RadiusType;
|
|
1222
1254
|
}
|
|
1223
1255
|
|
|
1224
|
-
export declare const Table:
|
|
1256
|
+
export declare const Table: __VLS_WithTemplateSlots_44<DefineComponent<TableProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<TableProps> & Readonly<{}>, {
|
|
1225
1257
|
size: "1" | "2" | "3";
|
|
1226
1258
|
variant: "surface" | "ghost";
|
|
1227
1259
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>, {
|
|
@@ -1236,7 +1268,7 @@ export declare interface TableProps {
|
|
|
1236
1268
|
|
|
1237
1269
|
export { TabsContent }
|
|
1238
1270
|
|
|
1239
|
-
export declare const TabsList:
|
|
1271
|
+
export declare const TabsList: __VLS_WithTemplateSlots_36<DefineComponent<TabsListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<TabsListProps> & Readonly<{}>, {
|
|
1240
1272
|
size: "1" | "2";
|
|
1241
1273
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
1242
1274
|
default?(_: {}): any;
|
|
@@ -1250,7 +1282,7 @@ export declare interface TabsListProps {
|
|
|
1250
1282
|
|
|
1251
1283
|
export { TabsRoot }
|
|
1252
1284
|
|
|
1253
|
-
export declare const TabsTrigger:
|
|
1285
|
+
export declare const TabsTrigger: __VLS_WithTemplateSlots_37<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
|
|
1254
1286
|
|
|
1255
1287
|
export declare const TextArea: DefineComponent< {
|
|
1256
1288
|
modelValue?: string;
|
|
@@ -1274,7 +1306,7 @@ export declare interface TextAreaProps {
|
|
|
1274
1306
|
radius?: RadiusType;
|
|
1275
1307
|
}
|
|
1276
1308
|
|
|
1277
|
-
export declare const TextField:
|
|
1309
|
+
export declare const TextField: __VLS_WithTemplateSlots_21<DefineComponent< {
|
|
1278
1310
|
modelValue?: any;
|
|
1279
1311
|
} & TextFieldProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1280
1312
|
"update:modelValue": (value: any) => any;
|
|
@@ -1314,6 +1346,14 @@ as: AsTag | Component;
|
|
|
1314
1346
|
default?(_: {}): any;
|
|
1315
1347
|
}>;
|
|
1316
1348
|
|
|
1349
|
+
declare interface ThemeProviderContext {
|
|
1350
|
+
accentColor: Ref<ColorType>;
|
|
1351
|
+
radius: Ref<RadiusType>;
|
|
1352
|
+
grayColor: Ref<GrayColorType>;
|
|
1353
|
+
scaling: Ref<ScalingType>;
|
|
1354
|
+
hasBackground: Ref<boolean>;
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1317
1357
|
export declare interface ThemeProviderProps extends PrimitiveProps {
|
|
1318
1358
|
accentColor?: ColorType;
|
|
1319
1359
|
radius?: RadiusType;
|
|
@@ -1322,7 +1362,7 @@ export declare interface ThemeProviderProps extends PrimitiveProps {
|
|
|
1322
1362
|
hasBackground?: boolean;
|
|
1323
1363
|
}
|
|
1324
1364
|
|
|
1325
|
-
export declare const Toggle:
|
|
1365
|
+
export declare const Toggle: __VLS_WithTemplateSlots_18<DefineComponent<ToggleProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1326
1366
|
"update:modelValue": (value: boolean) => any;
|
|
1327
1367
|
}, string, PublicProps, Readonly<ToggleProps> & Readonly<{
|
|
1328
1368
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
@@ -1333,9 +1373,9 @@ variant: "solid" | "soft" | "ghost";
|
|
|
1333
1373
|
default?(_: {}): any;
|
|
1334
1374
|
}>;
|
|
1335
1375
|
|
|
1336
|
-
export declare const ToggleGroupItem:
|
|
1376
|
+
export declare const ToggleGroupItem: __VLS_WithTemplateSlots_20<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
1337
1377
|
|
|
1338
|
-
export declare const ToggleGroupRoot:
|
|
1378
|
+
export declare const ToggleGroupRoot: __VLS_WithTemplateSlots_19<DefineComponent<ToggleGroupRootProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1339
1379
|
"update:modelValue": (payload: AcceptableValue | AcceptableValue[]) => any;
|
|
1340
1380
|
}, string, PublicProps, Readonly<ToggleGroupRootProps> & Readonly<{
|
|
1341
1381
|
"onUpdate:modelValue"?: ((payload: AcceptableValue | AcceptableValue[]) => any) | undefined;
|
|
@@ -1362,7 +1402,7 @@ export declare interface ToggleProps extends ToggleProps_2 {
|
|
|
1362
1402
|
radius?: RadiusType;
|
|
1363
1403
|
}
|
|
1364
1404
|
|
|
1365
|
-
export declare const Tooltip:
|
|
1405
|
+
export declare const Tooltip: __VLS_WithTemplateSlots_45<DefineComponent<TooltipProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<TooltipProps> & Readonly<{}>, {
|
|
1366
1406
|
side: "top" | "bottom" | "left" | "right";
|
|
1367
1407
|
sideOffset: number;
|
|
1368
1408
|
avoidCollisions: boolean;
|
package/dist/components.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent, toRefs, createBlock, openBlock, unref, withCtx, createVNode, renderSlot, computed, normalizeClass, createTextVNode, toDisplayString, createElementBlock, mergeProps, createCommentVNode, createElementVNode, mergeModels, ref, useModel, onMounted, onBeforeUnmount, useTemplateRef, withDirectives, isRef, vModelDynamic, vModelText, normalizeStyle, normalizeProps, guardReactiveProps, Fragment, watch, renderList, withModifiers, vModelRadio } from "vue";
|
|
2
|
-
import { createContext, TooltipProvider, Primitive, useForwardProps, useEmitAsProps, AvatarRoot, AvatarImage, AvatarFallback, ScrollAreaRoot, ScrollAreaViewport, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaCorner, AlertDialogPortal, AlertDialogOverlay, AlertDialogContent, DialogPortal, DialogOverlay, DialogContent, DialogClose,
|
|
3
|
-
import { AlertDialogAction, AlertDialogCancel, AlertDialogDescription, AlertDialogRoot, AlertDialogTitle, AlertDialogTrigger, CollapsibleRoot, CollapsibleTrigger, ComboboxEmpty, ComboboxGroup, DialogClose as DialogClose2,
|
|
2
|
+
import { createContext, TooltipProvider, Primitive, useForwardProps, useEmitAsProps, AvatarRoot, AvatarImage, AvatarFallback, ScrollAreaRoot, ScrollAreaViewport, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaCorner, AlertDialogPortal, AlertDialogOverlay, AlertDialogContent, injectDialogRootContext, useForwardExpose, DialogPortal, DialogOverlay, DialogContent, DialogClose, DropdownMenuPortal, DropdownMenuContent, DropdownMenuItem, PopoverPortal, PopoverContent, SwitchRoot, SwitchThumb, CheckboxRoot, CheckboxIndicator, Toggle, ToggleGroupRoot, ToggleGroupItem, SelectRoot, SelectPortal, SelectContent, SelectViewport, SelectTrigger, SelectValue, SelectIcon, SelectItem, SelectItemIndicator, SelectItemText, SelectLabel, ComboboxRoot, injectComboboxRootContext as injectComboboxRootContext$1, useForwardPropsEmits as useForwardPropsEmits$1, ComboboxAnchor, ComboboxInput, ComboboxTrigger, ComboboxPortal, ComboboxContent, ComboboxViewport, ComboboxItem, ComboboxItemIndicator, ComboboxLabel, RadioGroupRoot, RadioGroupItem, TabsList, TabsIndicator, TabsTrigger, EditableRoot, EditableArea, EditablePreview, EditableInput, AccordionRoot, AccordionItem, AccordionContent, AccordionTrigger, CollapsibleContent, TooltipRoot, TooltipTrigger, TooltipPortal, TooltipContent, TooltipArrow, ProgressRoot, ProgressIndicator } from "reka-ui";
|
|
3
|
+
import { AlertDialogAction, AlertDialogCancel, AlertDialogDescription, AlertDialogRoot, AlertDialogTitle, AlertDialogTrigger, CollapsibleRoot, CollapsibleTrigger, ComboboxEmpty, ComboboxGroup, DialogClose as DialogClose2, DialogRoot, DialogTrigger, DropdownMenuRoot, DropdownMenuTrigger, PopoverClose, PopoverRoot, PopoverTrigger, RadioGroupItem as RadioGroupItem2, SelectGroup, TabsContent, TabsRoot } from "reka-ui";
|
|
4
4
|
import { Icon } from "@iconify/vue";
|
|
5
5
|
import { Icon as Icon2 } from "@iconify/vue";
|
|
6
6
|
const [injectThemeContext, provideThemeContext] = createContext("ThemeProvider");
|
|
7
|
-
const _sfc_main$
|
|
7
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
8
8
|
__name: "ThemeProvider",
|
|
9
9
|
props: {
|
|
10
10
|
accentColor: { default: "indigo" },
|
|
@@ -106,7 +106,7 @@ function kebabize(str) {
|
|
|
106
106
|
function _kebabReplace(str, ofs) {
|
|
107
107
|
return (ofs ? "-" : "") + str.toLowerCase();
|
|
108
108
|
}
|
|
109
|
-
const _sfc_main$
|
|
109
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
110
110
|
__name: "Avatar",
|
|
111
111
|
props: {
|
|
112
112
|
alt: {},
|
|
@@ -158,7 +158,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
158
158
|
};
|
|
159
159
|
}
|
|
160
160
|
});
|
|
161
|
-
const _sfc_main$
|
|
161
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
162
162
|
__name: "Badge",
|
|
163
163
|
props: {
|
|
164
164
|
variant: { default: "soft" },
|
|
@@ -190,7 +190,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
190
190
|
};
|
|
191
191
|
}
|
|
192
192
|
});
|
|
193
|
-
const _sfc_main$
|
|
193
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
194
194
|
__name: "Inset",
|
|
195
195
|
props: {
|
|
196
196
|
side: { default: "all" },
|
|
@@ -214,7 +214,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
214
214
|
};
|
|
215
215
|
}
|
|
216
216
|
});
|
|
217
|
-
const _sfc_main$
|
|
217
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
218
218
|
__name: "Card",
|
|
219
219
|
props: {
|
|
220
220
|
variant: { default: "surface" },
|
|
@@ -243,7 +243,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
243
243
|
};
|
|
244
244
|
}
|
|
245
245
|
});
|
|
246
|
-
const _sfc_main$
|
|
246
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
247
247
|
__name: "CardHead",
|
|
248
248
|
props: {
|
|
249
249
|
color: {},
|
|
@@ -266,7 +266,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
266
266
|
};
|
|
267
267
|
}
|
|
268
268
|
});
|
|
269
|
-
const _sfc_main$
|
|
269
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
270
270
|
__name: "Button",
|
|
271
271
|
props: {
|
|
272
272
|
variant: { default: "solid" },
|
|
@@ -290,17 +290,18 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
290
290
|
as: props.as,
|
|
291
291
|
"data-accent-color": props.color,
|
|
292
292
|
"data-radius": props.radius,
|
|
293
|
-
"data-disabled": props.disabled ? true : void 0
|
|
293
|
+
"data-disabled": props.disabled ? true : void 0,
|
|
294
|
+
disabled: props.disabled && props.as === "button" ? true : void 0
|
|
294
295
|
}, {
|
|
295
296
|
default: withCtx(() => [
|
|
296
297
|
renderSlot(_ctx.$slots, "default")
|
|
297
298
|
]),
|
|
298
299
|
_: 3
|
|
299
|
-
}, 8, ["class", "as-child", "as", "data-accent-color", "data-radius", "data-disabled"]);
|
|
300
|
+
}, 8, ["class", "as-child", "as", "data-accent-color", "data-radius", "data-disabled", "disabled"]);
|
|
300
301
|
};
|
|
301
302
|
}
|
|
302
303
|
});
|
|
303
|
-
const _sfc_main$
|
|
304
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
304
305
|
__name: "IconButton",
|
|
305
306
|
props: {
|
|
306
307
|
variant: {},
|
|
@@ -316,7 +317,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
316
317
|
const props = __props;
|
|
317
318
|
const forwarded = useForwardProps(props);
|
|
318
319
|
return (_ctx, _cache) => {
|
|
319
|
-
return openBlock(), createBlock(_sfc_main$
|
|
320
|
+
return openBlock(), createBlock(_sfc_main$U, mergeProps({ class: "ui-IconButton" }, unref(forwarded)), {
|
|
320
321
|
default: withCtx(() => [
|
|
321
322
|
renderSlot(_ctx.$slots, "default")
|
|
322
323
|
]),
|
|
@@ -334,7 +335,7 @@ const BRAND_ICONS = {
|
|
|
334
335
|
slack: "logos:slack-icon",
|
|
335
336
|
figma: "logos:figma"
|
|
336
337
|
};
|
|
337
|
-
const _sfc_main$
|
|
338
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
338
339
|
__name: "SocialButton",
|
|
339
340
|
props: {
|
|
340
341
|
brand: {},
|
|
@@ -372,7 +373,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
372
373
|
};
|
|
373
374
|
}
|
|
374
375
|
});
|
|
375
|
-
const _sfc_main$
|
|
376
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
376
377
|
__name: "ScrollArea",
|
|
377
378
|
props: {
|
|
378
379
|
size: { default: "1" },
|
|
@@ -436,7 +437,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
436
437
|
};
|
|
437
438
|
}
|
|
438
439
|
});
|
|
439
|
-
const _sfc_main$
|
|
440
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
440
441
|
__name: "ThemeWrapper",
|
|
441
442
|
props: {
|
|
442
443
|
accentColor: {},
|
|
@@ -452,20 +453,19 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
452
453
|
"data-gray-color": unref(theme).grayColor.value,
|
|
453
454
|
"data-radius": props.radius || unref(theme).radius.value,
|
|
454
455
|
"data-scaling": unref(theme).scaling.value,
|
|
455
|
-
"data-has-background": unref(theme).hasBackground.value,
|
|
456
456
|
"as-child": ""
|
|
457
457
|
}, {
|
|
458
458
|
default: withCtx(() => [
|
|
459
459
|
renderSlot(_ctx.$slots, "default")
|
|
460
460
|
]),
|
|
461
461
|
_: 3
|
|
462
|
-
}, 8, ["data-accent-color", "data-gray-color", "data-radius", "data-scaling"
|
|
462
|
+
}, 8, ["data-accent-color", "data-gray-color", "data-radius", "data-scaling"]);
|
|
463
463
|
};
|
|
464
464
|
}
|
|
465
465
|
});
|
|
466
466
|
const _hoisted_1$j = { class: "ui-DialogWrapper" };
|
|
467
467
|
const _hoisted_2$7 = { class: "ui-DialogContainer" };
|
|
468
|
-
const _sfc_main$
|
|
468
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
469
469
|
...{
|
|
470
470
|
inheritAttrs: false
|
|
471
471
|
},
|
|
@@ -505,7 +505,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
505
505
|
to: props.to
|
|
506
506
|
}, {
|
|
507
507
|
default: withCtx(() => [
|
|
508
|
-
createVNode(_sfc_main$
|
|
508
|
+
createVNode(_sfc_main$Q, null, {
|
|
509
509
|
default: withCtx(() => [
|
|
510
510
|
createVNode(unref(AlertDialogOverlay), { class: "ui-DialogOverlay" }, {
|
|
511
511
|
default: withCtx(() => [
|
|
@@ -545,6 +545,52 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
545
545
|
};
|
|
546
546
|
}
|
|
547
547
|
});
|
|
548
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
549
|
+
__name: "DialogTitle",
|
|
550
|
+
props: {
|
|
551
|
+
asChild: { type: Boolean },
|
|
552
|
+
as: { default: "h2" }
|
|
553
|
+
},
|
|
554
|
+
setup(__props) {
|
|
555
|
+
const props = __props;
|
|
556
|
+
const rootContext = injectDialogRootContext();
|
|
557
|
+
useForwardExpose();
|
|
558
|
+
return (_ctx, _cache) => {
|
|
559
|
+
return openBlock(), createBlock(unref(Primitive), mergeProps(props, {
|
|
560
|
+
id: unref(rootContext).titleId,
|
|
561
|
+
class: "ui-DialogTitle"
|
|
562
|
+
}), {
|
|
563
|
+
default: withCtx(() => [
|
|
564
|
+
renderSlot(_ctx.$slots, "default")
|
|
565
|
+
]),
|
|
566
|
+
_: 3
|
|
567
|
+
}, 16, ["id"]);
|
|
568
|
+
};
|
|
569
|
+
}
|
|
570
|
+
});
|
|
571
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
572
|
+
__name: "DialogDescription",
|
|
573
|
+
props: {
|
|
574
|
+
asChild: { type: Boolean },
|
|
575
|
+
as: { default: "p" }
|
|
576
|
+
},
|
|
577
|
+
setup(__props) {
|
|
578
|
+
const props = __props;
|
|
579
|
+
useForwardExpose();
|
|
580
|
+
const rootContext = injectDialogRootContext();
|
|
581
|
+
return (_ctx, _cache) => {
|
|
582
|
+
return openBlock(), createBlock(unref(Primitive), mergeProps(props, {
|
|
583
|
+
id: unref(rootContext).descriptionId,
|
|
584
|
+
class: "ui-DialogDescription"
|
|
585
|
+
}), {
|
|
586
|
+
default: withCtx(() => [
|
|
587
|
+
renderSlot(_ctx.$slots, "default")
|
|
588
|
+
]),
|
|
589
|
+
_: 3
|
|
590
|
+
}, 16, ["id"]);
|
|
591
|
+
};
|
|
592
|
+
}
|
|
593
|
+
});
|
|
548
594
|
const _hoisted_1$i = { class: "ui-DialogWrapper" };
|
|
549
595
|
const _hoisted_2$6 = { class: "ui-DialogContainer" };
|
|
550
596
|
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
@@ -589,7 +635,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
589
635
|
to: props.to
|
|
590
636
|
}, {
|
|
591
637
|
default: withCtx(() => [
|
|
592
|
-
createVNode(_sfc_main$
|
|
638
|
+
createVNode(_sfc_main$Q, null, {
|
|
593
639
|
default: withCtx(() => [
|
|
594
640
|
createVNode(unref(DialogOverlay), { class: "ui-DialogOverlay" }, {
|
|
595
641
|
default: withCtx(() => [
|
|
@@ -611,7 +657,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
611
657
|
}
|
|
612
658
|
}), {
|
|
613
659
|
default: withCtx(() => [
|
|
614
|
-
props.closeIcon ? (openBlock(), createBlock(_sfc_main$
|
|
660
|
+
props.closeIcon ? (openBlock(), createBlock(_sfc_main$T, {
|
|
615
661
|
key: 0,
|
|
616
662
|
class: "ui-DialogContentClose",
|
|
617
663
|
as: unref(DialogClose),
|
|
@@ -695,7 +741,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
695
741
|
to: props.to
|
|
696
742
|
}, {
|
|
697
743
|
default: withCtx(() => [
|
|
698
|
-
createVNode(_sfc_main$
|
|
744
|
+
createVNode(_sfc_main$Q, {
|
|
699
745
|
"accent-color": props.color
|
|
700
746
|
}, {
|
|
701
747
|
default: withCtx(() => [
|
|
@@ -707,7 +753,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
707
753
|
class: ["ui-PopperContent ui-MenuContent", `r-size-${props.size}`]
|
|
708
754
|
}), {
|
|
709
755
|
default: withCtx(() => [
|
|
710
|
-
createVNode(_sfc_main$
|
|
756
|
+
createVNode(_sfc_main$R, { type: "auto" }, {
|
|
711
757
|
default: withCtx(() => [
|
|
712
758
|
createElementVNode("div", _hoisted_1$h, [
|
|
713
759
|
renderSlot(_ctx.$slots, "default")
|
|
@@ -804,7 +850,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
804
850
|
to: props.to
|
|
805
851
|
}, {
|
|
806
852
|
default: withCtx(() => [
|
|
807
|
-
createVNode(_sfc_main$
|
|
853
|
+
createVNode(_sfc_main$Q, null, {
|
|
808
854
|
default: withCtx(() => [
|
|
809
855
|
createVNode(unref(PopoverContent), mergeProps({ ..._ctx.$attrs, ...unref(forwarded) }, {
|
|
810
856
|
class: ["ui-PopoverContent", `r-size-${props.size}`]
|
|
@@ -1491,7 +1537,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
1491
1537
|
to: props.to
|
|
1492
1538
|
}, {
|
|
1493
1539
|
default: withCtx(() => [
|
|
1494
|
-
createVNode(_sfc_main$
|
|
1540
|
+
createVNode(_sfc_main$Q, {
|
|
1495
1541
|
"accent-color": unref(context).color.value
|
|
1496
1542
|
}, {
|
|
1497
1543
|
default: withCtx(() => [
|
|
@@ -1894,7 +1940,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
1894
1940
|
to: props.to
|
|
1895
1941
|
}, {
|
|
1896
1942
|
default: withCtx(() => [
|
|
1897
|
-
createVNode(_sfc_main$
|
|
1943
|
+
createVNode(_sfc_main$Q, {
|
|
1898
1944
|
"accent-color": unref(context).color.value
|
|
1899
1945
|
}, {
|
|
1900
1946
|
default: withCtx(() => [
|
|
@@ -2144,7 +2190,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
2144
2190
|
"data-high-contrast": unref(rootContext).highContrast?.value
|
|
2145
2191
|
}, { ...unref(forwarded), asChild: false }), {
|
|
2146
2192
|
default: withCtx(() => [
|
|
2147
|
-
createVNode(_sfc_main$
|
|
2193
|
+
createVNode(_sfc_main$W, {
|
|
2148
2194
|
"as-child": unref(forwarded).asChild
|
|
2149
2195
|
}, {
|
|
2150
2196
|
default: withCtx(() => [
|
|
@@ -2543,7 +2589,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2543
2589
|
return openBlock(), createElementBlock("div", {
|
|
2544
2590
|
class: normalizeClass(["ui-Pagination", resetClass.value])
|
|
2545
2591
|
}, [
|
|
2546
|
-
pagination.value.prev ? (openBlock(), createBlock(_sfc_main$
|
|
2592
|
+
pagination.value.prev ? (openBlock(), createBlock(_sfc_main$T, mergeProps({ key: 0 }, buttonProps.value, {
|
|
2547
2593
|
"aria-label": "Previous",
|
|
2548
2594
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => selectPage(pagination.value.prev), ["prevent"]))
|
|
2549
2595
|
}), {
|
|
@@ -2556,7 +2602,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2556
2602
|
]),
|
|
2557
2603
|
_: 3
|
|
2558
2604
|
}, 16)) : createCommentVNode("", true),
|
|
2559
|
-
createVNode(_sfc_main$
|
|
2605
|
+
createVNode(_sfc_main$U, mergeProps(buttonProps.value, {
|
|
2560
2606
|
disabled: page.value === 1,
|
|
2561
2607
|
"aria-current": "page",
|
|
2562
2608
|
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => selectPage(1), ["prevent"]))
|
|
@@ -2568,7 +2614,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2568
2614
|
]),
|
|
2569
2615
|
_: 3
|
|
2570
2616
|
}, 16, ["disabled"]),
|
|
2571
|
-
pagination.value.hasLeftEdge ? (openBlock(), createBlock(_sfc_main$
|
|
2617
|
+
pagination.value.hasLeftEdge ? (openBlock(), createBlock(_sfc_main$T, mergeProps({ key: 1 }, buttonProps.value, {
|
|
2572
2618
|
onClick: withModifiers(selectLeft, ["prevent"])
|
|
2573
2619
|
}), {
|
|
2574
2620
|
default: withCtx(() => [
|
|
@@ -2581,7 +2627,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2581
2627
|
_: 3
|
|
2582
2628
|
}, 16)) : createCommentVNode("", true),
|
|
2583
2629
|
(openBlock(true), createElementBlock(Fragment, null, renderList(pagination.value.pageList, (p) => {
|
|
2584
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2630
|
+
return openBlock(), createBlock(_sfc_main$U, mergeProps({ key: p }, { ref_for: true }, buttonProps.value, {
|
|
2585
2631
|
disabled: p === page.value,
|
|
2586
2632
|
"aria-current": "page",
|
|
2587
2633
|
onClick: withModifiers(($event) => selectPage(p), ["prevent"])
|
|
@@ -2594,7 +2640,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2594
2640
|
_: 2
|
|
2595
2641
|
}, 1040, ["disabled", "onClick"]);
|
|
2596
2642
|
}), 128)),
|
|
2597
|
-
pagination.value.hasRightEdge ? (openBlock(), createBlock(_sfc_main$
|
|
2643
|
+
pagination.value.hasRightEdge ? (openBlock(), createBlock(_sfc_main$T, mergeProps({ key: 2 }, buttonProps.value, {
|
|
2598
2644
|
onClick: withModifiers(selectRight, ["prevent"])
|
|
2599
2645
|
}), {
|
|
2600
2646
|
default: withCtx(() => [
|
|
@@ -2606,7 +2652,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2606
2652
|
]),
|
|
2607
2653
|
_: 3
|
|
2608
2654
|
}, 16)) : createCommentVNode("", true),
|
|
2609
|
-
pagination.value.totalPages > 1 ? (openBlock(), createBlock(_sfc_main$
|
|
2655
|
+
pagination.value.totalPages > 1 ? (openBlock(), createBlock(_sfc_main$U, mergeProps({ key: 3 }, buttonProps.value, {
|
|
2610
2656
|
disabled: pagination.value.totalPages === page.value,
|
|
2611
2657
|
"aria-current": "page",
|
|
2612
2658
|
onClick: _cache[2] || (_cache[2] = withModifiers(($event) => selectPage(pagination.value.totalPages), ["prevent"]))
|
|
@@ -2620,7 +2666,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2620
2666
|
]),
|
|
2621
2667
|
_: 3
|
|
2622
2668
|
}, 16, ["disabled"])) : createCommentVNode("", true),
|
|
2623
|
-
pagination.value.next ? (openBlock(), createBlock(_sfc_main$
|
|
2669
|
+
pagination.value.next ? (openBlock(), createBlock(_sfc_main$T, mergeProps({ key: 4 }, buttonProps.value, {
|
|
2624
2670
|
"aria-label": "Next",
|
|
2625
2671
|
onClick: _cache[3] || (_cache[3] = withModifiers(($event) => selectPage(pagination.value.next), ["prevent"]))
|
|
2626
2672
|
}), {
|
|
@@ -2654,7 +2700,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2654
2700
|
"data-size": props.size,
|
|
2655
2701
|
"data-variant": props.variant
|
|
2656
2702
|
}, [
|
|
2657
|
-
createVNode(_sfc_main$
|
|
2703
|
+
createVNode(_sfc_main$R, null, {
|
|
2658
2704
|
default: withCtx(() => [
|
|
2659
2705
|
createElementVNode("table", {
|
|
2660
2706
|
class: "ui-TableContent",
|
|
@@ -2734,7 +2780,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
2734
2780
|
to: props.to
|
|
2735
2781
|
}, {
|
|
2736
2782
|
default: withCtx(() => [
|
|
2737
|
-
createVNode(_sfc_main$
|
|
2783
|
+
createVNode(_sfc_main$Q, null, {
|
|
2738
2784
|
default: withCtx(() => [
|
|
2739
2785
|
createVNode(unref(TooltipContent), {
|
|
2740
2786
|
class: "ui-Tooltip",
|
|
@@ -2899,16 +2945,16 @@ export {
|
|
|
2899
2945
|
_sfc_main$9 as AccordionTrigger,
|
|
2900
2946
|
AlertDialogAction,
|
|
2901
2947
|
AlertDialogCancel,
|
|
2902
|
-
_sfc_main$
|
|
2948
|
+
_sfc_main$P as AlertDialogContent,
|
|
2903
2949
|
AlertDialogDescription,
|
|
2904
2950
|
AlertDialogRoot,
|
|
2905
2951
|
AlertDialogTitle,
|
|
2906
2952
|
AlertDialogTrigger,
|
|
2907
|
-
_sfc_main$
|
|
2908
|
-
_sfc_main$
|
|
2909
|
-
_sfc_main$
|
|
2910
|
-
_sfc_main$
|
|
2911
|
-
_sfc_main$
|
|
2953
|
+
_sfc_main$Z as Avatar,
|
|
2954
|
+
_sfc_main$Y as Badge,
|
|
2955
|
+
_sfc_main$U as Button,
|
|
2956
|
+
_sfc_main$W as Card,
|
|
2957
|
+
_sfc_main$V as CardHead,
|
|
2912
2958
|
_sfc_main$H as Checkbox,
|
|
2913
2959
|
_sfc_main$E as CheckboxGroupControl,
|
|
2914
2960
|
_sfc_main$F as CheckboxGroupItem,
|
|
@@ -2927,9 +2973,9 @@ export {
|
|
|
2927
2973
|
_sfc_main$r as ComboboxRoot,
|
|
2928
2974
|
DialogClose2 as DialogClose,
|
|
2929
2975
|
_sfc_main$M as DialogContent,
|
|
2930
|
-
DialogDescription,
|
|
2976
|
+
_sfc_main$N as DialogDescription,
|
|
2931
2977
|
DialogRoot,
|
|
2932
|
-
DialogTitle,
|
|
2978
|
+
_sfc_main$O as DialogTitle,
|
|
2933
2979
|
DialogTrigger,
|
|
2934
2980
|
_sfc_main$L as DropdownMenuContent,
|
|
2935
2981
|
_sfc_main$K as DropdownMenuItem,
|
|
@@ -2937,9 +2983,9 @@ export {
|
|
|
2937
2983
|
DropdownMenuTrigger,
|
|
2938
2984
|
_sfc_main$f as Editable,
|
|
2939
2985
|
Icon2 as Icon,
|
|
2940
|
-
_sfc_main$
|
|
2986
|
+
_sfc_main$T as IconButton,
|
|
2941
2987
|
_sfc_main as IconCircle,
|
|
2942
|
-
_sfc_main$
|
|
2988
|
+
_sfc_main$X as Inset,
|
|
2943
2989
|
_sfc_main$7 as Pagination,
|
|
2944
2990
|
_sfc_main$b as PlusMinusIcon,
|
|
2945
2991
|
PopoverClose,
|
|
@@ -2955,7 +3001,7 @@ export {
|
|
|
2955
3001
|
RadioGroupItem2 as RadioTabsItem,
|
|
2956
3002
|
_sfc_main$i as RadioTabsList,
|
|
2957
3003
|
_sfc_main$1 as SavingIndicator,
|
|
2958
|
-
_sfc_main$
|
|
3004
|
+
_sfc_main$R as ScrollArea,
|
|
2959
3005
|
_sfc_main$w as SelectContent,
|
|
2960
3006
|
SelectGroup,
|
|
2961
3007
|
_sfc_main$u as SelectItem,
|
|
@@ -2964,7 +3010,7 @@ export {
|
|
|
2964
3010
|
SelectSeparator,
|
|
2965
3011
|
_sfc_main$v as SelectTrigger,
|
|
2966
3012
|
_sfc_main$5 as Separator,
|
|
2967
|
-
_sfc_main$
|
|
3013
|
+
_sfc_main$S as SocialButton,
|
|
2968
3014
|
_sfc_main$2 as Spinner,
|
|
2969
3015
|
_sfc_main$I as Switch,
|
|
2970
3016
|
_sfc_main$6 as Table,
|
|
@@ -2974,9 +3020,11 @@ export {
|
|
|
2974
3020
|
_sfc_main$g as TabsTrigger,
|
|
2975
3021
|
_sfc_main$z as TextArea,
|
|
2976
3022
|
_sfc_main$A as TextField,
|
|
2977
|
-
_sfc_main$
|
|
3023
|
+
_sfc_main$_ as ThemeProvider,
|
|
2978
3024
|
_sfc_main$D as Toggle,
|
|
2979
3025
|
_sfc_main$B as ToggleGroupItem,
|
|
2980
3026
|
_sfc_main$C as ToggleGroupRoot,
|
|
2981
|
-
_sfc_main$4 as Tooltip
|
|
3027
|
+
_sfc_main$4 as Tooltip,
|
|
3028
|
+
injectThemeContext,
|
|
3029
|
+
provideThemeContext
|
|
2982
3030
|
};
|