@alquimia-ai/ui 1.9.2 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/dist/components/atoms/index.d.mts +1 -1
  2. package/dist/components/atoms/index.d.ts +1 -1
  3. package/dist/components/atoms/index.js +1848 -1428
  4. package/dist/components/atoms/index.js.map +1 -1
  5. package/dist/components/atoms/index.mjs +1453 -1409
  6. package/dist/components/atoms/index.mjs.map +1 -1
  7. package/dist/components/hooks/index.d.mts +1 -0
  8. package/dist/components/hooks/index.d.ts +1 -0
  9. package/dist/components/hooks/index.js +572 -211
  10. package/dist/components/hooks/index.js.map +1 -1
  11. package/dist/components/hooks/index.mjs +505 -193
  12. package/dist/components/hooks/index.mjs.map +1 -1
  13. package/dist/components/molecules/documents/index.d.mts +1 -0
  14. package/dist/components/molecules/documents/index.d.ts +1 -0
  15. package/dist/components/molecules/documents/index.js +2366 -1884
  16. package/dist/components/molecules/documents/index.js.map +1 -1
  17. package/dist/components/molecules/documents/index.mjs +2207 -1764
  18. package/dist/components/molecules/documents/index.mjs.map +1 -1
  19. package/dist/components/molecules/index.js +2261 -2095
  20. package/dist/components/molecules/index.js.map +1 -1
  21. package/dist/components/molecules/index.mjs +2084 -2075
  22. package/dist/components/molecules/index.mjs.map +1 -1
  23. package/dist/components/molecules/viewers/index.js +1303 -1185
  24. package/dist/components/molecules/viewers/index.js.map +1 -1
  25. package/dist/components/molecules/viewers/index.mjs +1254 -1167
  26. package/dist/components/molecules/viewers/index.mjs.map +1 -1
  27. package/dist/components/organisms/index.d.mts +1 -0
  28. package/dist/components/organisms/index.d.ts +1 -0
  29. package/dist/components/organisms/index.js +3074 -2609
  30. package/dist/components/organisms/index.js.map +1 -1
  31. package/dist/components/organisms/index.mjs +2999 -2586
  32. package/dist/components/organisms/index.mjs.map +1 -1
  33. package/dist/components/templates/index.d.mts +25 -3
  34. package/dist/components/templates/index.d.ts +25 -3
  35. package/dist/components/templates/index.js +1490 -1300
  36. package/dist/components/templates/index.js.map +1 -1
  37. package/dist/components/templates/index.mjs +1413 -1281
  38. package/dist/components/templates/index.mjs.map +1 -1
  39. package/dist/index.d.mts +4 -3
  40. package/dist/index.d.ts +4 -3
  41. package/dist/index.js +3951 -2977
  42. package/dist/index.js.map +1 -1
  43. package/dist/index.mjs +3368 -2950
  44. package/dist/index.mjs.map +1 -1
  45. package/dist/lib/index.js +106 -54
  46. package/dist/lib/index.js.map +1 -1
  47. package/dist/lib/index.mjs +42 -43
  48. package/dist/lib/index.mjs.map +1 -1
  49. package/dist/providers/index.d.mts +17 -0
  50. package/dist/providers/index.d.ts +17 -0
  51. package/dist/providers/index.js +177 -0
  52. package/dist/providers/index.js.map +1 -0
  53. package/dist/providers/index.mjs +101 -0
  54. package/dist/providers/index.mjs.map +1 -0
  55. package/dist/styles.css +68 -0
  56. package/dist/styles.css.map +1 -0
  57. package/dist/styles.d.mts +2 -0
  58. package/dist/styles.d.ts +2 -0
  59. package/dist/tailwind.config.js +4 -10
  60. package/dist/types/index.d.mts +5 -5
  61. package/dist/types/index.d.ts +5 -5
  62. package/dist/types/index.js +52 -19
  63. package/dist/types/index.js.map +1 -1
  64. package/dist/types/index.mjs +6 -8
  65. package/dist/types/index.mjs.map +1 -1
  66. package/package.json +8 -7
  67. package/dist/components/index.d.mts +0 -23
  68. package/dist/components/index.d.ts +0 -23
  69. package/dist/components/index.js +0 -1734
  70. package/dist/components/index.js.map +0 -1
  71. package/dist/components/index.mjs +0 -1702
  72. package/dist/components/index.mjs.map +0 -1
  73. package/dist/components/templates/cards/index.d.mts +0 -26
  74. package/dist/components/templates/cards/index.d.ts +0 -26
  75. package/dist/components/templates/cards/index.js +0 -1536
  76. package/dist/components/templates/cards/index.js.map +0 -1
  77. package/dist/components/templates/cards/index.mjs +0 -1504
  78. package/dist/components/templates/cards/index.mjs.map +0 -1
@@ -1,1734 +0,0 @@
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/components/index.ts
31
- var components_exports = {};
32
- __export(components_exports, {
33
- Alert: () => Alert,
34
- AlertDescription: () => AlertDescription,
35
- AlertDialog: () => AlertDialog,
36
- AlertDialogAction: () => AlertDialogAction,
37
- AlertDialogCancel: () => AlertDialogCancel,
38
- AlertDialogContent: () => AlertDialogContent,
39
- AlertDialogDescription: () => AlertDialogDescription,
40
- AlertDialogFooter: () => AlertDialogFooter,
41
- AlertDialogHeader: () => AlertDialogHeader,
42
- AlertDialogOverlay: () => AlertDialogOverlay,
43
- AlertDialogPortal: () => AlertDialogPortal,
44
- AlertDialogTitle: () => AlertDialogTitle,
45
- AlertDialogTrigger: () => AlertDialogTrigger,
46
- AlertTitle: () => AlertTitle,
47
- AspectRatio: () => AspectRatio,
48
- Avatar: () => Avatar,
49
- AvatarFallback: () => AvatarFallback,
50
- AvatarImage: () => AvatarImage,
51
- Badge: () => Badge,
52
- Breadcrumb: () => Breadcrumb,
53
- BreadcrumbEllipsis: () => BreadcrumbEllipsis,
54
- BreadcrumbItem: () => BreadcrumbItem,
55
- BreadcrumbLink: () => BreadcrumbLink,
56
- BreadcrumbList: () => BreadcrumbList,
57
- BreadcrumbPage: () => BreadcrumbPage,
58
- BreadcrumbSeparator: () => BreadcrumbSeparator,
59
- Button: () => Button,
60
- Card: () => Card,
61
- CardContent: () => CardContent,
62
- CardDescription: () => CardDescription,
63
- CardFooter: () => CardFooter,
64
- CardHeader: () => CardHeader,
65
- CardTitle: () => CardTitle,
66
- Checkbox: () => Checkbox,
67
- Command: () => Command,
68
- CommandDialog: () => CommandDialog,
69
- CommandEmpty: () => CommandEmpty,
70
- CommandGroup: () => CommandGroup,
71
- CommandInput: () => CommandInput,
72
- CommandItem: () => CommandItem,
73
- CommandList: () => CommandList,
74
- CommandSeparator: () => CommandSeparator,
75
- CommandShortcut: () => CommandShortcut,
76
- Dialog: () => Dialog,
77
- DialogClose: () => DialogClose,
78
- DialogContent: () => DialogContent,
79
- DialogDescription: () => DialogDescription,
80
- DialogFooter: () => DialogFooter,
81
- DialogHeader: () => DialogHeader,
82
- DialogOverlay: () => DialogOverlay,
83
- DialogPortal: () => DialogPortal,
84
- DialogTitle: () => DialogTitle,
85
- DialogTrigger: () => DialogTrigger,
86
- Drawer: () => Drawer,
87
- DrawerClose: () => DrawerClose,
88
- DrawerContent: () => DrawerContent,
89
- DrawerDescription: () => DrawerDescription,
90
- DrawerFooter: () => DrawerFooter,
91
- DrawerHeader: () => DrawerHeader,
92
- DrawerOverlay: () => DrawerOverlay,
93
- DrawerPortal: () => DrawerPortal,
94
- DrawerTitle: () => DrawerTitle,
95
- DrawerTrigger: () => DrawerTrigger,
96
- Input: () => Input,
97
- Label: () => Label2,
98
- Loader: () => Loader,
99
- Popover: () => Popover,
100
- PopoverContent: () => PopoverContent,
101
- PopoverTrigger: () => PopoverTrigger,
102
- RichText: () => RichText,
103
- ScrollArea: () => ScrollArea,
104
- ScrollBar: () => ScrollBar,
105
- Select: () => Select,
106
- SelectContent: () => SelectContent,
107
- SelectGroup: () => SelectGroup,
108
- SelectItem: () => SelectItem,
109
- SelectLabel: () => SelectLabel,
110
- SelectScrollDownButton: () => SelectScrollDownButton,
111
- SelectScrollUpButton: () => SelectScrollUpButton,
112
- SelectSeparator: () => SelectSeparator,
113
- SelectTrigger: () => SelectTrigger,
114
- SelectValue: () => SelectValue,
115
- Separator: () => Separator2,
116
- Skeleton: () => Skeleton,
117
- Slider: () => Slider,
118
- Switch: () => Switch,
119
- Table: () => Table,
120
- TableBody: () => TableBody,
121
- TableCaption: () => TableCaption,
122
- TableCell: () => TableCell,
123
- TableFooter: () => TableFooter,
124
- TableHead: () => TableHead,
125
- TableHeader: () => TableHeader,
126
- TableRow: () => TableRow,
127
- Tabs: () => Tabs,
128
- TabsContent: () => TabsContent,
129
- TabsList: () => TabsList,
130
- TabsTrigger: () => TabsTrigger,
131
- Textarea: () => Textarea,
132
- ThinkIndicator: () => ThinkIndicator,
133
- Toast: () => Toast,
134
- ToastAction: () => ToastAction,
135
- ToastClose: () => ToastClose,
136
- ToastDescription: () => ToastDescription,
137
- ToastProvider: () => ToastProvider,
138
- ToastTitle: () => ToastTitle,
139
- ToastViewport: () => ToastViewport,
140
- Toaster: () => Toaster,
141
- Toggle: () => Toggle,
142
- Typography: () => Typography,
143
- badgeVariants: () => badgeVariants,
144
- buttonVariants: () => buttonVariants,
145
- thinkIndicatorVariants: () => thinkIndicatorVariants,
146
- toggleVariants: () => toggleVariants
147
- });
148
- module.exports = __toCommonJS(components_exports);
149
-
150
- // src/components/atoms/ui/button.tsx
151
- var React = __toESM(require("react"));
152
- var import_react_slot = require("@radix-ui/react-slot");
153
- var import_class_variance_authority = require("class-variance-authority");
154
-
155
- // src/lib/utils.ts
156
- var import_clsx = require("clsx");
157
- var import_tailwind_merge = require("tailwind-merge");
158
- function cn(...inputs) {
159
- return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
160
- }
161
-
162
- // src/components/atoms/ui/button.tsx
163
- var import_jsx_runtime = require("react/jsx-runtime");
164
- var buttonVariants = (0, import_class_variance_authority.cva)(
165
- "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",
166
- {
167
- variants: {
168
- variant: {
169
- default: "bg-primary text-primary-foreground hover:bg-primary/90",
170
- destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
171
- outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
172
- secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
173
- ghost: "hover:bg-accent hover:text-accent-foreground",
174
- link: "text-primary underline-offset-4 hover:underline"
175
- },
176
- size: {
177
- default: "h-10 px-4 py-2",
178
- sm: "h-9 rounded-md px-3",
179
- lg: "h-11 rounded-md px-8",
180
- icon: "h-10 w-10"
181
- }
182
- },
183
- defaultVariants: {
184
- variant: "default",
185
- size: "default"
186
- }
187
- }
188
- );
189
- var Button = React.forwardRef(
190
- ({ className, variant, size, asChild = false, ...props }, ref) => {
191
- const Comp = asChild ? import_react_slot.Slot : "button";
192
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
193
- Comp,
194
- {
195
- className: cn(buttonVariants({ variant, size, className })),
196
- ref,
197
- ...props
198
- }
199
- );
200
- }
201
- );
202
- Button.displayName = "Button";
203
-
204
- // src/components/atoms/ui/textarea.tsx
205
- var React2 = __toESM(require("react"));
206
- var import_jsx_runtime2 = require("react/jsx-runtime");
207
- var Textarea = React2.forwardRef(
208
- ({ className, ...props }, ref) => {
209
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
210
- "textarea",
211
- {
212
- className: cn(
213
- "flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
214
- className,
215
- "alq--textarea"
216
- ),
217
- ref,
218
- ...props
219
- }
220
- );
221
- }
222
- );
223
- Textarea.displayName = "Textarea";
224
-
225
- // src/components/atoms/ui/input.tsx
226
- var import_react = require("react");
227
- var import_jsx_runtime3 = require("react/jsx-runtime");
228
- var Input = (0, import_react.forwardRef)(
229
- ({ className, type, ...props }, ref) => {
230
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
231
- "input",
232
- {
233
- type,
234
- className: cn(
235
- "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
236
- className,
237
- "alq--input"
238
- ),
239
- ref,
240
- ...props
241
- }
242
- );
243
- }
244
- );
245
- Input.displayName = "Input";
246
-
247
- // src/components/atoms/ui/select.tsx
248
- var React3 = __toESM(require("react"));
249
- var SelectPrimitive = __toESM(require("@radix-ui/react-select"));
250
- var import_lucide_react = require("lucide-react");
251
- var import_jsx_runtime4 = require("react/jsx-runtime");
252
- var Select = SelectPrimitive.Root;
253
- var SelectGroup = SelectPrimitive.Group;
254
- var SelectValue = SelectPrimitive.Value;
255
- var SelectTrigger = React3.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
256
- SelectPrimitive.Trigger,
257
- {
258
- ref,
259
- className: cn(
260
- "flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
261
- className,
262
- "alq--select"
263
- ),
264
- ...props,
265
- children: [
266
- children,
267
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_lucide_react.ChevronDown, { className: "h-4 w-4 opacity-50" }) })
268
- ]
269
- }
270
- ));
271
- SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
272
- var SelectScrollUpButton = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
273
- SelectPrimitive.ScrollUpButton,
274
- {
275
- ref,
276
- className: cn(
277
- "flex cursor-default items-center justify-center py-1",
278
- className
279
- ),
280
- ...props,
281
- children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_lucide_react.ChevronUp, { className: "h-4 w-4" })
282
- }
283
- ));
284
- SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
285
- var SelectScrollDownButton = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
286
- SelectPrimitive.ScrollDownButton,
287
- {
288
- ref,
289
- className: cn(
290
- "flex cursor-default items-center justify-center py-1",
291
- className
292
- ),
293
- ...props,
294
- children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_lucide_react.ChevronDown, { className: "h-4 w-4" })
295
- }
296
- ));
297
- SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
298
- var SelectContent = React3.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
299
- SelectPrimitive.Content,
300
- {
301
- ref,
302
- className: cn(
303
- "relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
304
- position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
305
- className
306
- ),
307
- position,
308
- ...props,
309
- children: [
310
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(SelectScrollUpButton, {}),
311
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
312
- SelectPrimitive.Viewport,
313
- {
314
- className: cn(
315
- "p-1",
316
- position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
317
- ),
318
- children
319
- }
320
- ),
321
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(SelectScrollDownButton, {})
322
- ]
323
- }
324
- ) }));
325
- SelectContent.displayName = SelectPrimitive.Content.displayName;
326
- var SelectLabel = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
327
- SelectPrimitive.Label,
328
- {
329
- ref,
330
- className: cn("py-1.5 pl-8 pr-2 text-sm font-semibold", className),
331
- ...props
332
- }
333
- ));
334
- SelectLabel.displayName = SelectPrimitive.Label.displayName;
335
- var SelectItem = React3.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
336
- SelectPrimitive.Item,
337
- {
338
- ref,
339
- className: cn(
340
- "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
341
- className
342
- ),
343
- ...props,
344
- children: [
345
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_lucide_react.Check, { className: "h-4 w-4" }) }) }),
346
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(SelectPrimitive.ItemText, { children })
347
- ]
348
- }
349
- ));
350
- SelectItem.displayName = SelectPrimitive.Item.displayName;
351
- var SelectSeparator = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
352
- SelectPrimitive.Separator,
353
- {
354
- ref,
355
- className: cn("-mx-1 my-1 h-px bg-muted", className),
356
- ...props
357
- }
358
- ));
359
- SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
360
-
361
- // src/components/atoms/ui/avatar.tsx
362
- var React4 = __toESM(require("react"));
363
- var AvatarPrimitive = __toESM(require("@radix-ui/react-avatar"));
364
- var import_jsx_runtime5 = require("react/jsx-runtime");
365
- var Avatar = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
366
- AvatarPrimitive.Root,
367
- {
368
- ref,
369
- className: cn(
370
- "relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",
371
- className
372
- ),
373
- ...props
374
- }
375
- ));
376
- Avatar.displayName = AvatarPrimitive.Root.displayName;
377
- var AvatarImage = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
378
- AvatarPrimitive.Image,
379
- {
380
- ref,
381
- className: cn("aspect-square h-full w-full", className),
382
- ...props
383
- }
384
- ));
385
- AvatarImage.displayName = AvatarPrimitive.Image.displayName;
386
- var AvatarFallback = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
387
- AvatarPrimitive.Fallback,
388
- {
389
- ref,
390
- className: cn(
391
- "flex h-full w-full items-center justify-center rounded-full bg-muted",
392
- className
393
- ),
394
- ...props
395
- }
396
- ));
397
- AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
398
-
399
- // src/components/atoms/ui/scroll-area.tsx
400
- var React5 = __toESM(require("react"));
401
- var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"));
402
- var import_jsx_runtime6 = require("react/jsx-runtime");
403
- var ScrollArea = React5.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
404
- ScrollAreaPrimitive.Root,
405
- {
406
- ref,
407
- className: cn("relative overflow-hidden", className),
408
- ...props,
409
- children: [
410
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ScrollAreaPrimitive.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
411
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ScrollBar, {}),
412
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ScrollAreaPrimitive.Corner, {})
413
- ]
414
- }
415
- ));
416
- ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
417
- var ScrollBar = React5.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
418
- ScrollAreaPrimitive.ScrollAreaScrollbar,
419
- {
420
- ref,
421
- orientation,
422
- className: cn(
423
- "flex touch-none select-none transition-colors",
424
- orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
425
- orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
426
- className
427
- ),
428
- ...props,
429
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
430
- }
431
- ));
432
- ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
433
-
434
- // src/components/atoms/ui/rich-text.tsx
435
- var import_react_markdown = __toESM(require("react-markdown"));
436
- var import_remark_gfm = __toESM(require("remark-gfm"));
437
- var import_jsx_runtime7 = require("react/jsx-runtime");
438
- function RichText({ content, className }) {
439
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_markdown.default, { className: cn(className), remarkPlugins: [import_remark_gfm.default], children: content });
440
- }
441
-
442
- // src/components/atoms/ui/skeleton.tsx
443
- var import_jsx_runtime8 = require("react/jsx-runtime");
444
- function Skeleton({
445
- className,
446
- ...props
447
- }) {
448
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
449
- "div",
450
- {
451
- className: cn("animate-pulse rounded-md bg-muted text-muted-foreground", className, "alq--skeleton"),
452
- ...props
453
- }
454
- );
455
- }
456
-
457
- // src/components/atoms/ui/card.tsx
458
- var React6 = __toESM(require("react"));
459
- var import_jsx_runtime9 = require("react/jsx-runtime");
460
- var Card = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
461
- "div",
462
- {
463
- ref,
464
- className: cn(
465
- "rounded-lg",
466
- " border",
467
- "bg-card",
468
- "text-card-foreground",
469
- "shadow-raised",
470
- className
471
- ),
472
- ...props
473
- }
474
- ));
475
- Card.displayName = "Card";
476
- var CardHeader = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
477
- "div",
478
- {
479
- ref,
480
- className: cn("flex flex-col space-y-1.5 p-6", className),
481
- ...props
482
- }
483
- ));
484
- CardHeader.displayName = "CardHeader";
485
- var CardTitle = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
486
- "h3",
487
- {
488
- ref,
489
- className: cn("alq--typography-heading4", className),
490
- ...props
491
- }
492
- ));
493
- CardTitle.displayName = "CardTitle";
494
- var CardDescription = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
495
- "p",
496
- {
497
- ref,
498
- className: cn("text-sm text-muted-foreground", className),
499
- ...props
500
- }
501
- ));
502
- CardDescription.displayName = "CardDescription";
503
- var CardContent = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { ref, className: cn("p-6 pt-0", className), ...props }));
504
- CardContent.displayName = "CardContent";
505
- var CardFooter = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
506
- "div",
507
- {
508
- ref,
509
- className: cn("flex items-center p-6 pt-0", className),
510
- ...props
511
- }
512
- ));
513
- CardFooter.displayName = "CardFooter";
514
-
515
- // src/components/atoms/ui/drawer.tsx
516
- var React7 = __toESM(require("react"));
517
- var import_vaul = require("vaul");
518
- var import_jsx_runtime10 = require("react/jsx-runtime");
519
- var Drawer = ({
520
- shouldScaleBackground = true,
521
- ...props
522
- }) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
523
- import_vaul.Drawer.Root,
524
- {
525
- shouldScaleBackground,
526
- ...props
527
- }
528
- );
529
- Drawer.displayName = "Drawer";
530
- var DrawerTrigger = import_vaul.Drawer.Trigger;
531
- var DrawerPortal = import_vaul.Drawer.Portal;
532
- var DrawerClose = import_vaul.Drawer.Close;
533
- var DrawerOverlay = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
534
- import_vaul.Drawer.Overlay,
535
- {
536
- ref,
537
- className: cn("fixed inset-0 z-50 bg-black/80", className),
538
- ...props
539
- }
540
- ));
541
- DrawerOverlay.displayName = import_vaul.Drawer.Overlay.displayName;
542
- var DrawerContent = React7.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(DrawerPortal, { children: [
543
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(DrawerOverlay, {}),
544
- /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
545
- import_vaul.Drawer.Content,
546
- {
547
- ref,
548
- className: cn(
549
- "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border border-border bg-background text-foreground alq--drawer-content",
550
- className
551
- ),
552
- ...props,
553
- children: [
554
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
555
- children
556
- ]
557
- }
558
- )
559
- ] }));
560
- DrawerContent.displayName = "DrawerContent";
561
- var DrawerHeader = ({
562
- className,
563
- ...props
564
- }) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
565
- "div",
566
- {
567
- className: cn("grid gap-1.5 p-4 text-center sm:text-left", className, "alq--drawer-header"),
568
- ...props
569
- }
570
- );
571
- DrawerHeader.displayName = "DrawerHeader";
572
- var DrawerFooter = ({
573
- className,
574
- ...props
575
- }) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
576
- "div",
577
- {
578
- className: cn("mt-auto flex flex-col gap-2 p-4", className, "alq--drawer-footer"),
579
- ...props
580
- }
581
- );
582
- DrawerFooter.displayName = "DrawerFooter";
583
- var DrawerTitle = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
584
- import_vaul.Drawer.Title,
585
- {
586
- ref,
587
- className: cn(
588
- "text-lg font-semibold leading-none tracking-tight",
589
- className,
590
- "alq--drawer-title"
591
- ),
592
- ...props
593
- }
594
- ));
595
- DrawerTitle.displayName = import_vaul.Drawer.Title.displayName;
596
- var DrawerDescription = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
597
- import_vaul.Drawer.Description,
598
- {
599
- ref,
600
- className: cn("text-sm text-muted-foreground", className, "alq--drawer-description"),
601
- ...props
602
- }
603
- ));
604
- DrawerDescription.displayName = import_vaul.Drawer.Description.displayName;
605
-
606
- // src/components/atoms/ui/typography/index.tsx
607
- var import_react2 = require("react");
608
- var import_jsx_runtime11 = require("react/jsx-runtime");
609
- var Typography = (0, import_react2.forwardRef)(
610
- ({ as: Component = "p", typeStyle, ...props }, ref) => {
611
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
612
- Component,
613
- {
614
- ...props,
615
- className: cn(props.className, `alq--typography-${typeStyle}`),
616
- ref
617
- }
618
- );
619
- }
620
- );
621
- Typography.displayName = "Typography";
622
-
623
- // src/components/atoms/ui/badge.tsx
624
- var import_class_variance_authority2 = require("class-variance-authority");
625
- var import_jsx_runtime12 = require("react/jsx-runtime");
626
- var badgeVariants = (0, import_class_variance_authority2.cva)(
627
- "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",
628
- {
629
- variants: {
630
- variant: {
631
- default: "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
632
- secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
633
- destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
634
- outline: "text-foreground"
635
- }
636
- },
637
- defaultVariants: {
638
- variant: "default"
639
- }
640
- }
641
- );
642
- function Badge({ className, variant, ...props }) {
643
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: cn(badgeVariants({ variant }), className, "alq--badge"), ...props });
644
- }
645
-
646
- // src/components/atoms/ui/alert.tsx
647
- var React8 = __toESM(require("react"));
648
- var import_class_variance_authority3 = require("class-variance-authority");
649
- var import_jsx_runtime13 = require("react/jsx-runtime");
650
- var alertVariants = (0, import_class_variance_authority3.cva)(
651
- "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",
652
- {
653
- variants: {
654
- variant: {
655
- default: "bg-background text-foreground",
656
- destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"
657
- }
658
- },
659
- defaultVariants: {
660
- variant: "default"
661
- }
662
- }
663
- );
664
- var Alert = React8.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
665
- "div",
666
- {
667
- ref,
668
- role: "alert",
669
- className: cn(alertVariants({ variant }), className),
670
- ...props
671
- }
672
- ));
673
- Alert.displayName = "Alert";
674
- var AlertTitle = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
675
- "h5",
676
- {
677
- ref,
678
- className: cn("mb-1 font-medium leading-none tracking-tight", className),
679
- ...props
680
- }
681
- ));
682
- AlertTitle.displayName = "AlertTitle";
683
- var AlertDescription = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
684
- "div",
685
- {
686
- ref,
687
- className: cn("text-sm [&_p]:leading-relaxed", className),
688
- ...props
689
- }
690
- ));
691
- AlertDescription.displayName = "AlertDescription";
692
-
693
- // src/components/atoms/ui/label.tsx
694
- var React9 = __toESM(require("react"));
695
- var LabelPrimitive = __toESM(require("@radix-ui/react-label"));
696
- var import_class_variance_authority4 = require("class-variance-authority");
697
- var import_jsx_runtime14 = require("react/jsx-runtime");
698
- var labelVariants = (0, import_class_variance_authority4.cva)(
699
- "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
700
- );
701
- var Label2 = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
702
- LabelPrimitive.Root,
703
- {
704
- ref,
705
- className: cn(labelVariants(), className, "alq--label"),
706
- ...props
707
- }
708
- ));
709
- Label2.displayName = LabelPrimitive.Root.displayName;
710
-
711
- // src/components/atoms/ui/checkbox.tsx
712
- var React10 = __toESM(require("react"));
713
- var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"));
714
- var import_lucide_react2 = require("lucide-react");
715
- var import_jsx_runtime15 = require("react/jsx-runtime");
716
- var Checkbox = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
717
- CheckboxPrimitive.Root,
718
- {
719
- ref,
720
- className: cn(
721
- "peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
722
- className,
723
- "alq--checkbox"
724
- ),
725
- ...props,
726
- children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
727
- CheckboxPrimitive.Indicator,
728
- {
729
- className: cn("flex items-center justify-center text-current"),
730
- children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react2.Check, { className: "h-4 w-4" })
731
- }
732
- )
733
- }
734
- ));
735
- Checkbox.displayName = CheckboxPrimitive.Root.displayName;
736
-
737
- // src/components/atoms/ui/toggle.tsx
738
- var React11 = __toESM(require("react"));
739
- var TogglePrimitive = __toESM(require("@radix-ui/react-toggle"));
740
- var import_class_variance_authority5 = require("class-variance-authority");
741
- var import_jsx_runtime16 = require("react/jsx-runtime");
742
- var toggleVariants = (0, import_class_variance_authority5.cva)(
743
- "inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",
744
- {
745
- variants: {
746
- variant: {
747
- default: "bg-transparent",
748
- outline: "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"
749
- },
750
- size: {
751
- default: "h-10 px-3",
752
- sm: "h-9 px-2.5",
753
- lg: "h-11 px-5"
754
- }
755
- },
756
- defaultVariants: {
757
- variant: "default",
758
- size: "default"
759
- }
760
- }
761
- );
762
- var Toggle = React11.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
763
- TogglePrimitive.Root,
764
- {
765
- ref,
766
- className: cn(toggleVariants({ variant, size, className }), "alq--toggle"),
767
- ...props
768
- }
769
- ));
770
- Toggle.displayName = TogglePrimitive.Root.displayName;
771
-
772
- // src/components/atoms/ui/slider.tsx
773
- var React12 = __toESM(require("react"));
774
- var SliderPrimitive = __toESM(require("@radix-ui/react-slider"));
775
- var import_jsx_runtime17 = require("react/jsx-runtime");
776
- var Slider = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
777
- SliderPrimitive.Root,
778
- {
779
- ref,
780
- className: cn(
781
- "relative flex w-44 touch-none select-none items-center",
782
- className,
783
- "alq--slider"
784
- ),
785
- ...props,
786
- children: [
787
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(SliderPrimitive.Track, { className: "relative h-2 w-44 grow overflow-hidden rounded-full bg-primary", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(SliderPrimitive.Range, { className: "absolute h-full bg-secondary" }) }),
788
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(SliderPrimitive.Thumb, { className: "block h-5 w-5 rounded-full border-2 border-gray 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" })
789
- ]
790
- }
791
- ));
792
- Slider.displayName = SliderPrimitive.Root.displayName;
793
-
794
- // src/components/atoms/ui/switch.tsx
795
- var React13 = __toESM(require("react"));
796
- var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"));
797
- var import_jsx_runtime18 = require("react/jsx-runtime");
798
- var Switch = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
799
- SwitchPrimitives.Root,
800
- {
801
- className: cn(
802
- "peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
803
- className,
804
- "alq--switch"
805
- ),
806
- ...props,
807
- ref,
808
- children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
809
- SwitchPrimitives.Thumb,
810
- {
811
- className: cn(
812
- "pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"
813
- )
814
- }
815
- )
816
- }
817
- ));
818
- Switch.displayName = SwitchPrimitives.Root.displayName;
819
-
820
- // src/components/atoms/ui/tabs.tsx
821
- var React14 = __toESM(require("react"));
822
- var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
823
- var import_jsx_runtime19 = require("react/jsx-runtime");
824
- var Tabs = TabsPrimitive.Root;
825
- var TabsList = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
826
- TabsPrimitive.List,
827
- {
828
- ref,
829
- className: cn(
830
- "inline-flex h-10 items-center justify-center rounded-md p-1 text-muted-foreground",
831
- className,
832
- "alq--tabs"
833
- ),
834
- ...props
835
- }
836
- ));
837
- TabsList.displayName = TabsPrimitive.List.displayName;
838
- var TabsTrigger = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
839
- TabsPrimitive.Trigger,
840
- {
841
- ref,
842
- className: cn(
843
- "inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:border-b-2 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-b-2 data-[state=active]:text-foreground data-[state=active]:shadow-sm",
844
- className
845
- ),
846
- ...props
847
- }
848
- ));
849
- TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
850
- var TabsContent = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
851
- TabsPrimitive.Content,
852
- {
853
- ref,
854
- className: cn(
855
- "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
856
- className
857
- ),
858
- ...props
859
- }
860
- ));
861
- TabsContent.displayName = TabsPrimitive.Content.displayName;
862
-
863
- // src/components/atoms/ui/aspect-ratio.tsx
864
- var AspectRatioPrimitive = __toESM(require("@radix-ui/react-aspect-ratio"));
865
- var AspectRatio = AspectRatioPrimitive.Root;
866
-
867
- // src/components/atoms/ui/table.tsx
868
- var React15 = __toESM(require("react"));
869
- var import_jsx_runtime20 = require("react/jsx-runtime");
870
- var Table = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
871
- "table",
872
- {
873
- ref,
874
- className: cn("w-full caption-bottom text-sm text-foreground bg-background", className, "alq--table"),
875
- ...props
876
- }
877
- ) }));
878
- Table.displayName = "Table";
879
- var TableHeader = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("thead", { ref, className: cn("[&_tr]:border-b border-border bg-muted", className, "alq--table-header"), ...props }));
880
- TableHeader.displayName = "TableHeader";
881
- var TableBody = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
882
- "tbody",
883
- {
884
- ref,
885
- className: cn("[&_tr:last-child]:border-0 [&_tr]:border-b border-border", className, "alq--table-body"),
886
- ...props
887
- }
888
- ));
889
- TableBody.displayName = "TableBody";
890
- var TableFooter = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
891
- "tfoot",
892
- {
893
- ref,
894
- className: cn(
895
- "border-t border-border bg-muted/50 font-medium [&>tr]:last:border-b-0",
896
- className,
897
- "alq--table-footer"
898
- ),
899
- ...props
900
- }
901
- ));
902
- TableFooter.displayName = "TableFooter";
903
- var TableRow = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
904
- "tr",
905
- {
906
- ref,
907
- className: cn(
908
- "border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",
909
- className
910
- ),
911
- ...props
912
- }
913
- ));
914
- TableRow.displayName = "TableRow";
915
- var TableHead = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
916
- "th",
917
- {
918
- ref,
919
- className: cn(
920
- "h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",
921
- className
922
- ),
923
- ...props
924
- }
925
- ));
926
- TableHead.displayName = "TableHead";
927
- var TableCell = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
928
- "td",
929
- {
930
- ref,
931
- className: cn("p-4 align-middle [&:has([role=checkbox])]:pr-0", className),
932
- ...props
933
- }
934
- ));
935
- TableCell.displayName = "TableCell";
936
- var TableCaption = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
937
- "caption",
938
- {
939
- ref,
940
- className: cn("mt-4 text-sm text-muted-foreground", className),
941
- ...props
942
- }
943
- ));
944
- TableCaption.displayName = "TableCaption";
945
-
946
- // src/components/atoms/ui/breadcrumb.tsx
947
- var React16 = __toESM(require("react"));
948
- var import_react_slot2 = require("@radix-ui/react-slot");
949
- var import_lucide_react3 = require("lucide-react");
950
- var import_jsx_runtime21 = require("react/jsx-runtime");
951
- var Breadcrumb = React16.forwardRef(({ ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("nav", { ref, "aria-label": "breadcrumb", ...props }));
952
- Breadcrumb.displayName = "Breadcrumb";
953
- var BreadcrumbList = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
954
- "ol",
955
- {
956
- ref,
957
- className: cn(
958
- "flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",
959
- className
960
- ),
961
- ...props
962
- }
963
- ));
964
- BreadcrumbList.displayName = "BreadcrumbList";
965
- var BreadcrumbItem = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
966
- "li",
967
- {
968
- ref,
969
- className: cn("inline-flex items-center gap-1.5", className),
970
- ...props
971
- }
972
- ));
973
- BreadcrumbItem.displayName = "BreadcrumbItem";
974
- var BreadcrumbLink = React16.forwardRef(({ asChild, className, ...props }, ref) => {
975
- const Comp = asChild ? import_react_slot2.Slot : "a";
976
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
977
- Comp,
978
- {
979
- ref,
980
- className: cn("transition-colors hover:text-foreground", className),
981
- ...props
982
- }
983
- );
984
- });
985
- BreadcrumbLink.displayName = "BreadcrumbLink";
986
- var BreadcrumbPage = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
987
- "span",
988
- {
989
- ref,
990
- role: "link",
991
- "aria-disabled": "true",
992
- "aria-current": "page",
993
- className: cn("font-normal text-foreground", className),
994
- ...props
995
- }
996
- ));
997
- BreadcrumbPage.displayName = "BreadcrumbPage";
998
- var BreadcrumbSeparator = ({
999
- children,
1000
- className,
1001
- ...props
1002
- }) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1003
- "li",
1004
- {
1005
- role: "presentation",
1006
- "aria-hidden": "true",
1007
- className: cn("[&>svg]:w-3.5 [&>svg]:h-3.5", className),
1008
- ...props,
1009
- children: children ?? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react3.ChevronRight, {})
1010
- }
1011
- );
1012
- BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
1013
- var BreadcrumbEllipsis = ({
1014
- className,
1015
- ...props
1016
- }) => /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
1017
- "span",
1018
- {
1019
- role: "presentation",
1020
- "aria-hidden": "true",
1021
- className: cn("flex h-9 w-9 items-center justify-center", className),
1022
- ...props,
1023
- children: [
1024
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react3.MoreHorizontal, { className: "h-4 w-4" }),
1025
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "sr-only", children: "More" })
1026
- ]
1027
- }
1028
- );
1029
- BreadcrumbEllipsis.displayName = "BreadcrumbElipssis";
1030
-
1031
- // src/components/molecules/alert-dialog.tsx
1032
- var React17 = __toESM(require("react"));
1033
- var AlertDialogPrimitive = __toESM(require("@radix-ui/react-alert-dialog"));
1034
- var import_jsx_runtime22 = require("react/jsx-runtime");
1035
- var AlertDialog = AlertDialogPrimitive.Root;
1036
- var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
1037
- var AlertDialogPortal = AlertDialogPrimitive.Portal;
1038
- var AlertDialogOverlay = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1039
- AlertDialogPrimitive.Overlay,
1040
- {
1041
- className: cn(
1042
- "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
1043
- className
1044
- ),
1045
- ...props,
1046
- ref
1047
- }
1048
- ));
1049
- AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
1050
- var AlertDialogContent = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(AlertDialogPortal, { children: [
1051
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(AlertDialogOverlay, {}),
1052
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1053
- AlertDialogPrimitive.Content,
1054
- {
1055
- ref,
1056
- className: cn(
1057
- "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
1058
- className
1059
- ),
1060
- ...props
1061
- }
1062
- )
1063
- ] }));
1064
- AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
1065
- var AlertDialogHeader = ({
1066
- className,
1067
- ...props
1068
- }) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1069
- "div",
1070
- {
1071
- className: cn(
1072
- "flex flex-col space-y-2 text-center sm:text-left",
1073
- className
1074
- ),
1075
- ...props
1076
- }
1077
- );
1078
- AlertDialogHeader.displayName = "AlertDialogHeader";
1079
- var AlertDialogFooter = ({
1080
- className,
1081
- ...props
1082
- }) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1083
- "div",
1084
- {
1085
- className: cn(
1086
- "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
1087
- className
1088
- ),
1089
- ...props
1090
- }
1091
- );
1092
- AlertDialogFooter.displayName = "AlertDialogFooter";
1093
- var AlertDialogTitle = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1094
- AlertDialogPrimitive.Title,
1095
- {
1096
- ref,
1097
- className: cn("text-lg font-semibold", className),
1098
- ...props
1099
- }
1100
- ));
1101
- AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
1102
- var AlertDialogDescription = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1103
- AlertDialogPrimitive.Description,
1104
- {
1105
- ref,
1106
- className: cn("text-sm text-muted-foreground", className),
1107
- ...props
1108
- }
1109
- ));
1110
- AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
1111
- var AlertDialogAction = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1112
- AlertDialogPrimitive.Action,
1113
- {
1114
- ref,
1115
- className: cn(buttonVariants(), className),
1116
- ...props
1117
- }
1118
- ));
1119
- AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
1120
- var AlertDialogCancel = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1121
- AlertDialogPrimitive.Cancel,
1122
- {
1123
- ref,
1124
- className: cn(
1125
- buttonVariants({ variant: "outline" }),
1126
- "mt-2 sm:mt-0",
1127
- className
1128
- ),
1129
- ...props
1130
- }
1131
- ));
1132
- AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
1133
-
1134
- // src/components/atoms/ui/popover.tsx
1135
- var React18 = __toESM(require("react"));
1136
- var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
1137
- var import_jsx_runtime23 = require("react/jsx-runtime");
1138
- var Popover = PopoverPrimitive.Root;
1139
- var PopoverTrigger = PopoverPrimitive.Trigger;
1140
- var PopoverContent = React18.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1141
- PopoverPrimitive.Content,
1142
- {
1143
- ref,
1144
- align,
1145
- sideOffset,
1146
- className: cn(
1147
- "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1148
- className
1149
- ),
1150
- ...props
1151
- }
1152
- ) }));
1153
- PopoverContent.displayName = PopoverPrimitive.Content.displayName;
1154
-
1155
- // src/components/atoms/ui/command.tsx
1156
- var React20 = __toESM(require("react"));
1157
- var import_cmdk = require("cmdk");
1158
- var import_lucide_react5 = require("lucide-react");
1159
-
1160
- // src/components/atoms/ui/dialog.tsx
1161
- var React19 = __toESM(require("react"));
1162
- var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"));
1163
- var import_lucide_react4 = require("lucide-react");
1164
- var import_jsx_runtime24 = require("react/jsx-runtime");
1165
- var Dialog = DialogPrimitive.Root;
1166
- var DialogTrigger = DialogPrimitive.Trigger;
1167
- var DialogPortal = DialogPrimitive.Portal;
1168
- var DialogClose = DialogPrimitive.Close;
1169
- var DialogOverlay = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1170
- DialogPrimitive.Overlay,
1171
- {
1172
- ref,
1173
- className: cn(
1174
- "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
1175
- className
1176
- ),
1177
- ...props
1178
- }
1179
- ));
1180
- DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
1181
- var DialogContent = React19.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(DialogPortal, { children: [
1182
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(DialogOverlay, {}),
1183
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
1184
- DialogPrimitive.Content,
1185
- {
1186
- ref,
1187
- className: cn(
1188
- "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
1189
- className,
1190
- "alq--dialog-content"
1191
- ),
1192
- ...props,
1193
- children: [
1194
- children,
1195
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
1196
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react4.X, { className: "h-4 w-4" }),
1197
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "sr-only", children: "Close" })
1198
- ] })
1199
- ]
1200
- }
1201
- )
1202
- ] }));
1203
- DialogContent.displayName = DialogPrimitive.Content.displayName;
1204
- var DialogHeader = ({
1205
- className,
1206
- ...props
1207
- }) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1208
- "div",
1209
- {
1210
- className: cn(
1211
- "flex flex-col space-y-1.5 text-center sm:text-left text-foreground",
1212
- className,
1213
- "alq--dialog-header"
1214
- ),
1215
- ...props
1216
- }
1217
- );
1218
- DialogHeader.displayName = "DialogHeader";
1219
- var DialogFooter = ({
1220
- className,
1221
- ...props
1222
- }) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1223
- "div",
1224
- {
1225
- className: cn(
1226
- "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
1227
- className
1228
- ),
1229
- ...props
1230
- }
1231
- );
1232
- DialogFooter.displayName = "DialogFooter";
1233
- var DialogTitle = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1234
- DialogPrimitive.Title,
1235
- {
1236
- ref,
1237
- className: cn(
1238
- "text-lg font-semibold leading-none tracking-tight text-foreground",
1239
- className,
1240
- "alq--dialog-title"
1241
- ),
1242
- ...props
1243
- }
1244
- ));
1245
- DialogTitle.displayName = DialogPrimitive.Title.displayName;
1246
- var DialogDescription = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1247
- DialogPrimitive.Description,
1248
- {
1249
- ref,
1250
- className: cn("text-sm text-muted-foreground", className),
1251
- ...props
1252
- }
1253
- ));
1254
- DialogDescription.displayName = DialogPrimitive.Description.displayName;
1255
-
1256
- // src/components/atoms/ui/command.tsx
1257
- var import_jsx_runtime25 = require("react/jsx-runtime");
1258
- var Command = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1259
- import_cmdk.Command,
1260
- {
1261
- ref,
1262
- className: cn(
1263
- "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
1264
- className
1265
- ),
1266
- ...props
1267
- }
1268
- ));
1269
- Command.displayName = import_cmdk.Command.displayName;
1270
- var CommandDialog = ({ children, ...props }) => {
1271
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Dialog, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(DialogContent, { className: "overflow-hidden p-0 shadow-lg", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Command, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children }) }) });
1272
- };
1273
- var CommandInput = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
1274
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react5.Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
1275
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1276
- import_cmdk.Command.Input,
1277
- {
1278
- ref,
1279
- className: cn(
1280
- "flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
1281
- className
1282
- ),
1283
- ...props
1284
- }
1285
- )
1286
- ] }));
1287
- CommandInput.displayName = import_cmdk.Command.Input.displayName;
1288
- var CommandList = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1289
- import_cmdk.Command.List,
1290
- {
1291
- ref,
1292
- className: cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className),
1293
- ...props
1294
- }
1295
- ));
1296
- CommandList.displayName = import_cmdk.Command.List.displayName;
1297
- var CommandEmpty = React20.forwardRef((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1298
- import_cmdk.Command.Empty,
1299
- {
1300
- ref,
1301
- className: "py-6 text-center text-sm",
1302
- ...props
1303
- }
1304
- ));
1305
- CommandEmpty.displayName = import_cmdk.Command.Empty.displayName;
1306
- var CommandGroup = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1307
- import_cmdk.Command.Group,
1308
- {
1309
- ref,
1310
- className: cn(
1311
- "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
1312
- className
1313
- ),
1314
- ...props
1315
- }
1316
- ));
1317
- CommandGroup.displayName = import_cmdk.Command.Group.displayName;
1318
- var CommandSeparator = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1319
- import_cmdk.Command.Separator,
1320
- {
1321
- ref,
1322
- className: cn("-mx-1 h-px bg-border", className),
1323
- ...props
1324
- }
1325
- ));
1326
- CommandSeparator.displayName = import_cmdk.Command.Separator.displayName;
1327
- var CommandItem = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1328
- import_cmdk.Command.Item,
1329
- {
1330
- ref,
1331
- className: cn(
1332
- "relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
1333
- className
1334
- ),
1335
- ...props
1336
- }
1337
- ));
1338
- CommandItem.displayName = import_cmdk.Command.Item.displayName;
1339
- var CommandShortcut = ({
1340
- className,
1341
- ...props
1342
- }) => {
1343
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1344
- "span",
1345
- {
1346
- className: cn(
1347
- "ml-auto text-xs tracking-widest text-muted-foreground",
1348
- className
1349
- ),
1350
- ...props
1351
- }
1352
- );
1353
- };
1354
- CommandShortcut.displayName = "CommandShortcut";
1355
-
1356
- // src/components/atoms/ui/toast.tsx
1357
- var React21 = __toESM(require("react"));
1358
- var ToastPrimitives = __toESM(require("@radix-ui/react-toast"));
1359
- var import_class_variance_authority6 = require("class-variance-authority");
1360
- var import_lucide_react6 = require("lucide-react");
1361
- var import_jsx_runtime26 = require("react/jsx-runtime");
1362
- var ToastProvider = ToastPrimitives.Provider;
1363
- var ToastViewport = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1364
- ToastPrimitives.Viewport,
1365
- {
1366
- ref,
1367
- className: cn(
1368
- "fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",
1369
- className
1370
- ),
1371
- ...props
1372
- }
1373
- ));
1374
- ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
1375
- var toastVariants = (0, import_class_variance_authority6.cva)(
1376
- "group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",
1377
- {
1378
- variants: {
1379
- variant: {
1380
- default: "border bg-background text-foreground",
1381
- destructive: "destructive group border-destructive bg-destructive text-destructive-foreground"
1382
- }
1383
- },
1384
- defaultVariants: {
1385
- variant: "default"
1386
- }
1387
- }
1388
- );
1389
- var Toast = React21.forwardRef(({ className, variant, ...props }, ref) => {
1390
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1391
- ToastPrimitives.Root,
1392
- {
1393
- ref,
1394
- className: cn(toastVariants({ variant }), className),
1395
- ...props
1396
- }
1397
- );
1398
- });
1399
- Toast.displayName = ToastPrimitives.Root.displayName;
1400
- var ToastAction = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1401
- ToastPrimitives.Action,
1402
- {
1403
- ref,
1404
- className: cn(
1405
- "inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",
1406
- className
1407
- ),
1408
- ...props
1409
- }
1410
- ));
1411
- ToastAction.displayName = ToastPrimitives.Action.displayName;
1412
- var ToastClose = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1413
- ToastPrimitives.Close,
1414
- {
1415
- ref,
1416
- className: cn(
1417
- "absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",
1418
- className
1419
- ),
1420
- "toast-close": "",
1421
- ...props,
1422
- children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_lucide_react6.X, { className: "h-4 w-4" })
1423
- }
1424
- ));
1425
- ToastClose.displayName = ToastPrimitives.Close.displayName;
1426
- var ToastTitle = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1427
- ToastPrimitives.Title,
1428
- {
1429
- ref,
1430
- className: cn("text-sm font-semibold", className),
1431
- ...props
1432
- }
1433
- ));
1434
- ToastTitle.displayName = ToastPrimitives.Title.displayName;
1435
- var ToastDescription = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1436
- ToastPrimitives.Description,
1437
- {
1438
- ref,
1439
- className: cn("text-sm opacity-90", className),
1440
- ...props
1441
- }
1442
- ));
1443
- ToastDescription.displayName = ToastPrimitives.Description.displayName;
1444
-
1445
- // src/components/atoms/ui/loader.tsx
1446
- var React22 = __toESM(require("react"));
1447
- var import_class_variance_authority7 = require("class-variance-authority");
1448
- var import_lucide_react7 = require("lucide-react");
1449
- var import_jsx_runtime27 = require("react/jsx-runtime");
1450
- var loaderVariants = (0, import_class_variance_authority7.cva)(
1451
- "flex justify-center items-center w-full",
1452
- {
1453
- variants: {
1454
- size: {
1455
- small: "h-6 w-6",
1456
- medium: "h-8 w-8",
1457
- large: "h-12 w-12",
1458
- xl: "h-24 w-24"
1459
- },
1460
- colorVariant: {
1461
- default: "text-primary",
1462
- primary: "text-primary",
1463
- secondary: "text-secondary",
1464
- destructive: "text-destructive"
1465
- }
1466
- },
1467
- defaultVariants: {
1468
- size: "medium",
1469
- colorVariant: "default"
1470
- }
1471
- }
1472
- );
1473
- var Loader = React22.forwardRef(
1474
- ({ className, size, colorVariant, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1475
- "div",
1476
- {
1477
- ref,
1478
- className: cn(loaderVariants({ size, colorVariant }), "flex justify-center items-center h-full w-full", className),
1479
- ...props,
1480
- children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_lucide_react7.Loader2, { className: "animate-spin" })
1481
- }
1482
- )
1483
- );
1484
- Loader.displayName = "Loader";
1485
-
1486
- // src/components/atoms/ui/separator.tsx
1487
- var React23 = __toESM(require("react"));
1488
- var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"));
1489
- var import_jsx_runtime28 = require("react/jsx-runtime");
1490
- var Separator2 = React23.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1491
- SeparatorPrimitive.Root,
1492
- {
1493
- ref,
1494
- decorative,
1495
- orientation,
1496
- className: cn(
1497
- "shrink-0 bg-border",
1498
- orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
1499
- className,
1500
- "alq--separator"
1501
- ),
1502
- ...props
1503
- }
1504
- ));
1505
- Separator2.displayName = SeparatorPrimitive.Root.displayName;
1506
-
1507
- // src/components/hooks/use-toast.ts
1508
- var React24 = __toESM(require("react"));
1509
- var TOAST_LIMIT = 1;
1510
- var TOAST_REMOVE_DELAY = 1e6;
1511
- var count = 0;
1512
- function genId() {
1513
- count = (count + 1) % Number.MAX_SAFE_INTEGER;
1514
- return count.toString();
1515
- }
1516
- var toastTimeouts = /* @__PURE__ */ new Map();
1517
- var addToRemoveQueue = (toastId) => {
1518
- if (toastTimeouts.has(toastId)) {
1519
- return;
1520
- }
1521
- const timeout = setTimeout(() => {
1522
- toastTimeouts.delete(toastId);
1523
- dispatch({
1524
- type: "REMOVE_TOAST",
1525
- toastId
1526
- });
1527
- }, TOAST_REMOVE_DELAY);
1528
- toastTimeouts.set(toastId, timeout);
1529
- };
1530
- var reducer = (state, action) => {
1531
- switch (action.type) {
1532
- case "ADD_TOAST":
1533
- return {
1534
- ...state,
1535
- toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT)
1536
- };
1537
- case "UPDATE_TOAST":
1538
- return {
1539
- ...state,
1540
- toasts: state.toasts.map(
1541
- (t) => t.id === action.toast.id ? { ...t, ...action.toast } : t
1542
- )
1543
- };
1544
- case "DISMISS_TOAST": {
1545
- const { toastId } = action;
1546
- if (toastId) {
1547
- addToRemoveQueue(toastId);
1548
- } else {
1549
- state.toasts.forEach((toast2) => {
1550
- addToRemoveQueue(toast2.id);
1551
- });
1552
- }
1553
- return {
1554
- ...state,
1555
- toasts: state.toasts.map(
1556
- (t) => t.id === toastId || toastId === void 0 ? {
1557
- ...t,
1558
- open: false
1559
- } : t
1560
- )
1561
- };
1562
- }
1563
- case "REMOVE_TOAST":
1564
- if (action.toastId === void 0) {
1565
- return {
1566
- ...state,
1567
- toasts: []
1568
- };
1569
- }
1570
- return {
1571
- ...state,
1572
- toasts: state.toasts.filter((t) => t.id !== action.toastId)
1573
- };
1574
- }
1575
- };
1576
- var listeners = [];
1577
- var memoryState = { toasts: [] };
1578
- function dispatch(action) {
1579
- memoryState = reducer(memoryState, action);
1580
- listeners.forEach((listener) => {
1581
- listener(memoryState);
1582
- });
1583
- }
1584
- function toast({ ...props }) {
1585
- const id = genId();
1586
- const update = (props2) => dispatch({
1587
- type: "UPDATE_TOAST",
1588
- toast: { ...props2, id }
1589
- });
1590
- const dismiss = () => dispatch({ type: "DISMISS_TOAST", toastId: id });
1591
- dispatch({
1592
- type: "ADD_TOAST",
1593
- toast: {
1594
- ...props,
1595
- id,
1596
- open: true,
1597
- onOpenChange: (open) => {
1598
- if (!open) dismiss();
1599
- }
1600
- }
1601
- });
1602
- return {
1603
- id,
1604
- dismiss,
1605
- update
1606
- };
1607
- }
1608
- function useToast() {
1609
- const [state, setState] = React24.useState(memoryState);
1610
- React24.useEffect(() => {
1611
- listeners.push(setState);
1612
- return () => {
1613
- const index = listeners.indexOf(setState);
1614
- if (index > -1) {
1615
- listeners.splice(index, 1);
1616
- }
1617
- };
1618
- }, [state]);
1619
- return {
1620
- ...state,
1621
- toast,
1622
- dismiss: (toastId) => dispatch({ type: "DISMISS_TOAST", toastId })
1623
- };
1624
- }
1625
-
1626
- // src/components/atoms/ui/toaster.tsx
1627
- var import_jsx_runtime29 = require("react/jsx-runtime");
1628
- function Toaster() {
1629
- const { toasts } = useToast();
1630
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(ToastProvider, { children: [
1631
- toasts.map(function({ id, title, description, action, ...props }) {
1632
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(Toast, { ...props, children: [
1633
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "grid gap-1", children: [
1634
- title && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ToastTitle, { children: title }),
1635
- description && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ToastDescription, { children: description })
1636
- ] }),
1637
- action,
1638
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ToastClose, {})
1639
- ] }, id);
1640
- }),
1641
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ToastViewport, {})
1642
- ] });
1643
- }
1644
-
1645
- // src/components/atoms/ui/think-indicator.tsx
1646
- var React25 = __toESM(require("react"));
1647
- var import_react3 = require("react");
1648
- var import_class_variance_authority8 = require("class-variance-authority");
1649
- var import_jsx_runtime30 = require("react/jsx-runtime");
1650
- var thinkIndicatorVariants = (0, import_class_variance_authority8.cva)(
1651
- "flex items-center gap-3",
1652
- {
1653
- variants: {
1654
- variant: {
1655
- default: "text-muted-foreground",
1656
- primary: "text-primary",
1657
- secondary: "text-secondary"
1658
- },
1659
- size: {
1660
- default: "gap-3",
1661
- sm: "gap-2",
1662
- lg: "gap-4"
1663
- }
1664
- },
1665
- defaultVariants: {
1666
- variant: "default",
1667
- size: "default"
1668
- }
1669
- }
1670
- );
1671
- var ThinkIndicator = React25.forwardRef(
1672
- ({
1673
- className,
1674
- variant,
1675
- size,
1676
- thoughts = [
1677
- "Analyzing your request...",
1678
- "Processing information...",
1679
- "Formulating response..."
1680
- ],
1681
- interval = 5e3,
1682
- loader,
1683
- ...props
1684
- }, ref) => {
1685
- const [currentThoughtIndex, setCurrentThoughtIndex] = (0, import_react3.useState)(0);
1686
- const [isAnimating, setIsAnimating] = (0, import_react3.useState)(false);
1687
- (0, import_react3.useEffect)(() => {
1688
- const timer = setInterval(() => {
1689
- setIsAnimating(true);
1690
- setTimeout(() => {
1691
- setCurrentThoughtIndex((prev) => {
1692
- return prev < thoughts.length - 1 ? prev + 1 : prev;
1693
- });
1694
- setIsAnimating(false);
1695
- }, 300);
1696
- }, interval);
1697
- if (currentThoughtIndex === thoughts.length - 1) {
1698
- clearInterval(timer);
1699
- }
1700
- return () => clearInterval(timer);
1701
- }, [thoughts, interval, currentThoughtIndex]);
1702
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
1703
- "div",
1704
- {
1705
- ref,
1706
- className: cn(thinkIndicatorVariants({ variant, size }), className, "alq--think-indicator"),
1707
- ...props,
1708
- children: [
1709
- loader || /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1710
- Loader,
1711
- {
1712
- className: cn(
1713
- size === "sm" ? "h-3 w-3" : size === "lg" ? "h-5 w-5" : "h-4 w-4"
1714
- )
1715
- }
1716
- ),
1717
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1718
- "div",
1719
- {
1720
- className: cn(
1721
- "alq--think-indicator-text",
1722
- "transition-all duration-300",
1723
- isAnimating ? "opacity-0 -translate-y-2" : "opacity-100 translate-y-0"
1724
- ),
1725
- children: thoughts[currentThoughtIndex]
1726
- }
1727
- )
1728
- ]
1729
- }
1730
- );
1731
- }
1732
- );
1733
- ThinkIndicator.displayName = "ThinkIndicator";
1734
- //# sourceMappingURL=index.js.map