-
-
Notifications
You must be signed in to change notification settings - Fork 76
/
Copy pathindex.tsx
213 lines (210 loc) · 7.29 KB
/
index.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
import {
MenuCheckboxItem as CheckboxItem,
type MenuCheckboxItemCommonProps as DropdownMenuCheckboxItemCommonProps,
type MenuCheckboxItemOptions as DropdownMenuCheckboxItemOptions,
type MenuCheckboxItemProps as DropdownMenuCheckboxItemProps,
type MenuCheckboxItemRenderProps as DropdownMenuCheckboxItemRenderProps,
type MenuGroupCommonProps as DropdownMenuGroupCommonProps,
type MenuGroupLabelCommonProps as DropdownMenuGroupLabelCommonProps,
type MenuGroupLabelOptions as DropdownMenuGroupLabelOptions,
type MenuGroupLabelProps as DropdownMenuGroupLabelProps,
type MenuGroupLabelRenderProps as DropdownMenuGroupLabelRenderProps,
type MenuGroupOptions as DropdownMenuGroupOptions,
type MenuGroupProps as DropdownMenuGroupProps,
type MenuGroupRenderProps as DropdownMenuGroupRenderProps,
type MenuIconCommonProps as DropdownMenuIconCommonProps,
type MenuIconOptions as DropdownMenuIconOptions,
type MenuIconProps as DropdownMenuIconProps,
type MenuIconRenderProps as DropdownMenuIconRenderProps,
type MenuItemCommonProps as DropdownMenuItemCommonProps,
type MenuItemDescriptionCommonProps as DropdownMenuItemDescriptionCommonProps,
type MenuItemDescriptionOptions as DropdownMenuItemDescriptionOptions,
type MenuItemDescriptionProps as DropdownMenuItemDescriptionProps,
type MenuItemDescriptionRenderProps as DropdownMenuItemDescriptionRenderProps,
type MenuItemIndicatorCommonProps as DropdownMenuItemIndicatorCommonProps,
type MenuItemIndicatorOptions as DropdownMenuItemIndicatorOptions,
type MenuItemIndicatorProps as DropdownMenuItemIndicatorProps,
type MenuItemIndicatorRenderProps as DropdownMenuItemIndicatorRenderProps,
type MenuItemLabelCommonProps as DropdownMenuItemLabelCommonProps,
type MenuItemLabelOptions as DropdownMenuItemLabelOptions,
type MenuItemLabelProps as DropdownMenuItemLabelProps,
type MenuItemLabelRenderProps as DropdownMenuItemLabelRenderProps,
type MenuItemOptions as DropdownMenuItemOptions,
type MenuItemProps as DropdownMenuItemProps,
type MenuItemRenderProps as DropdownMenuItemRenderProps,
type MenuPortalProps as DropdownMenuPortalProps,
type MenuRadioGroupCommonProps as DropdownMenuRadioGroupCommonProps,
type MenuRadioGroupOptions as DropdownMenuRadioGroupOptions,
type MenuRadioGroupProps as DropdownMenuRadioGroupProps,
type MenuRadioGroupRenderProps as DropdownMenuRadioGroupRenderProps,
type MenuRadioItemCommonProps as DropdownMenuRadioItemCommonProps,
type MenuRadioItemOptions as DropdownMenuRadioItemOptions,
type MenuRadioItemRenderProps as DropdownMenuRadioItemPRenderrops,
type MenuRadioItemProps as DropdownMenuRadioItemProps,
type MenuSubContentCommonProps as DropdownMenuSubContentCommonProps,
type MenuSubContentOptions as DropdownMenuSubContentOptions,
type MenuSubContentProps as DropdownMenuSubContentProps,
type MenuSubContentRenderProps as DropdownMenuSubContentRenderProps,
type MenuSubOptions as DropdownMenuSubOptions,
type MenuSubProps as DropdownMenuSubProps,
type MenuSubTriggerCommonProps as DropdownMenuSubTriggerCommonProps,
type MenuSubTriggerOptions as DropdownMenuSubTriggerOptions,
type MenuSubTriggerProps as DropdownMenuSubTriggerProps,
type MenuSubTriggerRenderProps as DropdownMenuSubTriggerRenderProps,
type MenuTriggerCommonProps as DropdownMenuTriggerCommonProps,
type MenuTriggerOptions as DropdownMenuTriggerOptions,
type MenuTriggerProps as DropdownMenuTriggerProps,
type MenuTriggerRenderProps as DropdownMenuTriggerRenderProps,
MenuGroup as Group,
MenuGroupLabel as GroupLabel,
MenuIcon as Icon,
MenuItem as Item,
MenuItemDescription as ItemDescription,
MenuItemIndicator as ItemIndicator,
MenuItemLabel as ItemLabel,
MenuPortal as Portal,
MenuRadioGroup as RadioGroup,
MenuRadioItem as RadioItem,
MenuSub as Sub,
MenuSubContent as SubContent,
MenuSubTrigger as SubTrigger,
MenuTrigger as Trigger,
} from "../menu";
import {
Arrow,
type PopperArrowCommonProps as DropdownMenuArrowCommonProps,
type PopperArrowOptions as DropdownMenuArrowOptions,
type PopperArrowProps as DropdownMenuArrowProps,
type PopperArrowRenderProps as DropdownMenuArrowRenderProps,
} from "../popper";
import {
type SeparatorRootCommonProps as DropdownMenuSeparatorCommonProps,
type SeparatorRootOptions as DropdownMenuSeparatorOptions,
type SeparatorRootProps as DropdownMenuSeparatorProps,
type SeparatorRootRenderProps as DropdownMenuSeparatorRenderProps,
Root as Separator,
} from "../separator";
import {
DropdownMenuContent as Content,
type DropdownMenuContentCommonProps,
type DropdownMenuContentOptions,
type DropdownMenuContentProps,
type DropdownMenuContentRenderProps,
} from "./dropdown-menu-content";
import {
type DropdownMenuRootOptions,
type DropdownMenuRootProps,
DropdownMenuRoot as Root,
} from "./dropdown-menu-root";
export type {
DropdownMenuArrowOptions,
DropdownMenuArrowCommonProps,
DropdownMenuArrowRenderProps,
DropdownMenuArrowProps,
DropdownMenuCheckboxItemOptions,
DropdownMenuCheckboxItemCommonProps,
DropdownMenuCheckboxItemRenderProps,
DropdownMenuCheckboxItemProps,
DropdownMenuContentOptions,
DropdownMenuContentCommonProps,
DropdownMenuContentRenderProps,
DropdownMenuContentProps,
DropdownMenuGroupLabelOptions,
DropdownMenuGroupLabelCommonProps,
DropdownMenuGroupLabelRenderProps,
DropdownMenuGroupLabelProps,
DropdownMenuGroupOptions,
DropdownMenuGroupCommonProps,
DropdownMenuGroupRenderProps,
DropdownMenuGroupProps,
DropdownMenuIconOptions,
DropdownMenuIconCommonProps,
DropdownMenuIconRenderProps,
DropdownMenuIconProps,
DropdownMenuItemDescriptionOptions,
DropdownMenuItemDescriptionCommonProps,
DropdownMenuItemDescriptionRenderProps,
DropdownMenuItemDescriptionProps,
DropdownMenuItemIndicatorOptions,
DropdownMenuItemIndicatorCommonProps,
DropdownMenuItemIndicatorRenderProps,
DropdownMenuItemIndicatorProps,
DropdownMenuItemLabelOptions,
DropdownMenuItemLabelCommonProps,
DropdownMenuItemLabelRenderProps,
DropdownMenuItemLabelProps,
DropdownMenuItemOptions,
DropdownMenuItemCommonProps,
DropdownMenuItemRenderProps,
DropdownMenuItemProps,
DropdownMenuPortalProps,
DropdownMenuRadioGroupOptions,
DropdownMenuRadioGroupCommonProps,
DropdownMenuRadioGroupRenderProps,
DropdownMenuRadioGroupProps,
DropdownMenuRadioItemOptions,
DropdownMenuRadioItemCommonProps,
DropdownMenuRadioItemPRenderrops,
DropdownMenuRadioItemProps,
DropdownMenuRootOptions,
DropdownMenuRootProps,
DropdownMenuSeparatorOptions,
DropdownMenuSeparatorCommonProps,
DropdownMenuSeparatorRenderProps,
DropdownMenuSeparatorProps,
DropdownMenuSubContentOptions,
DropdownMenuSubContentCommonProps,
DropdownMenuSubContentRenderProps,
DropdownMenuSubContentProps,
DropdownMenuSubOptions,
DropdownMenuSubProps,
DropdownMenuSubTriggerOptions,
DropdownMenuSubTriggerCommonProps,
DropdownMenuSubTriggerRenderProps,
DropdownMenuSubTriggerProps,
DropdownMenuTriggerOptions,
DropdownMenuTriggerCommonProps,
DropdownMenuTriggerRenderProps,
DropdownMenuTriggerProps,
};
export {
Arrow,
CheckboxItem,
Content,
Group,
GroupLabel,
Icon,
Item,
ItemDescription,
ItemIndicator,
ItemLabel,
Portal,
RadioGroup,
RadioItem,
Root,
Separator,
Sub,
SubContent,
SubTrigger,
Trigger,
};
export const DropdownMenu = Object.assign(Root, {
Arrow,
CheckboxItem,
Content,
Group,
GroupLabel,
Icon,
Item,
ItemDescription,
ItemIndicator,
ItemLabel,
Portal,
RadioGroup,
RadioItem,
Separator,
Sub,
SubContent,
SubTrigger,
Trigger,
});