@fileverse/ui 5.1.8-dropdownmenu-3 → 5.1.8-dropdownmenu-6
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/index.css +99 -4
- package/dist/index.es.d.ts +173 -0
- package/dist/index.es.js +13399 -12483
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -541,6 +541,7 @@ video {
|
|
|
541
541
|
--color-bg-tertiary: 195, 10%, 92%, 1; /* Tertiary */
|
|
542
542
|
--color-bg-success: 126, 73%, 39%, 1;
|
|
543
543
|
--color-bg-success-light: 124, 79%, 93%, 1; /* Green-100 */
|
|
544
|
+
--color-bg-info-light: 248, 100%, 97%, 1;
|
|
544
545
|
|
|
545
546
|
/* Border */
|
|
546
547
|
--color-border-default: 195, 10%, 92%, 1; /* Gray-200 */
|
|
@@ -571,7 +572,12 @@ video {
|
|
|
571
572
|
--color-bg-tooltip: 0, 0%, 0%, 1; /* Black */
|
|
572
573
|
--color-text-tooltip: 0, 0%, 100%, 1; /* White */
|
|
573
574
|
|
|
575
|
+
/* Inline Comment */
|
|
576
|
+
--color-inline-comment: 124, 79%, 93%, 1; /* #DDFBDF */
|
|
577
|
+
--color-inline-comment-active: 126, 74%, 73%, 1; /* #88ED92 */
|
|
578
|
+
|
|
574
579
|
/* Utility */
|
|
580
|
+
--color-bg-transparent: 0, 0%, 0%, 0.04; /* Black 4% */
|
|
575
581
|
--color-utility-overlay: 0, 0%, 0%, 0.72; /* Black 72% */
|
|
576
582
|
|
|
577
583
|
/* Elevation */
|
|
@@ -616,10 +622,11 @@ video {
|
|
|
616
622
|
--color-bg-brand-light: 57, 92%, 76%, 1; /* Yellow-100 */
|
|
617
623
|
--color-bg-danger: 354, 84%, 42%, 1; /* Red-200 */
|
|
618
624
|
--color-bg-danger-light: 356, 100%, 97%, 1; /* Red-50 */
|
|
619
|
-
--color-bg-default-inverse: 0, 0%,
|
|
625
|
+
--color-bg-default-inverse: 0, 0%, 0%, 1; /* White */
|
|
620
626
|
--color-bg-tertiary: 0, 0%, 25%, 1; /* Gray-800 */
|
|
621
627
|
--color-bg-success: 128, 59%, 20%, 1;
|
|
622
628
|
--color-bg-success-light: 128, 59%, 20%, 1; /* Green-900 */
|
|
629
|
+
--color-bg-info-light: 254, 100%, 73%, 0.16;
|
|
623
630
|
|
|
624
631
|
/* Border */
|
|
625
632
|
--color-border-default: 0, 0%, 25%, 1; /* Gray-800 */
|
|
@@ -650,7 +657,12 @@ video {
|
|
|
650
657
|
--color-bg-tooltip: 0, 0%, 100%, 1; /* White */
|
|
651
658
|
--color-text-tooltip: 0, 0%, 0%, 1; /* Black */
|
|
652
659
|
|
|
660
|
+
/* Inline Comment */
|
|
661
|
+
--color-inline-comment: 128, 59%, 20%, 1; /* #15521D */
|
|
662
|
+
--color-inline-comment-active: 127, 69%, 29%, 1; /* #177E23 */
|
|
663
|
+
|
|
653
664
|
/* Utility */
|
|
665
|
+
--color-bg-transparent: 0, 0%, 100%, 0.04; /* White 4% */
|
|
654
666
|
--color-utility-overlay: 0, 0%, 0%, 0.72; /* Black 72% */
|
|
655
667
|
}
|
|
656
668
|
|
|
@@ -693,6 +705,7 @@ video {
|
|
|
693
705
|
--color-bg-tertiary: 44, 32%, 86%, 1; /* #E7E1D0 */
|
|
694
706
|
--color-bg-success: 77, 23%, 35%, 1; /* #616C44 */
|
|
695
707
|
--color-bg-success-light: 76, 23%, 64%, 1; /* #ADB88E */
|
|
708
|
+
--color-bg-info-light: 199, 45%, 87%, 1;
|
|
696
709
|
|
|
697
710
|
/* Border */
|
|
698
711
|
--color-border-default: 41, 49%, 76%, 1; /* #E0CDA4 */
|
|
@@ -723,7 +736,12 @@ video {
|
|
|
723
736
|
--color-bg-tooltip: 28, 16%, 21%, 1; /* #3E352D */
|
|
724
737
|
--color-text-tooltip: 41, 61%, 84%, 1; /* #EFDFBD */
|
|
725
738
|
|
|
739
|
+
/* Inline Comment */
|
|
740
|
+
--color-inline-comment: 76, 23%, 72%, 1; /* #BFC8A7 */
|
|
741
|
+
--color-inline-comment-active: 75, 23%, 62%, 1; /* #A9B488 */
|
|
742
|
+
|
|
726
743
|
/* Utility */
|
|
744
|
+
--color-bg-transparent: 28, 16%, 21%, 0.04; /* #3E352D 4% */
|
|
727
745
|
--color-utility-overlay: 0, 0%, 0%, 0.72; /* Black 72% */
|
|
728
746
|
}
|
|
729
747
|
|
|
@@ -754,7 +772,7 @@ video {
|
|
|
754
772
|
--color-bg-default-hover: 3, 88%, 26%, 0.08; /* #7C0E08 8% */
|
|
755
773
|
--color-bg-default-active: 45, 100%, 65%, 1; /* #FFD24D */
|
|
756
774
|
--color-bg-default-selected: 3, 88%, 26%, 0.06; /* #7C0E08 6% */
|
|
757
|
-
--color-bg-secondary:
|
|
775
|
+
--color-bg-secondary: 346, 100%, 92%, 1; /* #FFD6E0 */
|
|
758
776
|
--color-bg-secondary-hover: 3, 88%, 26%, 0.12; /* #7C0E08 12% */
|
|
759
777
|
--color-bg-disabled: 24, 16%, 21%, 0.04; /* #3E352D 4% */
|
|
760
778
|
--color-bg-brand: 45, 100%, 65%, 1; /* #FFD24D */
|
|
@@ -762,10 +780,11 @@ video {
|
|
|
762
780
|
--color-bg-brand-light: 45, 100%, 90%, 1; /* #FFF2CC */
|
|
763
781
|
--color-bg-danger: 2, 79%, 56%, 1; /* #E73D36 */
|
|
764
782
|
--color-bg-danger-light: 2, 79%, 56%, 0.14; /* #E73D36 14% */
|
|
765
|
-
--color-bg-default-inverse:
|
|
783
|
+
--color-bg-default-inverse: 3, 88%, 26%, 1;
|
|
766
784
|
--color-bg-tertiary: 3, 88%, 26%, 0.12; /* #7C0E08 12% */
|
|
767
785
|
--color-bg-success: 139, 35%, 42%, 1; /* #46905E */
|
|
768
786
|
--color-bg-success-light: 140, 34%, 88%, 1; /* #D6EBDD */
|
|
787
|
+
--color-bg-info-light: 209, 89%, 88%, 1;
|
|
769
788
|
|
|
770
789
|
/* Border */
|
|
771
790
|
--color-border-default: 346, 100%, 90%, 1; /* #FFCCD8 */
|
|
@@ -796,7 +815,12 @@ video {
|
|
|
796
815
|
--color-bg-tooltip: 3, 88%, 26%, 1; /* #7C0E08 */
|
|
797
816
|
--color-text-tooltip: 346, 100%, 95%, 1; /* #FFE6EC */
|
|
798
817
|
|
|
818
|
+
/* Inline Comment */
|
|
819
|
+
--color-inline-comment: 139, 35%, 86%, 1; /* #CFE8D7 */
|
|
820
|
+
--color-inline-comment-active: 139, 36%, 78%, 1; /* #B3DBC0 */
|
|
821
|
+
|
|
799
822
|
/* Utility */
|
|
823
|
+
--color-bg-transparent: 3, 88%, 26%, 0.04; /* #7C0E08 4% */
|
|
800
824
|
--color-utility-overlay: 0, 0%, 0%, 0.72; /* Black 72% */
|
|
801
825
|
}
|
|
802
826
|
|
|
@@ -813,7 +837,7 @@ video {
|
|
|
813
837
|
--color-button-floating-hover: 63, 15%, 74%, 0.06; /* #C6C7B3 6% */
|
|
814
838
|
|
|
815
839
|
/* Text */
|
|
816
|
-
--color-text-default:
|
|
840
|
+
--color-text-default: 63, 27%, 83%, 1; /* #DFE0C9 */
|
|
817
841
|
--color-text-secondary: 84, 5%, 56%, 1; /* #909688 */
|
|
818
842
|
--color-text-disabled: 104, 7%, 42%, 1; /* #687364 */
|
|
819
843
|
--color-text-danger: 2, 99%, 68%, 1; /* #FE625D */
|
|
@@ -839,6 +863,7 @@ video {
|
|
|
839
863
|
--color-bg-tertiary: 63, 15%, 74%, 0.12; /* #C6C7B3 12% */
|
|
840
864
|
--color-bg-success: 120, 46%, 55%, 1; /* #59C259 */
|
|
841
865
|
--color-bg-success-light: 120, 46%, 55%, 0.16; /* #59C259 16% */
|
|
866
|
+
--color-bg-info-light: 197, 78%, 64%, 0.16;
|
|
842
867
|
|
|
843
868
|
/* Border */
|
|
844
869
|
--color-border-default: 120, 8%, 30%, 1; /* #465346 */
|
|
@@ -869,7 +894,12 @@ video {
|
|
|
869
894
|
--color-bg-tooltip: 120, 9%, 76%, 1; /* #BCC7BC */
|
|
870
895
|
--color-text-tooltip: 120, 9%, 24%, 1; /* #384338 */
|
|
871
896
|
|
|
897
|
+
/* Inline Comment */
|
|
898
|
+
--color-inline-comment: 120, 47%, 20%, 1; /* #1B4B1B */
|
|
899
|
+
--color-inline-comment-active: 120, 47%, 28%, 1; /* #266826 */
|
|
900
|
+
|
|
872
901
|
/* Utility */
|
|
902
|
+
--color-bg-transparent: 63, 15%, 74%, 0.04; /* #C6C7B3 4% */
|
|
873
903
|
--color-utility-overlay: 0, 0%, 0%, 0.72; /* Black 72% */
|
|
874
904
|
}
|
|
875
905
|
* {
|
|
@@ -1107,6 +1137,10 @@ video {
|
|
|
1107
1137
|
background-color: hsl(var(--color-bg-success-light));
|
|
1108
1138
|
}
|
|
1109
1139
|
|
|
1140
|
+
.color-bg-info-light {
|
|
1141
|
+
background-color: hsl(var(--color-bg-info-light));
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1110
1144
|
.color-bg-success {
|
|
1111
1145
|
background-color: hsl(var(--color-bg-success));
|
|
1112
1146
|
}
|
|
@@ -1127,6 +1161,10 @@ video {
|
|
|
1127
1161
|
color: hsl(var(--color-text-tooltip));
|
|
1128
1162
|
}
|
|
1129
1163
|
|
|
1164
|
+
.color-bg-transparent {
|
|
1165
|
+
background-color: hsl(var(--color-bg-transparent));
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1130
1168
|
.color-button-default {
|
|
1131
1169
|
background-color: hsl(var(--color-button-default));
|
|
1132
1170
|
border-color: hsl(var(--color-button-default));
|
|
@@ -1197,6 +1235,18 @@ video {
|
|
|
1197
1235
|
border-color: hsl(var(--color-border-focused));
|
|
1198
1236
|
}
|
|
1199
1237
|
|
|
1238
|
+
.color-border-warning {
|
|
1239
|
+
border-color: hsl(var(--color-border-warning));
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
.color-border-success {
|
|
1243
|
+
border-color: hsl(var(--color-border-success));
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
.color-border-info {
|
|
1247
|
+
border-color: hsl(var(--color-border-info));
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1200
1250
|
.color-border-danger {
|
|
1201
1251
|
border-color: hsl(var(--color-border-danger));
|
|
1202
1252
|
}
|
|
@@ -1626,6 +1676,9 @@ video {
|
|
|
1626
1676
|
.h-14 {
|
|
1627
1677
|
height: 3.5rem;
|
|
1628
1678
|
}
|
|
1679
|
+
.h-2 {
|
|
1680
|
+
height: 0.5rem;
|
|
1681
|
+
}
|
|
1629
1682
|
.h-3 {
|
|
1630
1683
|
height: 0.75rem;
|
|
1631
1684
|
}
|
|
@@ -1790,6 +1843,9 @@ video {
|
|
|
1790
1843
|
.w-16 {
|
|
1791
1844
|
width: 4rem;
|
|
1792
1845
|
}
|
|
1846
|
+
.w-2 {
|
|
1847
|
+
width: 0.5rem;
|
|
1848
|
+
}
|
|
1793
1849
|
.w-20 {
|
|
1794
1850
|
width: 5rem;
|
|
1795
1851
|
}
|
|
@@ -1817,6 +1873,9 @@ video {
|
|
|
1817
1873
|
.w-52 {
|
|
1818
1874
|
width: 13rem;
|
|
1819
1875
|
}
|
|
1876
|
+
.w-56 {
|
|
1877
|
+
width: 14rem;
|
|
1878
|
+
}
|
|
1820
1879
|
.w-6 {
|
|
1821
1880
|
width: 1.5rem;
|
|
1822
1881
|
}
|
|
@@ -2521,6 +2580,9 @@ video {
|
|
|
2521
2580
|
.bg-none {
|
|
2522
2581
|
background-image: none;
|
|
2523
2582
|
}
|
|
2583
|
+
.fill-current {
|
|
2584
|
+
fill: currentColor;
|
|
2585
|
+
}
|
|
2524
2586
|
.stroke-\[hsl\(var\(--color-bg-default\)\)\] {
|
|
2525
2587
|
stroke: hsl(var(--color-bg-default));
|
|
2526
2588
|
}
|
|
@@ -2679,9 +2741,15 @@ video {
|
|
|
2679
2741
|
.pl-6 {
|
|
2680
2742
|
padding-left: 1.5rem;
|
|
2681
2743
|
}
|
|
2744
|
+
.pl-8 {
|
|
2745
|
+
padding-left: 2rem;
|
|
2746
|
+
}
|
|
2682
2747
|
.pr-10 {
|
|
2683
2748
|
padding-right: 2.5rem;
|
|
2684
2749
|
}
|
|
2750
|
+
.pr-2 {
|
|
2751
|
+
padding-right: 0.5rem;
|
|
2752
|
+
}
|
|
2685
2753
|
.pr-3 {
|
|
2686
2754
|
padding-right: 0.75rem;
|
|
2687
2755
|
}
|
|
@@ -2866,6 +2934,12 @@ video {
|
|
|
2866
2934
|
.outline-1 {
|
|
2867
2935
|
outline-width: 1px;
|
|
2868
2936
|
}
|
|
2937
|
+
.-outline-offset-\[0\.5px\] {
|
|
2938
|
+
outline-offset: -0.5px;
|
|
2939
|
+
}
|
|
2940
|
+
.-outline-offset-\[1px\] {
|
|
2941
|
+
outline-offset: -1px;
|
|
2942
|
+
}
|
|
2869
2943
|
.outline-offset-\[-1px\] {
|
|
2870
2944
|
outline-offset: -1px;
|
|
2871
2945
|
}
|
|
@@ -3352,6 +3426,12 @@ textarea:is(:-webkit-autofill, :autofill) {
|
|
|
3352
3426
|
.data-\[disabled\]\:color-text-disabled[data-disabled] {
|
|
3353
3427
|
color: hsl(var(--color-text-disabled));
|
|
3354
3428
|
}
|
|
3429
|
+
.data-\[highlighted\]\:color-bg-default-hover[data-highlighted] {
|
|
3430
|
+
background-color: hsl(var(--color-bg-default-hover));
|
|
3431
|
+
}
|
|
3432
|
+
.data-\[state\=open\]\:color-bg-default-hover[data-state="open"] {
|
|
3433
|
+
background-color: hsl(var(--color-bg-default-hover));
|
|
3434
|
+
}
|
|
3355
3435
|
.data-\[state\=unchecked\]\:color-bg-default-hover[data-state="unchecked"] {
|
|
3356
3436
|
background-color: hsl(var(--color-bg-default-hover));
|
|
3357
3437
|
}
|
|
@@ -3745,6 +3825,21 @@ textarea:is(:-webkit-autofill, :autofill) {
|
|
|
3745
3825
|
.data-\[state\=open\]\:duration-500[data-state="open"] {
|
|
3746
3826
|
animation-duration: 500ms;
|
|
3747
3827
|
}
|
|
3828
|
+
.data-\[highlighted\]\:hover\:bg-\[hsl\(var\(--color-bg-default-hover\)\)\]:hover[data-highlighted] {
|
|
3829
|
+
background-color: hsl(var(--color-bg-default-hover));
|
|
3830
|
+
}
|
|
3831
|
+
.data-\[highlighted\]\:hover\:\!outline-0:hover[data-highlighted] {
|
|
3832
|
+
outline-width: 0px !important;
|
|
3833
|
+
}
|
|
3834
|
+
.data-\[highlighted\]\:hover\:outline-0:hover[data-highlighted] {
|
|
3835
|
+
outline-width: 0px;
|
|
3836
|
+
}
|
|
3837
|
+
.data-\[highlighted\]\:hover\:\!outline-transparent:hover[data-highlighted] {
|
|
3838
|
+
outline-color: transparent !important;
|
|
3839
|
+
}
|
|
3840
|
+
.data-\[highlighted\]\:focus-visible\:outline-\[hsl\(var\(--color-border-focused\)\)\]:focus-visible[data-highlighted] {
|
|
3841
|
+
outline-color: hsl(var(--color-border-focused));
|
|
3842
|
+
}
|
|
3748
3843
|
.dark\:\!text-\[\#363B3F\]:is(.dark *) {
|
|
3749
3844
|
--tw-text-opacity: 1 !important;
|
|
3750
3845
|
color: rgb(54 59 63 / var(--tw-text-opacity, 1)) !important;
|
package/dist/index.es.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { default as default_2 } from 'react';
|
|
|
7
7
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
8
8
|
import { DialogProps } from '@radix-ui/react-dialog';
|
|
9
9
|
import { Drawer as Drawer_2 } from 'vaul';
|
|
10
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
10
11
|
import { EmojiClickData } from 'emoji-picker-react';
|
|
11
12
|
import { default as EmojiPicker } from 'emoji-picker-react';
|
|
12
13
|
import { EmojiStyle } from 'emoji-picker-react';
|
|
@@ -349,6 +350,177 @@ export declare const DrawerTitle: React_2.ForwardRefExoticComponent<Omit<DialogP
|
|
|
349
350
|
|
|
350
351
|
export declare const DrawerTrigger: React_2.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
351
352
|
|
|
353
|
+
/**
|
|
354
|
+
* `DropdownMenu` — a menu of actions or options shown when a button is
|
|
355
|
+
* activated. Built on Radix UI's DropdownMenu primitive and styled with the
|
|
356
|
+
* Fileverse design system.
|
|
357
|
+
*
|
|
358
|
+
* Composition-first: import the parts you need and assemble them. Every part
|
|
359
|
+
* forwards its `ref` and spreads props onto the underlying Radix primitive, so
|
|
360
|
+
* any Radix prop works without extra wiring.
|
|
361
|
+
*
|
|
362
|
+
* Parts: {@link DropdownMenuTrigger}, {@link DropdownMenuContent},
|
|
363
|
+
* {@link DropdownMenuItem}, {@link DropdownMenuCheckboxItem},
|
|
364
|
+
* {@link DropdownMenuRadioGroup}/{@link DropdownMenuRadioItem},
|
|
365
|
+
* {@link DropdownMenuLabel}, {@link DropdownMenuSeparator},
|
|
366
|
+
* {@link DropdownMenuShortcut}, {@link DropdownMenuGroup},
|
|
367
|
+
* {@link DropdownMenuSub}/{@link DropdownMenuSubTrigger}/{@link DropdownMenuSubContent},
|
|
368
|
+
* {@link DropdownMenuPortal}, {@link DropdownMenuArrow}.
|
|
369
|
+
*
|
|
370
|
+
* @example Basic menu
|
|
371
|
+
* ```tsx
|
|
372
|
+
* <DropdownMenu>
|
|
373
|
+
* <DropdownMenuTrigger asChild>
|
|
374
|
+
* <Button>Open</Button>
|
|
375
|
+
* </DropdownMenuTrigger>
|
|
376
|
+
* <DropdownMenuContent align="start">
|
|
377
|
+
* <DropdownMenuLabel>My Account</DropdownMenuLabel>
|
|
378
|
+
* <DropdownMenuSeparator />
|
|
379
|
+
* <DropdownMenuItem>
|
|
380
|
+
* Profile <DropdownMenuShortcut>⇧⌘P</DropdownMenuShortcut>
|
|
381
|
+
* </DropdownMenuItem>
|
|
382
|
+
* <DropdownMenuItem disabled>Log out</DropdownMenuItem>
|
|
383
|
+
* </DropdownMenuContent>
|
|
384
|
+
* </DropdownMenu>
|
|
385
|
+
* ```
|
|
386
|
+
*
|
|
387
|
+
* @example Checkbox items, a radio group, and a nested sub-menu
|
|
388
|
+
* ```tsx
|
|
389
|
+
* <DropdownMenuContent>
|
|
390
|
+
* <DropdownMenuCheckboxItem checked={show} onCheckedChange={setShow}>
|
|
391
|
+
* Show panel
|
|
392
|
+
* </DropdownMenuCheckboxItem>
|
|
393
|
+
* <DropdownMenuRadioGroup value={pos} onValueChange={setPos}>
|
|
394
|
+
* <DropdownMenuRadioItem value="top">Top</DropdownMenuRadioItem>
|
|
395
|
+
* <DropdownMenuRadioItem value="bottom">Bottom</DropdownMenuRadioItem>
|
|
396
|
+
* </DropdownMenuRadioGroup>
|
|
397
|
+
* <DropdownMenuSub>
|
|
398
|
+
* <DropdownMenuSubTrigger>More</DropdownMenuSubTrigger>
|
|
399
|
+
* <DropdownMenuSubContent>
|
|
400
|
+
* <DropdownMenuItem>Email</DropdownMenuItem>
|
|
401
|
+
* </DropdownMenuSubContent>
|
|
402
|
+
* </DropdownMenuSub>
|
|
403
|
+
* </DropdownMenuContent>
|
|
404
|
+
* ```
|
|
405
|
+
*
|
|
406
|
+
* @see Storybook — https://fileverse-ui.vercel.app/?path=/docs/components-dropdownmenu--docs
|
|
407
|
+
* @see Radix primitive — https://www.radix-ui.com/primitives/docs/components/dropdown-menu
|
|
408
|
+
*
|
|
409
|
+
* @remarks
|
|
410
|
+
* The root. Manages open state and must wrap the trigger and content. Pass
|
|
411
|
+
* `open` / `onOpenChange` to control it, or `defaultOpen` for the uncontrolled
|
|
412
|
+
* case.
|
|
413
|
+
*/
|
|
414
|
+
export declare const DropdownMenu: React_2.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* Optional arrow pointing at the trigger. Not rendered by default — drop it
|
|
418
|
+
* inside {@link DropdownMenuContent} to opt in.
|
|
419
|
+
*/
|
|
420
|
+
export declare const DropdownMenuArrow: React_2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuArrowProps & React_2.RefAttributes<SVGSVGElement>>;
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* A toggleable item with a check indicator. Controlled via `checked` /
|
|
424
|
+
* `onCheckedChange`; `checked` also accepts `"indeterminate"`.
|
|
425
|
+
*/
|
|
426
|
+
export declare const DropdownMenuCheckboxItem: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* Floating panel that holds the menu's items. Portaled automatically.
|
|
430
|
+
* Position it with `side` / `align` / `sideOffset` (defaults to `4`).
|
|
431
|
+
*/
|
|
432
|
+
export declare const DropdownMenuContent: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* Groups related {@link DropdownMenuItem}s for semantics/accessibility. Pair
|
|
436
|
+
* with a {@link DropdownMenuLabel} to title the group.
|
|
437
|
+
*/
|
|
438
|
+
export declare const DropdownMenuGroup: React_2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* A selectable action. Wire up `onSelect`, set `disabled`, or use `inset` to
|
|
442
|
+
* align its label with sibling checkbox/radio items.
|
|
443
|
+
*/
|
|
444
|
+
export declare const DropdownMenuItem: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
445
|
+
inset?: boolean;
|
|
446
|
+
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* Non-interactive heading for a section of items. Use `inset` to align it with
|
|
450
|
+
* sibling checkbox/radio items.
|
|
451
|
+
*/
|
|
452
|
+
export declare const DropdownMenuLabel: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
453
|
+
inset?: boolean;
|
|
454
|
+
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
455
|
+
|
|
456
|
+
/**
|
|
457
|
+
* Renders menu content into a portal. {@link DropdownMenuContent} already
|
|
458
|
+
* portals its children, so reach for this only when you need to control the
|
|
459
|
+
* portal container yourself.
|
|
460
|
+
*/
|
|
461
|
+
export declare const DropdownMenuPortal: React_2.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* Wraps {@link DropdownMenuRadioItem}s so only one can be selected at a time.
|
|
465
|
+
* Controlled via `value` / `onValueChange`.
|
|
466
|
+
*/
|
|
467
|
+
export declare const DropdownMenuRadioGroup: React_2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
468
|
+
|
|
469
|
+
/**
|
|
470
|
+
* A single-choice item with a dot indicator. Must live inside a
|
|
471
|
+
* {@link DropdownMenuRadioGroup}; identified by its `value`.
|
|
472
|
+
*/
|
|
473
|
+
export declare const DropdownMenuRadioItem: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
474
|
+
|
|
475
|
+
/** Thin horizontal divider between groups of items. */
|
|
476
|
+
export declare const DropdownMenuSeparator: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* Right-aligned, muted hint for a keyboard shortcut. Purely presentational —
|
|
480
|
+
* render it as the trailing child of a {@link DropdownMenuItem}. It does not
|
|
481
|
+
* register the shortcut.
|
|
482
|
+
*
|
|
483
|
+
* @example
|
|
484
|
+
* ```tsx
|
|
485
|
+
* <DropdownMenuItem>Save <DropdownMenuShortcut>⌘S</DropdownMenuShortcut></DropdownMenuItem>
|
|
486
|
+
* ```
|
|
487
|
+
*/
|
|
488
|
+
export declare const DropdownMenuShortcut: {
|
|
489
|
+
({ className, ...props }: React_2.HTMLAttributes<HTMLSpanElement>): JSX_2.Element;
|
|
490
|
+
displayName: string;
|
|
491
|
+
};
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* Wraps a {@link DropdownMenuSubTrigger} and a {@link DropdownMenuSubContent}
|
|
495
|
+
* to create a nested sub-menu.
|
|
496
|
+
*/
|
|
497
|
+
export declare const DropdownMenuSub: React_2.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
498
|
+
|
|
499
|
+
/** Floating panel that holds a sub-menu's items. Belongs inside {@link DropdownMenuSub}. */
|
|
500
|
+
export declare const DropdownMenuSubContent: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
501
|
+
|
|
502
|
+
/**
|
|
503
|
+
* Trigger row inside {@link DropdownMenuContent} that opens a nested sub-menu.
|
|
504
|
+
* Shows a trailing chevron. Set `inset` to align its label with sibling
|
|
505
|
+
* checkbox/radio items.
|
|
506
|
+
*/
|
|
507
|
+
export declare const DropdownMenuSubTrigger: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
508
|
+
inset?: boolean;
|
|
509
|
+
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
510
|
+
|
|
511
|
+
/**
|
|
512
|
+
* Button that opens the menu. Use `asChild` to render your own element (e.g.
|
|
513
|
+
* `Button` / `IconButton`) as the trigger instead of the default `<button>`.
|
|
514
|
+
*
|
|
515
|
+
* @example
|
|
516
|
+
* ```tsx
|
|
517
|
+
* <DropdownMenuTrigger asChild>
|
|
518
|
+
* <Button>Open</Button>
|
|
519
|
+
* </DropdownMenuTrigger>
|
|
520
|
+
* ```
|
|
521
|
+
*/
|
|
522
|
+
export declare const DropdownMenuTrigger: React_2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
523
|
+
|
|
352
524
|
export declare const DynamicAlert: ({ title, description, variant, icon, className, iconClassName, ...props }: DynamicAlertProps) => JSX_2.Element;
|
|
353
525
|
|
|
354
526
|
export declare interface DynamicAlertProps {
|
|
@@ -1026,6 +1198,7 @@ export declare const Tooltip: React_2.ForwardRefExoticComponent<TooltipProps & R
|
|
|
1026
1198
|
export declare interface TooltipProps extends React_2.HTMLAttributes<HTMLElement>, VariantProps<typeof tooltipVariants> {
|
|
1027
1199
|
text: string | React_2.ReactNode;
|
|
1028
1200
|
sideOffset?: number;
|
|
1201
|
+
asTriggerChild?: boolean;
|
|
1029
1202
|
open?: boolean;
|
|
1030
1203
|
}
|
|
1031
1204
|
|