@me1a/ui 2.0.12 → 2.0.14

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.
Files changed (73) hide show
  1. package/dist/chunk-472YNZU2.mjs +2 -0
  2. package/dist/chunk-472YNZU2.mjs.map +1 -0
  3. package/dist/chunk-FWZYVYLU.mjs +2 -0
  4. package/dist/chunk-FWZYVYLU.mjs.map +1 -0
  5. package/dist/chunk-GH5JAZCC.js +2 -0
  6. package/dist/chunk-GH5JAZCC.js.map +1 -0
  7. package/dist/chunk-H3TEQK57.mjs +2 -0
  8. package/dist/chunk-H3TEQK57.mjs.map +1 -0
  9. package/dist/chunk-IPKT3LIP.js +2 -0
  10. package/dist/chunk-IPKT3LIP.js.map +1 -0
  11. package/dist/chunk-KITWXTCP.js +2 -0
  12. package/dist/chunk-KITWXTCP.js.map +1 -0
  13. package/dist/chunk-NCY2ZNET.js +2 -0
  14. package/dist/chunk-NCY2ZNET.js.map +1 -0
  15. package/dist/chunk-OAVWSSYJ.mjs +2 -0
  16. package/dist/chunk-OAVWSSYJ.mjs.map +1 -0
  17. package/dist/chunk-Q6STEQO7.js +2 -0
  18. package/dist/chunk-Q6STEQO7.js.map +1 -0
  19. package/dist/chunk-QY2HB6BB.mjs +2 -0
  20. package/dist/chunk-QY2HB6BB.mjs.map +1 -0
  21. package/dist/chunk-XY7LUWOK.mjs +2 -0
  22. package/dist/chunk-XY7LUWOK.mjs.map +1 -0
  23. package/dist/chunk-ZEUOBWG4.js +2 -0
  24. package/dist/chunk-ZEUOBWG4.js.map +1 -0
  25. package/dist/components/atoms/index.d.mts +483 -0
  26. package/dist/components/atoms/index.d.ts +483 -0
  27. package/dist/components/atoms/index.js +2 -0
  28. package/dist/components/atoms/index.js.map +1 -0
  29. package/dist/components/atoms/index.mjs +2 -0
  30. package/dist/components/atoms/index.mjs.map +1 -0
  31. package/dist/components/molecules/index.d.mts +368 -0
  32. package/dist/components/molecules/index.d.ts +368 -0
  33. package/dist/components/molecules/index.js +2 -0
  34. package/dist/components/molecules/index.js.map +1 -0
  35. package/dist/components/molecules/index.mjs +2 -0
  36. package/dist/components/molecules/index.mjs.map +1 -0
  37. package/dist/components/organisms/index.d.mts +531 -0
  38. package/dist/components/organisms/index.d.ts +531 -0
  39. package/dist/components/organisms/index.js +2 -0
  40. package/dist/components/organisms/index.js.map +1 -0
  41. package/dist/components/organisms/index.mjs +2 -0
  42. package/dist/components/organisms/index.mjs.map +1 -0
  43. package/dist/hooks/index.d.mts +3 -0
  44. package/dist/hooks/index.d.ts +3 -0
  45. package/dist/hooks/index.js +2 -0
  46. package/dist/hooks/index.js.map +1 -0
  47. package/dist/hooks/index.mjs +2 -0
  48. package/dist/hooks/index.mjs.map +1 -0
  49. package/dist/input-TJ_d3ROF.d.mts +12 -0
  50. package/dist/input-TJ_d3ROF.d.ts +12 -0
  51. package/dist/tooltip-Bam0zJCO.d.mts +104 -0
  52. package/dist/tooltip-Bam0zJCO.d.ts +104 -0
  53. package/dist/types/index.d.mts +2 -0
  54. package/dist/types/index.d.ts +2 -0
  55. package/dist/types/index.js +2 -0
  56. package/dist/types/index.js.map +1 -0
  57. package/dist/types/index.mjs +2 -0
  58. package/dist/types/index.mjs.map +1 -0
  59. package/dist/utils/index.d.mts +5 -0
  60. package/dist/utils/index.d.ts +5 -0
  61. package/dist/utils/index.js +2 -0
  62. package/dist/utils/index.js.map +1 -0
  63. package/dist/utils/index.mjs +2 -0
  64. package/dist/utils/index.mjs.map +1 -0
  65. package/package.json +38 -1
  66. package/dist/index.css +0 -2
  67. package/dist/index.css.map +0 -1
  68. package/dist/index.d.mts +0 -1475
  69. package/dist/index.d.ts +0 -1475
  70. package/dist/index.js +0 -2
  71. package/dist/index.js.map +0 -1
  72. package/dist/index.mjs +0 -2
  73. package/dist/index.mjs.map +0 -1
@@ -0,0 +1,531 @@
1
+ import * as vaul from 'vaul';
2
+ import { Drawer as Drawer$1 } from 'vaul';
3
+ import * as DialogPrimitive from '@radix-ui/react-dialog';
4
+ import * as react_jsx_runtime from 'react/jsx-runtime';
5
+ import * as React$1 from 'react';
6
+ import * as class_variance_authority_types from 'class-variance-authority/types';
7
+ import * as SeparatorPrimitive from '@radix-ui/react-separator';
8
+ import { T as TooltipContent, B as ButtonProps } from '../../tooltip-Bam0zJCO.js';
9
+ import { VariantProps } from 'class-variance-authority';
10
+ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
11
+ import '@radix-ui/react-tooltip';
12
+
13
+ declare const Drawer: {
14
+ ({ shouldScaleBackground, ...props }: React$1.ComponentProps<typeof Drawer$1.Root>): react_jsx_runtime.JSX.Element;
15
+ displayName: string;
16
+ };
17
+ /**
18
+ * The trigger element that opens the drawer.
19
+ * Should be used with the `asChild` prop to wrap your own trigger element.
20
+ */
21
+ declare const DrawerTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
22
+ /**
23
+ * Portal component that renders the drawer content outside the DOM hierarchy.
24
+ * This ensures proper stacking context and accessibility.
25
+ */
26
+ declare const DrawerPortal: typeof vaul.Portal;
27
+ /**
28
+ * Close button component for the drawer.
29
+ * Should be used with the `asChild` prop to wrap your own close button.
30
+ */
31
+ declare const DrawerClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
32
+ /**
33
+ * Overlay component that appears behind the drawer.
34
+ * Provides a semi-transparent backdrop and handles click-outside behavior.
35
+ */
36
+ declare const DrawerOverlay: React$1.ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
37
+ /**
38
+ * The main content container for the drawer.
39
+ * Includes the handle bar at the top and manages the slide-up animation.
40
+ */
41
+ declare const DrawerContent: React$1.ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
42
+ /**
43
+ * Header section of the drawer.
44
+ * Typically contains the title and description.
45
+ */
46
+ declare const DrawerHeader: {
47
+ ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
48
+ displayName: string;
49
+ };
50
+ /**
51
+ * Footer section of the drawer.
52
+ * Typically contains action buttons.
53
+ */
54
+ declare const DrawerFooter: {
55
+ ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
56
+ displayName: string;
57
+ };
58
+ /**
59
+ * Title component for the drawer.
60
+ * Should be used within DrawerHeader.
61
+ */
62
+ declare const DrawerTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
63
+ /**
64
+ * Description component for the drawer.
65
+ * Should be used within DrawerHeader.
66
+ */
67
+ declare const DrawerDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
68
+
69
+ type SidebarContextProps$1 = {
70
+ state: "expanded" | "collapsed";
71
+ open: boolean;
72
+ setOpen: (open: boolean) => void;
73
+ openMobile: boolean;
74
+ setOpenMobile: (open: boolean) => void;
75
+ isMobile: boolean;
76
+ toggleSidebar: () => void;
77
+ };
78
+ declare function useSidebar(): SidebarContextProps$1;
79
+ declare const SidebarProvider: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & {
80
+ defaultOpen?: boolean;
81
+ open?: boolean;
82
+ onOpenChange?: (open: boolean) => void;
83
+ }, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
84
+ /**
85
+ * A flexible sidebar component that supports various layouts and configurations.
86
+ * The sidebar can be positioned on either side of the screen and supports different
87
+ * visual styles and collapse behaviors.
88
+ *
89
+ * @url https://segiimelnykov.github.io/ui/?path=/docs/organisms-sidebar--docs
90
+ *
91
+ * @example
92
+ * ```tsx
93
+ * <Sidebar>
94
+ * <SidebarHeader>
95
+ * <SidebarTitle>Dashboard</SidebarTitle>
96
+ * </SidebarHeader>
97
+ * <SidebarContent>
98
+ * <SidebarMenu>
99
+ * <SidebarMenuItem icon={<HomeIcon />}>Home</SidebarMenuItem>
100
+ * <SidebarMenuItem icon={<SettingsIcon />}>Settings</SidebarMenuItem>
101
+ * </SidebarMenu>
102
+ * </SidebarContent>
103
+ * <SidebarFooter>
104
+ * <SidebarTrigger />
105
+ * </SidebarFooter>
106
+ * </Sidebar>
107
+ * ```
108
+ */
109
+ declare const Sidebar: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & {
110
+ side?: "left" | "right";
111
+ variant?: "sidebar" | "floating" | "inset";
112
+ collapsible?: "offcanvas" | "icon" | "none";
113
+ }, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
114
+ declare const SidebarTrigger: React$1.ForwardRefExoticComponent<Omit<ButtonProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
115
+ declare const SidebarRail: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
116
+ declare const SidebarInset: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
117
+ declare const SidebarInput: React$1.ForwardRefExoticComponent<Omit<Omit<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
118
+ declare const SidebarHeader: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
119
+ declare const SidebarFooter: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
120
+ declare const SidebarSeparator: React$1.ForwardRefExoticComponent<Omit<Omit<SeparatorPrimitive.SeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
121
+ declare const SidebarContent: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
122
+ declare const SidebarGroup: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
123
+ declare const SidebarGroupLabel: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & {
124
+ asChild?: boolean;
125
+ }, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
126
+ declare const SidebarGroupAction: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLButtonElement> & React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
127
+ asChild?: boolean;
128
+ }, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
129
+ declare const SidebarGroupContent: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
130
+ declare const SidebarMenu: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React$1.RefAttributes<HTMLUListElement>>;
131
+ declare const SidebarMenuItem: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React$1.RefAttributes<HTMLLIElement>>;
132
+ declare const sidebarMenuButtonVariants: (props?: ({
133
+ variant?: "default" | "outline" | null | undefined;
134
+ size?: "default" | "sm" | "lg" | null | undefined;
135
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
136
+ declare const SidebarMenuButton: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLButtonElement> & React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
137
+ asChild?: boolean;
138
+ isActive?: boolean;
139
+ tooltip?: string | React$1.ComponentProps<typeof TooltipContent>;
140
+ } & VariantProps<(props?: ({
141
+ variant?: "default" | "outline" | null | undefined;
142
+ size?: "default" | "sm" | "lg" | null | undefined;
143
+ } & class_variance_authority_types.ClassProp) | undefined) => string>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
144
+ declare const SidebarMenuAction: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLButtonElement> & React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
145
+ asChild?: boolean;
146
+ showOnHover?: boolean;
147
+ }, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
148
+ declare const SidebarMenuBadge: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
149
+ declare const SidebarMenuSkeleton: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & {
150
+ showIcon?: boolean;
151
+ }, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
152
+ declare const SidebarMenuSub: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React$1.RefAttributes<HTMLUListElement>>;
153
+ declare const SidebarMenuSubItem: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React$1.RefAttributes<HTMLLIElement>>;
154
+ declare const SidebarMenuSubButton: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLAnchorElement> & React$1.AnchorHTMLAttributes<HTMLAnchorElement> & {
155
+ asChild?: boolean;
156
+ size?: "sm" | "md";
157
+ isActive?: boolean;
158
+ }, "ref"> & React$1.RefAttributes<HTMLAnchorElement>>;
159
+
160
+ type SidebarContextProps = {
161
+ state: "expanded" | "collapsed";
162
+ open: boolean;
163
+ setOpen: (open: boolean) => void;
164
+ openMobile: boolean;
165
+ setOpenMobile: (open: boolean) => void;
166
+ isMobile: boolean;
167
+ toggleSidebar: () => void;
168
+ };
169
+ type SidebarProps = React$1.ComponentProps<"div"> & {
170
+ side?: "left" | "right";
171
+ variant?: "sidebar" | "floating" | "inset";
172
+ collapsible?: "offcanvas" | "icon" | "none";
173
+ };
174
+ type SidebarProviderProps = React$1.ComponentProps<"div"> & {
175
+ defaultOpen?: boolean;
176
+ open?: boolean;
177
+ onOpenChange?: (open: boolean) => void;
178
+ };
179
+ type SidebarMenuButtonProps = React$1.ComponentProps<"button"> & {
180
+ asChild?: boolean;
181
+ isActive?: boolean;
182
+ tooltip?: string | React$1.ComponentProps<typeof TooltipContent>;
183
+ } & VariantProps<typeof sidebarMenuButtonVariants>;
184
+ type SidebarMenuActionProps = React$1.ComponentProps<"button"> & {
185
+ asChild?: boolean;
186
+ showOnHover?: boolean;
187
+ };
188
+ type SidebarMenuSubButtonProps = React$1.ComponentProps<"a"> & {
189
+ asChild?: boolean;
190
+ size?: "sm" | "md";
191
+ isActive?: boolean;
192
+ };
193
+ type SidebarMenuSkeletonProps = React$1.ComponentProps<"div"> & {
194
+ showIcon?: boolean;
195
+ };
196
+ type SidebarGroupLabelProps = React$1.ComponentProps<"div"> & {
197
+ asChild?: boolean;
198
+ };
199
+ type SidebarGroupActionProps = React$1.ComponentProps<"button"> & {
200
+ asChild?: boolean;
201
+ };
202
+
203
+ /**
204
+ * DropdownMenu component for creating accessible dropdown menus.
205
+ * Built on top of Radix UI's DropdownMenu primitive.
206
+ *
207
+ * @url https://segiimelnykov.github.io/ui/?path=/docs/organisms-dropdown-menu--docs
208
+ *
209
+ * @example
210
+ * ```tsx
211
+ * <DropdownMenu>
212
+ * <DropdownMenuTrigger>Open Menu</DropdownMenuTrigger>
213
+ * <DropdownMenuContent>
214
+ * <DropdownMenuItem>Item 1</DropdownMenuItem>
215
+ * <DropdownMenuItem>Item 2</DropdownMenuItem>
216
+ * <DropdownMenuItem>Item 3</DropdownMenuItem>
217
+ * </DropdownMenuContent>
218
+ * </DropdownMenu>
219
+ * ```
220
+ */
221
+ declare const DropdownMenu: React$1.FC<DropdownMenuPrimitive.DropdownMenuProps>;
222
+ declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
223
+ declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
224
+ declare const DropdownMenuPortal: React$1.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
225
+ declare const DropdownMenuSub: React$1.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
226
+ declare const DropdownMenuRadioGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
227
+ declare const DropdownMenuSubTrigger: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
228
+ inset?: boolean;
229
+ } & React$1.RefAttributes<HTMLDivElement>>;
230
+ declare const DropdownMenuSubContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
231
+ declare const DropdownMenuContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
232
+ declare const DropdownMenuItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
233
+ inset?: boolean;
234
+ } & React$1.RefAttributes<HTMLDivElement>>;
235
+ declare const DropdownMenuCheckboxItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
236
+ declare const DropdownMenuRadioItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
237
+ declare const DropdownMenuLabel: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
238
+ inset?: boolean;
239
+ } & React$1.RefAttributes<HTMLDivElement>>;
240
+ declare const DropdownMenuSeparator: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
241
+ declare const DropdownMenuShortcut: {
242
+ ({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
243
+ displayName: string;
244
+ };
245
+
246
+ declare const dropdownMenuTriggerStyle: (props?: ({
247
+ variant?: "link" | "default" | "outline" | "ghost" | null | undefined;
248
+ size?: "default" | "sm" | "lg" | "icon" | null | undefined;
249
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
250
+
251
+ type DropdownMenuTriggerVariants = VariantProps<typeof dropdownMenuTriggerStyle>;
252
+ interface DropdownMenuProps {
253
+ /**
254
+ * The content of the dropdown menu
255
+ */
256
+ children: React.ReactNode;
257
+ /**
258
+ * The open state of the dropdown menu
259
+ */
260
+ open?: boolean;
261
+ /**
262
+ * The default open state of the dropdown menu
263
+ */
264
+ defaultOpen?: boolean;
265
+ /**
266
+ * The controlled open state of the dropdown menu
267
+ */
268
+ onOpenChange?: (open: boolean) => void;
269
+ /**
270
+ * The modal state of the dropdown menu
271
+ */
272
+ modal?: boolean;
273
+ }
274
+ interface DropdownMenuTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, DropdownMenuTriggerVariants {
275
+ /**
276
+ * The content of the trigger
277
+ */
278
+ children: React.ReactNode;
279
+ /**
280
+ * The variant of the trigger
281
+ */
282
+ variant?: DropdownMenuTriggerVariants["variant"];
283
+ /**
284
+ * The size of the trigger
285
+ */
286
+ size?: DropdownMenuTriggerVariants["size"];
287
+ }
288
+ interface DropdownMenuContentProps extends React.HTMLAttributes<HTMLDivElement> {
289
+ /**
290
+ * The content of the dropdown menu
291
+ */
292
+ children: React.ReactNode;
293
+ /**
294
+ * The side offset of the dropdown menu
295
+ */
296
+ sideOffset?: number;
297
+ /**
298
+ * The align offset of the dropdown menu
299
+ */
300
+ alignOffset?: number;
301
+ /**
302
+ * The side of the dropdown menu
303
+ */
304
+ side?: "top" | "right" | "bottom" | "left";
305
+ /**
306
+ * The alignment of the dropdown menu
307
+ */
308
+ align?: "start" | "center" | "end";
309
+ /**
310
+ * The collision padding of the dropdown menu
311
+ */
312
+ collisionPadding?: number;
313
+ /**
314
+ * The collision boundary of the dropdown menu
315
+ */
316
+ collisionBoundary?: Element | null | Array<Element | null>;
317
+ /**
318
+ * The arrow padding of the dropdown menu
319
+ */
320
+ arrowPadding?: number;
321
+ /**
322
+ * The sticky state of the dropdown menu
323
+ */
324
+ sticky?: "partial" | "always";
325
+ /**
326
+ * The hide when detached state of the dropdown menu
327
+ */
328
+ hideWhenDetached?: boolean;
329
+ /**
330
+ * The update position strategy of the dropdown menu
331
+ */
332
+ updatePositionStrategy?: "optimized" | "always";
333
+ /**
334
+ * The force mount state of the dropdown menu
335
+ */
336
+ forceMount?: boolean;
337
+ /**
338
+ * The container of the dropdown menu
339
+ */
340
+ container?: HTMLElement;
341
+ }
342
+ interface DropdownMenuItemProps extends React.HTMLAttributes<HTMLDivElement> {
343
+ /**
344
+ * The content of the dropdown menu item
345
+ */
346
+ children: React.ReactNode;
347
+ /**
348
+ * The inset state of the dropdown menu item
349
+ */
350
+ inset?: boolean;
351
+ /**
352
+ * The disabled state of the dropdown menu item
353
+ */
354
+ disabled?: boolean;
355
+ /**
356
+ * The selected state of the dropdown menu item
357
+ */
358
+ selected?: boolean;
359
+ }
360
+ interface DropdownMenuCheckboxItemProps extends React.HTMLAttributes<HTMLDivElement> {
361
+ /**
362
+ * The content of the dropdown menu checkbox item
363
+ */
364
+ children: React.ReactNode;
365
+ /**
366
+ * The checked state of the dropdown menu checkbox item
367
+ */
368
+ checked?: boolean;
369
+ /**
370
+ * The disabled state of the dropdown menu checkbox item
371
+ */
372
+ disabled?: boolean;
373
+ /**
374
+ * The on checked change handler of the dropdown menu checkbox item
375
+ */
376
+ onCheckedChange?: (checked: boolean) => void;
377
+ }
378
+ interface DropdownMenuRadioItemProps extends React.HTMLAttributes<HTMLDivElement> {
379
+ /**
380
+ * The content of the dropdown menu radio item
381
+ */
382
+ children: React.ReactNode;
383
+ /**
384
+ * The value of the dropdown menu radio item
385
+ */
386
+ value: string;
387
+ /**
388
+ * The disabled state of the dropdown menu radio item
389
+ */
390
+ disabled?: boolean;
391
+ }
392
+ interface DropdownMenuLabelProps extends React.HTMLAttributes<HTMLDivElement> {
393
+ /**
394
+ * The content of the dropdown menu label
395
+ */
396
+ children: React.ReactNode;
397
+ /**
398
+ * The inset state of the dropdown menu label
399
+ */
400
+ inset?: boolean;
401
+ }
402
+ interface DropdownMenuSeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
403
+ }
404
+ interface DropdownMenuShortcutProps extends React.HTMLAttributes<HTMLSpanElement> {
405
+ /**
406
+ * The content of the dropdown menu shortcut
407
+ */
408
+ children: React.ReactNode;
409
+ }
410
+ interface DropdownMenuGroupProps extends React.HTMLAttributes<HTMLDivElement> {
411
+ /**
412
+ * The content of the dropdown menu group
413
+ */
414
+ children: React.ReactNode;
415
+ }
416
+ interface DropdownMenuPortalProps {
417
+ /**
418
+ * The content of the dropdown menu portal
419
+ */
420
+ children: React.ReactNode;
421
+ /**
422
+ * The container of the dropdown menu portal
423
+ */
424
+ container?: HTMLElement;
425
+ }
426
+ interface DropdownMenuSubProps {
427
+ /**
428
+ * The content of the dropdown menu sub
429
+ */
430
+ children: React.ReactNode;
431
+ /**
432
+ * The open state of the dropdown menu sub
433
+ */
434
+ open?: boolean;
435
+ /**
436
+ * The default open state of the dropdown menu sub
437
+ */
438
+ defaultOpen?: boolean;
439
+ /**
440
+ * The controlled open state of the dropdown menu sub
441
+ */
442
+ onOpenChange?: (open: boolean) => void;
443
+ }
444
+ interface DropdownMenuSubContentProps extends React.HTMLAttributes<HTMLDivElement> {
445
+ /**
446
+ * The content of the dropdown menu sub content
447
+ */
448
+ children: React.ReactNode;
449
+ /**
450
+ * The side offset of the dropdown menu sub content
451
+ */
452
+ sideOffset?: number;
453
+ /**
454
+ * The align offset of the dropdown menu sub content
455
+ */
456
+ alignOffset?: number;
457
+ /**
458
+ * The side of the dropdown menu sub content
459
+ */
460
+ side?: "top" | "right" | "bottom" | "left";
461
+ /**
462
+ * The alignment of the dropdown menu sub content
463
+ */
464
+ align?: "start" | "center" | "end";
465
+ /**
466
+ * The collision padding of the dropdown menu sub content
467
+ */
468
+ collisionPadding?: number;
469
+ /**
470
+ * The collision boundary of the dropdown menu sub content
471
+ */
472
+ collisionBoundary?: Element | null | Array<Element | null>;
473
+ /**
474
+ * The arrow padding of the dropdown menu sub content
475
+ */
476
+ arrowPadding?: number;
477
+ /**
478
+ * The sticky state of the dropdown menu sub content
479
+ */
480
+ sticky?: "partial" | "always";
481
+ /**
482
+ * The hide when detached state of the dropdown menu sub content
483
+ */
484
+ hideWhenDetached?: boolean;
485
+ /**
486
+ * The update position strategy of the dropdown menu sub content
487
+ */
488
+ updatePositionStrategy?: "optimized" | "always";
489
+ /**
490
+ * The force mount state of the dropdown menu sub content
491
+ */
492
+ forceMount?: boolean;
493
+ /**
494
+ * The container of the dropdown menu sub content
495
+ */
496
+ container?: HTMLElement;
497
+ }
498
+ interface DropdownMenuSubTriggerProps extends React.HTMLAttributes<HTMLDivElement> {
499
+ /**
500
+ * The content of the dropdown menu sub trigger
501
+ */
502
+ children: React.ReactNode;
503
+ /**
504
+ * The inset state of the dropdown menu sub trigger
505
+ */
506
+ inset?: boolean;
507
+ /**
508
+ * The disabled state of the dropdown menu sub trigger
509
+ */
510
+ disabled?: boolean;
511
+ }
512
+ interface DropdownMenuRadioGroupProps {
513
+ /**
514
+ * The content of the dropdown menu radio group
515
+ */
516
+ children: React.ReactNode;
517
+ /**
518
+ * The value of the dropdown menu radio group
519
+ */
520
+ value?: string;
521
+ /**
522
+ * The default value of the dropdown menu radio group
523
+ */
524
+ defaultValue?: string;
525
+ /**
526
+ * The controlled value of the dropdown menu radio group
527
+ */
528
+ onValueChange?: (value: string) => void;
529
+ }
530
+
531
+ export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, type DropdownMenuGroupProps, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, type DropdownMenuPortalProps, type DropdownMenuProps, DropdownMenuRadioGroup, type DropdownMenuRadioGroupProps, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuShortcut, type DropdownMenuShortcutProps, DropdownMenuSub, DropdownMenuSubContent, type DropdownMenuSubContentProps, type DropdownMenuSubProps, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, Sidebar, SidebarContent, type SidebarContextProps, SidebarFooter, SidebarGroup, SidebarGroupAction, type SidebarGroupActionProps, SidebarGroupContent, SidebarGroupLabel, type SidebarGroupLabelProps, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, type SidebarMenuActionProps, SidebarMenuBadge, SidebarMenuButton, type SidebarMenuButtonProps, SidebarMenuItem, SidebarMenuSkeleton, type SidebarMenuSkeletonProps, SidebarMenuSub, SidebarMenuSubButton, type SidebarMenuSubButtonProps, SidebarMenuSubItem, type SidebarProps, SidebarProvider, type SidebarProviderProps, SidebarRail, SidebarSeparator, SidebarTrigger, sidebarMenuButtonVariants, useSidebar };
@@ -0,0 +1,2 @@
1
+ 'use strict';var chunkQ6STEQO7_js=require('../../chunk-Q6STEQO7.js'),chunkZEUOBWG4_js=require('../../chunk-ZEUOBWG4.js'),chunkGH5JAZCC_js=require('../../chunk-GH5JAZCC.js'),chunkKITWXTCP_js=require('../../chunk-KITWXTCP.js'),chunkNCY2ZNET_js=require('../../chunk-NCY2ZNET.js'),p=require('react'),vaul=require('vaul'),jsxRuntime=require('react/jsx-runtime'),reactSlot=require('@radix-ui/react-slot'),classVarianceAuthority=require('class-variance-authority'),lucideReact=require('lucide-react'),l=require('@radix-ui/react-dropdown-menu');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var p__namespace=/*#__PURE__*/_interopNamespace(p);var l__namespace=/*#__PURE__*/_interopNamespace(l);var pe=o=>{var r=o,{shouldScaleBackground:t=true}=r,e=chunkNCY2ZNET_js.c(r,["shouldScaleBackground"]);return jsxRuntime.jsx(vaul.Drawer.Root,chunkNCY2ZNET_js.a({shouldScaleBackground:t},e))};pe.displayName="Drawer";var it=vaul.Drawer.Trigger,ce=vaul.Drawer.Portal,dt=vaul.Drawer.Close,J=p__namespace.forwardRef((r,o)=>{var a=r,{className:t}=a,e=chunkNCY2ZNET_js.c(a,["className"]);return jsxRuntime.jsx(vaul.Drawer.Overlay,chunkNCY2ZNET_js.a({ref:o,className:chunkKITWXTCP_js.a("fixed inset-0 z-50 bg-black/80",t)},e))});J.displayName=vaul.Drawer.Overlay.displayName;var ue=p__namespace.forwardRef((a,r)=>{var s=a,{className:t,children:e}=s,o=chunkNCY2ZNET_js.c(s,["className","children"]);return jsxRuntime.jsxs(ce,{children:[jsxRuntime.jsx(J,{}),jsxRuntime.jsxs(vaul.Drawer.Content,chunkNCY2ZNET_js.b(chunkNCY2ZNET_js.a({ref:r,className:chunkKITWXTCP_js.a("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",t)},o),{children:[jsxRuntime.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),e]}))]})});ue.displayName="DrawerContent";var me=o=>{var r=o,{className:t}=r,e=chunkNCY2ZNET_js.c(r,["className"]);return jsxRuntime.jsx("div",chunkNCY2ZNET_js.a({className:chunkKITWXTCP_js.a("grid gap-1.5 p-4 text-center sm:text-left",t)},e))};me.displayName="DrawerHeader";var fe=o=>{var r=o,{className:t}=r,e=chunkNCY2ZNET_js.c(r,["className"]);return jsxRuntime.jsx("div",chunkNCY2ZNET_js.a({className:chunkKITWXTCP_js.a("mt-auto flex flex-col gap-2 p-4",t)},e))};fe.displayName="DrawerFooter";var be=p__namespace.forwardRef((r,o)=>{var a=r,{className:t}=a,e=chunkNCY2ZNET_js.c(a,["className"]);return jsxRuntime.jsx(vaul.Drawer.Title,chunkNCY2ZNET_js.a({ref:o,className:chunkKITWXTCP_js.a("text-lg font-semibold leading-none tracking-tight",t)},e))});be.displayName=vaul.Drawer.Title.displayName;var ge=p__namespace.forwardRef((r,o)=>{var a=r,{className:t}=a,e=chunkNCY2ZNET_js.c(a,["className"]);return jsxRuntime.jsx(vaul.Drawer.Description,chunkNCY2ZNET_js.a({ref:o,className:chunkKITWXTCP_js.a("text-sm text-muted-foreground",t)},e))});ge.displayName=vaul.Drawer.Description.displayName;var Re="sidebar_state",he=60*60*24*7,Me="16rem",xe="18rem",De="3rem",ye="b",Q=p__namespace.createContext(null);function k(){let t=p__namespace.useContext(Q);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}var Se=p__namespace.forwardRef((P,g)=>{var D=P,{defaultOpen:t=true,open:e,onOpenChange:o,className:r,style:a,children:s}=D,u=chunkNCY2ZNET_js.c(D,["defaultOpen","open","onOpenChange","className","style","children"]);let v=chunkQ6STEQO7_js.a(),[y,h]=p__namespace.useState(false),[I,se]=p__namespace.useState(t),C=e!=null?e:I,E=p__namespace.useCallback(w=>{let M=typeof w=="function"?w(C):w;o?o(M):se(M),document.cookie=`${Re}=${M}; path=/; max-age=${he}`;},[o,C]),L=p__namespace.useCallback(()=>v?h(w=>!w):E(w=>!w),[v,E,h]);p__namespace.useEffect(()=>{let w=M=>{M.key===ye&&(M.metaKey||M.ctrlKey)&&(M.preventDefault(),L());};return window.addEventListener("keydown",w),()=>window.removeEventListener("keydown",w)},[L]);let z=C?"expanded":"collapsed",le=p__namespace.useMemo(()=>({state:z,open:C,setOpen:E,isMobile:v,openMobile:y,setOpenMobile:h,toggleSidebar:L}),[z,C,E,v,y,h,L]);return jsxRuntime.jsx(Q.Provider,{value:le,children:jsxRuntime.jsx(chunkZEUOBWG4_js.o,{delayDuration:0,children:jsxRuntime.jsx("div",chunkNCY2ZNET_js.b(chunkNCY2ZNET_js.a({style:chunkNCY2ZNET_js.a({"--sidebar-width":Me,"--sidebar-width-icon":De},a),className:chunkKITWXTCP_js.a("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",r),ref:g},u),{children:s}))})})});Se.displayName="SidebarProvider";var Pe=p__namespace.forwardRef((g,u)=>{var P=g,{side:t="left",variant:e="sidebar",collapsible:o="offcanvas",className:r,children:a}=P,s=chunkNCY2ZNET_js.c(P,["side","variant","collapsible","className","children"]);let{isMobile:D,state:v,openMobile:y,setOpenMobile:h}=k();return o==="none"?jsxRuntime.jsx("div",chunkNCY2ZNET_js.b(chunkNCY2ZNET_js.a({className:chunkKITWXTCP_js.a("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:u},s),{children:a})):D?jsxRuntime.jsx(chunkZEUOBWG4_js.d,chunkNCY2ZNET_js.b(chunkNCY2ZNET_js.a({open:y,onOpenChange:h},s),{children:jsxRuntime.jsxs(chunkZEUOBWG4_js.i,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":xe},side:t,children:[jsxRuntime.jsxs(chunkZEUOBWG4_js.j,{className:"sr-only",children:[jsxRuntime.jsx(chunkZEUOBWG4_js.l,{children:"Sidebar"}),jsxRuntime.jsx(chunkZEUOBWG4_js.m,{children:"Displays the mobile sidebar."})]}),jsxRuntime.jsx("div",{className:"flex h-full w-full flex-col",children:a})]})})):jsxRuntime.jsxs("div",{ref:u,className:"group peer hidden text-sidebar-foreground md:block","data-state":v,"data-collapsible":v==="collapsed"?o:"","data-variant":e,"data-side":t,children:[jsxRuntime.jsx("div",{className:chunkKITWXTCP_js.a("relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",e==="floating"||e==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),jsxRuntime.jsx("div",chunkNCY2ZNET_js.b(chunkNCY2ZNET_js.a({className:chunkKITWXTCP_js.a("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",t==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",e==="floating"||e==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r)},s),{children:jsxRuntime.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:a})}))]})});Pe.displayName="Sidebar";var Ce=p__namespace.forwardRef((a,r)=>{var s=a,{className:t,onClick:e}=s,o=chunkNCY2ZNET_js.c(s,["className","onClick"]);let{toggleSidebar:u}=k();return jsxRuntime.jsxs(chunkZEUOBWG4_js.b,chunkNCY2ZNET_js.b(chunkNCY2ZNET_js.a({ref:r,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:chunkKITWXTCP_js.a("h-7 w-7",t),onClick:g=>{e==null||e(g),u();}},o),{children:[jsxRuntime.jsx(lucideReact.PanelLeft,{}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]}))});Ce.displayName="SidebarTrigger";var Ne=p__namespace.forwardRef((r,o)=>{var a=r,{className:t}=a,e=chunkNCY2ZNET_js.c(a,["className"]);let{toggleSidebar:s}=k();return jsxRuntime.jsx("button",chunkNCY2ZNET_js.a({ref:o,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:s,title:"Toggle Sidebar",className:chunkKITWXTCP_js.a("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",t)},e))});Ne.displayName="SidebarRail";var Te=p__namespace.forwardRef((r,o)=>{var a=r,{className:t}=a,e=chunkNCY2ZNET_js.c(a,["className"]);return jsxRuntime.jsx("main",chunkNCY2ZNET_js.a({ref:o,className:chunkKITWXTCP_js.a("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",t)},e))});Te.displayName="SidebarInset";var Ie=p__namespace.forwardRef((r,o)=>{var a=r,{className:t}=a,e=chunkNCY2ZNET_js.c(a,["className"]);return jsxRuntime.jsx(chunkGH5JAZCC_js.a,chunkNCY2ZNET_js.a({ref:o,"data-sidebar":"input",className:chunkKITWXTCP_js.a("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",t)},e))});Ie.displayName="SidebarInput";var Ee=p__namespace.forwardRef((r,o)=>{var a=r,{className:t}=a,e=chunkNCY2ZNET_js.c(a,["className"]);return jsxRuntime.jsx("div",chunkNCY2ZNET_js.a({ref:o,"data-sidebar":"header",className:chunkKITWXTCP_js.a("flex flex-col gap-2 p-2",t)},e))});Ee.displayName="SidebarHeader";var Le=p__namespace.forwardRef((r,o)=>{var a=r,{className:t}=a,e=chunkNCY2ZNET_js.c(a,["className"]);return jsxRuntime.jsx("div",chunkNCY2ZNET_js.a({ref:o,"data-sidebar":"footer",className:chunkKITWXTCP_js.a("flex flex-col gap-2 p-2",t)},e))});Le.displayName="SidebarFooter";var ke=p__namespace.forwardRef((r,o)=>{var a=r,{className:t}=a,e=chunkNCY2ZNET_js.c(a,["className"]);return jsxRuntime.jsx(chunkZEUOBWG4_js.c,chunkNCY2ZNET_js.a({ref:o,"data-sidebar":"separator",className:chunkKITWXTCP_js.a("mx-2 w-auto bg-sidebar-border",t)},e))});ke.displayName="SidebarSeparator";var He=p__namespace.forwardRef((r,o)=>{var a=r,{className:t}=a,e=chunkNCY2ZNET_js.c(a,["className"]);return jsxRuntime.jsx("div",chunkNCY2ZNET_js.a({ref:o,"data-sidebar":"content",className:chunkKITWXTCP_js.a("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",t)},e))});He.displayName="SidebarContent";var _e=p__namespace.forwardRef((r,o)=>{var a=r,{className:t}=a,e=chunkNCY2ZNET_js.c(a,["className"]);return jsxRuntime.jsx("div",chunkNCY2ZNET_js.a({ref:o,"data-sidebar":"group",className:chunkKITWXTCP_js.a("relative flex w-full min-w-0 flex-col p-2",t)},e))});_e.displayName="SidebarGroup";var ze=p__namespace.forwardRef((a,r)=>{var s=a,{className:t,asChild:e=false}=s,o=chunkNCY2ZNET_js.c(s,["className","asChild"]);return jsxRuntime.jsx(e?reactSlot.Slot:"div",chunkNCY2ZNET_js.a({ref:r,"data-sidebar":"group-label",className:chunkKITWXTCP_js.a("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",t)},o))});ze.displayName="SidebarGroupLabel";var Be=p__namespace.forwardRef((a,r)=>{var s=a,{className:t,asChild:e=false}=s,o=chunkNCY2ZNET_js.c(s,["className","asChild"]);return jsxRuntime.jsx(e?reactSlot.Slot:"button",chunkNCY2ZNET_js.a({ref:r,"data-sidebar":"group-action",className:chunkKITWXTCP_js.a("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",t)},o))});Be.displayName="SidebarGroupAction";var Oe=p__namespace.forwardRef((r,o)=>{var a=r,{className:t}=a,e=chunkNCY2ZNET_js.c(a,["className"]);return jsxRuntime.jsx("div",chunkNCY2ZNET_js.a({ref:o,"data-sidebar":"group-content",className:chunkKITWXTCP_js.a("w-full text-sm",t)},e))});Oe.displayName="SidebarGroupContent";var Ae=p__namespace.forwardRef((r,o)=>{var a=r,{className:t}=a,e=chunkNCY2ZNET_js.c(a,["className"]);return jsxRuntime.jsx("ul",chunkNCY2ZNET_js.a({ref:o,"data-sidebar":"menu",className:chunkKITWXTCP_js.a("flex w-full min-w-0 flex-col gap-1",t)},e))});Ae.displayName="SidebarMenu";var Ge=p__namespace.forwardRef((r,o)=>{var a=r,{className:t}=a,e=chunkNCY2ZNET_js.c(a,["className"]);return jsxRuntime.jsx("li",chunkNCY2ZNET_js.a({ref:o,"data-sidebar":"menu-item",className:chunkKITWXTCP_js.a("group/menu-item relative",t)},e))});Ge.displayName="SidebarMenuItem";var We=classVarianceAuthority.cva("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),Ke=p__namespace.forwardRef((P,g)=>{var D=P,{asChild:t=false,isActive:e=false,variant:o="default",size:r="default",tooltip:a,className:s}=D,u=chunkNCY2ZNET_js.c(D,["asChild","isActive","variant","size","tooltip","className"]);let v=t?reactSlot.Slot:"button",{isMobile:y,state:h}=k(),I=jsxRuntime.jsx(v,chunkNCY2ZNET_js.a({ref:g,"data-sidebar":"menu-button","data-size":r,"data-active":e,className:chunkKITWXTCP_js.a(We({variant:o,size:r}),s)},u));return a?(typeof a=="string"&&(a={children:a}),jsxRuntime.jsxs(chunkZEUOBWG4_js.p,{children:[jsxRuntime.jsx(chunkZEUOBWG4_js.q,{asChild:true,children:I}),jsxRuntime.jsx(chunkZEUOBWG4_js.r,chunkNCY2ZNET_js.a({side:"right",align:"center",hidden:h!=="collapsed"||y},a))]})):I});Ke.displayName="SidebarMenuButton";var Ve=p__namespace.forwardRef((s,a)=>{var u=s,{className:t,asChild:e=false,showOnHover:o=false}=u,r=chunkNCY2ZNET_js.c(u,["className","asChild","showOnHover"]);return jsxRuntime.jsx(e?reactSlot.Slot:"button",chunkNCY2ZNET_js.a({ref:a,"data-sidebar":"menu-action",className:chunkKITWXTCP_js.a("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",o&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",t)},r))});Ve.displayName="SidebarMenuAction";var Fe=p__namespace.forwardRef((r,o)=>{var a=r,{className:t}=a,e=chunkNCY2ZNET_js.c(a,["className"]);return jsxRuntime.jsx("div",chunkNCY2ZNET_js.a({ref:o,"data-sidebar":"menu-badge",className:chunkKITWXTCP_js.a("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",t)},e))});Fe.displayName="SidebarMenuBadge";var $e=p__namespace.forwardRef((a,r)=>{var s=a,{className:t,showIcon:e=false}=s,o=chunkNCY2ZNET_js.c(s,["className","showIcon"]);let u=p__namespace.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return jsxRuntime.jsxs("div",chunkNCY2ZNET_js.b(chunkNCY2ZNET_js.a({ref:r,"data-sidebar":"menu-skeleton",className:chunkKITWXTCP_js.a("flex h-8 items-center gap-2 rounded-md px-2",t)},o),{children:[e&&jsxRuntime.jsx(chunkZEUOBWG4_js.n,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),jsxRuntime.jsx(chunkZEUOBWG4_js.n,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":u}})]}))});$e.displayName="SidebarMenuSkeleton";var Ue=p__namespace.forwardRef((r,o)=>{var a=r,{className:t}=a,e=chunkNCY2ZNET_js.c(a,["className"]);return jsxRuntime.jsx("ul",chunkNCY2ZNET_js.a({ref:o,"data-sidebar":"menu-sub",className:chunkKITWXTCP_js.a("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",t)},e))});Ue.displayName="SidebarMenuSub";var je=p__namespace.forwardRef((o,e)=>{var t=chunkNCY2ZNET_js.c(o,[]);return jsxRuntime.jsx("li",chunkNCY2ZNET_js.a({ref:e},t))});je.displayName="SidebarMenuSubItem";var qe=p__namespace.forwardRef((u,s)=>{var g=u,{asChild:t=false,size:e="md",isActive:o,className:r}=g,a=chunkNCY2ZNET_js.c(g,["asChild","size","isActive","className"]);return jsxRuntime.jsx(t?reactSlot.Slot:"a",chunkNCY2ZNET_js.a({ref:s,"data-sidebar":"menu-sub-button","data-size":e,"data-active":o,className:chunkKITWXTCP_js.a("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",e==="sm"&&"text-xs",e==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r)},a))});qe.displayName="SidebarMenuSubButton";var Qe=l__namespace.Root,Ze=l__namespace.Trigger,et=l__namespace.Group,tt=l__namespace.Portal,at=l__namespace.Sub,ot=l__namespace.RadioGroup,Z=p__namespace.forwardRef((s,a)=>{var u=s,{className:t,inset:e,children:o}=u,r=chunkNCY2ZNET_js.c(u,["className","inset","children"]);return jsxRuntime.jsxs(l__namespace.SubTrigger,chunkNCY2ZNET_js.b(chunkNCY2ZNET_js.a({ref:a,className:chunkKITWXTCP_js.a("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",e&&"pl-8",t)},r),{children:[o,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto h-4 w-4"})]}))});Z.displayName=l__namespace.SubTrigger.displayName;var ee=p__namespace.forwardRef((r,o)=>{var a=r,{className:t}=a,e=chunkNCY2ZNET_js.c(a,["className"]);return jsxRuntime.jsx(l__namespace.SubContent,chunkNCY2ZNET_js.a({ref:o,className:chunkKITWXTCP_js.a("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t)},e))});ee.displayName=l__namespace.SubContent.displayName;var te=p__namespace.forwardRef((a,r)=>{var s=a,{className:t,sideOffset:e=4}=s,o=chunkNCY2ZNET_js.c(s,["className","sideOffset"]);return jsxRuntime.jsx(l__namespace.Portal,{children:jsxRuntime.jsx(l__namespace.Content,chunkNCY2ZNET_js.a({ref:r,sideOffset:e,className:chunkKITWXTCP_js.a("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t)},o))})});te.displayName=l__namespace.Content.displayName;var ae=p__namespace.forwardRef((a,r)=>{var s=a,{className:t,inset:e}=s,o=chunkNCY2ZNET_js.c(s,["className","inset"]);return jsxRuntime.jsx(l__namespace.Item,chunkNCY2ZNET_js.a({ref:r,className:chunkKITWXTCP_js.a("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e&&"pl-8",t)},o))});ae.displayName=l__namespace.Item.displayName;var oe=p__namespace.forwardRef((s,a)=>{var u=s,{className:t,children:e,checked:o}=u,r=chunkNCY2ZNET_js.c(u,["className","children","checked"]);return jsxRuntime.jsxs(l__namespace.CheckboxItem,chunkNCY2ZNET_js.b(chunkNCY2ZNET_js.a({ref:a,className:chunkKITWXTCP_js.a("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:o},r),{children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(l__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),e]}))});oe.displayName=l__namespace.CheckboxItem.displayName;var re=p__namespace.forwardRef((a,r)=>{var s=a,{className:t,children:e}=s,o=chunkNCY2ZNET_js.c(s,["className","children"]);return jsxRuntime.jsxs(l__namespace.RadioItem,chunkNCY2ZNET_js.b(chunkNCY2ZNET_js.a({ref:r,className:chunkKITWXTCP_js.a("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t)},o),{children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(l__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-2 w-2 fill-current"})})}),e]}))});re.displayName=l__namespace.RadioItem.displayName;var ne=p__namespace.forwardRef((a,r)=>{var s=a,{className:t,inset:e}=s,o=chunkNCY2ZNET_js.c(s,["className","inset"]);return jsxRuntime.jsx(l__namespace.Label,chunkNCY2ZNET_js.a({ref:r,className:chunkKITWXTCP_js.a("px-2 py-1.5 text-sm font-semibold",e&&"pl-8",t)},o))});ne.displayName=l__namespace.Label.displayName;var ie=p__namespace.forwardRef((r,o)=>{var a=r,{className:t}=a,e=chunkNCY2ZNET_js.c(a,["className"]);return jsxRuntime.jsx(l__namespace.Separator,chunkNCY2ZNET_js.a({ref:o,className:chunkKITWXTCP_js.a("-mx-1 my-1 h-px bg-muted",t)},e))});ie.displayName=l__namespace.Separator.displayName;var de=o=>{var r=o,{className:t}=r,e=chunkNCY2ZNET_js.c(r,["className"]);return jsxRuntime.jsx("span",chunkNCY2ZNET_js.a({className:chunkKITWXTCP_js.a("ml-auto text-xs tracking-widest opacity-60",t)},e))};de.displayName="DropdownMenuShortcut";exports.Drawer=pe;exports.DrawerClose=dt;exports.DrawerContent=ue;exports.DrawerDescription=ge;exports.DrawerFooter=fe;exports.DrawerHeader=me;exports.DrawerOverlay=J;exports.DrawerPortal=ce;exports.DrawerTitle=be;exports.DrawerTrigger=it;exports.DropdownMenu=Qe;exports.DropdownMenuCheckboxItem=oe;exports.DropdownMenuContent=te;exports.DropdownMenuGroup=et;exports.DropdownMenuItem=ae;exports.DropdownMenuLabel=ne;exports.DropdownMenuPortal=tt;exports.DropdownMenuRadioGroup=ot;exports.DropdownMenuRadioItem=re;exports.DropdownMenuSeparator=ie;exports.DropdownMenuShortcut=de;exports.DropdownMenuSub=at;exports.DropdownMenuSubContent=ee;exports.DropdownMenuSubTrigger=Z;exports.DropdownMenuTrigger=Ze;exports.Sidebar=Pe;exports.SidebarContent=He;exports.SidebarFooter=Le;exports.SidebarGroup=_e;exports.SidebarGroupAction=Be;exports.SidebarGroupContent=Oe;exports.SidebarGroupLabel=ze;exports.SidebarHeader=Ee;exports.SidebarInput=Ie;exports.SidebarInset=Te;exports.SidebarMenu=Ae;exports.SidebarMenuAction=Ve;exports.SidebarMenuBadge=Fe;exports.SidebarMenuButton=Ke;exports.SidebarMenuItem=Ge;exports.SidebarMenuSkeleton=$e;exports.SidebarMenuSub=Ue;exports.SidebarMenuSubButton=qe;exports.SidebarMenuSubItem=je;exports.SidebarProvider=Se;exports.SidebarRail=Ne;exports.SidebarSeparator=ke;exports.SidebarTrigger=Ce;exports.sidebarMenuButtonVariants=We;exports.useSidebar=k;//# sourceMappingURL=index.js.map
2
+ //# sourceMappingURL=index.js.map