@radix-ui/react-menubar 1.0.5-rc.9 → 1.1.0-rc.2

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 CHANGED
@@ -1,113 +1,125 @@
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 } from "@radix-ui/react-context";
7
- type ScopedProps<P> = P & {
8
- __scopeMenubar?: Scope;
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
- export const createMenubarScope: import("@radix-ui/react-context").CreateScope;
11
- type RovingFocusGroupProps = Radix.ComponentPropsWithoutRef<typeof RovingFocusGroup.Root>;
12
- type PrimitiveDivProps = Radix.ComponentPropsWithoutRef<typeof Primitive.div>;
13
- export interface MenubarProps extends PrimitiveDivProps {
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
- export const Menubar: React.ForwardRefExoticComponent<MenubarProps & React.RefAttributes<HTMLDivElement>>;
21
- export interface MenubarMenuProps {
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
- export const MenubarMenu: {
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
- export interface MenubarTriggerProps extends PrimitiveButtonProps {
41
+ declare type PrimitiveButtonProps = Radix.ComponentPropsWithoutRef<typeof Primitive.button>;
42
+ interface MenubarTriggerProps extends PrimitiveButtonProps {
31
43
  }
32
- export const MenubarTrigger: React.ForwardRefExoticComponent<MenubarTriggerProps & React.RefAttributes<HTMLButtonElement>>;
33
- type MenuPortalProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Portal>;
34
- export interface MenubarPortalProps extends MenuPortalProps {
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
- export const MenubarPortal: React.FC<MenubarPortalProps>;
37
- type MenuContentProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Content>;
38
- export interface MenubarContentProps extends Omit<MenuContentProps, 'onEntryFocus'> {
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
- export const MenubarContent: React.ForwardRefExoticComponent<MenubarContentProps & React.RefAttributes<HTMLDivElement>>;
41
- type MenuGroupProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Group>;
42
- export interface MenubarGroupProps extends MenuGroupProps {
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
- export const MenubarGroup: React.ForwardRefExoticComponent<MenubarGroupProps & React.RefAttributes<HTMLDivElement>>;
45
- type MenuLabelProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Label>;
46
- export interface MenubarLabelProps extends MenuLabelProps {
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
- export const MenubarLabel: React.ForwardRefExoticComponent<MenubarLabelProps & React.RefAttributes<HTMLDivElement>>;
49
- type MenuItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Item>;
50
- export interface MenubarItemProps extends MenuItemProps {
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
- export const MenubarItem: React.ForwardRefExoticComponent<MenubarItemProps & React.RefAttributes<HTMLDivElement>>;
53
- type MenuCheckboxItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.CheckboxItem>;
54
- export interface MenubarCheckboxItemProps extends MenuCheckboxItemProps {
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
- export const MenubarCheckboxItem: React.ForwardRefExoticComponent<MenubarCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
57
- type MenuRadioGroupProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioGroup>;
58
- export interface MenubarRadioGroupProps extends MenuRadioGroupProps {
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
- export const MenubarRadioGroup: React.ForwardRefExoticComponent<MenubarRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
61
- type MenuRadioItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioItem>;
62
- export interface MenubarRadioItemProps extends MenuRadioItemProps {
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
- export const MenubarRadioItem: React.ForwardRefExoticComponent<MenubarRadioItemProps & React.RefAttributes<HTMLDivElement>>;
65
- type MenuItemIndicatorProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.ItemIndicator>;
66
- export interface MenubarItemIndicatorProps extends MenuItemIndicatorProps {
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
- export const MenubarItemIndicator: React.ForwardRefExoticComponent<MenubarItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
69
- type MenuSeparatorProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Separator>;
70
- export interface MenubarSeparatorProps extends MenuSeparatorProps {
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
- export const MenubarSeparator: React.ForwardRefExoticComponent<MenubarSeparatorProps & React.RefAttributes<HTMLDivElement>>;
73
- type MenuArrowProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Arrow>;
74
- export interface MenubarArrowProps extends MenuArrowProps {
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
- export const MenubarArrow: React.ForwardRefExoticComponent<MenubarArrowProps & React.RefAttributes<SVGSVGElement>>;
77
- export interface MenubarSubProps {
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
- export const MenubarSub: React.FC<MenubarSubProps>;
84
- type MenuSubTriggerProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubTrigger>;
85
- export interface MenubarSubTriggerProps extends MenuSubTriggerProps {
95
+ declare const MenubarSub: React.FC<MenubarSubProps>;
96
+ declare type MenuSubTriggerProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubTrigger>;
97
+ interface MenubarSubTriggerProps extends MenuSubTriggerProps {
86
98
  }
87
- export const MenubarSubTrigger: React.ForwardRefExoticComponent<MenubarSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
88
- type MenuSubContentProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubContent>;
89
- export interface MenubarSubContentProps extends MenuSubContentProps {
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
- export const MenubarSubContent: React.ForwardRefExoticComponent<MenubarSubContentProps & React.RefAttributes<HTMLDivElement>>;
92
- export const Root: React.ForwardRefExoticComponent<MenubarProps & React.RefAttributes<HTMLDivElement>>;
93
- export const Menu: {
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
- export const Trigger: React.ForwardRefExoticComponent<MenubarTriggerProps & React.RefAttributes<HTMLButtonElement>>;
98
- export const Portal: React.FC<MenubarPortalProps>;
99
- export const Content: React.ForwardRefExoticComponent<MenubarContentProps & React.RefAttributes<HTMLDivElement>>;
100
- export const Group: React.ForwardRefExoticComponent<MenubarGroupProps & React.RefAttributes<HTMLDivElement>>;
101
- export const Label: React.ForwardRefExoticComponent<MenubarLabelProps & React.RefAttributes<HTMLDivElement>>;
102
- export const Item: React.ForwardRefExoticComponent<MenubarItemProps & React.RefAttributes<HTMLDivElement>>;
103
- export const CheckboxItem: React.ForwardRefExoticComponent<MenubarCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
104
- export const RadioGroup: React.ForwardRefExoticComponent<MenubarRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
105
- export const RadioItem: React.ForwardRefExoticComponent<MenubarRadioItemProps & React.RefAttributes<HTMLDivElement>>;
106
- export const ItemIndicator: React.ForwardRefExoticComponent<MenubarItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
107
- export const Separator: React.ForwardRefExoticComponent<MenubarSeparatorProps & React.RefAttributes<HTMLDivElement>>;
108
- export const Arrow: React.ForwardRefExoticComponent<MenubarArrowProps & React.RefAttributes<SVGSVGElement>>;
109
- export const Sub: React.FC<MenubarSubProps>;
110
- export const SubTrigger: React.ForwardRefExoticComponent<MenubarSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
111
- export const SubContent: React.ForwardRefExoticComponent<MenubarSubContentProps & React.RefAttributes<HTMLDivElement>>;
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
- //# sourceMappingURL=index.d.ts.map
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 "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 } from "@radix-ui/react-context";
7
- type ScopedProps<P> = P & {
8
- __scopeMenubar?: Scope;
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
- export const createMenubarScope: import("@radix-ui/react-context").CreateScope;
11
- type RovingFocusGroupProps = Radix.ComponentPropsWithoutRef<typeof RovingFocusGroup.Root>;
12
- type PrimitiveDivProps = Radix.ComponentPropsWithoutRef<typeof Primitive.div>;
13
- export interface MenubarProps extends PrimitiveDivProps {
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
- export const Menubar: React.ForwardRefExoticComponent<MenubarProps & React.RefAttributes<HTMLDivElement>>;
21
- export interface MenubarMenuProps {
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
- export const MenubarMenu: {
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
- export interface MenubarTriggerProps extends PrimitiveButtonProps {
41
+ declare type PrimitiveButtonProps = Radix.ComponentPropsWithoutRef<typeof Primitive.button>;
42
+ interface MenubarTriggerProps extends PrimitiveButtonProps {
31
43
  }
32
- export const MenubarTrigger: React.ForwardRefExoticComponent<MenubarTriggerProps & React.RefAttributes<HTMLButtonElement>>;
33
- type MenuPortalProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Portal>;
34
- export interface MenubarPortalProps extends MenuPortalProps {
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
- export const MenubarPortal: React.FC<MenubarPortalProps>;
37
- type MenuContentProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Content>;
38
- export interface MenubarContentProps extends Omit<MenuContentProps, 'onEntryFocus'> {
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
- export const MenubarContent: React.ForwardRefExoticComponent<MenubarContentProps & React.RefAttributes<HTMLDivElement>>;
41
- type MenuGroupProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Group>;
42
- export interface MenubarGroupProps extends MenuGroupProps {
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
- export const MenubarGroup: React.ForwardRefExoticComponent<MenubarGroupProps & React.RefAttributes<HTMLDivElement>>;
45
- type MenuLabelProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Label>;
46
- export interface MenubarLabelProps extends MenuLabelProps {
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
- export const MenubarLabel: React.ForwardRefExoticComponent<MenubarLabelProps & React.RefAttributes<HTMLDivElement>>;
49
- type MenuItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Item>;
50
- export interface MenubarItemProps extends MenuItemProps {
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
- export const MenubarItem: React.ForwardRefExoticComponent<MenubarItemProps & React.RefAttributes<HTMLDivElement>>;
53
- type MenuCheckboxItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.CheckboxItem>;
54
- export interface MenubarCheckboxItemProps extends MenuCheckboxItemProps {
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
- export const MenubarCheckboxItem: React.ForwardRefExoticComponent<MenubarCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
57
- type MenuRadioGroupProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioGroup>;
58
- export interface MenubarRadioGroupProps extends MenuRadioGroupProps {
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
- export const MenubarRadioGroup: React.ForwardRefExoticComponent<MenubarRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
61
- type MenuRadioItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioItem>;
62
- export interface MenubarRadioItemProps extends MenuRadioItemProps {
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
- export const MenubarRadioItem: React.ForwardRefExoticComponent<MenubarRadioItemProps & React.RefAttributes<HTMLDivElement>>;
65
- type MenuItemIndicatorProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.ItemIndicator>;
66
- export interface MenubarItemIndicatorProps extends MenuItemIndicatorProps {
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
- export const MenubarItemIndicator: React.ForwardRefExoticComponent<MenubarItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
69
- type MenuSeparatorProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Separator>;
70
- export interface MenubarSeparatorProps extends MenuSeparatorProps {
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
- export const MenubarSeparator: React.ForwardRefExoticComponent<MenubarSeparatorProps & React.RefAttributes<HTMLDivElement>>;
73
- type MenuArrowProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Arrow>;
74
- export interface MenubarArrowProps extends MenuArrowProps {
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
- export const MenubarArrow: React.ForwardRefExoticComponent<MenubarArrowProps & React.RefAttributes<SVGSVGElement>>;
77
- export interface MenubarSubProps {
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
- export const MenubarSub: React.FC<MenubarSubProps>;
84
- type MenuSubTriggerProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubTrigger>;
85
- export interface MenubarSubTriggerProps extends MenuSubTriggerProps {
95
+ declare const MenubarSub: React.FC<MenubarSubProps>;
96
+ declare type MenuSubTriggerProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubTrigger>;
97
+ interface MenubarSubTriggerProps extends MenuSubTriggerProps {
86
98
  }
87
- export const MenubarSubTrigger: React.ForwardRefExoticComponent<MenubarSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
88
- type MenuSubContentProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubContent>;
89
- export interface MenubarSubContentProps extends MenuSubContentProps {
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
- export const MenubarSubContent: React.ForwardRefExoticComponent<MenubarSubContentProps & React.RefAttributes<HTMLDivElement>>;
92
- export const Root: React.ForwardRefExoticComponent<MenubarProps & React.RefAttributes<HTMLDivElement>>;
93
- export const Menu: {
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
- export const Trigger: React.ForwardRefExoticComponent<MenubarTriggerProps & React.RefAttributes<HTMLButtonElement>>;
98
- export const Portal: React.FC<MenubarPortalProps>;
99
- export const Content: React.ForwardRefExoticComponent<MenubarContentProps & React.RefAttributes<HTMLDivElement>>;
100
- export const Group: React.ForwardRefExoticComponent<MenubarGroupProps & React.RefAttributes<HTMLDivElement>>;
101
- export const Label: React.ForwardRefExoticComponent<MenubarLabelProps & React.RefAttributes<HTMLDivElement>>;
102
- export const Item: React.ForwardRefExoticComponent<MenubarItemProps & React.RefAttributes<HTMLDivElement>>;
103
- export const CheckboxItem: React.ForwardRefExoticComponent<MenubarCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
104
- export const RadioGroup: React.ForwardRefExoticComponent<MenubarRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
105
- export const RadioItem: React.ForwardRefExoticComponent<MenubarRadioItemProps & React.RefAttributes<HTMLDivElement>>;
106
- export const ItemIndicator: React.ForwardRefExoticComponent<MenubarItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
107
- export const Separator: React.ForwardRefExoticComponent<MenubarSeparatorProps & React.RefAttributes<HTMLDivElement>>;
108
- export const Arrow: React.ForwardRefExoticComponent<MenubarArrowProps & React.RefAttributes<SVGSVGElement>>;
109
- export const Sub: React.FC<MenubarSubProps>;
110
- export const SubTrigger: React.ForwardRefExoticComponent<MenubarSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
111
- export const SubContent: React.ForwardRefExoticComponent<MenubarSubContentProps & React.RefAttributes<HTMLDivElement>>;
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
- //# sourceMappingURL=index.d.ts.map
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 };