pxengine 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index.mjs → index.cjs} +1018 -772
- package/dist/index.js +772 -1018
- package/dist/registry.json +4850 -0
- package/package.json +10 -5
- /package/dist/{index.d.mts → index.d.cts} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,271 +1,18 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
|
|
30
|
-
// src/index.ts
|
|
31
|
-
var index_exports = {};
|
|
32
|
-
__export(index_exports, {
|
|
33
|
-
Accordion: () => Accordion,
|
|
34
|
-
AccordionAtom: () => AccordionAtom,
|
|
35
|
-
AccordionContent: () => AccordionContent,
|
|
36
|
-
AccordionItem: () => AccordionItem,
|
|
37
|
-
AccordionTrigger: () => AccordionTrigger,
|
|
38
|
-
ActionButton: () => ActionButton,
|
|
39
|
-
Alert: () => Alert,
|
|
40
|
-
AlertAtom: () => AlertAtom,
|
|
41
|
-
AlertDescription: () => AlertDescription,
|
|
42
|
-
AlertDialog: () => AlertDialog,
|
|
43
|
-
AlertDialogAction: () => AlertDialogAction,
|
|
44
|
-
AlertDialogAtom: () => AlertDialogAtom,
|
|
45
|
-
AlertDialogCancel: () => AlertDialogCancel,
|
|
46
|
-
AlertDialogContent: () => AlertDialogContent,
|
|
47
|
-
AlertDialogDescription: () => AlertDialogDescription,
|
|
48
|
-
AlertDialogFooter: () => AlertDialogFooter,
|
|
49
|
-
AlertDialogHeader: () => AlertDialogHeader,
|
|
50
|
-
AlertDialogTitle: () => AlertDialogTitle,
|
|
51
|
-
AlertDialogTrigger: () => AlertDialogTrigger,
|
|
52
|
-
AlertTitle: () => AlertTitle,
|
|
53
|
-
AspectRatio: () => AspectRatio,
|
|
54
|
-
AspectRatioAtom: () => AspectRatioAtom,
|
|
55
|
-
Avatar: () => Avatar,
|
|
56
|
-
AvatarAtom: () => AvatarAtom,
|
|
57
|
-
AvatarFallback: () => AvatarFallback,
|
|
58
|
-
AvatarImage: () => AvatarImage,
|
|
59
|
-
Badge: () => Badge,
|
|
60
|
-
BadgeAtom: () => BadgeAtom,
|
|
61
|
-
Breadcrumb: () => Breadcrumb,
|
|
62
|
-
BreadcrumbAtom: () => BreadcrumbAtom,
|
|
63
|
-
BreadcrumbItem: () => BreadcrumbItem,
|
|
64
|
-
BreadcrumbLink: () => BreadcrumbLink,
|
|
65
|
-
BreadcrumbList: () => BreadcrumbList,
|
|
66
|
-
BreadcrumbPage: () => BreadcrumbPage,
|
|
67
|
-
BreadcrumbSeparator: () => BreadcrumbSeparator,
|
|
68
|
-
Button: () => Button,
|
|
69
|
-
ButtonAtom: () => ButtonAtom,
|
|
70
|
-
CAMPAIGN_SEED_FIELDS: () => CAMPAIGN_SEED_FIELDS,
|
|
71
|
-
Calendar: () => Calendar,
|
|
72
|
-
CalendarAtom: () => CalendarAtom,
|
|
73
|
-
CampaignSeedCard: () => CampaignSeedCard,
|
|
74
|
-
Card: () => Card,
|
|
75
|
-
CardAtom: () => CardAtom,
|
|
76
|
-
CardContent: () => CardContent,
|
|
77
|
-
CardDescription: () => CardDescription,
|
|
78
|
-
CardFooter: () => CardFooter,
|
|
79
|
-
CardHeader: () => CardHeader,
|
|
80
|
-
CardTitle: () => CardTitle,
|
|
81
|
-
Carousel: () => Carousel,
|
|
82
|
-
CarouselAtom: () => CarouselAtom,
|
|
83
|
-
CarouselContent: () => CarouselContent,
|
|
84
|
-
CarouselItem: () => CarouselItem,
|
|
85
|
-
CarouselNext: () => CarouselNext,
|
|
86
|
-
CarouselPrevious: () => CarouselPrevious,
|
|
87
|
-
Checkbox: () => Checkbox,
|
|
88
|
-
Collapsible: () => Collapsible,
|
|
89
|
-
CollapsibleAtom: () => CollapsibleAtom,
|
|
90
|
-
CollapsibleContent: () => CollapsibleContent2,
|
|
91
|
-
CollapsibleTrigger: () => CollapsibleTrigger2,
|
|
92
|
-
Command: () => Command,
|
|
93
|
-
CommandAtom: () => CommandAtom,
|
|
94
|
-
CommandDialog: () => CommandDialog,
|
|
95
|
-
CommandEmpty: () => CommandEmpty,
|
|
96
|
-
CommandGroup: () => CommandGroup,
|
|
97
|
-
CommandInput: () => CommandInput,
|
|
98
|
-
CommandItem: () => CommandItem,
|
|
99
|
-
CommandList: () => CommandList,
|
|
100
|
-
CommandSeparator: () => CommandSeparator,
|
|
101
|
-
CommandShortcut: () => CommandShortcut,
|
|
102
|
-
ContextMenu: () => ContextMenu,
|
|
103
|
-
ContextMenuCheckboxItem: () => ContextMenuCheckboxItem,
|
|
104
|
-
ContextMenuContent: () => ContextMenuContent,
|
|
105
|
-
ContextMenuItem: () => ContextMenuItem,
|
|
106
|
-
ContextMenuLabel: () => ContextMenuLabel,
|
|
107
|
-
ContextMenuRadioItem: () => ContextMenuRadioItem,
|
|
108
|
-
ContextMenuSeparator: () => ContextMenuSeparator,
|
|
109
|
-
ContextMenuShortcut: () => ContextMenuShortcut,
|
|
110
|
-
ContextMenuTrigger: () => ContextMenuTrigger,
|
|
111
|
-
CountrySelectDisplay: () => CountrySelectDisplay,
|
|
112
|
-
CountrySelectEdit: () => CountrySelectEdit,
|
|
113
|
-
Dialog: () => Dialog,
|
|
114
|
-
DialogAtom: () => DialogAtom,
|
|
115
|
-
DialogClose: () => DialogClose,
|
|
116
|
-
DialogContent: () => DialogContent,
|
|
117
|
-
DialogDescription: () => DialogDescription,
|
|
118
|
-
DialogFooter: () => DialogFooter,
|
|
119
|
-
DialogHeader: () => DialogHeader,
|
|
120
|
-
DialogTitle: () => DialogTitle,
|
|
121
|
-
DialogTrigger: () => DialogTrigger,
|
|
122
|
-
Drawer: () => Drawer,
|
|
123
|
-
DrawerClose: () => DrawerClose,
|
|
124
|
-
DrawerContent: () => DrawerContent,
|
|
125
|
-
DrawerDescription: () => DrawerDescription,
|
|
126
|
-
DrawerFooter: () => DrawerFooter,
|
|
127
|
-
DrawerHeader: () => DrawerHeader,
|
|
128
|
-
DrawerTitle: () => DrawerTitle,
|
|
129
|
-
DrawerTrigger: () => DrawerTrigger,
|
|
130
|
-
DropdownMenu: () => DropdownMenu,
|
|
131
|
-
DropdownMenuCheckboxItem: () => DropdownMenuCheckboxItem,
|
|
132
|
-
DropdownMenuContent: () => DropdownMenuContent,
|
|
133
|
-
DropdownMenuItem: () => DropdownMenuItem,
|
|
134
|
-
DropdownMenuLabel: () => DropdownMenuLabel,
|
|
135
|
-
DropdownMenuPortal: () => DropdownMenuPortal,
|
|
136
|
-
DropdownMenuRadioGroup: () => DropdownMenuRadioGroup,
|
|
137
|
-
DropdownMenuRadioItem: () => DropdownMenuRadioItem,
|
|
138
|
-
DropdownMenuSeparator: () => DropdownMenuSeparator,
|
|
139
|
-
DropdownMenuShortcut: () => DropdownMenuShortcut,
|
|
140
|
-
DropdownMenuTrigger: () => DropdownMenuTrigger,
|
|
141
|
-
EditableField: () => EditableField,
|
|
142
|
-
Form: () => Form,
|
|
143
|
-
FormCard: () => FormCard,
|
|
144
|
-
FormControl: () => FormControl,
|
|
145
|
-
FormDescription: () => FormDescription,
|
|
146
|
-
FormField: () => FormField,
|
|
147
|
-
FormItem: () => FormItem,
|
|
148
|
-
FormLabel: () => FormLabel,
|
|
149
|
-
FormMessage: () => FormMessage,
|
|
150
|
-
HoverCard: () => HoverCard,
|
|
151
|
-
HoverCardContent: () => HoverCardContent,
|
|
152
|
-
HoverCardTrigger: () => HoverCardTrigger,
|
|
153
|
-
Input: () => Input,
|
|
154
|
-
InputAtom: () => InputAtom,
|
|
155
|
-
InputOTP: () => InputOTP,
|
|
156
|
-
InputOTPGroup: () => InputOTPGroup,
|
|
157
|
-
InputOTPSeparator: () => InputOTPSeparator,
|
|
158
|
-
InputOTPSlot: () => InputOTPSlot,
|
|
159
|
-
KeywordBundlesDisplay: () => KeywordBundlesDisplay,
|
|
160
|
-
KeywordBundlesEdit: () => KeywordBundlesEdit,
|
|
161
|
-
Label: () => Label,
|
|
162
|
-
LayoutAtom: () => LayoutAtom,
|
|
163
|
-
MCQCard: () => MCQCard,
|
|
164
|
-
Menubar: () => Menubar,
|
|
165
|
-
MenubarCheckboxItem: () => MenubarCheckboxItem,
|
|
166
|
-
MenubarContent: () => MenubarContent,
|
|
167
|
-
MenubarItem: () => MenubarItem,
|
|
168
|
-
MenubarLabel: () => MenubarLabel,
|
|
169
|
-
MenubarRadioItem: () => MenubarRadioItem,
|
|
170
|
-
MenubarSeparator: () => MenubarSeparator,
|
|
171
|
-
MenubarShortcut: () => MenubarShortcut,
|
|
172
|
-
MenubarTrigger: () => MenubarTrigger,
|
|
173
|
-
NavigationMenu: () => NavigationMenu,
|
|
174
|
-
NavigationMenuContent: () => NavigationMenuContent,
|
|
175
|
-
NavigationMenuItem: () => NavigationMenuItem,
|
|
176
|
-
NavigationMenuLink: () => NavigationMenuLink,
|
|
177
|
-
NavigationMenuList: () => NavigationMenuList,
|
|
178
|
-
NavigationMenuTrigger: () => NavigationMenuTrigger,
|
|
179
|
-
PXEngineRenderer: () => PXEngineRenderer,
|
|
180
|
-
Pagination: () => Pagination,
|
|
181
|
-
PaginationAtom: () => PaginationAtom,
|
|
182
|
-
PaginationContent: () => PaginationContent,
|
|
183
|
-
PaginationEllipsis: () => PaginationEllipsis,
|
|
184
|
-
PaginationItem: () => PaginationItem,
|
|
185
|
-
PaginationLink: () => PaginationLink,
|
|
186
|
-
PaginationNext: () => PaginationNext,
|
|
187
|
-
PaginationPrevious: () => PaginationPrevious,
|
|
188
|
-
Popover: () => Popover,
|
|
189
|
-
PopoverAtom: () => PopoverAtom,
|
|
190
|
-
PopoverContent: () => PopoverContent,
|
|
191
|
-
PopoverTrigger: () => PopoverTrigger,
|
|
192
|
-
Progress: () => Progress,
|
|
193
|
-
ProgressAtom: () => ProgressAtom,
|
|
194
|
-
RadioGroup: () => RadioGroup,
|
|
195
|
-
RadioGroupItem: () => RadioGroupItem,
|
|
196
|
-
ResizablePanel: () => ResizablePanel,
|
|
197
|
-
ResizablePanelGroup: () => ResizablePanelGroup,
|
|
198
|
-
SEARCH_SPEC_FIELDS: () => SEARCH_SPEC_FIELDS,
|
|
199
|
-
ScrollArea: () => ScrollArea,
|
|
200
|
-
ScrollAreaAtom: () => ScrollAreaAtom,
|
|
201
|
-
ScrollBar: () => ScrollBar,
|
|
202
|
-
SearchSpecCard: () => SearchSpecCard,
|
|
203
|
-
Select: () => Select,
|
|
204
|
-
SelectContent: () => SelectContent,
|
|
205
|
-
SelectGroup: () => SelectGroup,
|
|
206
|
-
SelectItem: () => SelectItem,
|
|
207
|
-
SelectLabel: () => SelectLabel,
|
|
208
|
-
SelectScrollDownButton: () => SelectScrollDownButton,
|
|
209
|
-
SelectScrollUpButton: () => SelectScrollUpButton,
|
|
210
|
-
SelectSeparator: () => SelectSeparator,
|
|
211
|
-
SelectTrigger: () => SelectTrigger,
|
|
212
|
-
SelectValue: () => SelectValue,
|
|
213
|
-
Separator: () => Separator2,
|
|
214
|
-
SeparatorAtom: () => SeparatorAtom,
|
|
215
|
-
Sheet: () => Sheet,
|
|
216
|
-
SheetAtom: () => SheetAtom,
|
|
217
|
-
SheetClose: () => SheetClose,
|
|
218
|
-
SheetContent: () => SheetContent,
|
|
219
|
-
SheetDescription: () => SheetDescription,
|
|
220
|
-
SheetFooter: () => SheetFooter,
|
|
221
|
-
SheetHeader: () => SheetHeader,
|
|
222
|
-
SheetTitle: () => SheetTitle,
|
|
223
|
-
SheetTrigger: () => SheetTrigger,
|
|
224
|
-
Skeleton: () => Skeleton,
|
|
225
|
-
SkeletonAtom: () => SkeletonAtom,
|
|
226
|
-
Slider: () => Slider,
|
|
227
|
-
Spinner: () => Spinner,
|
|
228
|
-
SpinnerAtom: () => SpinnerAtom,
|
|
229
|
-
Switch: () => Switch,
|
|
230
|
-
Table: () => Table,
|
|
231
|
-
TableAtom: () => TableAtom,
|
|
232
|
-
TableBody: () => TableBody,
|
|
233
|
-
TableCaption: () => TableCaption,
|
|
234
|
-
TableCell: () => TableCell,
|
|
235
|
-
TableHead: () => TableHead,
|
|
236
|
-
TableHeader: () => TableHeader,
|
|
237
|
-
TableRow: () => TableRow,
|
|
238
|
-
Tabs: () => Tabs,
|
|
239
|
-
TabsAtom: () => TabsAtom,
|
|
240
|
-
TabsContent: () => TabsContent,
|
|
241
|
-
TabsList: () => TabsList,
|
|
242
|
-
TabsTrigger: () => TabsTrigger,
|
|
243
|
-
TextAtom: () => TextAtom,
|
|
244
|
-
Textarea: () => Textarea,
|
|
245
|
-
Tooltip: () => Tooltip,
|
|
246
|
-
TooltipAtom: () => TooltipAtom,
|
|
247
|
-
TooltipContent: () => TooltipContent,
|
|
248
|
-
TooltipProvider: () => TooltipProvider,
|
|
249
|
-
TooltipTrigger: () => TooltipTrigger,
|
|
250
|
-
cn: () => cn
|
|
251
|
-
});
|
|
252
|
-
module.exports = __toCommonJS(index_exports);
|
|
253
|
-
|
|
254
1
|
// src/components/ui/button.tsx
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
4
|
+
import { cva } from "class-variance-authority";
|
|
258
5
|
|
|
259
6
|
// src/lib/utils.ts
|
|
260
|
-
|
|
261
|
-
|
|
7
|
+
import { clsx } from "clsx";
|
|
8
|
+
import { twMerge } from "tailwind-merge";
|
|
262
9
|
function cn(...inputs) {
|
|
263
|
-
return
|
|
10
|
+
return twMerge(clsx(inputs));
|
|
264
11
|
}
|
|
265
12
|
|
|
266
13
|
// src/components/ui/button.tsx
|
|
267
|
-
|
|
268
|
-
var buttonVariants =
|
|
14
|
+
import { jsx } from "react/jsx-runtime";
|
|
15
|
+
var buttonVariants = cva(
|
|
269
16
|
"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",
|
|
270
17
|
{
|
|
271
18
|
variants: {
|
|
@@ -292,8 +39,8 @@ var buttonVariants = (0, import_class_variance_authority.cva)(
|
|
|
292
39
|
);
|
|
293
40
|
var Button = React.forwardRef(
|
|
294
41
|
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
295
|
-
const Comp = asChild ?
|
|
296
|
-
return /* @__PURE__ */
|
|
42
|
+
const Comp = asChild ? Slot : "button";
|
|
43
|
+
return /* @__PURE__ */ jsx(
|
|
297
44
|
Comp,
|
|
298
45
|
{
|
|
299
46
|
className: cn(buttonVariants({ variant, size, className })),
|
|
@@ -306,11 +53,11 @@ var Button = React.forwardRef(
|
|
|
306
53
|
Button.displayName = "Button";
|
|
307
54
|
|
|
308
55
|
// src/components/ui/input.tsx
|
|
309
|
-
|
|
310
|
-
|
|
56
|
+
import * as React2 from "react";
|
|
57
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
311
58
|
var Input = React2.forwardRef(
|
|
312
59
|
({ className, type, ...props }, ref) => {
|
|
313
|
-
return /* @__PURE__ */ (
|
|
60
|
+
return /* @__PURE__ */ jsx2(
|
|
314
61
|
"input",
|
|
315
62
|
{
|
|
316
63
|
type,
|
|
@@ -327,14 +74,14 @@ var Input = React2.forwardRef(
|
|
|
327
74
|
Input.displayName = "Input";
|
|
328
75
|
|
|
329
76
|
// src/components/ui/label.tsx
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
var labelVariants = (
|
|
77
|
+
import * as React3 from "react";
|
|
78
|
+
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
79
|
+
import { cva as cva2 } from "class-variance-authority";
|
|
80
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
81
|
+
var labelVariants = cva2(
|
|
335
82
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
336
83
|
);
|
|
337
|
-
var Label = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
84
|
+
var Label = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx3(
|
|
338
85
|
LabelPrimitive.Root,
|
|
339
86
|
{
|
|
340
87
|
ref,
|
|
@@ -345,11 +92,11 @@ var Label = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
345
92
|
Label.displayName = LabelPrimitive.Root.displayName;
|
|
346
93
|
|
|
347
94
|
// src/components/ui/checkbox.tsx
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
var Checkbox = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
95
|
+
import * as React4 from "react";
|
|
96
|
+
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
97
|
+
import { Check } from "lucide-react";
|
|
98
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
99
|
+
var Checkbox = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx4(
|
|
353
100
|
CheckboxPrimitive.Root,
|
|
354
101
|
{
|
|
355
102
|
ref,
|
|
@@ -358,11 +105,11 @@ var Checkbox = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
358
105
|
className
|
|
359
106
|
),
|
|
360
107
|
...props,
|
|
361
|
-
children: /* @__PURE__ */ (
|
|
108
|
+
children: /* @__PURE__ */ jsx4(
|
|
362
109
|
CheckboxPrimitive.Indicator,
|
|
363
110
|
{
|
|
364
111
|
className: cn("grid place-content-center text-current"),
|
|
365
|
-
children: /* @__PURE__ */ (
|
|
112
|
+
children: /* @__PURE__ */ jsx4(Check, { className: "h-4 w-4" })
|
|
366
113
|
}
|
|
367
114
|
)
|
|
368
115
|
}
|
|
@@ -370,12 +117,12 @@ var Checkbox = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
370
117
|
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
371
118
|
|
|
372
119
|
// src/components/ui/radio-group.tsx
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
120
|
+
import * as React5 from "react";
|
|
121
|
+
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
122
|
+
import { Circle } from "lucide-react";
|
|
123
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
377
124
|
var RadioGroup = React5.forwardRef(({ className, ...props }, ref) => {
|
|
378
|
-
return /* @__PURE__ */ (
|
|
125
|
+
return /* @__PURE__ */ jsx5(
|
|
379
126
|
RadioGroupPrimitive.Root,
|
|
380
127
|
{
|
|
381
128
|
className: cn("grid gap-2", className),
|
|
@@ -386,7 +133,7 @@ var RadioGroup = React5.forwardRef(({ className, ...props }, ref) => {
|
|
|
386
133
|
});
|
|
387
134
|
RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
|
|
388
135
|
var RadioGroupItem = React5.forwardRef(({ className, ...props }, ref) => {
|
|
389
|
-
return /* @__PURE__ */ (
|
|
136
|
+
return /* @__PURE__ */ jsx5(
|
|
390
137
|
RadioGroupPrimitive.Item,
|
|
391
138
|
{
|
|
392
139
|
ref,
|
|
@@ -395,17 +142,17 @@ var RadioGroupItem = React5.forwardRef(({ className, ...props }, ref) => {
|
|
|
395
142
|
className
|
|
396
143
|
),
|
|
397
144
|
...props,
|
|
398
|
-
children: /* @__PURE__ */ (
|
|
145
|
+
children: /* @__PURE__ */ jsx5(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx5(Circle, { className: "h-2.5 w-2.5 fill-current text-current" }) })
|
|
399
146
|
}
|
|
400
147
|
);
|
|
401
148
|
});
|
|
402
149
|
RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
|
|
403
150
|
|
|
404
151
|
// src/components/ui/switch.tsx
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
var Switch = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
152
|
+
import * as React6 from "react";
|
|
153
|
+
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
|
154
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
155
|
+
var Switch = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx6(
|
|
409
156
|
SwitchPrimitives.Root,
|
|
410
157
|
{
|
|
411
158
|
className: cn(
|
|
@@ -414,7 +161,7 @@ var Switch = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
414
161
|
),
|
|
415
162
|
...props,
|
|
416
163
|
ref,
|
|
417
|
-
children: /* @__PURE__ */ (
|
|
164
|
+
children: /* @__PURE__ */ jsx6(
|
|
418
165
|
SwitchPrimitives.Thumb,
|
|
419
166
|
{
|
|
420
167
|
className: cn(
|
|
@@ -427,10 +174,10 @@ var Switch = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
427
174
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
428
175
|
|
|
429
176
|
// src/components/ui/slider.tsx
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
var Slider = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
177
|
+
import * as React7 from "react";
|
|
178
|
+
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
179
|
+
import { jsx as jsx7, jsxs } from "react/jsx-runtime";
|
|
180
|
+
var Slider = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
434
181
|
SliderPrimitive.Root,
|
|
435
182
|
{
|
|
436
183
|
ref,
|
|
@@ -440,18 +187,18 @@ var Slider = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
440
187
|
),
|
|
441
188
|
...props,
|
|
442
189
|
children: [
|
|
443
|
-
/* @__PURE__ */ (
|
|
444
|
-
/* @__PURE__ */ (
|
|
190
|
+
/* @__PURE__ */ jsx7(SliderPrimitive.Track, { className: "relative h-2 w-full grow overflow-hidden rounded-full bg-secondary", children: /* @__PURE__ */ jsx7(SliderPrimitive.Range, { className: "absolute h-full bg-primary" }) }),
|
|
191
|
+
/* @__PURE__ */ jsx7(SliderPrimitive.Thumb, { className: "block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50" })
|
|
445
192
|
]
|
|
446
193
|
}
|
|
447
194
|
));
|
|
448
195
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
|
449
196
|
|
|
450
197
|
// src/components/ui/textarea.tsx
|
|
451
|
-
|
|
452
|
-
|
|
198
|
+
import * as React8 from "react";
|
|
199
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
453
200
|
var Textarea = React8.forwardRef(({ className, ...props }, ref) => {
|
|
454
|
-
return /* @__PURE__ */ (
|
|
201
|
+
return /* @__PURE__ */ jsx8(
|
|
455
202
|
"textarea",
|
|
456
203
|
{
|
|
457
204
|
className: cn(
|
|
@@ -466,14 +213,14 @@ var Textarea = React8.forwardRef(({ className, ...props }, ref) => {
|
|
|
466
213
|
Textarea.displayName = "Textarea";
|
|
467
214
|
|
|
468
215
|
// src/components/ui/select.tsx
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
216
|
+
import * as React9 from "react";
|
|
217
|
+
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
218
|
+
import { Check as Check2, ChevronDown, ChevronUp } from "lucide-react";
|
|
219
|
+
import { jsx as jsx9, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
473
220
|
var Select = SelectPrimitive.Root;
|
|
474
221
|
var SelectGroup = SelectPrimitive.Group;
|
|
475
222
|
var SelectValue = SelectPrimitive.Value;
|
|
476
|
-
var SelectTrigger = React9.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (
|
|
223
|
+
var SelectTrigger = React9.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs2(
|
|
477
224
|
SelectPrimitive.Trigger,
|
|
478
225
|
{
|
|
479
226
|
ref,
|
|
@@ -484,12 +231,12 @@ var SelectTrigger = React9.forwardRef(({ className, children, ...props }, ref) =
|
|
|
484
231
|
...props,
|
|
485
232
|
children: [
|
|
486
233
|
children,
|
|
487
|
-
/* @__PURE__ */ (
|
|
234
|
+
/* @__PURE__ */ jsx9(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx9(ChevronDown, { className: "h-4 w-4 opacity-50" }) })
|
|
488
235
|
]
|
|
489
236
|
}
|
|
490
237
|
));
|
|
491
238
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
492
|
-
var SelectScrollUpButton = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
239
|
+
var SelectScrollUpButton = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
|
|
493
240
|
SelectPrimitive.ScrollUpButton,
|
|
494
241
|
{
|
|
495
242
|
ref,
|
|
@@ -498,11 +245,11 @@ var SelectScrollUpButton = React9.forwardRef(({ className, ...props }, ref) => /
|
|
|
498
245
|
className
|
|
499
246
|
),
|
|
500
247
|
...props,
|
|
501
|
-
children: /* @__PURE__ */ (
|
|
248
|
+
children: /* @__PURE__ */ jsx9(ChevronUp, { className: "h-4 w-4" })
|
|
502
249
|
}
|
|
503
250
|
));
|
|
504
251
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
505
|
-
var SelectScrollDownButton = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
252
|
+
var SelectScrollDownButton = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
|
|
506
253
|
SelectPrimitive.ScrollDownButton,
|
|
507
254
|
{
|
|
508
255
|
ref,
|
|
@@ -511,11 +258,11 @@ var SelectScrollDownButton = React9.forwardRef(({ className, ...props }, ref) =>
|
|
|
511
258
|
className
|
|
512
259
|
),
|
|
513
260
|
...props,
|
|
514
|
-
children: /* @__PURE__ */ (
|
|
261
|
+
children: /* @__PURE__ */ jsx9(ChevronDown, { className: "h-4 w-4" })
|
|
515
262
|
}
|
|
516
263
|
));
|
|
517
264
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
518
|
-
var SelectContent = React9.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (
|
|
265
|
+
var SelectContent = React9.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx9(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs2(
|
|
519
266
|
SelectPrimitive.Content,
|
|
520
267
|
{
|
|
521
268
|
ref,
|
|
@@ -527,8 +274,8 @@ var SelectContent = React9.forwardRef(({ className, children, position = "popper
|
|
|
527
274
|
position,
|
|
528
275
|
...props,
|
|
529
276
|
children: [
|
|
530
|
-
/* @__PURE__ */ (
|
|
531
|
-
/* @__PURE__ */ (
|
|
277
|
+
/* @__PURE__ */ jsx9(SelectScrollUpButton, {}),
|
|
278
|
+
/* @__PURE__ */ jsx9(
|
|
532
279
|
SelectPrimitive.Viewport,
|
|
533
280
|
{
|
|
534
281
|
className: cn(
|
|
@@ -538,12 +285,12 @@ var SelectContent = React9.forwardRef(({ className, children, position = "popper
|
|
|
538
285
|
children
|
|
539
286
|
}
|
|
540
287
|
),
|
|
541
|
-
/* @__PURE__ */ (
|
|
288
|
+
/* @__PURE__ */ jsx9(SelectScrollDownButton, {})
|
|
542
289
|
]
|
|
543
290
|
}
|
|
544
291
|
) }));
|
|
545
292
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
546
|
-
var SelectLabel = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
293
|
+
var SelectLabel = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
|
|
547
294
|
SelectPrimitive.Label,
|
|
548
295
|
{
|
|
549
296
|
ref,
|
|
@@ -552,7 +299,7 @@ var SelectLabel = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
552
299
|
}
|
|
553
300
|
));
|
|
554
301
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
555
|
-
var SelectItem = React9.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (
|
|
302
|
+
var SelectItem = React9.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs2(
|
|
556
303
|
SelectPrimitive.Item,
|
|
557
304
|
{
|
|
558
305
|
ref,
|
|
@@ -562,13 +309,13 @@ var SelectItem = React9.forwardRef(({ className, children, ...props }, ref) => /
|
|
|
562
309
|
),
|
|
563
310
|
...props,
|
|
564
311
|
children: [
|
|
565
|
-
/* @__PURE__ */ (
|
|
566
|
-
/* @__PURE__ */ (
|
|
312
|
+
/* @__PURE__ */ jsx9("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx9(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx9(Check2, { className: "h-4 w-4" }) }) }),
|
|
313
|
+
/* @__PURE__ */ jsx9(SelectPrimitive.ItemText, { children })
|
|
567
314
|
]
|
|
568
315
|
}
|
|
569
316
|
));
|
|
570
317
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
571
|
-
var SelectSeparator = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
318
|
+
var SelectSeparator = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
|
|
572
319
|
SelectPrimitive.Separator,
|
|
573
320
|
{
|
|
574
321
|
ref,
|
|
@@ -579,12 +326,12 @@ var SelectSeparator = React9.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
579
326
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
580
327
|
|
|
581
328
|
// src/components/ui/input-otp.tsx
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
var InputOTP = React10.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ (
|
|
587
|
-
|
|
329
|
+
import * as React10 from "react";
|
|
330
|
+
import { OTPInput, OTPInputContext } from "input-otp";
|
|
331
|
+
import { Dot } from "lucide-react";
|
|
332
|
+
import { jsx as jsx10, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
333
|
+
var InputOTP = React10.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx10(
|
|
334
|
+
OTPInput,
|
|
588
335
|
{
|
|
589
336
|
ref,
|
|
590
337
|
containerClassName: cn(
|
|
@@ -596,12 +343,12 @@ var InputOTP = React10.forwardRef(({ className, containerClassName, ...props },
|
|
|
596
343
|
}
|
|
597
344
|
));
|
|
598
345
|
InputOTP.displayName = "InputOTP";
|
|
599
|
-
var InputOTPGroup = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
346
|
+
var InputOTPGroup = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx10("div", { ref, className: cn("flex items-center", className), ...props }));
|
|
600
347
|
InputOTPGroup.displayName = "InputOTPGroup";
|
|
601
348
|
var InputOTPSlot = React10.forwardRef(({ index, className, ...props }, ref) => {
|
|
602
|
-
const inputOTPContext = React10.useContext(
|
|
349
|
+
const inputOTPContext = React10.useContext(OTPInputContext);
|
|
603
350
|
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
|
|
604
|
-
return /* @__PURE__ */ (
|
|
351
|
+
return /* @__PURE__ */ jsxs3(
|
|
605
352
|
"div",
|
|
606
353
|
{
|
|
607
354
|
ref,
|
|
@@ -613,31 +360,35 @@ var InputOTPSlot = React10.forwardRef(({ index, className, ...props }, ref) => {
|
|
|
613
360
|
...props,
|
|
614
361
|
children: [
|
|
615
362
|
char,
|
|
616
|
-
hasFakeCaret && /* @__PURE__ */ (
|
|
363
|
+
hasFakeCaret && /* @__PURE__ */ jsx10("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx10("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) })
|
|
617
364
|
]
|
|
618
365
|
}
|
|
619
366
|
);
|
|
620
367
|
});
|
|
621
368
|
InputOTPSlot.displayName = "InputOTPSlot";
|
|
622
|
-
var InputOTPSeparator = React10.forwardRef(({ ...props }, ref) => /* @__PURE__ */ (
|
|
369
|
+
var InputOTPSeparator = React10.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx10("div", { ref, role: "separator", ...props, children: /* @__PURE__ */ jsx10(Dot, {}) }));
|
|
623
370
|
InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
624
371
|
|
|
625
372
|
// src/components/ui/form.tsx
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
373
|
+
import * as React11 from "react";
|
|
374
|
+
import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
375
|
+
import {
|
|
376
|
+
Controller,
|
|
377
|
+
FormProvider,
|
|
378
|
+
useFormContext
|
|
379
|
+
} from "react-hook-form";
|
|
380
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
381
|
+
var Form = FormProvider;
|
|
631
382
|
var FormFieldContext = React11.createContext(null);
|
|
632
383
|
var FormField = ({
|
|
633
384
|
...props
|
|
634
385
|
}) => {
|
|
635
|
-
return /* @__PURE__ */ (
|
|
386
|
+
return /* @__PURE__ */ jsx11(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx11(Controller, { ...props }) });
|
|
636
387
|
};
|
|
637
388
|
var useFormField = () => {
|
|
638
389
|
const fieldContext = React11.useContext(FormFieldContext);
|
|
639
390
|
const itemContext = React11.useContext(FormItemContext);
|
|
640
|
-
const { getFieldState, formState } =
|
|
391
|
+
const { getFieldState, formState } = useFormContext();
|
|
641
392
|
if (!fieldContext) {
|
|
642
393
|
throw new Error("useFormField should be used within <FormField>");
|
|
643
394
|
}
|
|
@@ -658,12 +409,12 @@ var useFormField = () => {
|
|
|
658
409
|
var FormItemContext = React11.createContext(null);
|
|
659
410
|
var FormItem = React11.forwardRef(({ className, ...props }, ref) => {
|
|
660
411
|
const id = React11.useId();
|
|
661
|
-
return /* @__PURE__ */ (
|
|
412
|
+
return /* @__PURE__ */ jsx11(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx11("div", { ref, className: cn("space-y-2", className), ...props }) });
|
|
662
413
|
});
|
|
663
414
|
FormItem.displayName = "FormItem";
|
|
664
415
|
var FormLabel = React11.forwardRef(({ className, ...props }, ref) => {
|
|
665
416
|
const { error, formItemId } = useFormField();
|
|
666
|
-
return /* @__PURE__ */ (
|
|
417
|
+
return /* @__PURE__ */ jsx11(
|
|
667
418
|
Label,
|
|
668
419
|
{
|
|
669
420
|
ref,
|
|
@@ -676,8 +427,8 @@ var FormLabel = React11.forwardRef(({ className, ...props }, ref) => {
|
|
|
676
427
|
FormLabel.displayName = "FormLabel";
|
|
677
428
|
var FormControl = React11.forwardRef(({ ...props }, ref) => {
|
|
678
429
|
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
679
|
-
return /* @__PURE__ */ (
|
|
680
|
-
|
|
430
|
+
return /* @__PURE__ */ jsx11(
|
|
431
|
+
Slot2,
|
|
681
432
|
{
|
|
682
433
|
ref,
|
|
683
434
|
id: formItemId,
|
|
@@ -690,7 +441,7 @@ var FormControl = React11.forwardRef(({ ...props }, ref) => {
|
|
|
690
441
|
FormControl.displayName = "FormControl";
|
|
691
442
|
var FormDescription = React11.forwardRef(({ className, ...props }, ref) => {
|
|
692
443
|
const { formDescriptionId } = useFormField();
|
|
693
|
-
return /* @__PURE__ */ (
|
|
444
|
+
return /* @__PURE__ */ jsx11(
|
|
694
445
|
"p",
|
|
695
446
|
{
|
|
696
447
|
ref,
|
|
@@ -707,7 +458,7 @@ var FormMessage = React11.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
707
458
|
if (!body) {
|
|
708
459
|
return null;
|
|
709
460
|
}
|
|
710
|
-
return /* @__PURE__ */ (
|
|
461
|
+
return /* @__PURE__ */ jsx11(
|
|
711
462
|
"p",
|
|
712
463
|
{
|
|
713
464
|
ref,
|
|
@@ -721,9 +472,9 @@ var FormMessage = React11.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
721
472
|
FormMessage.displayName = "FormMessage";
|
|
722
473
|
|
|
723
474
|
// src/components/ui/card.tsx
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
var Card = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
475
|
+
import * as React12 from "react";
|
|
476
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
477
|
+
var Card = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(
|
|
727
478
|
"div",
|
|
728
479
|
{
|
|
729
480
|
ref,
|
|
@@ -735,7 +486,7 @@ var Card = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
735
486
|
}
|
|
736
487
|
));
|
|
737
488
|
Card.displayName = "Card";
|
|
738
|
-
var CardHeader = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
489
|
+
var CardHeader = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(
|
|
739
490
|
"div",
|
|
740
491
|
{
|
|
741
492
|
ref,
|
|
@@ -744,7 +495,7 @@ var CardHeader = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
744
495
|
}
|
|
745
496
|
));
|
|
746
497
|
CardHeader.displayName = "CardHeader";
|
|
747
|
-
var CardTitle = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
498
|
+
var CardTitle = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(
|
|
748
499
|
"div",
|
|
749
500
|
{
|
|
750
501
|
ref,
|
|
@@ -756,7 +507,7 @@ var CardTitle = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
756
507
|
}
|
|
757
508
|
));
|
|
758
509
|
CardTitle.displayName = "CardTitle";
|
|
759
|
-
var CardDescription = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
510
|
+
var CardDescription = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(
|
|
760
511
|
"div",
|
|
761
512
|
{
|
|
762
513
|
ref,
|
|
@@ -765,9 +516,9 @@ var CardDescription = React12.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
765
516
|
}
|
|
766
517
|
));
|
|
767
518
|
CardDescription.displayName = "CardDescription";
|
|
768
|
-
var CardContent = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
519
|
+
var CardContent = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12("div", { ref, className: cn("p-6 pt-0", className), ...props }));
|
|
769
520
|
CardContent.displayName = "CardContent";
|
|
770
|
-
var CardFooter = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
521
|
+
var CardFooter = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(
|
|
771
522
|
"div",
|
|
772
523
|
{
|
|
773
524
|
ref,
|
|
@@ -778,11 +529,11 @@ var CardFooter = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
778
529
|
CardFooter.displayName = "CardFooter";
|
|
779
530
|
|
|
780
531
|
// src/components/ui/separator.tsx
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
532
|
+
import * as React13 from "react";
|
|
533
|
+
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
534
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
784
535
|
var Separator2 = React13.forwardRef(
|
|
785
|
-
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ (
|
|
536
|
+
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx13(
|
|
786
537
|
SeparatorPrimitive.Root,
|
|
787
538
|
{
|
|
788
539
|
ref,
|
|
@@ -800,24 +551,24 @@ var Separator2 = React13.forwardRef(
|
|
|
800
551
|
Separator2.displayName = SeparatorPrimitive.Root.displayName;
|
|
801
552
|
|
|
802
553
|
// src/components/ui/scroll-area.tsx
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
var ScrollArea = React14.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (
|
|
554
|
+
import * as React14 from "react";
|
|
555
|
+
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
556
|
+
import { jsx as jsx14, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
557
|
+
var ScrollArea = React14.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs4(
|
|
807
558
|
ScrollAreaPrimitive.Root,
|
|
808
559
|
{
|
|
809
560
|
ref,
|
|
810
561
|
className: cn("relative overflow-hidden", className),
|
|
811
562
|
...props,
|
|
812
563
|
children: [
|
|
813
|
-
/* @__PURE__ */ (
|
|
814
|
-
/* @__PURE__ */ (
|
|
815
|
-
/* @__PURE__ */ (
|
|
564
|
+
/* @__PURE__ */ jsx14(ScrollAreaPrimitive.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
|
|
565
|
+
/* @__PURE__ */ jsx14(ScrollBar, {}),
|
|
566
|
+
/* @__PURE__ */ jsx14(ScrollAreaPrimitive.Corner, {})
|
|
816
567
|
]
|
|
817
568
|
}
|
|
818
569
|
));
|
|
819
570
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
820
|
-
var ScrollBar = React14.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ (
|
|
571
|
+
var ScrollBar = React14.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx14(
|
|
821
572
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
822
573
|
{
|
|
823
574
|
ref,
|
|
@@ -829,23 +580,23 @@ var ScrollBar = React14.forwardRef(({ className, orientation = "vertical", ...pr
|
|
|
829
580
|
className
|
|
830
581
|
),
|
|
831
582
|
...props,
|
|
832
|
-
children: /* @__PURE__ */ (
|
|
583
|
+
children: /* @__PURE__ */ jsx14(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
833
584
|
}
|
|
834
585
|
));
|
|
835
586
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
836
587
|
|
|
837
588
|
// src/components/ui/aspect-ratio.tsx
|
|
838
|
-
|
|
589
|
+
import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio";
|
|
839
590
|
var AspectRatio = AspectRatioPrimitive.Root;
|
|
840
591
|
|
|
841
592
|
// src/components/ui/resizable.tsx
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
593
|
+
import { GripVertical } from "lucide-react";
|
|
594
|
+
import * as ResizablePrimitive from "react-resizable-panels";
|
|
595
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
845
596
|
var ResizablePanelGroup = ({
|
|
846
597
|
className,
|
|
847
598
|
...props
|
|
848
|
-
}) => /* @__PURE__ */ (
|
|
599
|
+
}) => /* @__PURE__ */ jsx15(
|
|
849
600
|
ResizablePrimitive.Group,
|
|
850
601
|
{
|
|
851
602
|
className: cn(
|
|
@@ -858,11 +609,11 @@ var ResizablePanelGroup = ({
|
|
|
858
609
|
var ResizablePanel = ResizablePrimitive.Panel;
|
|
859
610
|
|
|
860
611
|
// src/components/ui/tabs.tsx
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
612
|
+
import * as React15 from "react";
|
|
613
|
+
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
614
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
864
615
|
var Tabs = TabsPrimitive.Root;
|
|
865
|
-
var TabsList = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
616
|
+
var TabsList = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
866
617
|
TabsPrimitive.List,
|
|
867
618
|
{
|
|
868
619
|
ref,
|
|
@@ -874,7 +625,7 @@ var TabsList = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
874
625
|
}
|
|
875
626
|
));
|
|
876
627
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
877
|
-
var TabsTrigger = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
628
|
+
var TabsTrigger = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
878
629
|
TabsPrimitive.Trigger,
|
|
879
630
|
{
|
|
880
631
|
ref,
|
|
@@ -886,7 +637,7 @@ var TabsTrigger = React15.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
886
637
|
}
|
|
887
638
|
));
|
|
888
639
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
889
|
-
var TabsContent = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
640
|
+
var TabsContent = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
890
641
|
TabsPrimitive.Content,
|
|
891
642
|
{
|
|
892
643
|
ref,
|
|
@@ -900,12 +651,12 @@ var TabsContent = React15.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
900
651
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
901
652
|
|
|
902
653
|
// src/components/ui/accordion.tsx
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
654
|
+
import * as React16 from "react";
|
|
655
|
+
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
656
|
+
import { ChevronDown as ChevronDown2 } from "lucide-react";
|
|
657
|
+
import { jsx as jsx17, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
907
658
|
var Accordion = AccordionPrimitive.Root;
|
|
908
|
-
var AccordionItem = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
659
|
+
var AccordionItem = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx17(
|
|
909
660
|
AccordionPrimitive.Item,
|
|
910
661
|
{
|
|
911
662
|
ref,
|
|
@@ -914,7 +665,7 @@ var AccordionItem = React16.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
914
665
|
}
|
|
915
666
|
));
|
|
916
667
|
AccordionItem.displayName = "AccordionItem";
|
|
917
|
-
var AccordionTrigger = React16.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (
|
|
668
|
+
var AccordionTrigger = React16.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx17(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs5(
|
|
918
669
|
AccordionPrimitive.Trigger,
|
|
919
670
|
{
|
|
920
671
|
ref,
|
|
@@ -925,38 +676,38 @@ var AccordionTrigger = React16.forwardRef(({ className, children, ...props }, re
|
|
|
925
676
|
...props,
|
|
926
677
|
children: [
|
|
927
678
|
children,
|
|
928
|
-
/* @__PURE__ */ (
|
|
679
|
+
/* @__PURE__ */ jsx17(ChevronDown2, { className: "h-4 w-4 shrink-0 transition-transform duration-200" })
|
|
929
680
|
]
|
|
930
681
|
}
|
|
931
682
|
) }));
|
|
932
683
|
AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
|
|
933
|
-
var AccordionContent = React16.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (
|
|
684
|
+
var AccordionContent = React16.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx17(
|
|
934
685
|
AccordionPrimitive.Content,
|
|
935
686
|
{
|
|
936
687
|
ref,
|
|
937
688
|
className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
938
689
|
...props,
|
|
939
|
-
children: /* @__PURE__ */ (
|
|
690
|
+
children: /* @__PURE__ */ jsx17("div", { className: cn("pb-4 pt-0", className), children })
|
|
940
691
|
}
|
|
941
692
|
));
|
|
942
693
|
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
|
943
694
|
|
|
944
695
|
// src/components/ui/collapsible.tsx
|
|
945
|
-
|
|
696
|
+
import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
|
|
946
697
|
var Collapsible = CollapsiblePrimitive.Root;
|
|
947
698
|
var CollapsibleTrigger2 = CollapsiblePrimitive.CollapsibleTrigger;
|
|
948
699
|
var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
|
|
949
700
|
|
|
950
701
|
// src/components/ui/dialog.tsx
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
702
|
+
import * as React17 from "react";
|
|
703
|
+
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
704
|
+
import { X } from "lucide-react";
|
|
705
|
+
import { jsx as jsx18, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
955
706
|
var Dialog = DialogPrimitive.Root;
|
|
956
707
|
var DialogTrigger = DialogPrimitive.Trigger;
|
|
957
708
|
var DialogPortal = DialogPrimitive.Portal;
|
|
958
709
|
var DialogClose = DialogPrimitive.Close;
|
|
959
|
-
var DialogOverlay = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
710
|
+
var DialogOverlay = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx18(
|
|
960
711
|
DialogPrimitive.Overlay,
|
|
961
712
|
{
|
|
962
713
|
ref,
|
|
@@ -968,9 +719,9 @@ var DialogOverlay = React17.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
968
719
|
}
|
|
969
720
|
));
|
|
970
721
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
971
|
-
var DialogContent = React17.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (
|
|
972
|
-
/* @__PURE__ */ (
|
|
973
|
-
/* @__PURE__ */ (
|
|
722
|
+
var DialogContent = React17.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs6(DialogPortal, { children: [
|
|
723
|
+
/* @__PURE__ */ jsx18(DialogOverlay, {}),
|
|
724
|
+
/* @__PURE__ */ jsxs6(
|
|
974
725
|
DialogPrimitive.Content,
|
|
975
726
|
{
|
|
976
727
|
ref,
|
|
@@ -981,9 +732,9 @@ var DialogContent = React17.forwardRef(({ className, children, ...props }, ref)
|
|
|
981
732
|
...props,
|
|
982
733
|
children: [
|
|
983
734
|
children,
|
|
984
|
-
/* @__PURE__ */ (
|
|
985
|
-
/* @__PURE__ */ (
|
|
986
|
-
/* @__PURE__ */ (
|
|
735
|
+
/* @__PURE__ */ jsxs6(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
|
736
|
+
/* @__PURE__ */ jsx18(X, { className: "h-4 w-4" }),
|
|
737
|
+
/* @__PURE__ */ jsx18("span", { className: "sr-only", children: "Close" })
|
|
987
738
|
] })
|
|
988
739
|
]
|
|
989
740
|
}
|
|
@@ -993,7 +744,7 @@ DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
|
993
744
|
var DialogHeader = ({
|
|
994
745
|
className,
|
|
995
746
|
...props
|
|
996
|
-
}) => /* @__PURE__ */ (
|
|
747
|
+
}) => /* @__PURE__ */ jsx18(
|
|
997
748
|
"div",
|
|
998
749
|
{
|
|
999
750
|
className: cn(
|
|
@@ -1007,7 +758,7 @@ DialogHeader.displayName = "DialogHeader";
|
|
|
1007
758
|
var DialogFooter = ({
|
|
1008
759
|
className,
|
|
1009
760
|
...props
|
|
1010
|
-
}) => /* @__PURE__ */ (
|
|
761
|
+
}) => /* @__PURE__ */ jsx18(
|
|
1011
762
|
"div",
|
|
1012
763
|
{
|
|
1013
764
|
className: cn(
|
|
@@ -1018,7 +769,7 @@ var DialogFooter = ({
|
|
|
1018
769
|
}
|
|
1019
770
|
);
|
|
1020
771
|
DialogFooter.displayName = "DialogFooter";
|
|
1021
|
-
var DialogTitle = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
772
|
+
var DialogTitle = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx18(
|
|
1022
773
|
DialogPrimitive.Title,
|
|
1023
774
|
{
|
|
1024
775
|
ref,
|
|
@@ -1030,7 +781,7 @@ var DialogTitle = React17.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1030
781
|
}
|
|
1031
782
|
));
|
|
1032
783
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
1033
|
-
var DialogDescription = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
784
|
+
var DialogDescription = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx18(
|
|
1034
785
|
DialogPrimitive.Description,
|
|
1035
786
|
{
|
|
1036
787
|
ref,
|
|
@@ -1041,16 +792,16 @@ var DialogDescription = React17.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1041
792
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
1042
793
|
|
|
1043
794
|
// src/components/ui/sheet.tsx
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
795
|
+
import * as React18 from "react";
|
|
796
|
+
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
797
|
+
import { cva as cva3 } from "class-variance-authority";
|
|
798
|
+
import { X as X2 } from "lucide-react";
|
|
799
|
+
import { jsx as jsx19, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1049
800
|
var Sheet = SheetPrimitive.Root;
|
|
1050
801
|
var SheetTrigger = SheetPrimitive.Trigger;
|
|
1051
802
|
var SheetClose = SheetPrimitive.Close;
|
|
1052
803
|
var SheetPortal = SheetPrimitive.Portal;
|
|
1053
|
-
var SheetOverlay = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
804
|
+
var SheetOverlay = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
1054
805
|
SheetPrimitive.Overlay,
|
|
1055
806
|
{
|
|
1056
807
|
className: cn(
|
|
@@ -1062,7 +813,7 @@ var SheetOverlay = React18.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1062
813
|
}
|
|
1063
814
|
));
|
|
1064
815
|
SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
|
|
1065
|
-
var sheetVariants = (
|
|
816
|
+
var sheetVariants = cva3(
|
|
1066
817
|
"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",
|
|
1067
818
|
{
|
|
1068
819
|
variants: {
|
|
@@ -1078,9 +829,9 @@ var sheetVariants = (0, import_class_variance_authority3.cva)(
|
|
|
1078
829
|
}
|
|
1079
830
|
}
|
|
1080
831
|
);
|
|
1081
|
-
var SheetContent = React18.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ (
|
|
1082
|
-
/* @__PURE__ */ (
|
|
1083
|
-
/* @__PURE__ */ (
|
|
832
|
+
var SheetContent = React18.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxs7(SheetPortal, { children: [
|
|
833
|
+
/* @__PURE__ */ jsx19(SheetOverlay, {}),
|
|
834
|
+
/* @__PURE__ */ jsxs7(
|
|
1084
835
|
SheetPrimitive.Content,
|
|
1085
836
|
{
|
|
1086
837
|
ref,
|
|
@@ -1088,9 +839,9 @@ var SheetContent = React18.forwardRef(({ side = "right", className, children, ..
|
|
|
1088
839
|
...props,
|
|
1089
840
|
children: [
|
|
1090
841
|
children,
|
|
1091
|
-
/* @__PURE__ */ (
|
|
1092
|
-
/* @__PURE__ */ (
|
|
1093
|
-
/* @__PURE__ */ (
|
|
842
|
+
/* @__PURE__ */ jsxs7(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
|
|
843
|
+
/* @__PURE__ */ jsx19(X2, { className: "h-4 w-4" }),
|
|
844
|
+
/* @__PURE__ */ jsx19("span", { className: "sr-only", children: "Close" })
|
|
1094
845
|
] })
|
|
1095
846
|
]
|
|
1096
847
|
}
|
|
@@ -1100,7 +851,7 @@ SheetContent.displayName = SheetPrimitive.Content.displayName;
|
|
|
1100
851
|
var SheetHeader = ({
|
|
1101
852
|
className,
|
|
1102
853
|
...props
|
|
1103
|
-
}) => /* @__PURE__ */ (
|
|
854
|
+
}) => /* @__PURE__ */ jsx19(
|
|
1104
855
|
"div",
|
|
1105
856
|
{
|
|
1106
857
|
className: cn(
|
|
@@ -1114,7 +865,7 @@ SheetHeader.displayName = "SheetHeader";
|
|
|
1114
865
|
var SheetFooter = ({
|
|
1115
866
|
className,
|
|
1116
867
|
...props
|
|
1117
|
-
}) => /* @__PURE__ */ (
|
|
868
|
+
}) => /* @__PURE__ */ jsx19(
|
|
1118
869
|
"div",
|
|
1119
870
|
{
|
|
1120
871
|
className: cn(
|
|
@@ -1125,7 +876,7 @@ var SheetFooter = ({
|
|
|
1125
876
|
}
|
|
1126
877
|
);
|
|
1127
878
|
SheetFooter.displayName = "SheetFooter";
|
|
1128
|
-
var SheetTitle = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
879
|
+
var SheetTitle = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
1129
880
|
SheetPrimitive.Title,
|
|
1130
881
|
{
|
|
1131
882
|
ref,
|
|
@@ -1134,7 +885,7 @@ var SheetTitle = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1134
885
|
}
|
|
1135
886
|
));
|
|
1136
887
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
1137
|
-
var SheetDescription = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
888
|
+
var SheetDescription = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
1138
889
|
SheetPrimitive.Description,
|
|
1139
890
|
{
|
|
1140
891
|
ref,
|
|
@@ -1145,36 +896,36 @@ var SheetDescription = React18.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1145
896
|
SheetDescription.displayName = SheetPrimitive.Description.displayName;
|
|
1146
897
|
|
|
1147
898
|
// src/components/ui/drawer.tsx
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
899
|
+
import * as React19 from "react";
|
|
900
|
+
import { Drawer as DrawerPrimitive } from "vaul";
|
|
901
|
+
import { jsx as jsx20, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1151
902
|
var Drawer = ({
|
|
1152
903
|
shouldScaleBackground = true,
|
|
1153
904
|
...props
|
|
1154
|
-
}) => /* @__PURE__ */ (
|
|
1155
|
-
|
|
905
|
+
}) => /* @__PURE__ */ jsx20(
|
|
906
|
+
DrawerPrimitive.Root,
|
|
1156
907
|
{
|
|
1157
908
|
shouldScaleBackground,
|
|
1158
909
|
...props
|
|
1159
910
|
}
|
|
1160
911
|
);
|
|
1161
912
|
Drawer.displayName = "Drawer";
|
|
1162
|
-
var DrawerTrigger =
|
|
1163
|
-
var DrawerPortal =
|
|
1164
|
-
var DrawerClose =
|
|
1165
|
-
var DrawerOverlay = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
1166
|
-
|
|
913
|
+
var DrawerTrigger = DrawerPrimitive.Trigger;
|
|
914
|
+
var DrawerPortal = DrawerPrimitive.Portal;
|
|
915
|
+
var DrawerClose = DrawerPrimitive.Close;
|
|
916
|
+
var DrawerOverlay = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
|
|
917
|
+
DrawerPrimitive.Overlay,
|
|
1167
918
|
{
|
|
1168
919
|
ref,
|
|
1169
920
|
className: cn("fixed inset-0 z-50 bg-black/80", className),
|
|
1170
921
|
...props
|
|
1171
922
|
}
|
|
1172
923
|
));
|
|
1173
|
-
DrawerOverlay.displayName =
|
|
1174
|
-
var DrawerContent = React19.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (
|
|
1175
|
-
/* @__PURE__ */ (
|
|
1176
|
-
/* @__PURE__ */ (
|
|
1177
|
-
|
|
924
|
+
DrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName;
|
|
925
|
+
var DrawerContent = React19.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs8(DrawerPortal, { children: [
|
|
926
|
+
/* @__PURE__ */ jsx20(DrawerOverlay, {}),
|
|
927
|
+
/* @__PURE__ */ jsxs8(
|
|
928
|
+
DrawerPrimitive.Content,
|
|
1178
929
|
{
|
|
1179
930
|
ref,
|
|
1180
931
|
className: cn(
|
|
@@ -1183,7 +934,7 @@ var DrawerContent = React19.forwardRef(({ className, children, ...props }, ref)
|
|
|
1183
934
|
),
|
|
1184
935
|
...props,
|
|
1185
936
|
children: [
|
|
1186
|
-
/* @__PURE__ */ (
|
|
937
|
+
/* @__PURE__ */ jsx20("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
|
|
1187
938
|
children
|
|
1188
939
|
]
|
|
1189
940
|
}
|
|
@@ -1193,7 +944,7 @@ DrawerContent.displayName = "DrawerContent";
|
|
|
1193
944
|
var DrawerHeader = ({
|
|
1194
945
|
className,
|
|
1195
946
|
...props
|
|
1196
|
-
}) => /* @__PURE__ */ (
|
|
947
|
+
}) => /* @__PURE__ */ jsx20(
|
|
1197
948
|
"div",
|
|
1198
949
|
{
|
|
1199
950
|
className: cn("grid gap-1.5 p-4 text-center sm:text-left", className),
|
|
@@ -1204,7 +955,7 @@ DrawerHeader.displayName = "DrawerHeader";
|
|
|
1204
955
|
var DrawerFooter = ({
|
|
1205
956
|
className,
|
|
1206
957
|
...props
|
|
1207
|
-
}) => /* @__PURE__ */ (
|
|
958
|
+
}) => /* @__PURE__ */ jsx20(
|
|
1208
959
|
"div",
|
|
1209
960
|
{
|
|
1210
961
|
className: cn("mt-auto flex flex-col gap-2 p-4", className),
|
|
@@ -1212,8 +963,8 @@ var DrawerFooter = ({
|
|
|
1212
963
|
}
|
|
1213
964
|
);
|
|
1214
965
|
DrawerFooter.displayName = "DrawerFooter";
|
|
1215
|
-
var DrawerTitle = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
1216
|
-
|
|
966
|
+
var DrawerTitle = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
|
|
967
|
+
DrawerPrimitive.Title,
|
|
1217
968
|
{
|
|
1218
969
|
ref,
|
|
1219
970
|
className: cn(
|
|
@@ -1223,25 +974,25 @@ var DrawerTitle = React19.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1223
974
|
...props
|
|
1224
975
|
}
|
|
1225
976
|
));
|
|
1226
|
-
DrawerTitle.displayName =
|
|
1227
|
-
var DrawerDescription = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
1228
|
-
|
|
977
|
+
DrawerTitle.displayName = DrawerPrimitive.Title.displayName;
|
|
978
|
+
var DrawerDescription = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
|
|
979
|
+
DrawerPrimitive.Description,
|
|
1229
980
|
{
|
|
1230
981
|
ref,
|
|
1231
982
|
className: cn("text-sm text-muted-foreground", className),
|
|
1232
983
|
...props
|
|
1233
984
|
}
|
|
1234
985
|
));
|
|
1235
|
-
DrawerDescription.displayName =
|
|
986
|
+
DrawerDescription.displayName = DrawerPrimitive.Description.displayName;
|
|
1236
987
|
|
|
1237
988
|
// src/components/ui/alert-dialog.tsx
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
989
|
+
import * as React20 from "react";
|
|
990
|
+
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
991
|
+
import { jsx as jsx21, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1241
992
|
var AlertDialog = AlertDialogPrimitive.Root;
|
|
1242
993
|
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
1243
994
|
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
1244
|
-
var AlertDialogOverlay = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
995
|
+
var AlertDialogOverlay = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
1245
996
|
AlertDialogPrimitive.Overlay,
|
|
1246
997
|
{
|
|
1247
998
|
className: cn(
|
|
@@ -1253,9 +1004,9 @@ var AlertDialogOverlay = React20.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1253
1004
|
}
|
|
1254
1005
|
));
|
|
1255
1006
|
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
1256
|
-
var AlertDialogContent = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
1257
|
-
/* @__PURE__ */ (
|
|
1258
|
-
/* @__PURE__ */ (
|
|
1007
|
+
var AlertDialogContent = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs9(AlertDialogPortal, { children: [
|
|
1008
|
+
/* @__PURE__ */ jsx21(AlertDialogOverlay, {}),
|
|
1009
|
+
/* @__PURE__ */ jsx21(
|
|
1259
1010
|
AlertDialogPrimitive.Content,
|
|
1260
1011
|
{
|
|
1261
1012
|
ref,
|
|
@@ -1271,7 +1022,7 @@ AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
|
|
|
1271
1022
|
var AlertDialogHeader = ({
|
|
1272
1023
|
className,
|
|
1273
1024
|
...props
|
|
1274
|
-
}) => /* @__PURE__ */ (
|
|
1025
|
+
}) => /* @__PURE__ */ jsx21(
|
|
1275
1026
|
"div",
|
|
1276
1027
|
{
|
|
1277
1028
|
className: cn(
|
|
@@ -1285,7 +1036,7 @@ AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
|
1285
1036
|
var AlertDialogFooter = ({
|
|
1286
1037
|
className,
|
|
1287
1038
|
...props
|
|
1288
|
-
}) => /* @__PURE__ */ (
|
|
1039
|
+
}) => /* @__PURE__ */ jsx21(
|
|
1289
1040
|
"div",
|
|
1290
1041
|
{
|
|
1291
1042
|
className: cn(
|
|
@@ -1296,7 +1047,7 @@ var AlertDialogFooter = ({
|
|
|
1296
1047
|
}
|
|
1297
1048
|
);
|
|
1298
1049
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
1299
|
-
var AlertDialogTitle = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
1050
|
+
var AlertDialogTitle = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
1300
1051
|
AlertDialogPrimitive.Title,
|
|
1301
1052
|
{
|
|
1302
1053
|
ref,
|
|
@@ -1305,7 +1056,7 @@ var AlertDialogTitle = React20.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1305
1056
|
}
|
|
1306
1057
|
));
|
|
1307
1058
|
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
1308
|
-
var AlertDialogDescription = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
1059
|
+
var AlertDialogDescription = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
1309
1060
|
AlertDialogPrimitive.Description,
|
|
1310
1061
|
{
|
|
1311
1062
|
ref,
|
|
@@ -1314,7 +1065,7 @@ var AlertDialogDescription = React20.forwardRef(({ className, ...props }, ref) =
|
|
|
1314
1065
|
}
|
|
1315
1066
|
));
|
|
1316
1067
|
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
|
1317
|
-
var AlertDialogAction = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
1068
|
+
var AlertDialogAction = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
1318
1069
|
AlertDialogPrimitive.Action,
|
|
1319
1070
|
{
|
|
1320
1071
|
ref,
|
|
@@ -1323,7 +1074,7 @@ var AlertDialogAction = React20.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1323
1074
|
}
|
|
1324
1075
|
));
|
|
1325
1076
|
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
1326
|
-
var AlertDialogCancel = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
1077
|
+
var AlertDialogCancel = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
1327
1078
|
AlertDialogPrimitive.Cancel,
|
|
1328
1079
|
{
|
|
1329
1080
|
ref,
|
|
@@ -1338,12 +1089,12 @@ var AlertDialogCancel = React20.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1338
1089
|
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
1339
1090
|
|
|
1340
1091
|
// src/components/ui/popover.tsx
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1092
|
+
import * as React21 from "react";
|
|
1093
|
+
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
1094
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
1344
1095
|
var Popover = PopoverPrimitive.Root;
|
|
1345
1096
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
1346
|
-
var PopoverContent = React21.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (
|
|
1097
|
+
var PopoverContent = React21.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx22(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx22(
|
|
1347
1098
|
PopoverPrimitive.Content,
|
|
1348
1099
|
{
|
|
1349
1100
|
ref,
|
|
@@ -1359,12 +1110,12 @@ var PopoverContent = React21.forwardRef(({ className, align = "center", sideOffs
|
|
|
1359
1110
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
1360
1111
|
|
|
1361
1112
|
// src/components/ui/hover-card.tsx
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1113
|
+
import * as React22 from "react";
|
|
1114
|
+
import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
|
|
1115
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
1365
1116
|
var HoverCard = HoverCardPrimitive.Root;
|
|
1366
1117
|
var HoverCardTrigger = HoverCardPrimitive.Trigger;
|
|
1367
|
-
var HoverCardContent = React22.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (
|
|
1118
|
+
var HoverCardContent = React22.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
1368
1119
|
HoverCardPrimitive.Content,
|
|
1369
1120
|
{
|
|
1370
1121
|
ref,
|
|
@@ -1380,13 +1131,13 @@ var HoverCardContent = React22.forwardRef(({ className, align = "center", sideOf
|
|
|
1380
1131
|
HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
|
|
1381
1132
|
|
|
1382
1133
|
// src/components/ui/tooltip.tsx
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1134
|
+
import * as React23 from "react";
|
|
1135
|
+
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
1136
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
1386
1137
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
1387
1138
|
var Tooltip = TooltipPrimitive.Root;
|
|
1388
1139
|
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
1389
|
-
var TooltipContent = React23.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (
|
|
1140
|
+
var TooltipContent = React23.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx24(
|
|
1390
1141
|
TooltipPrimitive.Content,
|
|
1391
1142
|
{
|
|
1392
1143
|
ref,
|
|
@@ -1401,15 +1152,15 @@ var TooltipContent = React23.forwardRef(({ className, sideOffset = 4, ...props }
|
|
|
1401
1152
|
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
1402
1153
|
|
|
1403
1154
|
// src/components/ui/dropdown-menu.tsx
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1155
|
+
import * as React24 from "react";
|
|
1156
|
+
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
1157
|
+
import { Check as Check3, ChevronRight, Circle as Circle2 } from "lucide-react";
|
|
1158
|
+
import { jsx as jsx25, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1408
1159
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
1409
1160
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
1410
1161
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
1411
1162
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
1412
|
-
var DropdownMenuSubTrigger = React24.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (
|
|
1163
|
+
var DropdownMenuSubTrigger = React24.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs10(
|
|
1413
1164
|
DropdownMenuPrimitive.SubTrigger,
|
|
1414
1165
|
{
|
|
1415
1166
|
ref,
|
|
@@ -1421,12 +1172,12 @@ var DropdownMenuSubTrigger = React24.forwardRef(({ className, inset, children, .
|
|
|
1421
1172
|
...props,
|
|
1422
1173
|
children: [
|
|
1423
1174
|
children,
|
|
1424
|
-
/* @__PURE__ */ (
|
|
1175
|
+
/* @__PURE__ */ jsx25(ChevronRight, { className: "ml-auto" })
|
|
1425
1176
|
]
|
|
1426
1177
|
}
|
|
1427
1178
|
));
|
|
1428
1179
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
1429
|
-
var DropdownMenuSubContent = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
1180
|
+
var DropdownMenuSubContent = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25(
|
|
1430
1181
|
DropdownMenuPrimitive.SubContent,
|
|
1431
1182
|
{
|
|
1432
1183
|
ref,
|
|
@@ -1438,7 +1189,7 @@ var DropdownMenuSubContent = React24.forwardRef(({ className, ...props }, ref) =
|
|
|
1438
1189
|
}
|
|
1439
1190
|
));
|
|
1440
1191
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
1441
|
-
var DropdownMenuContent = React24.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (
|
|
1192
|
+
var DropdownMenuContent = React24.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx25(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx25(
|
|
1442
1193
|
DropdownMenuPrimitive.Content,
|
|
1443
1194
|
{
|
|
1444
1195
|
ref,
|
|
@@ -1451,7 +1202,7 @@ var DropdownMenuContent = React24.forwardRef(({ className, sideOffset = 4, ...pr
|
|
|
1451
1202
|
}
|
|
1452
1203
|
) }));
|
|
1453
1204
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
1454
|
-
var DropdownMenuItem = React24.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (
|
|
1205
|
+
var DropdownMenuItem = React24.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx25(
|
|
1455
1206
|
DropdownMenuPrimitive.Item,
|
|
1456
1207
|
{
|
|
1457
1208
|
ref,
|
|
@@ -1464,7 +1215,7 @@ var DropdownMenuItem = React24.forwardRef(({ className, inset, ...props }, ref)
|
|
|
1464
1215
|
}
|
|
1465
1216
|
));
|
|
1466
1217
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
1467
|
-
var DropdownMenuCheckboxItem = React24.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ (
|
|
1218
|
+
var DropdownMenuCheckboxItem = React24.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs10(
|
|
1468
1219
|
DropdownMenuPrimitive.CheckboxItem,
|
|
1469
1220
|
{
|
|
1470
1221
|
ref,
|
|
@@ -1475,13 +1226,13 @@ var DropdownMenuCheckboxItem = React24.forwardRef(({ className, children, checke
|
|
|
1475
1226
|
checked,
|
|
1476
1227
|
...props,
|
|
1477
1228
|
children: [
|
|
1478
|
-
/* @__PURE__ */ (
|
|
1229
|
+
/* @__PURE__ */ jsx25("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx25(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx25(Check3, { className: "h-4 w-4" }) }) }),
|
|
1479
1230
|
children
|
|
1480
1231
|
]
|
|
1481
1232
|
}
|
|
1482
1233
|
));
|
|
1483
1234
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
1484
|
-
var DropdownMenuRadioItem = React24.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (
|
|
1235
|
+
var DropdownMenuRadioItem = React24.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs10(
|
|
1485
1236
|
DropdownMenuPrimitive.RadioItem,
|
|
1486
1237
|
{
|
|
1487
1238
|
ref,
|
|
@@ -1491,13 +1242,13 @@ var DropdownMenuRadioItem = React24.forwardRef(({ className, children, ...props
|
|
|
1491
1242
|
),
|
|
1492
1243
|
...props,
|
|
1493
1244
|
children: [
|
|
1494
|
-
/* @__PURE__ */ (
|
|
1245
|
+
/* @__PURE__ */ jsx25("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx25(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx25(Circle2, { className: "h-2 w-2 fill-current" }) }) }),
|
|
1495
1246
|
children
|
|
1496
1247
|
]
|
|
1497
1248
|
}
|
|
1498
1249
|
));
|
|
1499
1250
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
1500
|
-
var DropdownMenuLabel = React24.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (
|
|
1251
|
+
var DropdownMenuLabel = React24.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx25(
|
|
1501
1252
|
DropdownMenuPrimitive.Label,
|
|
1502
1253
|
{
|
|
1503
1254
|
ref,
|
|
@@ -1510,7 +1261,7 @@ var DropdownMenuLabel = React24.forwardRef(({ className, inset, ...props }, ref)
|
|
|
1510
1261
|
}
|
|
1511
1262
|
));
|
|
1512
1263
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
1513
|
-
var DropdownMenuSeparator = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
1264
|
+
var DropdownMenuSeparator = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25(
|
|
1514
1265
|
DropdownMenuPrimitive.Separator,
|
|
1515
1266
|
{
|
|
1516
1267
|
ref,
|
|
@@ -1523,7 +1274,7 @@ var DropdownMenuShortcut = ({
|
|
|
1523
1274
|
className,
|
|
1524
1275
|
...props
|
|
1525
1276
|
}) => {
|
|
1526
|
-
return /* @__PURE__ */ (
|
|
1277
|
+
return /* @__PURE__ */ jsx25(
|
|
1527
1278
|
"span",
|
|
1528
1279
|
{
|
|
1529
1280
|
className: cn("ml-auto text-xs tracking-widest opacity-60", className),
|
|
@@ -1534,13 +1285,13 @@ var DropdownMenuShortcut = ({
|
|
|
1534
1285
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
1535
1286
|
|
|
1536
1287
|
// src/components/ui/context-menu.tsx
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1288
|
+
import * as React25 from "react";
|
|
1289
|
+
import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
|
|
1290
|
+
import { Check as Check4, ChevronRight as ChevronRight2, Circle as Circle3 } from "lucide-react";
|
|
1291
|
+
import { jsx as jsx26, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1541
1292
|
var ContextMenu = ContextMenuPrimitive.Root;
|
|
1542
1293
|
var ContextMenuTrigger = ContextMenuPrimitive.Trigger;
|
|
1543
|
-
var ContextMenuSubTrigger = React25.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (
|
|
1294
|
+
var ContextMenuSubTrigger = React25.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs11(
|
|
1544
1295
|
ContextMenuPrimitive.SubTrigger,
|
|
1545
1296
|
{
|
|
1546
1297
|
ref,
|
|
@@ -1552,12 +1303,12 @@ var ContextMenuSubTrigger = React25.forwardRef(({ className, inset, children, ..
|
|
|
1552
1303
|
...props,
|
|
1553
1304
|
children: [
|
|
1554
1305
|
children,
|
|
1555
|
-
/* @__PURE__ */ (
|
|
1306
|
+
/* @__PURE__ */ jsx26(ChevronRight2, { className: "ml-auto h-4 w-4" })
|
|
1556
1307
|
]
|
|
1557
1308
|
}
|
|
1558
1309
|
));
|
|
1559
1310
|
ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;
|
|
1560
|
-
var ContextMenuSubContent = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
1311
|
+
var ContextMenuSubContent = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx26(
|
|
1561
1312
|
ContextMenuPrimitive.SubContent,
|
|
1562
1313
|
{
|
|
1563
1314
|
ref,
|
|
@@ -1569,7 +1320,7 @@ var ContextMenuSubContent = React25.forwardRef(({ className, ...props }, ref) =>
|
|
|
1569
1320
|
}
|
|
1570
1321
|
));
|
|
1571
1322
|
ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;
|
|
1572
|
-
var ContextMenuContent = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
1323
|
+
var ContextMenuContent = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx26(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx26(
|
|
1573
1324
|
ContextMenuPrimitive.Content,
|
|
1574
1325
|
{
|
|
1575
1326
|
ref,
|
|
@@ -1581,7 +1332,7 @@ var ContextMenuContent = React25.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1581
1332
|
}
|
|
1582
1333
|
) }));
|
|
1583
1334
|
ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;
|
|
1584
|
-
var ContextMenuItem = React25.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (
|
|
1335
|
+
var ContextMenuItem = React25.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx26(
|
|
1585
1336
|
ContextMenuPrimitive.Item,
|
|
1586
1337
|
{
|
|
1587
1338
|
ref,
|
|
@@ -1594,7 +1345,7 @@ var ContextMenuItem = React25.forwardRef(({ className, inset, ...props }, ref) =
|
|
|
1594
1345
|
}
|
|
1595
1346
|
));
|
|
1596
1347
|
ContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;
|
|
1597
|
-
var ContextMenuCheckboxItem = React25.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ (
|
|
1348
|
+
var ContextMenuCheckboxItem = React25.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs11(
|
|
1598
1349
|
ContextMenuPrimitive.CheckboxItem,
|
|
1599
1350
|
{
|
|
1600
1351
|
ref,
|
|
@@ -1605,13 +1356,13 @@ var ContextMenuCheckboxItem = React25.forwardRef(({ className, children, checked
|
|
|
1605
1356
|
checked,
|
|
1606
1357
|
...props,
|
|
1607
1358
|
children: [
|
|
1608
|
-
/* @__PURE__ */ (
|
|
1359
|
+
/* @__PURE__ */ jsx26("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx26(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx26(Check4, { className: "h-4 w-4" }) }) }),
|
|
1609
1360
|
children
|
|
1610
1361
|
]
|
|
1611
1362
|
}
|
|
1612
1363
|
));
|
|
1613
1364
|
ContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem.displayName;
|
|
1614
|
-
var ContextMenuRadioItem = React25.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (
|
|
1365
|
+
var ContextMenuRadioItem = React25.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs11(
|
|
1615
1366
|
ContextMenuPrimitive.RadioItem,
|
|
1616
1367
|
{
|
|
1617
1368
|
ref,
|
|
@@ -1621,13 +1372,13 @@ var ContextMenuRadioItem = React25.forwardRef(({ className, children, ...props }
|
|
|
1621
1372
|
),
|
|
1622
1373
|
...props,
|
|
1623
1374
|
children: [
|
|
1624
|
-
/* @__PURE__ */ (
|
|
1375
|
+
/* @__PURE__ */ jsx26("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx26(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx26(Circle3, { className: "h-2 w-2 fill-current" }) }) }),
|
|
1625
1376
|
children
|
|
1626
1377
|
]
|
|
1627
1378
|
}
|
|
1628
1379
|
));
|
|
1629
1380
|
ContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;
|
|
1630
|
-
var ContextMenuLabel = React25.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (
|
|
1381
|
+
var ContextMenuLabel = React25.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx26(
|
|
1631
1382
|
ContextMenuPrimitive.Label,
|
|
1632
1383
|
{
|
|
1633
1384
|
ref,
|
|
@@ -1640,7 +1391,7 @@ var ContextMenuLabel = React25.forwardRef(({ className, inset, ...props }, ref)
|
|
|
1640
1391
|
}
|
|
1641
1392
|
));
|
|
1642
1393
|
ContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;
|
|
1643
|
-
var ContextMenuSeparator = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
1394
|
+
var ContextMenuSeparator = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx26(
|
|
1644
1395
|
ContextMenuPrimitive.Separator,
|
|
1645
1396
|
{
|
|
1646
1397
|
ref,
|
|
@@ -1653,7 +1404,7 @@ var ContextMenuShortcut = ({
|
|
|
1653
1404
|
className,
|
|
1654
1405
|
...props
|
|
1655
1406
|
}) => {
|
|
1656
|
-
return /* @__PURE__ */ (
|
|
1407
|
+
return /* @__PURE__ */ jsx26(
|
|
1657
1408
|
"span",
|
|
1658
1409
|
{
|
|
1659
1410
|
className: cn(
|
|
@@ -1667,11 +1418,11 @@ var ContextMenuShortcut = ({
|
|
|
1667
1418
|
ContextMenuShortcut.displayName = "ContextMenuShortcut";
|
|
1668
1419
|
|
|
1669
1420
|
// src/components/ui/menubar.tsx
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
var Menubar = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
1421
|
+
import * as React26 from "react";
|
|
1422
|
+
import * as MenubarPrimitive from "@radix-ui/react-menubar";
|
|
1423
|
+
import { Check as Check5, ChevronRight as ChevronRight3, Circle as Circle4 } from "lucide-react";
|
|
1424
|
+
import { jsx as jsx27, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1425
|
+
var Menubar = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx27(
|
|
1675
1426
|
MenubarPrimitive.Root,
|
|
1676
1427
|
{
|
|
1677
1428
|
ref,
|
|
@@ -1683,7 +1434,7 @@ var Menubar = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1683
1434
|
}
|
|
1684
1435
|
));
|
|
1685
1436
|
Menubar.displayName = MenubarPrimitive.Root.displayName;
|
|
1686
|
-
var MenubarTrigger = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
1437
|
+
var MenubarTrigger = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx27(
|
|
1687
1438
|
MenubarPrimitive.Trigger,
|
|
1688
1439
|
{
|
|
1689
1440
|
ref,
|
|
@@ -1695,7 +1446,7 @@ var MenubarTrigger = React26.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
1695
1446
|
}
|
|
1696
1447
|
));
|
|
1697
1448
|
MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
|
|
1698
|
-
var MenubarSubTrigger = React26.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (
|
|
1449
|
+
var MenubarSubTrigger = React26.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs12(
|
|
1699
1450
|
MenubarPrimitive.SubTrigger,
|
|
1700
1451
|
{
|
|
1701
1452
|
ref,
|
|
@@ -1707,12 +1458,12 @@ var MenubarSubTrigger = React26.forwardRef(({ className, inset, children, ...pro
|
|
|
1707
1458
|
...props,
|
|
1708
1459
|
children: [
|
|
1709
1460
|
children,
|
|
1710
|
-
/* @__PURE__ */ (
|
|
1461
|
+
/* @__PURE__ */ jsx27(ChevronRight3, { className: "ml-auto h-4 w-4" })
|
|
1711
1462
|
]
|
|
1712
1463
|
}
|
|
1713
1464
|
));
|
|
1714
1465
|
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
|
1715
|
-
var MenubarSubContent = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
1466
|
+
var MenubarSubContent = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx27(
|
|
1716
1467
|
MenubarPrimitive.SubContent,
|
|
1717
1468
|
{
|
|
1718
1469
|
ref,
|
|
@@ -1725,7 +1476,7 @@ var MenubarSubContent = React26.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1725
1476
|
));
|
|
1726
1477
|
MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
|
|
1727
1478
|
var MenubarContent = React26.forwardRef(
|
|
1728
|
-
({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ (
|
|
1479
|
+
({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ jsx27(MenubarPrimitive.Portal, { children: /* @__PURE__ */ jsx27(
|
|
1729
1480
|
MenubarPrimitive.Content,
|
|
1730
1481
|
{
|
|
1731
1482
|
ref,
|
|
@@ -1741,7 +1492,7 @@ var MenubarContent = React26.forwardRef(
|
|
|
1741
1492
|
) })
|
|
1742
1493
|
);
|
|
1743
1494
|
MenubarContent.displayName = MenubarPrimitive.Content.displayName;
|
|
1744
|
-
var MenubarItem = React26.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (
|
|
1495
|
+
var MenubarItem = React26.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx27(
|
|
1745
1496
|
MenubarPrimitive.Item,
|
|
1746
1497
|
{
|
|
1747
1498
|
ref,
|
|
@@ -1754,7 +1505,7 @@ var MenubarItem = React26.forwardRef(({ className, inset, ...props }, ref) => /*
|
|
|
1754
1505
|
}
|
|
1755
1506
|
));
|
|
1756
1507
|
MenubarItem.displayName = MenubarPrimitive.Item.displayName;
|
|
1757
|
-
var MenubarCheckboxItem = React26.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ (
|
|
1508
|
+
var MenubarCheckboxItem = React26.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs12(
|
|
1758
1509
|
MenubarPrimitive.CheckboxItem,
|
|
1759
1510
|
{
|
|
1760
1511
|
ref,
|
|
@@ -1765,13 +1516,13 @@ var MenubarCheckboxItem = React26.forwardRef(({ className, children, checked, ..
|
|
|
1765
1516
|
checked,
|
|
1766
1517
|
...props,
|
|
1767
1518
|
children: [
|
|
1768
|
-
/* @__PURE__ */ (
|
|
1519
|
+
/* @__PURE__ */ jsx27("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx27(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx27(Check5, { className: "h-4 w-4" }) }) }),
|
|
1769
1520
|
children
|
|
1770
1521
|
]
|
|
1771
1522
|
}
|
|
1772
1523
|
));
|
|
1773
1524
|
MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
|
|
1774
|
-
var MenubarRadioItem = React26.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (
|
|
1525
|
+
var MenubarRadioItem = React26.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs12(
|
|
1775
1526
|
MenubarPrimitive.RadioItem,
|
|
1776
1527
|
{
|
|
1777
1528
|
ref,
|
|
@@ -1781,13 +1532,13 @@ var MenubarRadioItem = React26.forwardRef(({ className, children, ...props }, re
|
|
|
1781
1532
|
),
|
|
1782
1533
|
...props,
|
|
1783
1534
|
children: [
|
|
1784
|
-
/* @__PURE__ */ (
|
|
1535
|
+
/* @__PURE__ */ jsx27("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx27(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx27(Circle4, { className: "h-2 w-2 fill-current" }) }) }),
|
|
1785
1536
|
children
|
|
1786
1537
|
]
|
|
1787
1538
|
}
|
|
1788
1539
|
));
|
|
1789
1540
|
MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
|
|
1790
|
-
var MenubarLabel = React26.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (
|
|
1541
|
+
var MenubarLabel = React26.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx27(
|
|
1791
1542
|
MenubarPrimitive.Label,
|
|
1792
1543
|
{
|
|
1793
1544
|
ref,
|
|
@@ -1800,7 +1551,7 @@ var MenubarLabel = React26.forwardRef(({ className, inset, ...props }, ref) => /
|
|
|
1800
1551
|
}
|
|
1801
1552
|
));
|
|
1802
1553
|
MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
|
|
1803
|
-
var MenubarSeparator = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
1554
|
+
var MenubarSeparator = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx27(
|
|
1804
1555
|
MenubarPrimitive.Separator,
|
|
1805
1556
|
{
|
|
1806
1557
|
ref,
|
|
@@ -1813,7 +1564,7 @@ var MenubarShortcut = ({
|
|
|
1813
1564
|
className,
|
|
1814
1565
|
...props
|
|
1815
1566
|
}) => {
|
|
1816
|
-
return /* @__PURE__ */ (
|
|
1567
|
+
return /* @__PURE__ */ jsx27(
|
|
1817
1568
|
"span",
|
|
1818
1569
|
{
|
|
1819
1570
|
className: cn(
|
|
@@ -1827,12 +1578,12 @@ var MenubarShortcut = ({
|
|
|
1827
1578
|
MenubarShortcut.displayname = "MenubarShortcut";
|
|
1828
1579
|
|
|
1829
1580
|
// src/components/ui/navigation-menu.tsx
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
var NavigationMenu = React27.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (
|
|
1581
|
+
import * as React27 from "react";
|
|
1582
|
+
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
|
1583
|
+
import { cva as cva4 } from "class-variance-authority";
|
|
1584
|
+
import { ChevronDown as ChevronDown3 } from "lucide-react";
|
|
1585
|
+
import { jsx as jsx28, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1586
|
+
var NavigationMenu = React27.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs13(
|
|
1836
1587
|
NavigationMenuPrimitive.Root,
|
|
1837
1588
|
{
|
|
1838
1589
|
ref,
|
|
@@ -1843,12 +1594,12 @@ var NavigationMenu = React27.forwardRef(({ className, children, ...props }, ref)
|
|
|
1843
1594
|
...props,
|
|
1844
1595
|
children: [
|
|
1845
1596
|
children,
|
|
1846
|
-
/* @__PURE__ */ (
|
|
1597
|
+
/* @__PURE__ */ jsx28(NavigationMenuViewport, {})
|
|
1847
1598
|
]
|
|
1848
1599
|
}
|
|
1849
1600
|
));
|
|
1850
1601
|
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
1851
|
-
var NavigationMenuList = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
1602
|
+
var NavigationMenuList = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx28(
|
|
1852
1603
|
NavigationMenuPrimitive.List,
|
|
1853
1604
|
{
|
|
1854
1605
|
ref,
|
|
@@ -1861,10 +1612,10 @@ var NavigationMenuList = React27.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1861
1612
|
));
|
|
1862
1613
|
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
1863
1614
|
var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
1864
|
-
var navigationMenuTriggerStyle = (
|
|
1615
|
+
var navigationMenuTriggerStyle = cva4(
|
|
1865
1616
|
"group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent"
|
|
1866
1617
|
);
|
|
1867
|
-
var NavigationMenuTrigger = React27.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (
|
|
1618
|
+
var NavigationMenuTrigger = React27.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs13(
|
|
1868
1619
|
NavigationMenuPrimitive.Trigger,
|
|
1869
1620
|
{
|
|
1870
1621
|
ref,
|
|
@@ -1873,8 +1624,8 @@ var NavigationMenuTrigger = React27.forwardRef(({ className, children, ...props
|
|
|
1873
1624
|
children: [
|
|
1874
1625
|
children,
|
|
1875
1626
|
" ",
|
|
1876
|
-
/* @__PURE__ */ (
|
|
1877
|
-
|
|
1627
|
+
/* @__PURE__ */ jsx28(
|
|
1628
|
+
ChevronDown3,
|
|
1878
1629
|
{
|
|
1879
1630
|
className: "relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180",
|
|
1880
1631
|
"aria-hidden": "true"
|
|
@@ -1884,7 +1635,7 @@ var NavigationMenuTrigger = React27.forwardRef(({ className, children, ...props
|
|
|
1884
1635
|
}
|
|
1885
1636
|
));
|
|
1886
1637
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
1887
|
-
var NavigationMenuContent = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
1638
|
+
var NavigationMenuContent = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx28(
|
|
1888
1639
|
NavigationMenuPrimitive.Content,
|
|
1889
1640
|
{
|
|
1890
1641
|
ref,
|
|
@@ -1897,7 +1648,7 @@ var NavigationMenuContent = React27.forwardRef(({ className, ...props }, ref) =>
|
|
|
1897
1648
|
));
|
|
1898
1649
|
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
1899
1650
|
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
1900
|
-
var NavigationMenuViewport = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
1651
|
+
var NavigationMenuViewport = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx28("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsx28(
|
|
1901
1652
|
NavigationMenuPrimitive.Viewport,
|
|
1902
1653
|
{
|
|
1903
1654
|
className: cn(
|
|
@@ -1909,7 +1660,7 @@ var NavigationMenuViewport = React27.forwardRef(({ className, ...props }, ref) =
|
|
|
1909
1660
|
}
|
|
1910
1661
|
) }));
|
|
1911
1662
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
1912
|
-
var NavigationMenuIndicator = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
1663
|
+
var NavigationMenuIndicator = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx28(
|
|
1913
1664
|
NavigationMenuPrimitive.Indicator,
|
|
1914
1665
|
{
|
|
1915
1666
|
ref,
|
|
@@ -1918,19 +1669,19 @@ var NavigationMenuIndicator = React27.forwardRef(({ className, ...props }, ref)
|
|
|
1918
1669
|
className
|
|
1919
1670
|
),
|
|
1920
1671
|
...props,
|
|
1921
|
-
children: /* @__PURE__ */ (
|
|
1672
|
+
children: /* @__PURE__ */ jsx28("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
1922
1673
|
}
|
|
1923
1674
|
));
|
|
1924
1675
|
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
1925
1676
|
|
|
1926
1677
|
// src/components/ui/breadcrumb.tsx
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
var Breadcrumb = React28.forwardRef(({ ...props }, ref) => /* @__PURE__ */ (
|
|
1678
|
+
import * as React28 from "react";
|
|
1679
|
+
import { Slot as Slot3 } from "@radix-ui/react-slot";
|
|
1680
|
+
import { ChevronRight as ChevronRight4, MoreHorizontal } from "lucide-react";
|
|
1681
|
+
import { jsx as jsx29, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1682
|
+
var Breadcrumb = React28.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx29("nav", { ref, "aria-label": "breadcrumb", ...props }));
|
|
1932
1683
|
Breadcrumb.displayName = "Breadcrumb";
|
|
1933
|
-
var BreadcrumbList = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
1684
|
+
var BreadcrumbList = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx29(
|
|
1934
1685
|
"ol",
|
|
1935
1686
|
{
|
|
1936
1687
|
ref,
|
|
@@ -1942,7 +1693,7 @@ var BreadcrumbList = React28.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
1942
1693
|
}
|
|
1943
1694
|
));
|
|
1944
1695
|
BreadcrumbList.displayName = "BreadcrumbList";
|
|
1945
|
-
var BreadcrumbItem = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
1696
|
+
var BreadcrumbItem = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx29(
|
|
1946
1697
|
"li",
|
|
1947
1698
|
{
|
|
1948
1699
|
ref,
|
|
@@ -1952,8 +1703,8 @@ var BreadcrumbItem = React28.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
1952
1703
|
));
|
|
1953
1704
|
BreadcrumbItem.displayName = "BreadcrumbItem";
|
|
1954
1705
|
var BreadcrumbLink = React28.forwardRef(({ asChild, className, ...props }, ref) => {
|
|
1955
|
-
const Comp = asChild ?
|
|
1956
|
-
return /* @__PURE__ */ (
|
|
1706
|
+
const Comp = asChild ? Slot3 : "a";
|
|
1707
|
+
return /* @__PURE__ */ jsx29(
|
|
1957
1708
|
Comp,
|
|
1958
1709
|
{
|
|
1959
1710
|
ref,
|
|
@@ -1963,7 +1714,7 @@ var BreadcrumbLink = React28.forwardRef(({ asChild, className, ...props }, ref)
|
|
|
1963
1714
|
);
|
|
1964
1715
|
});
|
|
1965
1716
|
BreadcrumbLink.displayName = "BreadcrumbLink";
|
|
1966
|
-
var BreadcrumbPage = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
1717
|
+
var BreadcrumbPage = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx29(
|
|
1967
1718
|
"span",
|
|
1968
1719
|
{
|
|
1969
1720
|
ref,
|
|
@@ -1979,21 +1730,21 @@ var BreadcrumbSeparator = ({
|
|
|
1979
1730
|
children,
|
|
1980
1731
|
className,
|
|
1981
1732
|
...props
|
|
1982
|
-
}) => /* @__PURE__ */ (
|
|
1733
|
+
}) => /* @__PURE__ */ jsx29(
|
|
1983
1734
|
"li",
|
|
1984
1735
|
{
|
|
1985
1736
|
role: "presentation",
|
|
1986
1737
|
"aria-hidden": "true",
|
|
1987
1738
|
className: cn("[&>svg]:w-3.5 [&>svg]:h-3.5", className),
|
|
1988
1739
|
...props,
|
|
1989
|
-
children: children ?? /* @__PURE__ */ (
|
|
1740
|
+
children: children ?? /* @__PURE__ */ jsx29(ChevronRight4, {})
|
|
1990
1741
|
}
|
|
1991
1742
|
);
|
|
1992
1743
|
BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
|
|
1993
1744
|
var BreadcrumbEllipsis = ({
|
|
1994
1745
|
className,
|
|
1995
1746
|
...props
|
|
1996
|
-
}) => /* @__PURE__ */ (
|
|
1747
|
+
}) => /* @__PURE__ */ jsxs14(
|
|
1997
1748
|
"span",
|
|
1998
1749
|
{
|
|
1999
1750
|
role: "presentation",
|
|
@@ -2001,18 +1752,18 @@ var BreadcrumbEllipsis = ({
|
|
|
2001
1752
|
className: cn("flex h-9 w-9 items-center justify-center", className),
|
|
2002
1753
|
...props,
|
|
2003
1754
|
children: [
|
|
2004
|
-
/* @__PURE__ */ (
|
|
2005
|
-
/* @__PURE__ */ (
|
|
1755
|
+
/* @__PURE__ */ jsx29(MoreHorizontal, { className: "h-4 w-4" }),
|
|
1756
|
+
/* @__PURE__ */ jsx29("span", { className: "sr-only", children: "More" })
|
|
2006
1757
|
]
|
|
2007
1758
|
}
|
|
2008
1759
|
);
|
|
2009
1760
|
BreadcrumbEllipsis.displayName = "BreadcrumbElipssis";
|
|
2010
1761
|
|
|
2011
1762
|
// src/components/ui/pagination.tsx
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
var Pagination = ({ className, ...props }) => /* @__PURE__ */ (
|
|
1763
|
+
import * as React29 from "react";
|
|
1764
|
+
import { ChevronLeft, ChevronRight as ChevronRight5, MoreHorizontal as MoreHorizontal2 } from "lucide-react";
|
|
1765
|
+
import { jsx as jsx30, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1766
|
+
var Pagination = ({ className, ...props }) => /* @__PURE__ */ jsx30(
|
|
2016
1767
|
"nav",
|
|
2017
1768
|
{
|
|
2018
1769
|
role: "navigation",
|
|
@@ -2022,7 +1773,7 @@ var Pagination = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
2022
1773
|
}
|
|
2023
1774
|
);
|
|
2024
1775
|
Pagination.displayName = "Pagination";
|
|
2025
|
-
var PaginationContent = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
1776
|
+
var PaginationContent = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
2026
1777
|
"ul",
|
|
2027
1778
|
{
|
|
2028
1779
|
ref,
|
|
@@ -2031,14 +1782,14 @@ var PaginationContent = React29.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2031
1782
|
}
|
|
2032
1783
|
));
|
|
2033
1784
|
PaginationContent.displayName = "PaginationContent";
|
|
2034
|
-
var PaginationItem = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
1785
|
+
var PaginationItem = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30("li", { ref, className: cn("", className), ...props }));
|
|
2035
1786
|
PaginationItem.displayName = "PaginationItem";
|
|
2036
1787
|
var PaginationLink = ({
|
|
2037
1788
|
className,
|
|
2038
1789
|
isActive,
|
|
2039
1790
|
size = "icon",
|
|
2040
1791
|
...props
|
|
2041
|
-
}) => /* @__PURE__ */ (
|
|
1792
|
+
}) => /* @__PURE__ */ jsx30(
|
|
2042
1793
|
"a",
|
|
2043
1794
|
{
|
|
2044
1795
|
"aria-current": isActive ? "page" : void 0,
|
|
@@ -2056,7 +1807,7 @@ PaginationLink.displayName = "PaginationLink";
|
|
|
2056
1807
|
var PaginationPrevious = ({
|
|
2057
1808
|
className,
|
|
2058
1809
|
...props
|
|
2059
|
-
}) => /* @__PURE__ */ (
|
|
1810
|
+
}) => /* @__PURE__ */ jsxs15(
|
|
2060
1811
|
PaginationLink,
|
|
2061
1812
|
{
|
|
2062
1813
|
"aria-label": "Go to previous page",
|
|
@@ -2064,8 +1815,8 @@ var PaginationPrevious = ({
|
|
|
2064
1815
|
className: cn("gap-1 pl-2.5", className),
|
|
2065
1816
|
...props,
|
|
2066
1817
|
children: [
|
|
2067
|
-
/* @__PURE__ */ (
|
|
2068
|
-
/* @__PURE__ */ (
|
|
1818
|
+
/* @__PURE__ */ jsx30(ChevronLeft, { className: "h-4 w-4" }),
|
|
1819
|
+
/* @__PURE__ */ jsx30("span", { children: "Previous" })
|
|
2069
1820
|
]
|
|
2070
1821
|
}
|
|
2071
1822
|
);
|
|
@@ -2073,7 +1824,7 @@ PaginationPrevious.displayName = "PaginationPrevious";
|
|
|
2073
1824
|
var PaginationNext = ({
|
|
2074
1825
|
className,
|
|
2075
1826
|
...props
|
|
2076
|
-
}) => /* @__PURE__ */ (
|
|
1827
|
+
}) => /* @__PURE__ */ jsxs15(
|
|
2077
1828
|
PaginationLink,
|
|
2078
1829
|
{
|
|
2079
1830
|
"aria-label": "Go to next page",
|
|
@@ -2081,8 +1832,8 @@ var PaginationNext = ({
|
|
|
2081
1832
|
className: cn("gap-1 pr-2.5", className),
|
|
2082
1833
|
...props,
|
|
2083
1834
|
children: [
|
|
2084
|
-
/* @__PURE__ */ (
|
|
2085
|
-
/* @__PURE__ */ (
|
|
1835
|
+
/* @__PURE__ */ jsx30("span", { children: "Next" }),
|
|
1836
|
+
/* @__PURE__ */ jsx30(ChevronRight5, { className: "h-4 w-4" })
|
|
2086
1837
|
]
|
|
2087
1838
|
}
|
|
2088
1839
|
);
|
|
@@ -2090,27 +1841,27 @@ PaginationNext.displayName = "PaginationNext";
|
|
|
2090
1841
|
var PaginationEllipsis = ({
|
|
2091
1842
|
className,
|
|
2092
1843
|
...props
|
|
2093
|
-
}) => /* @__PURE__ */ (
|
|
1844
|
+
}) => /* @__PURE__ */ jsxs15(
|
|
2094
1845
|
"span",
|
|
2095
1846
|
{
|
|
2096
1847
|
"aria-hidden": true,
|
|
2097
1848
|
className: cn("flex h-9 w-9 items-center justify-center", className),
|
|
2098
1849
|
...props,
|
|
2099
1850
|
children: [
|
|
2100
|
-
/* @__PURE__ */ (
|
|
2101
|
-
/* @__PURE__ */ (
|
|
1851
|
+
/* @__PURE__ */ jsx30(MoreHorizontal2, { className: "h-4 w-4" }),
|
|
1852
|
+
/* @__PURE__ */ jsx30("span", { className: "sr-only", children: "More pages" })
|
|
2102
1853
|
]
|
|
2103
1854
|
}
|
|
2104
1855
|
);
|
|
2105
1856
|
PaginationEllipsis.displayName = "PaginationEllipsis";
|
|
2106
1857
|
|
|
2107
1858
|
// src/components/ui/command.tsx
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
var Command = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
2113
|
-
|
|
1859
|
+
import * as React30 from "react";
|
|
1860
|
+
import { Command as CommandPrimitive } from "cmdk";
|
|
1861
|
+
import { Search } from "lucide-react";
|
|
1862
|
+
import { jsx as jsx31, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
1863
|
+
var Command = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx31(
|
|
1864
|
+
CommandPrimitive,
|
|
2114
1865
|
{
|
|
2115
1866
|
ref,
|
|
2116
1867
|
className: cn(
|
|
@@ -2120,14 +1871,14 @@ var Command = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
2120
1871
|
...props
|
|
2121
1872
|
}
|
|
2122
1873
|
));
|
|
2123
|
-
Command.displayName =
|
|
1874
|
+
Command.displayName = CommandPrimitive.displayName;
|
|
2124
1875
|
var CommandDialog = ({ children, ...props }) => {
|
|
2125
|
-
return /* @__PURE__ */ (
|
|
1876
|
+
return /* @__PURE__ */ jsx31(Dialog, { ...props, children: /* @__PURE__ */ jsx31(DialogContent, { className: "overflow-hidden p-0 shadow-lg", children: /* @__PURE__ */ jsx31(Command, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children }) }) });
|
|
2126
1877
|
};
|
|
2127
|
-
var CommandInput = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
2128
|
-
/* @__PURE__ */ (
|
|
2129
|
-
/* @__PURE__ */ (
|
|
2130
|
-
|
|
1878
|
+
var CommandInput = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs16("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
1879
|
+
/* @__PURE__ */ jsx31(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
1880
|
+
/* @__PURE__ */ jsx31(
|
|
1881
|
+
CommandPrimitive.Input,
|
|
2131
1882
|
{
|
|
2132
1883
|
ref,
|
|
2133
1884
|
className: cn(
|
|
@@ -2138,27 +1889,27 @@ var CommandInput = React30.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2138
1889
|
}
|
|
2139
1890
|
)
|
|
2140
1891
|
] }));
|
|
2141
|
-
CommandInput.displayName =
|
|
2142
|
-
var CommandList = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
2143
|
-
|
|
1892
|
+
CommandInput.displayName = CommandPrimitive.Input.displayName;
|
|
1893
|
+
var CommandList = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx31(
|
|
1894
|
+
CommandPrimitive.List,
|
|
2144
1895
|
{
|
|
2145
1896
|
ref,
|
|
2146
1897
|
className: cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className),
|
|
2147
1898
|
...props
|
|
2148
1899
|
}
|
|
2149
1900
|
));
|
|
2150
|
-
CommandList.displayName =
|
|
2151
|
-
var CommandEmpty = React30.forwardRef((props, ref) => /* @__PURE__ */ (
|
|
2152
|
-
|
|
1901
|
+
CommandList.displayName = CommandPrimitive.List.displayName;
|
|
1902
|
+
var CommandEmpty = React30.forwardRef((props, ref) => /* @__PURE__ */ jsx31(
|
|
1903
|
+
CommandPrimitive.Empty,
|
|
2153
1904
|
{
|
|
2154
1905
|
ref,
|
|
2155
1906
|
className: "py-6 text-center text-sm",
|
|
2156
1907
|
...props
|
|
2157
1908
|
}
|
|
2158
1909
|
));
|
|
2159
|
-
CommandEmpty.displayName =
|
|
2160
|
-
var CommandGroup = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
2161
|
-
|
|
1910
|
+
CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
|
|
1911
|
+
var CommandGroup = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx31(
|
|
1912
|
+
CommandPrimitive.Group,
|
|
2162
1913
|
{
|
|
2163
1914
|
ref,
|
|
2164
1915
|
className: cn(
|
|
@@ -2168,18 +1919,18 @@ var CommandGroup = React30.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2168
1919
|
...props
|
|
2169
1920
|
}
|
|
2170
1921
|
));
|
|
2171
|
-
CommandGroup.displayName =
|
|
2172
|
-
var CommandSeparator = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
2173
|
-
|
|
1922
|
+
CommandGroup.displayName = CommandPrimitive.Group.displayName;
|
|
1923
|
+
var CommandSeparator = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx31(
|
|
1924
|
+
CommandPrimitive.Separator,
|
|
2174
1925
|
{
|
|
2175
1926
|
ref,
|
|
2176
1927
|
className: cn("-mx-1 h-px bg-border", className),
|
|
2177
1928
|
...props
|
|
2178
1929
|
}
|
|
2179
1930
|
));
|
|
2180
|
-
CommandSeparator.displayName =
|
|
2181
|
-
var CommandItem = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
2182
|
-
|
|
1931
|
+
CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
|
|
1932
|
+
var CommandItem = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx31(
|
|
1933
|
+
CommandPrimitive.Item,
|
|
2183
1934
|
{
|
|
2184
1935
|
ref,
|
|
2185
1936
|
className: cn(
|
|
@@ -2189,12 +1940,12 @@ var CommandItem = React30.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2189
1940
|
...props
|
|
2190
1941
|
}
|
|
2191
1942
|
));
|
|
2192
|
-
CommandItem.displayName =
|
|
1943
|
+
CommandItem.displayName = CommandPrimitive.Item.displayName;
|
|
2193
1944
|
var CommandShortcut = ({
|
|
2194
1945
|
className,
|
|
2195
1946
|
...props
|
|
2196
1947
|
}) => {
|
|
2197
|
-
return /* @__PURE__ */ (
|
|
1948
|
+
return /* @__PURE__ */ jsx31(
|
|
2198
1949
|
"span",
|
|
2199
1950
|
{
|
|
2200
1951
|
className: cn(
|
|
@@ -2208,9 +1959,9 @@ var CommandShortcut = ({
|
|
|
2208
1959
|
CommandShortcut.displayName = "CommandShortcut";
|
|
2209
1960
|
|
|
2210
1961
|
// src/components/ui/table.tsx
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
var Table = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
1962
|
+
import * as React31 from "react";
|
|
1963
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
1964
|
+
var Table = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx32("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx32(
|
|
2214
1965
|
"table",
|
|
2215
1966
|
{
|
|
2216
1967
|
ref,
|
|
@@ -2219,9 +1970,9 @@ var Table = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
2219
1970
|
}
|
|
2220
1971
|
) }));
|
|
2221
1972
|
Table.displayName = "Table";
|
|
2222
|
-
var TableHeader = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
1973
|
+
var TableHeader = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx32("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
|
|
2223
1974
|
TableHeader.displayName = "TableHeader";
|
|
2224
|
-
var TableBody = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
1975
|
+
var TableBody = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx32(
|
|
2225
1976
|
"tbody",
|
|
2226
1977
|
{
|
|
2227
1978
|
ref,
|
|
@@ -2230,7 +1981,7 @@ var TableBody = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
2230
1981
|
}
|
|
2231
1982
|
));
|
|
2232
1983
|
TableBody.displayName = "TableBody";
|
|
2233
|
-
var TableFooter = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
1984
|
+
var TableFooter = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx32(
|
|
2234
1985
|
"tfoot",
|
|
2235
1986
|
{
|
|
2236
1987
|
ref,
|
|
@@ -2242,7 +1993,7 @@ var TableFooter = React31.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2242
1993
|
}
|
|
2243
1994
|
));
|
|
2244
1995
|
TableFooter.displayName = "TableFooter";
|
|
2245
|
-
var TableRow = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
1996
|
+
var TableRow = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx32(
|
|
2246
1997
|
"tr",
|
|
2247
1998
|
{
|
|
2248
1999
|
ref,
|
|
@@ -2254,7 +2005,7 @@ var TableRow = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
2254
2005
|
}
|
|
2255
2006
|
));
|
|
2256
2007
|
TableRow.displayName = "TableRow";
|
|
2257
|
-
var TableHead = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
2008
|
+
var TableHead = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx32(
|
|
2258
2009
|
"th",
|
|
2259
2010
|
{
|
|
2260
2011
|
ref,
|
|
@@ -2266,7 +2017,7 @@ var TableHead = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
2266
2017
|
}
|
|
2267
2018
|
));
|
|
2268
2019
|
TableHead.displayName = "TableHead";
|
|
2269
|
-
var TableCell = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
2020
|
+
var TableCell = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx32(
|
|
2270
2021
|
"td",
|
|
2271
2022
|
{
|
|
2272
2023
|
ref,
|
|
@@ -2275,7 +2026,7 @@ var TableCell = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
2275
2026
|
}
|
|
2276
2027
|
));
|
|
2277
2028
|
TableCell.displayName = "TableCell";
|
|
2278
|
-
var TableCaption = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
2029
|
+
var TableCaption = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx32(
|
|
2279
2030
|
"caption",
|
|
2280
2031
|
{
|
|
2281
2032
|
ref,
|
|
@@ -2286,10 +2037,10 @@ var TableCaption = React31.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2286
2037
|
TableCaption.displayName = "TableCaption";
|
|
2287
2038
|
|
|
2288
2039
|
// src/components/ui/avatar.tsx
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
var Avatar = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
2040
|
+
import * as React32 from "react";
|
|
2041
|
+
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
2042
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
2043
|
+
var Avatar = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx33(
|
|
2293
2044
|
AvatarPrimitive.Root,
|
|
2294
2045
|
{
|
|
2295
2046
|
ref,
|
|
@@ -2301,7 +2052,7 @@ var Avatar = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
2301
2052
|
}
|
|
2302
2053
|
));
|
|
2303
2054
|
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
2304
|
-
var AvatarImage = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
2055
|
+
var AvatarImage = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx33(
|
|
2305
2056
|
AvatarPrimitive.Image,
|
|
2306
2057
|
{
|
|
2307
2058
|
ref,
|
|
@@ -2310,7 +2061,7 @@ var AvatarImage = React32.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2310
2061
|
}
|
|
2311
2062
|
));
|
|
2312
2063
|
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
2313
|
-
var AvatarFallback = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
2064
|
+
var AvatarFallback = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx33(
|
|
2314
2065
|
AvatarPrimitive.Fallback,
|
|
2315
2066
|
{
|
|
2316
2067
|
ref,
|
|
@@ -2324,9 +2075,9 @@ var AvatarFallback = React32.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
2324
2075
|
AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
2325
2076
|
|
|
2326
2077
|
// src/components/ui/badge.tsx
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
var badgeVariants = (
|
|
2078
|
+
import { cva as cva5 } from "class-variance-authority";
|
|
2079
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
2080
|
+
var badgeVariants = cva5(
|
|
2330
2081
|
"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",
|
|
2331
2082
|
{
|
|
2332
2083
|
variants: {
|
|
@@ -2343,14 +2094,14 @@ var badgeVariants = (0, import_class_variance_authority5.cva)(
|
|
|
2343
2094
|
}
|
|
2344
2095
|
);
|
|
2345
2096
|
function Badge({ className, variant, ...props }) {
|
|
2346
|
-
return /* @__PURE__ */ (
|
|
2097
|
+
return /* @__PURE__ */ jsx34("div", { className: cn(badgeVariants({ variant }), className), ...props });
|
|
2347
2098
|
}
|
|
2348
2099
|
|
|
2349
2100
|
// src/components/ui/alert.tsx
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
var alertVariants = (
|
|
2101
|
+
import * as React33 from "react";
|
|
2102
|
+
import { cva as cva6 } from "class-variance-authority";
|
|
2103
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
2104
|
+
var alertVariants = cva6(
|
|
2354
2105
|
"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",
|
|
2355
2106
|
{
|
|
2356
2107
|
variants: {
|
|
@@ -2364,7 +2115,7 @@ var alertVariants = (0, import_class_variance_authority6.cva)(
|
|
|
2364
2115
|
}
|
|
2365
2116
|
}
|
|
2366
2117
|
);
|
|
2367
|
-
var Alert = React33.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ (
|
|
2118
|
+
var Alert = React33.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx35(
|
|
2368
2119
|
"div",
|
|
2369
2120
|
{
|
|
2370
2121
|
ref,
|
|
@@ -2374,7 +2125,7 @@ var Alert = React33.forwardRef(({ className, variant, ...props }, ref) => /* @__
|
|
|
2374
2125
|
}
|
|
2375
2126
|
));
|
|
2376
2127
|
Alert.displayName = "Alert";
|
|
2377
|
-
var AlertTitle = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
2128
|
+
var AlertTitle = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx35(
|
|
2378
2129
|
"h5",
|
|
2379
2130
|
{
|
|
2380
2131
|
ref,
|
|
@@ -2383,7 +2134,7 @@ var AlertTitle = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
2383
2134
|
}
|
|
2384
2135
|
));
|
|
2385
2136
|
AlertTitle.displayName = "AlertTitle";
|
|
2386
|
-
var AlertDescription = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
2137
|
+
var AlertDescription = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx35(
|
|
2387
2138
|
"div",
|
|
2388
2139
|
{
|
|
2389
2140
|
ref,
|
|
@@ -2394,10 +2145,10 @@ var AlertDescription = React33.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
2394
2145
|
AlertDescription.displayName = "AlertDescription";
|
|
2395
2146
|
|
|
2396
2147
|
// src/components/ui/progress.tsx
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
var Progress = React34.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ (
|
|
2148
|
+
import * as React34 from "react";
|
|
2149
|
+
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
2150
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
2151
|
+
var Progress = React34.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ jsx36(
|
|
2401
2152
|
ProgressPrimitive.Root,
|
|
2402
2153
|
{
|
|
2403
2154
|
ref,
|
|
@@ -2406,7 +2157,7 @@ var Progress = React34.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
|
2406
2157
|
className
|
|
2407
2158
|
),
|
|
2408
2159
|
...props,
|
|
2409
|
-
children: /* @__PURE__ */ (
|
|
2160
|
+
children: /* @__PURE__ */ jsx36(
|
|
2410
2161
|
ProgressPrimitive.Indicator,
|
|
2411
2162
|
{
|
|
2412
2163
|
className: "h-full w-full flex-1 bg-primary transition-all",
|
|
@@ -2418,12 +2169,12 @@ var Progress = React34.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
|
2418
2169
|
Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
2419
2170
|
|
|
2420
2171
|
// src/components/ui/skeleton.tsx
|
|
2421
|
-
|
|
2172
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
2422
2173
|
function Skeleton({
|
|
2423
2174
|
className,
|
|
2424
2175
|
...props
|
|
2425
2176
|
}) {
|
|
2426
|
-
return /* @__PURE__ */ (
|
|
2177
|
+
return /* @__PURE__ */ jsx37(
|
|
2427
2178
|
"div",
|
|
2428
2179
|
{
|
|
2429
2180
|
className: cn("animate-pulse rounded-md bg-muted", className),
|
|
@@ -2433,10 +2184,14 @@ function Skeleton({
|
|
|
2433
2184
|
}
|
|
2434
2185
|
|
|
2435
2186
|
// src/components/ui/calendar.tsx
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2187
|
+
import * as React35 from "react";
|
|
2188
|
+
import {
|
|
2189
|
+
ChevronDownIcon,
|
|
2190
|
+
ChevronLeftIcon,
|
|
2191
|
+
ChevronRightIcon
|
|
2192
|
+
} from "lucide-react";
|
|
2193
|
+
import { DayPicker, getDefaultClassNames } from "react-day-picker";
|
|
2194
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
2440
2195
|
function Calendar({
|
|
2441
2196
|
className,
|
|
2442
2197
|
classNames,
|
|
@@ -2447,9 +2202,9 @@ function Calendar({
|
|
|
2447
2202
|
components,
|
|
2448
2203
|
...props
|
|
2449
2204
|
}) {
|
|
2450
|
-
const defaultClassNames =
|
|
2451
|
-
return /* @__PURE__ */ (
|
|
2452
|
-
|
|
2205
|
+
const defaultClassNames = getDefaultClassNames();
|
|
2206
|
+
return /* @__PURE__ */ jsx38(
|
|
2207
|
+
DayPicker,
|
|
2453
2208
|
{
|
|
2454
2209
|
showOutsideDays,
|
|
2455
2210
|
className: cn(
|
|
@@ -2547,7 +2302,7 @@ function Calendar({
|
|
|
2547
2302
|
},
|
|
2548
2303
|
components: {
|
|
2549
2304
|
Root: ({ className: className2, rootRef, ...props2 }) => {
|
|
2550
|
-
return /* @__PURE__ */ (
|
|
2305
|
+
return /* @__PURE__ */ jsx38(
|
|
2551
2306
|
"div",
|
|
2552
2307
|
{
|
|
2553
2308
|
"data-slot": "calendar",
|
|
@@ -2559,22 +2314,22 @@ function Calendar({
|
|
|
2559
2314
|
},
|
|
2560
2315
|
Chevron: ({ className: className2, orientation, ...props2 }) => {
|
|
2561
2316
|
if (orientation === "left") {
|
|
2562
|
-
return /* @__PURE__ */ (
|
|
2317
|
+
return /* @__PURE__ */ jsx38(ChevronLeftIcon, { className: cn("size-4", className2), ...props2 });
|
|
2563
2318
|
}
|
|
2564
2319
|
if (orientation === "right") {
|
|
2565
|
-
return /* @__PURE__ */ (
|
|
2566
|
-
|
|
2320
|
+
return /* @__PURE__ */ jsx38(
|
|
2321
|
+
ChevronRightIcon,
|
|
2567
2322
|
{
|
|
2568
2323
|
className: cn("size-4", className2),
|
|
2569
2324
|
...props2
|
|
2570
2325
|
}
|
|
2571
2326
|
);
|
|
2572
2327
|
}
|
|
2573
|
-
return /* @__PURE__ */ (
|
|
2328
|
+
return /* @__PURE__ */ jsx38(ChevronDownIcon, { className: cn("size-4", className2), ...props2 });
|
|
2574
2329
|
},
|
|
2575
2330
|
DayButton: CalendarDayButton,
|
|
2576
2331
|
WeekNumber: ({ children, ...props2 }) => {
|
|
2577
|
-
return /* @__PURE__ */ (
|
|
2332
|
+
return /* @__PURE__ */ jsx38("td", { ...props2, children: /* @__PURE__ */ jsx38("div", { className: "flex size-[--cell-size] items-center justify-center text-center", children }) });
|
|
2578
2333
|
},
|
|
2579
2334
|
...components
|
|
2580
2335
|
},
|
|
@@ -2588,12 +2343,12 @@ function CalendarDayButton({
|
|
|
2588
2343
|
modifiers,
|
|
2589
2344
|
...props
|
|
2590
2345
|
}) {
|
|
2591
|
-
const defaultClassNames =
|
|
2346
|
+
const defaultClassNames = getDefaultClassNames();
|
|
2592
2347
|
const ref = React35.useRef(null);
|
|
2593
2348
|
React35.useEffect(() => {
|
|
2594
2349
|
if (modifiers.focused) ref.current?.focus();
|
|
2595
2350
|
}, [modifiers.focused]);
|
|
2596
|
-
return /* @__PURE__ */ (
|
|
2351
|
+
return /* @__PURE__ */ jsx38(
|
|
2597
2352
|
Button,
|
|
2598
2353
|
{
|
|
2599
2354
|
ref,
|
|
@@ -2615,10 +2370,10 @@ function CalendarDayButton({
|
|
|
2615
2370
|
}
|
|
2616
2371
|
|
|
2617
2372
|
// src/components/ui/carousel.tsx
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2373
|
+
import * as React36 from "react";
|
|
2374
|
+
import useEmblaCarousel from "embla-carousel-react";
|
|
2375
|
+
import { ArrowLeft, ArrowRight } from "lucide-react";
|
|
2376
|
+
import { jsx as jsx39, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2622
2377
|
var CarouselContext = React36.createContext(null);
|
|
2623
2378
|
function useCarousel() {
|
|
2624
2379
|
const context = React36.useContext(CarouselContext);
|
|
@@ -2637,7 +2392,7 @@ var Carousel = React36.forwardRef(
|
|
|
2637
2392
|
children,
|
|
2638
2393
|
...props
|
|
2639
2394
|
}, ref) => {
|
|
2640
|
-
const [carouselRef, api] = (
|
|
2395
|
+
const [carouselRef, api] = useEmblaCarousel(
|
|
2641
2396
|
{
|
|
2642
2397
|
...opts,
|
|
2643
2398
|
axis: orientation === "horizontal" ? "x" : "y"
|
|
@@ -2688,7 +2443,7 @@ var Carousel = React36.forwardRef(
|
|
|
2688
2443
|
api?.off("select", onSelect);
|
|
2689
2444
|
};
|
|
2690
2445
|
}, [api, onSelect]);
|
|
2691
|
-
return /* @__PURE__ */ (
|
|
2446
|
+
return /* @__PURE__ */ jsx39(
|
|
2692
2447
|
CarouselContext.Provider,
|
|
2693
2448
|
{
|
|
2694
2449
|
value: {
|
|
@@ -2701,7 +2456,7 @@ var Carousel = React36.forwardRef(
|
|
|
2701
2456
|
canScrollPrev,
|
|
2702
2457
|
canScrollNext
|
|
2703
2458
|
},
|
|
2704
|
-
children: /* @__PURE__ */ (
|
|
2459
|
+
children: /* @__PURE__ */ jsx39(
|
|
2705
2460
|
"div",
|
|
2706
2461
|
{
|
|
2707
2462
|
ref,
|
|
@@ -2720,7 +2475,7 @@ var Carousel = React36.forwardRef(
|
|
|
2720
2475
|
Carousel.displayName = "Carousel";
|
|
2721
2476
|
var CarouselContent = React36.forwardRef(({ className, ...props }, ref) => {
|
|
2722
2477
|
const { carouselRef, orientation } = useCarousel();
|
|
2723
|
-
return /* @__PURE__ */ (
|
|
2478
|
+
return /* @__PURE__ */ jsx39("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ jsx39(
|
|
2724
2479
|
"div",
|
|
2725
2480
|
{
|
|
2726
2481
|
ref,
|
|
@@ -2736,7 +2491,7 @@ var CarouselContent = React36.forwardRef(({ className, ...props }, ref) => {
|
|
|
2736
2491
|
CarouselContent.displayName = "CarouselContent";
|
|
2737
2492
|
var CarouselItem = React36.forwardRef(({ className, ...props }, ref) => {
|
|
2738
2493
|
const { orientation } = useCarousel();
|
|
2739
|
-
return /* @__PURE__ */ (
|
|
2494
|
+
return /* @__PURE__ */ jsx39(
|
|
2740
2495
|
"div",
|
|
2741
2496
|
{
|
|
2742
2497
|
ref,
|
|
@@ -2754,7 +2509,7 @@ var CarouselItem = React36.forwardRef(({ className, ...props }, ref) => {
|
|
|
2754
2509
|
CarouselItem.displayName = "CarouselItem";
|
|
2755
2510
|
var CarouselPrevious = React36.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
2756
2511
|
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
2757
|
-
return /* @__PURE__ */ (
|
|
2512
|
+
return /* @__PURE__ */ jsxs17(
|
|
2758
2513
|
Button,
|
|
2759
2514
|
{
|
|
2760
2515
|
ref,
|
|
@@ -2769,8 +2524,8 @@ var CarouselPrevious = React36.forwardRef(({ className, variant = "outline", siz
|
|
|
2769
2524
|
onClick: scrollPrev,
|
|
2770
2525
|
...props,
|
|
2771
2526
|
children: [
|
|
2772
|
-
/* @__PURE__ */ (
|
|
2773
|
-
/* @__PURE__ */ (
|
|
2527
|
+
/* @__PURE__ */ jsx39(ArrowLeft, { className: "h-4 w-4" }),
|
|
2528
|
+
/* @__PURE__ */ jsx39("span", { className: "sr-only", children: "Previous slide" })
|
|
2774
2529
|
]
|
|
2775
2530
|
}
|
|
2776
2531
|
);
|
|
@@ -2778,7 +2533,7 @@ var CarouselPrevious = React36.forwardRef(({ className, variant = "outline", siz
|
|
|
2778
2533
|
CarouselPrevious.displayName = "CarouselPrevious";
|
|
2779
2534
|
var CarouselNext = React36.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
2780
2535
|
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
2781
|
-
return /* @__PURE__ */ (
|
|
2536
|
+
return /* @__PURE__ */ jsxs17(
|
|
2782
2537
|
Button,
|
|
2783
2538
|
{
|
|
2784
2539
|
ref,
|
|
@@ -2793,8 +2548,8 @@ var CarouselNext = React36.forwardRef(({ className, variant = "outline", size =
|
|
|
2793
2548
|
onClick: scrollNext,
|
|
2794
2549
|
...props,
|
|
2795
2550
|
children: [
|
|
2796
|
-
/* @__PURE__ */ (
|
|
2797
|
-
/* @__PURE__ */ (
|
|
2551
|
+
/* @__PURE__ */ jsx39(ArrowRight, { className: "h-4 w-4" }),
|
|
2552
|
+
/* @__PURE__ */ jsx39("span", { className: "sr-only", children: "Next slide" })
|
|
2798
2553
|
]
|
|
2799
2554
|
}
|
|
2800
2555
|
);
|
|
@@ -2802,11 +2557,11 @@ var CarouselNext = React36.forwardRef(({ className, variant = "outline", size =
|
|
|
2802
2557
|
CarouselNext.displayName = "CarouselNext";
|
|
2803
2558
|
|
|
2804
2559
|
// src/components/ui/spinner.tsx
|
|
2805
|
-
|
|
2806
|
-
|
|
2560
|
+
import { Loader2Icon } from "lucide-react";
|
|
2561
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
2807
2562
|
function Spinner({ className, ...props }) {
|
|
2808
|
-
return /* @__PURE__ */ (
|
|
2809
|
-
|
|
2563
|
+
return /* @__PURE__ */ jsx40(
|
|
2564
|
+
Loader2Icon,
|
|
2810
2565
|
{
|
|
2811
2566
|
role: "status",
|
|
2812
2567
|
"aria-label": "Loading",
|
|
@@ -2817,7 +2572,7 @@ function Spinner({ className, ...props }) {
|
|
|
2817
2572
|
}
|
|
2818
2573
|
|
|
2819
2574
|
// src/atoms/TextAtom.tsx
|
|
2820
|
-
|
|
2575
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
2821
2576
|
var TextAtom = ({
|
|
2822
2577
|
content,
|
|
2823
2578
|
variant = "p",
|
|
@@ -2834,12 +2589,12 @@ var TextAtom = ({
|
|
|
2834
2589
|
label: "text-[10px] font-bold text-gray-400 uppercase tracking-widest pl-1"
|
|
2835
2590
|
};
|
|
2836
2591
|
const Component = variant === "small" || variant === "muted" || variant === "label" ? "p" : variant;
|
|
2837
|
-
return /* @__PURE__ */ (
|
|
2592
|
+
return /* @__PURE__ */ jsx41(Component, { className: cn(baseStyles[variant], className), children: content });
|
|
2838
2593
|
};
|
|
2839
2594
|
|
|
2840
2595
|
// src/atoms/ButtonAtom.tsx
|
|
2841
|
-
|
|
2842
|
-
|
|
2596
|
+
import { Loader2 } from "lucide-react";
|
|
2597
|
+
import { Fragment, jsx as jsx42, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2843
2598
|
var ButtonAtom = ({
|
|
2844
2599
|
label,
|
|
2845
2600
|
variant = "default",
|
|
@@ -2863,7 +2618,7 @@ var ButtonAtom = ({
|
|
|
2863
2618
|
};
|
|
2864
2619
|
const customClass = variantMap[variant] || "";
|
|
2865
2620
|
const shadcnVariant = ["purple", "gradient"].includes(variant) ? "default" : variant;
|
|
2866
|
-
return /* @__PURE__ */ (
|
|
2621
|
+
return /* @__PURE__ */ jsx42(
|
|
2867
2622
|
Button,
|
|
2868
2623
|
{
|
|
2869
2624
|
variant: shadcnVariant,
|
|
@@ -2871,8 +2626,8 @@ var ButtonAtom = ({
|
|
|
2871
2626
|
disabled: disabled || isLoading,
|
|
2872
2627
|
onClick: handleClick,
|
|
2873
2628
|
className: cn("rounded-full font-semibold", customClass, className),
|
|
2874
|
-
children: isLoading ? /* @__PURE__ */ (
|
|
2875
|
-
/* @__PURE__ */ (
|
|
2629
|
+
children: isLoading ? /* @__PURE__ */ jsxs18(Fragment, { children: [
|
|
2630
|
+
/* @__PURE__ */ jsx42(Loader2, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
2876
2631
|
label
|
|
2877
2632
|
] }) : label
|
|
2878
2633
|
}
|
|
@@ -2880,8 +2635,8 @@ var ButtonAtom = ({
|
|
|
2880
2635
|
};
|
|
2881
2636
|
|
|
2882
2637
|
// src/atoms/LayoutAtom.tsx
|
|
2883
|
-
|
|
2884
|
-
|
|
2638
|
+
import React37 from "react";
|
|
2639
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
2885
2640
|
var LayoutAtom = ({
|
|
2886
2641
|
direction,
|
|
2887
2642
|
gap = "md",
|
|
@@ -2903,12 +2658,12 @@ var LayoutAtom = ({
|
|
|
2903
2658
|
gapMap[gap],
|
|
2904
2659
|
className
|
|
2905
2660
|
);
|
|
2906
|
-
return /* @__PURE__ */ (
|
|
2661
|
+
return /* @__PURE__ */ jsx43("div", { className: classes, children: children.map((child) => /* @__PURE__ */ jsx43(React37.Fragment, { children: renderComponent(child) }, child.id)) });
|
|
2907
2662
|
};
|
|
2908
2663
|
|
|
2909
2664
|
// src/atoms/CardAtom.tsx
|
|
2910
|
-
|
|
2911
|
-
|
|
2665
|
+
import React38 from "react";
|
|
2666
|
+
import { jsx as jsx44, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2912
2667
|
var CardAtom = ({
|
|
2913
2668
|
title,
|
|
2914
2669
|
description,
|
|
@@ -2917,7 +2672,7 @@ var CardAtom = ({
|
|
|
2917
2672
|
className,
|
|
2918
2673
|
renderComponent
|
|
2919
2674
|
}) => {
|
|
2920
|
-
return /* @__PURE__ */ (
|
|
2675
|
+
return /* @__PURE__ */ jsxs19(
|
|
2921
2676
|
Card,
|
|
2922
2677
|
{
|
|
2923
2678
|
className: cn(
|
|
@@ -2925,19 +2680,19 @@ var CardAtom = ({
|
|
|
2925
2680
|
className
|
|
2926
2681
|
),
|
|
2927
2682
|
children: [
|
|
2928
|
-
(title || description) && /* @__PURE__ */ (
|
|
2929
|
-
title && /* @__PURE__ */ (
|
|
2930
|
-
description && /* @__PURE__ */ (
|
|
2683
|
+
(title || description) && /* @__PURE__ */ jsxs19(CardHeader, { children: [
|
|
2684
|
+
title && /* @__PURE__ */ jsx44(CardTitle, { className: "text-xl font-bold text-gray-900", children: title }),
|
|
2685
|
+
description && /* @__PURE__ */ jsx44(CardDescription, { children: description })
|
|
2931
2686
|
] }),
|
|
2932
|
-
/* @__PURE__ */ (
|
|
2933
|
-
footer && footer.length > 0 && /* @__PURE__ */ (
|
|
2687
|
+
/* @__PURE__ */ jsx44(CardContent, { className: "space-y-4", children: children.map((child) => /* @__PURE__ */ jsx44(React38.Fragment, { children: renderComponent(child) }, child.id)) }),
|
|
2688
|
+
footer && footer.length > 0 && /* @__PURE__ */ jsx44(CardFooter, { className: "bg-gray-50/50 border-t border-gray-100 flex flex-wrap gap-2 pt-6", children: footer.map((footerChild) => /* @__PURE__ */ jsx44(React38.Fragment, { children: renderComponent(footerChild) }, footerChild.id)) })
|
|
2934
2689
|
]
|
|
2935
2690
|
}
|
|
2936
2691
|
);
|
|
2937
2692
|
};
|
|
2938
2693
|
|
|
2939
2694
|
// src/atoms/InputAtom.tsx
|
|
2940
|
-
|
|
2695
|
+
import { jsx as jsx45, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2941
2696
|
var InputAtom = ({
|
|
2942
2697
|
inputType,
|
|
2943
2698
|
label,
|
|
@@ -2952,16 +2707,16 @@ var InputAtom = ({
|
|
|
2952
2707
|
const containerClass = cn("flex flex-col gap-1.5 w-full", className);
|
|
2953
2708
|
const renderLabel = () => {
|
|
2954
2709
|
if (!label) return null;
|
|
2955
|
-
return /* @__PURE__ */ (
|
|
2710
|
+
return /* @__PURE__ */ jsxs20(Label, { className: "text-xs font-bold text-gray-400 uppercase tracking-widest pl-1", children: [
|
|
2956
2711
|
label,
|
|
2957
2712
|
" ",
|
|
2958
|
-
required && /* @__PURE__ */ (
|
|
2713
|
+
required && /* @__PURE__ */ jsx45("span", { className: "text-destructive", children: "*" })
|
|
2959
2714
|
] });
|
|
2960
2715
|
};
|
|
2961
2716
|
const renderInput = () => {
|
|
2962
2717
|
switch (inputType) {
|
|
2963
2718
|
case "textarea":
|
|
2964
|
-
return /* @__PURE__ */ (
|
|
2719
|
+
return /* @__PURE__ */ jsx45(
|
|
2965
2720
|
Textarea,
|
|
2966
2721
|
{
|
|
2967
2722
|
placeholder,
|
|
@@ -2971,12 +2726,12 @@ var InputAtom = ({
|
|
|
2971
2726
|
}
|
|
2972
2727
|
);
|
|
2973
2728
|
case "select":
|
|
2974
|
-
return /* @__PURE__ */ (
|
|
2975
|
-
/* @__PURE__ */ (
|
|
2976
|
-
/* @__PURE__ */ (
|
|
2729
|
+
return /* @__PURE__ */ jsxs20(Select, { defaultValue, disabled, children: [
|
|
2730
|
+
/* @__PURE__ */ jsx45(SelectTrigger, { children: /* @__PURE__ */ jsx45(SelectValue, { placeholder: placeholder || "Select option" }) }),
|
|
2731
|
+
/* @__PURE__ */ jsx45(SelectContent, { children: options?.map((opt) => /* @__PURE__ */ jsx45(SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
2977
2732
|
] });
|
|
2978
2733
|
case "slider":
|
|
2979
|
-
return /* @__PURE__ */ (
|
|
2734
|
+
return /* @__PURE__ */ jsx45("div", { className: "pt-4 pb-2", children: /* @__PURE__ */ jsx45(
|
|
2980
2735
|
Slider,
|
|
2981
2736
|
{
|
|
2982
2737
|
defaultValue: [defaultValue || config?.min || 0],
|
|
@@ -2987,8 +2742,8 @@ var InputAtom = ({
|
|
|
2987
2742
|
}
|
|
2988
2743
|
) });
|
|
2989
2744
|
case "checkbox":
|
|
2990
|
-
return /* @__PURE__ */ (
|
|
2991
|
-
/* @__PURE__ */ (
|
|
2745
|
+
return /* @__PURE__ */ jsxs20("div", { className: "flex items-center space-x-2 py-2", children: [
|
|
2746
|
+
/* @__PURE__ */ jsx45(
|
|
2992
2747
|
Checkbox,
|
|
2993
2748
|
{
|
|
2994
2749
|
id: label,
|
|
@@ -2996,7 +2751,7 @@ var InputAtom = ({
|
|
|
2996
2751
|
disabled
|
|
2997
2752
|
}
|
|
2998
2753
|
),
|
|
2999
|
-
/* @__PURE__ */ (
|
|
2754
|
+
/* @__PURE__ */ jsx45(
|
|
3000
2755
|
"label",
|
|
3001
2756
|
{
|
|
3002
2757
|
htmlFor: label,
|
|
@@ -3006,8 +2761,8 @@ var InputAtom = ({
|
|
|
3006
2761
|
)
|
|
3007
2762
|
] });
|
|
3008
2763
|
case "switch":
|
|
3009
|
-
return /* @__PURE__ */ (
|
|
3010
|
-
/* @__PURE__ */ (
|
|
2764
|
+
return /* @__PURE__ */ jsxs20("div", { className: "flex items-center space-x-2 py-2", children: [
|
|
2765
|
+
/* @__PURE__ */ jsx45(
|
|
3011
2766
|
Switch,
|
|
3012
2767
|
{
|
|
3013
2768
|
id: label,
|
|
@@ -3015,31 +2770,31 @@ var InputAtom = ({
|
|
|
3015
2770
|
disabled
|
|
3016
2771
|
}
|
|
3017
2772
|
),
|
|
3018
|
-
/* @__PURE__ */ (
|
|
2773
|
+
/* @__PURE__ */ jsx45(Label, { htmlFor: label, children: label })
|
|
3019
2774
|
] });
|
|
3020
2775
|
case "radio":
|
|
3021
|
-
return /* @__PURE__ */ (
|
|
3022
|
-
/* @__PURE__ */ (
|
|
2776
|
+
return /* @__PURE__ */ jsx45(RadioGroup, { defaultValue, disabled, children: options?.map((opt) => /* @__PURE__ */ jsxs20("div", { className: "flex items-center space-x-2", children: [
|
|
2777
|
+
/* @__PURE__ */ jsx45(
|
|
3023
2778
|
RadioGroupItem,
|
|
3024
2779
|
{
|
|
3025
2780
|
value: opt.value,
|
|
3026
2781
|
id: `${label}-${opt.value}`
|
|
3027
2782
|
}
|
|
3028
2783
|
),
|
|
3029
|
-
/* @__PURE__ */ (
|
|
2784
|
+
/* @__PURE__ */ jsx45(Label, { htmlFor: `${label}-${opt.value}`, children: opt.label })
|
|
3030
2785
|
] }, opt.value)) });
|
|
3031
2786
|
case "otp":
|
|
3032
|
-
return /* @__PURE__ */ (
|
|
2787
|
+
return /* @__PURE__ */ jsx45(
|
|
3033
2788
|
InputOTP,
|
|
3034
2789
|
{
|
|
3035
2790
|
maxLength: config?.maxLength || 6,
|
|
3036
2791
|
disabled,
|
|
3037
2792
|
defaultValue,
|
|
3038
|
-
children: /* @__PURE__ */ (
|
|
2793
|
+
children: /* @__PURE__ */ jsx45(InputOTPGroup, { children: Array.from({ length: config?.maxLength || 6 }).map((_, i) => /* @__PURE__ */ jsx45(InputOTPSlot, { index: i }, i)) })
|
|
3039
2794
|
}
|
|
3040
2795
|
);
|
|
3041
2796
|
default:
|
|
3042
|
-
return /* @__PURE__ */ (
|
|
2797
|
+
return /* @__PURE__ */ jsx45(
|
|
3043
2798
|
Input,
|
|
3044
2799
|
{
|
|
3045
2800
|
type: inputType,
|
|
@@ -3051,14 +2806,14 @@ var InputAtom = ({
|
|
|
3051
2806
|
);
|
|
3052
2807
|
}
|
|
3053
2808
|
};
|
|
3054
|
-
return /* @__PURE__ */ (
|
|
2809
|
+
return /* @__PURE__ */ jsxs20("div", { className: containerClass, children: [
|
|
3055
2810
|
inputType !== "checkbox" && inputType !== "switch" && renderLabel(),
|
|
3056
2811
|
renderInput()
|
|
3057
2812
|
] });
|
|
3058
2813
|
};
|
|
3059
2814
|
|
|
3060
2815
|
// src/atoms/BadgeAtom.tsx
|
|
3061
|
-
|
|
2816
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
3062
2817
|
var BadgeAtom = ({
|
|
3063
2818
|
label,
|
|
3064
2819
|
variant = "default",
|
|
@@ -3071,34 +2826,34 @@ var BadgeAtom = ({
|
|
|
3071
2826
|
const isCustom = ["purple", "green"].includes(variant || "");
|
|
3072
2827
|
const shadcnVariant = isCustom ? "outline" : variant;
|
|
3073
2828
|
const customClass = isCustom ? customVariants[variant] : "";
|
|
3074
|
-
return /* @__PURE__ */ (
|
|
2829
|
+
return /* @__PURE__ */ jsx46(Badge, { variant: shadcnVariant, className: cn(customClass, className), children: label });
|
|
3075
2830
|
};
|
|
3076
2831
|
|
|
3077
2832
|
// src/atoms/AvatarAtom.tsx
|
|
3078
|
-
|
|
2833
|
+
import { jsx as jsx47, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
3079
2834
|
var AvatarAtom = ({
|
|
3080
2835
|
src,
|
|
3081
2836
|
fallback,
|
|
3082
2837
|
alt,
|
|
3083
2838
|
className
|
|
3084
2839
|
}) => {
|
|
3085
|
-
return /* @__PURE__ */ (
|
|
3086
|
-
src && /* @__PURE__ */ (
|
|
3087
|
-
/* @__PURE__ */ (
|
|
2840
|
+
return /* @__PURE__ */ jsxs21(Avatar, { className: cn("h-10 w-10", className), children: [
|
|
2841
|
+
src && /* @__PURE__ */ jsx47(AvatarImage, { src, alt }),
|
|
2842
|
+
/* @__PURE__ */ jsx47(AvatarFallback, { className: "bg-purple50 text-purple600 font-bold uppercase", children: fallback })
|
|
3088
2843
|
] });
|
|
3089
2844
|
};
|
|
3090
2845
|
|
|
3091
2846
|
// src/atoms/TabsAtom.tsx
|
|
3092
|
-
|
|
3093
|
-
|
|
2847
|
+
import React39 from "react";
|
|
2848
|
+
import { jsx as jsx48, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
3094
2849
|
var TabsAtom = ({
|
|
3095
2850
|
defaultValue,
|
|
3096
2851
|
tabs,
|
|
3097
2852
|
className,
|
|
3098
2853
|
renderComponent
|
|
3099
2854
|
}) => {
|
|
3100
|
-
return /* @__PURE__ */ (
|
|
3101
|
-
/* @__PURE__ */ (
|
|
2855
|
+
return /* @__PURE__ */ jsxs22(Tabs, { defaultValue, className: cn("w-full", className), children: [
|
|
2856
|
+
/* @__PURE__ */ jsx48(TabsList, { className: "bg-gray-100/50 p-1 rounded-xl", children: tabs.map((tab) => /* @__PURE__ */ jsx48(
|
|
3102
2857
|
TabsTrigger,
|
|
3103
2858
|
{
|
|
3104
2859
|
value: tab.value,
|
|
@@ -3107,26 +2862,26 @@ var TabsAtom = ({
|
|
|
3107
2862
|
},
|
|
3108
2863
|
tab.value
|
|
3109
2864
|
)) }),
|
|
3110
|
-
tabs.map((tab) => /* @__PURE__ */ (
|
|
2865
|
+
tabs.map((tab) => /* @__PURE__ */ jsx48(TabsContent, { value: tab.value, className: "mt-4", children: tab.content.map((child) => /* @__PURE__ */ jsx48(React39.Fragment, { children: renderComponent(child) }, child.id)) }, tab.value))
|
|
3111
2866
|
] });
|
|
3112
2867
|
};
|
|
3113
2868
|
|
|
3114
2869
|
// src/atoms/AccordionAtom.tsx
|
|
3115
|
-
|
|
3116
|
-
|
|
2870
|
+
import React40 from "react";
|
|
2871
|
+
import { jsx as jsx49, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
3117
2872
|
var AccordionAtom = ({
|
|
3118
2873
|
items,
|
|
3119
2874
|
className,
|
|
3120
2875
|
renderComponent
|
|
3121
2876
|
}) => {
|
|
3122
|
-
return /* @__PURE__ */ (
|
|
2877
|
+
return /* @__PURE__ */ jsx49(Accordion, { type: "single", collapsible: true, className: cn("w-full", className), children: items.map((item) => /* @__PURE__ */ jsxs23(
|
|
3123
2878
|
AccordionItem,
|
|
3124
2879
|
{
|
|
3125
2880
|
value: item.value,
|
|
3126
2881
|
className: "border-gray-100",
|
|
3127
2882
|
children: [
|
|
3128
|
-
/* @__PURE__ */ (
|
|
3129
|
-
/* @__PURE__ */ (
|
|
2883
|
+
/* @__PURE__ */ jsx49(AccordionTrigger, { className: "text-sm font-semibold hover:no-underline hover:text-purple600 py-4", children: item.trigger }),
|
|
2884
|
+
/* @__PURE__ */ jsx49(AccordionContent, { children: /* @__PURE__ */ jsx49("div", { className: "pt-2 pb-4", children: item.content.map((child) => /* @__PURE__ */ jsx49(React40.Fragment, { children: renderComponent(child) }, child.id)) }) })
|
|
3130
2885
|
]
|
|
3131
2886
|
},
|
|
3132
2887
|
item.value
|
|
@@ -3134,23 +2889,23 @@ var AccordionAtom = ({
|
|
|
3134
2889
|
};
|
|
3135
2890
|
|
|
3136
2891
|
// src/atoms/ProgressAtom.tsx
|
|
3137
|
-
|
|
2892
|
+
import { jsx as jsx50 } from "react/jsx-runtime";
|
|
3138
2893
|
var ProgressAtom = ({
|
|
3139
2894
|
value,
|
|
3140
2895
|
className
|
|
3141
2896
|
}) => {
|
|
3142
|
-
return /* @__PURE__ */ (
|
|
2897
|
+
return /* @__PURE__ */ jsx50("div", { className: cn("w-full py-2", className), children: /* @__PURE__ */ jsx50(Progress, { value, className: "h-2 bg-gray-100" }) });
|
|
3143
2898
|
};
|
|
3144
2899
|
|
|
3145
2900
|
// src/atoms/SkeletonAtom.tsx
|
|
3146
|
-
|
|
2901
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
3147
2902
|
var SkeletonAtom = ({
|
|
3148
2903
|
shape = "rect",
|
|
3149
2904
|
width,
|
|
3150
2905
|
height,
|
|
3151
2906
|
className
|
|
3152
2907
|
}) => {
|
|
3153
|
-
return /* @__PURE__ */ (
|
|
2908
|
+
return /* @__PURE__ */ jsx51(
|
|
3154
2909
|
Skeleton,
|
|
3155
2910
|
{
|
|
3156
2911
|
className: cn(
|
|
@@ -3164,8 +2919,8 @@ var SkeletonAtom = ({
|
|
|
3164
2919
|
};
|
|
3165
2920
|
|
|
3166
2921
|
// src/atoms/AlertAtom.tsx
|
|
3167
|
-
|
|
3168
|
-
|
|
2922
|
+
import { AlertCircle, CheckCircle2, Info, AlertTriangle } from "lucide-react";
|
|
2923
|
+
import { jsx as jsx52, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
3169
2924
|
var AlertAtom = ({
|
|
3170
2925
|
title,
|
|
3171
2926
|
description,
|
|
@@ -3173,13 +2928,13 @@ var AlertAtom = ({
|
|
|
3173
2928
|
className
|
|
3174
2929
|
}) => {
|
|
3175
2930
|
const IconMap = {
|
|
3176
|
-
default:
|
|
3177
|
-
destructive:
|
|
3178
|
-
warning:
|
|
3179
|
-
info:
|
|
3180
|
-
success:
|
|
2931
|
+
default: Info,
|
|
2932
|
+
destructive: AlertCircle,
|
|
2933
|
+
warning: AlertTriangle,
|
|
2934
|
+
info: Info,
|
|
2935
|
+
success: CheckCircle2
|
|
3181
2936
|
};
|
|
3182
|
-
const Icon2 = IconMap[variant] ||
|
|
2937
|
+
const Icon2 = IconMap[variant] || Info;
|
|
3183
2938
|
const variantMap = {
|
|
3184
2939
|
warning: "border-amber-200 bg-amber-50 text-amber-900 [&>svg]:text-amber-600",
|
|
3185
2940
|
info: "border-blue-200 bg-blue-50 text-blue-900 [&>svg]:text-blue-600",
|
|
@@ -3187,27 +2942,27 @@ var AlertAtom = ({
|
|
|
3187
2942
|
};
|
|
3188
2943
|
const customClass = variantMap[variant] || "";
|
|
3189
2944
|
const shadcnVariant = ["warning", "info", "success"].includes(variant) ? "default" : variant;
|
|
3190
|
-
return /* @__PURE__ */ (
|
|
2945
|
+
return /* @__PURE__ */ jsxs24(
|
|
3191
2946
|
Alert,
|
|
3192
2947
|
{
|
|
3193
2948
|
variant: shadcnVariant,
|
|
3194
2949
|
className: cn("rounded-2xl", customClass, className),
|
|
3195
2950
|
children: [
|
|
3196
|
-
/* @__PURE__ */ (
|
|
3197
|
-
/* @__PURE__ */ (
|
|
3198
|
-
description && /* @__PURE__ */ (
|
|
2951
|
+
/* @__PURE__ */ jsx52(Icon2, { className: "h-4 w-4" }),
|
|
2952
|
+
/* @__PURE__ */ jsx52(AlertTitle, { className: "font-bold", children: title }),
|
|
2953
|
+
description && /* @__PURE__ */ jsx52(AlertDescription, { children: description })
|
|
3199
2954
|
]
|
|
3200
2955
|
}
|
|
3201
2956
|
);
|
|
3202
2957
|
};
|
|
3203
2958
|
|
|
3204
2959
|
// src/atoms/SeparatorAtom.tsx
|
|
3205
|
-
|
|
2960
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
3206
2961
|
var SeparatorAtom = ({
|
|
3207
2962
|
orientation = "horizontal",
|
|
3208
2963
|
className
|
|
3209
2964
|
}) => {
|
|
3210
|
-
return /* @__PURE__ */ (
|
|
2965
|
+
return /* @__PURE__ */ jsx53(
|
|
3211
2966
|
Separator2,
|
|
3212
2967
|
{
|
|
3213
2968
|
orientation,
|
|
@@ -3217,21 +2972,21 @@ var SeparatorAtom = ({
|
|
|
3217
2972
|
};
|
|
3218
2973
|
|
|
3219
2974
|
// src/atoms/TableAtom.tsx
|
|
3220
|
-
|
|
2975
|
+
import { jsx as jsx54, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
3221
2976
|
var TableAtom = ({
|
|
3222
2977
|
headers,
|
|
3223
2978
|
rows,
|
|
3224
2979
|
className
|
|
3225
2980
|
}) => {
|
|
3226
|
-
return /* @__PURE__ */ (
|
|
2981
|
+
return /* @__PURE__ */ jsx54(
|
|
3227
2982
|
"div",
|
|
3228
2983
|
{
|
|
3229
2984
|
className: cn(
|
|
3230
2985
|
"rounded-2xl border border-gray-100 overflow-hidden bg-white",
|
|
3231
2986
|
className
|
|
3232
2987
|
),
|
|
3233
|
-
children: /* @__PURE__ */ (
|
|
3234
|
-
/* @__PURE__ */ (
|
|
2988
|
+
children: /* @__PURE__ */ jsxs25(Table, { children: [
|
|
2989
|
+
/* @__PURE__ */ jsx54(TableHeader, { className: "bg-gray-50/50", children: /* @__PURE__ */ jsx54(TableRow, { children: headers.map((header, i) => /* @__PURE__ */ jsx54(
|
|
3235
2990
|
TableHead,
|
|
3236
2991
|
{
|
|
3237
2992
|
className: "text-xs font-bold text-gray-400 uppercase tracking-widest px-6 py-4",
|
|
@@ -3239,11 +2994,11 @@ var TableAtom = ({
|
|
|
3239
2994
|
},
|
|
3240
2995
|
i
|
|
3241
2996
|
)) }) }),
|
|
3242
|
-
/* @__PURE__ */ (
|
|
2997
|
+
/* @__PURE__ */ jsx54(TableBody, { children: rows.map((row, i) => /* @__PURE__ */ jsx54(
|
|
3243
2998
|
TableRow,
|
|
3244
2999
|
{
|
|
3245
3000
|
className: "hover:bg-purple-50/30 transition-colors border-gray-50",
|
|
3246
|
-
children: row.map((cell, j) => /* @__PURE__ */ (
|
|
3001
|
+
children: row.map((cell, j) => /* @__PURE__ */ jsx54(
|
|
3247
3002
|
TableCell,
|
|
3248
3003
|
{
|
|
3249
3004
|
className: "text-sm text-gray-700 px-6 py-4 font-medium",
|
|
@@ -3260,57 +3015,57 @@ var TableAtom = ({
|
|
|
3260
3015
|
};
|
|
3261
3016
|
|
|
3262
3017
|
// src/atoms/ScrollAreaAtom.tsx
|
|
3263
|
-
|
|
3264
|
-
|
|
3018
|
+
import React41 from "react";
|
|
3019
|
+
import { jsx as jsx55, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
3265
3020
|
var ScrollAreaAtom = ({
|
|
3266
3021
|
maxHeight = "300px",
|
|
3267
3022
|
children,
|
|
3268
3023
|
className,
|
|
3269
3024
|
renderComponent
|
|
3270
3025
|
}) => {
|
|
3271
|
-
return /* @__PURE__ */ (
|
|
3026
|
+
return /* @__PURE__ */ jsxs26(
|
|
3272
3027
|
ScrollArea,
|
|
3273
3028
|
{
|
|
3274
3029
|
className: cn("rounded-xl border", className),
|
|
3275
3030
|
style: { height: maxHeight },
|
|
3276
3031
|
children: [
|
|
3277
|
-
/* @__PURE__ */ (
|
|
3278
|
-
/* @__PURE__ */ (
|
|
3032
|
+
/* @__PURE__ */ jsx55("div", { className: "p-4", children: children.map((child) => /* @__PURE__ */ jsx55(React41.Fragment, { children: renderComponent(child) }, child.id)) }),
|
|
3033
|
+
/* @__PURE__ */ jsx55(ScrollBar, { orientation: "vertical" })
|
|
3279
3034
|
]
|
|
3280
3035
|
}
|
|
3281
3036
|
);
|
|
3282
3037
|
};
|
|
3283
3038
|
|
|
3284
3039
|
// src/atoms/CarouselAtom.tsx
|
|
3285
|
-
|
|
3286
|
-
|
|
3040
|
+
import React42 from "react";
|
|
3041
|
+
import { jsx as jsx56, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
3287
3042
|
var CarouselAtom = ({
|
|
3288
3043
|
items,
|
|
3289
3044
|
className,
|
|
3290
3045
|
renderComponent
|
|
3291
3046
|
}) => {
|
|
3292
|
-
return /* @__PURE__ */ (
|
|
3293
|
-
/* @__PURE__ */ (
|
|
3294
|
-
/* @__PURE__ */ (
|
|
3295
|
-
/* @__PURE__ */ (
|
|
3047
|
+
return /* @__PURE__ */ jsxs27(Carousel, { className: cn("w-full max-w-xs mx-auto", className), children: [
|
|
3048
|
+
/* @__PURE__ */ jsx56(CarouselContent, { children: items.map((slide, index) => /* @__PURE__ */ jsx56(CarouselItem, { children: /* @__PURE__ */ jsx56("div", { className: "p-1", children: slide.map((child) => /* @__PURE__ */ jsx56(React42.Fragment, { children: renderComponent(child) }, child.id)) }) }, index)) }),
|
|
3049
|
+
/* @__PURE__ */ jsx56(CarouselPrevious, {}),
|
|
3050
|
+
/* @__PURE__ */ jsx56(CarouselNext, {})
|
|
3296
3051
|
] });
|
|
3297
3052
|
};
|
|
3298
3053
|
|
|
3299
3054
|
// src/atoms/AspectRatioAtom.tsx
|
|
3300
|
-
|
|
3301
|
-
|
|
3055
|
+
import React43 from "react";
|
|
3056
|
+
import { jsx as jsx57 } from "react/jsx-runtime";
|
|
3302
3057
|
var AspectRatioAtom = ({
|
|
3303
3058
|
ratio = 16 / 9,
|
|
3304
3059
|
children,
|
|
3305
3060
|
className,
|
|
3306
3061
|
renderComponent
|
|
3307
3062
|
}) => {
|
|
3308
|
-
return /* @__PURE__ */ (
|
|
3063
|
+
return /* @__PURE__ */ jsx57("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx57(AspectRatio, { ratio, children: children.map((child) => /* @__PURE__ */ jsx57(React43.Fragment, { children: renderComponent(child) }, child.id)) }) });
|
|
3309
3064
|
};
|
|
3310
3065
|
|
|
3311
3066
|
// src/atoms/CollapsibleAtom.tsx
|
|
3312
|
-
|
|
3313
|
-
|
|
3067
|
+
import React44 from "react";
|
|
3068
|
+
import { jsx as jsx58, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
3314
3069
|
var CollapsibleAtom = ({
|
|
3315
3070
|
trigger,
|
|
3316
3071
|
content,
|
|
@@ -3318,52 +3073,52 @@ var CollapsibleAtom = ({
|
|
|
3318
3073
|
className,
|
|
3319
3074
|
renderComponent
|
|
3320
3075
|
}) => {
|
|
3321
|
-
return /* @__PURE__ */ (
|
|
3076
|
+
return /* @__PURE__ */ jsxs28(
|
|
3322
3077
|
Collapsible,
|
|
3323
3078
|
{
|
|
3324
3079
|
defaultOpen,
|
|
3325
3080
|
className: cn("w-full space-y-2", className),
|
|
3326
3081
|
children: [
|
|
3327
|
-
/* @__PURE__ */ (
|
|
3328
|
-
/* @__PURE__ */ (
|
|
3082
|
+
/* @__PURE__ */ jsx58(CollapsibleTrigger2, { asChild: true, children: /* @__PURE__ */ jsx58("div", { className: "flex items-center justify-between space-x-4 px-4 py-2 bg-gray-50 rounded-lg cursor-pointer hover:bg-gray-100 transition-colors", children: trigger.map((child) => /* @__PURE__ */ jsx58(React44.Fragment, { children: renderComponent(child) }, child.id)) }) }),
|
|
3083
|
+
/* @__PURE__ */ jsx58(CollapsibleContent2, { className: "space-y-2", children: content.map((child) => /* @__PURE__ */ jsx58(React44.Fragment, { children: renderComponent(child) }, child.id)) })
|
|
3329
3084
|
]
|
|
3330
3085
|
}
|
|
3331
3086
|
);
|
|
3332
3087
|
};
|
|
3333
3088
|
|
|
3334
3089
|
// src/atoms/TooltipAtom.tsx
|
|
3335
|
-
|
|
3336
|
-
|
|
3090
|
+
import React45 from "react";
|
|
3091
|
+
import { jsx as jsx59, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
3337
3092
|
var TooltipAtom = ({
|
|
3338
3093
|
content,
|
|
3339
3094
|
children,
|
|
3340
3095
|
className,
|
|
3341
3096
|
renderComponent
|
|
3342
3097
|
}) => {
|
|
3343
|
-
return /* @__PURE__ */ (
|
|
3344
|
-
/* @__PURE__ */ (
|
|
3345
|
-
/* @__PURE__ */ (
|
|
3098
|
+
return /* @__PURE__ */ jsx59(TooltipProvider, { children: /* @__PURE__ */ jsxs29(Tooltip, { children: [
|
|
3099
|
+
/* @__PURE__ */ jsx59(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx59("div", { className: cn("inline-block", className), children: children.map((child) => /* @__PURE__ */ jsx59(React45.Fragment, { children: renderComponent(child) }, child.id)) }) }),
|
|
3100
|
+
/* @__PURE__ */ jsx59(TooltipContent, { className: "bg-gray-900 text-white border-none rounded-lg shadow-xl px-3 py-1.5 text-xs", children: content })
|
|
3346
3101
|
] }) });
|
|
3347
3102
|
};
|
|
3348
3103
|
|
|
3349
3104
|
// src/atoms/PopoverAtom.tsx
|
|
3350
|
-
|
|
3351
|
-
|
|
3105
|
+
import React46 from "react";
|
|
3106
|
+
import { jsx as jsx60, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
3352
3107
|
var PopoverAtom = ({
|
|
3353
3108
|
trigger,
|
|
3354
3109
|
content,
|
|
3355
3110
|
className,
|
|
3356
3111
|
renderComponent
|
|
3357
3112
|
}) => {
|
|
3358
|
-
return /* @__PURE__ */ (
|
|
3359
|
-
/* @__PURE__ */ (
|
|
3360
|
-
/* @__PURE__ */ (
|
|
3113
|
+
return /* @__PURE__ */ jsxs30(Popover, { children: [
|
|
3114
|
+
/* @__PURE__ */ jsx60(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx60("div", { className: cn("inline-block cursor-pointer", className), children: trigger.map((child) => /* @__PURE__ */ jsx60(React46.Fragment, { children: renderComponent(child) }, child.id)) }) }),
|
|
3115
|
+
/* @__PURE__ */ jsx60(PopoverContent, { className: "w-80 rounded-2xl shadow-2xl border-gray-100 p-4 bg-white/95 backdrop-blur-sm", children: content.map((child) => /* @__PURE__ */ jsx60(React46.Fragment, { children: renderComponent(child) }, child.id)) })
|
|
3361
3116
|
] });
|
|
3362
3117
|
};
|
|
3363
3118
|
|
|
3364
3119
|
// src/atoms/DialogAtom.tsx
|
|
3365
|
-
|
|
3366
|
-
|
|
3120
|
+
import React47 from "react";
|
|
3121
|
+
import { jsx as jsx61, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
3367
3122
|
var DialogAtom = ({
|
|
3368
3123
|
title,
|
|
3369
3124
|
description,
|
|
@@ -3373,22 +3128,22 @@ var DialogAtom = ({
|
|
|
3373
3128
|
className,
|
|
3374
3129
|
renderComponent
|
|
3375
3130
|
}) => {
|
|
3376
|
-
return /* @__PURE__ */ (
|
|
3377
|
-
/* @__PURE__ */ (
|
|
3378
|
-
/* @__PURE__ */ (
|
|
3379
|
-
/* @__PURE__ */ (
|
|
3380
|
-
/* @__PURE__ */ (
|
|
3381
|
-
description && /* @__PURE__ */ (
|
|
3131
|
+
return /* @__PURE__ */ jsxs31(Dialog, { children: [
|
|
3132
|
+
/* @__PURE__ */ jsx61(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsx61("div", { className: cn("inline-block cursor-pointer", className), children: trigger.map((child) => /* @__PURE__ */ jsx61(React47.Fragment, { children: renderComponent(child) }, child.id)) }) }),
|
|
3133
|
+
/* @__PURE__ */ jsxs31(DialogContent, { className: "sm:max-w-[425px] rounded-3xl p-6 bg-white/95 backdrop-blur-md shadow-3xl border-gray-100", children: [
|
|
3134
|
+
/* @__PURE__ */ jsxs31(DialogHeader, { children: [
|
|
3135
|
+
/* @__PURE__ */ jsx61(DialogTitle, { className: "text-xl font-bold bg-gradient-to-r from-purple600 to-indigo-600 bg-clip-text text-transparent", children: title }),
|
|
3136
|
+
description && /* @__PURE__ */ jsx61(DialogDescription, { className: "text-gray-500 font-medium pt-1", children: description })
|
|
3382
3137
|
] }),
|
|
3383
|
-
/* @__PURE__ */ (
|
|
3384
|
-
footer && /* @__PURE__ */ (
|
|
3138
|
+
/* @__PURE__ */ jsx61("div", { className: "py-4", children: children.map((child) => /* @__PURE__ */ jsx61(React47.Fragment, { children: renderComponent(child) }, child.id)) }),
|
|
3139
|
+
footer && /* @__PURE__ */ jsx61(DialogFooter, { className: "pt-2", children: footer.map((child) => /* @__PURE__ */ jsx61(React47.Fragment, { children: renderComponent(child) }, child.id)) })
|
|
3385
3140
|
] })
|
|
3386
3141
|
] });
|
|
3387
3142
|
};
|
|
3388
3143
|
|
|
3389
3144
|
// src/atoms/SheetAtom.tsx
|
|
3390
|
-
|
|
3391
|
-
|
|
3145
|
+
import React48 from "react";
|
|
3146
|
+
import { jsx as jsx62, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
3392
3147
|
var SheetAtom = ({
|
|
3393
3148
|
side = "right",
|
|
3394
3149
|
title,
|
|
@@ -3399,20 +3154,20 @@ var SheetAtom = ({
|
|
|
3399
3154
|
className,
|
|
3400
3155
|
renderComponent
|
|
3401
3156
|
}) => {
|
|
3402
|
-
return /* @__PURE__ */ (
|
|
3403
|
-
/* @__PURE__ */ (
|
|
3404
|
-
/* @__PURE__ */ (
|
|
3157
|
+
return /* @__PURE__ */ jsxs32(Sheet, { children: [
|
|
3158
|
+
/* @__PURE__ */ jsx62(SheetTrigger, { asChild: true, children: /* @__PURE__ */ jsx62("div", { className: cn("inline-block cursor-pointer", className), children: trigger.map((child) => /* @__PURE__ */ jsx62(React48.Fragment, { children: renderComponent(child) }, child.id)) }) }),
|
|
3159
|
+
/* @__PURE__ */ jsxs32(
|
|
3405
3160
|
SheetContent,
|
|
3406
3161
|
{
|
|
3407
3162
|
side,
|
|
3408
3163
|
className: "bg-white/95 backdrop-blur-md border-l-gray-100 shadow-2xl p-6",
|
|
3409
3164
|
children: [
|
|
3410
|
-
/* @__PURE__ */ (
|
|
3411
|
-
/* @__PURE__ */ (
|
|
3412
|
-
description && /* @__PURE__ */ (
|
|
3165
|
+
/* @__PURE__ */ jsxs32(SheetHeader, { children: [
|
|
3166
|
+
/* @__PURE__ */ jsx62(SheetTitle, { className: "text-xl font-bold text-gray-900", children: title }),
|
|
3167
|
+
description && /* @__PURE__ */ jsx62(SheetDescription, { className: "text-gray-500 font-medium", children: description })
|
|
3413
3168
|
] }),
|
|
3414
|
-
/* @__PURE__ */ (
|
|
3415
|
-
footer && /* @__PURE__ */ (
|
|
3169
|
+
/* @__PURE__ */ jsx62("div", { className: "py-8", children: children.map((child) => /* @__PURE__ */ jsx62(React48.Fragment, { children: renderComponent(child) }, child.id)) }),
|
|
3170
|
+
footer && /* @__PURE__ */ jsx62(SheetFooter, { className: "absolute bottom-6 left-6 right-6", children: footer.map((child) => /* @__PURE__ */ jsx62(React48.Fragment, { children: renderComponent(child) }, child.id)) })
|
|
3416
3171
|
]
|
|
3417
3172
|
}
|
|
3418
3173
|
)
|
|
@@ -3420,8 +3175,8 @@ var SheetAtom = ({
|
|
|
3420
3175
|
};
|
|
3421
3176
|
|
|
3422
3177
|
// src/atoms/AlertDialogAtom.tsx
|
|
3423
|
-
|
|
3424
|
-
|
|
3178
|
+
import React49 from "react";
|
|
3179
|
+
import { jsx as jsx63, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
3425
3180
|
var AlertDialogAtom = ({
|
|
3426
3181
|
title,
|
|
3427
3182
|
description,
|
|
@@ -3433,16 +3188,16 @@ var AlertDialogAtom = ({
|
|
|
3433
3188
|
className,
|
|
3434
3189
|
renderComponent
|
|
3435
3190
|
}) => {
|
|
3436
|
-
return /* @__PURE__ */ (
|
|
3437
|
-
/* @__PURE__ */ (
|
|
3438
|
-
/* @__PURE__ */ (
|
|
3439
|
-
/* @__PURE__ */ (
|
|
3440
|
-
/* @__PURE__ */ (
|
|
3441
|
-
/* @__PURE__ */ (
|
|
3191
|
+
return /* @__PURE__ */ jsxs33(AlertDialog, { children: [
|
|
3192
|
+
/* @__PURE__ */ jsx63(AlertDialogTrigger, { asChild: true, children: /* @__PURE__ */ jsx63("div", { className: cn("inline-block cursor-pointer", className), children: trigger.map((child) => /* @__PURE__ */ jsx63(React49.Fragment, { children: renderComponent(child) }, child.id)) }) }),
|
|
3193
|
+
/* @__PURE__ */ jsxs33(AlertDialogContent, { className: "rounded-3xl p-6 bg-white shadow-3xl border-gray-100", children: [
|
|
3194
|
+
/* @__PURE__ */ jsxs33(AlertDialogHeader, { children: [
|
|
3195
|
+
/* @__PURE__ */ jsx63(AlertDialogTitle, { className: "text-lg font-bold text-gray-900", children: title }),
|
|
3196
|
+
/* @__PURE__ */ jsx63(AlertDialogDescription, { className: "text-gray-500 font-medium", children: description })
|
|
3442
3197
|
] }),
|
|
3443
|
-
/* @__PURE__ */ (
|
|
3444
|
-
/* @__PURE__ */ (
|
|
3445
|
-
/* @__PURE__ */ (
|
|
3198
|
+
/* @__PURE__ */ jsxs33(AlertDialogFooter, { className: "gap-2 sm:gap-0", children: [
|
|
3199
|
+
/* @__PURE__ */ jsx63(AlertDialogCancel, { className: "rounded-full border-gray-200 hover:bg-gray-50 font-semibold", children: cancelLabel }),
|
|
3200
|
+
/* @__PURE__ */ jsx63(
|
|
3446
3201
|
AlertDialogAction,
|
|
3447
3202
|
{
|
|
3448
3203
|
onClick: () => action && onAction?.(action),
|
|
@@ -3456,21 +3211,21 @@ var AlertDialogAtom = ({
|
|
|
3456
3211
|
};
|
|
3457
3212
|
|
|
3458
3213
|
// src/atoms/BreadcrumbAtom.tsx
|
|
3459
|
-
|
|
3460
|
-
|
|
3214
|
+
import React50 from "react";
|
|
3215
|
+
import { jsx as jsx64, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
3461
3216
|
var BreadcrumbAtom = ({
|
|
3462
3217
|
items,
|
|
3463
3218
|
className
|
|
3464
3219
|
}) => {
|
|
3465
|
-
return /* @__PURE__ */ (
|
|
3466
|
-
/* @__PURE__ */ (
|
|
3467
|
-
index < items.length - 1 && /* @__PURE__ */ (
|
|
3220
|
+
return /* @__PURE__ */ jsx64(Breadcrumb, { className, children: /* @__PURE__ */ jsx64(BreadcrumbList, { children: items.map((item, index) => /* @__PURE__ */ jsxs34(React50.Fragment, { children: [
|
|
3221
|
+
/* @__PURE__ */ jsx64(BreadcrumbItem, { children: item.isCurrent ? /* @__PURE__ */ jsx64(BreadcrumbPage, { children: item.label }) : /* @__PURE__ */ jsx64(BreadcrumbLink, { href: item.href || "#", children: item.label }) }),
|
|
3222
|
+
index < items.length - 1 && /* @__PURE__ */ jsx64(BreadcrumbSeparator, {})
|
|
3468
3223
|
] }, index)) }) });
|
|
3469
3224
|
};
|
|
3470
3225
|
|
|
3471
3226
|
// src/atoms/SpinnerAtom.tsx
|
|
3472
|
-
|
|
3473
|
-
|
|
3227
|
+
import { Loader2 as Loader22 } from "lucide-react";
|
|
3228
|
+
import { jsx as jsx65 } from "react/jsx-runtime";
|
|
3474
3229
|
var SpinnerAtom = ({
|
|
3475
3230
|
size = "md",
|
|
3476
3231
|
className
|
|
@@ -3481,8 +3236,8 @@ var SpinnerAtom = ({
|
|
|
3481
3236
|
lg: "h-8 w-8",
|
|
3482
3237
|
xl: "h-12 w-12"
|
|
3483
3238
|
};
|
|
3484
|
-
return /* @__PURE__ */ (
|
|
3485
|
-
|
|
3239
|
+
return /* @__PURE__ */ jsx65(
|
|
3240
|
+
Loader22,
|
|
3486
3241
|
{
|
|
3487
3242
|
className: cn(
|
|
3488
3243
|
"animate-spin text-purple500",
|
|
@@ -3494,27 +3249,27 @@ var SpinnerAtom = ({
|
|
|
3494
3249
|
};
|
|
3495
3250
|
|
|
3496
3251
|
// src/atoms/CalendarAtom.tsx
|
|
3497
|
-
|
|
3252
|
+
import { jsx as jsx66 } from "react/jsx-runtime";
|
|
3498
3253
|
var CalendarAtom = ({
|
|
3499
3254
|
mode = "single",
|
|
3500
3255
|
selectedDate,
|
|
3501
3256
|
className
|
|
3502
3257
|
}) => {
|
|
3503
3258
|
const date = selectedDate ? new Date(selectedDate) : void 0;
|
|
3504
|
-
return /* @__PURE__ */ (
|
|
3259
|
+
return /* @__PURE__ */ jsx66(
|
|
3505
3260
|
"div",
|
|
3506
3261
|
{
|
|
3507
3262
|
className: cn(
|
|
3508
3263
|
"p-3 bg-white rounded-3xl border border-gray-100 shadow-sm inline-block",
|
|
3509
3264
|
className
|
|
3510
3265
|
),
|
|
3511
|
-
children: /* @__PURE__ */ (
|
|
3266
|
+
children: /* @__PURE__ */ jsx66(Calendar, { mode, selected: date, className: "rounded-xl" })
|
|
3512
3267
|
}
|
|
3513
3268
|
);
|
|
3514
3269
|
};
|
|
3515
3270
|
|
|
3516
3271
|
// src/atoms/PaginationAtom.tsx
|
|
3517
|
-
|
|
3272
|
+
import { jsx as jsx67, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
3518
3273
|
var PaginationAtom = ({
|
|
3519
3274
|
currentPage,
|
|
3520
3275
|
totalPages,
|
|
@@ -3522,36 +3277,36 @@ var PaginationAtom = ({
|
|
|
3522
3277
|
hasPrev = true,
|
|
3523
3278
|
className
|
|
3524
3279
|
}) => {
|
|
3525
|
-
return /* @__PURE__ */ (
|
|
3526
|
-
hasPrev && /* @__PURE__ */ (
|
|
3527
|
-
/* @__PURE__ */ (
|
|
3528
|
-
totalPages > currentPage && /* @__PURE__ */ (
|
|
3529
|
-
hasNext && /* @__PURE__ */ (
|
|
3280
|
+
return /* @__PURE__ */ jsx67(Pagination, { className, children: /* @__PURE__ */ jsxs35(PaginationContent, { children: [
|
|
3281
|
+
hasPrev && /* @__PURE__ */ jsx67(PaginationItem, { children: /* @__PURE__ */ jsx67(PaginationPrevious, { href: "#" }) }),
|
|
3282
|
+
/* @__PURE__ */ jsx67(PaginationItem, { children: /* @__PURE__ */ jsx67(PaginationLink, { href: "#", isActive: true, children: currentPage }) }),
|
|
3283
|
+
totalPages > currentPage && /* @__PURE__ */ jsx67(PaginationItem, { children: /* @__PURE__ */ jsx67(PaginationEllipsis, {}) }),
|
|
3284
|
+
hasNext && /* @__PURE__ */ jsx67(PaginationItem, { children: /* @__PURE__ */ jsx67(PaginationNext, { href: "#" }) })
|
|
3530
3285
|
] }) });
|
|
3531
3286
|
};
|
|
3532
3287
|
|
|
3533
3288
|
// src/atoms/CommandAtom.tsx
|
|
3534
|
-
|
|
3535
|
-
|
|
3289
|
+
import React51 from "react";
|
|
3290
|
+
import { jsx as jsx68, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
3536
3291
|
var CommandAtom = ({
|
|
3537
3292
|
placeholder = "Search...",
|
|
3538
3293
|
groups,
|
|
3539
3294
|
className
|
|
3540
3295
|
}) => {
|
|
3541
|
-
return /* @__PURE__ */ (
|
|
3296
|
+
return /* @__PURE__ */ jsx68(
|
|
3542
3297
|
"div",
|
|
3543
3298
|
{
|
|
3544
3299
|
className: cn(
|
|
3545
3300
|
"rounded-2xl border border-gray-100 shadow-lg overflow-hidden bg-white max-w-[400px]",
|
|
3546
3301
|
className
|
|
3547
3302
|
),
|
|
3548
|
-
children: /* @__PURE__ */ (
|
|
3549
|
-
/* @__PURE__ */ (
|
|
3550
|
-
/* @__PURE__ */ (
|
|
3551
|
-
/* @__PURE__ */ (
|
|
3552
|
-
groups.map((group, i) => /* @__PURE__ */ (
|
|
3553
|
-
/* @__PURE__ */ (
|
|
3554
|
-
i < groups.length - 1 && /* @__PURE__ */ (
|
|
3303
|
+
children: /* @__PURE__ */ jsxs36(Command, { children: [
|
|
3304
|
+
/* @__PURE__ */ jsx68(CommandInput, { placeholder }),
|
|
3305
|
+
/* @__PURE__ */ jsxs36(CommandList, { children: [
|
|
3306
|
+
/* @__PURE__ */ jsx68(CommandEmpty, { children: "No results found." }),
|
|
3307
|
+
groups.map((group, i) => /* @__PURE__ */ jsxs36(React51.Fragment, { children: [
|
|
3308
|
+
/* @__PURE__ */ jsx68(CommandGroup, { heading: group.heading, children: group.items.map((item, j) => /* @__PURE__ */ jsx68(CommandItem, { value: item.value, children: /* @__PURE__ */ jsx68("span", { children: item.label }) }, j)) }),
|
|
3309
|
+
i < groups.length - 1 && /* @__PURE__ */ jsx68(CommandSeparator, {})
|
|
3555
3310
|
] }, i))
|
|
3556
3311
|
] })
|
|
3557
3312
|
] })
|
|
@@ -3560,10 +3315,10 @@ var CommandAtom = ({
|
|
|
3560
3315
|
};
|
|
3561
3316
|
|
|
3562
3317
|
// src/molecules/generic/EditableField/EditableField.tsx
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
var EditableField =
|
|
3318
|
+
import React52, { useState as useState2, useEffect as useEffect3, useRef as useRef2 } from "react";
|
|
3319
|
+
import { Check as Check6, X as X3, Pencil, Loader2 as Loader23 } from "lucide-react";
|
|
3320
|
+
import { jsx as jsx69, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
3321
|
+
var EditableField = React52.memo(
|
|
3567
3322
|
({
|
|
3568
3323
|
label,
|
|
3569
3324
|
value,
|
|
@@ -3579,12 +3334,12 @@ var EditableField = import_react16.default.memo(
|
|
|
3579
3334
|
renderDisplay,
|
|
3580
3335
|
renderEdit
|
|
3581
3336
|
}) => {
|
|
3582
|
-
const [localValue, setLocalValue] = (
|
|
3583
|
-
const inputRef = (
|
|
3584
|
-
(
|
|
3337
|
+
const [localValue, setLocalValue] = useState2(value);
|
|
3338
|
+
const inputRef = useRef2(null);
|
|
3339
|
+
useEffect3(() => {
|
|
3585
3340
|
setLocalValue(value);
|
|
3586
3341
|
}, [value, isEditingProp]);
|
|
3587
|
-
(
|
|
3342
|
+
useEffect3(() => {
|
|
3588
3343
|
if (isEditingProp) {
|
|
3589
3344
|
setTimeout(() => inputRef.current?.focus(), 0);
|
|
3590
3345
|
}
|
|
@@ -3606,7 +3361,7 @@ var EditableField = import_react16.default.memo(
|
|
|
3606
3361
|
}
|
|
3607
3362
|
switch (type) {
|
|
3608
3363
|
case "textarea":
|
|
3609
|
-
return /* @__PURE__ */ (
|
|
3364
|
+
return /* @__PURE__ */ jsx69(
|
|
3610
3365
|
Textarea,
|
|
3611
3366
|
{
|
|
3612
3367
|
ref: inputRef,
|
|
@@ -3619,29 +3374,29 @@ var EditableField = import_react16.default.memo(
|
|
|
3619
3374
|
}
|
|
3620
3375
|
);
|
|
3621
3376
|
case "select":
|
|
3622
|
-
return /* @__PURE__ */ (
|
|
3377
|
+
return /* @__PURE__ */ jsxs37(
|
|
3623
3378
|
Select,
|
|
3624
3379
|
{
|
|
3625
3380
|
value: localValue?.toString(),
|
|
3626
3381
|
onValueChange: (val) => setLocalValue(val),
|
|
3627
3382
|
children: [
|
|
3628
|
-
/* @__PURE__ */ (
|
|
3383
|
+
/* @__PURE__ */ jsx69(SelectTrigger, { className: "w-full", children: /* @__PURE__ */ jsx69(
|
|
3629
3384
|
SelectValue,
|
|
3630
3385
|
{
|
|
3631
3386
|
placeholder: config.placeholder || "Select an option"
|
|
3632
3387
|
}
|
|
3633
3388
|
) }),
|
|
3634
|
-
/* @__PURE__ */ (
|
|
3389
|
+
/* @__PURE__ */ jsx69(SelectContent, { children: config.options?.map((opt) => {
|
|
3635
3390
|
const label2 = typeof opt === "string" ? opt : opt.label;
|
|
3636
3391
|
const val = typeof opt === "string" ? opt : opt.value;
|
|
3637
|
-
return /* @__PURE__ */ (
|
|
3392
|
+
return /* @__PURE__ */ jsx69(SelectItem, { value: val, children: label2 }, val);
|
|
3638
3393
|
}) })
|
|
3639
3394
|
]
|
|
3640
3395
|
}
|
|
3641
3396
|
);
|
|
3642
3397
|
case "slider":
|
|
3643
|
-
return /* @__PURE__ */ (
|
|
3644
|
-
/* @__PURE__ */ (
|
|
3398
|
+
return /* @__PURE__ */ jsxs37("div", { className: "pt-6 pb-2 px-2", children: [
|
|
3399
|
+
/* @__PURE__ */ jsx69(
|
|
3645
3400
|
Slider,
|
|
3646
3401
|
{
|
|
3647
3402
|
defaultValue: [localValue?.min || 0, localValue?.max || 100],
|
|
@@ -3651,10 +3406,10 @@ var EditableField = import_react16.default.memo(
|
|
|
3651
3406
|
onValueChange: ([min, max]) => setLocalValue({ min, max })
|
|
3652
3407
|
}
|
|
3653
3408
|
),
|
|
3654
|
-
config.sliderConfig?.formatValue && /* @__PURE__ */ (
|
|
3409
|
+
config.sliderConfig?.formatValue && /* @__PURE__ */ jsx69("div", { className: "mt-2 text-xs text-muted-foreground text-center", children: config.sliderConfig.formatValue(localValue) })
|
|
3655
3410
|
] });
|
|
3656
3411
|
case "number":
|
|
3657
|
-
return /* @__PURE__ */ (
|
|
3412
|
+
return /* @__PURE__ */ jsx69(
|
|
3658
3413
|
Input,
|
|
3659
3414
|
{
|
|
3660
3415
|
ref: inputRef,
|
|
@@ -3668,7 +3423,7 @@ var EditableField = import_react16.default.memo(
|
|
|
3668
3423
|
}
|
|
3669
3424
|
);
|
|
3670
3425
|
default:
|
|
3671
|
-
return /* @__PURE__ */ (
|
|
3426
|
+
return /* @__PURE__ */ jsx69(
|
|
3672
3427
|
Input,
|
|
3673
3428
|
{
|
|
3674
3429
|
ref: inputRef,
|
|
@@ -3687,13 +3442,13 @@ var EditableField = import_react16.default.memo(
|
|
|
3687
3442
|
return config.sliderConfig?.formatValue ? config.sliderConfig.formatValue(value) : `${value?.min} - ${value?.max}`;
|
|
3688
3443
|
}
|
|
3689
3444
|
if (!value)
|
|
3690
|
-
return /* @__PURE__ */ (
|
|
3445
|
+
return /* @__PURE__ */ jsx69("span", { className: "text-muted-foreground italic", children: "Not set" });
|
|
3691
3446
|
return value.toString();
|
|
3692
3447
|
};
|
|
3693
|
-
return /* @__PURE__ */ (
|
|
3694
|
-
/* @__PURE__ */ (
|
|
3695
|
-
/* @__PURE__ */ (
|
|
3696
|
-
isChanged && !isEditingProp && /* @__PURE__ */ (
|
|
3448
|
+
return /* @__PURE__ */ jsxs37("div", { className: cn("group flex flex-col gap-1.5 py-2", className), children: [
|
|
3449
|
+
/* @__PURE__ */ jsxs37("div", { className: "flex items-center justify-between", children: [
|
|
3450
|
+
/* @__PURE__ */ jsx69(Label, { className: "text-xs font-medium text-gray500 uppercase tracking-tight", children: label }),
|
|
3451
|
+
isChanged && !isEditingProp && /* @__PURE__ */ jsx69(
|
|
3697
3452
|
"div",
|
|
3698
3453
|
{
|
|
3699
3454
|
className: "w-1.5 h-1.5 rounded-full bg-amber-500",
|
|
@@ -3701,10 +3456,10 @@ var EditableField = import_react16.default.memo(
|
|
|
3701
3456
|
}
|
|
3702
3457
|
)
|
|
3703
3458
|
] }),
|
|
3704
|
-
isEditingProp ? /* @__PURE__ */ (
|
|
3459
|
+
isEditingProp ? /* @__PURE__ */ jsxs37("div", { className: "flex flex-col gap-2", children: [
|
|
3705
3460
|
renderInput(),
|
|
3706
|
-
/* @__PURE__ */ (
|
|
3707
|
-
/* @__PURE__ */ (
|
|
3461
|
+
/* @__PURE__ */ jsxs37("div", { className: "flex items-center justify-end gap-2", children: [
|
|
3462
|
+
/* @__PURE__ */ jsx69(
|
|
3708
3463
|
Button,
|
|
3709
3464
|
{
|
|
3710
3465
|
size: "icon",
|
|
@@ -3712,21 +3467,21 @@ var EditableField = import_react16.default.memo(
|
|
|
3712
3467
|
className: "h-8 w-8 text-destructive border-destructive/20 hover:bg-destructive/10",
|
|
3713
3468
|
onClick: onCancel,
|
|
3714
3469
|
disabled: isSaving,
|
|
3715
|
-
children: /* @__PURE__ */ (
|
|
3470
|
+
children: /* @__PURE__ */ jsx69(X3, { className: "h-4 w-4" })
|
|
3716
3471
|
}
|
|
3717
3472
|
),
|
|
3718
|
-
/* @__PURE__ */ (
|
|
3473
|
+
/* @__PURE__ */ jsx69(
|
|
3719
3474
|
Button,
|
|
3720
3475
|
{
|
|
3721
3476
|
size: "icon",
|
|
3722
3477
|
className: "h-8 w-8 bg-purple500 hover:bg-purple600 text-white",
|
|
3723
3478
|
onClick: handleSave,
|
|
3724
3479
|
disabled: isSaving,
|
|
3725
|
-
children: isSaving ? /* @__PURE__ */ (
|
|
3480
|
+
children: isSaving ? /* @__PURE__ */ jsx69(Loader23, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ jsx69(Check6, { className: "h-4 w-4" })
|
|
3726
3481
|
}
|
|
3727
3482
|
)
|
|
3728
3483
|
] })
|
|
3729
|
-
] }) : /* @__PURE__ */ (
|
|
3484
|
+
] }) : /* @__PURE__ */ jsxs37(
|
|
3730
3485
|
"div",
|
|
3731
3486
|
{
|
|
3732
3487
|
className: cn(
|
|
@@ -3735,8 +3490,8 @@ var EditableField = import_react16.default.memo(
|
|
|
3735
3490
|
),
|
|
3736
3491
|
onClick: onEdit,
|
|
3737
3492
|
children: [
|
|
3738
|
-
/* @__PURE__ */ (
|
|
3739
|
-
/* @__PURE__ */ (
|
|
3493
|
+
/* @__PURE__ */ jsx69("div", { className: "text-sm text-gray-900 font-medium truncate flex-1 leading-relaxed", children: formattedValue() }),
|
|
3494
|
+
/* @__PURE__ */ jsx69(Pencil, { className: "h-3.5 w-3.5 text-gray-400 opacity-0 group-hover:opacity-100 transition-opacity" })
|
|
3740
3495
|
]
|
|
3741
3496
|
}
|
|
3742
3497
|
)
|
|
@@ -3746,10 +3501,10 @@ var EditableField = import_react16.default.memo(
|
|
|
3746
3501
|
EditableField.displayName = "EditableField";
|
|
3747
3502
|
|
|
3748
3503
|
// src/molecules/generic/ActionButton/ActionButton.tsx
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
var ActionButton =
|
|
3504
|
+
import React53, { useState as useState3, useEffect as useEffect4 } from "react";
|
|
3505
|
+
import { Pause, Play, ArrowRight as ArrowRight2, Loader2 as Loader24 } from "lucide-react";
|
|
3506
|
+
import { Fragment as Fragment2, jsx as jsx70, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
3507
|
+
var ActionButton = React53.memo(
|
|
3753
3508
|
({
|
|
3754
3509
|
label,
|
|
3755
3510
|
secondaryLabel,
|
|
@@ -3764,13 +3519,13 @@ var ActionButton = import_react17.default.memo(
|
|
|
3764
3519
|
className,
|
|
3765
3520
|
showCountdown = true
|
|
3766
3521
|
}) => {
|
|
3767
|
-
const [timeLeft, setTimeLeft] = (
|
|
3768
|
-
(
|
|
3522
|
+
const [timeLeft, setTimeLeft] = useState3(countdownProp || 0);
|
|
3523
|
+
useEffect4(() => {
|
|
3769
3524
|
if (countdownProp !== void 0) {
|
|
3770
3525
|
setTimeLeft(countdownProp);
|
|
3771
3526
|
}
|
|
3772
3527
|
}, [countdownProp]);
|
|
3773
|
-
(
|
|
3528
|
+
useEffect4(() => {
|
|
3774
3529
|
if (countdownProp === void 0 || countdownProp <= 0 || isPaused || isLoading || disabled) {
|
|
3775
3530
|
return;
|
|
3776
3531
|
}
|
|
@@ -3787,8 +3542,8 @@ var ActionButton = import_react17.default.memo(
|
|
|
3787
3542
|
return () => clearInterval(timer);
|
|
3788
3543
|
}, [countdownProp, isPaused, isLoading, disabled, onProceed]);
|
|
3789
3544
|
const progress = countdownProp ? timeLeft / countdownProp * 100 : 0;
|
|
3790
|
-
return /* @__PURE__ */ (
|
|
3791
|
-
/* @__PURE__ */ (
|
|
3545
|
+
return /* @__PURE__ */ jsxs38("div", { className: cn("inline-flex items-center gap-2", className), children: [
|
|
3546
|
+
/* @__PURE__ */ jsxs38(
|
|
3792
3547
|
Button,
|
|
3793
3548
|
{
|
|
3794
3549
|
variant,
|
|
@@ -3802,15 +3557,15 @@ var ActionButton = import_react17.default.memo(
|
|
|
3802
3557
|
isLoading && "opacity-80"
|
|
3803
3558
|
),
|
|
3804
3559
|
children: [
|
|
3805
|
-
/* @__PURE__ */ (
|
|
3806
|
-
/* @__PURE__ */ (
|
|
3807
|
-
showCountdown && countdownProp && countdownProp > 0 && !isLoading && /* @__PURE__ */ (
|
|
3560
|
+
/* @__PURE__ */ jsx70("div", { className: "relative z-10 flex items-center justify-center gap-2", children: isLoading ? /* @__PURE__ */ jsx70(Loader24, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ jsxs38(Fragment2, { children: [
|
|
3561
|
+
/* @__PURE__ */ jsx70("span", { children: label }),
|
|
3562
|
+
showCountdown && countdownProp && countdownProp > 0 && !isLoading && /* @__PURE__ */ jsxs38("span", { className: "opacity-70 text-xs bg-white/20 px-1.5 py-0.5 rounded-md tabular-nums min-w-[24px]", children: [
|
|
3808
3563
|
timeLeft,
|
|
3809
3564
|
"s"
|
|
3810
3565
|
] }),
|
|
3811
|
-
/* @__PURE__ */ (
|
|
3566
|
+
/* @__PURE__ */ jsx70(ArrowRight2, { className: "h-4 w-4 group-hover:translate-x-1 transition-transform" })
|
|
3812
3567
|
] }) }),
|
|
3813
|
-
!isPaused && countdownProp && countdownProp > 0 && /* @__PURE__ */ (
|
|
3568
|
+
!isPaused && countdownProp && countdownProp > 0 && /* @__PURE__ */ jsx70(
|
|
3814
3569
|
"div",
|
|
3815
3570
|
{
|
|
3816
3571
|
className: "absolute bottom-0 left-0 h-0.5 bg-white/30 transition-all duration-1000 ease-linear",
|
|
@@ -3820,7 +3575,7 @@ var ActionButton = import_react17.default.memo(
|
|
|
3820
3575
|
]
|
|
3821
3576
|
}
|
|
3822
3577
|
),
|
|
3823
|
-
countdownProp !== void 0 && countdownProp > 0 && onPause && /* @__PURE__ */ (
|
|
3578
|
+
countdownProp !== void 0 && countdownProp > 0 && onPause && /* @__PURE__ */ jsx70(
|
|
3824
3579
|
Button,
|
|
3825
3580
|
{
|
|
3826
3581
|
variant: "ghost",
|
|
@@ -3828,20 +3583,20 @@ var ActionButton = import_react17.default.memo(
|
|
|
3828
3583
|
onClick: onPause,
|
|
3829
3584
|
className: "h-10 w-10 rounded-full hover:bg-gray-100 text-gray-500",
|
|
3830
3585
|
title: isPaused ? "Resume auto-proceed" : "Pause auto-proceed",
|
|
3831
|
-
children: isPaused ? /* @__PURE__ */ (
|
|
3586
|
+
children: isPaused ? /* @__PURE__ */ jsx70(Play, { className: "h-4 w-4 fill-current" }) : /* @__PURE__ */ jsx70(Pause, { className: "h-4 w-4 fill-current" })
|
|
3832
3587
|
}
|
|
3833
3588
|
),
|
|
3834
|
-
secondaryLabel && /* @__PURE__ */ (
|
|
3589
|
+
secondaryLabel && /* @__PURE__ */ jsx70("span", { className: "text-sm text-gray-500 font-medium italic", children: secondaryLabel })
|
|
3835
3590
|
] });
|
|
3836
3591
|
}
|
|
3837
3592
|
);
|
|
3838
3593
|
ActionButton.displayName = "ActionButton";
|
|
3839
3594
|
|
|
3840
3595
|
// src/molecules/generic/FormCard/FormCard.tsx
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
var FormCard =
|
|
3596
|
+
import React54 from "react";
|
|
3597
|
+
import { Copy } from "lucide-react";
|
|
3598
|
+
import { jsx as jsx71, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
3599
|
+
var FormCard = React54.memo(
|
|
3845
3600
|
({
|
|
3846
3601
|
title,
|
|
3847
3602
|
fields,
|
|
@@ -3867,7 +3622,7 @@ var FormCard = import_react18.default.memo(
|
|
|
3867
3622
|
).join("\n");
|
|
3868
3623
|
navigator.clipboard.writeText(text);
|
|
3869
3624
|
};
|
|
3870
|
-
return /* @__PURE__ */ (
|
|
3625
|
+
return /* @__PURE__ */ jsxs39(
|
|
3871
3626
|
Card,
|
|
3872
3627
|
{
|
|
3873
3628
|
className: cn(
|
|
@@ -3875,22 +3630,22 @@ var FormCard = import_react18.default.memo(
|
|
|
3875
3630
|
className
|
|
3876
3631
|
),
|
|
3877
3632
|
children: [
|
|
3878
|
-
/* @__PURE__ */ (
|
|
3879
|
-
/* @__PURE__ */ (
|
|
3880
|
-
/* @__PURE__ */ (
|
|
3633
|
+
/* @__PURE__ */ jsxs39(CardHeader, { className: "flex flex-row items-center justify-between pb-2 space-y-0", children: [
|
|
3634
|
+
/* @__PURE__ */ jsx71(CardTitle, { className: "text-lg font-bold text-gray-900 tracking-tight", children: title }),
|
|
3635
|
+
/* @__PURE__ */ jsx71(
|
|
3881
3636
|
"button",
|
|
3882
3637
|
{
|
|
3883
3638
|
onClick: handleCopyAll,
|
|
3884
3639
|
className: "p-1.5 rounded-md hover:bg-gray-100 text-gray-400 hover:text-gray-600 transition-colors",
|
|
3885
3640
|
title: "Copy all details",
|
|
3886
|
-
children: /* @__PURE__ */ (
|
|
3641
|
+
children: /* @__PURE__ */ jsx71(Copy, { className: "h-4 w-4" })
|
|
3887
3642
|
}
|
|
3888
3643
|
)
|
|
3889
3644
|
] }),
|
|
3890
|
-
/* @__PURE__ */ (
|
|
3891
|
-
showTimeline && /* @__PURE__ */ (
|
|
3892
|
-
/* @__PURE__ */ (
|
|
3893
|
-
showTimeline && /* @__PURE__ */ (
|
|
3645
|
+
/* @__PURE__ */ jsx71(CardContent, { className: "pt-2 pb-6", children: /* @__PURE__ */ jsxs39("div", { className: "relative", children: [
|
|
3646
|
+
showTimeline && /* @__PURE__ */ jsx71("div", { className: "absolute left-[7px] top-2 bottom-6 w-0.5 border-l-2 border-dotted border-gray200 pointer-events-none" }),
|
|
3647
|
+
/* @__PURE__ */ jsx71("div", { className: "space-y-4", children: fields.map((field) => /* @__PURE__ */ jsxs39("div", { className: "relative pl-6", children: [
|
|
3648
|
+
showTimeline && /* @__PURE__ */ jsx71(
|
|
3894
3649
|
"div",
|
|
3895
3650
|
{
|
|
3896
3651
|
className: cn(
|
|
@@ -3899,7 +3654,7 @@ var FormCard = import_react18.default.memo(
|
|
|
3899
3654
|
)
|
|
3900
3655
|
}
|
|
3901
3656
|
),
|
|
3902
|
-
/* @__PURE__ */ (
|
|
3657
|
+
/* @__PURE__ */ jsx71(
|
|
3903
3658
|
EditableField,
|
|
3904
3659
|
{
|
|
3905
3660
|
label: field.label,
|
|
@@ -3916,8 +3671,8 @@ var FormCard = import_react18.default.memo(
|
|
|
3916
3671
|
)
|
|
3917
3672
|
] }, field.key)) })
|
|
3918
3673
|
] }) }),
|
|
3919
|
-
(onProceed || footer) && /* @__PURE__ */ (
|
|
3920
|
-
onProceed && proceedLabel && /* @__PURE__ */ (
|
|
3674
|
+
(onProceed || footer) && /* @__PURE__ */ jsxs39(CardFooter, { className: "flex flex-col gap-4 pt-0 border-t border-gray-100/50 bg-gray-50/30 p-6", children: [
|
|
3675
|
+
onProceed && proceedLabel && /* @__PURE__ */ jsx71("div", { className: "w-full flex justify-center", children: /* @__PURE__ */ jsx71(
|
|
3921
3676
|
ActionButton,
|
|
3922
3677
|
{
|
|
3923
3678
|
label: proceedLabel,
|
|
@@ -3937,9 +3692,9 @@ var FormCard = import_react18.default.memo(
|
|
|
3937
3692
|
FormCard.displayName = "FormCard";
|
|
3938
3693
|
|
|
3939
3694
|
// src/molecules/creator-discovery/CampaignSeedCard/CampaignSeedCard.tsx
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3695
|
+
import React55 from "react";
|
|
3696
|
+
import { CheckCircle2 as CheckCircle22 } from "lucide-react";
|
|
3697
|
+
import { jsx as jsx72, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
3943
3698
|
var CAMPAIGN_SEED_FIELDS = [
|
|
3944
3699
|
{
|
|
3945
3700
|
key: "brand",
|
|
@@ -4008,23 +3763,23 @@ var CAMPAIGN_SEED_FIELDS = [
|
|
|
4008
3763
|
rows: 4
|
|
4009
3764
|
}
|
|
4010
3765
|
];
|
|
4011
|
-
var CampaignSeedCard =
|
|
3766
|
+
var CampaignSeedCard = React55.memo(
|
|
4012
3767
|
({
|
|
4013
3768
|
selectionStatus,
|
|
4014
3769
|
isLatestMessage = true,
|
|
4015
3770
|
className,
|
|
4016
3771
|
...formCardProps
|
|
4017
3772
|
}) => {
|
|
4018
|
-
return /* @__PURE__ */ (
|
|
3773
|
+
return /* @__PURE__ */ jsx72("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ jsx72(
|
|
4019
3774
|
FormCard,
|
|
4020
3775
|
{
|
|
4021
3776
|
...formCardProps,
|
|
4022
3777
|
title: formCardProps.title || "Brand Information",
|
|
4023
3778
|
fields: CAMPAIGN_SEED_FIELDS,
|
|
4024
3779
|
className,
|
|
4025
|
-
footer: !isLatestMessage && selectionStatus ? /* @__PURE__ */ (
|
|
4026
|
-
/* @__PURE__ */ (
|
|
4027
|
-
/* @__PURE__ */ (
|
|
3780
|
+
footer: !isLatestMessage && selectionStatus ? /* @__PURE__ */ jsxs40("div", { className: "flex justify-end items-center gap-1.5 text-green-600 text-xs font-semibold py-1", children: [
|
|
3781
|
+
/* @__PURE__ */ jsx72(CheckCircle22, { className: "h-4 w-4" }),
|
|
3782
|
+
/* @__PURE__ */ jsx72("span", { children: selectionStatus === "agent" ? "Selected by Agent" : "Selected by User" })
|
|
4028
3783
|
] }) : formCardProps.footer
|
|
4029
3784
|
}
|
|
4030
3785
|
) });
|
|
@@ -4033,11 +3788,11 @@ var CampaignSeedCard = import_react19.default.memo(
|
|
|
4033
3788
|
CampaignSeedCard.displayName = "CampaignSeedCard";
|
|
4034
3789
|
|
|
4035
3790
|
// src/molecules/creator-discovery/SearchSpecCard/SearchSpecCard.tsx
|
|
4036
|
-
|
|
3791
|
+
import React56 from "react";
|
|
4037
3792
|
|
|
4038
3793
|
// src/molecules/creator-discovery/SearchSpecCard/CustomFieldRenderers.tsx
|
|
4039
|
-
|
|
4040
|
-
|
|
3794
|
+
import { useState as useState4, useRef as useRef3, useEffect as useEffect5 } from "react";
|
|
3795
|
+
import { ChevronDown as ChevronDown4, Check as Check7 } from "lucide-react";
|
|
4041
3796
|
|
|
4042
3797
|
// src/lib/countries.ts
|
|
4043
3798
|
var countries = [
|
|
@@ -4244,15 +3999,15 @@ var countriesWithFlags = Object.fromEntries(
|
|
|
4244
3999
|
);
|
|
4245
4000
|
|
|
4246
4001
|
// src/molecules/creator-discovery/SearchSpecCard/CustomFieldRenderers.tsx
|
|
4247
|
-
|
|
4002
|
+
import { jsx as jsx73, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
4248
4003
|
var CountrySelectEdit = ({
|
|
4249
4004
|
value,
|
|
4250
4005
|
onChange
|
|
4251
4006
|
}) => {
|
|
4252
|
-
const [isDropdownOpen, setIsDropdownOpen] = (
|
|
4253
|
-
const [searchTerm, setSearchTerm] = (
|
|
4254
|
-
const dropdownRef = (
|
|
4255
|
-
(
|
|
4007
|
+
const [isDropdownOpen, setIsDropdownOpen] = useState4(false);
|
|
4008
|
+
const [searchTerm, setSearchTerm] = useState4("");
|
|
4009
|
+
const dropdownRef = useRef3(null);
|
|
4010
|
+
useEffect5(() => {
|
|
4256
4011
|
const handleClickOutside = (event) => {
|
|
4257
4012
|
if (dropdownRef.current && !dropdownRef.current.contains(event.target)) {
|
|
4258
4013
|
setIsDropdownOpen(false);
|
|
@@ -4262,17 +4017,17 @@ var CountrySelectEdit = ({
|
|
|
4262
4017
|
return () => document.removeEventListener("mousedown", handleClickOutside);
|
|
4263
4018
|
}, []);
|
|
4264
4019
|
const inputValue = Array.isArray(value) ? value : [];
|
|
4265
|
-
return /* @__PURE__ */ (
|
|
4266
|
-
/* @__PURE__ */ (
|
|
4267
|
-
/* @__PURE__ */ (
|
|
4020
|
+
return /* @__PURE__ */ jsxs41("div", { className: "space-y-3", children: [
|
|
4021
|
+
/* @__PURE__ */ jsxs41("div", { className: "relative", ref: dropdownRef, children: [
|
|
4022
|
+
/* @__PURE__ */ jsxs41(
|
|
4268
4023
|
"div",
|
|
4269
4024
|
{
|
|
4270
4025
|
className: "flex-1 bg-white border border-gray200 rounded-md px-3 py-2 text-sm cursor-pointer flex items-center justify-between font-medium hover:border-purple500 transition-colors",
|
|
4271
4026
|
onClick: () => setIsDropdownOpen(!isDropdownOpen),
|
|
4272
4027
|
children: [
|
|
4273
|
-
/* @__PURE__ */ (
|
|
4274
|
-
/* @__PURE__ */ (
|
|
4275
|
-
|
|
4028
|
+
/* @__PURE__ */ jsx73("span", { className: "text-gray-700", children: inputValue.length > 0 ? `${inputValue.length} ${inputValue.length === 1 ? "country" : "countries"} selected` : "Select countries..." }),
|
|
4029
|
+
/* @__PURE__ */ jsx73(
|
|
4030
|
+
ChevronDown4,
|
|
4276
4031
|
{
|
|
4277
4032
|
className: cn(
|
|
4278
4033
|
"h-4 w-4 text-gray-400 transition-transform",
|
|
@@ -4283,8 +4038,8 @@ var CountrySelectEdit = ({
|
|
|
4283
4038
|
]
|
|
4284
4039
|
}
|
|
4285
4040
|
),
|
|
4286
|
-
isDropdownOpen && /* @__PURE__ */ (
|
|
4287
|
-
/* @__PURE__ */ (
|
|
4041
|
+
isDropdownOpen && /* @__PURE__ */ jsxs41("div", { className: "absolute top-full left-0 right-0 mt-1 bg-white border border-gray200 rounded-lg shadow-xl z-50 max-h-60 overflow-hidden animate-in fade-in slide-in-from-top-1", children: [
|
|
4042
|
+
/* @__PURE__ */ jsx73("div", { className: "p-2 border-b border-gray-100", children: /* @__PURE__ */ jsx73(
|
|
4288
4043
|
"input",
|
|
4289
4044
|
{
|
|
4290
4045
|
type: "text",
|
|
@@ -4295,9 +4050,9 @@ var CountrySelectEdit = ({
|
|
|
4295
4050
|
onClick: (e) => e.stopPropagation()
|
|
4296
4051
|
}
|
|
4297
4052
|
) }),
|
|
4298
|
-
/* @__PURE__ */ (
|
|
4053
|
+
/* @__PURE__ */ jsx73("div", { className: "max-h-40 overflow-y-auto p-1", children: countries.filter(
|
|
4299
4054
|
(country) => country.name.toLowerCase().includes(searchTerm.toLowerCase()) || country.code.toLowerCase().includes(searchTerm.toLowerCase())
|
|
4300
|
-
).map((country) => /* @__PURE__ */ (
|
|
4055
|
+
).map((country) => /* @__PURE__ */ jsxs41(
|
|
4301
4056
|
"div",
|
|
4302
4057
|
{
|
|
4303
4058
|
className: cn(
|
|
@@ -4318,31 +4073,31 @@ var CountrySelectEdit = ({
|
|
|
4318
4073
|
}
|
|
4319
4074
|
},
|
|
4320
4075
|
children: [
|
|
4321
|
-
/* @__PURE__ */ (
|
|
4322
|
-
/* @__PURE__ */ (
|
|
4323
|
-
/* @__PURE__ */ (
|
|
4076
|
+
/* @__PURE__ */ jsxs41("div", { className: "flex items-center gap-2", children: [
|
|
4077
|
+
/* @__PURE__ */ jsx73("span", { className: "text-sm text-gray-700", children: country.name }),
|
|
4078
|
+
/* @__PURE__ */ jsx73("span", { className: "text-xs text-gray-400 font-mono", children: country.code })
|
|
4324
4079
|
] }),
|
|
4325
|
-
inputValue.includes(country.code) && /* @__PURE__ */ (
|
|
4080
|
+
inputValue.includes(country.code) && /* @__PURE__ */ jsx73(Check7, { className: "h-4 w-4 text-purple500" })
|
|
4326
4081
|
]
|
|
4327
4082
|
},
|
|
4328
4083
|
country.code
|
|
4329
4084
|
)) })
|
|
4330
4085
|
] })
|
|
4331
4086
|
] }),
|
|
4332
|
-
inputValue.length > 0 && /* @__PURE__ */ (
|
|
4087
|
+
inputValue.length > 0 && /* @__PURE__ */ jsx73("div", { className: "flex flex-wrap gap-1.5", children: inputValue.map((countryCode) => /* @__PURE__ */ jsxs41(
|
|
4333
4088
|
Badge,
|
|
4334
4089
|
{
|
|
4335
4090
|
variant: "secondary",
|
|
4336
4091
|
className: "bg-purple50 text-purple700 border-purple100 hover:bg-purple100 cursor-default flex items-center gap-1 pr-1",
|
|
4337
4092
|
children: [
|
|
4338
4093
|
countryCode,
|
|
4339
|
-
/* @__PURE__ */ (
|
|
4094
|
+
/* @__PURE__ */ jsxs41(
|
|
4340
4095
|
"button",
|
|
4341
4096
|
{
|
|
4342
4097
|
onClick: () => onChange(inputValue.filter((c) => c !== countryCode)),
|
|
4343
4098
|
className: "hover:bg-purple200 rounded-full p-0.5 transition-colors",
|
|
4344
4099
|
children: [
|
|
4345
|
-
/* @__PURE__ */ (
|
|
4100
|
+
/* @__PURE__ */ jsx73(ChevronDown4, { className: "h-3 w-3 rotate-45" }),
|
|
4346
4101
|
" "
|
|
4347
4102
|
]
|
|
4348
4103
|
}
|
|
@@ -4355,9 +4110,9 @@ var CountrySelectEdit = ({
|
|
|
4355
4110
|
};
|
|
4356
4111
|
var CountrySelectDisplay = ({ value }) => {
|
|
4357
4112
|
if (!value || !Array.isArray(value) || value.length === 0) {
|
|
4358
|
-
return /* @__PURE__ */ (
|
|
4113
|
+
return /* @__PURE__ */ jsx73("span", { className: "text-muted-foreground italic", children: "Not specified" });
|
|
4359
4114
|
}
|
|
4360
|
-
return /* @__PURE__ */ (
|
|
4115
|
+
return /* @__PURE__ */ jsx73("div", { className: "flex flex-wrap gap-1.5", children: value.map((countryCode) => /* @__PURE__ */ jsx73(
|
|
4361
4116
|
Badge,
|
|
4362
4117
|
{
|
|
4363
4118
|
variant: "outline",
|
|
@@ -4379,22 +4134,22 @@ var KeywordBundlesEdit = ({
|
|
|
4379
4134
|
groups[p].push({ bundle: b, index: idx });
|
|
4380
4135
|
});
|
|
4381
4136
|
const sortedPriorities = Object.keys(groups).map((n) => parseInt(n)).sort((a, b) => a - b);
|
|
4382
|
-
return /* @__PURE__ */ (
|
|
4383
|
-
/* @__PURE__ */ (
|
|
4384
|
-
/* @__PURE__ */ (
|
|
4137
|
+
return /* @__PURE__ */ jsx73("div", { className: "space-y-6 pt-2", children: sortedPriorities.map((priority) => /* @__PURE__ */ jsxs41("div", { className: "space-y-3", children: [
|
|
4138
|
+
/* @__PURE__ */ jsxs41("div", { className: "flex items-center gap-2", children: [
|
|
4139
|
+
/* @__PURE__ */ jsxs41(Badge, { className: "bg-purple500 hover:bg-purple500", children: [
|
|
4385
4140
|
"Priority ",
|
|
4386
4141
|
priority
|
|
4387
4142
|
] }),
|
|
4388
|
-
/* @__PURE__ */ (
|
|
4143
|
+
/* @__PURE__ */ jsx73("div", { className: "h-px flex-1 bg-gray-100" })
|
|
4389
4144
|
] }),
|
|
4390
|
-
groups[priority].map(({ bundle, index: bundleIndex }) => /* @__PURE__ */ (
|
|
4145
|
+
groups[priority].map(({ bundle, index: bundleIndex }) => /* @__PURE__ */ jsx73(
|
|
4391
4146
|
"div",
|
|
4392
4147
|
{
|
|
4393
4148
|
className: "bg-gray-50/50 border border-gray-100 rounded-xl p-4 transition-all hover:bg-gray-50 hover:border-gray-200 shadow-sm",
|
|
4394
|
-
children: /* @__PURE__ */ (
|
|
4395
|
-
/* @__PURE__ */ (
|
|
4396
|
-
/* @__PURE__ */ (
|
|
4397
|
-
/* @__PURE__ */ (
|
|
4149
|
+
children: /* @__PURE__ */ jsxs41("div", { className: "flex flex-col gap-3", children: [
|
|
4150
|
+
/* @__PURE__ */ jsx73("label", { className: "text-[10px] font-bold text-gray-400 uppercase tracking-widest pl-1", children: "Keywords" }),
|
|
4151
|
+
/* @__PURE__ */ jsxs41("div", { className: "space-y-3", children: [
|
|
4152
|
+
/* @__PURE__ */ jsx73("div", { className: "flex flex-wrap gap-1.5", children: Array.isArray(bundle.keywords) && bundle.keywords.map((keyword, kIndex) => /* @__PURE__ */ jsxs41(
|
|
4398
4153
|
Badge,
|
|
4399
4154
|
{
|
|
4400
4155
|
className: "bg-white border-gray-200 text-gray-700 hover:bg-red-50 hover:text-red-600 hover:border-red-100 transition-all cursor-pointer group",
|
|
@@ -4410,12 +4165,12 @@ var KeywordBundlesEdit = ({
|
|
|
4410
4165
|
},
|
|
4411
4166
|
children: [
|
|
4412
4167
|
keyword,
|
|
4413
|
-
/* @__PURE__ */ (
|
|
4168
|
+
/* @__PURE__ */ jsx73("span", { className: "ml-1 opacity-0 group-hover:opacity-100 transition-opacity", children: "\xD7" })
|
|
4414
4169
|
]
|
|
4415
4170
|
},
|
|
4416
4171
|
kIndex
|
|
4417
4172
|
)) }),
|
|
4418
|
-
/* @__PURE__ */ (
|
|
4173
|
+
/* @__PURE__ */ jsx73("div", { className: "flex gap-2", children: /* @__PURE__ */ jsx73(
|
|
4419
4174
|
"input",
|
|
4420
4175
|
{
|
|
4421
4176
|
type: "text",
|
|
@@ -4439,9 +4194,9 @@ var KeywordBundlesEdit = ({
|
|
|
4439
4194
|
}
|
|
4440
4195
|
) })
|
|
4441
4196
|
] }),
|
|
4442
|
-
/* @__PURE__ */ (
|
|
4443
|
-
/* @__PURE__ */ (
|
|
4444
|
-
/* @__PURE__ */ (
|
|
4197
|
+
/* @__PURE__ */ jsxs41("div", { className: "flex flex-col gap-1.5 mt-1", children: [
|
|
4198
|
+
/* @__PURE__ */ jsx73("label", { className: "text-[10px] font-bold text-gray-400 uppercase tracking-widest pl-1", children: "Priority Level (1-5)" }),
|
|
4199
|
+
/* @__PURE__ */ jsx73(
|
|
4445
4200
|
"input",
|
|
4446
4201
|
{
|
|
4447
4202
|
type: "number",
|
|
@@ -4469,7 +4224,7 @@ var KeywordBundlesEdit = ({
|
|
|
4469
4224
|
var KeywordBundlesDisplay = ({ value }) => {
|
|
4470
4225
|
const bundles = Array.isArray(value) ? value : [];
|
|
4471
4226
|
if (bundles.length === 0)
|
|
4472
|
-
return /* @__PURE__ */ (
|
|
4227
|
+
return /* @__PURE__ */ jsx73("span", { className: "text-muted-foreground italic", children: "Not specified" });
|
|
4473
4228
|
const groups = {};
|
|
4474
4229
|
bundles.forEach((b) => {
|
|
4475
4230
|
const p = Number(b?.priority) || 1;
|
|
@@ -4478,11 +4233,11 @@ var KeywordBundlesDisplay = ({ value }) => {
|
|
|
4478
4233
|
groups[p].push(...keywords);
|
|
4479
4234
|
});
|
|
4480
4235
|
const sortedPriorities = Object.keys(groups).map((n) => parseInt(n)).sort((a, b) => a - b);
|
|
4481
|
-
return /* @__PURE__ */ (
|
|
4236
|
+
return /* @__PURE__ */ jsx73("div", { className: "space-y-4 pt-1", children: sortedPriorities.map((priority) => {
|
|
4482
4237
|
const deduped = Array.from(new Set(groups[priority]));
|
|
4483
|
-
return /* @__PURE__ */ (
|
|
4484
|
-
/* @__PURE__ */ (
|
|
4485
|
-
/* @__PURE__ */ (
|
|
4238
|
+
return /* @__PURE__ */ jsxs41("div", { className: "space-y-2", children: [
|
|
4239
|
+
/* @__PURE__ */ jsxs41("div", { className: "flex items-center gap-2", children: [
|
|
4240
|
+
/* @__PURE__ */ jsxs41(
|
|
4486
4241
|
Badge,
|
|
4487
4242
|
{
|
|
4488
4243
|
variant: "outline",
|
|
@@ -4493,9 +4248,9 @@ var KeywordBundlesDisplay = ({ value }) => {
|
|
|
4493
4248
|
]
|
|
4494
4249
|
}
|
|
4495
4250
|
),
|
|
4496
|
-
/* @__PURE__ */ (
|
|
4251
|
+
/* @__PURE__ */ jsx73("div", { className: "h-px flex-1 bg-gray-100/50" })
|
|
4497
4252
|
] }),
|
|
4498
|
-
/* @__PURE__ */ (
|
|
4253
|
+
/* @__PURE__ */ jsx73("div", { className: "flex flex-wrap gap-1.5", children: deduped.map((keyword) => /* @__PURE__ */ jsx73(
|
|
4499
4254
|
Badge,
|
|
4500
4255
|
{
|
|
4501
4256
|
variant: "secondary",
|
|
@@ -4509,8 +4264,8 @@ var KeywordBundlesDisplay = ({ value }) => {
|
|
|
4509
4264
|
};
|
|
4510
4265
|
|
|
4511
4266
|
// src/molecules/creator-discovery/SearchSpecCard/SearchSpecCard.tsx
|
|
4512
|
-
|
|
4513
|
-
|
|
4267
|
+
import { CheckCircle2 as CheckCircle23 } from "lucide-react";
|
|
4268
|
+
import { jsx as jsx74, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
4514
4269
|
var SEARCH_SPEC_FIELDS = [
|
|
4515
4270
|
{
|
|
4516
4271
|
key: "platforms",
|
|
@@ -4544,15 +4299,15 @@ var SEARCH_SPEC_FIELDS = [
|
|
|
4544
4299
|
key: "geography",
|
|
4545
4300
|
label: "Geography",
|
|
4546
4301
|
type: "custom",
|
|
4547
|
-
renderEdit: (value, onChange) => /* @__PURE__ */ (
|
|
4548
|
-
renderDisplay: (value) => /* @__PURE__ */ (
|
|
4302
|
+
renderEdit: (value, onChange) => /* @__PURE__ */ jsx74(CountrySelectEdit, { value, onChange }),
|
|
4303
|
+
renderDisplay: (value) => /* @__PURE__ */ jsx74(CountrySelectDisplay, { value })
|
|
4549
4304
|
},
|
|
4550
4305
|
{
|
|
4551
4306
|
key: "keyword_bundles",
|
|
4552
4307
|
label: "Keyword Bundles",
|
|
4553
4308
|
type: "custom",
|
|
4554
|
-
renderEdit: (value, onChange) => /* @__PURE__ */ (
|
|
4555
|
-
renderDisplay: (value) => /* @__PURE__ */ (
|
|
4309
|
+
renderEdit: (value, onChange) => /* @__PURE__ */ jsx74(KeywordBundlesEdit, { value, onChange }),
|
|
4310
|
+
renderDisplay: (value) => /* @__PURE__ */ jsx74(KeywordBundlesDisplay, { value })
|
|
4556
4311
|
},
|
|
4557
4312
|
{
|
|
4558
4313
|
key: "desired_candidate_count",
|
|
@@ -4564,23 +4319,23 @@ var SEARCH_SPEC_FIELDS = [
|
|
|
4564
4319
|
}
|
|
4565
4320
|
}
|
|
4566
4321
|
];
|
|
4567
|
-
var SearchSpecCard =
|
|
4322
|
+
var SearchSpecCard = React56.memo(
|
|
4568
4323
|
({
|
|
4569
4324
|
selectionStatus,
|
|
4570
4325
|
isLatestMessage = true,
|
|
4571
4326
|
className,
|
|
4572
4327
|
...formCardProps
|
|
4573
4328
|
}) => {
|
|
4574
|
-
return /* @__PURE__ */ (
|
|
4329
|
+
return /* @__PURE__ */ jsx74(
|
|
4575
4330
|
FormCard,
|
|
4576
4331
|
{
|
|
4577
4332
|
...formCardProps,
|
|
4578
4333
|
title: formCardProps.title || "Creator Search Settings",
|
|
4579
4334
|
fields: SEARCH_SPEC_FIELDS,
|
|
4580
4335
|
className,
|
|
4581
|
-
footer: !isLatestMessage && selectionStatus ? /* @__PURE__ */ (
|
|
4582
|
-
/* @__PURE__ */ (
|
|
4583
|
-
/* @__PURE__ */ (
|
|
4336
|
+
footer: !isLatestMessage && selectionStatus ? /* @__PURE__ */ jsxs42("div", { className: "flex justify-end items-center gap-1.5 text-green-600 text-xs font-semibold py-1", children: [
|
|
4337
|
+
/* @__PURE__ */ jsx74(CheckCircle23, { className: "h-4 w-4" }),
|
|
4338
|
+
/* @__PURE__ */ jsx74("span", { children: selectionStatus === "agent" ? "Selected by Agent" : "Selected by User" })
|
|
4584
4339
|
] }) : formCardProps.footer
|
|
4585
4340
|
}
|
|
4586
4341
|
);
|
|
@@ -4589,10 +4344,10 @@ var SearchSpecCard = import_react21.default.memo(
|
|
|
4589
4344
|
SearchSpecCard.displayName = "SearchSpecCard";
|
|
4590
4345
|
|
|
4591
4346
|
// src/molecules/creator-discovery/MCQCard/MCQCard.tsx
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
var MCQCard =
|
|
4347
|
+
import React57 from "react";
|
|
4348
|
+
import { CheckCircle2 as CheckCircle24, Sparkles } from "lucide-react";
|
|
4349
|
+
import { jsx as jsx75, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
4350
|
+
var MCQCard = React57.memo(
|
|
4596
4351
|
({
|
|
4597
4352
|
question,
|
|
4598
4353
|
options,
|
|
@@ -4618,7 +4373,7 @@ var MCQCard = import_react22.default.memo(
|
|
|
4618
4373
|
onProceed?.(selectedOption || recommended || "");
|
|
4619
4374
|
}
|
|
4620
4375
|
};
|
|
4621
|
-
return /* @__PURE__ */ (
|
|
4376
|
+
return /* @__PURE__ */ jsxs43(
|
|
4622
4377
|
Card,
|
|
4623
4378
|
{
|
|
4624
4379
|
className: cn(
|
|
@@ -4626,11 +4381,11 @@ var MCQCard = import_react22.default.memo(
|
|
|
4626
4381
|
className
|
|
4627
4382
|
),
|
|
4628
4383
|
children: [
|
|
4629
|
-
/* @__PURE__ */ (
|
|
4630
|
-
/* @__PURE__ */ (
|
|
4384
|
+
/* @__PURE__ */ jsx75(CardHeader, { className: "pb-2", children: /* @__PURE__ */ jsx75(CardTitle, { className: "text-lg font-bold text-gray-900 tracking-tight leading-snug", children: question }) }),
|
|
4385
|
+
/* @__PURE__ */ jsx75(CardContent, { className: "space-y-3 pb-6", children: Object.entries(options).map(([key, label]) => {
|
|
4631
4386
|
const isSelected = selectedOption === key;
|
|
4632
4387
|
const isRecommended = key === recommended;
|
|
4633
|
-
return /* @__PURE__ */ (
|
|
4388
|
+
return /* @__PURE__ */ jsxs43(
|
|
4634
4389
|
"div",
|
|
4635
4390
|
{
|
|
4636
4391
|
onClick: () => handleOptionClick(key),
|
|
@@ -4640,18 +4395,18 @@ var MCQCard = import_react22.default.memo(
|
|
|
4640
4395
|
isLoading && "opacity-50 cursor-not-allowed"
|
|
4641
4396
|
),
|
|
4642
4397
|
children: [
|
|
4643
|
-
/* @__PURE__ */ (
|
|
4398
|
+
/* @__PURE__ */ jsx75(
|
|
4644
4399
|
"div",
|
|
4645
4400
|
{
|
|
4646
4401
|
className: cn(
|
|
4647
4402
|
"mt-1 w-5 h-5 rounded-full border-2 flex items-center justify-center transition-colors",
|
|
4648
4403
|
isSelected ? "border-purple500 bg-purple500" : "border-gray-300 bg-white group-hover:border-gray-400"
|
|
4649
4404
|
),
|
|
4650
|
-
children: isSelected && /* @__PURE__ */ (
|
|
4405
|
+
children: isSelected && /* @__PURE__ */ jsx75("div", { className: "w-1.5 h-1.5 rounded-full bg-white" })
|
|
4651
4406
|
}
|
|
4652
4407
|
),
|
|
4653
|
-
/* @__PURE__ */ (
|
|
4654
|
-
/* @__PURE__ */ (
|
|
4408
|
+
/* @__PURE__ */ jsx75("div", { className: "flex-1 space-y-1.5", children: /* @__PURE__ */ jsxs43("div", { className: "flex items-center gap-2 flex-wrap", children: [
|
|
4409
|
+
/* @__PURE__ */ jsx75(
|
|
4655
4410
|
"span",
|
|
4656
4411
|
{
|
|
4657
4412
|
className: cn(
|
|
@@ -4661,18 +4416,18 @@ var MCQCard = import_react22.default.memo(
|
|
|
4661
4416
|
children: label
|
|
4662
4417
|
}
|
|
4663
4418
|
),
|
|
4664
|
-
isRecommended && /* @__PURE__ */ (
|
|
4419
|
+
isRecommended && /* @__PURE__ */ jsxs43(
|
|
4665
4420
|
Badge,
|
|
4666
4421
|
{
|
|
4667
4422
|
variant: "outline",
|
|
4668
4423
|
className: "bg-green-50 text-green-700 border-green-100 flex items-center gap-1 text-[10px] py-0 h-5",
|
|
4669
4424
|
children: [
|
|
4670
|
-
/* @__PURE__ */ (
|
|
4425
|
+
/* @__PURE__ */ jsx75(Sparkles, { className: "h-3 w-3" }),
|
|
4671
4426
|
"Recommended"
|
|
4672
4427
|
]
|
|
4673
4428
|
}
|
|
4674
4429
|
),
|
|
4675
|
-
isSelected && !isLatestMessage && /* @__PURE__ */ (
|
|
4430
|
+
isSelected && !isLatestMessage && /* @__PURE__ */ jsx75(
|
|
4676
4431
|
Badge,
|
|
4677
4432
|
{
|
|
4678
4433
|
variant: "outline",
|
|
@@ -4686,7 +4441,7 @@ var MCQCard = import_react22.default.memo(
|
|
|
4686
4441
|
key
|
|
4687
4442
|
);
|
|
4688
4443
|
}) }),
|
|
4689
|
-
/* @__PURE__ */ (
|
|
4444
|
+
/* @__PURE__ */ jsx75(CardFooter, { className: "flex flex-col gap-4 pt-0 border-t border-gray-100/50 bg-gray-50/30 p-6", children: isLatestMessage ? /* @__PURE__ */ jsx75("div", { className: "w-full flex justify-center", children: /* @__PURE__ */ jsx75(
|
|
4690
4445
|
ActionButton,
|
|
4691
4446
|
{
|
|
4692
4447
|
label: selectedOption ? "Continue" : "Proceed with Recommendation",
|
|
@@ -4697,9 +4452,9 @@ var MCQCard = import_react22.default.memo(
|
|
|
4697
4452
|
isLoading,
|
|
4698
4453
|
disabled: !selectedOption && !recommended
|
|
4699
4454
|
}
|
|
4700
|
-
) }) : /* @__PURE__ */ (
|
|
4701
|
-
/* @__PURE__ */ (
|
|
4702
|
-
/* @__PURE__ */ (
|
|
4455
|
+
) }) : /* @__PURE__ */ jsxs43("div", { className: "w-full flex justify-end items-center gap-1.5 text-green-600 text-xs font-semibold", children: [
|
|
4456
|
+
/* @__PURE__ */ jsx75(CheckCircle24, { className: "h-4 w-4" }),
|
|
4457
|
+
/* @__PURE__ */ jsx75("span", { children: selectionStatus === "agent" ? "Suggested by Agent, Approved by You" : "Selected by You" })
|
|
4703
4458
|
] }) })
|
|
4704
4459
|
]
|
|
4705
4460
|
}
|
|
@@ -4709,7 +4464,7 @@ var MCQCard = import_react22.default.memo(
|
|
|
4709
4464
|
MCQCard.displayName = "MCQCard";
|
|
4710
4465
|
|
|
4711
4466
|
// src/render/PXEngineRenderer.tsx
|
|
4712
|
-
|
|
4467
|
+
import { Fragment as Fragment3, jsx as jsx76 } from "react/jsx-runtime";
|
|
4713
4468
|
var PXEngineRenderer = ({
|
|
4714
4469
|
schema,
|
|
4715
4470
|
onAction
|
|
@@ -4719,7 +4474,7 @@ var PXEngineRenderer = ({
|
|
|
4719
4474
|
const { type, id } = atom;
|
|
4720
4475
|
switch (type) {
|
|
4721
4476
|
case "layout":
|
|
4722
|
-
return /* @__PURE__ */ (
|
|
4477
|
+
return /* @__PURE__ */ jsx76(
|
|
4723
4478
|
LayoutAtom,
|
|
4724
4479
|
{
|
|
4725
4480
|
...atom,
|
|
@@ -4728,7 +4483,7 @@ var PXEngineRenderer = ({
|
|
|
4728
4483
|
id
|
|
4729
4484
|
);
|
|
4730
4485
|
case "card":
|
|
4731
|
-
return /* @__PURE__ */ (
|
|
4486
|
+
return /* @__PURE__ */ jsx76(
|
|
4732
4487
|
CardAtom,
|
|
4733
4488
|
{
|
|
4734
4489
|
...atom,
|
|
@@ -4737,27 +4492,27 @@ var PXEngineRenderer = ({
|
|
|
4737
4492
|
id
|
|
4738
4493
|
);
|
|
4739
4494
|
case "text":
|
|
4740
|
-
return /* @__PURE__ */ (
|
|
4495
|
+
return /* @__PURE__ */ jsx76(TextAtom, { ...atom }, id);
|
|
4741
4496
|
case "button":
|
|
4742
|
-
return /* @__PURE__ */ (
|
|
4497
|
+
return /* @__PURE__ */ jsx76(ButtonAtom, { ...atom, onAction }, id);
|
|
4743
4498
|
case "input":
|
|
4744
|
-
return /* @__PURE__ */ (
|
|
4499
|
+
return /* @__PURE__ */ jsx76(InputAtom, { ...atom }, id);
|
|
4745
4500
|
case "badge":
|
|
4746
|
-
return /* @__PURE__ */ (
|
|
4501
|
+
return /* @__PURE__ */ jsx76(BadgeAtom, { ...atom }, id);
|
|
4747
4502
|
case "avatar":
|
|
4748
|
-
return /* @__PURE__ */ (
|
|
4503
|
+
return /* @__PURE__ */ jsx76(AvatarAtom, { ...atom }, id);
|
|
4749
4504
|
case "progress":
|
|
4750
|
-
return /* @__PURE__ */ (
|
|
4505
|
+
return /* @__PURE__ */ jsx76(ProgressAtom, { ...atom }, id);
|
|
4751
4506
|
case "skeleton":
|
|
4752
|
-
return /* @__PURE__ */ (
|
|
4507
|
+
return /* @__PURE__ */ jsx76(SkeletonAtom, { ...atom }, id);
|
|
4753
4508
|
case "alert":
|
|
4754
|
-
return /* @__PURE__ */ (
|
|
4509
|
+
return /* @__PURE__ */ jsx76(AlertAtom, { ...atom }, id);
|
|
4755
4510
|
case "separator":
|
|
4756
|
-
return /* @__PURE__ */ (
|
|
4511
|
+
return /* @__PURE__ */ jsx76(SeparatorAtom, { ...atom }, id);
|
|
4757
4512
|
case "table":
|
|
4758
|
-
return /* @__PURE__ */ (
|
|
4513
|
+
return /* @__PURE__ */ jsx76(TableAtom, { ...atom }, id);
|
|
4759
4514
|
case "tabs":
|
|
4760
|
-
return /* @__PURE__ */ (
|
|
4515
|
+
return /* @__PURE__ */ jsx76(
|
|
4761
4516
|
TabsAtom,
|
|
4762
4517
|
{
|
|
4763
4518
|
...atom,
|
|
@@ -4766,7 +4521,7 @@ var PXEngineRenderer = ({
|
|
|
4766
4521
|
id
|
|
4767
4522
|
);
|
|
4768
4523
|
case "accordion":
|
|
4769
|
-
return /* @__PURE__ */ (
|
|
4524
|
+
return /* @__PURE__ */ jsx76(
|
|
4770
4525
|
AccordionAtom,
|
|
4771
4526
|
{
|
|
4772
4527
|
...atom,
|
|
@@ -4775,7 +4530,7 @@ var PXEngineRenderer = ({
|
|
|
4775
4530
|
id
|
|
4776
4531
|
);
|
|
4777
4532
|
case "scroll-area":
|
|
4778
|
-
return /* @__PURE__ */ (
|
|
4533
|
+
return /* @__PURE__ */ jsx76(
|
|
4779
4534
|
ScrollAreaAtom,
|
|
4780
4535
|
{
|
|
4781
4536
|
...atom,
|
|
@@ -4784,7 +4539,7 @@ var PXEngineRenderer = ({
|
|
|
4784
4539
|
id
|
|
4785
4540
|
);
|
|
4786
4541
|
case "carousel":
|
|
4787
|
-
return /* @__PURE__ */ (
|
|
4542
|
+
return /* @__PURE__ */ jsx76(
|
|
4788
4543
|
CarouselAtom,
|
|
4789
4544
|
{
|
|
4790
4545
|
...atom,
|
|
@@ -4793,7 +4548,7 @@ var PXEngineRenderer = ({
|
|
|
4793
4548
|
id
|
|
4794
4549
|
);
|
|
4795
4550
|
case "aspect-ratio":
|
|
4796
|
-
return /* @__PURE__ */ (
|
|
4551
|
+
return /* @__PURE__ */ jsx76(
|
|
4797
4552
|
AspectRatioAtom,
|
|
4798
4553
|
{
|
|
4799
4554
|
...atom,
|
|
@@ -4802,7 +4557,7 @@ var PXEngineRenderer = ({
|
|
|
4802
4557
|
id
|
|
4803
4558
|
);
|
|
4804
4559
|
case "collapsible":
|
|
4805
|
-
return /* @__PURE__ */ (
|
|
4560
|
+
return /* @__PURE__ */ jsx76(
|
|
4806
4561
|
CollapsibleAtom,
|
|
4807
4562
|
{
|
|
4808
4563
|
...atom,
|
|
@@ -4811,7 +4566,7 @@ var PXEngineRenderer = ({
|
|
|
4811
4566
|
id
|
|
4812
4567
|
);
|
|
4813
4568
|
case "tooltip":
|
|
4814
|
-
return /* @__PURE__ */ (
|
|
4569
|
+
return /* @__PURE__ */ jsx76(
|
|
4815
4570
|
TooltipAtom,
|
|
4816
4571
|
{
|
|
4817
4572
|
...atom,
|
|
@@ -4820,7 +4575,7 @@ var PXEngineRenderer = ({
|
|
|
4820
4575
|
id
|
|
4821
4576
|
);
|
|
4822
4577
|
case "popover":
|
|
4823
|
-
return /* @__PURE__ */ (
|
|
4578
|
+
return /* @__PURE__ */ jsx76(
|
|
4824
4579
|
PopoverAtom,
|
|
4825
4580
|
{
|
|
4826
4581
|
...atom,
|
|
@@ -4829,7 +4584,7 @@ var PXEngineRenderer = ({
|
|
|
4829
4584
|
id
|
|
4830
4585
|
);
|
|
4831
4586
|
case "dialog":
|
|
4832
|
-
return /* @__PURE__ */ (
|
|
4587
|
+
return /* @__PURE__ */ jsx76(
|
|
4833
4588
|
DialogAtom,
|
|
4834
4589
|
{
|
|
4835
4590
|
...atom,
|
|
@@ -4838,7 +4593,7 @@ var PXEngineRenderer = ({
|
|
|
4838
4593
|
id
|
|
4839
4594
|
);
|
|
4840
4595
|
case "sheet":
|
|
4841
|
-
return /* @__PURE__ */ (
|
|
4596
|
+
return /* @__PURE__ */ jsx76(
|
|
4842
4597
|
SheetAtom,
|
|
4843
4598
|
{
|
|
4844
4599
|
...atom,
|
|
@@ -4847,7 +4602,7 @@ var PXEngineRenderer = ({
|
|
|
4847
4602
|
id
|
|
4848
4603
|
);
|
|
4849
4604
|
case "alert-dialog":
|
|
4850
|
-
return /* @__PURE__ */ (
|
|
4605
|
+
return /* @__PURE__ */ jsx76(
|
|
4851
4606
|
AlertDialogAtom,
|
|
4852
4607
|
{
|
|
4853
4608
|
...atom,
|
|
@@ -4857,15 +4612,15 @@ var PXEngineRenderer = ({
|
|
|
4857
4612
|
id
|
|
4858
4613
|
);
|
|
4859
4614
|
case "breadcrumb":
|
|
4860
|
-
return /* @__PURE__ */ (
|
|
4615
|
+
return /* @__PURE__ */ jsx76(BreadcrumbAtom, { ...atom }, id);
|
|
4861
4616
|
case "spinner":
|
|
4862
|
-
return /* @__PURE__ */ (
|
|
4617
|
+
return /* @__PURE__ */ jsx76(SpinnerAtom, { ...atom }, id);
|
|
4863
4618
|
case "calendar":
|
|
4864
|
-
return /* @__PURE__ */ (
|
|
4619
|
+
return /* @__PURE__ */ jsx76(CalendarAtom, { ...atom }, id);
|
|
4865
4620
|
case "pagination":
|
|
4866
|
-
return /* @__PURE__ */ (
|
|
4621
|
+
return /* @__PURE__ */ jsx76(PaginationAtom, { ...atom }, id);
|
|
4867
4622
|
case "command":
|
|
4868
|
-
return /* @__PURE__ */ (
|
|
4623
|
+
return /* @__PURE__ */ jsx76(CommandAtom, { ...atom }, id);
|
|
4869
4624
|
default:
|
|
4870
4625
|
return null;
|
|
4871
4626
|
}
|
|
@@ -4874,7 +4629,7 @@ var PXEngineRenderer = ({
|
|
|
4874
4629
|
const { type, id } = molecule;
|
|
4875
4630
|
switch (type) {
|
|
4876
4631
|
case "campaign-seed":
|
|
4877
|
-
return /* @__PURE__ */ (
|
|
4632
|
+
return /* @__PURE__ */ jsx76(
|
|
4878
4633
|
CampaignSeedCard,
|
|
4879
4634
|
{
|
|
4880
4635
|
...molecule,
|
|
@@ -4883,7 +4638,7 @@ var PXEngineRenderer = ({
|
|
|
4883
4638
|
id
|
|
4884
4639
|
);
|
|
4885
4640
|
case "search-spec":
|
|
4886
|
-
return /* @__PURE__ */ (
|
|
4641
|
+
return /* @__PURE__ */ jsx76(
|
|
4887
4642
|
SearchSpecCard,
|
|
4888
4643
|
{
|
|
4889
4644
|
...molecule,
|
|
@@ -4892,7 +4647,7 @@ var PXEngineRenderer = ({
|
|
|
4892
4647
|
id
|
|
4893
4648
|
);
|
|
4894
4649
|
case "mcq":
|
|
4895
|
-
return /* @__PURE__ */ (
|
|
4650
|
+
return /* @__PURE__ */ jsx76(
|
|
4896
4651
|
MCQCard,
|
|
4897
4652
|
{
|
|
4898
4653
|
...molecule,
|
|
@@ -4901,7 +4656,7 @@ var PXEngineRenderer = ({
|
|
|
4901
4656
|
id
|
|
4902
4657
|
);
|
|
4903
4658
|
case "action-button":
|
|
4904
|
-
return /* @__PURE__ */ (
|
|
4659
|
+
return /* @__PURE__ */ jsx76(
|
|
4905
4660
|
ActionButton,
|
|
4906
4661
|
{
|
|
4907
4662
|
...molecule,
|
|
@@ -4950,10 +4705,9 @@ var PXEngineRenderer = ({
|
|
|
4950
4705
|
}
|
|
4951
4706
|
return renderMolecule(component);
|
|
4952
4707
|
};
|
|
4953
|
-
return /* @__PURE__ */ (
|
|
4708
|
+
return /* @__PURE__ */ jsx76(Fragment3, { children: renderComponent(root) });
|
|
4954
4709
|
};
|
|
4955
|
-
|
|
4956
|
-
0 && (module.exports = {
|
|
4710
|
+
export {
|
|
4957
4711
|
Accordion,
|
|
4958
4712
|
AccordionAtom,
|
|
4959
4713
|
AccordionContent,
|
|
@@ -5011,8 +4765,8 @@ var PXEngineRenderer = ({
|
|
|
5011
4765
|
Checkbox,
|
|
5012
4766
|
Collapsible,
|
|
5013
4767
|
CollapsibleAtom,
|
|
5014
|
-
CollapsibleContent,
|
|
5015
|
-
CollapsibleTrigger,
|
|
4768
|
+
CollapsibleContent2 as CollapsibleContent,
|
|
4769
|
+
CollapsibleTrigger2 as CollapsibleTrigger,
|
|
5016
4770
|
Command,
|
|
5017
4771
|
CommandAtom,
|
|
5018
4772
|
CommandDialog,
|
|
@@ -5134,7 +4888,7 @@ var PXEngineRenderer = ({
|
|
|
5134
4888
|
SelectSeparator,
|
|
5135
4889
|
SelectTrigger,
|
|
5136
4890
|
SelectValue,
|
|
5137
|
-
Separator,
|
|
4891
|
+
Separator2 as Separator,
|
|
5138
4892
|
SeparatorAtom,
|
|
5139
4893
|
Sheet,
|
|
5140
4894
|
SheetAtom,
|
|
@@ -5172,4 +4926,4 @@ var PXEngineRenderer = ({
|
|
|
5172
4926
|
TooltipProvider,
|
|
5173
4927
|
TooltipTrigger,
|
|
5174
4928
|
cn
|
|
5175
|
-
}
|
|
4929
|
+
};
|