@radix-ui/react-context-menu 2.1.6-rc.9 → 2.2.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 +306 -393
- package/dist/index.js.map +7 -1
- package/dist/index.mjs +295 -340
- package/dist/index.mjs.map +7 -1
- package/package.json +7 -8
- package/dist/index.d.ts.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,95 +1,107 @@
|
|
|
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 createContextMenuScope: CreateScope;
|
|
19
|
+
interface ContextMenuProps {
|
|
8
20
|
children?: React.ReactNode;
|
|
9
21
|
onOpenChange?(open: boolean): void;
|
|
10
22
|
dir?: Direction;
|
|
11
23
|
modal?: boolean;
|
|
12
24
|
}
|
|
13
|
-
|
|
14
|
-
type PrimitiveSpanProps = Radix.ComponentPropsWithoutRef<typeof Primitive.span>;
|
|
15
|
-
|
|
25
|
+
declare const ContextMenu: React.FC<ContextMenuProps>;
|
|
26
|
+
declare type PrimitiveSpanProps = Radix.ComponentPropsWithoutRef<typeof Primitive.span>;
|
|
27
|
+
interface ContextMenuTriggerProps extends PrimitiveSpanProps {
|
|
16
28
|
disabled?: boolean;
|
|
17
29
|
}
|
|
18
|
-
|
|
19
|
-
type MenuPortalProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Portal>;
|
|
20
|
-
|
|
30
|
+
declare const ContextMenuTrigger: React.ForwardRefExoticComponent<ContextMenuTriggerProps & React.RefAttributes<HTMLSpanElement>>;
|
|
31
|
+
declare type MenuPortalProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Portal>;
|
|
32
|
+
interface ContextMenuPortalProps extends MenuPortalProps {
|
|
21
33
|
}
|
|
22
|
-
|
|
23
|
-
type MenuContentProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Content>;
|
|
24
|
-
|
|
34
|
+
declare const ContextMenuPortal: React.FC<ContextMenuPortalProps>;
|
|
35
|
+
declare type MenuContentProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Content>;
|
|
36
|
+
interface ContextMenuContentProps extends Omit<MenuContentProps, 'onEntryFocus' | 'side' | 'sideOffset' | 'align'> {
|
|
25
37
|
}
|
|
26
|
-
|
|
27
|
-
type MenuGroupProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Group>;
|
|
28
|
-
|
|
38
|
+
declare const ContextMenuContent: React.ForwardRefExoticComponent<ContextMenuContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
39
|
+
declare type MenuGroupProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Group>;
|
|
40
|
+
interface ContextMenuGroupProps extends MenuGroupProps {
|
|
29
41
|
}
|
|
30
|
-
|
|
31
|
-
type MenuLabelProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Label>;
|
|
32
|
-
|
|
42
|
+
declare const ContextMenuGroup: React.ForwardRefExoticComponent<ContextMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
43
|
+
declare type MenuLabelProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Label>;
|
|
44
|
+
interface ContextMenuLabelProps extends MenuLabelProps {
|
|
33
45
|
}
|
|
34
|
-
|
|
35
|
-
type MenuItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Item>;
|
|
36
|
-
|
|
46
|
+
declare const ContextMenuLabel: React.ForwardRefExoticComponent<ContextMenuLabelProps & React.RefAttributes<HTMLDivElement>>;
|
|
47
|
+
declare type MenuItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Item>;
|
|
48
|
+
interface ContextMenuItemProps extends MenuItemProps {
|
|
37
49
|
}
|
|
38
|
-
|
|
39
|
-
type MenuCheckboxItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.CheckboxItem>;
|
|
40
|
-
|
|
50
|
+
declare const ContextMenuItem: React.ForwardRefExoticComponent<ContextMenuItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
51
|
+
declare type MenuCheckboxItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.CheckboxItem>;
|
|
52
|
+
interface ContextMenuCheckboxItemProps extends MenuCheckboxItemProps {
|
|
41
53
|
}
|
|
42
|
-
|
|
43
|
-
type MenuRadioGroupProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioGroup>;
|
|
44
|
-
|
|
54
|
+
declare const ContextMenuCheckboxItem: React.ForwardRefExoticComponent<ContextMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
55
|
+
declare type MenuRadioGroupProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioGroup>;
|
|
56
|
+
interface ContextMenuRadioGroupProps extends MenuRadioGroupProps {
|
|
45
57
|
}
|
|
46
|
-
|
|
47
|
-
type MenuRadioItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioItem>;
|
|
48
|
-
|
|
58
|
+
declare const ContextMenuRadioGroup: React.ForwardRefExoticComponent<ContextMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
59
|
+
declare type MenuRadioItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioItem>;
|
|
60
|
+
interface ContextMenuRadioItemProps extends MenuRadioItemProps {
|
|
49
61
|
}
|
|
50
|
-
|
|
51
|
-
type MenuItemIndicatorProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.ItemIndicator>;
|
|
52
|
-
|
|
62
|
+
declare const ContextMenuRadioItem: React.ForwardRefExoticComponent<ContextMenuRadioItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
63
|
+
declare type MenuItemIndicatorProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.ItemIndicator>;
|
|
64
|
+
interface ContextMenuItemIndicatorProps extends MenuItemIndicatorProps {
|
|
53
65
|
}
|
|
54
|
-
|
|
55
|
-
type MenuSeparatorProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Separator>;
|
|
56
|
-
|
|
66
|
+
declare const ContextMenuItemIndicator: React.ForwardRefExoticComponent<ContextMenuItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
|
|
67
|
+
declare type MenuSeparatorProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Separator>;
|
|
68
|
+
interface ContextMenuSeparatorProps extends MenuSeparatorProps {
|
|
57
69
|
}
|
|
58
|
-
|
|
59
|
-
type MenuArrowProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Arrow>;
|
|
60
|
-
|
|
70
|
+
declare const ContextMenuSeparator: React.ForwardRefExoticComponent<ContextMenuSeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
71
|
+
declare type MenuArrowProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Arrow>;
|
|
72
|
+
interface ContextMenuArrowProps extends MenuArrowProps {
|
|
61
73
|
}
|
|
62
|
-
|
|
63
|
-
|
|
74
|
+
declare const ContextMenuArrow: React.ForwardRefExoticComponent<ContextMenuArrowProps & React.RefAttributes<SVGSVGElement>>;
|
|
75
|
+
interface ContextMenuSubProps {
|
|
64
76
|
children?: React.ReactNode;
|
|
65
77
|
open?: boolean;
|
|
66
78
|
defaultOpen?: boolean;
|
|
67
79
|
onOpenChange?(open: boolean): void;
|
|
68
80
|
}
|
|
69
|
-
|
|
70
|
-
type MenuSubTriggerProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubTrigger>;
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
type MenuSubContentProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubContent>;
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
81
|
+
declare const ContextMenuSub: React.FC<ContextMenuSubProps>;
|
|
82
|
+
declare type MenuSubTriggerProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubTrigger>;
|
|
83
|
+
interface ContextMenuSubTriggerProps extends MenuSubTriggerProps {
|
|
84
|
+
}
|
|
85
|
+
declare const ContextMenuSubTrigger: React.ForwardRefExoticComponent<ContextMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
|
|
86
|
+
declare type MenuSubContentProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubContent>;
|
|
87
|
+
interface ContextMenuSubContentProps extends MenuSubContentProps {
|
|
88
|
+
}
|
|
89
|
+
declare const ContextMenuSubContent: React.ForwardRefExoticComponent<ContextMenuSubContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
90
|
+
declare const Root: React.FC<ContextMenuProps>;
|
|
91
|
+
declare const Trigger: React.ForwardRefExoticComponent<ContextMenuTriggerProps & React.RefAttributes<HTMLSpanElement>>;
|
|
92
|
+
declare const Portal: React.FC<ContextMenuPortalProps>;
|
|
93
|
+
declare const Content: React.ForwardRefExoticComponent<ContextMenuContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
94
|
+
declare const Group: React.ForwardRefExoticComponent<ContextMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
95
|
+
declare const Label: React.ForwardRefExoticComponent<ContextMenuLabelProps & React.RefAttributes<HTMLDivElement>>;
|
|
96
|
+
declare const Item: React.ForwardRefExoticComponent<ContextMenuItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
97
|
+
declare const CheckboxItem: React.ForwardRefExoticComponent<ContextMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
98
|
+
declare const RadioGroup: React.ForwardRefExoticComponent<ContextMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
99
|
+
declare const RadioItem: React.ForwardRefExoticComponent<ContextMenuRadioItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
100
|
+
declare const ItemIndicator: React.ForwardRefExoticComponent<ContextMenuItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
|
|
101
|
+
declare const Separator: React.ForwardRefExoticComponent<ContextMenuSeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
102
|
+
declare const Arrow: React.ForwardRefExoticComponent<ContextMenuArrowProps & React.RefAttributes<SVGSVGElement>>;
|
|
103
|
+
declare const Sub: React.FC<ContextMenuSubProps>;
|
|
104
|
+
declare const SubTrigger: React.ForwardRefExoticComponent<ContextMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
|
|
105
|
+
declare const SubContent: React.ForwardRefExoticComponent<ContextMenuSubContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
94
106
|
|
|
95
|
-
|
|
107
|
+
export { Arrow, CheckboxItem, Content, ContextMenu, ContextMenuArrow, type ContextMenuArrowProps, ContextMenuCheckboxItem, type ContextMenuCheckboxItemProps, ContextMenuContent, type ContextMenuContentProps, ContextMenuGroup, type ContextMenuGroupProps, ContextMenuItem, ContextMenuItemIndicator, type ContextMenuItemIndicatorProps, type ContextMenuItemProps, ContextMenuLabel, type ContextMenuLabelProps, ContextMenuPortal, type ContextMenuPortalProps, type ContextMenuProps, ContextMenuRadioGroup, type ContextMenuRadioGroupProps, ContextMenuRadioItem, type ContextMenuRadioItemProps, ContextMenuSeparator, type ContextMenuSeparatorProps, ContextMenuSub, ContextMenuSubContent, type ContextMenuSubContentProps, type ContextMenuSubProps, ContextMenuSubTrigger, type ContextMenuSubTriggerProps, ContextMenuTrigger, type ContextMenuTriggerProps, Group, Item, ItemIndicator, Label, Portal, RadioGroup, RadioItem, Root, Separator, Sub, SubContent, SubTrigger, Trigger, createContextMenuScope };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,95 +1,107 @@
|
|
|
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 createContextMenuScope: CreateScope;
|
|
19
|
+
interface ContextMenuProps {
|
|
8
20
|
children?: React.ReactNode;
|
|
9
21
|
onOpenChange?(open: boolean): void;
|
|
10
22
|
dir?: Direction;
|
|
11
23
|
modal?: boolean;
|
|
12
24
|
}
|
|
13
|
-
|
|
14
|
-
type PrimitiveSpanProps = Radix.ComponentPropsWithoutRef<typeof Primitive.span>;
|
|
15
|
-
|
|
25
|
+
declare const ContextMenu: React.FC<ContextMenuProps>;
|
|
26
|
+
declare type PrimitiveSpanProps = Radix.ComponentPropsWithoutRef<typeof Primitive.span>;
|
|
27
|
+
interface ContextMenuTriggerProps extends PrimitiveSpanProps {
|
|
16
28
|
disabled?: boolean;
|
|
17
29
|
}
|
|
18
|
-
|
|
19
|
-
type MenuPortalProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Portal>;
|
|
20
|
-
|
|
30
|
+
declare const ContextMenuTrigger: React.ForwardRefExoticComponent<ContextMenuTriggerProps & React.RefAttributes<HTMLSpanElement>>;
|
|
31
|
+
declare type MenuPortalProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Portal>;
|
|
32
|
+
interface ContextMenuPortalProps extends MenuPortalProps {
|
|
21
33
|
}
|
|
22
|
-
|
|
23
|
-
type MenuContentProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Content>;
|
|
24
|
-
|
|
34
|
+
declare const ContextMenuPortal: React.FC<ContextMenuPortalProps>;
|
|
35
|
+
declare type MenuContentProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Content>;
|
|
36
|
+
interface ContextMenuContentProps extends Omit<MenuContentProps, 'onEntryFocus' | 'side' | 'sideOffset' | 'align'> {
|
|
25
37
|
}
|
|
26
|
-
|
|
27
|
-
type MenuGroupProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Group>;
|
|
28
|
-
|
|
38
|
+
declare const ContextMenuContent: React.ForwardRefExoticComponent<ContextMenuContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
39
|
+
declare type MenuGroupProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Group>;
|
|
40
|
+
interface ContextMenuGroupProps extends MenuGroupProps {
|
|
29
41
|
}
|
|
30
|
-
|
|
31
|
-
type MenuLabelProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Label>;
|
|
32
|
-
|
|
42
|
+
declare const ContextMenuGroup: React.ForwardRefExoticComponent<ContextMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
43
|
+
declare type MenuLabelProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Label>;
|
|
44
|
+
interface ContextMenuLabelProps extends MenuLabelProps {
|
|
33
45
|
}
|
|
34
|
-
|
|
35
|
-
type MenuItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Item>;
|
|
36
|
-
|
|
46
|
+
declare const ContextMenuLabel: React.ForwardRefExoticComponent<ContextMenuLabelProps & React.RefAttributes<HTMLDivElement>>;
|
|
47
|
+
declare type MenuItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Item>;
|
|
48
|
+
interface ContextMenuItemProps extends MenuItemProps {
|
|
37
49
|
}
|
|
38
|
-
|
|
39
|
-
type MenuCheckboxItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.CheckboxItem>;
|
|
40
|
-
|
|
50
|
+
declare const ContextMenuItem: React.ForwardRefExoticComponent<ContextMenuItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
51
|
+
declare type MenuCheckboxItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.CheckboxItem>;
|
|
52
|
+
interface ContextMenuCheckboxItemProps extends MenuCheckboxItemProps {
|
|
41
53
|
}
|
|
42
|
-
|
|
43
|
-
type MenuRadioGroupProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioGroup>;
|
|
44
|
-
|
|
54
|
+
declare const ContextMenuCheckboxItem: React.ForwardRefExoticComponent<ContextMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
55
|
+
declare type MenuRadioGroupProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioGroup>;
|
|
56
|
+
interface ContextMenuRadioGroupProps extends MenuRadioGroupProps {
|
|
45
57
|
}
|
|
46
|
-
|
|
47
|
-
type MenuRadioItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioItem>;
|
|
48
|
-
|
|
58
|
+
declare const ContextMenuRadioGroup: React.ForwardRefExoticComponent<ContextMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
59
|
+
declare type MenuRadioItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioItem>;
|
|
60
|
+
interface ContextMenuRadioItemProps extends MenuRadioItemProps {
|
|
49
61
|
}
|
|
50
|
-
|
|
51
|
-
type MenuItemIndicatorProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.ItemIndicator>;
|
|
52
|
-
|
|
62
|
+
declare const ContextMenuRadioItem: React.ForwardRefExoticComponent<ContextMenuRadioItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
63
|
+
declare type MenuItemIndicatorProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.ItemIndicator>;
|
|
64
|
+
interface ContextMenuItemIndicatorProps extends MenuItemIndicatorProps {
|
|
53
65
|
}
|
|
54
|
-
|
|
55
|
-
type MenuSeparatorProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Separator>;
|
|
56
|
-
|
|
66
|
+
declare const ContextMenuItemIndicator: React.ForwardRefExoticComponent<ContextMenuItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
|
|
67
|
+
declare type MenuSeparatorProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Separator>;
|
|
68
|
+
interface ContextMenuSeparatorProps extends MenuSeparatorProps {
|
|
57
69
|
}
|
|
58
|
-
|
|
59
|
-
type MenuArrowProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Arrow>;
|
|
60
|
-
|
|
70
|
+
declare const ContextMenuSeparator: React.ForwardRefExoticComponent<ContextMenuSeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
71
|
+
declare type MenuArrowProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Arrow>;
|
|
72
|
+
interface ContextMenuArrowProps extends MenuArrowProps {
|
|
61
73
|
}
|
|
62
|
-
|
|
63
|
-
|
|
74
|
+
declare const ContextMenuArrow: React.ForwardRefExoticComponent<ContextMenuArrowProps & React.RefAttributes<SVGSVGElement>>;
|
|
75
|
+
interface ContextMenuSubProps {
|
|
64
76
|
children?: React.ReactNode;
|
|
65
77
|
open?: boolean;
|
|
66
78
|
defaultOpen?: boolean;
|
|
67
79
|
onOpenChange?(open: boolean): void;
|
|
68
80
|
}
|
|
69
|
-
|
|
70
|
-
type MenuSubTriggerProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubTrigger>;
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
type MenuSubContentProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubContent>;
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
81
|
+
declare const ContextMenuSub: React.FC<ContextMenuSubProps>;
|
|
82
|
+
declare type MenuSubTriggerProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubTrigger>;
|
|
83
|
+
interface ContextMenuSubTriggerProps extends MenuSubTriggerProps {
|
|
84
|
+
}
|
|
85
|
+
declare const ContextMenuSubTrigger: React.ForwardRefExoticComponent<ContextMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
|
|
86
|
+
declare type MenuSubContentProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubContent>;
|
|
87
|
+
interface ContextMenuSubContentProps extends MenuSubContentProps {
|
|
88
|
+
}
|
|
89
|
+
declare const ContextMenuSubContent: React.ForwardRefExoticComponent<ContextMenuSubContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
90
|
+
declare const Root: React.FC<ContextMenuProps>;
|
|
91
|
+
declare const Trigger: React.ForwardRefExoticComponent<ContextMenuTriggerProps & React.RefAttributes<HTMLSpanElement>>;
|
|
92
|
+
declare const Portal: React.FC<ContextMenuPortalProps>;
|
|
93
|
+
declare const Content: React.ForwardRefExoticComponent<ContextMenuContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
94
|
+
declare const Group: React.ForwardRefExoticComponent<ContextMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
95
|
+
declare const Label: React.ForwardRefExoticComponent<ContextMenuLabelProps & React.RefAttributes<HTMLDivElement>>;
|
|
96
|
+
declare const Item: React.ForwardRefExoticComponent<ContextMenuItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
97
|
+
declare const CheckboxItem: React.ForwardRefExoticComponent<ContextMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
98
|
+
declare const RadioGroup: React.ForwardRefExoticComponent<ContextMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
99
|
+
declare const RadioItem: React.ForwardRefExoticComponent<ContextMenuRadioItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
100
|
+
declare const ItemIndicator: React.ForwardRefExoticComponent<ContextMenuItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
|
|
101
|
+
declare const Separator: React.ForwardRefExoticComponent<ContextMenuSeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
102
|
+
declare const Arrow: React.ForwardRefExoticComponent<ContextMenuArrowProps & React.RefAttributes<SVGSVGElement>>;
|
|
103
|
+
declare const Sub: React.FC<ContextMenuSubProps>;
|
|
104
|
+
declare const SubTrigger: React.ForwardRefExoticComponent<ContextMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
|
|
105
|
+
declare const SubContent: React.ForwardRefExoticComponent<ContextMenuSubContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
94
106
|
|
|
95
|
-
|
|
107
|
+
export { Arrow, CheckboxItem, Content, ContextMenu, ContextMenuArrow, type ContextMenuArrowProps, ContextMenuCheckboxItem, type ContextMenuCheckboxItemProps, ContextMenuContent, type ContextMenuContentProps, ContextMenuGroup, type ContextMenuGroupProps, ContextMenuItem, ContextMenuItemIndicator, type ContextMenuItemIndicatorProps, type ContextMenuItemProps, ContextMenuLabel, type ContextMenuLabelProps, ContextMenuPortal, type ContextMenuPortalProps, type ContextMenuProps, ContextMenuRadioGroup, type ContextMenuRadioGroupProps, ContextMenuRadioItem, type ContextMenuRadioItemProps, ContextMenuSeparator, type ContextMenuSeparatorProps, ContextMenuSub, ContextMenuSubContent, type ContextMenuSubContentProps, type ContextMenuSubProps, ContextMenuSubTrigger, type ContextMenuSubTriggerProps, ContextMenuTrigger, type ContextMenuTriggerProps, Group, Item, ItemIndicator, Label, Portal, RadioGroup, RadioItem, Root, Separator, Sub, SubContent, SubTrigger, Trigger, createContextMenuScope };
|