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