@devfellowship/components 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/dist/hooks.cjs +174 -0
- package/dist/hooks.d.cts +35 -0
- package/dist/hooks.d.ts +35 -0
- package/dist/hooks.js +140 -0
- package/dist/index.cjs +2392 -0
- package/dist/index.d.cts +400 -0
- package/dist/index.d.ts +400 -0
- package/dist/index.js +2219 -0
- package/dist/providers.cjs +168 -0
- package/dist/providers.d.cts +15 -0
- package/dist/providers.d.ts +15 -0
- package/dist/providers.js +148 -0
- package/dist/styles/tailwind.css +84 -0
- package/dist/styles/theme.css +185 -0
- package/dist/use-auth-DdapDv2H.d.cts +39 -0
- package/dist/use-auth-DdapDv2H.d.ts +39 -0
- package/dist/utils-Cbsgs0XP.d.cts +5 -0
- package/dist/utils-Cbsgs0XP.d.ts +5 -0
- package/dist/utils.cjs +108 -0
- package/dist/utils.d.cts +26 -0
- package/dist/utils.d.ts +26 -0
- package/dist/utils.js +74 -0
- package/package.json +113 -0
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,2392 @@
|
|
|
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 src_exports = {};
|
|
32
|
+
__export(src_exports, {
|
|
33
|
+
Accordion: () => Accordion,
|
|
34
|
+
AccordionContent: () => AccordionContent,
|
|
35
|
+
AccordionItem: () => AccordionItem,
|
|
36
|
+
AccordionTrigger: () => AccordionTrigger,
|
|
37
|
+
Alert: () => Alert,
|
|
38
|
+
AlertDescription: () => AlertDescription,
|
|
39
|
+
AlertTitle: () => AlertTitle,
|
|
40
|
+
AppNavbar: () => AppNavbar,
|
|
41
|
+
AppSidebar: () => AppSidebar,
|
|
42
|
+
AuthProvider: () => AuthProvider,
|
|
43
|
+
Avatar: () => Avatar,
|
|
44
|
+
AvatarFallback: () => AvatarFallback,
|
|
45
|
+
AvatarImage: () => AvatarImage,
|
|
46
|
+
Badge: () => Badge,
|
|
47
|
+
Breadcrumb: () => Breadcrumb,
|
|
48
|
+
BreadcrumbEllipsis: () => BreadcrumbEllipsis,
|
|
49
|
+
BreadcrumbItem: () => BreadcrumbItem,
|
|
50
|
+
BreadcrumbLink: () => BreadcrumbLink,
|
|
51
|
+
BreadcrumbList: () => BreadcrumbList,
|
|
52
|
+
BreadcrumbPage: () => BreadcrumbPage,
|
|
53
|
+
BreadcrumbSeparator: () => BreadcrumbSeparator,
|
|
54
|
+
Button: () => Button,
|
|
55
|
+
Card: () => Card,
|
|
56
|
+
CardContent: () => CardContent,
|
|
57
|
+
CardDescription: () => CardDescription,
|
|
58
|
+
CardFooter: () => CardFooter,
|
|
59
|
+
CardHeader: () => CardHeader,
|
|
60
|
+
CardTitle: () => CardTitle,
|
|
61
|
+
Checkbox: () => Checkbox,
|
|
62
|
+
Dialog: () => Dialog,
|
|
63
|
+
DialogClose: () => DialogClose,
|
|
64
|
+
DialogContent: () => DialogContent,
|
|
65
|
+
DialogDescription: () => DialogDescription,
|
|
66
|
+
DialogFooter: () => DialogFooter,
|
|
67
|
+
DialogHeader: () => DialogHeader,
|
|
68
|
+
DialogOverlay: () => DialogOverlay,
|
|
69
|
+
DialogPortal: () => DialogPortal,
|
|
70
|
+
DialogTitle: () => DialogTitle,
|
|
71
|
+
DialogTrigger: () => DialogTrigger,
|
|
72
|
+
DropdownMenu: () => DropdownMenu,
|
|
73
|
+
DropdownMenuCheckboxItem: () => DropdownMenuCheckboxItem,
|
|
74
|
+
DropdownMenuContent: () => DropdownMenuContent,
|
|
75
|
+
DropdownMenuGroup: () => DropdownMenuGroup,
|
|
76
|
+
DropdownMenuItem: () => DropdownMenuItem,
|
|
77
|
+
DropdownMenuLabel: () => DropdownMenuLabel,
|
|
78
|
+
DropdownMenuPortal: () => DropdownMenuPortal,
|
|
79
|
+
DropdownMenuRadioGroup: () => DropdownMenuRadioGroup,
|
|
80
|
+
DropdownMenuRadioItem: () => DropdownMenuRadioItem,
|
|
81
|
+
DropdownMenuSeparator: () => DropdownMenuSeparator,
|
|
82
|
+
DropdownMenuShortcut: () => DropdownMenuShortcut,
|
|
83
|
+
DropdownMenuSub: () => DropdownMenuSub,
|
|
84
|
+
DropdownMenuSubContent: () => DropdownMenuSubContent,
|
|
85
|
+
DropdownMenuSubTrigger: () => DropdownMenuSubTrigger,
|
|
86
|
+
DropdownMenuTrigger: () => DropdownMenuTrigger,
|
|
87
|
+
FeatureFlagProvider: () => FeatureFlagProvider,
|
|
88
|
+
Form: () => Form,
|
|
89
|
+
FormControl: () => FormControl,
|
|
90
|
+
FormDescription: () => FormDescription,
|
|
91
|
+
FormField: () => FormField,
|
|
92
|
+
FormItem: () => FormItem,
|
|
93
|
+
FormLabel: () => FormLabel,
|
|
94
|
+
FormMessage: () => FormMessage,
|
|
95
|
+
Input: () => Input,
|
|
96
|
+
Label: () => Label2,
|
|
97
|
+
LoginPage: () => LoginPage,
|
|
98
|
+
Popover: () => Popover,
|
|
99
|
+
PopoverContent: () => PopoverContent,
|
|
100
|
+
PopoverTrigger: () => PopoverTrigger,
|
|
101
|
+
Progress: () => Progress,
|
|
102
|
+
ProtectedRoute: () => ProtectedRoute,
|
|
103
|
+
RadioGroup: () => RadioGroup2,
|
|
104
|
+
RadioGroupItem: () => RadioGroupItem,
|
|
105
|
+
ScrollArea: () => ScrollArea,
|
|
106
|
+
ScrollBar: () => ScrollBar,
|
|
107
|
+
Select: () => Select,
|
|
108
|
+
SelectContent: () => SelectContent,
|
|
109
|
+
SelectGroup: () => SelectGroup,
|
|
110
|
+
SelectItem: () => SelectItem,
|
|
111
|
+
SelectLabel: () => SelectLabel,
|
|
112
|
+
SelectScrollDownButton: () => SelectScrollDownButton,
|
|
113
|
+
SelectScrollUpButton: () => SelectScrollUpButton,
|
|
114
|
+
SelectSeparator: () => SelectSeparator,
|
|
115
|
+
SelectTrigger: () => SelectTrigger,
|
|
116
|
+
SelectValue: () => SelectValue,
|
|
117
|
+
Separator: () => Separator3,
|
|
118
|
+
Sheet: () => Sheet,
|
|
119
|
+
SheetClose: () => SheetClose,
|
|
120
|
+
SheetContent: () => SheetContent,
|
|
121
|
+
SheetDescription: () => SheetDescription,
|
|
122
|
+
SheetFooter: () => SheetFooter,
|
|
123
|
+
SheetHeader: () => SheetHeader,
|
|
124
|
+
SheetOverlay: () => SheetOverlay,
|
|
125
|
+
SheetPortal: () => SheetPortal,
|
|
126
|
+
SheetTitle: () => SheetTitle,
|
|
127
|
+
SheetTrigger: () => SheetTrigger,
|
|
128
|
+
Sidebar: () => Sidebar,
|
|
129
|
+
SidebarContent: () => SidebarContent,
|
|
130
|
+
SidebarFooter: () => SidebarFooter,
|
|
131
|
+
SidebarGroup: () => SidebarGroup,
|
|
132
|
+
SidebarGroupAction: () => SidebarGroupAction,
|
|
133
|
+
SidebarGroupContent: () => SidebarGroupContent,
|
|
134
|
+
SidebarGroupLabel: () => SidebarGroupLabel,
|
|
135
|
+
SidebarHeader: () => SidebarHeader,
|
|
136
|
+
SidebarInput: () => SidebarInput,
|
|
137
|
+
SidebarInset: () => SidebarInset,
|
|
138
|
+
SidebarMenu: () => SidebarMenu,
|
|
139
|
+
SidebarMenuAction: () => SidebarMenuAction,
|
|
140
|
+
SidebarMenuBadge: () => SidebarMenuBadge,
|
|
141
|
+
SidebarMenuButton: () => SidebarMenuButton,
|
|
142
|
+
SidebarMenuItem: () => SidebarMenuItem,
|
|
143
|
+
SidebarMenuSkeleton: () => SidebarMenuSkeleton,
|
|
144
|
+
SidebarMenuSub: () => SidebarMenuSub,
|
|
145
|
+
SidebarMenuSubButton: () => SidebarMenuSubButton,
|
|
146
|
+
SidebarMenuSubItem: () => SidebarMenuSubItem,
|
|
147
|
+
SidebarProvider: () => SidebarProvider,
|
|
148
|
+
SidebarRail: () => SidebarRail,
|
|
149
|
+
SidebarSeparator: () => SidebarSeparator,
|
|
150
|
+
SidebarTrigger: () => SidebarTrigger,
|
|
151
|
+
Skeleton: () => Skeleton,
|
|
152
|
+
Switch: () => Switch,
|
|
153
|
+
Table: () => Table,
|
|
154
|
+
TableBody: () => TableBody,
|
|
155
|
+
TableCaption: () => TableCaption,
|
|
156
|
+
TableCell: () => TableCell,
|
|
157
|
+
TableFooter: () => TableFooter,
|
|
158
|
+
TableHead: () => TableHead,
|
|
159
|
+
TableHeader: () => TableHeader,
|
|
160
|
+
TableRow: () => TableRow,
|
|
161
|
+
Tabs: () => Tabs,
|
|
162
|
+
TabsContent: () => TabsContent,
|
|
163
|
+
TabsList: () => TabsList,
|
|
164
|
+
TabsTrigger: () => TabsTrigger,
|
|
165
|
+
Textarea: () => Textarea,
|
|
166
|
+
Tooltip: () => Tooltip,
|
|
167
|
+
TooltipContent: () => TooltipContent,
|
|
168
|
+
TooltipProvider: () => TooltipProvider,
|
|
169
|
+
TooltipTrigger: () => TooltipTrigger,
|
|
170
|
+
badgeVariants: () => badgeVariants,
|
|
171
|
+
buttonVariants: () => buttonVariants,
|
|
172
|
+
cn: () => cn,
|
|
173
|
+
toast: () => toast,
|
|
174
|
+
useAuth: () => useAuth,
|
|
175
|
+
useFeatureFlag: () => useFeatureFlag,
|
|
176
|
+
useFeatureFlags: () => useFeatureFlags,
|
|
177
|
+
useFormField: () => useFormField,
|
|
178
|
+
useIsMobile: () => useIsMobile,
|
|
179
|
+
useSession: () => useSession,
|
|
180
|
+
useSidebar: () => useSidebar,
|
|
181
|
+
useToast: () => useToast
|
|
182
|
+
});
|
|
183
|
+
module.exports = __toCommonJS(src_exports);
|
|
184
|
+
|
|
185
|
+
// src/components/accordion.tsx
|
|
186
|
+
var React = __toESM(require("react"), 1);
|
|
187
|
+
var AccordionPrimitive = __toESM(require("@radix-ui/react-accordion"), 1);
|
|
188
|
+
var import_lucide_react = require("lucide-react");
|
|
189
|
+
|
|
190
|
+
// src/lib/utils.ts
|
|
191
|
+
var import_clsx = require("clsx");
|
|
192
|
+
var import_tailwind_merge = require("tailwind-merge");
|
|
193
|
+
function cn(...inputs) {
|
|
194
|
+
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
// src/components/accordion.tsx
|
|
198
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
199
|
+
var Accordion = AccordionPrimitive.Root;
|
|
200
|
+
var AccordionItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AccordionPrimitive.Item, { ref, className: cn("border-b", className), ...props }));
|
|
201
|
+
AccordionItem.displayName = "AccordionItem";
|
|
202
|
+
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)(
|
|
203
|
+
AccordionPrimitive.Trigger,
|
|
204
|
+
{
|
|
205
|
+
ref,
|
|
206
|
+
className: cn(
|
|
207
|
+
"flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",
|
|
208
|
+
className
|
|
209
|
+
),
|
|
210
|
+
...props,
|
|
211
|
+
children: [
|
|
212
|
+
children,
|
|
213
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ChevronDown, { className: "h-4 w-4 shrink-0 transition-transform duration-200" })
|
|
214
|
+
]
|
|
215
|
+
}
|
|
216
|
+
) }));
|
|
217
|
+
AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
|
|
218
|
+
var AccordionContent = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
219
|
+
AccordionPrimitive.Content,
|
|
220
|
+
{
|
|
221
|
+
ref,
|
|
222
|
+
className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
223
|
+
...props,
|
|
224
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: cn("pb-4 pt-0", className), children })
|
|
225
|
+
}
|
|
226
|
+
));
|
|
227
|
+
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
|
228
|
+
|
|
229
|
+
// src/components/alert.tsx
|
|
230
|
+
var React2 = __toESM(require("react"), 1);
|
|
231
|
+
var import_class_variance_authority = require("class-variance-authority");
|
|
232
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
233
|
+
var alertVariants = (0, import_class_variance_authority.cva)(
|
|
234
|
+
"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",
|
|
235
|
+
{
|
|
236
|
+
variants: {
|
|
237
|
+
variant: {
|
|
238
|
+
default: "bg-background text-foreground",
|
|
239
|
+
destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
defaultVariants: {
|
|
243
|
+
variant: "default"
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
);
|
|
247
|
+
var Alert = React2.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { ref, role: "alert", className: cn(alertVariants({ variant }), className), ...props }));
|
|
248
|
+
Alert.displayName = "Alert";
|
|
249
|
+
var AlertTitle = React2.forwardRef(
|
|
250
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("h5", { ref, className: cn("mb-1 font-medium leading-none tracking-tight", className), ...props })
|
|
251
|
+
);
|
|
252
|
+
AlertTitle.displayName = "AlertTitle";
|
|
253
|
+
var AlertDescription = React2.forwardRef(
|
|
254
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { ref, className: cn("text-sm [&_p]:leading-relaxed", className), ...props })
|
|
255
|
+
);
|
|
256
|
+
AlertDescription.displayName = "AlertDescription";
|
|
257
|
+
|
|
258
|
+
// src/components/avatar.tsx
|
|
259
|
+
var React3 = __toESM(require("react"), 1);
|
|
260
|
+
var AvatarPrimitive = __toESM(require("@radix-ui/react-avatar"), 1);
|
|
261
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
262
|
+
var Avatar = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
263
|
+
AvatarPrimitive.Root,
|
|
264
|
+
{
|
|
265
|
+
ref,
|
|
266
|
+
className: cn("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", className),
|
|
267
|
+
...props
|
|
268
|
+
}
|
|
269
|
+
));
|
|
270
|
+
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
271
|
+
var AvatarImage = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(AvatarPrimitive.Image, { ref, className: cn("aspect-square h-full w-full", className), ...props }));
|
|
272
|
+
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
273
|
+
var AvatarFallback = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
274
|
+
AvatarPrimitive.Fallback,
|
|
275
|
+
{
|
|
276
|
+
ref,
|
|
277
|
+
className: cn("flex h-full w-full items-center justify-center rounded-full bg-muted", className),
|
|
278
|
+
...props
|
|
279
|
+
}
|
|
280
|
+
));
|
|
281
|
+
AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
282
|
+
|
|
283
|
+
// src/components/badge.tsx
|
|
284
|
+
var import_class_variance_authority2 = require("class-variance-authority");
|
|
285
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
286
|
+
var badgeVariants = (0, import_class_variance_authority2.cva)(
|
|
287
|
+
"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",
|
|
288
|
+
{
|
|
289
|
+
variants: {
|
|
290
|
+
variant: {
|
|
291
|
+
default: "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
|
|
292
|
+
secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
293
|
+
destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
|
|
294
|
+
outline: "text-foreground"
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
defaultVariants: {
|
|
298
|
+
variant: "default"
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
);
|
|
302
|
+
function Badge({ className, variant, ...props }) {
|
|
303
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: cn(badgeVariants({ variant }), className), ...props });
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
// src/components/breadcrumb.tsx
|
|
307
|
+
var React4 = __toESM(require("react"), 1);
|
|
308
|
+
var import_react_slot = require("@radix-ui/react-slot");
|
|
309
|
+
var import_lucide_react2 = require("lucide-react");
|
|
310
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
311
|
+
var Breadcrumb = React4.forwardRef(({ ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("nav", { ref, "aria-label": "breadcrumb", ...props }));
|
|
312
|
+
Breadcrumb.displayName = "Breadcrumb";
|
|
313
|
+
var BreadcrumbList = React4.forwardRef(
|
|
314
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
315
|
+
"ol",
|
|
316
|
+
{
|
|
317
|
+
ref,
|
|
318
|
+
className: cn(
|
|
319
|
+
"flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",
|
|
320
|
+
className
|
|
321
|
+
),
|
|
322
|
+
...props
|
|
323
|
+
}
|
|
324
|
+
)
|
|
325
|
+
);
|
|
326
|
+
BreadcrumbList.displayName = "BreadcrumbList";
|
|
327
|
+
var BreadcrumbItem = React4.forwardRef(
|
|
328
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("li", { ref, className: cn("inline-flex items-center gap-1.5", className), ...props })
|
|
329
|
+
);
|
|
330
|
+
BreadcrumbItem.displayName = "BreadcrumbItem";
|
|
331
|
+
var BreadcrumbLink = React4.forwardRef(({ asChild, className, ...props }, ref) => {
|
|
332
|
+
const Comp = asChild ? import_react_slot.Slot : "a";
|
|
333
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Comp, { ref, className: cn("transition-colors hover:text-foreground", className), ...props });
|
|
334
|
+
});
|
|
335
|
+
BreadcrumbLink.displayName = "BreadcrumbLink";
|
|
336
|
+
var BreadcrumbPage = React4.forwardRef(
|
|
337
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
338
|
+
"span",
|
|
339
|
+
{
|
|
340
|
+
ref,
|
|
341
|
+
role: "link",
|
|
342
|
+
"aria-disabled": "true",
|
|
343
|
+
"aria-current": "page",
|
|
344
|
+
className: cn("font-normal text-foreground", className),
|
|
345
|
+
...props
|
|
346
|
+
}
|
|
347
|
+
)
|
|
348
|
+
);
|
|
349
|
+
BreadcrumbPage.displayName = "BreadcrumbPage";
|
|
350
|
+
var BreadcrumbSeparator = ({ children, className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("li", { role: "presentation", "aria-hidden": "true", className: cn("[&>svg]:size-3.5", className), ...props, children: children ?? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react2.ChevronRight, {}) });
|
|
351
|
+
BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
|
|
352
|
+
var BreadcrumbEllipsis = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
353
|
+
"span",
|
|
354
|
+
{
|
|
355
|
+
role: "presentation",
|
|
356
|
+
"aria-hidden": "true",
|
|
357
|
+
className: cn("flex h-9 w-9 items-center justify-center", className),
|
|
358
|
+
...props,
|
|
359
|
+
children: [
|
|
360
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react2.MoreHorizontal, { className: "h-4 w-4" }),
|
|
361
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "sr-only", children: "More" })
|
|
362
|
+
]
|
|
363
|
+
}
|
|
364
|
+
);
|
|
365
|
+
BreadcrumbEllipsis.displayName = "BreadcrumbElipssis";
|
|
366
|
+
|
|
367
|
+
// src/components/button.tsx
|
|
368
|
+
var React5 = __toESM(require("react"), 1);
|
|
369
|
+
var import_react_slot2 = require("@radix-ui/react-slot");
|
|
370
|
+
var import_class_variance_authority3 = require("class-variance-authority");
|
|
371
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
372
|
+
var buttonVariants = (0, import_class_variance_authority3.cva)(
|
|
373
|
+
"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",
|
|
374
|
+
{
|
|
375
|
+
variants: {
|
|
376
|
+
variant: {
|
|
377
|
+
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
378
|
+
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
379
|
+
outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
|
|
380
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
381
|
+
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
382
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
383
|
+
},
|
|
384
|
+
size: {
|
|
385
|
+
default: "h-10 px-4 py-2",
|
|
386
|
+
sm: "h-9 rounded-md px-3",
|
|
387
|
+
lg: "h-11 rounded-md px-8",
|
|
388
|
+
icon: "h-10 w-10"
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
defaultVariants: {
|
|
392
|
+
variant: "default",
|
|
393
|
+
size: "default"
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
);
|
|
397
|
+
var Button = React5.forwardRef(
|
|
398
|
+
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
399
|
+
const Comp = asChild ? import_react_slot2.Slot : "button";
|
|
400
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Comp, { className: cn(buttonVariants({ variant, size, className })), ref, ...props });
|
|
401
|
+
}
|
|
402
|
+
);
|
|
403
|
+
Button.displayName = "Button";
|
|
404
|
+
|
|
405
|
+
// src/components/card.tsx
|
|
406
|
+
var React6 = __toESM(require("react"), 1);
|
|
407
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
408
|
+
var Card = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { ref, className: cn("rounded-lg border bg-card text-card-foreground shadow-sm", className), ...props }));
|
|
409
|
+
Card.displayName = "Card";
|
|
410
|
+
var CardHeader = React6.forwardRef(
|
|
411
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { ref, className: cn("flex flex-col space-y-1.5 p-6", className), ...props })
|
|
412
|
+
);
|
|
413
|
+
CardHeader.displayName = "CardHeader";
|
|
414
|
+
var CardTitle = React6.forwardRef(
|
|
415
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("h3", { ref, className: cn("text-2xl font-semibold leading-none tracking-tight", className), ...props })
|
|
416
|
+
);
|
|
417
|
+
CardTitle.displayName = "CardTitle";
|
|
418
|
+
var CardDescription = React6.forwardRef(
|
|
419
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { ref, className: cn("text-sm text-muted-foreground", className), ...props })
|
|
420
|
+
);
|
|
421
|
+
CardDescription.displayName = "CardDescription";
|
|
422
|
+
var CardContent = React6.forwardRef(
|
|
423
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { ref, className: cn("p-6 pt-0", className), ...props })
|
|
424
|
+
);
|
|
425
|
+
CardContent.displayName = "CardContent";
|
|
426
|
+
var CardFooter = React6.forwardRef(
|
|
427
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { ref, className: cn("flex items-center p-6 pt-0", className), ...props })
|
|
428
|
+
);
|
|
429
|
+
CardFooter.displayName = "CardFooter";
|
|
430
|
+
|
|
431
|
+
// src/components/checkbox.tsx
|
|
432
|
+
var React7 = __toESM(require("react"), 1);
|
|
433
|
+
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"), 1);
|
|
434
|
+
var import_lucide_react3 = require("lucide-react");
|
|
435
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
436
|
+
var Checkbox = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
437
|
+
CheckboxPrimitive.Root,
|
|
438
|
+
{
|
|
439
|
+
ref,
|
|
440
|
+
className: cn(
|
|
441
|
+
"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",
|
|
442
|
+
className
|
|
443
|
+
),
|
|
444
|
+
...props,
|
|
445
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(CheckboxPrimitive.Indicator, { className: cn("flex items-center justify-center text-current"), children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.Check, { className: "h-4 w-4" }) })
|
|
446
|
+
}
|
|
447
|
+
));
|
|
448
|
+
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
449
|
+
|
|
450
|
+
// src/components/dialog.tsx
|
|
451
|
+
var React8 = __toESM(require("react"), 1);
|
|
452
|
+
var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
453
|
+
var import_lucide_react4 = require("lucide-react");
|
|
454
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
455
|
+
var Dialog = DialogPrimitive.Root;
|
|
456
|
+
var DialogTrigger = DialogPrimitive.Trigger;
|
|
457
|
+
var DialogPortal = DialogPrimitive.Portal;
|
|
458
|
+
var DialogClose = DialogPrimitive.Close;
|
|
459
|
+
var DialogOverlay = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
460
|
+
DialogPrimitive.Overlay,
|
|
461
|
+
{
|
|
462
|
+
ref,
|
|
463
|
+
className: cn(
|
|
464
|
+
"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",
|
|
465
|
+
className
|
|
466
|
+
),
|
|
467
|
+
...props
|
|
468
|
+
}
|
|
469
|
+
));
|
|
470
|
+
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
471
|
+
var DialogContent = React8.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(DialogPortal, { children: [
|
|
472
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(DialogOverlay, {}),
|
|
473
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
474
|
+
DialogPrimitive.Content,
|
|
475
|
+
{
|
|
476
|
+
ref,
|
|
477
|
+
className: cn(
|
|
478
|
+
"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",
|
|
479
|
+
className
|
|
480
|
+
),
|
|
481
|
+
...props,
|
|
482
|
+
children: [
|
|
483
|
+
children,
|
|
484
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.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: [
|
|
485
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react4.X, { className: "h-4 w-4" }),
|
|
486
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "sr-only", children: "Close" })
|
|
487
|
+
] })
|
|
488
|
+
]
|
|
489
|
+
}
|
|
490
|
+
)
|
|
491
|
+
] }));
|
|
492
|
+
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
493
|
+
var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: cn("flex flex-col space-y-1.5 text-center sm:text-left", className), ...props });
|
|
494
|
+
DialogHeader.displayName = "DialogHeader";
|
|
495
|
+
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
|
|
496
|
+
DialogFooter.displayName = "DialogFooter";
|
|
497
|
+
var DialogTitle = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
498
|
+
DialogPrimitive.Title,
|
|
499
|
+
{
|
|
500
|
+
ref,
|
|
501
|
+
className: cn("text-lg font-semibold leading-none tracking-tight", className),
|
|
502
|
+
...props
|
|
503
|
+
}
|
|
504
|
+
));
|
|
505
|
+
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
506
|
+
var DialogDescription = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(DialogPrimitive.Description, { ref, className: cn("text-sm text-muted-foreground", className), ...props }));
|
|
507
|
+
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
508
|
+
|
|
509
|
+
// src/components/dropdown-menu.tsx
|
|
510
|
+
var React9 = __toESM(require("react"), 1);
|
|
511
|
+
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"), 1);
|
|
512
|
+
var import_lucide_react5 = require("lucide-react");
|
|
513
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
514
|
+
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
515
|
+
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
516
|
+
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
517
|
+
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
518
|
+
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
519
|
+
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
520
|
+
var DropdownMenuSubTrigger = React9.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
|
|
521
|
+
DropdownMenuPrimitive.SubTrigger,
|
|
522
|
+
{
|
|
523
|
+
ref,
|
|
524
|
+
className: cn(
|
|
525
|
+
"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",
|
|
526
|
+
inset && "pl-8",
|
|
527
|
+
className
|
|
528
|
+
),
|
|
529
|
+
...props,
|
|
530
|
+
children: [
|
|
531
|
+
children,
|
|
532
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react5.ChevronRight, { className: "ml-auto h-4 w-4" })
|
|
533
|
+
]
|
|
534
|
+
}
|
|
535
|
+
));
|
|
536
|
+
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
537
|
+
var DropdownMenuSubContent = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
538
|
+
DropdownMenuPrimitive.SubContent,
|
|
539
|
+
{
|
|
540
|
+
ref,
|
|
541
|
+
className: cn(
|
|
542
|
+
"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",
|
|
543
|
+
className
|
|
544
|
+
),
|
|
545
|
+
...props
|
|
546
|
+
}
|
|
547
|
+
));
|
|
548
|
+
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
549
|
+
var DropdownMenuContent = React9.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
550
|
+
DropdownMenuPrimitive.Content,
|
|
551
|
+
{
|
|
552
|
+
ref,
|
|
553
|
+
sideOffset,
|
|
554
|
+
className: cn(
|
|
555
|
+
"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",
|
|
556
|
+
className
|
|
557
|
+
),
|
|
558
|
+
...props
|
|
559
|
+
}
|
|
560
|
+
) }));
|
|
561
|
+
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
562
|
+
var DropdownMenuItem = React9.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
563
|
+
DropdownMenuPrimitive.Item,
|
|
564
|
+
{
|
|
565
|
+
ref,
|
|
566
|
+
className: cn(
|
|
567
|
+
"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",
|
|
568
|
+
inset && "pl-8",
|
|
569
|
+
className
|
|
570
|
+
),
|
|
571
|
+
...props
|
|
572
|
+
}
|
|
573
|
+
));
|
|
574
|
+
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
575
|
+
var DropdownMenuCheckboxItem = React9.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
|
|
576
|
+
DropdownMenuPrimitive.CheckboxItem,
|
|
577
|
+
{
|
|
578
|
+
ref,
|
|
579
|
+
className: cn(
|
|
580
|
+
"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",
|
|
581
|
+
className
|
|
582
|
+
),
|
|
583
|
+
checked,
|
|
584
|
+
...props,
|
|
585
|
+
children: [
|
|
586
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react5.Check, { className: "h-4 w-4" }) }) }),
|
|
587
|
+
children
|
|
588
|
+
]
|
|
589
|
+
}
|
|
590
|
+
));
|
|
591
|
+
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
592
|
+
var DropdownMenuRadioItem = React9.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
|
|
593
|
+
DropdownMenuPrimitive.RadioItem,
|
|
594
|
+
{
|
|
595
|
+
ref,
|
|
596
|
+
className: cn(
|
|
597
|
+
"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",
|
|
598
|
+
className
|
|
599
|
+
),
|
|
600
|
+
...props,
|
|
601
|
+
children: [
|
|
602
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react5.Circle, { className: "h-2 w-2 fill-current" }) }) }),
|
|
603
|
+
children
|
|
604
|
+
]
|
|
605
|
+
}
|
|
606
|
+
));
|
|
607
|
+
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
608
|
+
var DropdownMenuLabel = React9.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
609
|
+
DropdownMenuPrimitive.Label,
|
|
610
|
+
{
|
|
611
|
+
ref,
|
|
612
|
+
className: cn("px-2 py-1.5 text-sm font-semibold", inset && "pl-8", className),
|
|
613
|
+
...props
|
|
614
|
+
}
|
|
615
|
+
));
|
|
616
|
+
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
617
|
+
var DropdownMenuSeparator = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(DropdownMenuPrimitive.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-muted", className), ...props }));
|
|
618
|
+
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
619
|
+
var DropdownMenuShortcut = ({ className, ...props }) => {
|
|
620
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: cn("ml-auto text-xs tracking-widest opacity-60", className), ...props });
|
|
621
|
+
};
|
|
622
|
+
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
623
|
+
|
|
624
|
+
// src/components/form.tsx
|
|
625
|
+
var React11 = __toESM(require("react"), 1);
|
|
626
|
+
var import_react_slot3 = require("@radix-ui/react-slot");
|
|
627
|
+
var import_react_hook_form = require("react-hook-form");
|
|
628
|
+
|
|
629
|
+
// src/components/label.tsx
|
|
630
|
+
var React10 = __toESM(require("react"), 1);
|
|
631
|
+
var LabelPrimitive = __toESM(require("@radix-ui/react-label"), 1);
|
|
632
|
+
var import_class_variance_authority4 = require("class-variance-authority");
|
|
633
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
634
|
+
var labelVariants = (0, import_class_variance_authority4.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70");
|
|
635
|
+
var Label2 = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(LabelPrimitive.Root, { ref, className: cn(labelVariants(), className), ...props }));
|
|
636
|
+
Label2.displayName = LabelPrimitive.Root.displayName;
|
|
637
|
+
|
|
638
|
+
// src/components/form.tsx
|
|
639
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
640
|
+
var Form = import_react_hook_form.FormProvider;
|
|
641
|
+
var FormFieldContext = React11.createContext({});
|
|
642
|
+
var FormField = ({
|
|
643
|
+
...props
|
|
644
|
+
}) => {
|
|
645
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_react_hook_form.Controller, { ...props }) });
|
|
646
|
+
};
|
|
647
|
+
var useFormField = () => {
|
|
648
|
+
const fieldContext = React11.useContext(FormFieldContext);
|
|
649
|
+
const itemContext = React11.useContext(FormItemContext);
|
|
650
|
+
const { getFieldState, formState } = (0, import_react_hook_form.useFormContext)();
|
|
651
|
+
const fieldState = getFieldState(fieldContext.name, formState);
|
|
652
|
+
if (!fieldContext) {
|
|
653
|
+
throw new Error("useFormField should be used within <FormField>");
|
|
654
|
+
}
|
|
655
|
+
const { id } = itemContext;
|
|
656
|
+
return {
|
|
657
|
+
id,
|
|
658
|
+
name: fieldContext.name,
|
|
659
|
+
formItemId: `${id}-form-item`,
|
|
660
|
+
formDescriptionId: `${id}-form-item-description`,
|
|
661
|
+
formMessageId: `${id}-form-item-message`,
|
|
662
|
+
...fieldState
|
|
663
|
+
};
|
|
664
|
+
};
|
|
665
|
+
var FormItemContext = React11.createContext({});
|
|
666
|
+
var FormItem = React11.forwardRef(
|
|
667
|
+
({ className, ...props }, ref) => {
|
|
668
|
+
const id = React11.useId();
|
|
669
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { ref, className: cn("space-y-2", className), ...props }) });
|
|
670
|
+
}
|
|
671
|
+
);
|
|
672
|
+
FormItem.displayName = "FormItem";
|
|
673
|
+
var FormLabel = React11.forwardRef(({ className, ...props }, ref) => {
|
|
674
|
+
const { error, formItemId } = useFormField();
|
|
675
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Label2, { ref, className: cn(error && "text-destructive", className), htmlFor: formItemId, ...props });
|
|
676
|
+
});
|
|
677
|
+
FormLabel.displayName = "FormLabel";
|
|
678
|
+
var FormControl = React11.forwardRef(
|
|
679
|
+
({ ...props }, ref) => {
|
|
680
|
+
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
681
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
682
|
+
import_react_slot3.Slot,
|
|
683
|
+
{
|
|
684
|
+
ref,
|
|
685
|
+
id: formItemId,
|
|
686
|
+
"aria-describedby": !error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`,
|
|
687
|
+
"aria-invalid": !!error,
|
|
688
|
+
...props
|
|
689
|
+
}
|
|
690
|
+
);
|
|
691
|
+
}
|
|
692
|
+
);
|
|
693
|
+
FormControl.displayName = "FormControl";
|
|
694
|
+
var FormDescription = React11.forwardRef(
|
|
695
|
+
({ className, ...props }, ref) => {
|
|
696
|
+
const { formDescriptionId } = useFormField();
|
|
697
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { ref, id: formDescriptionId, className: cn("text-sm text-muted-foreground", className), ...props });
|
|
698
|
+
}
|
|
699
|
+
);
|
|
700
|
+
FormDescription.displayName = "FormDescription";
|
|
701
|
+
var FormMessage = React11.forwardRef(
|
|
702
|
+
({ className, children, ...props }, ref) => {
|
|
703
|
+
const { error, formMessageId } = useFormField();
|
|
704
|
+
const body = error ? String(error?.message) : children;
|
|
705
|
+
if (!body) {
|
|
706
|
+
return null;
|
|
707
|
+
}
|
|
708
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { ref, id: formMessageId, className: cn("text-sm font-medium text-destructive", className), ...props, children: body });
|
|
709
|
+
}
|
|
710
|
+
);
|
|
711
|
+
FormMessage.displayName = "FormMessage";
|
|
712
|
+
|
|
713
|
+
// src/components/input.tsx
|
|
714
|
+
var React12 = __toESM(require("react"), 1);
|
|
715
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
716
|
+
var Input = React12.forwardRef(
|
|
717
|
+
({ className, type, ...props }, ref) => {
|
|
718
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
719
|
+
"input",
|
|
720
|
+
{
|
|
721
|
+
type,
|
|
722
|
+
className: cn(
|
|
723
|
+
"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",
|
|
724
|
+
className
|
|
725
|
+
),
|
|
726
|
+
ref,
|
|
727
|
+
...props
|
|
728
|
+
}
|
|
729
|
+
);
|
|
730
|
+
}
|
|
731
|
+
);
|
|
732
|
+
Input.displayName = "Input";
|
|
733
|
+
|
|
734
|
+
// src/components/popover.tsx
|
|
735
|
+
var React13 = __toESM(require("react"), 1);
|
|
736
|
+
var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"), 1);
|
|
737
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
738
|
+
var Popover = PopoverPrimitive.Root;
|
|
739
|
+
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
740
|
+
var PopoverContent = React13.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
741
|
+
PopoverPrimitive.Content,
|
|
742
|
+
{
|
|
743
|
+
ref,
|
|
744
|
+
align,
|
|
745
|
+
sideOffset,
|
|
746
|
+
className: cn(
|
|
747
|
+
"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",
|
|
748
|
+
className
|
|
749
|
+
),
|
|
750
|
+
...props
|
|
751
|
+
}
|
|
752
|
+
) }));
|
|
753
|
+
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
754
|
+
|
|
755
|
+
// src/components/progress.tsx
|
|
756
|
+
var React14 = __toESM(require("react"), 1);
|
|
757
|
+
var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"), 1);
|
|
758
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
759
|
+
var Progress = React14.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
760
|
+
ProgressPrimitive.Root,
|
|
761
|
+
{
|
|
762
|
+
ref,
|
|
763
|
+
className: cn("relative h-4 w-full overflow-hidden rounded-full bg-secondary", className),
|
|
764
|
+
...props,
|
|
765
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
766
|
+
ProgressPrimitive.Indicator,
|
|
767
|
+
{
|
|
768
|
+
className: "h-full w-full flex-1 bg-primary transition-all",
|
|
769
|
+
style: { transform: `translateX(-${100 - (value || 0)}%)` }
|
|
770
|
+
}
|
|
771
|
+
)
|
|
772
|
+
}
|
|
773
|
+
));
|
|
774
|
+
Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
775
|
+
|
|
776
|
+
// src/components/radio-group.tsx
|
|
777
|
+
var React15 = __toESM(require("react"), 1);
|
|
778
|
+
var RadioGroupPrimitive = __toESM(require("@radix-ui/react-radio-group"), 1);
|
|
779
|
+
var import_lucide_react6 = require("lucide-react");
|
|
780
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
781
|
+
var RadioGroup2 = React15.forwardRef(({ className, ...props }, ref) => {
|
|
782
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(RadioGroupPrimitive.Root, { className: cn("grid gap-2", className), ...props, ref });
|
|
783
|
+
});
|
|
784
|
+
RadioGroup2.displayName = RadioGroupPrimitive.Root.displayName;
|
|
785
|
+
var RadioGroupItem = React15.forwardRef(({ className, ...props }, ref) => {
|
|
786
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
787
|
+
RadioGroupPrimitive.Item,
|
|
788
|
+
{
|
|
789
|
+
ref,
|
|
790
|
+
className: cn(
|
|
791
|
+
"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",
|
|
792
|
+
className
|
|
793
|
+
),
|
|
794
|
+
...props,
|
|
795
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_lucide_react6.Circle, { className: "h-2.5 w-2.5 fill-current text-current" }) })
|
|
796
|
+
}
|
|
797
|
+
);
|
|
798
|
+
});
|
|
799
|
+
RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
|
|
800
|
+
|
|
801
|
+
// src/components/scroll-area.tsx
|
|
802
|
+
var React16 = __toESM(require("react"), 1);
|
|
803
|
+
var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"), 1);
|
|
804
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
805
|
+
var ScrollArea = React16.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(ScrollAreaPrimitive.Root, { ref, className: cn("relative overflow-hidden", className), ...props, children: [
|
|
806
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(ScrollAreaPrimitive.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
|
|
807
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(ScrollBar, {}),
|
|
808
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(ScrollAreaPrimitive.Corner, {})
|
|
809
|
+
] }));
|
|
810
|
+
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
811
|
+
var ScrollBar = React16.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
812
|
+
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
813
|
+
{
|
|
814
|
+
ref,
|
|
815
|
+
orientation,
|
|
816
|
+
className: cn(
|
|
817
|
+
"flex touch-none select-none transition-colors",
|
|
818
|
+
orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
|
|
819
|
+
orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
|
|
820
|
+
className
|
|
821
|
+
),
|
|
822
|
+
...props,
|
|
823
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
824
|
+
}
|
|
825
|
+
));
|
|
826
|
+
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
827
|
+
|
|
828
|
+
// src/components/select.tsx
|
|
829
|
+
var React17 = __toESM(require("react"), 1);
|
|
830
|
+
var SelectPrimitive = __toESM(require("@radix-ui/react-select"), 1);
|
|
831
|
+
var import_lucide_react7 = require("lucide-react");
|
|
832
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
833
|
+
var Select = SelectPrimitive.Root;
|
|
834
|
+
var SelectGroup = SelectPrimitive.Group;
|
|
835
|
+
var SelectValue = SelectPrimitive.Value;
|
|
836
|
+
var SelectTrigger = React17.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
837
|
+
SelectPrimitive.Trigger,
|
|
838
|
+
{
|
|
839
|
+
ref,
|
|
840
|
+
className: cn(
|
|
841
|
+
"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",
|
|
842
|
+
className
|
|
843
|
+
),
|
|
844
|
+
...props,
|
|
845
|
+
children: [
|
|
846
|
+
children,
|
|
847
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react7.ChevronDown, { className: "h-4 w-4 opacity-50" }) })
|
|
848
|
+
]
|
|
849
|
+
}
|
|
850
|
+
));
|
|
851
|
+
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
852
|
+
var SelectScrollUpButton = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
853
|
+
SelectPrimitive.ScrollUpButton,
|
|
854
|
+
{
|
|
855
|
+
ref,
|
|
856
|
+
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
857
|
+
...props,
|
|
858
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react7.ChevronUp, { className: "h-4 w-4" })
|
|
859
|
+
}
|
|
860
|
+
));
|
|
861
|
+
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
862
|
+
var SelectScrollDownButton = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
863
|
+
SelectPrimitive.ScrollDownButton,
|
|
864
|
+
{
|
|
865
|
+
ref,
|
|
866
|
+
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
867
|
+
...props,
|
|
868
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react7.ChevronDown, { className: "h-4 w-4" })
|
|
869
|
+
}
|
|
870
|
+
));
|
|
871
|
+
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
872
|
+
var SelectContent = React17.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
873
|
+
SelectPrimitive.Content,
|
|
874
|
+
{
|
|
875
|
+
ref,
|
|
876
|
+
className: cn(
|
|
877
|
+
"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",
|
|
878
|
+
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",
|
|
879
|
+
className
|
|
880
|
+
),
|
|
881
|
+
position,
|
|
882
|
+
...props,
|
|
883
|
+
children: [
|
|
884
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SelectScrollUpButton, {}),
|
|
885
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
886
|
+
SelectPrimitive.Viewport,
|
|
887
|
+
{
|
|
888
|
+
className: cn(
|
|
889
|
+
"p-1",
|
|
890
|
+
position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
|
|
891
|
+
),
|
|
892
|
+
children
|
|
893
|
+
}
|
|
894
|
+
),
|
|
895
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SelectScrollDownButton, {})
|
|
896
|
+
]
|
|
897
|
+
}
|
|
898
|
+
) }));
|
|
899
|
+
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
900
|
+
var SelectLabel = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SelectPrimitive.Label, { ref, className: cn("py-1.5 pl-8 pr-2 text-sm font-semibold", className), ...props }));
|
|
901
|
+
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
902
|
+
var SelectItem = React17.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
903
|
+
SelectPrimitive.Item,
|
|
904
|
+
{
|
|
905
|
+
ref,
|
|
906
|
+
className: cn(
|
|
907
|
+
"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",
|
|
908
|
+
className
|
|
909
|
+
),
|
|
910
|
+
...props,
|
|
911
|
+
children: [
|
|
912
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react7.Check, { className: "h-4 w-4" }) }) }),
|
|
913
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SelectPrimitive.ItemText, { children })
|
|
914
|
+
]
|
|
915
|
+
}
|
|
916
|
+
));
|
|
917
|
+
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
918
|
+
var SelectSeparator = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SelectPrimitive.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-muted", className), ...props }));
|
|
919
|
+
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
920
|
+
|
|
921
|
+
// src/components/separator.tsx
|
|
922
|
+
var React18 = __toESM(require("react"), 1);
|
|
923
|
+
var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"), 1);
|
|
924
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
925
|
+
var Separator3 = React18.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
926
|
+
SeparatorPrimitive.Root,
|
|
927
|
+
{
|
|
928
|
+
ref,
|
|
929
|
+
decorative,
|
|
930
|
+
orientation,
|
|
931
|
+
className: cn("shrink-0 bg-border", orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", className),
|
|
932
|
+
...props
|
|
933
|
+
}
|
|
934
|
+
));
|
|
935
|
+
Separator3.displayName = SeparatorPrimitive.Root.displayName;
|
|
936
|
+
|
|
937
|
+
// src/components/sheet.tsx
|
|
938
|
+
var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
939
|
+
var import_class_variance_authority5 = require("class-variance-authority");
|
|
940
|
+
var import_lucide_react8 = require("lucide-react");
|
|
941
|
+
var React19 = __toESM(require("react"), 1);
|
|
942
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
943
|
+
var Sheet = SheetPrimitive.Root;
|
|
944
|
+
var SheetTrigger = SheetPrimitive.Trigger;
|
|
945
|
+
var SheetClose = SheetPrimitive.Close;
|
|
946
|
+
var SheetPortal = SheetPrimitive.Portal;
|
|
947
|
+
var SheetOverlay = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
948
|
+
SheetPrimitive.Overlay,
|
|
949
|
+
{
|
|
950
|
+
className: cn(
|
|
951
|
+
"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",
|
|
952
|
+
className
|
|
953
|
+
),
|
|
954
|
+
...props,
|
|
955
|
+
ref
|
|
956
|
+
}
|
|
957
|
+
));
|
|
958
|
+
SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
|
|
959
|
+
var sheetVariants = (0, import_class_variance_authority5.cva)(
|
|
960
|
+
"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",
|
|
961
|
+
{
|
|
962
|
+
variants: {
|
|
963
|
+
side: {
|
|
964
|
+
top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
|
|
965
|
+
bottom: "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
|
|
966
|
+
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",
|
|
967
|
+
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"
|
|
968
|
+
}
|
|
969
|
+
},
|
|
970
|
+
defaultVariants: {
|
|
971
|
+
side: "right"
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
);
|
|
975
|
+
var SheetContent = React19.forwardRef(
|
|
976
|
+
({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(SheetPortal, { children: [
|
|
977
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(SheetOverlay, {}),
|
|
978
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(SheetPrimitive.Content, { ref, className: cn(sheetVariants({ side }), className), ...props, children: [
|
|
979
|
+
children,
|
|
980
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.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: [
|
|
981
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react8.X, { className: "h-4 w-4" }),
|
|
982
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "sr-only", children: "Close" })
|
|
983
|
+
] })
|
|
984
|
+
] })
|
|
985
|
+
] })
|
|
986
|
+
);
|
|
987
|
+
SheetContent.displayName = SheetPrimitive.Content.displayName;
|
|
988
|
+
var SheetHeader = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: cn("flex flex-col space-y-2 text-center sm:text-left", className), ...props });
|
|
989
|
+
SheetHeader.displayName = "SheetHeader";
|
|
990
|
+
var SheetFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
|
|
991
|
+
SheetFooter.displayName = "SheetFooter";
|
|
992
|
+
var SheetTitle = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(SheetPrimitive.Title, { ref, className: cn("text-lg font-semibold text-foreground", className), ...props }));
|
|
993
|
+
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
994
|
+
var SheetDescription = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(SheetPrimitive.Description, { ref, className: cn("text-sm text-muted-foreground", className), ...props }));
|
|
995
|
+
SheetDescription.displayName = SheetPrimitive.Description.displayName;
|
|
996
|
+
|
|
997
|
+
// src/components/sidebar.tsx
|
|
998
|
+
var React22 = __toESM(require("react"), 1);
|
|
999
|
+
var import_react_slot4 = require("@radix-ui/react-slot");
|
|
1000
|
+
var import_class_variance_authority6 = require("class-variance-authority");
|
|
1001
|
+
var import_lucide_react9 = require("lucide-react");
|
|
1002
|
+
|
|
1003
|
+
// src/hooks/use-mobile.ts
|
|
1004
|
+
var React20 = __toESM(require("react"), 1);
|
|
1005
|
+
var MOBILE_BREAKPOINT = 768;
|
|
1006
|
+
function useIsMobile() {
|
|
1007
|
+
const [isMobile, setIsMobile] = React20.useState(void 0);
|
|
1008
|
+
React20.useEffect(() => {
|
|
1009
|
+
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
1010
|
+
const onChange = () => {
|
|
1011
|
+
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
1012
|
+
};
|
|
1013
|
+
mql.addEventListener("change", onChange);
|
|
1014
|
+
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
1015
|
+
return () => mql.removeEventListener("change", onChange);
|
|
1016
|
+
}, []);
|
|
1017
|
+
return !!isMobile;
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
// src/components/skeleton.tsx
|
|
1021
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
1022
|
+
function Skeleton({ className, ...props }) {
|
|
1023
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: cn("animate-pulse rounded-md bg-muted", className), ...props });
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
// src/components/tooltip.tsx
|
|
1027
|
+
var React21 = __toESM(require("react"), 1);
|
|
1028
|
+
var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"), 1);
|
|
1029
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1030
|
+
var TooltipProvider = TooltipPrimitive.Provider;
|
|
1031
|
+
var Tooltip = TooltipPrimitive.Root;
|
|
1032
|
+
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
1033
|
+
var TooltipContent = React21.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1034
|
+
TooltipPrimitive.Content,
|
|
1035
|
+
{
|
|
1036
|
+
ref,
|
|
1037
|
+
sideOffset,
|
|
1038
|
+
className: cn(
|
|
1039
|
+
"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",
|
|
1040
|
+
className
|
|
1041
|
+
),
|
|
1042
|
+
...props
|
|
1043
|
+
}
|
|
1044
|
+
));
|
|
1045
|
+
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
1046
|
+
|
|
1047
|
+
// src/components/sidebar.tsx
|
|
1048
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
1049
|
+
var SIDEBAR_COOKIE_NAME = "sidebar:state";
|
|
1050
|
+
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
1051
|
+
var SIDEBAR_WIDTH = "16rem";
|
|
1052
|
+
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
1053
|
+
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
1054
|
+
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
1055
|
+
var SidebarContext = React22.createContext(null);
|
|
1056
|
+
function useSidebar() {
|
|
1057
|
+
const context = React22.useContext(SidebarContext);
|
|
1058
|
+
if (!context) {
|
|
1059
|
+
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
1060
|
+
}
|
|
1061
|
+
return context;
|
|
1062
|
+
}
|
|
1063
|
+
var SidebarProvider = React22.forwardRef(({ defaultOpen = true, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }, ref) => {
|
|
1064
|
+
const isMobile = useIsMobile();
|
|
1065
|
+
const [openMobile, setOpenMobile] = React22.useState(false);
|
|
1066
|
+
const [_open, _setOpen] = React22.useState(defaultOpen);
|
|
1067
|
+
const open = openProp ?? _open;
|
|
1068
|
+
const setOpen = React22.useCallback(
|
|
1069
|
+
(value) => {
|
|
1070
|
+
const openState = typeof value === "function" ? value(open) : value;
|
|
1071
|
+
if (setOpenProp) {
|
|
1072
|
+
setOpenProp(openState);
|
|
1073
|
+
} else {
|
|
1074
|
+
_setOpen(openState);
|
|
1075
|
+
}
|
|
1076
|
+
document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;
|
|
1077
|
+
},
|
|
1078
|
+
[setOpenProp, open]
|
|
1079
|
+
);
|
|
1080
|
+
const toggleSidebar = React22.useCallback(() => {
|
|
1081
|
+
return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
|
|
1082
|
+
}, [isMobile, setOpen, setOpenMobile]);
|
|
1083
|
+
React22.useEffect(() => {
|
|
1084
|
+
const handleKeyDown = (event) => {
|
|
1085
|
+
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
1086
|
+
event.preventDefault();
|
|
1087
|
+
toggleSidebar();
|
|
1088
|
+
}
|
|
1089
|
+
};
|
|
1090
|
+
window.addEventListener("keydown", handleKeyDown);
|
|
1091
|
+
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
1092
|
+
}, [toggleSidebar]);
|
|
1093
|
+
const state = open ? "expanded" : "collapsed";
|
|
1094
|
+
const contextValue = React22.useMemo(
|
|
1095
|
+
() => ({
|
|
1096
|
+
state,
|
|
1097
|
+
open,
|
|
1098
|
+
setOpen,
|
|
1099
|
+
isMobile,
|
|
1100
|
+
openMobile,
|
|
1101
|
+
setOpenMobile,
|
|
1102
|
+
toggleSidebar
|
|
1103
|
+
}),
|
|
1104
|
+
[state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
|
|
1105
|
+
);
|
|
1106
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1107
|
+
"div",
|
|
1108
|
+
{
|
|
1109
|
+
style: {
|
|
1110
|
+
"--sidebar-width": SIDEBAR_WIDTH,
|
|
1111
|
+
"--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
|
|
1112
|
+
...style
|
|
1113
|
+
},
|
|
1114
|
+
className: cn("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar", className),
|
|
1115
|
+
ref,
|
|
1116
|
+
...props,
|
|
1117
|
+
children
|
|
1118
|
+
}
|
|
1119
|
+
) }) });
|
|
1120
|
+
});
|
|
1121
|
+
SidebarProvider.displayName = "SidebarProvider";
|
|
1122
|
+
var Sidebar = React22.forwardRef(({ side = "left", variant = "sidebar", collapsible = "offcanvas", className, children, ...props }, ref) => {
|
|
1123
|
+
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
1124
|
+
if (collapsible === "none") {
|
|
1125
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1126
|
+
"div",
|
|
1127
|
+
{
|
|
1128
|
+
className: cn("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground", className),
|
|
1129
|
+
ref,
|
|
1130
|
+
...props,
|
|
1131
|
+
children
|
|
1132
|
+
}
|
|
1133
|
+
);
|
|
1134
|
+
}
|
|
1135
|
+
if (isMobile) {
|
|
1136
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1137
|
+
SheetContent,
|
|
1138
|
+
{
|
|
1139
|
+
"data-sidebar": "sidebar",
|
|
1140
|
+
"data-mobile": "true",
|
|
1141
|
+
className: "w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",
|
|
1142
|
+
style: {
|
|
1143
|
+
"--sidebar-width": SIDEBAR_WIDTH_MOBILE
|
|
1144
|
+
},
|
|
1145
|
+
side,
|
|
1146
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "flex h-full w-full flex-col", children })
|
|
1147
|
+
}
|
|
1148
|
+
) });
|
|
1149
|
+
}
|
|
1150
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
1151
|
+
"div",
|
|
1152
|
+
{
|
|
1153
|
+
ref,
|
|
1154
|
+
className: "group peer hidden text-sidebar-foreground md:block",
|
|
1155
|
+
"data-state": state,
|
|
1156
|
+
"data-collapsible": state === "collapsed" ? collapsible : "",
|
|
1157
|
+
"data-variant": variant,
|
|
1158
|
+
"data-side": side,
|
|
1159
|
+
children: [
|
|
1160
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1161
|
+
"div",
|
|
1162
|
+
{
|
|
1163
|
+
className: cn(
|
|
1164
|
+
"relative h-svh w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear",
|
|
1165
|
+
"group-data-[collapsible=offcanvas]:w-0",
|
|
1166
|
+
"group-data-[side=right]:rotate-180",
|
|
1167
|
+
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]"
|
|
1168
|
+
)
|
|
1169
|
+
}
|
|
1170
|
+
),
|
|
1171
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1172
|
+
"div",
|
|
1173
|
+
{
|
|
1174
|
+
className: cn(
|
|
1175
|
+
"fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",
|
|
1176
|
+
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)]",
|
|
1177
|
+
// Adjust the padding for floating and inset variants.
|
|
1178
|
+
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",
|
|
1179
|
+
className
|
|
1180
|
+
),
|
|
1181
|
+
...props,
|
|
1182
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1183
|
+
"div",
|
|
1184
|
+
{
|
|
1185
|
+
"data-sidebar": "sidebar",
|
|
1186
|
+
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",
|
|
1187
|
+
children
|
|
1188
|
+
}
|
|
1189
|
+
)
|
|
1190
|
+
}
|
|
1191
|
+
)
|
|
1192
|
+
]
|
|
1193
|
+
}
|
|
1194
|
+
);
|
|
1195
|
+
});
|
|
1196
|
+
Sidebar.displayName = "Sidebar";
|
|
1197
|
+
var SidebarTrigger = React22.forwardRef(
|
|
1198
|
+
({ className, onClick, ...props }, ref) => {
|
|
1199
|
+
const { toggleSidebar } = useSidebar();
|
|
1200
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
1201
|
+
Button,
|
|
1202
|
+
{
|
|
1203
|
+
ref,
|
|
1204
|
+
"data-sidebar": "trigger",
|
|
1205
|
+
variant: "ghost",
|
|
1206
|
+
size: "icon",
|
|
1207
|
+
className: cn("h-7 w-7", className),
|
|
1208
|
+
onClick: (event) => {
|
|
1209
|
+
onClick?.(event);
|
|
1210
|
+
toggleSidebar();
|
|
1211
|
+
},
|
|
1212
|
+
...props,
|
|
1213
|
+
children: [
|
|
1214
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react9.PanelLeft, {}),
|
|
1215
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
1216
|
+
]
|
|
1217
|
+
}
|
|
1218
|
+
);
|
|
1219
|
+
}
|
|
1220
|
+
);
|
|
1221
|
+
SidebarTrigger.displayName = "SidebarTrigger";
|
|
1222
|
+
var SidebarRail = React22.forwardRef(
|
|
1223
|
+
({ className, ...props }, ref) => {
|
|
1224
|
+
const { toggleSidebar } = useSidebar();
|
|
1225
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1226
|
+
"button",
|
|
1227
|
+
{
|
|
1228
|
+
ref,
|
|
1229
|
+
"data-sidebar": "rail",
|
|
1230
|
+
"aria-label": "Toggle Sidebar",
|
|
1231
|
+
tabIndex: -1,
|
|
1232
|
+
onClick: toggleSidebar,
|
|
1233
|
+
title: "Toggle Sidebar",
|
|
1234
|
+
className: cn(
|
|
1235
|
+
"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",
|
|
1236
|
+
"[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize",
|
|
1237
|
+
"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
|
|
1238
|
+
"group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar",
|
|
1239
|
+
"[[data-side=left][data-collapsible=offcanvas]_&]:-right-2",
|
|
1240
|
+
"[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",
|
|
1241
|
+
className
|
|
1242
|
+
),
|
|
1243
|
+
...props
|
|
1244
|
+
}
|
|
1245
|
+
);
|
|
1246
|
+
}
|
|
1247
|
+
);
|
|
1248
|
+
SidebarRail.displayName = "SidebarRail";
|
|
1249
|
+
var SidebarInset = React22.forwardRef(({ className, ...props }, ref) => {
|
|
1250
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1251
|
+
"main",
|
|
1252
|
+
{
|
|
1253
|
+
ref,
|
|
1254
|
+
className: cn(
|
|
1255
|
+
"relative flex min-h-svh flex-1 flex-col bg-background",
|
|
1256
|
+
"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",
|
|
1257
|
+
className
|
|
1258
|
+
),
|
|
1259
|
+
...props
|
|
1260
|
+
}
|
|
1261
|
+
);
|
|
1262
|
+
});
|
|
1263
|
+
SidebarInset.displayName = "SidebarInset";
|
|
1264
|
+
var SidebarInput = React22.forwardRef(
|
|
1265
|
+
({ className, ...props }, ref) => {
|
|
1266
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1267
|
+
Input,
|
|
1268
|
+
{
|
|
1269
|
+
ref,
|
|
1270
|
+
"data-sidebar": "input",
|
|
1271
|
+
className: cn(
|
|
1272
|
+
"h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",
|
|
1273
|
+
className
|
|
1274
|
+
),
|
|
1275
|
+
...props
|
|
1276
|
+
}
|
|
1277
|
+
);
|
|
1278
|
+
}
|
|
1279
|
+
);
|
|
1280
|
+
SidebarInput.displayName = "SidebarInput";
|
|
1281
|
+
var SidebarHeader = React22.forwardRef(({ className, ...props }, ref) => {
|
|
1282
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { ref, "data-sidebar": "header", className: cn("flex flex-col gap-2 p-2", className), ...props });
|
|
1283
|
+
});
|
|
1284
|
+
SidebarHeader.displayName = "SidebarHeader";
|
|
1285
|
+
var SidebarFooter = React22.forwardRef(({ className, ...props }, ref) => {
|
|
1286
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { ref, "data-sidebar": "footer", className: cn("flex flex-col gap-2 p-2", className), ...props });
|
|
1287
|
+
});
|
|
1288
|
+
SidebarFooter.displayName = "SidebarFooter";
|
|
1289
|
+
var SidebarSeparator = React22.forwardRef(
|
|
1290
|
+
({ className, ...props }, ref) => {
|
|
1291
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1292
|
+
Separator3,
|
|
1293
|
+
{
|
|
1294
|
+
ref,
|
|
1295
|
+
"data-sidebar": "separator",
|
|
1296
|
+
className: cn("mx-2 w-auto bg-sidebar-border", className),
|
|
1297
|
+
...props
|
|
1298
|
+
}
|
|
1299
|
+
);
|
|
1300
|
+
}
|
|
1301
|
+
);
|
|
1302
|
+
SidebarSeparator.displayName = "SidebarSeparator";
|
|
1303
|
+
var SidebarContent = React22.forwardRef(({ className, ...props }, ref) => {
|
|
1304
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1305
|
+
"div",
|
|
1306
|
+
{
|
|
1307
|
+
ref,
|
|
1308
|
+
"data-sidebar": "content",
|
|
1309
|
+
className: cn(
|
|
1310
|
+
"flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",
|
|
1311
|
+
className
|
|
1312
|
+
),
|
|
1313
|
+
...props
|
|
1314
|
+
}
|
|
1315
|
+
);
|
|
1316
|
+
});
|
|
1317
|
+
SidebarContent.displayName = "SidebarContent";
|
|
1318
|
+
var SidebarGroup = React22.forwardRef(({ className, ...props }, ref) => {
|
|
1319
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1320
|
+
"div",
|
|
1321
|
+
{
|
|
1322
|
+
ref,
|
|
1323
|
+
"data-sidebar": "group",
|
|
1324
|
+
className: cn("relative flex w-full min-w-0 flex-col p-2", className),
|
|
1325
|
+
...props
|
|
1326
|
+
}
|
|
1327
|
+
);
|
|
1328
|
+
});
|
|
1329
|
+
SidebarGroup.displayName = "SidebarGroup";
|
|
1330
|
+
var SidebarGroupLabel = React22.forwardRef(
|
|
1331
|
+
({ className, asChild = false, ...props }, ref) => {
|
|
1332
|
+
const Comp = asChild ? import_react_slot4.Slot : "div";
|
|
1333
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1334
|
+
Comp,
|
|
1335
|
+
{
|
|
1336
|
+
ref,
|
|
1337
|
+
"data-sidebar": "group-label",
|
|
1338
|
+
className: cn(
|
|
1339
|
+
"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",
|
|
1340
|
+
"group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
|
|
1341
|
+
className
|
|
1342
|
+
),
|
|
1343
|
+
...props
|
|
1344
|
+
}
|
|
1345
|
+
);
|
|
1346
|
+
}
|
|
1347
|
+
);
|
|
1348
|
+
SidebarGroupLabel.displayName = "SidebarGroupLabel";
|
|
1349
|
+
var SidebarGroupAction = React22.forwardRef(
|
|
1350
|
+
({ className, asChild = false, ...props }, ref) => {
|
|
1351
|
+
const Comp = asChild ? import_react_slot4.Slot : "button";
|
|
1352
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1353
|
+
Comp,
|
|
1354
|
+
{
|
|
1355
|
+
ref,
|
|
1356
|
+
"data-sidebar": "group-action",
|
|
1357
|
+
className: cn(
|
|
1358
|
+
"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",
|
|
1359
|
+
// Increases the hit area of the button on mobile.
|
|
1360
|
+
"after:absolute after:-inset-2 after:md:hidden",
|
|
1361
|
+
"group-data-[collapsible=icon]:hidden",
|
|
1362
|
+
className
|
|
1363
|
+
),
|
|
1364
|
+
...props
|
|
1365
|
+
}
|
|
1366
|
+
);
|
|
1367
|
+
}
|
|
1368
|
+
);
|
|
1369
|
+
SidebarGroupAction.displayName = "SidebarGroupAction";
|
|
1370
|
+
var SidebarGroupContent = React22.forwardRef(
|
|
1371
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { ref, "data-sidebar": "group-content", className: cn("w-full text-sm", className), ...props })
|
|
1372
|
+
);
|
|
1373
|
+
SidebarGroupContent.displayName = "SidebarGroupContent";
|
|
1374
|
+
var SidebarMenu = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("ul", { ref, "data-sidebar": "menu", className: cn("flex w-full min-w-0 flex-col gap-1", className), ...props }));
|
|
1375
|
+
SidebarMenu.displayName = "SidebarMenu";
|
|
1376
|
+
var SidebarMenuItem = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("li", { ref, "data-sidebar": "menu-item", className: cn("group/menu-item relative", className), ...props }));
|
|
1377
|
+
SidebarMenuItem.displayName = "SidebarMenuItem";
|
|
1378
|
+
var sidebarMenuButtonVariants = (0, import_class_variance_authority6.cva)(
|
|
1379
|
+
"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",
|
|
1380
|
+
{
|
|
1381
|
+
variants: {
|
|
1382
|
+
variant: {
|
|
1383
|
+
default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
|
|
1384
|
+
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))]"
|
|
1385
|
+
},
|
|
1386
|
+
size: {
|
|
1387
|
+
default: "h-8 text-sm",
|
|
1388
|
+
sm: "h-7 text-xs",
|
|
1389
|
+
lg: "h-12 text-sm group-data-[collapsible=icon]:!p-0"
|
|
1390
|
+
}
|
|
1391
|
+
},
|
|
1392
|
+
defaultVariants: {
|
|
1393
|
+
variant: "default",
|
|
1394
|
+
size: "default"
|
|
1395
|
+
}
|
|
1396
|
+
}
|
|
1397
|
+
);
|
|
1398
|
+
var SidebarMenuButton = React22.forwardRef(({ asChild = false, isActive = false, variant = "default", size = "default", tooltip, className, ...props }, ref) => {
|
|
1399
|
+
const Comp = asChild ? import_react_slot4.Slot : "button";
|
|
1400
|
+
const { isMobile, state } = useSidebar();
|
|
1401
|
+
const button = /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1402
|
+
Comp,
|
|
1403
|
+
{
|
|
1404
|
+
ref,
|
|
1405
|
+
"data-sidebar": "menu-button",
|
|
1406
|
+
"data-size": size,
|
|
1407
|
+
"data-active": isActive,
|
|
1408
|
+
className: cn(sidebarMenuButtonVariants({ variant, size }), className),
|
|
1409
|
+
...props
|
|
1410
|
+
}
|
|
1411
|
+
);
|
|
1412
|
+
if (!tooltip) {
|
|
1413
|
+
return button;
|
|
1414
|
+
}
|
|
1415
|
+
if (typeof tooltip === "string") {
|
|
1416
|
+
tooltip = {
|
|
1417
|
+
children: tooltip
|
|
1418
|
+
};
|
|
1419
|
+
}
|
|
1420
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Tooltip, { children: [
|
|
1421
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TooltipTrigger, { asChild: true, children: button }),
|
|
1422
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TooltipContent, { side: "right", align: "center", hidden: state !== "collapsed" || isMobile, ...tooltip })
|
|
1423
|
+
] });
|
|
1424
|
+
});
|
|
1425
|
+
SidebarMenuButton.displayName = "SidebarMenuButton";
|
|
1426
|
+
var SidebarMenuAction = React22.forwardRef(({ className, asChild = false, showOnHover = false, ...props }, ref) => {
|
|
1427
|
+
const Comp = asChild ? import_react_slot4.Slot : "button";
|
|
1428
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1429
|
+
Comp,
|
|
1430
|
+
{
|
|
1431
|
+
ref,
|
|
1432
|
+
"data-sidebar": "menu-action",
|
|
1433
|
+
className: cn(
|
|
1434
|
+
"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",
|
|
1435
|
+
// Increases the hit area of the button on mobile.
|
|
1436
|
+
"after:absolute after:-inset-2 after:md:hidden",
|
|
1437
|
+
"peer-data-[size=sm]/menu-button:top-1",
|
|
1438
|
+
"peer-data-[size=default]/menu-button:top-1.5",
|
|
1439
|
+
"peer-data-[size=lg]/menu-button:top-2.5",
|
|
1440
|
+
"group-data-[collapsible=icon]:hidden",
|
|
1441
|
+
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",
|
|
1442
|
+
className
|
|
1443
|
+
),
|
|
1444
|
+
...props
|
|
1445
|
+
}
|
|
1446
|
+
);
|
|
1447
|
+
});
|
|
1448
|
+
SidebarMenuAction.displayName = "SidebarMenuAction";
|
|
1449
|
+
var SidebarMenuBadge = React22.forwardRef(
|
|
1450
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1451
|
+
"div",
|
|
1452
|
+
{
|
|
1453
|
+
ref,
|
|
1454
|
+
"data-sidebar": "menu-badge",
|
|
1455
|
+
className: cn(
|
|
1456
|
+
"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",
|
|
1457
|
+
"peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",
|
|
1458
|
+
"peer-data-[size=sm]/menu-button:top-1",
|
|
1459
|
+
"peer-data-[size=default]/menu-button:top-1.5",
|
|
1460
|
+
"peer-data-[size=lg]/menu-button:top-2.5",
|
|
1461
|
+
"group-data-[collapsible=icon]:hidden",
|
|
1462
|
+
className
|
|
1463
|
+
),
|
|
1464
|
+
...props
|
|
1465
|
+
}
|
|
1466
|
+
)
|
|
1467
|
+
);
|
|
1468
|
+
SidebarMenuBadge.displayName = "SidebarMenuBadge";
|
|
1469
|
+
var SidebarMenuSkeleton = React22.forwardRef(({ className, showIcon = false, ...props }, ref) => {
|
|
1470
|
+
const width = React22.useMemo(() => {
|
|
1471
|
+
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
1472
|
+
}, []);
|
|
1473
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
1474
|
+
"div",
|
|
1475
|
+
{
|
|
1476
|
+
ref,
|
|
1477
|
+
"data-sidebar": "menu-skeleton",
|
|
1478
|
+
className: cn("flex h-8 items-center gap-2 rounded-md px-2", className),
|
|
1479
|
+
...props,
|
|
1480
|
+
children: [
|
|
1481
|
+
showIcon && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Skeleton, { className: "size-4 rounded-md", "data-sidebar": "menu-skeleton-icon" }),
|
|
1482
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1483
|
+
Skeleton,
|
|
1484
|
+
{
|
|
1485
|
+
className: "h-4 max-w-[--skeleton-width] flex-1",
|
|
1486
|
+
"data-sidebar": "menu-skeleton-text",
|
|
1487
|
+
style: {
|
|
1488
|
+
"--skeleton-width": width
|
|
1489
|
+
}
|
|
1490
|
+
}
|
|
1491
|
+
)
|
|
1492
|
+
]
|
|
1493
|
+
}
|
|
1494
|
+
);
|
|
1495
|
+
});
|
|
1496
|
+
SidebarMenuSkeleton.displayName = "SidebarMenuSkeleton";
|
|
1497
|
+
var SidebarMenuSub = React22.forwardRef(
|
|
1498
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1499
|
+
"ul",
|
|
1500
|
+
{
|
|
1501
|
+
ref,
|
|
1502
|
+
"data-sidebar": "menu-sub",
|
|
1503
|
+
className: cn(
|
|
1504
|
+
"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",
|
|
1505
|
+
"group-data-[collapsible=icon]:hidden",
|
|
1506
|
+
className
|
|
1507
|
+
),
|
|
1508
|
+
...props
|
|
1509
|
+
}
|
|
1510
|
+
)
|
|
1511
|
+
);
|
|
1512
|
+
SidebarMenuSub.displayName = "SidebarMenuSub";
|
|
1513
|
+
var SidebarMenuSubItem = React22.forwardRef(({ ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("li", { ref, ...props }));
|
|
1514
|
+
SidebarMenuSubItem.displayName = "SidebarMenuSubItem";
|
|
1515
|
+
var SidebarMenuSubButton = React22.forwardRef(({ asChild = false, size = "md", isActive, className, ...props }, ref) => {
|
|
1516
|
+
const Comp = asChild ? import_react_slot4.Slot : "a";
|
|
1517
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1518
|
+
Comp,
|
|
1519
|
+
{
|
|
1520
|
+
ref,
|
|
1521
|
+
"data-sidebar": "menu-sub-button",
|
|
1522
|
+
"data-size": size,
|
|
1523
|
+
"data-active": isActive,
|
|
1524
|
+
className: cn(
|
|
1525
|
+
"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",
|
|
1526
|
+
"data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
|
|
1527
|
+
size === "sm" && "text-xs",
|
|
1528
|
+
size === "md" && "text-sm",
|
|
1529
|
+
"group-data-[collapsible=icon]:hidden",
|
|
1530
|
+
className
|
|
1531
|
+
),
|
|
1532
|
+
...props
|
|
1533
|
+
}
|
|
1534
|
+
);
|
|
1535
|
+
});
|
|
1536
|
+
SidebarMenuSubButton.displayName = "SidebarMenuSubButton";
|
|
1537
|
+
|
|
1538
|
+
// src/components/switch.tsx
|
|
1539
|
+
var React23 = __toESM(require("react"), 1);
|
|
1540
|
+
var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"), 1);
|
|
1541
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1542
|
+
var Switch = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1543
|
+
SwitchPrimitives.Root,
|
|
1544
|
+
{
|
|
1545
|
+
className: cn(
|
|
1546
|
+
"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",
|
|
1547
|
+
className
|
|
1548
|
+
),
|
|
1549
|
+
...props,
|
|
1550
|
+
ref,
|
|
1551
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1552
|
+
SwitchPrimitives.Thumb,
|
|
1553
|
+
{
|
|
1554
|
+
className: cn(
|
|
1555
|
+
"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"
|
|
1556
|
+
)
|
|
1557
|
+
}
|
|
1558
|
+
)
|
|
1559
|
+
}
|
|
1560
|
+
));
|
|
1561
|
+
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
1562
|
+
|
|
1563
|
+
// src/components/table.tsx
|
|
1564
|
+
var React24 = __toESM(require("react"), 1);
|
|
1565
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1566
|
+
var Table = React24.forwardRef(
|
|
1567
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("table", { ref, className: cn("w-full caption-bottom text-sm", className), ...props }) })
|
|
1568
|
+
);
|
|
1569
|
+
Table.displayName = "Table";
|
|
1570
|
+
var TableHeader = React24.forwardRef(
|
|
1571
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("thead", { ref, className: cn("[&_tr]:border-b", className), ...props })
|
|
1572
|
+
);
|
|
1573
|
+
TableHeader.displayName = "TableHeader";
|
|
1574
|
+
var TableBody = React24.forwardRef(
|
|
1575
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("tbody", { ref, className: cn("[&_tr:last-child]:border-0", className), ...props })
|
|
1576
|
+
);
|
|
1577
|
+
TableBody.displayName = "TableBody";
|
|
1578
|
+
var TableFooter = React24.forwardRef(
|
|
1579
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("tfoot", { ref, className: cn("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0", className), ...props })
|
|
1580
|
+
);
|
|
1581
|
+
TableFooter.displayName = "TableFooter";
|
|
1582
|
+
var TableRow = React24.forwardRef(
|
|
1583
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1584
|
+
"tr",
|
|
1585
|
+
{
|
|
1586
|
+
ref,
|
|
1587
|
+
className: cn("border-b transition-colors data-[state=selected]:bg-muted hover:bg-muted/50", className),
|
|
1588
|
+
...props
|
|
1589
|
+
}
|
|
1590
|
+
)
|
|
1591
|
+
);
|
|
1592
|
+
TableRow.displayName = "TableRow";
|
|
1593
|
+
var TableHead = React24.forwardRef(
|
|
1594
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1595
|
+
"th",
|
|
1596
|
+
{
|
|
1597
|
+
ref,
|
|
1598
|
+
className: cn(
|
|
1599
|
+
"h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",
|
|
1600
|
+
className
|
|
1601
|
+
),
|
|
1602
|
+
...props
|
|
1603
|
+
}
|
|
1604
|
+
)
|
|
1605
|
+
);
|
|
1606
|
+
TableHead.displayName = "TableHead";
|
|
1607
|
+
var TableCell = React24.forwardRef(
|
|
1608
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { ref, className: cn("p-4 align-middle [&:has([role=checkbox])]:pr-0", className), ...props })
|
|
1609
|
+
);
|
|
1610
|
+
TableCell.displayName = "TableCell";
|
|
1611
|
+
var TableCaption = React24.forwardRef(
|
|
1612
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("caption", { ref, className: cn("mt-4 text-sm text-muted-foreground", className), ...props })
|
|
1613
|
+
);
|
|
1614
|
+
TableCaption.displayName = "TableCaption";
|
|
1615
|
+
|
|
1616
|
+
// src/components/tabs.tsx
|
|
1617
|
+
var React25 = __toESM(require("react"), 1);
|
|
1618
|
+
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"), 1);
|
|
1619
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1620
|
+
var Tabs = TabsPrimitive.Root;
|
|
1621
|
+
var TabsList = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1622
|
+
TabsPrimitive.List,
|
|
1623
|
+
{
|
|
1624
|
+
ref,
|
|
1625
|
+
className: cn(
|
|
1626
|
+
"inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",
|
|
1627
|
+
className
|
|
1628
|
+
),
|
|
1629
|
+
...props
|
|
1630
|
+
}
|
|
1631
|
+
));
|
|
1632
|
+
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
1633
|
+
var TabsTrigger = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1634
|
+
TabsPrimitive.Trigger,
|
|
1635
|
+
{
|
|
1636
|
+
ref,
|
|
1637
|
+
className: cn(
|
|
1638
|
+
"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",
|
|
1639
|
+
className
|
|
1640
|
+
),
|
|
1641
|
+
...props
|
|
1642
|
+
}
|
|
1643
|
+
));
|
|
1644
|
+
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
1645
|
+
var TabsContent = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1646
|
+
TabsPrimitive.Content,
|
|
1647
|
+
{
|
|
1648
|
+
ref,
|
|
1649
|
+
className: cn(
|
|
1650
|
+
"mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
1651
|
+
className
|
|
1652
|
+
),
|
|
1653
|
+
...props
|
|
1654
|
+
}
|
|
1655
|
+
));
|
|
1656
|
+
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
1657
|
+
|
|
1658
|
+
// src/components/textarea.tsx
|
|
1659
|
+
var React26 = __toESM(require("react"), 1);
|
|
1660
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1661
|
+
var Textarea = React26.forwardRef(({ className, ...props }, ref) => {
|
|
1662
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1663
|
+
"textarea",
|
|
1664
|
+
{
|
|
1665
|
+
className: cn(
|
|
1666
|
+
"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",
|
|
1667
|
+
className
|
|
1668
|
+
),
|
|
1669
|
+
ref,
|
|
1670
|
+
...props
|
|
1671
|
+
}
|
|
1672
|
+
);
|
|
1673
|
+
});
|
|
1674
|
+
Textarea.displayName = "Textarea";
|
|
1675
|
+
|
|
1676
|
+
// src/hooks/use-auth.tsx
|
|
1677
|
+
var import_react = require("react");
|
|
1678
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1679
|
+
var AuthContext = (0, import_react.createContext)(void 0);
|
|
1680
|
+
var AuthProvider = ({
|
|
1681
|
+
children,
|
|
1682
|
+
supabase,
|
|
1683
|
+
profilesTable = "profiles"
|
|
1684
|
+
}) => {
|
|
1685
|
+
const [user, setUser] = (0, import_react.useState)(null);
|
|
1686
|
+
const [session, setSession] = (0, import_react.useState)(null);
|
|
1687
|
+
const [profile, setProfile] = (0, import_react.useState)(null);
|
|
1688
|
+
const [profileLoading, setProfileLoading] = (0, import_react.useState)(false);
|
|
1689
|
+
const [authLoading, setAuthLoading] = (0, import_react.useState)(true);
|
|
1690
|
+
const userRef = (0, import_react.useRef)(null);
|
|
1691
|
+
const isLoading = authLoading || profileLoading;
|
|
1692
|
+
(0, import_react.useEffect)(() => {
|
|
1693
|
+
userRef.current = user;
|
|
1694
|
+
}, [user]);
|
|
1695
|
+
const fetchProfile = (0, import_react.useCallback)(
|
|
1696
|
+
async (userId) => {
|
|
1697
|
+
try {
|
|
1698
|
+
const { data, error } = await supabase.from(profilesTable).select("*").eq("id", userId).single();
|
|
1699
|
+
if (error) throw error;
|
|
1700
|
+
setProfile(data);
|
|
1701
|
+
} catch {
|
|
1702
|
+
setProfile(null);
|
|
1703
|
+
}
|
|
1704
|
+
},
|
|
1705
|
+
[supabase, profilesTable]
|
|
1706
|
+
);
|
|
1707
|
+
const refreshProfile = (0, import_react.useCallback)(async () => {
|
|
1708
|
+
if (userRef.current) {
|
|
1709
|
+
await fetchProfile(userRef.current.id);
|
|
1710
|
+
}
|
|
1711
|
+
}, [fetchProfile]);
|
|
1712
|
+
(0, import_react.useEffect)(() => {
|
|
1713
|
+
supabase.auth.getSession().then(({ data: { session: s } }) => {
|
|
1714
|
+
setSession(s);
|
|
1715
|
+
setUser(s?.user ?? null);
|
|
1716
|
+
setAuthLoading(false);
|
|
1717
|
+
});
|
|
1718
|
+
const { data: { subscription } } = supabase.auth.onAuthStateChange(
|
|
1719
|
+
(_event, s) => {
|
|
1720
|
+
setSession(s);
|
|
1721
|
+
setUser(s?.user ?? null);
|
|
1722
|
+
}
|
|
1723
|
+
);
|
|
1724
|
+
return () => subscription.unsubscribe();
|
|
1725
|
+
}, [supabase]);
|
|
1726
|
+
(0, import_react.useEffect)(() => {
|
|
1727
|
+
if (user) {
|
|
1728
|
+
setProfileLoading(true);
|
|
1729
|
+
fetchProfile(user.id).finally(() => setProfileLoading(false));
|
|
1730
|
+
} else {
|
|
1731
|
+
setProfile(null);
|
|
1732
|
+
}
|
|
1733
|
+
}, [user?.id, fetchProfile]);
|
|
1734
|
+
const login = (0, import_react.useCallback)(
|
|
1735
|
+
async (email, password) => {
|
|
1736
|
+
const { error } = await supabase.auth.signInWithPassword({ email, password });
|
|
1737
|
+
return { error };
|
|
1738
|
+
},
|
|
1739
|
+
[supabase]
|
|
1740
|
+
);
|
|
1741
|
+
const signup = (0, import_react.useCallback)(
|
|
1742
|
+
async (email, password) => {
|
|
1743
|
+
const { error } = await supabase.auth.signUp({ email, password });
|
|
1744
|
+
return { error };
|
|
1745
|
+
},
|
|
1746
|
+
[supabase]
|
|
1747
|
+
);
|
|
1748
|
+
const logout = (0, import_react.useCallback)(async () => {
|
|
1749
|
+
await supabase.auth.signOut();
|
|
1750
|
+
}, [supabase]);
|
|
1751
|
+
const value = (0, import_react.useMemo)(
|
|
1752
|
+
() => ({
|
|
1753
|
+
user,
|
|
1754
|
+
session,
|
|
1755
|
+
profile,
|
|
1756
|
+
isLoading,
|
|
1757
|
+
login,
|
|
1758
|
+
signup,
|
|
1759
|
+
logout,
|
|
1760
|
+
refreshProfile
|
|
1761
|
+
}),
|
|
1762
|
+
[user, session, profile, isLoading, login, signup, logout, refreshProfile]
|
|
1763
|
+
);
|
|
1764
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(AuthContext.Provider, { value, children });
|
|
1765
|
+
};
|
|
1766
|
+
var useAuth = () => {
|
|
1767
|
+
const ctx = (0, import_react.useContext)(AuthContext);
|
|
1768
|
+
if (!ctx) throw new Error("useAuth must be used within an AuthProvider");
|
|
1769
|
+
return ctx;
|
|
1770
|
+
};
|
|
1771
|
+
var useSession = () => {
|
|
1772
|
+
const { session } = useAuth();
|
|
1773
|
+
return session;
|
|
1774
|
+
};
|
|
1775
|
+
|
|
1776
|
+
// src/components/protected-route.tsx
|
|
1777
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
1778
|
+
var ProtectedRoute = ({
|
|
1779
|
+
children,
|
|
1780
|
+
onUnauthenticated,
|
|
1781
|
+
loadingFallback = null
|
|
1782
|
+
}) => {
|
|
1783
|
+
const { user, isLoading } = useAuth();
|
|
1784
|
+
if (isLoading) return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_jsx_runtime29.Fragment, { children: loadingFallback });
|
|
1785
|
+
if (!user) return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_jsx_runtime29.Fragment, { children: onUnauthenticated?.() ?? null });
|
|
1786
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_jsx_runtime29.Fragment, { children });
|
|
1787
|
+
};
|
|
1788
|
+
|
|
1789
|
+
// src/components/organisms/LoginPage.tsx
|
|
1790
|
+
var import_react2 = require("react");
|
|
1791
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
1792
|
+
var DEFAULT_LOGO = "https://devfellowship.s3.sa-east-1.amazonaws.com/media/1755889468274-DevFelloShip%2B1%2BSi%CC%81mbolo.png";
|
|
1793
|
+
function LoginPage({
|
|
1794
|
+
logo,
|
|
1795
|
+
title = "welcome, fellow!",
|
|
1796
|
+
redirectUrl = "/",
|
|
1797
|
+
onSuccess,
|
|
1798
|
+
onError,
|
|
1799
|
+
defaultMode = "login",
|
|
1800
|
+
termsUrl = "https://devfellowship.com/en/terms",
|
|
1801
|
+
className
|
|
1802
|
+
}) {
|
|
1803
|
+
const [mode, setMode] = (0, import_react2.useState)(defaultMode);
|
|
1804
|
+
const [email, setEmail] = (0, import_react2.useState)("");
|
|
1805
|
+
const [password, setPassword] = (0, import_react2.useState)("");
|
|
1806
|
+
const [acceptedTerms, setAcceptedTerms] = (0, import_react2.useState)(false);
|
|
1807
|
+
const [isSubmitting, setIsSubmitting] = (0, import_react2.useState)(false);
|
|
1808
|
+
const { login, signup } = useAuth();
|
|
1809
|
+
const handleSubmit = async (e) => {
|
|
1810
|
+
e.preventDefault();
|
|
1811
|
+
if (!email || !password) return;
|
|
1812
|
+
setIsSubmitting(true);
|
|
1813
|
+
try {
|
|
1814
|
+
if (mode === "login") {
|
|
1815
|
+
const { error } = await login(email, password);
|
|
1816
|
+
if (error) throw error;
|
|
1817
|
+
} else {
|
|
1818
|
+
const { error } = await signup(email, password);
|
|
1819
|
+
if (error) throw error;
|
|
1820
|
+
}
|
|
1821
|
+
onSuccess?.(redirectUrl);
|
|
1822
|
+
} catch (err) {
|
|
1823
|
+
onError?.(err instanceof Error ? err : new Error(String(err)));
|
|
1824
|
+
} finally {
|
|
1825
|
+
setIsSubmitting(false);
|
|
1826
|
+
}
|
|
1827
|
+
};
|
|
1828
|
+
const logoEl = logo === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("img", { src: DEFAULT_LOGO, alt: "DevFellowship Logo", className: "w-16 h-16" }) : typeof logo === "string" ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("img", { src: logo, alt: "App Logo", className: "w-16 h-16 object-contain" }) : logo;
|
|
1829
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1830
|
+
"div",
|
|
1831
|
+
{
|
|
1832
|
+
className: [
|
|
1833
|
+
"min-h-screen flex flex-col items-center justify-center px-4",
|
|
1834
|
+
className
|
|
1835
|
+
].filter(Boolean).join(" "),
|
|
1836
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "w-full max-w-md", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "bg-card rounded-xl p-8 shadow-xl border border-border text-center", children: [
|
|
1837
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "mx-auto w-20 h-20 flex items-center justify-center mb-0", children: logoEl }),
|
|
1838
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("h2", { className: "text-2xl font-bold text-foreground mb-6 mt-4", children: title }),
|
|
1839
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "w-full max-w-sm mx-auto space-y-5", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("form", { onSubmit: handleSubmit, children: [
|
|
1840
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "space-y-4", children: [
|
|
1841
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "space-y-2 text-left", children: [
|
|
1842
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Label2, { htmlFor: "lp-email", className: "text-sm font-medium text-foreground/90", children: "Email" }),
|
|
1843
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1844
|
+
Input,
|
|
1845
|
+
{
|
|
1846
|
+
id: "lp-email",
|
|
1847
|
+
type: "email",
|
|
1848
|
+
value: email,
|
|
1849
|
+
onChange: (e) => setEmail(e.target.value),
|
|
1850
|
+
placeholder: "your@email.com",
|
|
1851
|
+
className: "h-11 bg-secondary border-secondary text-foreground",
|
|
1852
|
+
required: true
|
|
1853
|
+
}
|
|
1854
|
+
)
|
|
1855
|
+
] }),
|
|
1856
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "space-y-2 text-left", children: [
|
|
1857
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Label2, { htmlFor: "lp-password", className: "text-sm font-medium text-foreground/90", children: "Password" }),
|
|
1858
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1859
|
+
Input,
|
|
1860
|
+
{
|
|
1861
|
+
id: "lp-password",
|
|
1862
|
+
type: "password",
|
|
1863
|
+
value: password,
|
|
1864
|
+
onChange: (e) => setPassword(e.target.value),
|
|
1865
|
+
placeholder: "\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022",
|
|
1866
|
+
className: "h-11 bg-secondary border-secondary text-foreground",
|
|
1867
|
+
required: true
|
|
1868
|
+
}
|
|
1869
|
+
)
|
|
1870
|
+
] }),
|
|
1871
|
+
mode === "signup" && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex items-start gap-2 text-left", children: [
|
|
1872
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1873
|
+
Checkbox,
|
|
1874
|
+
{
|
|
1875
|
+
id: "lp-terms",
|
|
1876
|
+
checked: acceptedTerms,
|
|
1877
|
+
onCheckedChange: (checked) => setAcceptedTerms(checked),
|
|
1878
|
+
className: "mt-1"
|
|
1879
|
+
}
|
|
1880
|
+
),
|
|
1881
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
1882
|
+
"label",
|
|
1883
|
+
{
|
|
1884
|
+
htmlFor: "lp-terms",
|
|
1885
|
+
className: "text-sm text-foreground/80 cursor-pointer leading-relaxed",
|
|
1886
|
+
children: [
|
|
1887
|
+
"I agree to the",
|
|
1888
|
+
" ",
|
|
1889
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1890
|
+
"a",
|
|
1891
|
+
{
|
|
1892
|
+
href: termsUrl,
|
|
1893
|
+
target: "_blank",
|
|
1894
|
+
rel: "noopener noreferrer",
|
|
1895
|
+
className: "text-[var(--brand-accent,#F39325)] underline-offset-4 hover:underline",
|
|
1896
|
+
children: "Terms and Conditions"
|
|
1897
|
+
}
|
|
1898
|
+
),
|
|
1899
|
+
"."
|
|
1900
|
+
]
|
|
1901
|
+
}
|
|
1902
|
+
)
|
|
1903
|
+
] })
|
|
1904
|
+
] }),
|
|
1905
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "space-y-4 mt-6", children: [
|
|
1906
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1907
|
+
Button,
|
|
1908
|
+
{
|
|
1909
|
+
type: "submit",
|
|
1910
|
+
className: "w-full h-11 bg-[var(--brand-accent,#F39325)] hover:bg-[var(--brand-accent,#F39325)]/90 text-primary-foreground transition-colors duration-200",
|
|
1911
|
+
disabled: isSubmitting || mode === "signup" && !acceptedTerms,
|
|
1912
|
+
children: isSubmitting ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "h-5 w-5 border-2 border-primary-foreground/20 border-t-primary-foreground rounded-full animate-spin mx-auto" }) : mode === "login" ? "Sign In" : "Create Account"
|
|
1913
|
+
}
|
|
1914
|
+
),
|
|
1915
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "text-center text-sm text-muted-foreground", children: mode === "login" ? /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_jsx_runtime30.Fragment, { children: [
|
|
1916
|
+
"Don't have an account?",
|
|
1917
|
+
" ",
|
|
1918
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1919
|
+
"button",
|
|
1920
|
+
{
|
|
1921
|
+
type: "button",
|
|
1922
|
+
onClick: () => setMode("signup"),
|
|
1923
|
+
className: "text-[var(--brand-accent,#F39325)] underline-offset-4 hover:underline",
|
|
1924
|
+
children: "Sign up"
|
|
1925
|
+
}
|
|
1926
|
+
)
|
|
1927
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_jsx_runtime30.Fragment, { children: [
|
|
1928
|
+
"Already have an account?",
|
|
1929
|
+
" ",
|
|
1930
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1931
|
+
"button",
|
|
1932
|
+
{
|
|
1933
|
+
type: "button",
|
|
1934
|
+
onClick: () => setMode("login"),
|
|
1935
|
+
className: "text-[var(--brand-accent,#F39325)] underline-offset-4 hover:underline",
|
|
1936
|
+
children: "Sign in"
|
|
1937
|
+
}
|
|
1938
|
+
)
|
|
1939
|
+
] }) })
|
|
1940
|
+
] })
|
|
1941
|
+
] }) })
|
|
1942
|
+
] }) })
|
|
1943
|
+
}
|
|
1944
|
+
);
|
|
1945
|
+
}
|
|
1946
|
+
|
|
1947
|
+
// src/components/organisms/AppSidebar.tsx
|
|
1948
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
1949
|
+
var DEFAULT_LOGO2 = "https://devfellowship.s3.sa-east-1.amazonaws.com/media/1755889468274-DevFelloShip%2B1%2BSi%CC%81mbolo.png";
|
|
1950
|
+
function getInitials(name) {
|
|
1951
|
+
return name.split(" ").map((n) => n[0]).slice(0, 2).join("").toUpperCase();
|
|
1952
|
+
}
|
|
1953
|
+
function SidebarInner({
|
|
1954
|
+
navGroups,
|
|
1955
|
+
userInfo,
|
|
1956
|
+
logo,
|
|
1957
|
+
appName = "DevFellowship",
|
|
1958
|
+
appLabel,
|
|
1959
|
+
onNavigate,
|
|
1960
|
+
activeUrl,
|
|
1961
|
+
footer,
|
|
1962
|
+
copyright = `Dev Fellowship \xA9 ${(/* @__PURE__ */ new Date()).getFullYear()}`
|
|
1963
|
+
}) {
|
|
1964
|
+
const { state } = useSidebar();
|
|
1965
|
+
const isCollapsed = state === "collapsed";
|
|
1966
|
+
const logoEl = logo === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("img", { src: DEFAULT_LOGO2, alt: "Logo", className: "w-6 h-6 object-contain" }) : typeof logo === "string" ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("img", { src: logo, alt: "Logo", className: "w-6 h-6 object-contain" }) : logo;
|
|
1967
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(Sidebar, { collapsible: "icon", children: [
|
|
1968
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(SidebarHeader, { className: "border-b border-sidebar-border", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center gap-2 px-2 py-3", children: [
|
|
1969
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "flex h-8 w-8 items-center justify-center rounded-lg bg-[var(--brand-accent,#F39325)] shrink-0", children: logoEl }),
|
|
1970
|
+
!isCollapsed && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex flex-col overflow-hidden", children: [
|
|
1971
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-sm font-semibold truncate", children: appName }),
|
|
1972
|
+
appLabel && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-xs text-muted-foreground truncate", children: appLabel })
|
|
1973
|
+
] })
|
|
1974
|
+
] }) }),
|
|
1975
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(SidebarContent, { children: navGroups.map((group, gi) => /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(SidebarGroup, { children: [
|
|
1976
|
+
group.label && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(SidebarGroupLabel, { children: group.label }),
|
|
1977
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(SidebarGroupContent, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(SidebarMenu, { children: group.items.map((item) => {
|
|
1978
|
+
const isActive = activeUrl ? item.exact ? activeUrl === item.url : activeUrl.startsWith(item.url) : false;
|
|
1979
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(SidebarMenuItem, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1980
|
+
SidebarMenuButton,
|
|
1981
|
+
{
|
|
1982
|
+
asChild: true,
|
|
1983
|
+
isActive,
|
|
1984
|
+
tooltip: isCollapsed ? item.title : void 0,
|
|
1985
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
1986
|
+
"button",
|
|
1987
|
+
{
|
|
1988
|
+
type: "button",
|
|
1989
|
+
onClick: () => onNavigate?.(item.url),
|
|
1990
|
+
className: "flex items-center gap-2 w-full",
|
|
1991
|
+
children: [
|
|
1992
|
+
item.icon && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(item.icon, { className: "h-4 w-4 shrink-0" }),
|
|
1993
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "truncate", children: item.title })
|
|
1994
|
+
]
|
|
1995
|
+
}
|
|
1996
|
+
)
|
|
1997
|
+
}
|
|
1998
|
+
) }, item.title);
|
|
1999
|
+
}) }) })
|
|
2000
|
+
] }, gi)) }),
|
|
2001
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(SidebarFooter, { className: "border-t border-sidebar-border", children: footer ? footer : userInfo ? /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "px-2 py-3 flex items-center gap-2", children: [
|
|
2002
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(Avatar, { className: "h-7 w-7 shrink-0", children: [
|
|
2003
|
+
userInfo.avatarUrl && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(AvatarImage, { src: userInfo.avatarUrl, alt: userInfo.name }),
|
|
2004
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(AvatarFallback, { className: "text-xs", children: getInitials(userInfo.name) })
|
|
2005
|
+
] }),
|
|
2006
|
+
!isCollapsed && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex flex-col overflow-hidden", children: [
|
|
2007
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-xs font-medium truncate", children: userInfo.name }),
|
|
2008
|
+
userInfo.email && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-xs text-muted-foreground truncate", children: userInfo.email })
|
|
2009
|
+
] })
|
|
2010
|
+
] }) : !isCollapsed && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "px-2 py-3", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "text-xs text-muted-foreground", children: copyright }) }) })
|
|
2011
|
+
] });
|
|
2012
|
+
}
|
|
2013
|
+
function AppSidebar({
|
|
2014
|
+
defaultOpen = true,
|
|
2015
|
+
children,
|
|
2016
|
+
...props
|
|
2017
|
+
}) {
|
|
2018
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(SidebarProvider, { defaultOpen, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex min-h-screen w-full", children: [
|
|
2019
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(SidebarInner, { ...props }),
|
|
2020
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex flex-col flex-1 min-w-0", children: [
|
|
2021
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "p-2", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(SidebarTrigger, {}) }),
|
|
2022
|
+
children
|
|
2023
|
+
] })
|
|
2024
|
+
] }) });
|
|
2025
|
+
}
|
|
2026
|
+
|
|
2027
|
+
// src/components/organisms/AppNavbar.tsx
|
|
2028
|
+
var import_react3 = __toESM(require("react"), 1);
|
|
2029
|
+
var import_lucide_react10 = require("lucide-react");
|
|
2030
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
2031
|
+
function getInitials2(name) {
|
|
2032
|
+
return name.split(" ").map((n) => n[0]).slice(0, 2).join("").toUpperCase();
|
|
2033
|
+
}
|
|
2034
|
+
function AppNavbar({
|
|
2035
|
+
breadcrumbs = [],
|
|
2036
|
+
userInfo,
|
|
2037
|
+
theme = "light",
|
|
2038
|
+
onThemeToggle,
|
|
2039
|
+
onProfileClick,
|
|
2040
|
+
onSettingsClick,
|
|
2041
|
+
onSignOut,
|
|
2042
|
+
actions,
|
|
2043
|
+
className
|
|
2044
|
+
}) {
|
|
2045
|
+
const isDark = theme === "dark";
|
|
2046
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
2047
|
+
"header",
|
|
2048
|
+
{
|
|
2049
|
+
className: [
|
|
2050
|
+
"h-14 flex items-center justify-between px-4 border-b border-border bg-background shrink-0",
|
|
2051
|
+
className
|
|
2052
|
+
].filter(Boolean).join(" "),
|
|
2053
|
+
children: [
|
|
2054
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex items-center gap-2 min-w-0", children: [
|
|
2055
|
+
breadcrumbs.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Breadcrumb, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(BreadcrumbList, { children: breadcrumbs.map((crumb, idx) => {
|
|
2056
|
+
const isLast = idx === breadcrumbs.length - 1;
|
|
2057
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react3.default.Fragment, { children: [
|
|
2058
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(BreadcrumbItem, { children: isLast ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(BreadcrumbPage, { children: crumb.label }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2059
|
+
BreadcrumbLink,
|
|
2060
|
+
{
|
|
2061
|
+
href: crumb.href ?? "#",
|
|
2062
|
+
className: "hover:text-foreground transition-colors",
|
|
2063
|
+
children: crumb.label
|
|
2064
|
+
}
|
|
2065
|
+
) }),
|
|
2066
|
+
!isLast && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(BreadcrumbSeparator, {})
|
|
2067
|
+
] }, idx);
|
|
2068
|
+
}) }) }),
|
|
2069
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "flex items-center gap-2 ml-2", children: actions })
|
|
2070
|
+
] }),
|
|
2071
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex items-center gap-2 shrink-0", children: [
|
|
2072
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2073
|
+
Button,
|
|
2074
|
+
{
|
|
2075
|
+
variant: "ghost",
|
|
2076
|
+
size: "icon",
|
|
2077
|
+
onClick: onThemeToggle,
|
|
2078
|
+
"aria-label": "Toggle theme",
|
|
2079
|
+
className: "h-8 w-8",
|
|
2080
|
+
children: isDark ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react10.Sun, { className: "h-4 w-4" }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react10.Moon, { className: "h-4 w-4" })
|
|
2081
|
+
}
|
|
2082
|
+
),
|
|
2083
|
+
userInfo && /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(DropdownMenu, { children: [
|
|
2084
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(Button, { variant: "ghost", className: "flex items-center gap-2 h-8 px-2", children: [
|
|
2085
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(Avatar, { className: "h-7 w-7", children: [
|
|
2086
|
+
userInfo.avatarUrl && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(AvatarImage, { src: userInfo.avatarUrl, alt: userInfo.name }),
|
|
2087
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(AvatarFallback, { className: "text-xs", children: getInitials2(userInfo.name) })
|
|
2088
|
+
] }),
|
|
2089
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "text-sm font-medium hidden sm:inline-block max-w-[120px] truncate", children: userInfo.name }),
|
|
2090
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react10.ChevronDown, { className: "h-3 w-3 text-muted-foreground" })
|
|
2091
|
+
] }) }),
|
|
2092
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(DropdownMenuContent, { align: "end", className: "w-48", children: [
|
|
2093
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DropdownMenuLabel, { className: "font-normal", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex flex-col space-y-1", children: [
|
|
2094
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("p", { className: "text-sm font-medium", children: userInfo.name }),
|
|
2095
|
+
userInfo.email && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("p", { className: "text-xs text-muted-foreground truncate", children: userInfo.email })
|
|
2096
|
+
] }) }),
|
|
2097
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DropdownMenuSeparator, {}),
|
|
2098
|
+
onProfileClick && /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(DropdownMenuItem, { onClick: onProfileClick, children: [
|
|
2099
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react10.User, { className: "mr-2 h-4 w-4" }),
|
|
2100
|
+
"Profile"
|
|
2101
|
+
] }),
|
|
2102
|
+
onSettingsClick && /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(DropdownMenuItem, { onClick: onSettingsClick, children: [
|
|
2103
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react10.Settings, { className: "mr-2 h-4 w-4" }),
|
|
2104
|
+
"Settings"
|
|
2105
|
+
] }),
|
|
2106
|
+
(onProfileClick || onSettingsClick) && onSignOut && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DropdownMenuSeparator, {}),
|
|
2107
|
+
onSignOut && /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(DropdownMenuItem, { onClick: onSignOut, className: "text-destructive focus:text-destructive", children: [
|
|
2108
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react10.LogOut, { className: "mr-2 h-4 w-4" }),
|
|
2109
|
+
"Sign out"
|
|
2110
|
+
] })
|
|
2111
|
+
] })
|
|
2112
|
+
] })
|
|
2113
|
+
] })
|
|
2114
|
+
]
|
|
2115
|
+
}
|
|
2116
|
+
);
|
|
2117
|
+
}
|
|
2118
|
+
|
|
2119
|
+
// src/hooks/use-toast.ts
|
|
2120
|
+
var React30 = __toESM(require("react"), 1);
|
|
2121
|
+
var TOAST_LIMIT = 1;
|
|
2122
|
+
var TOAST_REMOVE_DELAY = 1e6;
|
|
2123
|
+
var actionTypes = {
|
|
2124
|
+
ADD_TOAST: "ADD_TOAST",
|
|
2125
|
+
UPDATE_TOAST: "UPDATE_TOAST",
|
|
2126
|
+
DISMISS_TOAST: "DISMISS_TOAST",
|
|
2127
|
+
REMOVE_TOAST: "REMOVE_TOAST"
|
|
2128
|
+
};
|
|
2129
|
+
var count = 0;
|
|
2130
|
+
function genId() {
|
|
2131
|
+
count = (count + 1) % Number.MAX_SAFE_INTEGER;
|
|
2132
|
+
return count.toString();
|
|
2133
|
+
}
|
|
2134
|
+
var toastTimeouts = /* @__PURE__ */ new Map();
|
|
2135
|
+
var addToRemoveQueue = (toastId) => {
|
|
2136
|
+
if (toastTimeouts.has(toastId)) return;
|
|
2137
|
+
const timeout = setTimeout(() => {
|
|
2138
|
+
toastTimeouts.delete(toastId);
|
|
2139
|
+
dispatch({ type: actionTypes.REMOVE_TOAST, toastId });
|
|
2140
|
+
}, TOAST_REMOVE_DELAY);
|
|
2141
|
+
toastTimeouts.set(toastId, timeout);
|
|
2142
|
+
};
|
|
2143
|
+
var reducer = (state, action) => {
|
|
2144
|
+
switch (action.type) {
|
|
2145
|
+
case actionTypes.ADD_TOAST:
|
|
2146
|
+
return {
|
|
2147
|
+
...state,
|
|
2148
|
+
toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT)
|
|
2149
|
+
};
|
|
2150
|
+
case actionTypes.UPDATE_TOAST:
|
|
2151
|
+
return {
|
|
2152
|
+
...state,
|
|
2153
|
+
toasts: state.toasts.map(
|
|
2154
|
+
(t) => t.id === action.toast.id ? { ...t, ...action.toast } : t
|
|
2155
|
+
)
|
|
2156
|
+
};
|
|
2157
|
+
case actionTypes.DISMISS_TOAST: {
|
|
2158
|
+
const { toastId } = action;
|
|
2159
|
+
if (toastId) {
|
|
2160
|
+
addToRemoveQueue(toastId);
|
|
2161
|
+
} else {
|
|
2162
|
+
state.toasts.forEach((t) => addToRemoveQueue(t.id));
|
|
2163
|
+
}
|
|
2164
|
+
return {
|
|
2165
|
+
...state,
|
|
2166
|
+
toasts: state.toasts.map(
|
|
2167
|
+
(t) => t.id === toastId || toastId === void 0 ? { ...t, open: false } : t
|
|
2168
|
+
)
|
|
2169
|
+
};
|
|
2170
|
+
}
|
|
2171
|
+
case actionTypes.REMOVE_TOAST:
|
|
2172
|
+
if (action.toastId === void 0) return { ...state, toasts: [] };
|
|
2173
|
+
return {
|
|
2174
|
+
...state,
|
|
2175
|
+
toasts: state.toasts.filter((t) => t.id !== action.toastId)
|
|
2176
|
+
};
|
|
2177
|
+
}
|
|
2178
|
+
};
|
|
2179
|
+
var listeners = [];
|
|
2180
|
+
var memoryState = { toasts: [] };
|
|
2181
|
+
function dispatch(action) {
|
|
2182
|
+
memoryState = reducer(memoryState, action);
|
|
2183
|
+
listeners.forEach((listener) => listener(memoryState));
|
|
2184
|
+
}
|
|
2185
|
+
function toast(props) {
|
|
2186
|
+
const id = genId();
|
|
2187
|
+
const update = (p) => dispatch({ type: actionTypes.UPDATE_TOAST, toast: { ...p, id } });
|
|
2188
|
+
const dismiss = () => dispatch({ type: actionTypes.DISMISS_TOAST, toastId: id });
|
|
2189
|
+
dispatch({
|
|
2190
|
+
type: actionTypes.ADD_TOAST,
|
|
2191
|
+
toast: { ...props, id, open: true, onOpenChange: (open) => {
|
|
2192
|
+
if (!open) dismiss();
|
|
2193
|
+
} }
|
|
2194
|
+
});
|
|
2195
|
+
return { id, dismiss, update };
|
|
2196
|
+
}
|
|
2197
|
+
function useToast() {
|
|
2198
|
+
const [state, setState] = React30.useState(memoryState);
|
|
2199
|
+
React30.useEffect(() => {
|
|
2200
|
+
listeners.push(setState);
|
|
2201
|
+
return () => {
|
|
2202
|
+
const idx = listeners.indexOf(setState);
|
|
2203
|
+
if (idx > -1) listeners.splice(idx, 1);
|
|
2204
|
+
};
|
|
2205
|
+
}, []);
|
|
2206
|
+
return {
|
|
2207
|
+
...state,
|
|
2208
|
+
toast,
|
|
2209
|
+
dismiss: (toastId) => dispatch({ type: actionTypes.DISMISS_TOAST, toastId })
|
|
2210
|
+
};
|
|
2211
|
+
}
|
|
2212
|
+
|
|
2213
|
+
// src/providers/feature-flag-provider.tsx
|
|
2214
|
+
var import_react4 = require("react");
|
|
2215
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
2216
|
+
var FeatureFlagContext = (0, import_react4.createContext)({
|
|
2217
|
+
flags: {},
|
|
2218
|
+
isEnabled: () => false
|
|
2219
|
+
});
|
|
2220
|
+
var FeatureFlagProvider = ({
|
|
2221
|
+
children,
|
|
2222
|
+
flags
|
|
2223
|
+
}) => {
|
|
2224
|
+
const value = (0, import_react4.useMemo)(
|
|
2225
|
+
() => ({
|
|
2226
|
+
flags,
|
|
2227
|
+
isEnabled: (flag) => Boolean(flags[flag])
|
|
2228
|
+
}),
|
|
2229
|
+
[flags]
|
|
2230
|
+
);
|
|
2231
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(FeatureFlagContext.Provider, { value, children });
|
|
2232
|
+
};
|
|
2233
|
+
var useFeatureFlag = (flag) => {
|
|
2234
|
+
const { isEnabled } = (0, import_react4.useContext)(FeatureFlagContext);
|
|
2235
|
+
return isEnabled(flag);
|
|
2236
|
+
};
|
|
2237
|
+
var useFeatureFlags = () => {
|
|
2238
|
+
const { flags } = (0, import_react4.useContext)(FeatureFlagContext);
|
|
2239
|
+
return flags;
|
|
2240
|
+
};
|
|
2241
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
2242
|
+
0 && (module.exports = {
|
|
2243
|
+
Accordion,
|
|
2244
|
+
AccordionContent,
|
|
2245
|
+
AccordionItem,
|
|
2246
|
+
AccordionTrigger,
|
|
2247
|
+
Alert,
|
|
2248
|
+
AlertDescription,
|
|
2249
|
+
AlertTitle,
|
|
2250
|
+
AppNavbar,
|
|
2251
|
+
AppSidebar,
|
|
2252
|
+
AuthProvider,
|
|
2253
|
+
Avatar,
|
|
2254
|
+
AvatarFallback,
|
|
2255
|
+
AvatarImage,
|
|
2256
|
+
Badge,
|
|
2257
|
+
Breadcrumb,
|
|
2258
|
+
BreadcrumbEllipsis,
|
|
2259
|
+
BreadcrumbItem,
|
|
2260
|
+
BreadcrumbLink,
|
|
2261
|
+
BreadcrumbList,
|
|
2262
|
+
BreadcrumbPage,
|
|
2263
|
+
BreadcrumbSeparator,
|
|
2264
|
+
Button,
|
|
2265
|
+
Card,
|
|
2266
|
+
CardContent,
|
|
2267
|
+
CardDescription,
|
|
2268
|
+
CardFooter,
|
|
2269
|
+
CardHeader,
|
|
2270
|
+
CardTitle,
|
|
2271
|
+
Checkbox,
|
|
2272
|
+
Dialog,
|
|
2273
|
+
DialogClose,
|
|
2274
|
+
DialogContent,
|
|
2275
|
+
DialogDescription,
|
|
2276
|
+
DialogFooter,
|
|
2277
|
+
DialogHeader,
|
|
2278
|
+
DialogOverlay,
|
|
2279
|
+
DialogPortal,
|
|
2280
|
+
DialogTitle,
|
|
2281
|
+
DialogTrigger,
|
|
2282
|
+
DropdownMenu,
|
|
2283
|
+
DropdownMenuCheckboxItem,
|
|
2284
|
+
DropdownMenuContent,
|
|
2285
|
+
DropdownMenuGroup,
|
|
2286
|
+
DropdownMenuItem,
|
|
2287
|
+
DropdownMenuLabel,
|
|
2288
|
+
DropdownMenuPortal,
|
|
2289
|
+
DropdownMenuRadioGroup,
|
|
2290
|
+
DropdownMenuRadioItem,
|
|
2291
|
+
DropdownMenuSeparator,
|
|
2292
|
+
DropdownMenuShortcut,
|
|
2293
|
+
DropdownMenuSub,
|
|
2294
|
+
DropdownMenuSubContent,
|
|
2295
|
+
DropdownMenuSubTrigger,
|
|
2296
|
+
DropdownMenuTrigger,
|
|
2297
|
+
FeatureFlagProvider,
|
|
2298
|
+
Form,
|
|
2299
|
+
FormControl,
|
|
2300
|
+
FormDescription,
|
|
2301
|
+
FormField,
|
|
2302
|
+
FormItem,
|
|
2303
|
+
FormLabel,
|
|
2304
|
+
FormMessage,
|
|
2305
|
+
Input,
|
|
2306
|
+
Label,
|
|
2307
|
+
LoginPage,
|
|
2308
|
+
Popover,
|
|
2309
|
+
PopoverContent,
|
|
2310
|
+
PopoverTrigger,
|
|
2311
|
+
Progress,
|
|
2312
|
+
ProtectedRoute,
|
|
2313
|
+
RadioGroup,
|
|
2314
|
+
RadioGroupItem,
|
|
2315
|
+
ScrollArea,
|
|
2316
|
+
ScrollBar,
|
|
2317
|
+
Select,
|
|
2318
|
+
SelectContent,
|
|
2319
|
+
SelectGroup,
|
|
2320
|
+
SelectItem,
|
|
2321
|
+
SelectLabel,
|
|
2322
|
+
SelectScrollDownButton,
|
|
2323
|
+
SelectScrollUpButton,
|
|
2324
|
+
SelectSeparator,
|
|
2325
|
+
SelectTrigger,
|
|
2326
|
+
SelectValue,
|
|
2327
|
+
Separator,
|
|
2328
|
+
Sheet,
|
|
2329
|
+
SheetClose,
|
|
2330
|
+
SheetContent,
|
|
2331
|
+
SheetDescription,
|
|
2332
|
+
SheetFooter,
|
|
2333
|
+
SheetHeader,
|
|
2334
|
+
SheetOverlay,
|
|
2335
|
+
SheetPortal,
|
|
2336
|
+
SheetTitle,
|
|
2337
|
+
SheetTrigger,
|
|
2338
|
+
Sidebar,
|
|
2339
|
+
SidebarContent,
|
|
2340
|
+
SidebarFooter,
|
|
2341
|
+
SidebarGroup,
|
|
2342
|
+
SidebarGroupAction,
|
|
2343
|
+
SidebarGroupContent,
|
|
2344
|
+
SidebarGroupLabel,
|
|
2345
|
+
SidebarHeader,
|
|
2346
|
+
SidebarInput,
|
|
2347
|
+
SidebarInset,
|
|
2348
|
+
SidebarMenu,
|
|
2349
|
+
SidebarMenuAction,
|
|
2350
|
+
SidebarMenuBadge,
|
|
2351
|
+
SidebarMenuButton,
|
|
2352
|
+
SidebarMenuItem,
|
|
2353
|
+
SidebarMenuSkeleton,
|
|
2354
|
+
SidebarMenuSub,
|
|
2355
|
+
SidebarMenuSubButton,
|
|
2356
|
+
SidebarMenuSubItem,
|
|
2357
|
+
SidebarProvider,
|
|
2358
|
+
SidebarRail,
|
|
2359
|
+
SidebarSeparator,
|
|
2360
|
+
SidebarTrigger,
|
|
2361
|
+
Skeleton,
|
|
2362
|
+
Switch,
|
|
2363
|
+
Table,
|
|
2364
|
+
TableBody,
|
|
2365
|
+
TableCaption,
|
|
2366
|
+
TableCell,
|
|
2367
|
+
TableFooter,
|
|
2368
|
+
TableHead,
|
|
2369
|
+
TableHeader,
|
|
2370
|
+
TableRow,
|
|
2371
|
+
Tabs,
|
|
2372
|
+
TabsContent,
|
|
2373
|
+
TabsList,
|
|
2374
|
+
TabsTrigger,
|
|
2375
|
+
Textarea,
|
|
2376
|
+
Tooltip,
|
|
2377
|
+
TooltipContent,
|
|
2378
|
+
TooltipProvider,
|
|
2379
|
+
TooltipTrigger,
|
|
2380
|
+
badgeVariants,
|
|
2381
|
+
buttonVariants,
|
|
2382
|
+
cn,
|
|
2383
|
+
toast,
|
|
2384
|
+
useAuth,
|
|
2385
|
+
useFeatureFlag,
|
|
2386
|
+
useFeatureFlags,
|
|
2387
|
+
useFormField,
|
|
2388
|
+
useIsMobile,
|
|
2389
|
+
useSession,
|
|
2390
|
+
useSidebar,
|
|
2391
|
+
useToast
|
|
2392
|
+
});
|