@radix-ui/react-dropdown-menu 2.0.7-rc.9 → 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 CHANGED
@@ -1,10 +1,22 @@
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
- type Direction = 'ltr' | 'rtl';
6
- export const createDropdownMenuScope: import("@radix-ui/react-context").CreateScope;
7
- export interface DropdownMenuProps {
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
- export const DropdownMenu: React.FC<DropdownMenuProps>;
16
- type PrimitiveButtonProps = Radix.ComponentPropsWithoutRef<typeof Primitive.button>;
17
- export interface DropdownMenuTriggerProps extends PrimitiveButtonProps {
27
+ declare const DropdownMenu: React.FC<DropdownMenuProps>;
28
+ declare type PrimitiveButtonProps = Radix.ComponentPropsWithoutRef<typeof Primitive.button>;
29
+ interface DropdownMenuTriggerProps extends PrimitiveButtonProps {
18
30
  }
19
- export const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
20
- type MenuPortalProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Portal>;
21
- export interface DropdownMenuPortalProps extends MenuPortalProps {
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
- export const DropdownMenuPortal: React.FC<DropdownMenuPortalProps>;
24
- type MenuContentProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Content>;
25
- export interface DropdownMenuContentProps extends Omit<MenuContentProps, 'onEntryFocus'> {
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
- export const DropdownMenuContent: React.ForwardRefExoticComponent<DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>>;
28
- type MenuGroupProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Group>;
29
- export interface DropdownMenuGroupProps extends MenuGroupProps {
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
- export const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
32
- type MenuLabelProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Label>;
33
- export interface DropdownMenuLabelProps extends MenuLabelProps {
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
- export const DropdownMenuLabel: React.ForwardRefExoticComponent<DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>>;
36
- type MenuItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Item>;
37
- export interface DropdownMenuItemProps extends MenuItemProps {
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
- export const DropdownMenuItem: React.ForwardRefExoticComponent<DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>>;
40
- type MenuCheckboxItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.CheckboxItem>;
41
- export interface DropdownMenuCheckboxItemProps extends MenuCheckboxItemProps {
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
- export const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
44
- type MenuRadioGroupProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioGroup>;
45
- export interface DropdownMenuRadioGroupProps extends MenuRadioGroupProps {
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
- export const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
48
- type MenuRadioItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioItem>;
49
- export interface DropdownMenuRadioItemProps extends MenuRadioItemProps {
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
- export const DropdownMenuRadioItem: React.ForwardRefExoticComponent<DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>>;
52
- type MenuItemIndicatorProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.ItemIndicator>;
53
- export interface DropdownMenuItemIndicatorProps extends MenuItemIndicatorProps {
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
- export const DropdownMenuItemIndicator: React.ForwardRefExoticComponent<DropdownMenuItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
56
- type MenuSeparatorProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Separator>;
57
- export interface DropdownMenuSeparatorProps extends MenuSeparatorProps {
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
- export const DropdownMenuSeparator: React.ForwardRefExoticComponent<DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>>;
60
- type MenuArrowProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Arrow>;
61
- export interface DropdownMenuArrowProps extends MenuArrowProps {
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
- export const DropdownMenuArrow: React.ForwardRefExoticComponent<DropdownMenuArrowProps & React.RefAttributes<SVGSVGElement>>;
64
- export interface DropdownMenuSubProps {
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
- export const DropdownMenuSub: React.FC<DropdownMenuSubProps>;
71
- type MenuSubTriggerProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubTrigger>;
72
- export interface DropdownMenuSubTriggerProps extends MenuSubTriggerProps {
73
- }
74
- export const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
75
- type MenuSubContentProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubContent>;
76
- export interface DropdownMenuSubContentProps extends MenuSubContentProps {
77
- }
78
- export const DropdownMenuSubContent: React.ForwardRefExoticComponent<DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>>;
79
- export const Root: React.FC<DropdownMenuProps>;
80
- export const Trigger: React.ForwardRefExoticComponent<DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
81
- export const Portal: React.FC<DropdownMenuPortalProps>;
82
- export const Content: React.ForwardRefExoticComponent<DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>>;
83
- export const Group: React.ForwardRefExoticComponent<DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
84
- export const Label: React.ForwardRefExoticComponent<DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>>;
85
- export const Item: React.ForwardRefExoticComponent<DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>>;
86
- export const CheckboxItem: React.ForwardRefExoticComponent<DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
87
- export const RadioGroup: React.ForwardRefExoticComponent<DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
88
- export const RadioItem: React.ForwardRefExoticComponent<DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>>;
89
- export const ItemIndicator: React.ForwardRefExoticComponent<DropdownMenuItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
90
- export const Separator: React.ForwardRefExoticComponent<DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>>;
91
- export const Arrow: React.ForwardRefExoticComponent<DropdownMenuArrowProps & React.RefAttributes<SVGSVGElement>>;
92
- export const Sub: React.FC<DropdownMenuSubProps>;
93
- export const SubTrigger: React.ForwardRefExoticComponent<DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
94
- export const SubContent: React.ForwardRefExoticComponent<DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>>;
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
- //# sourceMappingURL=index.d.ts.map
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 "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
- type Direction = 'ltr' | 'rtl';
6
- export const createDropdownMenuScope: import("@radix-ui/react-context").CreateScope;
7
- export interface DropdownMenuProps {
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
- export const DropdownMenu: React.FC<DropdownMenuProps>;
16
- type PrimitiveButtonProps = Radix.ComponentPropsWithoutRef<typeof Primitive.button>;
17
- export interface DropdownMenuTriggerProps extends PrimitiveButtonProps {
27
+ declare const DropdownMenu: React.FC<DropdownMenuProps>;
28
+ declare type PrimitiveButtonProps = Radix.ComponentPropsWithoutRef<typeof Primitive.button>;
29
+ interface DropdownMenuTriggerProps extends PrimitiveButtonProps {
18
30
  }
19
- export const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
20
- type MenuPortalProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Portal>;
21
- export interface DropdownMenuPortalProps extends MenuPortalProps {
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
- export const DropdownMenuPortal: React.FC<DropdownMenuPortalProps>;
24
- type MenuContentProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Content>;
25
- export interface DropdownMenuContentProps extends Omit<MenuContentProps, 'onEntryFocus'> {
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
- export const DropdownMenuContent: React.ForwardRefExoticComponent<DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>>;
28
- type MenuGroupProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Group>;
29
- export interface DropdownMenuGroupProps extends MenuGroupProps {
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
- export const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
32
- type MenuLabelProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Label>;
33
- export interface DropdownMenuLabelProps extends MenuLabelProps {
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
- export const DropdownMenuLabel: React.ForwardRefExoticComponent<DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>>;
36
- type MenuItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Item>;
37
- export interface DropdownMenuItemProps extends MenuItemProps {
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
- export const DropdownMenuItem: React.ForwardRefExoticComponent<DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>>;
40
- type MenuCheckboxItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.CheckboxItem>;
41
- export interface DropdownMenuCheckboxItemProps extends MenuCheckboxItemProps {
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
- export const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
44
- type MenuRadioGroupProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioGroup>;
45
- export interface DropdownMenuRadioGroupProps extends MenuRadioGroupProps {
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
- export const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
48
- type MenuRadioItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioItem>;
49
- export interface DropdownMenuRadioItemProps extends MenuRadioItemProps {
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
- export const DropdownMenuRadioItem: React.ForwardRefExoticComponent<DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>>;
52
- type MenuItemIndicatorProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.ItemIndicator>;
53
- export interface DropdownMenuItemIndicatorProps extends MenuItemIndicatorProps {
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
- export const DropdownMenuItemIndicator: React.ForwardRefExoticComponent<DropdownMenuItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
56
- type MenuSeparatorProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Separator>;
57
- export interface DropdownMenuSeparatorProps extends MenuSeparatorProps {
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
- export const DropdownMenuSeparator: React.ForwardRefExoticComponent<DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>>;
60
- type MenuArrowProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Arrow>;
61
- export interface DropdownMenuArrowProps extends MenuArrowProps {
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
- export const DropdownMenuArrow: React.ForwardRefExoticComponent<DropdownMenuArrowProps & React.RefAttributes<SVGSVGElement>>;
64
- export interface DropdownMenuSubProps {
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
- export const DropdownMenuSub: React.FC<DropdownMenuSubProps>;
71
- type MenuSubTriggerProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubTrigger>;
72
- export interface DropdownMenuSubTriggerProps extends MenuSubTriggerProps {
73
- }
74
- export const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
75
- type MenuSubContentProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubContent>;
76
- export interface DropdownMenuSubContentProps extends MenuSubContentProps {
77
- }
78
- export const DropdownMenuSubContent: React.ForwardRefExoticComponent<DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>>;
79
- export const Root: React.FC<DropdownMenuProps>;
80
- export const Trigger: React.ForwardRefExoticComponent<DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
81
- export const Portal: React.FC<DropdownMenuPortalProps>;
82
- export const Content: React.ForwardRefExoticComponent<DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>>;
83
- export const Group: React.ForwardRefExoticComponent<DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
84
- export const Label: React.ForwardRefExoticComponent<DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>>;
85
- export const Item: React.ForwardRefExoticComponent<DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>>;
86
- export const CheckboxItem: React.ForwardRefExoticComponent<DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
87
- export const RadioGroup: React.ForwardRefExoticComponent<DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
88
- export const RadioItem: React.ForwardRefExoticComponent<DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>>;
89
- export const ItemIndicator: React.ForwardRefExoticComponent<DropdownMenuItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
90
- export const Separator: React.ForwardRefExoticComponent<DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>>;
91
- export const Arrow: React.ForwardRefExoticComponent<DropdownMenuArrowProps & React.RefAttributes<SVGSVGElement>>;
92
- export const Sub: React.FC<DropdownMenuSubProps>;
93
- export const SubTrigger: React.ForwardRefExoticComponent<DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
94
- export const SubContent: React.ForwardRefExoticComponent<DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>>;
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
- //# sourceMappingURL=index.d.ts.map
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 };