@radix-ui/react-menubar 1.0.5-rc.8 → 1.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 +89 -77
- package/dist/index.d.ts +89 -77
- package/dist/index.js +434 -522
- package/dist/index.js.map +7 -1
- package/dist/index.mjs +436 -478
- package/dist/index.mjs.map +7 -1
- package/package.json +11 -12
- package/dist/index.d.ts.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,113 +1,125 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import * as MenuPrimitive from
|
|
3
|
-
import * as RovingFocusGroup from
|
|
4
|
-
import * as Radix from
|
|
5
|
-
import { Primitive } from
|
|
6
|
-
import { Scope } from
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as MenuPrimitive from '@radix-ui/react-menu';
|
|
3
|
+
import * as RovingFocusGroup from '@radix-ui/react-roving-focus';
|
|
4
|
+
import * as Radix from '@radix-ui/react-primitive';
|
|
5
|
+
import { Primitive } from '@radix-ui/react-primitive';
|
|
6
|
+
import { Scope as Scope$1 } from '@radix-ui/react-context';
|
|
7
|
+
|
|
8
|
+
declare type Scope<C = any> = {
|
|
9
|
+
[scopeName: string]: React.Context<C>[];
|
|
10
|
+
} | undefined;
|
|
11
|
+
declare type ScopeHook = (scope: Scope) => {
|
|
12
|
+
[__scopeProp: string]: Scope;
|
|
13
|
+
};
|
|
14
|
+
interface CreateScope {
|
|
15
|
+
scopeName: string;
|
|
16
|
+
(): ScopeHook;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
declare type ScopedProps<P> = P & {
|
|
20
|
+
__scopeMenubar?: Scope$1;
|
|
9
21
|
};
|
|
10
|
-
|
|
11
|
-
type RovingFocusGroupProps = Radix.ComponentPropsWithoutRef<typeof RovingFocusGroup.Root>;
|
|
12
|
-
type PrimitiveDivProps = Radix.ComponentPropsWithoutRef<typeof Primitive.div>;
|
|
13
|
-
|
|
22
|
+
declare const createMenubarScope: CreateScope;
|
|
23
|
+
declare type RovingFocusGroupProps = Radix.ComponentPropsWithoutRef<typeof RovingFocusGroup.Root>;
|
|
24
|
+
declare type PrimitiveDivProps = Radix.ComponentPropsWithoutRef<typeof Primitive.div>;
|
|
25
|
+
interface MenubarProps extends PrimitiveDivProps {
|
|
14
26
|
value?: string;
|
|
15
27
|
defaultValue?: string;
|
|
16
28
|
onValueChange?: (value: string) => void;
|
|
17
29
|
loop?: RovingFocusGroupProps['loop'];
|
|
18
30
|
dir?: RovingFocusGroupProps['dir'];
|
|
19
31
|
}
|
|
20
|
-
|
|
21
|
-
|
|
32
|
+
declare const Menubar: React.ForwardRefExoticComponent<MenubarProps & React.RefAttributes<HTMLDivElement>>;
|
|
33
|
+
interface MenubarMenuProps {
|
|
22
34
|
value?: string;
|
|
23
35
|
children?: React.ReactNode;
|
|
24
36
|
}
|
|
25
|
-
|
|
37
|
+
declare const MenubarMenu: {
|
|
26
38
|
(props: ScopedProps<MenubarMenuProps>): JSX.Element;
|
|
27
39
|
displayName: string;
|
|
28
40
|
};
|
|
29
|
-
type PrimitiveButtonProps = Radix.ComponentPropsWithoutRef<typeof Primitive.button>;
|
|
30
|
-
|
|
41
|
+
declare type PrimitiveButtonProps = Radix.ComponentPropsWithoutRef<typeof Primitive.button>;
|
|
42
|
+
interface MenubarTriggerProps extends PrimitiveButtonProps {
|
|
31
43
|
}
|
|
32
|
-
|
|
33
|
-
type MenuPortalProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Portal>;
|
|
34
|
-
|
|
44
|
+
declare const MenubarTrigger: React.ForwardRefExoticComponent<MenubarTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
45
|
+
declare type MenuPortalProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Portal>;
|
|
46
|
+
interface MenubarPortalProps extends MenuPortalProps {
|
|
35
47
|
}
|
|
36
|
-
|
|
37
|
-
type MenuContentProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Content>;
|
|
38
|
-
|
|
48
|
+
declare const MenubarPortal: React.FC<MenubarPortalProps>;
|
|
49
|
+
declare type MenuContentProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Content>;
|
|
50
|
+
interface MenubarContentProps extends Omit<MenuContentProps, 'onEntryFocus'> {
|
|
39
51
|
}
|
|
40
|
-
|
|
41
|
-
type MenuGroupProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Group>;
|
|
42
|
-
|
|
52
|
+
declare const MenubarContent: React.ForwardRefExoticComponent<MenubarContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
53
|
+
declare type MenuGroupProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Group>;
|
|
54
|
+
interface MenubarGroupProps extends MenuGroupProps {
|
|
43
55
|
}
|
|
44
|
-
|
|
45
|
-
type MenuLabelProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Label>;
|
|
46
|
-
|
|
56
|
+
declare const MenubarGroup: React.ForwardRefExoticComponent<MenubarGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
57
|
+
declare type MenuLabelProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Label>;
|
|
58
|
+
interface MenubarLabelProps extends MenuLabelProps {
|
|
47
59
|
}
|
|
48
|
-
|
|
49
|
-
type MenuItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Item>;
|
|
50
|
-
|
|
60
|
+
declare const MenubarLabel: React.ForwardRefExoticComponent<MenubarLabelProps & React.RefAttributes<HTMLDivElement>>;
|
|
61
|
+
declare type MenuItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Item>;
|
|
62
|
+
interface MenubarItemProps extends MenuItemProps {
|
|
51
63
|
}
|
|
52
|
-
|
|
53
|
-
type MenuCheckboxItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.CheckboxItem>;
|
|
54
|
-
|
|
64
|
+
declare const MenubarItem: React.ForwardRefExoticComponent<MenubarItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
65
|
+
declare type MenuCheckboxItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.CheckboxItem>;
|
|
66
|
+
interface MenubarCheckboxItemProps extends MenuCheckboxItemProps {
|
|
55
67
|
}
|
|
56
|
-
|
|
57
|
-
type MenuRadioGroupProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioGroup>;
|
|
58
|
-
|
|
68
|
+
declare const MenubarCheckboxItem: React.ForwardRefExoticComponent<MenubarCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
69
|
+
declare type MenuRadioGroupProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioGroup>;
|
|
70
|
+
interface MenubarRadioGroupProps extends MenuRadioGroupProps {
|
|
59
71
|
}
|
|
60
|
-
|
|
61
|
-
type MenuRadioItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioItem>;
|
|
62
|
-
|
|
72
|
+
declare const MenubarRadioGroup: React.ForwardRefExoticComponent<MenubarRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
73
|
+
declare type MenuRadioItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioItem>;
|
|
74
|
+
interface MenubarRadioItemProps extends MenuRadioItemProps {
|
|
63
75
|
}
|
|
64
|
-
|
|
65
|
-
type MenuItemIndicatorProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.ItemIndicator>;
|
|
66
|
-
|
|
76
|
+
declare const MenubarRadioItem: React.ForwardRefExoticComponent<MenubarRadioItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
77
|
+
declare type MenuItemIndicatorProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.ItemIndicator>;
|
|
78
|
+
interface MenubarItemIndicatorProps extends MenuItemIndicatorProps {
|
|
67
79
|
}
|
|
68
|
-
|
|
69
|
-
type MenuSeparatorProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Separator>;
|
|
70
|
-
|
|
80
|
+
declare const MenubarItemIndicator: React.ForwardRefExoticComponent<MenubarItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
|
|
81
|
+
declare type MenuSeparatorProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Separator>;
|
|
82
|
+
interface MenubarSeparatorProps extends MenuSeparatorProps {
|
|
71
83
|
}
|
|
72
|
-
|
|
73
|
-
type MenuArrowProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Arrow>;
|
|
74
|
-
|
|
84
|
+
declare const MenubarSeparator: React.ForwardRefExoticComponent<MenubarSeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
85
|
+
declare type MenuArrowProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Arrow>;
|
|
86
|
+
interface MenubarArrowProps extends MenuArrowProps {
|
|
75
87
|
}
|
|
76
|
-
|
|
77
|
-
|
|
88
|
+
declare const MenubarArrow: React.ForwardRefExoticComponent<MenubarArrowProps & React.RefAttributes<SVGSVGElement>>;
|
|
89
|
+
interface MenubarSubProps {
|
|
78
90
|
children?: React.ReactNode;
|
|
79
91
|
open?: boolean;
|
|
80
92
|
defaultOpen?: boolean;
|
|
81
93
|
onOpenChange?(open: boolean): void;
|
|
82
94
|
}
|
|
83
|
-
|
|
84
|
-
type MenuSubTriggerProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubTrigger>;
|
|
85
|
-
|
|
95
|
+
declare const MenubarSub: React.FC<MenubarSubProps>;
|
|
96
|
+
declare type MenuSubTriggerProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubTrigger>;
|
|
97
|
+
interface MenubarSubTriggerProps extends MenuSubTriggerProps {
|
|
86
98
|
}
|
|
87
|
-
|
|
88
|
-
type MenuSubContentProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubContent>;
|
|
89
|
-
|
|
99
|
+
declare const MenubarSubTrigger: React.ForwardRefExoticComponent<MenubarSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
|
|
100
|
+
declare type MenuSubContentProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubContent>;
|
|
101
|
+
interface MenubarSubContentProps extends MenuSubContentProps {
|
|
90
102
|
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
103
|
+
declare const MenubarSubContent: React.ForwardRefExoticComponent<MenubarSubContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
104
|
+
declare const Root: React.ForwardRefExoticComponent<MenubarProps & React.RefAttributes<HTMLDivElement>>;
|
|
105
|
+
declare const Menu: {
|
|
94
106
|
(props: ScopedProps<MenubarMenuProps>): JSX.Element;
|
|
95
107
|
displayName: string;
|
|
96
108
|
};
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
109
|
+
declare const Trigger: React.ForwardRefExoticComponent<MenubarTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
110
|
+
declare const Portal: React.FC<MenubarPortalProps>;
|
|
111
|
+
declare const Content: React.ForwardRefExoticComponent<MenubarContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
112
|
+
declare const Group: React.ForwardRefExoticComponent<MenubarGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
113
|
+
declare const Label: React.ForwardRefExoticComponent<MenubarLabelProps & React.RefAttributes<HTMLDivElement>>;
|
|
114
|
+
declare const Item: React.ForwardRefExoticComponent<MenubarItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
115
|
+
declare const CheckboxItem: React.ForwardRefExoticComponent<MenubarCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
116
|
+
declare const RadioGroup: React.ForwardRefExoticComponent<MenubarRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
117
|
+
declare const RadioItem: React.ForwardRefExoticComponent<MenubarRadioItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
118
|
+
declare const ItemIndicator: React.ForwardRefExoticComponent<MenubarItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
|
|
119
|
+
declare const Separator: React.ForwardRefExoticComponent<MenubarSeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
120
|
+
declare const Arrow: React.ForwardRefExoticComponent<MenubarArrowProps & React.RefAttributes<SVGSVGElement>>;
|
|
121
|
+
declare const Sub: React.FC<MenubarSubProps>;
|
|
122
|
+
declare const SubTrigger: React.ForwardRefExoticComponent<MenubarSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
|
|
123
|
+
declare const SubContent: React.ForwardRefExoticComponent<MenubarSubContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
112
124
|
|
|
113
|
-
|
|
125
|
+
export { Arrow, CheckboxItem, Content, Group, Item, ItemIndicator, Label, Menu, Menubar, MenubarArrow, type MenubarArrowProps, MenubarCheckboxItem, type MenubarCheckboxItemProps, MenubarContent, type MenubarContentProps, MenubarGroup, type MenubarGroupProps, MenubarItem, MenubarItemIndicator, type MenubarItemIndicatorProps, type MenubarItemProps, MenubarLabel, type MenubarLabelProps, MenubarMenu, type MenubarMenuProps, MenubarPortal, type MenubarPortalProps, type MenubarProps, MenubarRadioGroup, type MenubarRadioGroupProps, MenubarRadioItem, type MenubarRadioItemProps, MenubarSeparator, type MenubarSeparatorProps, MenubarSub, MenubarSubContent, type MenubarSubContentProps, type MenubarSubProps, MenubarSubTrigger, type MenubarSubTriggerProps, MenubarTrigger, type MenubarTriggerProps, Portal, RadioGroup, RadioItem, Root, Separator, Sub, SubContent, SubTrigger, Trigger, createMenubarScope };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,113 +1,125 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import * as MenuPrimitive from
|
|
3
|
-
import * as RovingFocusGroup from
|
|
4
|
-
import * as Radix from
|
|
5
|
-
import { Primitive } from
|
|
6
|
-
import { Scope } from
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as MenuPrimitive from '@radix-ui/react-menu';
|
|
3
|
+
import * as RovingFocusGroup from '@radix-ui/react-roving-focus';
|
|
4
|
+
import * as Radix from '@radix-ui/react-primitive';
|
|
5
|
+
import { Primitive } from '@radix-ui/react-primitive';
|
|
6
|
+
import { Scope as Scope$1 } from '@radix-ui/react-context';
|
|
7
|
+
|
|
8
|
+
declare type Scope<C = any> = {
|
|
9
|
+
[scopeName: string]: React.Context<C>[];
|
|
10
|
+
} | undefined;
|
|
11
|
+
declare type ScopeHook = (scope: Scope) => {
|
|
12
|
+
[__scopeProp: string]: Scope;
|
|
13
|
+
};
|
|
14
|
+
interface CreateScope {
|
|
15
|
+
scopeName: string;
|
|
16
|
+
(): ScopeHook;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
declare type ScopedProps<P> = P & {
|
|
20
|
+
__scopeMenubar?: Scope$1;
|
|
9
21
|
};
|
|
10
|
-
|
|
11
|
-
type RovingFocusGroupProps = Radix.ComponentPropsWithoutRef<typeof RovingFocusGroup.Root>;
|
|
12
|
-
type PrimitiveDivProps = Radix.ComponentPropsWithoutRef<typeof Primitive.div>;
|
|
13
|
-
|
|
22
|
+
declare const createMenubarScope: CreateScope;
|
|
23
|
+
declare type RovingFocusGroupProps = Radix.ComponentPropsWithoutRef<typeof RovingFocusGroup.Root>;
|
|
24
|
+
declare type PrimitiveDivProps = Radix.ComponentPropsWithoutRef<typeof Primitive.div>;
|
|
25
|
+
interface MenubarProps extends PrimitiveDivProps {
|
|
14
26
|
value?: string;
|
|
15
27
|
defaultValue?: string;
|
|
16
28
|
onValueChange?: (value: string) => void;
|
|
17
29
|
loop?: RovingFocusGroupProps['loop'];
|
|
18
30
|
dir?: RovingFocusGroupProps['dir'];
|
|
19
31
|
}
|
|
20
|
-
|
|
21
|
-
|
|
32
|
+
declare const Menubar: React.ForwardRefExoticComponent<MenubarProps & React.RefAttributes<HTMLDivElement>>;
|
|
33
|
+
interface MenubarMenuProps {
|
|
22
34
|
value?: string;
|
|
23
35
|
children?: React.ReactNode;
|
|
24
36
|
}
|
|
25
|
-
|
|
37
|
+
declare const MenubarMenu: {
|
|
26
38
|
(props: ScopedProps<MenubarMenuProps>): JSX.Element;
|
|
27
39
|
displayName: string;
|
|
28
40
|
};
|
|
29
|
-
type PrimitiveButtonProps = Radix.ComponentPropsWithoutRef<typeof Primitive.button>;
|
|
30
|
-
|
|
41
|
+
declare type PrimitiveButtonProps = Radix.ComponentPropsWithoutRef<typeof Primitive.button>;
|
|
42
|
+
interface MenubarTriggerProps extends PrimitiveButtonProps {
|
|
31
43
|
}
|
|
32
|
-
|
|
33
|
-
type MenuPortalProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Portal>;
|
|
34
|
-
|
|
44
|
+
declare const MenubarTrigger: React.ForwardRefExoticComponent<MenubarTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
45
|
+
declare type MenuPortalProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Portal>;
|
|
46
|
+
interface MenubarPortalProps extends MenuPortalProps {
|
|
35
47
|
}
|
|
36
|
-
|
|
37
|
-
type MenuContentProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Content>;
|
|
38
|
-
|
|
48
|
+
declare const MenubarPortal: React.FC<MenubarPortalProps>;
|
|
49
|
+
declare type MenuContentProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Content>;
|
|
50
|
+
interface MenubarContentProps extends Omit<MenuContentProps, 'onEntryFocus'> {
|
|
39
51
|
}
|
|
40
|
-
|
|
41
|
-
type MenuGroupProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Group>;
|
|
42
|
-
|
|
52
|
+
declare const MenubarContent: React.ForwardRefExoticComponent<MenubarContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
53
|
+
declare type MenuGroupProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Group>;
|
|
54
|
+
interface MenubarGroupProps extends MenuGroupProps {
|
|
43
55
|
}
|
|
44
|
-
|
|
45
|
-
type MenuLabelProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Label>;
|
|
46
|
-
|
|
56
|
+
declare const MenubarGroup: React.ForwardRefExoticComponent<MenubarGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
57
|
+
declare type MenuLabelProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Label>;
|
|
58
|
+
interface MenubarLabelProps extends MenuLabelProps {
|
|
47
59
|
}
|
|
48
|
-
|
|
49
|
-
type MenuItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Item>;
|
|
50
|
-
|
|
60
|
+
declare const MenubarLabel: React.ForwardRefExoticComponent<MenubarLabelProps & React.RefAttributes<HTMLDivElement>>;
|
|
61
|
+
declare type MenuItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Item>;
|
|
62
|
+
interface MenubarItemProps extends MenuItemProps {
|
|
51
63
|
}
|
|
52
|
-
|
|
53
|
-
type MenuCheckboxItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.CheckboxItem>;
|
|
54
|
-
|
|
64
|
+
declare const MenubarItem: React.ForwardRefExoticComponent<MenubarItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
65
|
+
declare type MenuCheckboxItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.CheckboxItem>;
|
|
66
|
+
interface MenubarCheckboxItemProps extends MenuCheckboxItemProps {
|
|
55
67
|
}
|
|
56
|
-
|
|
57
|
-
type MenuRadioGroupProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioGroup>;
|
|
58
|
-
|
|
68
|
+
declare const MenubarCheckboxItem: React.ForwardRefExoticComponent<MenubarCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
69
|
+
declare type MenuRadioGroupProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioGroup>;
|
|
70
|
+
interface MenubarRadioGroupProps extends MenuRadioGroupProps {
|
|
59
71
|
}
|
|
60
|
-
|
|
61
|
-
type MenuRadioItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioItem>;
|
|
62
|
-
|
|
72
|
+
declare const MenubarRadioGroup: React.ForwardRefExoticComponent<MenubarRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
73
|
+
declare type MenuRadioItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioItem>;
|
|
74
|
+
interface MenubarRadioItemProps extends MenuRadioItemProps {
|
|
63
75
|
}
|
|
64
|
-
|
|
65
|
-
type MenuItemIndicatorProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.ItemIndicator>;
|
|
66
|
-
|
|
76
|
+
declare const MenubarRadioItem: React.ForwardRefExoticComponent<MenubarRadioItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
77
|
+
declare type MenuItemIndicatorProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.ItemIndicator>;
|
|
78
|
+
interface MenubarItemIndicatorProps extends MenuItemIndicatorProps {
|
|
67
79
|
}
|
|
68
|
-
|
|
69
|
-
type MenuSeparatorProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Separator>;
|
|
70
|
-
|
|
80
|
+
declare const MenubarItemIndicator: React.ForwardRefExoticComponent<MenubarItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
|
|
81
|
+
declare type MenuSeparatorProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Separator>;
|
|
82
|
+
interface MenubarSeparatorProps extends MenuSeparatorProps {
|
|
71
83
|
}
|
|
72
|
-
|
|
73
|
-
type MenuArrowProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Arrow>;
|
|
74
|
-
|
|
84
|
+
declare const MenubarSeparator: React.ForwardRefExoticComponent<MenubarSeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
85
|
+
declare type MenuArrowProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Arrow>;
|
|
86
|
+
interface MenubarArrowProps extends MenuArrowProps {
|
|
75
87
|
}
|
|
76
|
-
|
|
77
|
-
|
|
88
|
+
declare const MenubarArrow: React.ForwardRefExoticComponent<MenubarArrowProps & React.RefAttributes<SVGSVGElement>>;
|
|
89
|
+
interface MenubarSubProps {
|
|
78
90
|
children?: React.ReactNode;
|
|
79
91
|
open?: boolean;
|
|
80
92
|
defaultOpen?: boolean;
|
|
81
93
|
onOpenChange?(open: boolean): void;
|
|
82
94
|
}
|
|
83
|
-
|
|
84
|
-
type MenuSubTriggerProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubTrigger>;
|
|
85
|
-
|
|
95
|
+
declare const MenubarSub: React.FC<MenubarSubProps>;
|
|
96
|
+
declare type MenuSubTriggerProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubTrigger>;
|
|
97
|
+
interface MenubarSubTriggerProps extends MenuSubTriggerProps {
|
|
86
98
|
}
|
|
87
|
-
|
|
88
|
-
type MenuSubContentProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubContent>;
|
|
89
|
-
|
|
99
|
+
declare const MenubarSubTrigger: React.ForwardRefExoticComponent<MenubarSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
|
|
100
|
+
declare type MenuSubContentProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubContent>;
|
|
101
|
+
interface MenubarSubContentProps extends MenuSubContentProps {
|
|
90
102
|
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
103
|
+
declare const MenubarSubContent: React.ForwardRefExoticComponent<MenubarSubContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
104
|
+
declare const Root: React.ForwardRefExoticComponent<MenubarProps & React.RefAttributes<HTMLDivElement>>;
|
|
105
|
+
declare const Menu: {
|
|
94
106
|
(props: ScopedProps<MenubarMenuProps>): JSX.Element;
|
|
95
107
|
displayName: string;
|
|
96
108
|
};
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
109
|
+
declare const Trigger: React.ForwardRefExoticComponent<MenubarTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
110
|
+
declare const Portal: React.FC<MenubarPortalProps>;
|
|
111
|
+
declare const Content: React.ForwardRefExoticComponent<MenubarContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
112
|
+
declare const Group: React.ForwardRefExoticComponent<MenubarGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
113
|
+
declare const Label: React.ForwardRefExoticComponent<MenubarLabelProps & React.RefAttributes<HTMLDivElement>>;
|
|
114
|
+
declare const Item: React.ForwardRefExoticComponent<MenubarItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
115
|
+
declare const CheckboxItem: React.ForwardRefExoticComponent<MenubarCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
116
|
+
declare const RadioGroup: React.ForwardRefExoticComponent<MenubarRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
117
|
+
declare const RadioItem: React.ForwardRefExoticComponent<MenubarRadioItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
118
|
+
declare const ItemIndicator: React.ForwardRefExoticComponent<MenubarItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
|
|
119
|
+
declare const Separator: React.ForwardRefExoticComponent<MenubarSeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
120
|
+
declare const Arrow: React.ForwardRefExoticComponent<MenubarArrowProps & React.RefAttributes<SVGSVGElement>>;
|
|
121
|
+
declare const Sub: React.FC<MenubarSubProps>;
|
|
122
|
+
declare const SubTrigger: React.ForwardRefExoticComponent<MenubarSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
|
|
123
|
+
declare const SubContent: React.ForwardRefExoticComponent<MenubarSubContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
112
124
|
|
|
113
|
-
|
|
125
|
+
export { Arrow, CheckboxItem, Content, Group, Item, ItemIndicator, Label, Menu, Menubar, MenubarArrow, type MenubarArrowProps, MenubarCheckboxItem, type MenubarCheckboxItemProps, MenubarContent, type MenubarContentProps, MenubarGroup, type MenubarGroupProps, MenubarItem, MenubarItemIndicator, type MenubarItemIndicatorProps, type MenubarItemProps, MenubarLabel, type MenubarLabelProps, MenubarMenu, type MenubarMenuProps, MenubarPortal, type MenubarPortalProps, type MenubarProps, MenubarRadioGroup, type MenubarRadioGroupProps, MenubarRadioItem, type MenubarRadioItemProps, MenubarSeparator, type MenubarSeparatorProps, MenubarSub, MenubarSubContent, type MenubarSubContentProps, type MenubarSubProps, MenubarSubTrigger, type MenubarSubTriggerProps, MenubarTrigger, type MenubarTriggerProps, Portal, RadioGroup, RadioItem, Root, Separator, Sub, SubContent, SubTrigger, Trigger, createMenubarScope };
|