@radix-ui/react-dropdown-menu 2.0.7-rc.8 → 2.1.0-rc.1
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.d.mts +83 -71
- package/dist/index.d.ts +83 -71
- package/dist/index.js +279 -365
- package/dist/index.js.map +7 -1
- package/dist/index.mjs +277 -321
- package/dist/index.mjs.map +7 -1
- package/package.json +8 -9
- package/dist/index.d.ts.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,22 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import * as Radix from
|
|
3
|
-
import { Primitive } from
|
|
4
|
-
import * as MenuPrimitive from
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as Radix from '@radix-ui/react-primitive';
|
|
3
|
+
import { Primitive } from '@radix-ui/react-primitive';
|
|
4
|
+
import * as MenuPrimitive from '@radix-ui/react-menu';
|
|
5
|
+
|
|
6
|
+
declare type Scope<C = any> = {
|
|
7
|
+
[scopeName: string]: React.Context<C>[];
|
|
8
|
+
} | undefined;
|
|
9
|
+
declare type ScopeHook = (scope: Scope) => {
|
|
10
|
+
[__scopeProp: string]: Scope;
|
|
11
|
+
};
|
|
12
|
+
interface CreateScope {
|
|
13
|
+
scopeName: string;
|
|
14
|
+
(): ScopeHook;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare type Direction = 'ltr' | 'rtl';
|
|
18
|
+
declare const createDropdownMenuScope: CreateScope;
|
|
19
|
+
interface DropdownMenuProps {
|
|
8
20
|
children?: React.ReactNode;
|
|
9
21
|
dir?: Direction;
|
|
10
22
|
open?: boolean;
|
|
@@ -12,85 +24,85 @@ export interface DropdownMenuProps {
|
|
|
12
24
|
onOpenChange?(open: boolean): void;
|
|
13
25
|
modal?: boolean;
|
|
14
26
|
}
|
|
15
|
-
|
|
16
|
-
type PrimitiveButtonProps = Radix.ComponentPropsWithoutRef<typeof Primitive.button>;
|
|
17
|
-
|
|
27
|
+
declare const DropdownMenu: React.FC<DropdownMenuProps>;
|
|
28
|
+
declare type PrimitiveButtonProps = Radix.ComponentPropsWithoutRef<typeof Primitive.button>;
|
|
29
|
+
interface DropdownMenuTriggerProps extends PrimitiveButtonProps {
|
|
18
30
|
}
|
|
19
|
-
|
|
20
|
-
type MenuPortalProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Portal>;
|
|
21
|
-
|
|
31
|
+
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
32
|
+
declare type MenuPortalProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Portal>;
|
|
33
|
+
interface DropdownMenuPortalProps extends MenuPortalProps {
|
|
22
34
|
}
|
|
23
|
-
|
|
24
|
-
type MenuContentProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Content>;
|
|
25
|
-
|
|
35
|
+
declare const DropdownMenuPortal: React.FC<DropdownMenuPortalProps>;
|
|
36
|
+
declare type MenuContentProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Content>;
|
|
37
|
+
interface DropdownMenuContentProps extends Omit<MenuContentProps, 'onEntryFocus'> {
|
|
26
38
|
}
|
|
27
|
-
|
|
28
|
-
type MenuGroupProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Group>;
|
|
29
|
-
|
|
39
|
+
declare const DropdownMenuContent: React.ForwardRefExoticComponent<DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
40
|
+
declare type MenuGroupProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Group>;
|
|
41
|
+
interface DropdownMenuGroupProps extends MenuGroupProps {
|
|
30
42
|
}
|
|
31
|
-
|
|
32
|
-
type MenuLabelProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Label>;
|
|
33
|
-
|
|
43
|
+
declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
44
|
+
declare type MenuLabelProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Label>;
|
|
45
|
+
interface DropdownMenuLabelProps extends MenuLabelProps {
|
|
34
46
|
}
|
|
35
|
-
|
|
36
|
-
type MenuItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Item>;
|
|
37
|
-
|
|
47
|
+
declare const DropdownMenuLabel: React.ForwardRefExoticComponent<DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>>;
|
|
48
|
+
declare type MenuItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Item>;
|
|
49
|
+
interface DropdownMenuItemProps extends MenuItemProps {
|
|
38
50
|
}
|
|
39
|
-
|
|
40
|
-
type MenuCheckboxItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.CheckboxItem>;
|
|
41
|
-
|
|
51
|
+
declare const DropdownMenuItem: React.ForwardRefExoticComponent<DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
52
|
+
declare type MenuCheckboxItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.CheckboxItem>;
|
|
53
|
+
interface DropdownMenuCheckboxItemProps extends MenuCheckboxItemProps {
|
|
42
54
|
}
|
|
43
|
-
|
|
44
|
-
type MenuRadioGroupProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioGroup>;
|
|
45
|
-
|
|
55
|
+
declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
56
|
+
declare type MenuRadioGroupProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioGroup>;
|
|
57
|
+
interface DropdownMenuRadioGroupProps extends MenuRadioGroupProps {
|
|
46
58
|
}
|
|
47
|
-
|
|
48
|
-
type MenuRadioItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioItem>;
|
|
49
|
-
|
|
59
|
+
declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
60
|
+
declare type MenuRadioItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioItem>;
|
|
61
|
+
interface DropdownMenuRadioItemProps extends MenuRadioItemProps {
|
|
50
62
|
}
|
|
51
|
-
|
|
52
|
-
type MenuItemIndicatorProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.ItemIndicator>;
|
|
53
|
-
|
|
63
|
+
declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
64
|
+
declare type MenuItemIndicatorProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.ItemIndicator>;
|
|
65
|
+
interface DropdownMenuItemIndicatorProps extends MenuItemIndicatorProps {
|
|
54
66
|
}
|
|
55
|
-
|
|
56
|
-
type MenuSeparatorProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Separator>;
|
|
57
|
-
|
|
67
|
+
declare const DropdownMenuItemIndicator: React.ForwardRefExoticComponent<DropdownMenuItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
|
|
68
|
+
declare type MenuSeparatorProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Separator>;
|
|
69
|
+
interface DropdownMenuSeparatorProps extends MenuSeparatorProps {
|
|
58
70
|
}
|
|
59
|
-
|
|
60
|
-
type MenuArrowProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Arrow>;
|
|
61
|
-
|
|
71
|
+
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
72
|
+
declare type MenuArrowProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Arrow>;
|
|
73
|
+
interface DropdownMenuArrowProps extends MenuArrowProps {
|
|
62
74
|
}
|
|
63
|
-
|
|
64
|
-
|
|
75
|
+
declare const DropdownMenuArrow: React.ForwardRefExoticComponent<DropdownMenuArrowProps & React.RefAttributes<SVGSVGElement>>;
|
|
76
|
+
interface DropdownMenuSubProps {
|
|
65
77
|
children?: React.ReactNode;
|
|
66
78
|
open?: boolean;
|
|
67
79
|
defaultOpen?: boolean;
|
|
68
80
|
onOpenChange?(open: boolean): void;
|
|
69
81
|
}
|
|
70
|
-
|
|
71
|
-
type MenuSubTriggerProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubTrigger>;
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
type MenuSubContentProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubContent>;
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
82
|
+
declare const DropdownMenuSub: React.FC<DropdownMenuSubProps>;
|
|
83
|
+
declare type MenuSubTriggerProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubTrigger>;
|
|
84
|
+
interface DropdownMenuSubTriggerProps extends MenuSubTriggerProps {
|
|
85
|
+
}
|
|
86
|
+
declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
|
|
87
|
+
declare type MenuSubContentProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubContent>;
|
|
88
|
+
interface DropdownMenuSubContentProps extends MenuSubContentProps {
|
|
89
|
+
}
|
|
90
|
+
declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
91
|
+
declare const Root: React.FC<DropdownMenuProps>;
|
|
92
|
+
declare const Trigger: React.ForwardRefExoticComponent<DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
93
|
+
declare const Portal: React.FC<DropdownMenuPortalProps>;
|
|
94
|
+
declare const Content: React.ForwardRefExoticComponent<DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
95
|
+
declare const Group: React.ForwardRefExoticComponent<DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
96
|
+
declare const Label: React.ForwardRefExoticComponent<DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>>;
|
|
97
|
+
declare const Item: React.ForwardRefExoticComponent<DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
98
|
+
declare const CheckboxItem: React.ForwardRefExoticComponent<DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
99
|
+
declare const RadioGroup: React.ForwardRefExoticComponent<DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
100
|
+
declare const RadioItem: React.ForwardRefExoticComponent<DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
101
|
+
declare const ItemIndicator: React.ForwardRefExoticComponent<DropdownMenuItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
|
|
102
|
+
declare const Separator: React.ForwardRefExoticComponent<DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
103
|
+
declare const Arrow: React.ForwardRefExoticComponent<DropdownMenuArrowProps & React.RefAttributes<SVGSVGElement>>;
|
|
104
|
+
declare const Sub: React.FC<DropdownMenuSubProps>;
|
|
105
|
+
declare const SubTrigger: React.ForwardRefExoticComponent<DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
|
|
106
|
+
declare const SubContent: React.ForwardRefExoticComponent<DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
95
107
|
|
|
96
|
-
|
|
108
|
+
export { Arrow, CheckboxItem, Content, DropdownMenu, DropdownMenuArrow, type DropdownMenuArrowProps, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, type DropdownMenuGroupProps, DropdownMenuItem, DropdownMenuItemIndicator, type DropdownMenuItemIndicatorProps, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, type DropdownMenuPortalProps, type DropdownMenuProps, DropdownMenuRadioGroup, type DropdownMenuRadioGroupProps, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuSub, DropdownMenuSubContent, type DropdownMenuSubContentProps, type DropdownMenuSubProps, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, Group, Item, ItemIndicator, Label, Portal, RadioGroup, RadioItem, Root, Separator, Sub, SubContent, SubTrigger, Trigger, createDropdownMenuScope };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,22 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import * as Radix from
|
|
3
|
-
import { Primitive } from
|
|
4
|
-
import * as MenuPrimitive from
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as Radix from '@radix-ui/react-primitive';
|
|
3
|
+
import { Primitive } from '@radix-ui/react-primitive';
|
|
4
|
+
import * as MenuPrimitive from '@radix-ui/react-menu';
|
|
5
|
+
|
|
6
|
+
declare type Scope<C = any> = {
|
|
7
|
+
[scopeName: string]: React.Context<C>[];
|
|
8
|
+
} | undefined;
|
|
9
|
+
declare type ScopeHook = (scope: Scope) => {
|
|
10
|
+
[__scopeProp: string]: Scope;
|
|
11
|
+
};
|
|
12
|
+
interface CreateScope {
|
|
13
|
+
scopeName: string;
|
|
14
|
+
(): ScopeHook;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare type Direction = 'ltr' | 'rtl';
|
|
18
|
+
declare const createDropdownMenuScope: CreateScope;
|
|
19
|
+
interface DropdownMenuProps {
|
|
8
20
|
children?: React.ReactNode;
|
|
9
21
|
dir?: Direction;
|
|
10
22
|
open?: boolean;
|
|
@@ -12,85 +24,85 @@ export interface DropdownMenuProps {
|
|
|
12
24
|
onOpenChange?(open: boolean): void;
|
|
13
25
|
modal?: boolean;
|
|
14
26
|
}
|
|
15
|
-
|
|
16
|
-
type PrimitiveButtonProps = Radix.ComponentPropsWithoutRef<typeof Primitive.button>;
|
|
17
|
-
|
|
27
|
+
declare const DropdownMenu: React.FC<DropdownMenuProps>;
|
|
28
|
+
declare type PrimitiveButtonProps = Radix.ComponentPropsWithoutRef<typeof Primitive.button>;
|
|
29
|
+
interface DropdownMenuTriggerProps extends PrimitiveButtonProps {
|
|
18
30
|
}
|
|
19
|
-
|
|
20
|
-
type MenuPortalProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Portal>;
|
|
21
|
-
|
|
31
|
+
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
32
|
+
declare type MenuPortalProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Portal>;
|
|
33
|
+
interface DropdownMenuPortalProps extends MenuPortalProps {
|
|
22
34
|
}
|
|
23
|
-
|
|
24
|
-
type MenuContentProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Content>;
|
|
25
|
-
|
|
35
|
+
declare const DropdownMenuPortal: React.FC<DropdownMenuPortalProps>;
|
|
36
|
+
declare type MenuContentProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Content>;
|
|
37
|
+
interface DropdownMenuContentProps extends Omit<MenuContentProps, 'onEntryFocus'> {
|
|
26
38
|
}
|
|
27
|
-
|
|
28
|
-
type MenuGroupProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Group>;
|
|
29
|
-
|
|
39
|
+
declare const DropdownMenuContent: React.ForwardRefExoticComponent<DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
40
|
+
declare type MenuGroupProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Group>;
|
|
41
|
+
interface DropdownMenuGroupProps extends MenuGroupProps {
|
|
30
42
|
}
|
|
31
|
-
|
|
32
|
-
type MenuLabelProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Label>;
|
|
33
|
-
|
|
43
|
+
declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
44
|
+
declare type MenuLabelProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Label>;
|
|
45
|
+
interface DropdownMenuLabelProps extends MenuLabelProps {
|
|
34
46
|
}
|
|
35
|
-
|
|
36
|
-
type MenuItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Item>;
|
|
37
|
-
|
|
47
|
+
declare const DropdownMenuLabel: React.ForwardRefExoticComponent<DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>>;
|
|
48
|
+
declare type MenuItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Item>;
|
|
49
|
+
interface DropdownMenuItemProps extends MenuItemProps {
|
|
38
50
|
}
|
|
39
|
-
|
|
40
|
-
type MenuCheckboxItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.CheckboxItem>;
|
|
41
|
-
|
|
51
|
+
declare const DropdownMenuItem: React.ForwardRefExoticComponent<DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
52
|
+
declare type MenuCheckboxItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.CheckboxItem>;
|
|
53
|
+
interface DropdownMenuCheckboxItemProps extends MenuCheckboxItemProps {
|
|
42
54
|
}
|
|
43
|
-
|
|
44
|
-
type MenuRadioGroupProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioGroup>;
|
|
45
|
-
|
|
55
|
+
declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
56
|
+
declare type MenuRadioGroupProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioGroup>;
|
|
57
|
+
interface DropdownMenuRadioGroupProps extends MenuRadioGroupProps {
|
|
46
58
|
}
|
|
47
|
-
|
|
48
|
-
type MenuRadioItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioItem>;
|
|
49
|
-
|
|
59
|
+
declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
60
|
+
declare type MenuRadioItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioItem>;
|
|
61
|
+
interface DropdownMenuRadioItemProps extends MenuRadioItemProps {
|
|
50
62
|
}
|
|
51
|
-
|
|
52
|
-
type MenuItemIndicatorProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.ItemIndicator>;
|
|
53
|
-
|
|
63
|
+
declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
64
|
+
declare type MenuItemIndicatorProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.ItemIndicator>;
|
|
65
|
+
interface DropdownMenuItemIndicatorProps extends MenuItemIndicatorProps {
|
|
54
66
|
}
|
|
55
|
-
|
|
56
|
-
type MenuSeparatorProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Separator>;
|
|
57
|
-
|
|
67
|
+
declare const DropdownMenuItemIndicator: React.ForwardRefExoticComponent<DropdownMenuItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
|
|
68
|
+
declare type MenuSeparatorProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Separator>;
|
|
69
|
+
interface DropdownMenuSeparatorProps extends MenuSeparatorProps {
|
|
58
70
|
}
|
|
59
|
-
|
|
60
|
-
type MenuArrowProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Arrow>;
|
|
61
|
-
|
|
71
|
+
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
72
|
+
declare type MenuArrowProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Arrow>;
|
|
73
|
+
interface DropdownMenuArrowProps extends MenuArrowProps {
|
|
62
74
|
}
|
|
63
|
-
|
|
64
|
-
|
|
75
|
+
declare const DropdownMenuArrow: React.ForwardRefExoticComponent<DropdownMenuArrowProps & React.RefAttributes<SVGSVGElement>>;
|
|
76
|
+
interface DropdownMenuSubProps {
|
|
65
77
|
children?: React.ReactNode;
|
|
66
78
|
open?: boolean;
|
|
67
79
|
defaultOpen?: boolean;
|
|
68
80
|
onOpenChange?(open: boolean): void;
|
|
69
81
|
}
|
|
70
|
-
|
|
71
|
-
type MenuSubTriggerProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubTrigger>;
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
type MenuSubContentProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubContent>;
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
82
|
+
declare const DropdownMenuSub: React.FC<DropdownMenuSubProps>;
|
|
83
|
+
declare type MenuSubTriggerProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubTrigger>;
|
|
84
|
+
interface DropdownMenuSubTriggerProps extends MenuSubTriggerProps {
|
|
85
|
+
}
|
|
86
|
+
declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
|
|
87
|
+
declare type MenuSubContentProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubContent>;
|
|
88
|
+
interface DropdownMenuSubContentProps extends MenuSubContentProps {
|
|
89
|
+
}
|
|
90
|
+
declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
91
|
+
declare const Root: React.FC<DropdownMenuProps>;
|
|
92
|
+
declare const Trigger: React.ForwardRefExoticComponent<DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
93
|
+
declare const Portal: React.FC<DropdownMenuPortalProps>;
|
|
94
|
+
declare const Content: React.ForwardRefExoticComponent<DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
95
|
+
declare const Group: React.ForwardRefExoticComponent<DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
96
|
+
declare const Label: React.ForwardRefExoticComponent<DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>>;
|
|
97
|
+
declare const Item: React.ForwardRefExoticComponent<DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
98
|
+
declare const CheckboxItem: React.ForwardRefExoticComponent<DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
99
|
+
declare const RadioGroup: React.ForwardRefExoticComponent<DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
100
|
+
declare const RadioItem: React.ForwardRefExoticComponent<DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
101
|
+
declare const ItemIndicator: React.ForwardRefExoticComponent<DropdownMenuItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
|
|
102
|
+
declare const Separator: React.ForwardRefExoticComponent<DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
103
|
+
declare const Arrow: React.ForwardRefExoticComponent<DropdownMenuArrowProps & React.RefAttributes<SVGSVGElement>>;
|
|
104
|
+
declare const Sub: React.FC<DropdownMenuSubProps>;
|
|
105
|
+
declare const SubTrigger: React.ForwardRefExoticComponent<DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
|
|
106
|
+
declare const SubContent: React.ForwardRefExoticComponent<DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
95
107
|
|
|
96
|
-
|
|
108
|
+
export { Arrow, CheckboxItem, Content, DropdownMenu, DropdownMenuArrow, type DropdownMenuArrowProps, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, type DropdownMenuGroupProps, DropdownMenuItem, DropdownMenuItemIndicator, type DropdownMenuItemIndicatorProps, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, type DropdownMenuPortalProps, type DropdownMenuProps, DropdownMenuRadioGroup, type DropdownMenuRadioGroupProps, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuSub, DropdownMenuSubContent, type DropdownMenuSubContentProps, type DropdownMenuSubProps, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, Group, Item, ItemIndicator, Label, Portal, RadioGroup, RadioItem, Root, Separator, Sub, SubContent, SubTrigger, Trigger, createDropdownMenuScope };
|