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