@udaymantr/ui 0.1.0
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/LICENSE +21 -0
- package/dist/index.cjs +3432 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +726 -0
- package/dist/index.d.ts +726 -0
- package/dist/index.js +3140 -0
- package/dist/index.js.map +1 -0
- package/package.json +68 -0
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,3432 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/index.ts
|
|
31
|
+
var index_exports = {};
|
|
32
|
+
__export(index_exports, {
|
|
33
|
+
Accordion: () => Accordion,
|
|
34
|
+
AccordionContent: () => AccordionContent,
|
|
35
|
+
AccordionItem: () => AccordionItem,
|
|
36
|
+
AccordionTrigger: () => AccordionTrigger,
|
|
37
|
+
Alert: () => Alert,
|
|
38
|
+
AlertDescription: () => AlertDescription,
|
|
39
|
+
AlertDialog: () => AlertDialog,
|
|
40
|
+
AlertDialogAction: () => AlertDialogAction,
|
|
41
|
+
AlertDialogCancel: () => AlertDialogCancel,
|
|
42
|
+
AlertDialogContent: () => AlertDialogContent,
|
|
43
|
+
AlertDialogDescription: () => AlertDialogDescription,
|
|
44
|
+
AlertDialogFooter: () => AlertDialogFooter,
|
|
45
|
+
AlertDialogHeader: () => AlertDialogHeader,
|
|
46
|
+
AlertDialogOverlay: () => AlertDialogOverlay,
|
|
47
|
+
AlertDialogPortal: () => AlertDialogPortal,
|
|
48
|
+
AlertDialogTitle: () => AlertDialogTitle,
|
|
49
|
+
AlertDialogTrigger: () => AlertDialogTrigger,
|
|
50
|
+
AlertTitle: () => AlertTitle,
|
|
51
|
+
AspectRatio: () => AspectRatio,
|
|
52
|
+
Avatar: () => Avatar,
|
|
53
|
+
AvatarFallback: () => AvatarFallback,
|
|
54
|
+
AvatarImage: () => AvatarImage,
|
|
55
|
+
Badge: () => Badge,
|
|
56
|
+
Breadcrumb: () => Breadcrumb,
|
|
57
|
+
BreadcrumbEllipsis: () => BreadcrumbEllipsis,
|
|
58
|
+
BreadcrumbItem: () => BreadcrumbItem,
|
|
59
|
+
BreadcrumbLink: () => BreadcrumbLink,
|
|
60
|
+
BreadcrumbList: () => BreadcrumbList,
|
|
61
|
+
BreadcrumbPage: () => BreadcrumbPage,
|
|
62
|
+
BreadcrumbSeparator: () => BreadcrumbSeparator,
|
|
63
|
+
Button: () => Button,
|
|
64
|
+
Calendar: () => Calendar,
|
|
65
|
+
Card: () => Card,
|
|
66
|
+
CardContent: () => CardContent,
|
|
67
|
+
CardDescription: () => CardDescription,
|
|
68
|
+
CardFooter: () => CardFooter,
|
|
69
|
+
CardHeader: () => CardHeader,
|
|
70
|
+
CardTitle: () => CardTitle,
|
|
71
|
+
Carousel: () => Carousel,
|
|
72
|
+
CarouselContent: () => CarouselContent,
|
|
73
|
+
CarouselItem: () => CarouselItem,
|
|
74
|
+
CarouselNext: () => CarouselNext,
|
|
75
|
+
CarouselPrevious: () => CarouselPrevious,
|
|
76
|
+
ChartContainer: () => ChartContainer,
|
|
77
|
+
ChartLegend: () => ChartLegend,
|
|
78
|
+
ChartLegendContent: () => ChartLegendContent,
|
|
79
|
+
ChartStyle: () => ChartStyle,
|
|
80
|
+
ChartTooltip: () => ChartTooltip,
|
|
81
|
+
ChartTooltipContent: () => ChartTooltipContent,
|
|
82
|
+
Checkbox: () => Checkbox,
|
|
83
|
+
Collapsible: () => Collapsible,
|
|
84
|
+
CollapsibleContent: () => CollapsibleContent2,
|
|
85
|
+
CollapsibleTrigger: () => CollapsibleTrigger2,
|
|
86
|
+
Command: () => Command,
|
|
87
|
+
CommandDialog: () => CommandDialog,
|
|
88
|
+
CommandEmpty: () => CommandEmpty,
|
|
89
|
+
CommandGroup: () => CommandGroup,
|
|
90
|
+
CommandInput: () => CommandInput,
|
|
91
|
+
CommandItem: () => CommandItem,
|
|
92
|
+
CommandList: () => CommandList,
|
|
93
|
+
CommandSeparator: () => CommandSeparator,
|
|
94
|
+
CommandShortcut: () => CommandShortcut,
|
|
95
|
+
ContextMenu: () => ContextMenu,
|
|
96
|
+
ContextMenuCheckboxItem: () => ContextMenuCheckboxItem,
|
|
97
|
+
ContextMenuContent: () => ContextMenuContent,
|
|
98
|
+
ContextMenuGroup: () => ContextMenuGroup,
|
|
99
|
+
ContextMenuItem: () => ContextMenuItem,
|
|
100
|
+
ContextMenuLabel: () => ContextMenuLabel,
|
|
101
|
+
ContextMenuPortal: () => ContextMenuPortal,
|
|
102
|
+
ContextMenuRadioGroup: () => ContextMenuRadioGroup,
|
|
103
|
+
ContextMenuRadioItem: () => ContextMenuRadioItem,
|
|
104
|
+
ContextMenuSeparator: () => ContextMenuSeparator,
|
|
105
|
+
ContextMenuShortcut: () => ContextMenuShortcut,
|
|
106
|
+
ContextMenuSub: () => ContextMenuSub,
|
|
107
|
+
ContextMenuSubContent: () => ContextMenuSubContent,
|
|
108
|
+
ContextMenuSubTrigger: () => ContextMenuSubTrigger,
|
|
109
|
+
ContextMenuTrigger: () => ContextMenuTrigger,
|
|
110
|
+
Dialog: () => Dialog,
|
|
111
|
+
DialogClose: () => DialogClose,
|
|
112
|
+
DialogContent: () => DialogContent,
|
|
113
|
+
DialogDescription: () => DialogDescription,
|
|
114
|
+
DialogFooter: () => DialogFooter,
|
|
115
|
+
DialogHeader: () => DialogHeader,
|
|
116
|
+
DialogOverlay: () => DialogOverlay,
|
|
117
|
+
DialogPortal: () => DialogPortal,
|
|
118
|
+
DialogTitle: () => DialogTitle,
|
|
119
|
+
DialogTrigger: () => DialogTrigger,
|
|
120
|
+
Drawer: () => Drawer,
|
|
121
|
+
DrawerClose: () => DrawerClose,
|
|
122
|
+
DrawerContent: () => DrawerContent,
|
|
123
|
+
DrawerDescription: () => DrawerDescription,
|
|
124
|
+
DrawerFooter: () => DrawerFooter,
|
|
125
|
+
DrawerHeader: () => DrawerHeader,
|
|
126
|
+
DrawerOverlay: () => DrawerOverlay,
|
|
127
|
+
DrawerPortal: () => DrawerPortal,
|
|
128
|
+
DrawerTitle: () => DrawerTitle,
|
|
129
|
+
DrawerTrigger: () => DrawerTrigger,
|
|
130
|
+
DropdownMenu: () => DropdownMenu,
|
|
131
|
+
DropdownMenuCheckboxItem: () => DropdownMenuCheckboxItem,
|
|
132
|
+
DropdownMenuContent: () => DropdownMenuContent,
|
|
133
|
+
DropdownMenuGroup: () => DropdownMenuGroup,
|
|
134
|
+
DropdownMenuItem: () => DropdownMenuItem,
|
|
135
|
+
DropdownMenuLabel: () => DropdownMenuLabel,
|
|
136
|
+
DropdownMenuPortal: () => DropdownMenuPortal,
|
|
137
|
+
DropdownMenuRadioGroup: () => DropdownMenuRadioGroup,
|
|
138
|
+
DropdownMenuRadioItem: () => DropdownMenuRadioItem,
|
|
139
|
+
DropdownMenuSeparator: () => DropdownMenuSeparator,
|
|
140
|
+
DropdownMenuShortcut: () => DropdownMenuShortcut,
|
|
141
|
+
DropdownMenuSub: () => DropdownMenuSub,
|
|
142
|
+
DropdownMenuSubContent: () => DropdownMenuSubContent,
|
|
143
|
+
DropdownMenuSubTrigger: () => DropdownMenuSubTrigger,
|
|
144
|
+
DropdownMenuTrigger: () => DropdownMenuTrigger,
|
|
145
|
+
Form: () => Form,
|
|
146
|
+
FormControl: () => FormControl,
|
|
147
|
+
FormDescription: () => FormDescription,
|
|
148
|
+
FormField: () => FormField,
|
|
149
|
+
FormItem: () => FormItem,
|
|
150
|
+
FormLabel: () => FormLabel,
|
|
151
|
+
FormMessage: () => FormMessage,
|
|
152
|
+
HoverCard: () => HoverCard,
|
|
153
|
+
HoverCardContent: () => HoverCardContent,
|
|
154
|
+
HoverCardTrigger: () => HoverCardTrigger,
|
|
155
|
+
Input: () => Input,
|
|
156
|
+
InputOTP: () => InputOTP,
|
|
157
|
+
InputOTPGroup: () => InputOTPGroup,
|
|
158
|
+
InputOTPSeparator: () => InputOTPSeparator,
|
|
159
|
+
InputOTPSlot: () => InputOTPSlot,
|
|
160
|
+
Label: () => Label3,
|
|
161
|
+
Menubar: () => Menubar,
|
|
162
|
+
MenubarCheckboxItem: () => MenubarCheckboxItem,
|
|
163
|
+
MenubarContent: () => MenubarContent,
|
|
164
|
+
MenubarGroup: () => MenubarGroup,
|
|
165
|
+
MenubarItem: () => MenubarItem,
|
|
166
|
+
MenubarLabel: () => MenubarLabel,
|
|
167
|
+
MenubarMenu: () => MenubarMenu,
|
|
168
|
+
MenubarPortal: () => MenubarPortal,
|
|
169
|
+
MenubarRadioGroup: () => MenubarRadioGroup,
|
|
170
|
+
MenubarRadioItem: () => MenubarRadioItem,
|
|
171
|
+
MenubarSeparator: () => MenubarSeparator,
|
|
172
|
+
MenubarShortcut: () => MenubarShortcut,
|
|
173
|
+
MenubarSub: () => MenubarSub,
|
|
174
|
+
MenubarSubContent: () => MenubarSubContent,
|
|
175
|
+
MenubarSubTrigger: () => MenubarSubTrigger,
|
|
176
|
+
MenubarTrigger: () => MenubarTrigger,
|
|
177
|
+
NavigationMenu: () => NavigationMenu,
|
|
178
|
+
NavigationMenuContent: () => NavigationMenuContent,
|
|
179
|
+
NavigationMenuIndicator: () => NavigationMenuIndicator,
|
|
180
|
+
NavigationMenuItem: () => NavigationMenuItem,
|
|
181
|
+
NavigationMenuLink: () => NavigationMenuLink,
|
|
182
|
+
NavigationMenuList: () => NavigationMenuList,
|
|
183
|
+
NavigationMenuTrigger: () => NavigationMenuTrigger,
|
|
184
|
+
NavigationMenuViewport: () => NavigationMenuViewport,
|
|
185
|
+
Pagination: () => Pagination,
|
|
186
|
+
PaginationContent: () => PaginationContent,
|
|
187
|
+
PaginationEllipsis: () => PaginationEllipsis,
|
|
188
|
+
PaginationItem: () => PaginationItem,
|
|
189
|
+
PaginationLink: () => PaginationLink,
|
|
190
|
+
PaginationNext: () => PaginationNext,
|
|
191
|
+
PaginationPrevious: () => PaginationPrevious,
|
|
192
|
+
Popover: () => Popover,
|
|
193
|
+
PopoverContent: () => PopoverContent,
|
|
194
|
+
PopoverTrigger: () => PopoverTrigger,
|
|
195
|
+
Progress: () => Progress,
|
|
196
|
+
RadioGroup: () => RadioGroup4,
|
|
197
|
+
RadioGroupItem: () => RadioGroupItem,
|
|
198
|
+
ResizableHandle: () => ResizableHandle,
|
|
199
|
+
ResizablePanel: () => ResizablePanel,
|
|
200
|
+
ResizablePanelGroup: () => ResizablePanelGroup,
|
|
201
|
+
ScrollArea: () => ScrollArea,
|
|
202
|
+
ScrollBar: () => ScrollBar,
|
|
203
|
+
Select: () => Select,
|
|
204
|
+
SelectContent: () => SelectContent,
|
|
205
|
+
SelectGroup: () => SelectGroup,
|
|
206
|
+
SelectItem: () => SelectItem,
|
|
207
|
+
SelectLabel: () => SelectLabel,
|
|
208
|
+
SelectScrollDownButton: () => SelectScrollDownButton,
|
|
209
|
+
SelectScrollUpButton: () => SelectScrollUpButton,
|
|
210
|
+
SelectSeparator: () => SelectSeparator,
|
|
211
|
+
SelectTrigger: () => SelectTrigger,
|
|
212
|
+
SelectValue: () => SelectValue,
|
|
213
|
+
Separator: () => Separator5,
|
|
214
|
+
Sheet: () => Sheet,
|
|
215
|
+
SheetClose: () => SheetClose,
|
|
216
|
+
SheetContent: () => SheetContent,
|
|
217
|
+
SheetDescription: () => SheetDescription,
|
|
218
|
+
SheetFooter: () => SheetFooter,
|
|
219
|
+
SheetHeader: () => SheetHeader,
|
|
220
|
+
SheetOverlay: () => SheetOverlay,
|
|
221
|
+
SheetPortal: () => SheetPortal,
|
|
222
|
+
SheetTitle: () => SheetTitle,
|
|
223
|
+
SheetTrigger: () => SheetTrigger,
|
|
224
|
+
Sidebar: () => Sidebar,
|
|
225
|
+
SidebarContent: () => SidebarContent,
|
|
226
|
+
SidebarFooter: () => SidebarFooter,
|
|
227
|
+
SidebarGroup: () => SidebarGroup,
|
|
228
|
+
SidebarGroupAction: () => SidebarGroupAction,
|
|
229
|
+
SidebarGroupContent: () => SidebarGroupContent,
|
|
230
|
+
SidebarGroupLabel: () => SidebarGroupLabel,
|
|
231
|
+
SidebarHeader: () => SidebarHeader,
|
|
232
|
+
SidebarInput: () => SidebarInput,
|
|
233
|
+
SidebarInset: () => SidebarInset,
|
|
234
|
+
SidebarMenu: () => SidebarMenu,
|
|
235
|
+
SidebarMenuAction: () => SidebarMenuAction,
|
|
236
|
+
SidebarMenuBadge: () => SidebarMenuBadge,
|
|
237
|
+
SidebarMenuButton: () => SidebarMenuButton,
|
|
238
|
+
SidebarMenuItem: () => SidebarMenuItem,
|
|
239
|
+
SidebarMenuSkeleton: () => SidebarMenuSkeleton,
|
|
240
|
+
SidebarMenuSub: () => SidebarMenuSub,
|
|
241
|
+
SidebarMenuSubButton: () => SidebarMenuSubButton,
|
|
242
|
+
SidebarMenuSubItem: () => SidebarMenuSubItem,
|
|
243
|
+
SidebarProvider: () => SidebarProvider,
|
|
244
|
+
SidebarRail: () => SidebarRail,
|
|
245
|
+
SidebarSeparator: () => SidebarSeparator,
|
|
246
|
+
SidebarTrigger: () => SidebarTrigger,
|
|
247
|
+
Skeleton: () => Skeleton,
|
|
248
|
+
Slider: () => Slider,
|
|
249
|
+
Sonner: () => Toaster,
|
|
250
|
+
Switch: () => Switch,
|
|
251
|
+
Table: () => Table,
|
|
252
|
+
TableBody: () => TableBody,
|
|
253
|
+
TableCaption: () => TableCaption,
|
|
254
|
+
TableCell: () => TableCell,
|
|
255
|
+
TableFooter: () => TableFooter,
|
|
256
|
+
TableHead: () => TableHead,
|
|
257
|
+
TableHeader: () => TableHeader,
|
|
258
|
+
TableRow: () => TableRow,
|
|
259
|
+
Tabs: () => Tabs,
|
|
260
|
+
TabsContent: () => TabsContent,
|
|
261
|
+
TabsList: () => TabsList,
|
|
262
|
+
TabsTrigger: () => TabsTrigger,
|
|
263
|
+
Textarea: () => Textarea,
|
|
264
|
+
Toast: () => Toast,
|
|
265
|
+
ToastAction: () => ToastAction,
|
|
266
|
+
ToastClose: () => ToastClose,
|
|
267
|
+
ToastDescription: () => ToastDescription,
|
|
268
|
+
ToastProvider: () => ToastProvider,
|
|
269
|
+
ToastTitle: () => ToastTitle,
|
|
270
|
+
ToastViewport: () => ToastViewport,
|
|
271
|
+
Toaster: () => Toaster2,
|
|
272
|
+
Toggle: () => Toggle,
|
|
273
|
+
ToggleGroup: () => ToggleGroup,
|
|
274
|
+
ToggleGroupItem: () => ToggleGroupItem,
|
|
275
|
+
Tooltip: () => Tooltip2,
|
|
276
|
+
TooltipContent: () => TooltipContent,
|
|
277
|
+
TooltipProvider: () => TooltipProvider,
|
|
278
|
+
TooltipTrigger: () => TooltipTrigger,
|
|
279
|
+
badgeVariants: () => badgeVariants,
|
|
280
|
+
buttonVariants: () => buttonVariants,
|
|
281
|
+
cn: () => cn,
|
|
282
|
+
navigationMenuTriggerStyle: () => navigationMenuTriggerStyle,
|
|
283
|
+
sonnerToast: () => import_sonner.toast,
|
|
284
|
+
toastFn: () => toast2,
|
|
285
|
+
toggleVariants: () => toggleVariants,
|
|
286
|
+
useFormField: () => useFormField,
|
|
287
|
+
useSidebar: () => useSidebar,
|
|
288
|
+
useToast: () => useToast
|
|
289
|
+
});
|
|
290
|
+
module.exports = __toCommonJS(index_exports);
|
|
291
|
+
|
|
292
|
+
// src/components/ui/accordion.tsx
|
|
293
|
+
var React = __toESM(require("react"), 1);
|
|
294
|
+
var AccordionPrimitive = __toESM(require("@radix-ui/react-accordion"), 1);
|
|
295
|
+
var import_lucide_react = require("lucide-react");
|
|
296
|
+
|
|
297
|
+
// src/lib/utils.ts
|
|
298
|
+
var import_clsx = require("clsx");
|
|
299
|
+
var import_tailwind_merge = require("tailwind-merge");
|
|
300
|
+
function cn(...inputs) {
|
|
301
|
+
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
// src/components/ui/accordion.tsx
|
|
305
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
306
|
+
var Accordion = AccordionPrimitive.Root;
|
|
307
|
+
var AccordionItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AccordionPrimitive.Item, { ref, className: cn("border-b", className), ...props }));
|
|
308
|
+
AccordionItem.displayName = "AccordionItem";
|
|
309
|
+
var AccordionTrigger = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
310
|
+
AccordionPrimitive.Trigger,
|
|
311
|
+
{
|
|
312
|
+
ref,
|
|
313
|
+
className: cn(
|
|
314
|
+
"flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",
|
|
315
|
+
className
|
|
316
|
+
),
|
|
317
|
+
...props,
|
|
318
|
+
children: [
|
|
319
|
+
children,
|
|
320
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ChevronDown, { className: "h-4 w-4 shrink-0 transition-transform duration-200" })
|
|
321
|
+
]
|
|
322
|
+
}
|
|
323
|
+
) }));
|
|
324
|
+
AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
|
|
325
|
+
var AccordionContent = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
326
|
+
AccordionPrimitive.Content,
|
|
327
|
+
{
|
|
328
|
+
ref,
|
|
329
|
+
className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
330
|
+
...props,
|
|
331
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: cn("pb-4 pt-0", className), children })
|
|
332
|
+
}
|
|
333
|
+
));
|
|
334
|
+
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
|
335
|
+
|
|
336
|
+
// src/components/ui/alert-dialog.tsx
|
|
337
|
+
var React3 = __toESM(require("react"), 1);
|
|
338
|
+
var AlertDialogPrimitive = __toESM(require("@radix-ui/react-alert-dialog"), 1);
|
|
339
|
+
|
|
340
|
+
// src/components/ui/button.tsx
|
|
341
|
+
var React2 = __toESM(require("react"), 1);
|
|
342
|
+
var import_react_slot = require("@radix-ui/react-slot");
|
|
343
|
+
var import_class_variance_authority = require("class-variance-authority");
|
|
344
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
345
|
+
var buttonVariants = (0, import_class_variance_authority.cva)(
|
|
346
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
347
|
+
{
|
|
348
|
+
variants: {
|
|
349
|
+
variant: {
|
|
350
|
+
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
351
|
+
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
352
|
+
outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
|
|
353
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
354
|
+
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
355
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
356
|
+
},
|
|
357
|
+
size: {
|
|
358
|
+
default: "h-10 px-4 py-2",
|
|
359
|
+
sm: "h-9 rounded-md px-3",
|
|
360
|
+
lg: "h-11 rounded-md px-8",
|
|
361
|
+
icon: "h-10 w-10"
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
defaultVariants: {
|
|
365
|
+
variant: "default",
|
|
366
|
+
size: "default"
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
);
|
|
370
|
+
var Button = React2.forwardRef(
|
|
371
|
+
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
372
|
+
const Comp = asChild ? import_react_slot.Slot : "button";
|
|
373
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Comp, { className: cn(buttonVariants({ variant, size, className })), ref, ...props });
|
|
374
|
+
}
|
|
375
|
+
);
|
|
376
|
+
Button.displayName = "Button";
|
|
377
|
+
|
|
378
|
+
// src/components/ui/alert-dialog.tsx
|
|
379
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
380
|
+
var AlertDialog = AlertDialogPrimitive.Root;
|
|
381
|
+
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
382
|
+
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
383
|
+
var AlertDialogOverlay = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
384
|
+
AlertDialogPrimitive.Overlay,
|
|
385
|
+
{
|
|
386
|
+
className: cn(
|
|
387
|
+
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
388
|
+
className
|
|
389
|
+
),
|
|
390
|
+
...props,
|
|
391
|
+
ref
|
|
392
|
+
}
|
|
393
|
+
));
|
|
394
|
+
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
395
|
+
var AlertDialogContent = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(AlertDialogPortal, { children: [
|
|
396
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(AlertDialogOverlay, {}),
|
|
397
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
398
|
+
AlertDialogPrimitive.Content,
|
|
399
|
+
{
|
|
400
|
+
ref,
|
|
401
|
+
className: cn(
|
|
402
|
+
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
|
|
403
|
+
className
|
|
404
|
+
),
|
|
405
|
+
...props
|
|
406
|
+
}
|
|
407
|
+
)
|
|
408
|
+
] }));
|
|
409
|
+
AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
|
|
410
|
+
var AlertDialogHeader = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: cn("flex flex-col space-y-2 text-center sm:text-left", className), ...props });
|
|
411
|
+
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
412
|
+
var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
|
|
413
|
+
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
414
|
+
var AlertDialogTitle = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(AlertDialogPrimitive.Title, { ref, className: cn("text-lg font-semibold", className), ...props }));
|
|
415
|
+
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
416
|
+
var AlertDialogDescription = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(AlertDialogPrimitive.Description, { ref, className: cn("text-sm text-muted-foreground", className), ...props }));
|
|
417
|
+
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
|
418
|
+
var AlertDialogAction = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(AlertDialogPrimitive.Action, { ref, className: cn(buttonVariants(), className), ...props }));
|
|
419
|
+
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
420
|
+
var AlertDialogCancel = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
421
|
+
AlertDialogPrimitive.Cancel,
|
|
422
|
+
{
|
|
423
|
+
ref,
|
|
424
|
+
className: cn(buttonVariants({ variant: "outline" }), "mt-2 sm:mt-0", className),
|
|
425
|
+
...props
|
|
426
|
+
}
|
|
427
|
+
));
|
|
428
|
+
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
429
|
+
|
|
430
|
+
// src/components/ui/alert.tsx
|
|
431
|
+
var React4 = __toESM(require("react"), 1);
|
|
432
|
+
var import_class_variance_authority2 = require("class-variance-authority");
|
|
433
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
434
|
+
var alertVariants = (0, import_class_variance_authority2.cva)(
|
|
435
|
+
"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
|
|
436
|
+
{
|
|
437
|
+
variants: {
|
|
438
|
+
variant: {
|
|
439
|
+
default: "bg-background text-foreground",
|
|
440
|
+
destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"
|
|
441
|
+
}
|
|
442
|
+
},
|
|
443
|
+
defaultVariants: {
|
|
444
|
+
variant: "default"
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
);
|
|
448
|
+
var Alert = React4.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { ref, role: "alert", className: cn(alertVariants({ variant }), className), ...props }));
|
|
449
|
+
Alert.displayName = "Alert";
|
|
450
|
+
var AlertTitle = React4.forwardRef(
|
|
451
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("h5", { ref, className: cn("mb-1 font-medium leading-none tracking-tight", className), ...props })
|
|
452
|
+
);
|
|
453
|
+
AlertTitle.displayName = "AlertTitle";
|
|
454
|
+
var AlertDescription = React4.forwardRef(
|
|
455
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { ref, className: cn("text-sm [&_p]:leading-relaxed", className), ...props })
|
|
456
|
+
);
|
|
457
|
+
AlertDescription.displayName = "AlertDescription";
|
|
458
|
+
|
|
459
|
+
// src/components/ui/aspect-ratio.tsx
|
|
460
|
+
var AspectRatioPrimitive = __toESM(require("@radix-ui/react-aspect-ratio"), 1);
|
|
461
|
+
var AspectRatio = AspectRatioPrimitive.Root;
|
|
462
|
+
|
|
463
|
+
// src/components/ui/avatar.tsx
|
|
464
|
+
var React5 = __toESM(require("react"), 1);
|
|
465
|
+
var AvatarPrimitive = __toESM(require("@radix-ui/react-avatar"), 1);
|
|
466
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
467
|
+
var Avatar = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
468
|
+
AvatarPrimitive.Root,
|
|
469
|
+
{
|
|
470
|
+
ref,
|
|
471
|
+
className: cn("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", className),
|
|
472
|
+
...props
|
|
473
|
+
}
|
|
474
|
+
));
|
|
475
|
+
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
476
|
+
var AvatarImage = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(AvatarPrimitive.Image, { ref, className: cn("aspect-square h-full w-full", className), ...props }));
|
|
477
|
+
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
478
|
+
var AvatarFallback = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
479
|
+
AvatarPrimitive.Fallback,
|
|
480
|
+
{
|
|
481
|
+
ref,
|
|
482
|
+
className: cn("flex h-full w-full items-center justify-center rounded-full bg-muted", className),
|
|
483
|
+
...props
|
|
484
|
+
}
|
|
485
|
+
));
|
|
486
|
+
AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
487
|
+
|
|
488
|
+
// src/components/ui/badge.tsx
|
|
489
|
+
var import_class_variance_authority3 = require("class-variance-authority");
|
|
490
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
491
|
+
var badgeVariants = (0, import_class_variance_authority3.cva)(
|
|
492
|
+
"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
493
|
+
{
|
|
494
|
+
variants: {
|
|
495
|
+
variant: {
|
|
496
|
+
default: "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
|
|
497
|
+
secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
498
|
+
destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
|
|
499
|
+
outline: "text-foreground"
|
|
500
|
+
}
|
|
501
|
+
},
|
|
502
|
+
defaultVariants: {
|
|
503
|
+
variant: "default"
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
);
|
|
507
|
+
function Badge({ className, variant, ...props }) {
|
|
508
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: cn(badgeVariants({ variant }), className), ...props });
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
// src/components/ui/breadcrumb.tsx
|
|
512
|
+
var React6 = __toESM(require("react"), 1);
|
|
513
|
+
var import_react_slot2 = require("@radix-ui/react-slot");
|
|
514
|
+
var import_lucide_react2 = require("lucide-react");
|
|
515
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
516
|
+
var Breadcrumb = React6.forwardRef(({ ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("nav", { ref, "aria-label": "breadcrumb", ...props }));
|
|
517
|
+
Breadcrumb.displayName = "Breadcrumb";
|
|
518
|
+
var BreadcrumbList = React6.forwardRef(
|
|
519
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
520
|
+
"ol",
|
|
521
|
+
{
|
|
522
|
+
ref,
|
|
523
|
+
className: cn(
|
|
524
|
+
"flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",
|
|
525
|
+
className
|
|
526
|
+
),
|
|
527
|
+
...props
|
|
528
|
+
}
|
|
529
|
+
)
|
|
530
|
+
);
|
|
531
|
+
BreadcrumbList.displayName = "BreadcrumbList";
|
|
532
|
+
var BreadcrumbItem = React6.forwardRef(
|
|
533
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("li", { ref, className: cn("inline-flex items-center gap-1.5", className), ...props })
|
|
534
|
+
);
|
|
535
|
+
BreadcrumbItem.displayName = "BreadcrumbItem";
|
|
536
|
+
var BreadcrumbLink = React6.forwardRef(({ asChild, className, ...props }, ref) => {
|
|
537
|
+
const Comp = asChild ? import_react_slot2.Slot : "a";
|
|
538
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Comp, { ref, className: cn("transition-colors hover:text-foreground", className), ...props });
|
|
539
|
+
});
|
|
540
|
+
BreadcrumbLink.displayName = "BreadcrumbLink";
|
|
541
|
+
var BreadcrumbPage = React6.forwardRef(
|
|
542
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
543
|
+
"span",
|
|
544
|
+
{
|
|
545
|
+
ref,
|
|
546
|
+
role: "link",
|
|
547
|
+
"aria-disabled": "true",
|
|
548
|
+
"aria-current": "page",
|
|
549
|
+
className: cn("font-normal text-foreground", className),
|
|
550
|
+
...props
|
|
551
|
+
}
|
|
552
|
+
)
|
|
553
|
+
);
|
|
554
|
+
BreadcrumbPage.displayName = "BreadcrumbPage";
|
|
555
|
+
var BreadcrumbSeparator = ({ children, className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("li", { role: "presentation", "aria-hidden": "true", className: cn("[&>svg]:size-3.5", className), ...props, children: children ?? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react2.ChevronRight, {}) });
|
|
556
|
+
BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
|
|
557
|
+
var BreadcrumbEllipsis = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
558
|
+
"span",
|
|
559
|
+
{
|
|
560
|
+
role: "presentation",
|
|
561
|
+
"aria-hidden": "true",
|
|
562
|
+
className: cn("flex h-9 w-9 items-center justify-center", className),
|
|
563
|
+
...props,
|
|
564
|
+
children: [
|
|
565
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react2.MoreHorizontal, { className: "h-4 w-4" }),
|
|
566
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "sr-only", children: "More" })
|
|
567
|
+
]
|
|
568
|
+
}
|
|
569
|
+
);
|
|
570
|
+
BreadcrumbEllipsis.displayName = "BreadcrumbElipssis";
|
|
571
|
+
|
|
572
|
+
// src/components/ui/calendar.tsx
|
|
573
|
+
var import_lucide_react3 = require("lucide-react");
|
|
574
|
+
var import_react_day_picker = require("react-day-picker");
|
|
575
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
576
|
+
function Calendar({ className, classNames, showOutsideDays = true, ...props }) {
|
|
577
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
578
|
+
import_react_day_picker.DayPicker,
|
|
579
|
+
{
|
|
580
|
+
showOutsideDays,
|
|
581
|
+
className: cn("p-3", className),
|
|
582
|
+
classNames: {
|
|
583
|
+
months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
|
|
584
|
+
month: "space-y-4",
|
|
585
|
+
caption: "flex justify-center pt-1 relative items-center",
|
|
586
|
+
caption_label: "text-sm font-medium",
|
|
587
|
+
nav: "space-x-1 flex items-center",
|
|
588
|
+
nav_button: cn(
|
|
589
|
+
buttonVariants({ variant: "outline" }),
|
|
590
|
+
"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"
|
|
591
|
+
),
|
|
592
|
+
nav_button_previous: "absolute left-1",
|
|
593
|
+
nav_button_next: "absolute right-1",
|
|
594
|
+
table: "w-full border-collapse space-y-1",
|
|
595
|
+
head_row: "flex",
|
|
596
|
+
head_cell: "text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",
|
|
597
|
+
row: "flex w-full mt-2",
|
|
598
|
+
cell: "h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",
|
|
599
|
+
day: cn(buttonVariants({ variant: "ghost" }), "h-9 w-9 p-0 font-normal aria-selected:opacity-100"),
|
|
600
|
+
day_range_end: "day-range-end",
|
|
601
|
+
day_selected: "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
|
|
602
|
+
day_today: "bg-accent text-accent-foreground",
|
|
603
|
+
day_outside: "day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",
|
|
604
|
+
day_disabled: "text-muted-foreground opacity-50",
|
|
605
|
+
day_range_middle: "aria-selected:bg-accent aria-selected:text-accent-foreground",
|
|
606
|
+
day_hidden: "invisible",
|
|
607
|
+
...classNames
|
|
608
|
+
},
|
|
609
|
+
components: {
|
|
610
|
+
IconLeft: ({ ..._props }) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.ChevronLeft, { className: "h-4 w-4" }),
|
|
611
|
+
IconRight: ({ ..._props }) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.ChevronRight, { className: "h-4 w-4" })
|
|
612
|
+
},
|
|
613
|
+
...props
|
|
614
|
+
}
|
|
615
|
+
);
|
|
616
|
+
}
|
|
617
|
+
Calendar.displayName = "Calendar";
|
|
618
|
+
|
|
619
|
+
// src/components/ui/card.tsx
|
|
620
|
+
var React7 = __toESM(require("react"), 1);
|
|
621
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
622
|
+
var Card = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { ref, className: cn("rounded-lg border bg-card text-card-foreground shadow-sm", className), ...props }));
|
|
623
|
+
Card.displayName = "Card";
|
|
624
|
+
var CardHeader = React7.forwardRef(
|
|
625
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { ref, className: cn("flex flex-col space-y-1.5 p-6", className), ...props })
|
|
626
|
+
);
|
|
627
|
+
CardHeader.displayName = "CardHeader";
|
|
628
|
+
var CardTitle = React7.forwardRef(
|
|
629
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("h3", { ref, className: cn("text-2xl font-semibold leading-none tracking-tight", className), ...props })
|
|
630
|
+
);
|
|
631
|
+
CardTitle.displayName = "CardTitle";
|
|
632
|
+
var CardDescription = React7.forwardRef(
|
|
633
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { ref, className: cn("text-sm text-muted-foreground", className), ...props })
|
|
634
|
+
);
|
|
635
|
+
CardDescription.displayName = "CardDescription";
|
|
636
|
+
var CardContent = React7.forwardRef(
|
|
637
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { ref, className: cn("p-6 pt-0", className), ...props })
|
|
638
|
+
);
|
|
639
|
+
CardContent.displayName = "CardContent";
|
|
640
|
+
var CardFooter = React7.forwardRef(
|
|
641
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { ref, className: cn("flex items-center p-6 pt-0", className), ...props })
|
|
642
|
+
);
|
|
643
|
+
CardFooter.displayName = "CardFooter";
|
|
644
|
+
|
|
645
|
+
// src/components/ui/carousel.tsx
|
|
646
|
+
var React8 = __toESM(require("react"), 1);
|
|
647
|
+
var import_embla_carousel_react = __toESM(require("embla-carousel-react"), 1);
|
|
648
|
+
var import_lucide_react4 = require("lucide-react");
|
|
649
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
650
|
+
var CarouselContext = React8.createContext(null);
|
|
651
|
+
function useCarousel() {
|
|
652
|
+
const context = React8.useContext(CarouselContext);
|
|
653
|
+
if (!context) {
|
|
654
|
+
throw new Error("useCarousel must be used within a <Carousel />");
|
|
655
|
+
}
|
|
656
|
+
return context;
|
|
657
|
+
}
|
|
658
|
+
var Carousel = React8.forwardRef(
|
|
659
|
+
({ orientation = "horizontal", opts, setApi, plugins, className, children, ...props }, ref) => {
|
|
660
|
+
const [carouselRef, api] = (0, import_embla_carousel_react.default)(
|
|
661
|
+
{
|
|
662
|
+
...opts,
|
|
663
|
+
axis: orientation === "horizontal" ? "x" : "y"
|
|
664
|
+
},
|
|
665
|
+
plugins
|
|
666
|
+
);
|
|
667
|
+
const [canScrollPrev, setCanScrollPrev] = React8.useState(false);
|
|
668
|
+
const [canScrollNext, setCanScrollNext] = React8.useState(false);
|
|
669
|
+
const onSelect = React8.useCallback((api2) => {
|
|
670
|
+
if (!api2) {
|
|
671
|
+
return;
|
|
672
|
+
}
|
|
673
|
+
setCanScrollPrev(api2.canScrollPrev());
|
|
674
|
+
setCanScrollNext(api2.canScrollNext());
|
|
675
|
+
}, []);
|
|
676
|
+
const scrollPrev = React8.useCallback(() => {
|
|
677
|
+
api?.scrollPrev();
|
|
678
|
+
}, [api]);
|
|
679
|
+
const scrollNext = React8.useCallback(() => {
|
|
680
|
+
api?.scrollNext();
|
|
681
|
+
}, [api]);
|
|
682
|
+
const handleKeyDown = React8.useCallback(
|
|
683
|
+
(event) => {
|
|
684
|
+
if (event.key === "ArrowLeft") {
|
|
685
|
+
event.preventDefault();
|
|
686
|
+
scrollPrev();
|
|
687
|
+
} else if (event.key === "ArrowRight") {
|
|
688
|
+
event.preventDefault();
|
|
689
|
+
scrollNext();
|
|
690
|
+
}
|
|
691
|
+
},
|
|
692
|
+
[scrollPrev, scrollNext]
|
|
693
|
+
);
|
|
694
|
+
React8.useEffect(() => {
|
|
695
|
+
if (!api || !setApi) {
|
|
696
|
+
return;
|
|
697
|
+
}
|
|
698
|
+
setApi(api);
|
|
699
|
+
}, [api, setApi]);
|
|
700
|
+
React8.useEffect(() => {
|
|
701
|
+
if (!api) {
|
|
702
|
+
return;
|
|
703
|
+
}
|
|
704
|
+
onSelect(api);
|
|
705
|
+
api.on("reInit", onSelect);
|
|
706
|
+
api.on("select", onSelect);
|
|
707
|
+
return () => {
|
|
708
|
+
api?.off("select", onSelect);
|
|
709
|
+
};
|
|
710
|
+
}, [api, onSelect]);
|
|
711
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
712
|
+
CarouselContext.Provider,
|
|
713
|
+
{
|
|
714
|
+
value: {
|
|
715
|
+
carouselRef,
|
|
716
|
+
api,
|
|
717
|
+
opts,
|
|
718
|
+
orientation: orientation || (opts?.axis === "y" ? "vertical" : "horizontal"),
|
|
719
|
+
scrollPrev,
|
|
720
|
+
scrollNext,
|
|
721
|
+
canScrollPrev,
|
|
722
|
+
canScrollNext
|
|
723
|
+
},
|
|
724
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
725
|
+
"div",
|
|
726
|
+
{
|
|
727
|
+
ref,
|
|
728
|
+
onKeyDownCapture: handleKeyDown,
|
|
729
|
+
className: cn("relative", className),
|
|
730
|
+
role: "region",
|
|
731
|
+
"aria-roledescription": "carousel",
|
|
732
|
+
...props,
|
|
733
|
+
children
|
|
734
|
+
}
|
|
735
|
+
)
|
|
736
|
+
}
|
|
737
|
+
);
|
|
738
|
+
}
|
|
739
|
+
);
|
|
740
|
+
Carousel.displayName = "Carousel";
|
|
741
|
+
var CarouselContent = React8.forwardRef(
|
|
742
|
+
({ className, ...props }, ref) => {
|
|
743
|
+
const { carouselRef, orientation } = useCarousel();
|
|
744
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
745
|
+
"div",
|
|
746
|
+
{
|
|
747
|
+
ref,
|
|
748
|
+
className: cn("flex", orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col", className),
|
|
749
|
+
...props
|
|
750
|
+
}
|
|
751
|
+
) });
|
|
752
|
+
}
|
|
753
|
+
);
|
|
754
|
+
CarouselContent.displayName = "CarouselContent";
|
|
755
|
+
var CarouselItem = React8.forwardRef(
|
|
756
|
+
({ className, ...props }, ref) => {
|
|
757
|
+
const { orientation } = useCarousel();
|
|
758
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
759
|
+
"div",
|
|
760
|
+
{
|
|
761
|
+
ref,
|
|
762
|
+
role: "group",
|
|
763
|
+
"aria-roledescription": "slide",
|
|
764
|
+
className: cn("min-w-0 shrink-0 grow-0 basis-full", orientation === "horizontal" ? "pl-4" : "pt-4", className),
|
|
765
|
+
...props
|
|
766
|
+
}
|
|
767
|
+
);
|
|
768
|
+
}
|
|
769
|
+
);
|
|
770
|
+
CarouselItem.displayName = "CarouselItem";
|
|
771
|
+
var CarouselPrevious = React8.forwardRef(
|
|
772
|
+
({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
773
|
+
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
774
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
|
|
775
|
+
Button,
|
|
776
|
+
{
|
|
777
|
+
ref,
|
|
778
|
+
variant,
|
|
779
|
+
size,
|
|
780
|
+
className: cn(
|
|
781
|
+
"absolute h-8 w-8 rounded-full",
|
|
782
|
+
orientation === "horizontal" ? "-left-12 top-1/2 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
783
|
+
className
|
|
784
|
+
),
|
|
785
|
+
disabled: !canScrollPrev,
|
|
786
|
+
onClick: scrollPrev,
|
|
787
|
+
...props,
|
|
788
|
+
children: [
|
|
789
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react4.ArrowLeft, { className: "h-4 w-4" }),
|
|
790
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "sr-only", children: "Previous slide" })
|
|
791
|
+
]
|
|
792
|
+
}
|
|
793
|
+
);
|
|
794
|
+
}
|
|
795
|
+
);
|
|
796
|
+
CarouselPrevious.displayName = "CarouselPrevious";
|
|
797
|
+
var CarouselNext = React8.forwardRef(
|
|
798
|
+
({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
799
|
+
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
800
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
|
|
801
|
+
Button,
|
|
802
|
+
{
|
|
803
|
+
ref,
|
|
804
|
+
variant,
|
|
805
|
+
size,
|
|
806
|
+
className: cn(
|
|
807
|
+
"absolute h-8 w-8 rounded-full",
|
|
808
|
+
orientation === "horizontal" ? "-right-12 top-1/2 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
809
|
+
className
|
|
810
|
+
),
|
|
811
|
+
disabled: !canScrollNext,
|
|
812
|
+
onClick: scrollNext,
|
|
813
|
+
...props,
|
|
814
|
+
children: [
|
|
815
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react4.ArrowRight, { className: "h-4 w-4" }),
|
|
816
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "sr-only", children: "Next slide" })
|
|
817
|
+
]
|
|
818
|
+
}
|
|
819
|
+
);
|
|
820
|
+
}
|
|
821
|
+
);
|
|
822
|
+
CarouselNext.displayName = "CarouselNext";
|
|
823
|
+
|
|
824
|
+
// src/components/ui/chart.tsx
|
|
825
|
+
var React9 = __toESM(require("react"), 1);
|
|
826
|
+
var RechartsPrimitive = __toESM(require("recharts"), 1);
|
|
827
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
828
|
+
var THEMES = { light: "", dark: ".dark" };
|
|
829
|
+
var ChartContext = React9.createContext(null);
|
|
830
|
+
function useChart() {
|
|
831
|
+
const context = React9.useContext(ChartContext);
|
|
832
|
+
if (!context) {
|
|
833
|
+
throw new Error("useChart must be used within a <ChartContainer />");
|
|
834
|
+
}
|
|
835
|
+
return context;
|
|
836
|
+
}
|
|
837
|
+
var ChartContainer = React9.forwardRef(({ id, className, children, config, ...props }, ref) => {
|
|
838
|
+
const uniqueId = React9.useId();
|
|
839
|
+
const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
|
|
840
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
841
|
+
"div",
|
|
842
|
+
{
|
|
843
|
+
"data-chart": chartId,
|
|
844
|
+
ref,
|
|
845
|
+
className: cn(
|
|
846
|
+
"flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",
|
|
847
|
+
className
|
|
848
|
+
),
|
|
849
|
+
...props,
|
|
850
|
+
children: [
|
|
851
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(ChartStyle, { id: chartId, config }),
|
|
852
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(RechartsPrimitive.ResponsiveContainer, { children })
|
|
853
|
+
]
|
|
854
|
+
}
|
|
855
|
+
) });
|
|
856
|
+
});
|
|
857
|
+
ChartContainer.displayName = "Chart";
|
|
858
|
+
var ChartStyle = ({ id, config }) => {
|
|
859
|
+
const colorConfig = Object.entries(config).filter(([_, config2]) => config2.theme || config2.color);
|
|
860
|
+
if (!colorConfig.length) {
|
|
861
|
+
return null;
|
|
862
|
+
}
|
|
863
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
864
|
+
"style",
|
|
865
|
+
{
|
|
866
|
+
dangerouslySetInnerHTML: {
|
|
867
|
+
__html: Object.entries(THEMES).map(
|
|
868
|
+
([theme, prefix]) => `
|
|
869
|
+
${prefix} [data-chart=${id}] {
|
|
870
|
+
${colorConfig.map(([key, itemConfig]) => {
|
|
871
|
+
const color = itemConfig.theme?.[theme] || itemConfig.color;
|
|
872
|
+
return color ? ` --color-${key}: ${color};` : null;
|
|
873
|
+
}).join("\n")}
|
|
874
|
+
}
|
|
875
|
+
`
|
|
876
|
+
).join("\n")
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
);
|
|
880
|
+
};
|
|
881
|
+
var ChartTooltip = RechartsPrimitive.Tooltip;
|
|
882
|
+
var ChartTooltipContent = React9.forwardRef(
|
|
883
|
+
({
|
|
884
|
+
active,
|
|
885
|
+
payload,
|
|
886
|
+
className,
|
|
887
|
+
indicator = "dot",
|
|
888
|
+
hideLabel = false,
|
|
889
|
+
hideIndicator = false,
|
|
890
|
+
label,
|
|
891
|
+
labelFormatter,
|
|
892
|
+
labelClassName,
|
|
893
|
+
formatter,
|
|
894
|
+
color,
|
|
895
|
+
nameKey,
|
|
896
|
+
labelKey
|
|
897
|
+
}, ref) => {
|
|
898
|
+
const { config } = useChart();
|
|
899
|
+
const tooltipLabel = React9.useMemo(() => {
|
|
900
|
+
if (hideLabel || !payload?.length) {
|
|
901
|
+
return null;
|
|
902
|
+
}
|
|
903
|
+
const [item] = payload;
|
|
904
|
+
const key = `${labelKey || item.dataKey || item.name || "value"}`;
|
|
905
|
+
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
906
|
+
const value = !labelKey && typeof label === "string" ? config[label]?.label || label : itemConfig?.label;
|
|
907
|
+
if (labelFormatter) {
|
|
908
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: cn("font-medium", labelClassName), children: labelFormatter(value, payload) });
|
|
909
|
+
}
|
|
910
|
+
if (!value) {
|
|
911
|
+
return null;
|
|
912
|
+
}
|
|
913
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: cn("font-medium", labelClassName), children: value });
|
|
914
|
+
}, [label, labelFormatter, payload, hideLabel, labelClassName, config, labelKey]);
|
|
915
|
+
if (!active || !payload?.length) {
|
|
916
|
+
return null;
|
|
917
|
+
}
|
|
918
|
+
const nestLabel = payload.length === 1 && indicator !== "dot";
|
|
919
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
920
|
+
"div",
|
|
921
|
+
{
|
|
922
|
+
ref,
|
|
923
|
+
className: cn(
|
|
924
|
+
"grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",
|
|
925
|
+
className
|
|
926
|
+
),
|
|
927
|
+
children: [
|
|
928
|
+
!nestLabel ? tooltipLabel : null,
|
|
929
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "grid gap-1.5", children: payload.map((item, index) => {
|
|
930
|
+
const key = `${nameKey || item.name || item.dataKey || "value"}`;
|
|
931
|
+
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
932
|
+
const indicatorColor = color || item.payload.fill || item.color;
|
|
933
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
934
|
+
"div",
|
|
935
|
+
{
|
|
936
|
+
className: cn(
|
|
937
|
+
"flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",
|
|
938
|
+
indicator === "dot" && "items-center"
|
|
939
|
+
),
|
|
940
|
+
children: formatter && item?.value !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, { children: [
|
|
941
|
+
itemConfig?.icon ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
942
|
+
"div",
|
|
943
|
+
{
|
|
944
|
+
className: cn("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]", {
|
|
945
|
+
"h-2.5 w-2.5": indicator === "dot",
|
|
946
|
+
"w-1": indicator === "line",
|
|
947
|
+
"w-0 border-[1.5px] border-dashed bg-transparent": indicator === "dashed",
|
|
948
|
+
"my-0.5": nestLabel && indicator === "dashed"
|
|
949
|
+
}),
|
|
950
|
+
style: {
|
|
951
|
+
"--color-bg": indicatorColor,
|
|
952
|
+
"--color-border": indicatorColor
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
),
|
|
956
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
957
|
+
"div",
|
|
958
|
+
{
|
|
959
|
+
className: cn(
|
|
960
|
+
"flex flex-1 justify-between leading-none",
|
|
961
|
+
nestLabel ? "items-end" : "items-center"
|
|
962
|
+
),
|
|
963
|
+
children: [
|
|
964
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "grid gap-1.5", children: [
|
|
965
|
+
nestLabel ? tooltipLabel : null,
|
|
966
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "text-muted-foreground", children: itemConfig?.label || item.name })
|
|
967
|
+
] }),
|
|
968
|
+
item.value && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "font-mono font-medium tabular-nums text-foreground", children: item.value.toLocaleString() })
|
|
969
|
+
]
|
|
970
|
+
}
|
|
971
|
+
)
|
|
972
|
+
] })
|
|
973
|
+
},
|
|
974
|
+
item.dataKey
|
|
975
|
+
);
|
|
976
|
+
}) })
|
|
977
|
+
]
|
|
978
|
+
}
|
|
979
|
+
);
|
|
980
|
+
}
|
|
981
|
+
);
|
|
982
|
+
ChartTooltipContent.displayName = "ChartTooltip";
|
|
983
|
+
var ChartLegend = RechartsPrimitive.Legend;
|
|
984
|
+
var ChartLegendContent = React9.forwardRef(({ className, hideIcon = false, payload, verticalAlign = "bottom", nameKey }, ref) => {
|
|
985
|
+
const { config } = useChart();
|
|
986
|
+
if (!payload?.length) {
|
|
987
|
+
return null;
|
|
988
|
+
}
|
|
989
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
990
|
+
"div",
|
|
991
|
+
{
|
|
992
|
+
ref,
|
|
993
|
+
className: cn("flex items-center justify-center gap-4", verticalAlign === "top" ? "pb-3" : "pt-3", className),
|
|
994
|
+
children: payload.map((item) => {
|
|
995
|
+
const key = `${nameKey || item.dataKey || "value"}`;
|
|
996
|
+
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
997
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
998
|
+
"div",
|
|
999
|
+
{
|
|
1000
|
+
className: cn("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),
|
|
1001
|
+
children: [
|
|
1002
|
+
itemConfig?.icon && !hideIcon ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(itemConfig.icon, {}) : /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1003
|
+
"div",
|
|
1004
|
+
{
|
|
1005
|
+
className: "h-2 w-2 shrink-0 rounded-[2px]",
|
|
1006
|
+
style: {
|
|
1007
|
+
backgroundColor: item.color
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1010
|
+
),
|
|
1011
|
+
itemConfig?.label
|
|
1012
|
+
]
|
|
1013
|
+
},
|
|
1014
|
+
item.value
|
|
1015
|
+
);
|
|
1016
|
+
})
|
|
1017
|
+
}
|
|
1018
|
+
);
|
|
1019
|
+
});
|
|
1020
|
+
ChartLegendContent.displayName = "ChartLegend";
|
|
1021
|
+
function getPayloadConfigFromPayload(config, payload, key) {
|
|
1022
|
+
if (typeof payload !== "object" || payload === null) {
|
|
1023
|
+
return void 0;
|
|
1024
|
+
}
|
|
1025
|
+
const payloadPayload = "payload" in payload && typeof payload.payload === "object" && payload.payload !== null ? payload.payload : void 0;
|
|
1026
|
+
let configLabelKey = key;
|
|
1027
|
+
if (key in payload && typeof payload[key] === "string") {
|
|
1028
|
+
configLabelKey = payload[key];
|
|
1029
|
+
} else if (payloadPayload && key in payloadPayload && typeof payloadPayload[key] === "string") {
|
|
1030
|
+
configLabelKey = payloadPayload[key];
|
|
1031
|
+
}
|
|
1032
|
+
return configLabelKey in config ? config[configLabelKey] : config[key];
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
// src/components/ui/checkbox.tsx
|
|
1036
|
+
var React10 = __toESM(require("react"), 1);
|
|
1037
|
+
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"), 1);
|
|
1038
|
+
var import_lucide_react5 = require("lucide-react");
|
|
1039
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
1040
|
+
var Checkbox = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1041
|
+
CheckboxPrimitive.Root,
|
|
1042
|
+
{
|
|
1043
|
+
ref,
|
|
1044
|
+
className: cn(
|
|
1045
|
+
"peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
1046
|
+
className
|
|
1047
|
+
),
|
|
1048
|
+
...props,
|
|
1049
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(CheckboxPrimitive.Indicator, { className: cn("flex items-center justify-center text-current"), children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_lucide_react5.Check, { className: "h-4 w-4" }) })
|
|
1050
|
+
}
|
|
1051
|
+
));
|
|
1052
|
+
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
1053
|
+
|
|
1054
|
+
// src/components/ui/collapsible.tsx
|
|
1055
|
+
var CollapsiblePrimitive = __toESM(require("@radix-ui/react-collapsible"), 1);
|
|
1056
|
+
var Collapsible = CollapsiblePrimitive.Root;
|
|
1057
|
+
var CollapsibleTrigger2 = CollapsiblePrimitive.CollapsibleTrigger;
|
|
1058
|
+
var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
|
|
1059
|
+
|
|
1060
|
+
// src/components/ui/command.tsx
|
|
1061
|
+
var React12 = __toESM(require("react"), 1);
|
|
1062
|
+
var import_cmdk = require("cmdk");
|
|
1063
|
+
var import_lucide_react7 = require("lucide-react");
|
|
1064
|
+
|
|
1065
|
+
// src/components/ui/dialog.tsx
|
|
1066
|
+
var React11 = __toESM(require("react"), 1);
|
|
1067
|
+
var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
1068
|
+
var import_lucide_react6 = require("lucide-react");
|
|
1069
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
1070
|
+
var Dialog = DialogPrimitive.Root;
|
|
1071
|
+
var DialogTrigger = DialogPrimitive.Trigger;
|
|
1072
|
+
var DialogPortal = DialogPrimitive.Portal;
|
|
1073
|
+
var DialogClose = DialogPrimitive.Close;
|
|
1074
|
+
var DialogOverlay = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1075
|
+
DialogPrimitive.Overlay,
|
|
1076
|
+
{
|
|
1077
|
+
ref,
|
|
1078
|
+
className: cn(
|
|
1079
|
+
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
1080
|
+
className
|
|
1081
|
+
),
|
|
1082
|
+
...props
|
|
1083
|
+
}
|
|
1084
|
+
));
|
|
1085
|
+
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
1086
|
+
var DialogContent = React11.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(DialogPortal, { children: [
|
|
1087
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DialogOverlay, {}),
|
|
1088
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
1089
|
+
DialogPrimitive.Content,
|
|
1090
|
+
{
|
|
1091
|
+
ref,
|
|
1092
|
+
className: cn(
|
|
1093
|
+
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
|
|
1094
|
+
className
|
|
1095
|
+
),
|
|
1096
|
+
...props,
|
|
1097
|
+
children: [
|
|
1098
|
+
children,
|
|
1099
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none", children: [
|
|
1100
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react6.X, { className: "h-4 w-4" }),
|
|
1101
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "sr-only", children: "Close" })
|
|
1102
|
+
] })
|
|
1103
|
+
]
|
|
1104
|
+
}
|
|
1105
|
+
)
|
|
1106
|
+
] }));
|
|
1107
|
+
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
1108
|
+
var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: cn("flex flex-col space-y-1.5 text-center sm:text-left", className), ...props });
|
|
1109
|
+
DialogHeader.displayName = "DialogHeader";
|
|
1110
|
+
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
|
|
1111
|
+
DialogFooter.displayName = "DialogFooter";
|
|
1112
|
+
var DialogTitle = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1113
|
+
DialogPrimitive.Title,
|
|
1114
|
+
{
|
|
1115
|
+
ref,
|
|
1116
|
+
className: cn("text-lg font-semibold leading-none tracking-tight", className),
|
|
1117
|
+
...props
|
|
1118
|
+
}
|
|
1119
|
+
));
|
|
1120
|
+
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
1121
|
+
var DialogDescription = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DialogPrimitive.Description, { ref, className: cn("text-sm text-muted-foreground", className), ...props }));
|
|
1122
|
+
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
1123
|
+
|
|
1124
|
+
// src/components/ui/command.tsx
|
|
1125
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
1126
|
+
var Command = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1127
|
+
import_cmdk.Command,
|
|
1128
|
+
{
|
|
1129
|
+
ref,
|
|
1130
|
+
className: cn(
|
|
1131
|
+
"flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
|
|
1132
|
+
className
|
|
1133
|
+
),
|
|
1134
|
+
...props
|
|
1135
|
+
}
|
|
1136
|
+
));
|
|
1137
|
+
Command.displayName = import_cmdk.Command.displayName;
|
|
1138
|
+
var CommandDialog = ({ children, ...props }) => {
|
|
1139
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Dialog, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DialogContent, { className: "overflow-hidden p-0 shadow-lg", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Command, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children }) }) });
|
|
1140
|
+
};
|
|
1141
|
+
var CommandInput = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
1142
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_lucide_react7.Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
1143
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1144
|
+
import_cmdk.Command.Input,
|
|
1145
|
+
{
|
|
1146
|
+
ref,
|
|
1147
|
+
className: cn(
|
|
1148
|
+
"flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
|
|
1149
|
+
className
|
|
1150
|
+
),
|
|
1151
|
+
...props
|
|
1152
|
+
}
|
|
1153
|
+
)
|
|
1154
|
+
] }));
|
|
1155
|
+
CommandInput.displayName = import_cmdk.Command.Input.displayName;
|
|
1156
|
+
var CommandList = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1157
|
+
import_cmdk.Command.List,
|
|
1158
|
+
{
|
|
1159
|
+
ref,
|
|
1160
|
+
className: cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className),
|
|
1161
|
+
...props
|
|
1162
|
+
}
|
|
1163
|
+
));
|
|
1164
|
+
CommandList.displayName = import_cmdk.Command.List.displayName;
|
|
1165
|
+
var CommandEmpty = React12.forwardRef((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_cmdk.Command.Empty, { ref, className: "py-6 text-center text-sm", ...props }));
|
|
1166
|
+
CommandEmpty.displayName = import_cmdk.Command.Empty.displayName;
|
|
1167
|
+
var CommandGroup = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1168
|
+
import_cmdk.Command.Group,
|
|
1169
|
+
{
|
|
1170
|
+
ref,
|
|
1171
|
+
className: cn(
|
|
1172
|
+
"overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
|
|
1173
|
+
className
|
|
1174
|
+
),
|
|
1175
|
+
...props
|
|
1176
|
+
}
|
|
1177
|
+
));
|
|
1178
|
+
CommandGroup.displayName = import_cmdk.Command.Group.displayName;
|
|
1179
|
+
var CommandSeparator = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_cmdk.Command.Separator, { ref, className: cn("-mx-1 h-px bg-border", className), ...props }));
|
|
1180
|
+
CommandSeparator.displayName = import_cmdk.Command.Separator.displayName;
|
|
1181
|
+
var CommandItem = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1182
|
+
import_cmdk.Command.Item,
|
|
1183
|
+
{
|
|
1184
|
+
ref,
|
|
1185
|
+
className: cn(
|
|
1186
|
+
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",
|
|
1187
|
+
className
|
|
1188
|
+
),
|
|
1189
|
+
...props
|
|
1190
|
+
}
|
|
1191
|
+
));
|
|
1192
|
+
CommandItem.displayName = import_cmdk.Command.Item.displayName;
|
|
1193
|
+
var CommandShortcut = ({ className, ...props }) => {
|
|
1194
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className), ...props });
|
|
1195
|
+
};
|
|
1196
|
+
CommandShortcut.displayName = "CommandShortcut";
|
|
1197
|
+
|
|
1198
|
+
// src/components/ui/context-menu.tsx
|
|
1199
|
+
var React13 = __toESM(require("react"), 1);
|
|
1200
|
+
var ContextMenuPrimitive = __toESM(require("@radix-ui/react-context-menu"), 1);
|
|
1201
|
+
var import_lucide_react8 = require("lucide-react");
|
|
1202
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
1203
|
+
var ContextMenu = ContextMenuPrimitive.Root;
|
|
1204
|
+
var ContextMenuTrigger = ContextMenuPrimitive.Trigger;
|
|
1205
|
+
var ContextMenuGroup = ContextMenuPrimitive.Group;
|
|
1206
|
+
var ContextMenuPortal = ContextMenuPrimitive.Portal;
|
|
1207
|
+
var ContextMenuSub = ContextMenuPrimitive.Sub;
|
|
1208
|
+
var ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;
|
|
1209
|
+
var ContextMenuSubTrigger = React13.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
1210
|
+
ContextMenuPrimitive.SubTrigger,
|
|
1211
|
+
{
|
|
1212
|
+
ref,
|
|
1213
|
+
className: cn(
|
|
1214
|
+
"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-accent data-[state=open]:text-accent-foreground focus:bg-accent focus:text-accent-foreground",
|
|
1215
|
+
inset && "pl-8",
|
|
1216
|
+
className
|
|
1217
|
+
),
|
|
1218
|
+
...props,
|
|
1219
|
+
children: [
|
|
1220
|
+
children,
|
|
1221
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react8.ChevronRight, { className: "ml-auto h-4 w-4" })
|
|
1222
|
+
]
|
|
1223
|
+
}
|
|
1224
|
+
));
|
|
1225
|
+
ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;
|
|
1226
|
+
var ContextMenuSubContent = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1227
|
+
ContextMenuPrimitive.SubContent,
|
|
1228
|
+
{
|
|
1229
|
+
ref,
|
|
1230
|
+
className: cn(
|
|
1231
|
+
"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",
|
|
1232
|
+
className
|
|
1233
|
+
),
|
|
1234
|
+
...props
|
|
1235
|
+
}
|
|
1236
|
+
));
|
|
1237
|
+
ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;
|
|
1238
|
+
var ContextMenuContent = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1239
|
+
ContextMenuPrimitive.Content,
|
|
1240
|
+
{
|
|
1241
|
+
ref,
|
|
1242
|
+
className: cn(
|
|
1243
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 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",
|
|
1244
|
+
className
|
|
1245
|
+
),
|
|
1246
|
+
...props
|
|
1247
|
+
}
|
|
1248
|
+
) }));
|
|
1249
|
+
ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;
|
|
1250
|
+
var ContextMenuItem = React13.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1251
|
+
ContextMenuPrimitive.Item,
|
|
1252
|
+
{
|
|
1253
|
+
ref,
|
|
1254
|
+
className: cn(
|
|
1255
|
+
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",
|
|
1256
|
+
inset && "pl-8",
|
|
1257
|
+
className
|
|
1258
|
+
),
|
|
1259
|
+
...props
|
|
1260
|
+
}
|
|
1261
|
+
));
|
|
1262
|
+
ContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;
|
|
1263
|
+
var ContextMenuCheckboxItem = React13.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
1264
|
+
ContextMenuPrimitive.CheckboxItem,
|
|
1265
|
+
{
|
|
1266
|
+
ref,
|
|
1267
|
+
className: cn(
|
|
1268
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",
|
|
1269
|
+
className
|
|
1270
|
+
),
|
|
1271
|
+
checked,
|
|
1272
|
+
...props,
|
|
1273
|
+
children: [
|
|
1274
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react8.Check, { className: "h-4 w-4" }) }) }),
|
|
1275
|
+
children
|
|
1276
|
+
]
|
|
1277
|
+
}
|
|
1278
|
+
));
|
|
1279
|
+
ContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem.displayName;
|
|
1280
|
+
var ContextMenuRadioItem = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
1281
|
+
ContextMenuPrimitive.RadioItem,
|
|
1282
|
+
{
|
|
1283
|
+
ref,
|
|
1284
|
+
className: cn(
|
|
1285
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",
|
|
1286
|
+
className
|
|
1287
|
+
),
|
|
1288
|
+
...props,
|
|
1289
|
+
children: [
|
|
1290
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react8.Circle, { className: "h-2 w-2 fill-current" }) }) }),
|
|
1291
|
+
children
|
|
1292
|
+
]
|
|
1293
|
+
}
|
|
1294
|
+
));
|
|
1295
|
+
ContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;
|
|
1296
|
+
var ContextMenuLabel = React13.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1297
|
+
ContextMenuPrimitive.Label,
|
|
1298
|
+
{
|
|
1299
|
+
ref,
|
|
1300
|
+
className: cn("px-2 py-1.5 text-sm font-semibold text-foreground", inset && "pl-8", className),
|
|
1301
|
+
...props
|
|
1302
|
+
}
|
|
1303
|
+
));
|
|
1304
|
+
ContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;
|
|
1305
|
+
var ContextMenuSeparator = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ContextMenuPrimitive.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-border", className), ...props }));
|
|
1306
|
+
ContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName;
|
|
1307
|
+
var ContextMenuShortcut = ({ className, ...props }) => {
|
|
1308
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className), ...props });
|
|
1309
|
+
};
|
|
1310
|
+
ContextMenuShortcut.displayName = "ContextMenuShortcut";
|
|
1311
|
+
|
|
1312
|
+
// src/components/ui/drawer.tsx
|
|
1313
|
+
var React14 = __toESM(require("react"), 1);
|
|
1314
|
+
var import_vaul = require("vaul");
|
|
1315
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
1316
|
+
var Drawer = ({ shouldScaleBackground = true, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_vaul.Drawer.Root, { shouldScaleBackground, ...props });
|
|
1317
|
+
Drawer.displayName = "Drawer";
|
|
1318
|
+
var DrawerTrigger = import_vaul.Drawer.Trigger;
|
|
1319
|
+
var DrawerPortal = import_vaul.Drawer.Portal;
|
|
1320
|
+
var DrawerClose = import_vaul.Drawer.Close;
|
|
1321
|
+
var DrawerOverlay = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_vaul.Drawer.Overlay, { ref, className: cn("fixed inset-0 z-50 bg-black/80", className), ...props }));
|
|
1322
|
+
DrawerOverlay.displayName = import_vaul.Drawer.Overlay.displayName;
|
|
1323
|
+
var DrawerContent = React14.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(DrawerPortal, { children: [
|
|
1324
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DrawerOverlay, {}),
|
|
1325
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
1326
|
+
import_vaul.Drawer.Content,
|
|
1327
|
+
{
|
|
1328
|
+
ref,
|
|
1329
|
+
className: cn(
|
|
1330
|
+
"fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
|
|
1331
|
+
className
|
|
1332
|
+
),
|
|
1333
|
+
...props,
|
|
1334
|
+
children: [
|
|
1335
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
|
|
1336
|
+
children
|
|
1337
|
+
]
|
|
1338
|
+
}
|
|
1339
|
+
)
|
|
1340
|
+
] }));
|
|
1341
|
+
DrawerContent.displayName = "DrawerContent";
|
|
1342
|
+
var DrawerHeader = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: cn("grid gap-1.5 p-4 text-center sm:text-left", className), ...props });
|
|
1343
|
+
DrawerHeader.displayName = "DrawerHeader";
|
|
1344
|
+
var DrawerFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: cn("mt-auto flex flex-col gap-2 p-4", className), ...props });
|
|
1345
|
+
DrawerFooter.displayName = "DrawerFooter";
|
|
1346
|
+
var DrawerTitle = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1347
|
+
import_vaul.Drawer.Title,
|
|
1348
|
+
{
|
|
1349
|
+
ref,
|
|
1350
|
+
className: cn("text-lg font-semibold leading-none tracking-tight", className),
|
|
1351
|
+
...props
|
|
1352
|
+
}
|
|
1353
|
+
));
|
|
1354
|
+
DrawerTitle.displayName = import_vaul.Drawer.Title.displayName;
|
|
1355
|
+
var DrawerDescription = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_vaul.Drawer.Description, { ref, className: cn("text-sm text-muted-foreground", className), ...props }));
|
|
1356
|
+
DrawerDescription.displayName = import_vaul.Drawer.Description.displayName;
|
|
1357
|
+
|
|
1358
|
+
// src/components/ui/dropdown-menu.tsx
|
|
1359
|
+
var React15 = __toESM(require("react"), 1);
|
|
1360
|
+
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"), 1);
|
|
1361
|
+
var import_lucide_react9 = require("lucide-react");
|
|
1362
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
1363
|
+
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
1364
|
+
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
1365
|
+
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
1366
|
+
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
1367
|
+
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
1368
|
+
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
1369
|
+
var DropdownMenuSubTrigger = React15.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
1370
|
+
DropdownMenuPrimitive.SubTrigger,
|
|
1371
|
+
{
|
|
1372
|
+
ref,
|
|
1373
|
+
className: cn(
|
|
1374
|
+
"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-accent focus:bg-accent",
|
|
1375
|
+
inset && "pl-8",
|
|
1376
|
+
className
|
|
1377
|
+
),
|
|
1378
|
+
...props,
|
|
1379
|
+
children: [
|
|
1380
|
+
children,
|
|
1381
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react9.ChevronRight, { className: "ml-auto h-4 w-4" })
|
|
1382
|
+
]
|
|
1383
|
+
}
|
|
1384
|
+
));
|
|
1385
|
+
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
1386
|
+
var DropdownMenuSubContent = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1387
|
+
DropdownMenuPrimitive.SubContent,
|
|
1388
|
+
{
|
|
1389
|
+
ref,
|
|
1390
|
+
className: cn(
|
|
1391
|
+
"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",
|
|
1392
|
+
className
|
|
1393
|
+
),
|
|
1394
|
+
...props
|
|
1395
|
+
}
|
|
1396
|
+
));
|
|
1397
|
+
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
1398
|
+
var DropdownMenuContent = React15.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1399
|
+
DropdownMenuPrimitive.Content,
|
|
1400
|
+
{
|
|
1401
|
+
ref,
|
|
1402
|
+
sideOffset,
|
|
1403
|
+
className: cn(
|
|
1404
|
+
"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",
|
|
1405
|
+
className
|
|
1406
|
+
),
|
|
1407
|
+
...props
|
|
1408
|
+
}
|
|
1409
|
+
) }));
|
|
1410
|
+
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
1411
|
+
var DropdownMenuItem = React15.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1412
|
+
DropdownMenuPrimitive.Item,
|
|
1413
|
+
{
|
|
1414
|
+
ref,
|
|
1415
|
+
className: cn(
|
|
1416
|
+
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",
|
|
1417
|
+
inset && "pl-8",
|
|
1418
|
+
className
|
|
1419
|
+
),
|
|
1420
|
+
...props
|
|
1421
|
+
}
|
|
1422
|
+
));
|
|
1423
|
+
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
1424
|
+
var DropdownMenuCheckboxItem = React15.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
1425
|
+
DropdownMenuPrimitive.CheckboxItem,
|
|
1426
|
+
{
|
|
1427
|
+
ref,
|
|
1428
|
+
className: cn(
|
|
1429
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",
|
|
1430
|
+
className
|
|
1431
|
+
),
|
|
1432
|
+
checked,
|
|
1433
|
+
...props,
|
|
1434
|
+
children: [
|
|
1435
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react9.Check, { className: "h-4 w-4" }) }) }),
|
|
1436
|
+
children
|
|
1437
|
+
]
|
|
1438
|
+
}
|
|
1439
|
+
));
|
|
1440
|
+
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
1441
|
+
var DropdownMenuRadioItem = React15.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
1442
|
+
DropdownMenuPrimitive.RadioItem,
|
|
1443
|
+
{
|
|
1444
|
+
ref,
|
|
1445
|
+
className: cn(
|
|
1446
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",
|
|
1447
|
+
className
|
|
1448
|
+
),
|
|
1449
|
+
...props,
|
|
1450
|
+
children: [
|
|
1451
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react9.Circle, { className: "h-2 w-2 fill-current" }) }) }),
|
|
1452
|
+
children
|
|
1453
|
+
]
|
|
1454
|
+
}
|
|
1455
|
+
));
|
|
1456
|
+
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
1457
|
+
var DropdownMenuLabel = React15.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1458
|
+
DropdownMenuPrimitive.Label,
|
|
1459
|
+
{
|
|
1460
|
+
ref,
|
|
1461
|
+
className: cn("px-2 py-1.5 text-sm font-semibold", inset && "pl-8", className),
|
|
1462
|
+
...props
|
|
1463
|
+
}
|
|
1464
|
+
));
|
|
1465
|
+
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
1466
|
+
var DropdownMenuSeparator = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(DropdownMenuPrimitive.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-muted", className), ...props }));
|
|
1467
|
+
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
1468
|
+
var DropdownMenuShortcut = ({ className, ...props }) => {
|
|
1469
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: cn("ml-auto text-xs tracking-widest opacity-60", className), ...props });
|
|
1470
|
+
};
|
|
1471
|
+
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
1472
|
+
|
|
1473
|
+
// src/components/ui/form.tsx
|
|
1474
|
+
var React17 = __toESM(require("react"), 1);
|
|
1475
|
+
var import_react_slot3 = require("@radix-ui/react-slot");
|
|
1476
|
+
var import_react_hook_form = require("react-hook-form");
|
|
1477
|
+
|
|
1478
|
+
// src/components/ui/label.tsx
|
|
1479
|
+
var React16 = __toESM(require("react"), 1);
|
|
1480
|
+
var LabelPrimitive = __toESM(require("@radix-ui/react-label"), 1);
|
|
1481
|
+
var import_class_variance_authority4 = require("class-variance-authority");
|
|
1482
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
1483
|
+
var labelVariants = (0, import_class_variance_authority4.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70");
|
|
1484
|
+
var Label3 = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(LabelPrimitive.Root, { ref, className: cn(labelVariants(), className), ...props }));
|
|
1485
|
+
Label3.displayName = LabelPrimitive.Root.displayName;
|
|
1486
|
+
|
|
1487
|
+
// src/components/ui/form.tsx
|
|
1488
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
1489
|
+
var Form = import_react_hook_form.FormProvider;
|
|
1490
|
+
var FormFieldContext = React17.createContext({});
|
|
1491
|
+
var FormField = ({
|
|
1492
|
+
...props
|
|
1493
|
+
}) => {
|
|
1494
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_react_hook_form.Controller, { ...props }) });
|
|
1495
|
+
};
|
|
1496
|
+
var useFormField = () => {
|
|
1497
|
+
const fieldContext = React17.useContext(FormFieldContext);
|
|
1498
|
+
const itemContext = React17.useContext(FormItemContext);
|
|
1499
|
+
const { getFieldState, formState } = (0, import_react_hook_form.useFormContext)();
|
|
1500
|
+
const fieldState = getFieldState(fieldContext.name, formState);
|
|
1501
|
+
if (!fieldContext) {
|
|
1502
|
+
throw new Error("useFormField should be used within <FormField>");
|
|
1503
|
+
}
|
|
1504
|
+
const { id } = itemContext;
|
|
1505
|
+
return {
|
|
1506
|
+
id,
|
|
1507
|
+
name: fieldContext.name,
|
|
1508
|
+
formItemId: `${id}-form-item`,
|
|
1509
|
+
formDescriptionId: `${id}-form-item-description`,
|
|
1510
|
+
formMessageId: `${id}-form-item-message`,
|
|
1511
|
+
...fieldState
|
|
1512
|
+
};
|
|
1513
|
+
};
|
|
1514
|
+
var FormItemContext = React17.createContext({});
|
|
1515
|
+
var FormItem = React17.forwardRef(
|
|
1516
|
+
({ className, ...props }, ref) => {
|
|
1517
|
+
const id = React17.useId();
|
|
1518
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { ref, className: cn("space-y-2", className), ...props }) });
|
|
1519
|
+
}
|
|
1520
|
+
);
|
|
1521
|
+
FormItem.displayName = "FormItem";
|
|
1522
|
+
var FormLabel = React17.forwardRef(({ className, ...props }, ref) => {
|
|
1523
|
+
const { error, formItemId } = useFormField();
|
|
1524
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Label3, { ref, className: cn(error && "text-destructive", className), htmlFor: formItemId, ...props });
|
|
1525
|
+
});
|
|
1526
|
+
FormLabel.displayName = "FormLabel";
|
|
1527
|
+
var FormControl = React17.forwardRef(
|
|
1528
|
+
({ ...props }, ref) => {
|
|
1529
|
+
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
1530
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1531
|
+
import_react_slot3.Slot,
|
|
1532
|
+
{
|
|
1533
|
+
ref,
|
|
1534
|
+
id: formItemId,
|
|
1535
|
+
"aria-describedby": !error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`,
|
|
1536
|
+
"aria-invalid": !!error,
|
|
1537
|
+
...props
|
|
1538
|
+
}
|
|
1539
|
+
);
|
|
1540
|
+
}
|
|
1541
|
+
);
|
|
1542
|
+
FormControl.displayName = "FormControl";
|
|
1543
|
+
var FormDescription = React17.forwardRef(
|
|
1544
|
+
({ className, ...props }, ref) => {
|
|
1545
|
+
const { formDescriptionId } = useFormField();
|
|
1546
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { ref, id: formDescriptionId, className: cn("text-sm text-muted-foreground", className), ...props });
|
|
1547
|
+
}
|
|
1548
|
+
);
|
|
1549
|
+
FormDescription.displayName = "FormDescription";
|
|
1550
|
+
var FormMessage = React17.forwardRef(
|
|
1551
|
+
({ className, children, ...props }, ref) => {
|
|
1552
|
+
const { error, formMessageId } = useFormField();
|
|
1553
|
+
const body = error ? String(error?.message) : children;
|
|
1554
|
+
if (!body) {
|
|
1555
|
+
return null;
|
|
1556
|
+
}
|
|
1557
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { ref, id: formMessageId, className: cn("text-sm font-medium text-destructive", className), ...props, children: body });
|
|
1558
|
+
}
|
|
1559
|
+
);
|
|
1560
|
+
FormMessage.displayName = "FormMessage";
|
|
1561
|
+
|
|
1562
|
+
// src/components/ui/hover-card.tsx
|
|
1563
|
+
var React18 = __toESM(require("react"), 1);
|
|
1564
|
+
var HoverCardPrimitive = __toESM(require("@radix-ui/react-hover-card"), 1);
|
|
1565
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
1566
|
+
var HoverCard = HoverCardPrimitive.Root;
|
|
1567
|
+
var HoverCardTrigger = HoverCardPrimitive.Trigger;
|
|
1568
|
+
var HoverCardContent = React18.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1569
|
+
HoverCardPrimitive.Content,
|
|
1570
|
+
{
|
|
1571
|
+
ref,
|
|
1572
|
+
align,
|
|
1573
|
+
sideOffset,
|
|
1574
|
+
className: cn(
|
|
1575
|
+
"z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",
|
|
1576
|
+
className
|
|
1577
|
+
),
|
|
1578
|
+
...props
|
|
1579
|
+
}
|
|
1580
|
+
));
|
|
1581
|
+
HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
|
|
1582
|
+
|
|
1583
|
+
// src/components/ui/input-otp.tsx
|
|
1584
|
+
var React19 = __toESM(require("react"), 1);
|
|
1585
|
+
var import_input_otp = require("input-otp");
|
|
1586
|
+
var import_lucide_react10 = require("lucide-react");
|
|
1587
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
1588
|
+
var InputOTP = React19.forwardRef(
|
|
1589
|
+
({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1590
|
+
import_input_otp.OTPInput,
|
|
1591
|
+
{
|
|
1592
|
+
ref,
|
|
1593
|
+
containerClassName: cn("flex items-center gap-2 has-[:disabled]:opacity-50", containerClassName),
|
|
1594
|
+
className: cn("disabled:cursor-not-allowed", className),
|
|
1595
|
+
...props
|
|
1596
|
+
}
|
|
1597
|
+
)
|
|
1598
|
+
);
|
|
1599
|
+
InputOTP.displayName = "InputOTP";
|
|
1600
|
+
var InputOTPGroup = React19.forwardRef(
|
|
1601
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { ref, className: cn("flex items-center", className), ...props })
|
|
1602
|
+
);
|
|
1603
|
+
InputOTPGroup.displayName = "InputOTPGroup";
|
|
1604
|
+
var InputOTPSlot = React19.forwardRef(({ index, className, ...props }, ref) => {
|
|
1605
|
+
const inputOTPContext = React19.useContext(import_input_otp.OTPInputContext);
|
|
1606
|
+
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
|
|
1607
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
1608
|
+
"div",
|
|
1609
|
+
{
|
|
1610
|
+
ref,
|
|
1611
|
+
className: cn(
|
|
1612
|
+
"relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",
|
|
1613
|
+
isActive && "z-10 ring-2 ring-ring ring-offset-background",
|
|
1614
|
+
className
|
|
1615
|
+
),
|
|
1616
|
+
...props,
|
|
1617
|
+
children: [
|
|
1618
|
+
char,
|
|
1619
|
+
hasFakeCaret && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "animate-caret-blink h-4 w-px bg-foreground duration-1000" }) })
|
|
1620
|
+
]
|
|
1621
|
+
}
|
|
1622
|
+
);
|
|
1623
|
+
});
|
|
1624
|
+
InputOTPSlot.displayName = "InputOTPSlot";
|
|
1625
|
+
var InputOTPSeparator = React19.forwardRef(
|
|
1626
|
+
({ ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { ref, role: "separator", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react10.Dot, {}) })
|
|
1627
|
+
);
|
|
1628
|
+
InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
1629
|
+
|
|
1630
|
+
// src/components/ui/input.tsx
|
|
1631
|
+
var React20 = __toESM(require("react"), 1);
|
|
1632
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1633
|
+
var Input = React20.forwardRef(
|
|
1634
|
+
({ className, type, ...props }, ref) => {
|
|
1635
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1636
|
+
"input",
|
|
1637
|
+
{
|
|
1638
|
+
type,
|
|
1639
|
+
className: cn(
|
|
1640
|
+
"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
1641
|
+
className
|
|
1642
|
+
),
|
|
1643
|
+
ref,
|
|
1644
|
+
...props
|
|
1645
|
+
}
|
|
1646
|
+
);
|
|
1647
|
+
}
|
|
1648
|
+
);
|
|
1649
|
+
Input.displayName = "Input";
|
|
1650
|
+
|
|
1651
|
+
// src/components/ui/menubar.tsx
|
|
1652
|
+
var React21 = __toESM(require("react"), 1);
|
|
1653
|
+
var MenubarPrimitive = __toESM(require("@radix-ui/react-menubar"), 1);
|
|
1654
|
+
var import_lucide_react11 = require("lucide-react");
|
|
1655
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
1656
|
+
var MenubarMenu = MenubarPrimitive.Menu;
|
|
1657
|
+
var MenubarGroup = MenubarPrimitive.Group;
|
|
1658
|
+
var MenubarPortal = MenubarPrimitive.Portal;
|
|
1659
|
+
var MenubarSub = MenubarPrimitive.Sub;
|
|
1660
|
+
var MenubarRadioGroup = MenubarPrimitive.RadioGroup;
|
|
1661
|
+
var Menubar = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1662
|
+
MenubarPrimitive.Root,
|
|
1663
|
+
{
|
|
1664
|
+
ref,
|
|
1665
|
+
className: cn("flex h-10 items-center space-x-1 rounded-md border bg-background p-1", className),
|
|
1666
|
+
...props
|
|
1667
|
+
}
|
|
1668
|
+
));
|
|
1669
|
+
Menubar.displayName = MenubarPrimitive.Root.displayName;
|
|
1670
|
+
var MenubarTrigger = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1671
|
+
MenubarPrimitive.Trigger,
|
|
1672
|
+
{
|
|
1673
|
+
ref,
|
|
1674
|
+
className: cn(
|
|
1675
|
+
"flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none data-[state=open]:bg-accent data-[state=open]:text-accent-foreground focus:bg-accent focus:text-accent-foreground",
|
|
1676
|
+
className
|
|
1677
|
+
),
|
|
1678
|
+
...props
|
|
1679
|
+
}
|
|
1680
|
+
));
|
|
1681
|
+
MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
|
|
1682
|
+
var MenubarSubTrigger = React21.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
1683
|
+
MenubarPrimitive.SubTrigger,
|
|
1684
|
+
{
|
|
1685
|
+
ref,
|
|
1686
|
+
className: cn(
|
|
1687
|
+
"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-accent data-[state=open]:text-accent-foreground focus:bg-accent focus:text-accent-foreground",
|
|
1688
|
+
inset && "pl-8",
|
|
1689
|
+
className
|
|
1690
|
+
),
|
|
1691
|
+
...props,
|
|
1692
|
+
children: [
|
|
1693
|
+
children,
|
|
1694
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react11.ChevronRight, { className: "ml-auto h-4 w-4" })
|
|
1695
|
+
]
|
|
1696
|
+
}
|
|
1697
|
+
));
|
|
1698
|
+
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
|
1699
|
+
var MenubarSubContent = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1700
|
+
MenubarPrimitive.SubContent,
|
|
1701
|
+
{
|
|
1702
|
+
ref,
|
|
1703
|
+
className: cn(
|
|
1704
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground 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",
|
|
1705
|
+
className
|
|
1706
|
+
),
|
|
1707
|
+
...props
|
|
1708
|
+
}
|
|
1709
|
+
));
|
|
1710
|
+
MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
|
|
1711
|
+
var MenubarContent = React21.forwardRef(({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(MenubarPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1712
|
+
MenubarPrimitive.Content,
|
|
1713
|
+
{
|
|
1714
|
+
ref,
|
|
1715
|
+
align,
|
|
1716
|
+
alignOffset,
|
|
1717
|
+
sideOffset,
|
|
1718
|
+
className: cn(
|
|
1719
|
+
"z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in 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",
|
|
1720
|
+
className
|
|
1721
|
+
),
|
|
1722
|
+
...props
|
|
1723
|
+
}
|
|
1724
|
+
) }));
|
|
1725
|
+
MenubarContent.displayName = MenubarPrimitive.Content.displayName;
|
|
1726
|
+
var MenubarItem = React21.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1727
|
+
MenubarPrimitive.Item,
|
|
1728
|
+
{
|
|
1729
|
+
ref,
|
|
1730
|
+
className: cn(
|
|
1731
|
+
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",
|
|
1732
|
+
inset && "pl-8",
|
|
1733
|
+
className
|
|
1734
|
+
),
|
|
1735
|
+
...props
|
|
1736
|
+
}
|
|
1737
|
+
));
|
|
1738
|
+
MenubarItem.displayName = MenubarPrimitive.Item.displayName;
|
|
1739
|
+
var MenubarCheckboxItem = React21.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
1740
|
+
MenubarPrimitive.CheckboxItem,
|
|
1741
|
+
{
|
|
1742
|
+
ref,
|
|
1743
|
+
className: cn(
|
|
1744
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",
|
|
1745
|
+
className
|
|
1746
|
+
),
|
|
1747
|
+
checked,
|
|
1748
|
+
...props,
|
|
1749
|
+
children: [
|
|
1750
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react11.Check, { className: "h-4 w-4" }) }) }),
|
|
1751
|
+
children
|
|
1752
|
+
]
|
|
1753
|
+
}
|
|
1754
|
+
));
|
|
1755
|
+
MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
|
|
1756
|
+
var MenubarRadioItem = React21.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
1757
|
+
MenubarPrimitive.RadioItem,
|
|
1758
|
+
{
|
|
1759
|
+
ref,
|
|
1760
|
+
className: cn(
|
|
1761
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",
|
|
1762
|
+
className
|
|
1763
|
+
),
|
|
1764
|
+
...props,
|
|
1765
|
+
children: [
|
|
1766
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react11.Circle, { className: "h-2 w-2 fill-current" }) }) }),
|
|
1767
|
+
children
|
|
1768
|
+
]
|
|
1769
|
+
}
|
|
1770
|
+
));
|
|
1771
|
+
MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
|
|
1772
|
+
var MenubarLabel = React21.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1773
|
+
MenubarPrimitive.Label,
|
|
1774
|
+
{
|
|
1775
|
+
ref,
|
|
1776
|
+
className: cn("px-2 py-1.5 text-sm font-semibold", inset && "pl-8", className),
|
|
1777
|
+
...props
|
|
1778
|
+
}
|
|
1779
|
+
));
|
|
1780
|
+
MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
|
|
1781
|
+
var MenubarSeparator = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(MenubarPrimitive.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-muted", className), ...props }));
|
|
1782
|
+
MenubarSeparator.displayName = MenubarPrimitive.Separator.displayName;
|
|
1783
|
+
var MenubarShortcut = ({ className, ...props }) => {
|
|
1784
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className), ...props });
|
|
1785
|
+
};
|
|
1786
|
+
MenubarShortcut.displayname = "MenubarShortcut";
|
|
1787
|
+
|
|
1788
|
+
// src/components/ui/navigation-menu.tsx
|
|
1789
|
+
var React22 = __toESM(require("react"), 1);
|
|
1790
|
+
var NavigationMenuPrimitive = __toESM(require("@radix-ui/react-navigation-menu"), 1);
|
|
1791
|
+
var import_class_variance_authority5 = require("class-variance-authority");
|
|
1792
|
+
var import_lucide_react12 = require("lucide-react");
|
|
1793
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1794
|
+
var NavigationMenu = React22.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
1795
|
+
NavigationMenuPrimitive.Root,
|
|
1796
|
+
{
|
|
1797
|
+
ref,
|
|
1798
|
+
className: cn("relative z-10 flex max-w-max flex-1 items-center justify-center", className),
|
|
1799
|
+
...props,
|
|
1800
|
+
children: [
|
|
1801
|
+
children,
|
|
1802
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(NavigationMenuViewport, {})
|
|
1803
|
+
]
|
|
1804
|
+
}
|
|
1805
|
+
));
|
|
1806
|
+
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
1807
|
+
var NavigationMenuList = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1808
|
+
NavigationMenuPrimitive.List,
|
|
1809
|
+
{
|
|
1810
|
+
ref,
|
|
1811
|
+
className: cn("group flex flex-1 list-none items-center justify-center space-x-1", className),
|
|
1812
|
+
...props
|
|
1813
|
+
}
|
|
1814
|
+
));
|
|
1815
|
+
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
1816
|
+
var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
1817
|
+
var navigationMenuTriggerStyle = (0, import_class_variance_authority5.cva)(
|
|
1818
|
+
"group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"
|
|
1819
|
+
);
|
|
1820
|
+
var NavigationMenuTrigger = React22.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
1821
|
+
NavigationMenuPrimitive.Trigger,
|
|
1822
|
+
{
|
|
1823
|
+
ref,
|
|
1824
|
+
className: cn(navigationMenuTriggerStyle(), "group", className),
|
|
1825
|
+
...props,
|
|
1826
|
+
children: [
|
|
1827
|
+
children,
|
|
1828
|
+
" ",
|
|
1829
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1830
|
+
import_lucide_react12.ChevronDown,
|
|
1831
|
+
{
|
|
1832
|
+
className: "relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180",
|
|
1833
|
+
"aria-hidden": "true"
|
|
1834
|
+
}
|
|
1835
|
+
)
|
|
1836
|
+
]
|
|
1837
|
+
}
|
|
1838
|
+
));
|
|
1839
|
+
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
1840
|
+
var NavigationMenuContent = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1841
|
+
NavigationMenuPrimitive.Content,
|
|
1842
|
+
{
|
|
1843
|
+
ref,
|
|
1844
|
+
className: cn(
|
|
1845
|
+
"left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto",
|
|
1846
|
+
className
|
|
1847
|
+
),
|
|
1848
|
+
...props
|
|
1849
|
+
}
|
|
1850
|
+
));
|
|
1851
|
+
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
1852
|
+
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
1853
|
+
var NavigationMenuViewport = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1854
|
+
NavigationMenuPrimitive.Viewport,
|
|
1855
|
+
{
|
|
1856
|
+
className: cn(
|
|
1857
|
+
"origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",
|
|
1858
|
+
className
|
|
1859
|
+
),
|
|
1860
|
+
ref,
|
|
1861
|
+
...props
|
|
1862
|
+
}
|
|
1863
|
+
) }));
|
|
1864
|
+
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
1865
|
+
var NavigationMenuIndicator = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1866
|
+
NavigationMenuPrimitive.Indicator,
|
|
1867
|
+
{
|
|
1868
|
+
ref,
|
|
1869
|
+
className: cn(
|
|
1870
|
+
"top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",
|
|
1871
|
+
className
|
|
1872
|
+
),
|
|
1873
|
+
...props,
|
|
1874
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
1875
|
+
}
|
|
1876
|
+
));
|
|
1877
|
+
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
1878
|
+
|
|
1879
|
+
// src/components/ui/pagination.tsx
|
|
1880
|
+
var React23 = __toESM(require("react"), 1);
|
|
1881
|
+
var import_lucide_react13 = require("lucide-react");
|
|
1882
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1883
|
+
var Pagination = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1884
|
+
"nav",
|
|
1885
|
+
{
|
|
1886
|
+
role: "navigation",
|
|
1887
|
+
"aria-label": "pagination",
|
|
1888
|
+
className: cn("mx-auto flex w-full justify-center", className),
|
|
1889
|
+
...props
|
|
1890
|
+
}
|
|
1891
|
+
);
|
|
1892
|
+
Pagination.displayName = "Pagination";
|
|
1893
|
+
var PaginationContent = React23.forwardRef(
|
|
1894
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("ul", { ref, className: cn("flex flex-row items-center gap-1", className), ...props })
|
|
1895
|
+
);
|
|
1896
|
+
PaginationContent.displayName = "PaginationContent";
|
|
1897
|
+
var PaginationItem = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("li", { ref, className: cn("", className), ...props }));
|
|
1898
|
+
PaginationItem.displayName = "PaginationItem";
|
|
1899
|
+
var PaginationLink = ({ className, isActive, size = "icon", ...props }) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1900
|
+
"a",
|
|
1901
|
+
{
|
|
1902
|
+
"aria-current": isActive ? "page" : void 0,
|
|
1903
|
+
className: cn(
|
|
1904
|
+
buttonVariants({
|
|
1905
|
+
variant: isActive ? "outline" : "ghost",
|
|
1906
|
+
size
|
|
1907
|
+
}),
|
|
1908
|
+
className
|
|
1909
|
+
),
|
|
1910
|
+
...props
|
|
1911
|
+
}
|
|
1912
|
+
);
|
|
1913
|
+
PaginationLink.displayName = "PaginationLink";
|
|
1914
|
+
var PaginationPrevious = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(PaginationLink, { "aria-label": "Go to previous page", size: "default", className: cn("gap-1 pl-2.5", className), ...props, children: [
|
|
1915
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react13.ChevronLeft, { className: "h-4 w-4" }),
|
|
1916
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { children: "Previous" })
|
|
1917
|
+
] });
|
|
1918
|
+
PaginationPrevious.displayName = "PaginationPrevious";
|
|
1919
|
+
var PaginationNext = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(PaginationLink, { "aria-label": "Go to next page", size: "default", className: cn("gap-1 pr-2.5", className), ...props, children: [
|
|
1920
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { children: "Next" }),
|
|
1921
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react13.ChevronRight, { className: "h-4 w-4" })
|
|
1922
|
+
] });
|
|
1923
|
+
PaginationNext.displayName = "PaginationNext";
|
|
1924
|
+
var PaginationEllipsis = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("span", { "aria-hidden": true, className: cn("flex h-9 w-9 items-center justify-center", className), ...props, children: [
|
|
1925
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react13.MoreHorizontal, { className: "h-4 w-4" }),
|
|
1926
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "sr-only", children: "More pages" })
|
|
1927
|
+
] });
|
|
1928
|
+
PaginationEllipsis.displayName = "PaginationEllipsis";
|
|
1929
|
+
|
|
1930
|
+
// src/components/ui/popover.tsx
|
|
1931
|
+
var React24 = __toESM(require("react"), 1);
|
|
1932
|
+
var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"), 1);
|
|
1933
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1934
|
+
var Popover = PopoverPrimitive.Root;
|
|
1935
|
+
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
1936
|
+
var PopoverContent = React24.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1937
|
+
PopoverPrimitive.Content,
|
|
1938
|
+
{
|
|
1939
|
+
ref,
|
|
1940
|
+
align,
|
|
1941
|
+
sideOffset,
|
|
1942
|
+
className: cn(
|
|
1943
|
+
"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",
|
|
1944
|
+
className
|
|
1945
|
+
),
|
|
1946
|
+
...props
|
|
1947
|
+
}
|
|
1948
|
+
) }));
|
|
1949
|
+
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
1950
|
+
|
|
1951
|
+
// src/components/ui/progress.tsx
|
|
1952
|
+
var React25 = __toESM(require("react"), 1);
|
|
1953
|
+
var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"), 1);
|
|
1954
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1955
|
+
var Progress = React25.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1956
|
+
ProgressPrimitive.Root,
|
|
1957
|
+
{
|
|
1958
|
+
ref,
|
|
1959
|
+
className: cn("relative h-4 w-full overflow-hidden rounded-full bg-secondary", className),
|
|
1960
|
+
...props,
|
|
1961
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1962
|
+
ProgressPrimitive.Indicator,
|
|
1963
|
+
{
|
|
1964
|
+
className: "h-full w-full flex-1 bg-primary transition-all",
|
|
1965
|
+
style: { transform: `translateX(-${100 - (value || 0)}%)` }
|
|
1966
|
+
}
|
|
1967
|
+
)
|
|
1968
|
+
}
|
|
1969
|
+
));
|
|
1970
|
+
Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
1971
|
+
|
|
1972
|
+
// src/components/ui/radio-group.tsx
|
|
1973
|
+
var React26 = __toESM(require("react"), 1);
|
|
1974
|
+
var RadioGroupPrimitive = __toESM(require("@radix-ui/react-radio-group"), 1);
|
|
1975
|
+
var import_lucide_react14 = require("lucide-react");
|
|
1976
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1977
|
+
var RadioGroup4 = React26.forwardRef(({ className, ...props }, ref) => {
|
|
1978
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(RadioGroupPrimitive.Root, { className: cn("grid gap-2", className), ...props, ref });
|
|
1979
|
+
});
|
|
1980
|
+
RadioGroup4.displayName = RadioGroupPrimitive.Root.displayName;
|
|
1981
|
+
var RadioGroupItem = React26.forwardRef(({ className, ...props }, ref) => {
|
|
1982
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1983
|
+
RadioGroupPrimitive.Item,
|
|
1984
|
+
{
|
|
1985
|
+
ref,
|
|
1986
|
+
className: cn(
|
|
1987
|
+
"aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
1988
|
+
className
|
|
1989
|
+
),
|
|
1990
|
+
...props,
|
|
1991
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_lucide_react14.Circle, { className: "h-2.5 w-2.5 fill-current text-current" }) })
|
|
1992
|
+
}
|
|
1993
|
+
);
|
|
1994
|
+
});
|
|
1995
|
+
RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
|
|
1996
|
+
|
|
1997
|
+
// src/components/ui/resizable.tsx
|
|
1998
|
+
var import_lucide_react15 = require("lucide-react");
|
|
1999
|
+
var ResizablePrimitive = __toESM(require("react-resizable-panels"), 1);
|
|
2000
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
2001
|
+
var ResizablePanelGroup = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2002
|
+
ResizablePrimitive.PanelGroup,
|
|
2003
|
+
{
|
|
2004
|
+
className: cn("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", className),
|
|
2005
|
+
...props
|
|
2006
|
+
}
|
|
2007
|
+
);
|
|
2008
|
+
var ResizablePanel = ResizablePrimitive.Panel;
|
|
2009
|
+
var ResizableHandle = ({
|
|
2010
|
+
withHandle,
|
|
2011
|
+
className,
|
|
2012
|
+
...props
|
|
2013
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2014
|
+
ResizablePrimitive.PanelResizeHandle,
|
|
2015
|
+
{
|
|
2016
|
+
className: cn(
|
|
2017
|
+
"relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 [&[data-panel-group-direction=vertical]>div]:rotate-90",
|
|
2018
|
+
className
|
|
2019
|
+
),
|
|
2020
|
+
...props,
|
|
2021
|
+
children: withHandle && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_lucide_react15.GripVertical, { className: "h-2.5 w-2.5" }) })
|
|
2022
|
+
}
|
|
2023
|
+
);
|
|
2024
|
+
|
|
2025
|
+
// src/components/ui/scroll-area.tsx
|
|
2026
|
+
var React27 = __toESM(require("react"), 1);
|
|
2027
|
+
var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"), 1);
|
|
2028
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
2029
|
+
var ScrollArea = React27.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(ScrollAreaPrimitive.Root, { ref, className: cn("relative overflow-hidden", className), ...props, children: [
|
|
2030
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(ScrollAreaPrimitive.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
|
|
2031
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(ScrollBar, {}),
|
|
2032
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(ScrollAreaPrimitive.Corner, {})
|
|
2033
|
+
] }));
|
|
2034
|
+
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
2035
|
+
var ScrollBar = React27.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2036
|
+
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
2037
|
+
{
|
|
2038
|
+
ref,
|
|
2039
|
+
orientation,
|
|
2040
|
+
className: cn(
|
|
2041
|
+
"flex touch-none select-none transition-colors",
|
|
2042
|
+
orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
|
|
2043
|
+
orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
|
|
2044
|
+
className
|
|
2045
|
+
),
|
|
2046
|
+
...props,
|
|
2047
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
2048
|
+
}
|
|
2049
|
+
));
|
|
2050
|
+
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
2051
|
+
|
|
2052
|
+
// src/components/ui/select.tsx
|
|
2053
|
+
var React28 = __toESM(require("react"), 1);
|
|
2054
|
+
var SelectPrimitive = __toESM(require("@radix-ui/react-select"), 1);
|
|
2055
|
+
var import_lucide_react16 = require("lucide-react");
|
|
2056
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
2057
|
+
var Select = SelectPrimitive.Root;
|
|
2058
|
+
var SelectGroup = SelectPrimitive.Group;
|
|
2059
|
+
var SelectValue = SelectPrimitive.Value;
|
|
2060
|
+
var SelectTrigger = React28.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
2061
|
+
SelectPrimitive.Trigger,
|
|
2062
|
+
{
|
|
2063
|
+
ref,
|
|
2064
|
+
className: cn(
|
|
2065
|
+
"flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
|
|
2066
|
+
className
|
|
2067
|
+
),
|
|
2068
|
+
...props,
|
|
2069
|
+
children: [
|
|
2070
|
+
children,
|
|
2071
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react16.ChevronDown, { className: "h-4 w-4 opacity-50" }) })
|
|
2072
|
+
]
|
|
2073
|
+
}
|
|
2074
|
+
));
|
|
2075
|
+
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
2076
|
+
var SelectScrollUpButton = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2077
|
+
SelectPrimitive.ScrollUpButton,
|
|
2078
|
+
{
|
|
2079
|
+
ref,
|
|
2080
|
+
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
2081
|
+
...props,
|
|
2082
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react16.ChevronUp, { className: "h-4 w-4" })
|
|
2083
|
+
}
|
|
2084
|
+
));
|
|
2085
|
+
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
2086
|
+
var SelectScrollDownButton = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2087
|
+
SelectPrimitive.ScrollDownButton,
|
|
2088
|
+
{
|
|
2089
|
+
ref,
|
|
2090
|
+
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
2091
|
+
...props,
|
|
2092
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react16.ChevronDown, { className: "h-4 w-4" })
|
|
2093
|
+
}
|
|
2094
|
+
));
|
|
2095
|
+
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
2096
|
+
var SelectContent = React28.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
2097
|
+
SelectPrimitive.Content,
|
|
2098
|
+
{
|
|
2099
|
+
ref,
|
|
2100
|
+
className: cn(
|
|
2101
|
+
"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover 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",
|
|
2102
|
+
position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
2103
|
+
className
|
|
2104
|
+
),
|
|
2105
|
+
position,
|
|
2106
|
+
...props,
|
|
2107
|
+
children: [
|
|
2108
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(SelectScrollUpButton, {}),
|
|
2109
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2110
|
+
SelectPrimitive.Viewport,
|
|
2111
|
+
{
|
|
2112
|
+
className: cn(
|
|
2113
|
+
"p-1",
|
|
2114
|
+
position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
|
|
2115
|
+
),
|
|
2116
|
+
children
|
|
2117
|
+
}
|
|
2118
|
+
),
|
|
2119
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(SelectScrollDownButton, {})
|
|
2120
|
+
]
|
|
2121
|
+
}
|
|
2122
|
+
) }));
|
|
2123
|
+
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
2124
|
+
var SelectLabel = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(SelectPrimitive.Label, { ref, className: cn("py-1.5 pl-8 pr-2 text-sm font-semibold", className), ...props }));
|
|
2125
|
+
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
2126
|
+
var SelectItem = React28.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
2127
|
+
SelectPrimitive.Item,
|
|
2128
|
+
{
|
|
2129
|
+
ref,
|
|
2130
|
+
className: cn(
|
|
2131
|
+
"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",
|
|
2132
|
+
className
|
|
2133
|
+
),
|
|
2134
|
+
...props,
|
|
2135
|
+
children: [
|
|
2136
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react16.Check, { className: "h-4 w-4" }) }) }),
|
|
2137
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(SelectPrimitive.ItemText, { children })
|
|
2138
|
+
]
|
|
2139
|
+
}
|
|
2140
|
+
));
|
|
2141
|
+
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
2142
|
+
var SelectSeparator = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(SelectPrimitive.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-muted", className), ...props }));
|
|
2143
|
+
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
2144
|
+
|
|
2145
|
+
// src/components/ui/separator.tsx
|
|
2146
|
+
var React29 = __toESM(require("react"), 1);
|
|
2147
|
+
var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"), 1);
|
|
2148
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
2149
|
+
var Separator5 = React29.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2150
|
+
SeparatorPrimitive.Root,
|
|
2151
|
+
{
|
|
2152
|
+
ref,
|
|
2153
|
+
decorative,
|
|
2154
|
+
orientation,
|
|
2155
|
+
className: cn("shrink-0 bg-border", orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", className),
|
|
2156
|
+
...props
|
|
2157
|
+
}
|
|
2158
|
+
));
|
|
2159
|
+
Separator5.displayName = SeparatorPrimitive.Root.displayName;
|
|
2160
|
+
|
|
2161
|
+
// src/components/ui/sheet.tsx
|
|
2162
|
+
var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
2163
|
+
var import_class_variance_authority6 = require("class-variance-authority");
|
|
2164
|
+
var import_lucide_react17 = require("lucide-react");
|
|
2165
|
+
var React30 = __toESM(require("react"), 1);
|
|
2166
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
2167
|
+
var Sheet = SheetPrimitive.Root;
|
|
2168
|
+
var SheetTrigger = SheetPrimitive.Trigger;
|
|
2169
|
+
var SheetClose = SheetPrimitive.Close;
|
|
2170
|
+
var SheetPortal = SheetPrimitive.Portal;
|
|
2171
|
+
var SheetOverlay = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2172
|
+
SheetPrimitive.Overlay,
|
|
2173
|
+
{
|
|
2174
|
+
className: cn(
|
|
2175
|
+
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
2176
|
+
className
|
|
2177
|
+
),
|
|
2178
|
+
...props,
|
|
2179
|
+
ref
|
|
2180
|
+
}
|
|
2181
|
+
));
|
|
2182
|
+
SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
|
|
2183
|
+
var sheetVariants = (0, import_class_variance_authority6.cva)(
|
|
2184
|
+
"fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
2185
|
+
{
|
|
2186
|
+
variants: {
|
|
2187
|
+
side: {
|
|
2188
|
+
top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
|
|
2189
|
+
bottom: "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
|
|
2190
|
+
left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
|
|
2191
|
+
right: "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"
|
|
2192
|
+
}
|
|
2193
|
+
},
|
|
2194
|
+
defaultVariants: {
|
|
2195
|
+
side: "right"
|
|
2196
|
+
}
|
|
2197
|
+
}
|
|
2198
|
+
);
|
|
2199
|
+
var SheetContent = React30.forwardRef(
|
|
2200
|
+
({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(SheetPortal, { children: [
|
|
2201
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(SheetOverlay, {}),
|
|
2202
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(SheetPrimitive.Content, { ref, className: cn(sheetVariants({ side }), className), ...props, children: [
|
|
2203
|
+
children,
|
|
2204
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-secondary hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none", children: [
|
|
2205
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_lucide_react17.X, { className: "h-4 w-4" }),
|
|
2206
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "sr-only", children: "Close" })
|
|
2207
|
+
] })
|
|
2208
|
+
] })
|
|
2209
|
+
] })
|
|
2210
|
+
);
|
|
2211
|
+
SheetContent.displayName = SheetPrimitive.Content.displayName;
|
|
2212
|
+
var SheetHeader = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: cn("flex flex-col space-y-2 text-center sm:text-left", className), ...props });
|
|
2213
|
+
SheetHeader.displayName = "SheetHeader";
|
|
2214
|
+
var SheetFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
|
|
2215
|
+
SheetFooter.displayName = "SheetFooter";
|
|
2216
|
+
var SheetTitle = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(SheetPrimitive.Title, { ref, className: cn("text-lg font-semibold text-foreground", className), ...props }));
|
|
2217
|
+
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
2218
|
+
var SheetDescription = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(SheetPrimitive.Description, { ref, className: cn("text-sm text-muted-foreground", className), ...props }));
|
|
2219
|
+
SheetDescription.displayName = SheetPrimitive.Description.displayName;
|
|
2220
|
+
|
|
2221
|
+
// src/components/ui/sidebar.tsx
|
|
2222
|
+
var React33 = __toESM(require("react"), 1);
|
|
2223
|
+
var import_react_slot4 = require("@radix-ui/react-slot");
|
|
2224
|
+
var import_class_variance_authority7 = require("class-variance-authority");
|
|
2225
|
+
var import_lucide_react18 = require("lucide-react");
|
|
2226
|
+
|
|
2227
|
+
// src/hooks/use-mobile.ts
|
|
2228
|
+
var React31 = __toESM(require("react"), 1);
|
|
2229
|
+
var MOBILE_BREAKPOINT = 768;
|
|
2230
|
+
function useIsMobile() {
|
|
2231
|
+
const [isMobile, setIsMobile] = React31.useState(void 0);
|
|
2232
|
+
React31.useEffect(() => {
|
|
2233
|
+
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
2234
|
+
const onChange = () => {
|
|
2235
|
+
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
2236
|
+
};
|
|
2237
|
+
mql.addEventListener("change", onChange);
|
|
2238
|
+
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
2239
|
+
return () => mql.removeEventListener("change", onChange);
|
|
2240
|
+
}, []);
|
|
2241
|
+
return !!isMobile;
|
|
2242
|
+
}
|
|
2243
|
+
|
|
2244
|
+
// src/components/ui/skeleton.tsx
|
|
2245
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
2246
|
+
function Skeleton({ className, ...props }) {
|
|
2247
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: cn("animate-pulse rounded-md bg-muted", className), ...props });
|
|
2248
|
+
}
|
|
2249
|
+
|
|
2250
|
+
// src/components/ui/tooltip.tsx
|
|
2251
|
+
var React32 = __toESM(require("react"), 1);
|
|
2252
|
+
var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"), 1);
|
|
2253
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
2254
|
+
var TooltipProvider = TooltipPrimitive.Provider;
|
|
2255
|
+
var Tooltip2 = TooltipPrimitive.Root;
|
|
2256
|
+
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
2257
|
+
var TooltipContent = React32.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2258
|
+
TooltipPrimitive.Content,
|
|
2259
|
+
{
|
|
2260
|
+
ref,
|
|
2261
|
+
sideOffset,
|
|
2262
|
+
className: cn(
|
|
2263
|
+
"z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",
|
|
2264
|
+
className
|
|
2265
|
+
),
|
|
2266
|
+
...props
|
|
2267
|
+
}
|
|
2268
|
+
));
|
|
2269
|
+
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
2270
|
+
|
|
2271
|
+
// src/components/ui/sidebar.tsx
|
|
2272
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
2273
|
+
var SIDEBAR_COOKIE_NAME = "sidebar:state";
|
|
2274
|
+
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
2275
|
+
var SIDEBAR_WIDTH = "16rem";
|
|
2276
|
+
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
2277
|
+
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
2278
|
+
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
2279
|
+
var SidebarContext = React33.createContext(null);
|
|
2280
|
+
function useSidebar() {
|
|
2281
|
+
const context = React33.useContext(SidebarContext);
|
|
2282
|
+
if (!context) {
|
|
2283
|
+
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
2284
|
+
}
|
|
2285
|
+
return context;
|
|
2286
|
+
}
|
|
2287
|
+
var SidebarProvider = React33.forwardRef(({ defaultOpen = true, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }, ref) => {
|
|
2288
|
+
const isMobile = useIsMobile();
|
|
2289
|
+
const [openMobile, setOpenMobile] = React33.useState(false);
|
|
2290
|
+
const [_open, _setOpen] = React33.useState(defaultOpen);
|
|
2291
|
+
const open = openProp ?? _open;
|
|
2292
|
+
const setOpen = React33.useCallback(
|
|
2293
|
+
(value) => {
|
|
2294
|
+
const openState = typeof value === "function" ? value(open) : value;
|
|
2295
|
+
if (setOpenProp) {
|
|
2296
|
+
setOpenProp(openState);
|
|
2297
|
+
} else {
|
|
2298
|
+
_setOpen(openState);
|
|
2299
|
+
}
|
|
2300
|
+
document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;
|
|
2301
|
+
},
|
|
2302
|
+
[setOpenProp, open]
|
|
2303
|
+
);
|
|
2304
|
+
const toggleSidebar = React33.useCallback(() => {
|
|
2305
|
+
return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
|
|
2306
|
+
}, [isMobile, setOpen, setOpenMobile]);
|
|
2307
|
+
React33.useEffect(() => {
|
|
2308
|
+
const handleKeyDown = (event) => {
|
|
2309
|
+
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
2310
|
+
event.preventDefault();
|
|
2311
|
+
toggleSidebar();
|
|
2312
|
+
}
|
|
2313
|
+
};
|
|
2314
|
+
window.addEventListener("keydown", handleKeyDown);
|
|
2315
|
+
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
2316
|
+
}, [toggleSidebar]);
|
|
2317
|
+
const state = open ? "expanded" : "collapsed";
|
|
2318
|
+
const contextValue = React33.useMemo(
|
|
2319
|
+
() => ({
|
|
2320
|
+
state,
|
|
2321
|
+
open,
|
|
2322
|
+
setOpen,
|
|
2323
|
+
isMobile,
|
|
2324
|
+
openMobile,
|
|
2325
|
+
setOpenMobile,
|
|
2326
|
+
toggleSidebar
|
|
2327
|
+
}),
|
|
2328
|
+
[state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
|
|
2329
|
+
);
|
|
2330
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2331
|
+
"div",
|
|
2332
|
+
{
|
|
2333
|
+
style: {
|
|
2334
|
+
"--sidebar-width": SIDEBAR_WIDTH,
|
|
2335
|
+
"--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
|
|
2336
|
+
...style
|
|
2337
|
+
},
|
|
2338
|
+
className: cn("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar", className),
|
|
2339
|
+
ref,
|
|
2340
|
+
...props,
|
|
2341
|
+
children
|
|
2342
|
+
}
|
|
2343
|
+
) }) });
|
|
2344
|
+
});
|
|
2345
|
+
SidebarProvider.displayName = "SidebarProvider";
|
|
2346
|
+
var Sidebar = React33.forwardRef(({ side = "left", variant = "sidebar", collapsible = "offcanvas", className, children, ...props }, ref) => {
|
|
2347
|
+
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
2348
|
+
if (collapsible === "none") {
|
|
2349
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2350
|
+
"div",
|
|
2351
|
+
{
|
|
2352
|
+
className: cn("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground", className),
|
|
2353
|
+
ref,
|
|
2354
|
+
...props,
|
|
2355
|
+
children
|
|
2356
|
+
}
|
|
2357
|
+
);
|
|
2358
|
+
}
|
|
2359
|
+
if (isMobile) {
|
|
2360
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2361
|
+
SheetContent,
|
|
2362
|
+
{
|
|
2363
|
+
"data-sidebar": "sidebar",
|
|
2364
|
+
"data-mobile": "true",
|
|
2365
|
+
className: "w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",
|
|
2366
|
+
style: {
|
|
2367
|
+
"--sidebar-width": SIDEBAR_WIDTH_MOBILE
|
|
2368
|
+
},
|
|
2369
|
+
side,
|
|
2370
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "flex h-full w-full flex-col", children })
|
|
2371
|
+
}
|
|
2372
|
+
) });
|
|
2373
|
+
}
|
|
2374
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
2375
|
+
"div",
|
|
2376
|
+
{
|
|
2377
|
+
ref,
|
|
2378
|
+
className: "group peer hidden text-sidebar-foreground md:block",
|
|
2379
|
+
"data-state": state,
|
|
2380
|
+
"data-collapsible": state === "collapsed" ? collapsible : "",
|
|
2381
|
+
"data-variant": variant,
|
|
2382
|
+
"data-side": side,
|
|
2383
|
+
children: [
|
|
2384
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2385
|
+
"div",
|
|
2386
|
+
{
|
|
2387
|
+
className: cn(
|
|
2388
|
+
"relative h-svh w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear",
|
|
2389
|
+
"group-data-[collapsible=offcanvas]:w-0",
|
|
2390
|
+
"group-data-[side=right]:rotate-180",
|
|
2391
|
+
variant === "floating" || variant === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]" : "group-data-[collapsible=icon]:w-[--sidebar-width-icon]"
|
|
2392
|
+
)
|
|
2393
|
+
}
|
|
2394
|
+
),
|
|
2395
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2396
|
+
"div",
|
|
2397
|
+
{
|
|
2398
|
+
className: cn(
|
|
2399
|
+
"fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",
|
|
2400
|
+
side === "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)]",
|
|
2401
|
+
// Adjust the padding for floating and inset variants.
|
|
2402
|
+
variant === "floating" || variant === "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",
|
|
2403
|
+
className
|
|
2404
|
+
),
|
|
2405
|
+
...props,
|
|
2406
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2407
|
+
"div",
|
|
2408
|
+
{
|
|
2409
|
+
"data-sidebar": "sidebar",
|
|
2410
|
+
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",
|
|
2411
|
+
children
|
|
2412
|
+
}
|
|
2413
|
+
)
|
|
2414
|
+
}
|
|
2415
|
+
)
|
|
2416
|
+
]
|
|
2417
|
+
}
|
|
2418
|
+
);
|
|
2419
|
+
});
|
|
2420
|
+
Sidebar.displayName = "Sidebar";
|
|
2421
|
+
var SidebarTrigger = React33.forwardRef(
|
|
2422
|
+
({ className, onClick, ...props }, ref) => {
|
|
2423
|
+
const { toggleSidebar } = useSidebar();
|
|
2424
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
2425
|
+
Button,
|
|
2426
|
+
{
|
|
2427
|
+
ref,
|
|
2428
|
+
"data-sidebar": "trigger",
|
|
2429
|
+
variant: "ghost",
|
|
2430
|
+
size: "icon",
|
|
2431
|
+
className: cn("h-7 w-7", className),
|
|
2432
|
+
onClick: (event) => {
|
|
2433
|
+
onClick?.(event);
|
|
2434
|
+
toggleSidebar();
|
|
2435
|
+
},
|
|
2436
|
+
...props,
|
|
2437
|
+
children: [
|
|
2438
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_lucide_react18.PanelLeft, {}),
|
|
2439
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
2440
|
+
]
|
|
2441
|
+
}
|
|
2442
|
+
);
|
|
2443
|
+
}
|
|
2444
|
+
);
|
|
2445
|
+
SidebarTrigger.displayName = "SidebarTrigger";
|
|
2446
|
+
var SidebarRail = React33.forwardRef(
|
|
2447
|
+
({ className, ...props }, ref) => {
|
|
2448
|
+
const { toggleSidebar } = useSidebar();
|
|
2449
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2450
|
+
"button",
|
|
2451
|
+
{
|
|
2452
|
+
ref,
|
|
2453
|
+
"data-sidebar": "rail",
|
|
2454
|
+
"aria-label": "Toggle Sidebar",
|
|
2455
|
+
tabIndex: -1,
|
|
2456
|
+
onClick: toggleSidebar,
|
|
2457
|
+
title: "Toggle Sidebar",
|
|
2458
|
+
className: cn(
|
|
2459
|
+
"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] group-data-[side=left]:-right-4 group-data-[side=right]:left-0 hover:after:bg-sidebar-border sm:flex",
|
|
2460
|
+
"[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize",
|
|
2461
|
+
"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
|
|
2462
|
+
"group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar",
|
|
2463
|
+
"[[data-side=left][data-collapsible=offcanvas]_&]:-right-2",
|
|
2464
|
+
"[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",
|
|
2465
|
+
className
|
|
2466
|
+
),
|
|
2467
|
+
...props
|
|
2468
|
+
}
|
|
2469
|
+
);
|
|
2470
|
+
}
|
|
2471
|
+
);
|
|
2472
|
+
SidebarRail.displayName = "SidebarRail";
|
|
2473
|
+
var SidebarInset = React33.forwardRef(({ className, ...props }, ref) => {
|
|
2474
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2475
|
+
"main",
|
|
2476
|
+
{
|
|
2477
|
+
ref,
|
|
2478
|
+
className: cn(
|
|
2479
|
+
"relative flex min-h-svh flex-1 flex-col bg-background",
|
|
2480
|
+
"peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] 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",
|
|
2481
|
+
className
|
|
2482
|
+
),
|
|
2483
|
+
...props
|
|
2484
|
+
}
|
|
2485
|
+
);
|
|
2486
|
+
});
|
|
2487
|
+
SidebarInset.displayName = "SidebarInset";
|
|
2488
|
+
var SidebarInput = React33.forwardRef(
|
|
2489
|
+
({ className, ...props }, ref) => {
|
|
2490
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2491
|
+
Input,
|
|
2492
|
+
{
|
|
2493
|
+
ref,
|
|
2494
|
+
"data-sidebar": "input",
|
|
2495
|
+
className: cn(
|
|
2496
|
+
"h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",
|
|
2497
|
+
className
|
|
2498
|
+
),
|
|
2499
|
+
...props
|
|
2500
|
+
}
|
|
2501
|
+
);
|
|
2502
|
+
}
|
|
2503
|
+
);
|
|
2504
|
+
SidebarInput.displayName = "SidebarInput";
|
|
2505
|
+
var SidebarHeader = React33.forwardRef(({ className, ...props }, ref) => {
|
|
2506
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { ref, "data-sidebar": "header", className: cn("flex flex-col gap-2 p-2", className), ...props });
|
|
2507
|
+
});
|
|
2508
|
+
SidebarHeader.displayName = "SidebarHeader";
|
|
2509
|
+
var SidebarFooter = React33.forwardRef(({ className, ...props }, ref) => {
|
|
2510
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { ref, "data-sidebar": "footer", className: cn("flex flex-col gap-2 p-2", className), ...props });
|
|
2511
|
+
});
|
|
2512
|
+
SidebarFooter.displayName = "SidebarFooter";
|
|
2513
|
+
var SidebarSeparator = React33.forwardRef(
|
|
2514
|
+
({ className, ...props }, ref) => {
|
|
2515
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2516
|
+
Separator5,
|
|
2517
|
+
{
|
|
2518
|
+
ref,
|
|
2519
|
+
"data-sidebar": "separator",
|
|
2520
|
+
className: cn("mx-2 w-auto bg-sidebar-border", className),
|
|
2521
|
+
...props
|
|
2522
|
+
}
|
|
2523
|
+
);
|
|
2524
|
+
}
|
|
2525
|
+
);
|
|
2526
|
+
SidebarSeparator.displayName = "SidebarSeparator";
|
|
2527
|
+
var SidebarContent = React33.forwardRef(({ className, ...props }, ref) => {
|
|
2528
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2529
|
+
"div",
|
|
2530
|
+
{
|
|
2531
|
+
ref,
|
|
2532
|
+
"data-sidebar": "content",
|
|
2533
|
+
className: cn(
|
|
2534
|
+
"flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",
|
|
2535
|
+
className
|
|
2536
|
+
),
|
|
2537
|
+
...props
|
|
2538
|
+
}
|
|
2539
|
+
);
|
|
2540
|
+
});
|
|
2541
|
+
SidebarContent.displayName = "SidebarContent";
|
|
2542
|
+
var SidebarGroup = React33.forwardRef(({ className, ...props }, ref) => {
|
|
2543
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2544
|
+
"div",
|
|
2545
|
+
{
|
|
2546
|
+
ref,
|
|
2547
|
+
"data-sidebar": "group",
|
|
2548
|
+
className: cn("relative flex w-full min-w-0 flex-col p-2", className),
|
|
2549
|
+
...props
|
|
2550
|
+
}
|
|
2551
|
+
);
|
|
2552
|
+
});
|
|
2553
|
+
SidebarGroup.displayName = "SidebarGroup";
|
|
2554
|
+
var SidebarGroupLabel = React33.forwardRef(
|
|
2555
|
+
({ className, asChild = false, ...props }, ref) => {
|
|
2556
|
+
const Comp = asChild ? import_react_slot4.Slot : "div";
|
|
2557
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2558
|
+
Comp,
|
|
2559
|
+
{
|
|
2560
|
+
ref,
|
|
2561
|
+
"data-sidebar": "group-label",
|
|
2562
|
+
className: cn(
|
|
2563
|
+
"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,opa] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
2564
|
+
"group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
|
|
2565
|
+
className
|
|
2566
|
+
),
|
|
2567
|
+
...props
|
|
2568
|
+
}
|
|
2569
|
+
);
|
|
2570
|
+
}
|
|
2571
|
+
);
|
|
2572
|
+
SidebarGroupLabel.displayName = "SidebarGroupLabel";
|
|
2573
|
+
var SidebarGroupAction = React33.forwardRef(
|
|
2574
|
+
({ className, asChild = false, ...props }, ref) => {
|
|
2575
|
+
const Comp = asChild ? import_react_slot4.Slot : "button";
|
|
2576
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2577
|
+
Comp,
|
|
2578
|
+
{
|
|
2579
|
+
ref,
|
|
2580
|
+
"data-sidebar": "group-action",
|
|
2581
|
+
className: cn(
|
|
2582
|
+
"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",
|
|
2583
|
+
// Increases the hit area of the button on mobile.
|
|
2584
|
+
"after:absolute after:-inset-2 after:md:hidden",
|
|
2585
|
+
"group-data-[collapsible=icon]:hidden",
|
|
2586
|
+
className
|
|
2587
|
+
),
|
|
2588
|
+
...props
|
|
2589
|
+
}
|
|
2590
|
+
);
|
|
2591
|
+
}
|
|
2592
|
+
);
|
|
2593
|
+
SidebarGroupAction.displayName = "SidebarGroupAction";
|
|
2594
|
+
var SidebarGroupContent = React33.forwardRef(
|
|
2595
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { ref, "data-sidebar": "group-content", className: cn("w-full text-sm", className), ...props })
|
|
2596
|
+
);
|
|
2597
|
+
SidebarGroupContent.displayName = "SidebarGroupContent";
|
|
2598
|
+
var SidebarMenu = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("ul", { ref, "data-sidebar": "menu", className: cn("flex w-full min-w-0 flex-col gap-1", className), ...props }));
|
|
2599
|
+
SidebarMenu.displayName = "SidebarMenu";
|
|
2600
|
+
var SidebarMenuItem = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("li", { ref, "data-sidebar": "menu-item", className: cn("group/menu-item relative", className), ...props }));
|
|
2601
|
+
SidebarMenuItem.displayName = "SidebarMenuItem";
|
|
2602
|
+
var sidebarMenuButtonVariants = (0, import_class_variance_authority7.cva)(
|
|
2603
|
+
"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",
|
|
2604
|
+
{
|
|
2605
|
+
variants: {
|
|
2606
|
+
variant: {
|
|
2607
|
+
default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
|
|
2608
|
+
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))]"
|
|
2609
|
+
},
|
|
2610
|
+
size: {
|
|
2611
|
+
default: "h-8 text-sm",
|
|
2612
|
+
sm: "h-7 text-xs",
|
|
2613
|
+
lg: "h-12 text-sm group-data-[collapsible=icon]:!p-0"
|
|
2614
|
+
}
|
|
2615
|
+
},
|
|
2616
|
+
defaultVariants: {
|
|
2617
|
+
variant: "default",
|
|
2618
|
+
size: "default"
|
|
2619
|
+
}
|
|
2620
|
+
}
|
|
2621
|
+
);
|
|
2622
|
+
var SidebarMenuButton = React33.forwardRef(({ asChild = false, isActive = false, variant = "default", size = "default", tooltip, className, ...props }, ref) => {
|
|
2623
|
+
const Comp = asChild ? import_react_slot4.Slot : "button";
|
|
2624
|
+
const { isMobile, state } = useSidebar();
|
|
2625
|
+
const button = /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2626
|
+
Comp,
|
|
2627
|
+
{
|
|
2628
|
+
ref,
|
|
2629
|
+
"data-sidebar": "menu-button",
|
|
2630
|
+
"data-size": size,
|
|
2631
|
+
"data-active": isActive,
|
|
2632
|
+
className: cn(sidebarMenuButtonVariants({ variant, size }), className),
|
|
2633
|
+
...props
|
|
2634
|
+
}
|
|
2635
|
+
);
|
|
2636
|
+
if (!tooltip) {
|
|
2637
|
+
return button;
|
|
2638
|
+
}
|
|
2639
|
+
if (typeof tooltip === "string") {
|
|
2640
|
+
tooltip = {
|
|
2641
|
+
children: tooltip
|
|
2642
|
+
};
|
|
2643
|
+
}
|
|
2644
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(Tooltip2, { children: [
|
|
2645
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(TooltipTrigger, { asChild: true, children: button }),
|
|
2646
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(TooltipContent, { side: "right", align: "center", hidden: state !== "collapsed" || isMobile, ...tooltip })
|
|
2647
|
+
] });
|
|
2648
|
+
});
|
|
2649
|
+
SidebarMenuButton.displayName = "SidebarMenuButton";
|
|
2650
|
+
var SidebarMenuAction = React33.forwardRef(({ className, asChild = false, showOnHover = false, ...props }, ref) => {
|
|
2651
|
+
const Comp = asChild ? import_react_slot4.Slot : "button";
|
|
2652
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2653
|
+
Comp,
|
|
2654
|
+
{
|
|
2655
|
+
ref,
|
|
2656
|
+
"data-sidebar": "menu-action",
|
|
2657
|
+
className: cn(
|
|
2658
|
+
"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 peer-hover/menu-button:text-sidebar-accent-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
2659
|
+
// Increases the hit area of the button on mobile.
|
|
2660
|
+
"after:absolute after:-inset-2 after:md:hidden",
|
|
2661
|
+
"peer-data-[size=sm]/menu-button:top-1",
|
|
2662
|
+
"peer-data-[size=default]/menu-button:top-1.5",
|
|
2663
|
+
"peer-data-[size=lg]/menu-button:top-2.5",
|
|
2664
|
+
"group-data-[collapsible=icon]:hidden",
|
|
2665
|
+
showOnHover && "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",
|
|
2666
|
+
className
|
|
2667
|
+
),
|
|
2668
|
+
...props
|
|
2669
|
+
}
|
|
2670
|
+
);
|
|
2671
|
+
});
|
|
2672
|
+
SidebarMenuAction.displayName = "SidebarMenuAction";
|
|
2673
|
+
var SidebarMenuBadge = React33.forwardRef(
|
|
2674
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2675
|
+
"div",
|
|
2676
|
+
{
|
|
2677
|
+
ref,
|
|
2678
|
+
"data-sidebar": "menu-badge",
|
|
2679
|
+
className: cn(
|
|
2680
|
+
"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",
|
|
2681
|
+
"peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",
|
|
2682
|
+
"peer-data-[size=sm]/menu-button:top-1",
|
|
2683
|
+
"peer-data-[size=default]/menu-button:top-1.5",
|
|
2684
|
+
"peer-data-[size=lg]/menu-button:top-2.5",
|
|
2685
|
+
"group-data-[collapsible=icon]:hidden",
|
|
2686
|
+
className
|
|
2687
|
+
),
|
|
2688
|
+
...props
|
|
2689
|
+
}
|
|
2690
|
+
)
|
|
2691
|
+
);
|
|
2692
|
+
SidebarMenuBadge.displayName = "SidebarMenuBadge";
|
|
2693
|
+
var SidebarMenuSkeleton = React33.forwardRef(({ className, showIcon = false, ...props }, ref) => {
|
|
2694
|
+
const width = React33.useMemo(() => {
|
|
2695
|
+
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
2696
|
+
}, []);
|
|
2697
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
2698
|
+
"div",
|
|
2699
|
+
{
|
|
2700
|
+
ref,
|
|
2701
|
+
"data-sidebar": "menu-skeleton",
|
|
2702
|
+
className: cn("flex h-8 items-center gap-2 rounded-md px-2", className),
|
|
2703
|
+
...props,
|
|
2704
|
+
children: [
|
|
2705
|
+
showIcon && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Skeleton, { className: "size-4 rounded-md", "data-sidebar": "menu-skeleton-icon" }),
|
|
2706
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2707
|
+
Skeleton,
|
|
2708
|
+
{
|
|
2709
|
+
className: "h-4 max-w-[--skeleton-width] flex-1",
|
|
2710
|
+
"data-sidebar": "menu-skeleton-text",
|
|
2711
|
+
style: {
|
|
2712
|
+
"--skeleton-width": width
|
|
2713
|
+
}
|
|
2714
|
+
}
|
|
2715
|
+
)
|
|
2716
|
+
]
|
|
2717
|
+
}
|
|
2718
|
+
);
|
|
2719
|
+
});
|
|
2720
|
+
SidebarMenuSkeleton.displayName = "SidebarMenuSkeleton";
|
|
2721
|
+
var SidebarMenuSub = React33.forwardRef(
|
|
2722
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2723
|
+
"ul",
|
|
2724
|
+
{
|
|
2725
|
+
ref,
|
|
2726
|
+
"data-sidebar": "menu-sub",
|
|
2727
|
+
className: cn(
|
|
2728
|
+
"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",
|
|
2729
|
+
"group-data-[collapsible=icon]:hidden",
|
|
2730
|
+
className
|
|
2731
|
+
),
|
|
2732
|
+
...props
|
|
2733
|
+
}
|
|
2734
|
+
)
|
|
2735
|
+
);
|
|
2736
|
+
SidebarMenuSub.displayName = "SidebarMenuSub";
|
|
2737
|
+
var SidebarMenuSubItem = React33.forwardRef(({ ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("li", { ref, ...props }));
|
|
2738
|
+
SidebarMenuSubItem.displayName = "SidebarMenuSubItem";
|
|
2739
|
+
var SidebarMenuSubButton = React33.forwardRef(({ asChild = false, size = "md", isActive, className, ...props }, ref) => {
|
|
2740
|
+
const Comp = asChild ? import_react_slot4.Slot : "a";
|
|
2741
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2742
|
+
Comp,
|
|
2743
|
+
{
|
|
2744
|
+
ref,
|
|
2745
|
+
"data-sidebar": "menu-sub-button",
|
|
2746
|
+
"data-size": size,
|
|
2747
|
+
"data-active": isActive,
|
|
2748
|
+
className: cn(
|
|
2749
|
+
"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 aria-disabled:pointer-events-none aria-disabled:opacity-50 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 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground",
|
|
2750
|
+
"data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
|
|
2751
|
+
size === "sm" && "text-xs",
|
|
2752
|
+
size === "md" && "text-sm",
|
|
2753
|
+
"group-data-[collapsible=icon]:hidden",
|
|
2754
|
+
className
|
|
2755
|
+
),
|
|
2756
|
+
...props
|
|
2757
|
+
}
|
|
2758
|
+
);
|
|
2759
|
+
});
|
|
2760
|
+
SidebarMenuSubButton.displayName = "SidebarMenuSubButton";
|
|
2761
|
+
|
|
2762
|
+
// src/components/ui/slider.tsx
|
|
2763
|
+
var React34 = __toESM(require("react"), 1);
|
|
2764
|
+
var SliderPrimitive = __toESM(require("@radix-ui/react-slider"), 1);
|
|
2765
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
2766
|
+
var Slider = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
2767
|
+
SliderPrimitive.Root,
|
|
2768
|
+
{
|
|
2769
|
+
ref,
|
|
2770
|
+
className: cn("relative flex w-full touch-none select-none items-center", className),
|
|
2771
|
+
...props,
|
|
2772
|
+
children: [
|
|
2773
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(SliderPrimitive.Track, { className: "relative h-2 w-full grow overflow-hidden rounded-full bg-secondary", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(SliderPrimitive.Range, { className: "absolute h-full bg-primary" }) }),
|
|
2774
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(SliderPrimitive.Thumb, { className: "block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50" })
|
|
2775
|
+
]
|
|
2776
|
+
}
|
|
2777
|
+
));
|
|
2778
|
+
Slider.displayName = SliderPrimitive.Root.displayName;
|
|
2779
|
+
|
|
2780
|
+
// src/components/ui/sonner.tsx
|
|
2781
|
+
var import_next_themes = require("next-themes");
|
|
2782
|
+
var import_sonner = require("sonner");
|
|
2783
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
2784
|
+
var Toaster = ({ ...props }) => {
|
|
2785
|
+
const { theme = "system" } = (0, import_next_themes.useTheme)();
|
|
2786
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
2787
|
+
import_sonner.Toaster,
|
|
2788
|
+
{
|
|
2789
|
+
theme,
|
|
2790
|
+
className: "toaster group",
|
|
2791
|
+
toastOptions: {
|
|
2792
|
+
classNames: {
|
|
2793
|
+
toast: "group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",
|
|
2794
|
+
description: "group-[.toast]:text-muted-foreground",
|
|
2795
|
+
actionButton: "group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",
|
|
2796
|
+
cancelButton: "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"
|
|
2797
|
+
}
|
|
2798
|
+
},
|
|
2799
|
+
...props
|
|
2800
|
+
}
|
|
2801
|
+
);
|
|
2802
|
+
};
|
|
2803
|
+
|
|
2804
|
+
// src/components/ui/switch.tsx
|
|
2805
|
+
var React35 = __toESM(require("react"), 1);
|
|
2806
|
+
var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"), 1);
|
|
2807
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
2808
|
+
var Switch = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2809
|
+
SwitchPrimitives.Root,
|
|
2810
|
+
{
|
|
2811
|
+
className: cn(
|
|
2812
|
+
"peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",
|
|
2813
|
+
className
|
|
2814
|
+
),
|
|
2815
|
+
...props,
|
|
2816
|
+
ref,
|
|
2817
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2818
|
+
SwitchPrimitives.Thumb,
|
|
2819
|
+
{
|
|
2820
|
+
className: cn(
|
|
2821
|
+
"pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"
|
|
2822
|
+
)
|
|
2823
|
+
}
|
|
2824
|
+
)
|
|
2825
|
+
}
|
|
2826
|
+
));
|
|
2827
|
+
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
2828
|
+
|
|
2829
|
+
// src/components/ui/table.tsx
|
|
2830
|
+
var React36 = __toESM(require("react"), 1);
|
|
2831
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
2832
|
+
var Table = React36.forwardRef(
|
|
2833
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("table", { ref, className: cn("w-full caption-bottom text-sm", className), ...props }) })
|
|
2834
|
+
);
|
|
2835
|
+
Table.displayName = "Table";
|
|
2836
|
+
var TableHeader = React36.forwardRef(
|
|
2837
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("thead", { ref, className: cn("[&_tr]:border-b", className), ...props })
|
|
2838
|
+
);
|
|
2839
|
+
TableHeader.displayName = "TableHeader";
|
|
2840
|
+
var TableBody = React36.forwardRef(
|
|
2841
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("tbody", { ref, className: cn("[&_tr:last-child]:border-0", className), ...props })
|
|
2842
|
+
);
|
|
2843
|
+
TableBody.displayName = "TableBody";
|
|
2844
|
+
var TableFooter = React36.forwardRef(
|
|
2845
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("tfoot", { ref, className: cn("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0", className), ...props })
|
|
2846
|
+
);
|
|
2847
|
+
TableFooter.displayName = "TableFooter";
|
|
2848
|
+
var TableRow = React36.forwardRef(
|
|
2849
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2850
|
+
"tr",
|
|
2851
|
+
{
|
|
2852
|
+
ref,
|
|
2853
|
+
className: cn("border-b transition-colors data-[state=selected]:bg-muted hover:bg-muted/50", className),
|
|
2854
|
+
...props
|
|
2855
|
+
}
|
|
2856
|
+
)
|
|
2857
|
+
);
|
|
2858
|
+
TableRow.displayName = "TableRow";
|
|
2859
|
+
var TableHead = React36.forwardRef(
|
|
2860
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2861
|
+
"th",
|
|
2862
|
+
{
|
|
2863
|
+
ref,
|
|
2864
|
+
className: cn(
|
|
2865
|
+
"h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",
|
|
2866
|
+
className
|
|
2867
|
+
),
|
|
2868
|
+
...props
|
|
2869
|
+
}
|
|
2870
|
+
)
|
|
2871
|
+
);
|
|
2872
|
+
TableHead.displayName = "TableHead";
|
|
2873
|
+
var TableCell = React36.forwardRef(
|
|
2874
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("td", { ref, className: cn("p-4 align-middle [&:has([role=checkbox])]:pr-0", className), ...props })
|
|
2875
|
+
);
|
|
2876
|
+
TableCell.displayName = "TableCell";
|
|
2877
|
+
var TableCaption = React36.forwardRef(
|
|
2878
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("caption", { ref, className: cn("mt-4 text-sm text-muted-foreground", className), ...props })
|
|
2879
|
+
);
|
|
2880
|
+
TableCaption.displayName = "TableCaption";
|
|
2881
|
+
|
|
2882
|
+
// src/components/ui/tabs.tsx
|
|
2883
|
+
var React37 = __toESM(require("react"), 1);
|
|
2884
|
+
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"), 1);
|
|
2885
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
2886
|
+
var Tabs = TabsPrimitive.Root;
|
|
2887
|
+
var TabsList = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2888
|
+
TabsPrimitive.List,
|
|
2889
|
+
{
|
|
2890
|
+
ref,
|
|
2891
|
+
className: cn(
|
|
2892
|
+
"inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",
|
|
2893
|
+
className
|
|
2894
|
+
),
|
|
2895
|
+
...props
|
|
2896
|
+
}
|
|
2897
|
+
));
|
|
2898
|
+
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
2899
|
+
var TabsTrigger = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2900
|
+
TabsPrimitive.Trigger,
|
|
2901
|
+
{
|
|
2902
|
+
ref,
|
|
2903
|
+
className: cn(
|
|
2904
|
+
"inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
|
|
2905
|
+
className
|
|
2906
|
+
),
|
|
2907
|
+
...props
|
|
2908
|
+
}
|
|
2909
|
+
));
|
|
2910
|
+
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
2911
|
+
var TabsContent = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2912
|
+
TabsPrimitive.Content,
|
|
2913
|
+
{
|
|
2914
|
+
ref,
|
|
2915
|
+
className: cn(
|
|
2916
|
+
"mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
2917
|
+
className
|
|
2918
|
+
),
|
|
2919
|
+
...props
|
|
2920
|
+
}
|
|
2921
|
+
));
|
|
2922
|
+
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
2923
|
+
|
|
2924
|
+
// src/components/ui/textarea.tsx
|
|
2925
|
+
var React38 = __toESM(require("react"), 1);
|
|
2926
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
2927
|
+
var Textarea = React38.forwardRef(({ className, ...props }, ref) => {
|
|
2928
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2929
|
+
"textarea",
|
|
2930
|
+
{
|
|
2931
|
+
className: cn(
|
|
2932
|
+
"flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
2933
|
+
className
|
|
2934
|
+
),
|
|
2935
|
+
ref,
|
|
2936
|
+
...props
|
|
2937
|
+
}
|
|
2938
|
+
);
|
|
2939
|
+
});
|
|
2940
|
+
Textarea.displayName = "Textarea";
|
|
2941
|
+
|
|
2942
|
+
// src/components/ui/toast.tsx
|
|
2943
|
+
var React39 = __toESM(require("react"), 1);
|
|
2944
|
+
var ToastPrimitives = __toESM(require("@radix-ui/react-toast"), 1);
|
|
2945
|
+
var import_class_variance_authority8 = require("class-variance-authority");
|
|
2946
|
+
var import_lucide_react19 = require("lucide-react");
|
|
2947
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
2948
|
+
var ToastProvider = ToastPrimitives.Provider;
|
|
2949
|
+
var ToastViewport = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2950
|
+
ToastPrimitives.Viewport,
|
|
2951
|
+
{
|
|
2952
|
+
ref,
|
|
2953
|
+
className: cn(
|
|
2954
|
+
"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",
|
|
2955
|
+
className
|
|
2956
|
+
),
|
|
2957
|
+
...props
|
|
2958
|
+
}
|
|
2959
|
+
));
|
|
2960
|
+
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
2961
|
+
var toastVariants = (0, import_class_variance_authority8.cva)(
|
|
2962
|
+
"group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",
|
|
2963
|
+
{
|
|
2964
|
+
variants: {
|
|
2965
|
+
variant: {
|
|
2966
|
+
default: "border bg-background text-foreground",
|
|
2967
|
+
destructive: "destructive group border-destructive bg-destructive text-destructive-foreground"
|
|
2968
|
+
}
|
|
2969
|
+
},
|
|
2970
|
+
defaultVariants: {
|
|
2971
|
+
variant: "default"
|
|
2972
|
+
}
|
|
2973
|
+
}
|
|
2974
|
+
);
|
|
2975
|
+
var Toast = React39.forwardRef(({ className, variant, ...props }, ref) => {
|
|
2976
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ToastPrimitives.Root, { ref, className: cn(toastVariants({ variant }), className), ...props });
|
|
2977
|
+
});
|
|
2978
|
+
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
2979
|
+
var ToastAction = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2980
|
+
ToastPrimitives.Action,
|
|
2981
|
+
{
|
|
2982
|
+
ref,
|
|
2983
|
+
className: cn(
|
|
2984
|
+
"inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",
|
|
2985
|
+
className
|
|
2986
|
+
),
|
|
2987
|
+
...props
|
|
2988
|
+
}
|
|
2989
|
+
));
|
|
2990
|
+
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
2991
|
+
var ToastClose = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2992
|
+
ToastPrimitives.Close,
|
|
2993
|
+
{
|
|
2994
|
+
ref,
|
|
2995
|
+
className: cn(
|
|
2996
|
+
"absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",
|
|
2997
|
+
className
|
|
2998
|
+
),
|
|
2999
|
+
"toast-close": "",
|
|
3000
|
+
...props,
|
|
3001
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_lucide_react19.X, { className: "h-4 w-4" })
|
|
3002
|
+
}
|
|
3003
|
+
));
|
|
3004
|
+
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
3005
|
+
var ToastTitle = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ToastPrimitives.Title, { ref, className: cn("text-sm font-semibold", className), ...props }));
|
|
3006
|
+
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
3007
|
+
var ToastDescription = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ToastPrimitives.Description, { ref, className: cn("text-sm opacity-90", className), ...props }));
|
|
3008
|
+
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
3009
|
+
|
|
3010
|
+
// src/hooks/use-toast.ts
|
|
3011
|
+
var React40 = __toESM(require("react"), 1);
|
|
3012
|
+
var TOAST_LIMIT = 1;
|
|
3013
|
+
var TOAST_REMOVE_DELAY = 1e6;
|
|
3014
|
+
var count = 0;
|
|
3015
|
+
function genId() {
|
|
3016
|
+
count = (count + 1) % Number.MAX_SAFE_INTEGER;
|
|
3017
|
+
return count.toString();
|
|
3018
|
+
}
|
|
3019
|
+
var toastTimeouts = /* @__PURE__ */ new Map();
|
|
3020
|
+
var addToRemoveQueue = (toastId) => {
|
|
3021
|
+
if (toastTimeouts.has(toastId)) return;
|
|
3022
|
+
const timeout = setTimeout(() => {
|
|
3023
|
+
toastTimeouts.delete(toastId);
|
|
3024
|
+
dispatch({ type: "REMOVE_TOAST", toastId });
|
|
3025
|
+
}, TOAST_REMOVE_DELAY);
|
|
3026
|
+
toastTimeouts.set(toastId, timeout);
|
|
3027
|
+
};
|
|
3028
|
+
var reducer = (state, action) => {
|
|
3029
|
+
switch (action.type) {
|
|
3030
|
+
case "ADD_TOAST":
|
|
3031
|
+
return { ...state, toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT) };
|
|
3032
|
+
case "UPDATE_TOAST":
|
|
3033
|
+
return {
|
|
3034
|
+
...state,
|
|
3035
|
+
toasts: state.toasts.map((t) => t.id === action.toast.id ? { ...t, ...action.toast } : t)
|
|
3036
|
+
};
|
|
3037
|
+
case "DISMISS_TOAST": {
|
|
3038
|
+
const { toastId } = action;
|
|
3039
|
+
if (toastId) {
|
|
3040
|
+
addToRemoveQueue(toastId);
|
|
3041
|
+
} else {
|
|
3042
|
+
state.toasts.forEach((toast3) => addToRemoveQueue(toast3.id));
|
|
3043
|
+
}
|
|
3044
|
+
return {
|
|
3045
|
+
...state,
|
|
3046
|
+
toasts: state.toasts.map(
|
|
3047
|
+
(t) => t.id === toastId || toastId === void 0 ? { ...t, open: false } : t
|
|
3048
|
+
)
|
|
3049
|
+
};
|
|
3050
|
+
}
|
|
3051
|
+
case "REMOVE_TOAST":
|
|
3052
|
+
if (action.toastId === void 0) return { ...state, toasts: [] };
|
|
3053
|
+
return { ...state, toasts: state.toasts.filter((t) => t.id !== action.toastId) };
|
|
3054
|
+
}
|
|
3055
|
+
};
|
|
3056
|
+
var listeners = [];
|
|
3057
|
+
var memoryState = { toasts: [] };
|
|
3058
|
+
function dispatch(action) {
|
|
3059
|
+
memoryState = reducer(memoryState, action);
|
|
3060
|
+
listeners.forEach((listener) => listener(memoryState));
|
|
3061
|
+
}
|
|
3062
|
+
function toast2({ ...props }) {
|
|
3063
|
+
const id = genId();
|
|
3064
|
+
const update = (props2) => dispatch({ type: "UPDATE_TOAST", toast: { ...props2, id } });
|
|
3065
|
+
const dismiss = () => dispatch({ type: "DISMISS_TOAST", toastId: id });
|
|
3066
|
+
dispatch({
|
|
3067
|
+
type: "ADD_TOAST",
|
|
3068
|
+
toast: {
|
|
3069
|
+
...props,
|
|
3070
|
+
id,
|
|
3071
|
+
open: true,
|
|
3072
|
+
onOpenChange: (open) => {
|
|
3073
|
+
if (!open) dismiss();
|
|
3074
|
+
}
|
|
3075
|
+
}
|
|
3076
|
+
});
|
|
3077
|
+
return { id, dismiss, update };
|
|
3078
|
+
}
|
|
3079
|
+
function useToast() {
|
|
3080
|
+
const [state, setState] = React40.useState(memoryState);
|
|
3081
|
+
React40.useEffect(() => {
|
|
3082
|
+
listeners.push(setState);
|
|
3083
|
+
return () => {
|
|
3084
|
+
const index = listeners.indexOf(setState);
|
|
3085
|
+
if (index > -1) listeners.splice(index, 1);
|
|
3086
|
+
};
|
|
3087
|
+
}, [state]);
|
|
3088
|
+
return {
|
|
3089
|
+
...state,
|
|
3090
|
+
toast: toast2,
|
|
3091
|
+
dismiss: (toastId) => dispatch({ type: "DISMISS_TOAST", toastId })
|
|
3092
|
+
};
|
|
3093
|
+
}
|
|
3094
|
+
|
|
3095
|
+
// src/components/ui/toaster.tsx
|
|
3096
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
3097
|
+
function Toaster2() {
|
|
3098
|
+
const { toasts } = useToast();
|
|
3099
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(ToastProvider, { children: [
|
|
3100
|
+
toasts.map(function({ id, title, description, action, ...props }) {
|
|
3101
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(Toast, { ...props, children: [
|
|
3102
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "grid gap-1", children: [
|
|
3103
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ToastTitle, { children: title }),
|
|
3104
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ToastDescription, { children: description })
|
|
3105
|
+
] }),
|
|
3106
|
+
action,
|
|
3107
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ToastClose, {})
|
|
3108
|
+
] }, id);
|
|
3109
|
+
}),
|
|
3110
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ToastViewport, {})
|
|
3111
|
+
] });
|
|
3112
|
+
}
|
|
3113
|
+
|
|
3114
|
+
// src/components/ui/toggle-group.tsx
|
|
3115
|
+
var React42 = __toESM(require("react"), 1);
|
|
3116
|
+
var ToggleGroupPrimitive = __toESM(require("@radix-ui/react-toggle-group"), 1);
|
|
3117
|
+
|
|
3118
|
+
// src/components/ui/toggle.tsx
|
|
3119
|
+
var React41 = __toESM(require("react"), 1);
|
|
3120
|
+
var TogglePrimitive = __toESM(require("@radix-ui/react-toggle"), 1);
|
|
3121
|
+
var import_class_variance_authority9 = require("class-variance-authority");
|
|
3122
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
3123
|
+
var toggleVariants = (0, import_class_variance_authority9.cva)(
|
|
3124
|
+
"inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",
|
|
3125
|
+
{
|
|
3126
|
+
variants: {
|
|
3127
|
+
variant: {
|
|
3128
|
+
default: "bg-transparent",
|
|
3129
|
+
outline: "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"
|
|
3130
|
+
},
|
|
3131
|
+
size: {
|
|
3132
|
+
default: "h-10 px-3",
|
|
3133
|
+
sm: "h-9 px-2.5",
|
|
3134
|
+
lg: "h-11 px-5"
|
|
3135
|
+
}
|
|
3136
|
+
},
|
|
3137
|
+
defaultVariants: {
|
|
3138
|
+
variant: "default",
|
|
3139
|
+
size: "default"
|
|
3140
|
+
}
|
|
3141
|
+
}
|
|
3142
|
+
);
|
|
3143
|
+
var Toggle = React41.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TogglePrimitive.Root, { ref, className: cn(toggleVariants({ variant, size, className })), ...props }));
|
|
3144
|
+
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
3145
|
+
|
|
3146
|
+
// src/components/ui/toggle-group.tsx
|
|
3147
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
3148
|
+
var ToggleGroupContext = React42.createContext({
|
|
3149
|
+
size: "default",
|
|
3150
|
+
variant: "default"
|
|
3151
|
+
});
|
|
3152
|
+
var ToggleGroup = React42.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ToggleGroupPrimitive.Root, { ref, className: cn("flex items-center justify-center gap-1", className), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ToggleGroupContext.Provider, { value: { variant, size }, children }) }));
|
|
3153
|
+
ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
|
|
3154
|
+
var ToggleGroupItem = React42.forwardRef(({ className, children, variant, size, ...props }, ref) => {
|
|
3155
|
+
const context = React42.useContext(ToggleGroupContext);
|
|
3156
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
3157
|
+
ToggleGroupPrimitive.Item,
|
|
3158
|
+
{
|
|
3159
|
+
ref,
|
|
3160
|
+
className: cn(
|
|
3161
|
+
toggleVariants({
|
|
3162
|
+
variant: context.variant || variant,
|
|
3163
|
+
size: context.size || size
|
|
3164
|
+
}),
|
|
3165
|
+
className
|
|
3166
|
+
),
|
|
3167
|
+
...props,
|
|
3168
|
+
children
|
|
3169
|
+
}
|
|
3170
|
+
);
|
|
3171
|
+
});
|
|
3172
|
+
ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
|
|
3173
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
3174
|
+
0 && (module.exports = {
|
|
3175
|
+
Accordion,
|
|
3176
|
+
AccordionContent,
|
|
3177
|
+
AccordionItem,
|
|
3178
|
+
AccordionTrigger,
|
|
3179
|
+
Alert,
|
|
3180
|
+
AlertDescription,
|
|
3181
|
+
AlertDialog,
|
|
3182
|
+
AlertDialogAction,
|
|
3183
|
+
AlertDialogCancel,
|
|
3184
|
+
AlertDialogContent,
|
|
3185
|
+
AlertDialogDescription,
|
|
3186
|
+
AlertDialogFooter,
|
|
3187
|
+
AlertDialogHeader,
|
|
3188
|
+
AlertDialogOverlay,
|
|
3189
|
+
AlertDialogPortal,
|
|
3190
|
+
AlertDialogTitle,
|
|
3191
|
+
AlertDialogTrigger,
|
|
3192
|
+
AlertTitle,
|
|
3193
|
+
AspectRatio,
|
|
3194
|
+
Avatar,
|
|
3195
|
+
AvatarFallback,
|
|
3196
|
+
AvatarImage,
|
|
3197
|
+
Badge,
|
|
3198
|
+
Breadcrumb,
|
|
3199
|
+
BreadcrumbEllipsis,
|
|
3200
|
+
BreadcrumbItem,
|
|
3201
|
+
BreadcrumbLink,
|
|
3202
|
+
BreadcrumbList,
|
|
3203
|
+
BreadcrumbPage,
|
|
3204
|
+
BreadcrumbSeparator,
|
|
3205
|
+
Button,
|
|
3206
|
+
Calendar,
|
|
3207
|
+
Card,
|
|
3208
|
+
CardContent,
|
|
3209
|
+
CardDescription,
|
|
3210
|
+
CardFooter,
|
|
3211
|
+
CardHeader,
|
|
3212
|
+
CardTitle,
|
|
3213
|
+
Carousel,
|
|
3214
|
+
CarouselContent,
|
|
3215
|
+
CarouselItem,
|
|
3216
|
+
CarouselNext,
|
|
3217
|
+
CarouselPrevious,
|
|
3218
|
+
ChartContainer,
|
|
3219
|
+
ChartLegend,
|
|
3220
|
+
ChartLegendContent,
|
|
3221
|
+
ChartStyle,
|
|
3222
|
+
ChartTooltip,
|
|
3223
|
+
ChartTooltipContent,
|
|
3224
|
+
Checkbox,
|
|
3225
|
+
Collapsible,
|
|
3226
|
+
CollapsibleContent,
|
|
3227
|
+
CollapsibleTrigger,
|
|
3228
|
+
Command,
|
|
3229
|
+
CommandDialog,
|
|
3230
|
+
CommandEmpty,
|
|
3231
|
+
CommandGroup,
|
|
3232
|
+
CommandInput,
|
|
3233
|
+
CommandItem,
|
|
3234
|
+
CommandList,
|
|
3235
|
+
CommandSeparator,
|
|
3236
|
+
CommandShortcut,
|
|
3237
|
+
ContextMenu,
|
|
3238
|
+
ContextMenuCheckboxItem,
|
|
3239
|
+
ContextMenuContent,
|
|
3240
|
+
ContextMenuGroup,
|
|
3241
|
+
ContextMenuItem,
|
|
3242
|
+
ContextMenuLabel,
|
|
3243
|
+
ContextMenuPortal,
|
|
3244
|
+
ContextMenuRadioGroup,
|
|
3245
|
+
ContextMenuRadioItem,
|
|
3246
|
+
ContextMenuSeparator,
|
|
3247
|
+
ContextMenuShortcut,
|
|
3248
|
+
ContextMenuSub,
|
|
3249
|
+
ContextMenuSubContent,
|
|
3250
|
+
ContextMenuSubTrigger,
|
|
3251
|
+
ContextMenuTrigger,
|
|
3252
|
+
Dialog,
|
|
3253
|
+
DialogClose,
|
|
3254
|
+
DialogContent,
|
|
3255
|
+
DialogDescription,
|
|
3256
|
+
DialogFooter,
|
|
3257
|
+
DialogHeader,
|
|
3258
|
+
DialogOverlay,
|
|
3259
|
+
DialogPortal,
|
|
3260
|
+
DialogTitle,
|
|
3261
|
+
DialogTrigger,
|
|
3262
|
+
Drawer,
|
|
3263
|
+
DrawerClose,
|
|
3264
|
+
DrawerContent,
|
|
3265
|
+
DrawerDescription,
|
|
3266
|
+
DrawerFooter,
|
|
3267
|
+
DrawerHeader,
|
|
3268
|
+
DrawerOverlay,
|
|
3269
|
+
DrawerPortal,
|
|
3270
|
+
DrawerTitle,
|
|
3271
|
+
DrawerTrigger,
|
|
3272
|
+
DropdownMenu,
|
|
3273
|
+
DropdownMenuCheckboxItem,
|
|
3274
|
+
DropdownMenuContent,
|
|
3275
|
+
DropdownMenuGroup,
|
|
3276
|
+
DropdownMenuItem,
|
|
3277
|
+
DropdownMenuLabel,
|
|
3278
|
+
DropdownMenuPortal,
|
|
3279
|
+
DropdownMenuRadioGroup,
|
|
3280
|
+
DropdownMenuRadioItem,
|
|
3281
|
+
DropdownMenuSeparator,
|
|
3282
|
+
DropdownMenuShortcut,
|
|
3283
|
+
DropdownMenuSub,
|
|
3284
|
+
DropdownMenuSubContent,
|
|
3285
|
+
DropdownMenuSubTrigger,
|
|
3286
|
+
DropdownMenuTrigger,
|
|
3287
|
+
Form,
|
|
3288
|
+
FormControl,
|
|
3289
|
+
FormDescription,
|
|
3290
|
+
FormField,
|
|
3291
|
+
FormItem,
|
|
3292
|
+
FormLabel,
|
|
3293
|
+
FormMessage,
|
|
3294
|
+
HoverCard,
|
|
3295
|
+
HoverCardContent,
|
|
3296
|
+
HoverCardTrigger,
|
|
3297
|
+
Input,
|
|
3298
|
+
InputOTP,
|
|
3299
|
+
InputOTPGroup,
|
|
3300
|
+
InputOTPSeparator,
|
|
3301
|
+
InputOTPSlot,
|
|
3302
|
+
Label,
|
|
3303
|
+
Menubar,
|
|
3304
|
+
MenubarCheckboxItem,
|
|
3305
|
+
MenubarContent,
|
|
3306
|
+
MenubarGroup,
|
|
3307
|
+
MenubarItem,
|
|
3308
|
+
MenubarLabel,
|
|
3309
|
+
MenubarMenu,
|
|
3310
|
+
MenubarPortal,
|
|
3311
|
+
MenubarRadioGroup,
|
|
3312
|
+
MenubarRadioItem,
|
|
3313
|
+
MenubarSeparator,
|
|
3314
|
+
MenubarShortcut,
|
|
3315
|
+
MenubarSub,
|
|
3316
|
+
MenubarSubContent,
|
|
3317
|
+
MenubarSubTrigger,
|
|
3318
|
+
MenubarTrigger,
|
|
3319
|
+
NavigationMenu,
|
|
3320
|
+
NavigationMenuContent,
|
|
3321
|
+
NavigationMenuIndicator,
|
|
3322
|
+
NavigationMenuItem,
|
|
3323
|
+
NavigationMenuLink,
|
|
3324
|
+
NavigationMenuList,
|
|
3325
|
+
NavigationMenuTrigger,
|
|
3326
|
+
NavigationMenuViewport,
|
|
3327
|
+
Pagination,
|
|
3328
|
+
PaginationContent,
|
|
3329
|
+
PaginationEllipsis,
|
|
3330
|
+
PaginationItem,
|
|
3331
|
+
PaginationLink,
|
|
3332
|
+
PaginationNext,
|
|
3333
|
+
PaginationPrevious,
|
|
3334
|
+
Popover,
|
|
3335
|
+
PopoverContent,
|
|
3336
|
+
PopoverTrigger,
|
|
3337
|
+
Progress,
|
|
3338
|
+
RadioGroup,
|
|
3339
|
+
RadioGroupItem,
|
|
3340
|
+
ResizableHandle,
|
|
3341
|
+
ResizablePanel,
|
|
3342
|
+
ResizablePanelGroup,
|
|
3343
|
+
ScrollArea,
|
|
3344
|
+
ScrollBar,
|
|
3345
|
+
Select,
|
|
3346
|
+
SelectContent,
|
|
3347
|
+
SelectGroup,
|
|
3348
|
+
SelectItem,
|
|
3349
|
+
SelectLabel,
|
|
3350
|
+
SelectScrollDownButton,
|
|
3351
|
+
SelectScrollUpButton,
|
|
3352
|
+
SelectSeparator,
|
|
3353
|
+
SelectTrigger,
|
|
3354
|
+
SelectValue,
|
|
3355
|
+
Separator,
|
|
3356
|
+
Sheet,
|
|
3357
|
+
SheetClose,
|
|
3358
|
+
SheetContent,
|
|
3359
|
+
SheetDescription,
|
|
3360
|
+
SheetFooter,
|
|
3361
|
+
SheetHeader,
|
|
3362
|
+
SheetOverlay,
|
|
3363
|
+
SheetPortal,
|
|
3364
|
+
SheetTitle,
|
|
3365
|
+
SheetTrigger,
|
|
3366
|
+
Sidebar,
|
|
3367
|
+
SidebarContent,
|
|
3368
|
+
SidebarFooter,
|
|
3369
|
+
SidebarGroup,
|
|
3370
|
+
SidebarGroupAction,
|
|
3371
|
+
SidebarGroupContent,
|
|
3372
|
+
SidebarGroupLabel,
|
|
3373
|
+
SidebarHeader,
|
|
3374
|
+
SidebarInput,
|
|
3375
|
+
SidebarInset,
|
|
3376
|
+
SidebarMenu,
|
|
3377
|
+
SidebarMenuAction,
|
|
3378
|
+
SidebarMenuBadge,
|
|
3379
|
+
SidebarMenuButton,
|
|
3380
|
+
SidebarMenuItem,
|
|
3381
|
+
SidebarMenuSkeleton,
|
|
3382
|
+
SidebarMenuSub,
|
|
3383
|
+
SidebarMenuSubButton,
|
|
3384
|
+
SidebarMenuSubItem,
|
|
3385
|
+
SidebarProvider,
|
|
3386
|
+
SidebarRail,
|
|
3387
|
+
SidebarSeparator,
|
|
3388
|
+
SidebarTrigger,
|
|
3389
|
+
Skeleton,
|
|
3390
|
+
Slider,
|
|
3391
|
+
Sonner,
|
|
3392
|
+
Switch,
|
|
3393
|
+
Table,
|
|
3394
|
+
TableBody,
|
|
3395
|
+
TableCaption,
|
|
3396
|
+
TableCell,
|
|
3397
|
+
TableFooter,
|
|
3398
|
+
TableHead,
|
|
3399
|
+
TableHeader,
|
|
3400
|
+
TableRow,
|
|
3401
|
+
Tabs,
|
|
3402
|
+
TabsContent,
|
|
3403
|
+
TabsList,
|
|
3404
|
+
TabsTrigger,
|
|
3405
|
+
Textarea,
|
|
3406
|
+
Toast,
|
|
3407
|
+
ToastAction,
|
|
3408
|
+
ToastClose,
|
|
3409
|
+
ToastDescription,
|
|
3410
|
+
ToastProvider,
|
|
3411
|
+
ToastTitle,
|
|
3412
|
+
ToastViewport,
|
|
3413
|
+
Toaster,
|
|
3414
|
+
Toggle,
|
|
3415
|
+
ToggleGroup,
|
|
3416
|
+
ToggleGroupItem,
|
|
3417
|
+
Tooltip,
|
|
3418
|
+
TooltipContent,
|
|
3419
|
+
TooltipProvider,
|
|
3420
|
+
TooltipTrigger,
|
|
3421
|
+
badgeVariants,
|
|
3422
|
+
buttonVariants,
|
|
3423
|
+
cn,
|
|
3424
|
+
navigationMenuTriggerStyle,
|
|
3425
|
+
sonnerToast,
|
|
3426
|
+
toastFn,
|
|
3427
|
+
toggleVariants,
|
|
3428
|
+
useFormField,
|
|
3429
|
+
useSidebar,
|
|
3430
|
+
useToast
|
|
3431
|
+
});
|
|
3432
|
+
//# sourceMappingURL=index.cjs.map
|