@alquimia-ai/ui 1.9.3 → 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,1504 +0,0 @@
1
- "use client";
2
- // src/lib/utils.ts
3
- import { clsx } from "clsx";
4
- import { twMerge } from "tailwind-merge";
5
- function cn(...inputs) {
6
- return twMerge(clsx(inputs));
7
- }
8
-
9
- // src/components/atoms/ui/button.tsx
10
- import * as React from "react";
11
- import { Slot } from "@radix-ui/react-slot";
12
- import { cva } from "class-variance-authority";
13
- import { jsx } from "react/jsx-runtime";
14
- var buttonVariants = cva(
15
- "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",
16
- {
17
- variants: {
18
- variant: {
19
- default: "bg-primary text-primary-foreground hover:bg-primary/90",
20
- destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
21
- outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
22
- secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
23
- ghost: "hover:bg-accent hover:text-accent-foreground",
24
- link: "text-primary underline-offset-4 hover:underline"
25
- },
26
- size: {
27
- default: "h-10 px-4 py-2",
28
- sm: "h-9 rounded-md px-3",
29
- lg: "h-11 rounded-md px-8",
30
- icon: "h-10 w-10"
31
- }
32
- },
33
- defaultVariants: {
34
- variant: "default",
35
- size: "default"
36
- }
37
- }
38
- );
39
- var Button = React.forwardRef(
40
- ({ className, variant, size, asChild = false, ...props }, ref) => {
41
- const Comp = asChild ? Slot : "button";
42
- return /* @__PURE__ */ jsx(
43
- Comp,
44
- {
45
- className: cn(buttonVariants({ variant, size, className })),
46
- ref,
47
- ...props
48
- }
49
- );
50
- }
51
- );
52
- Button.displayName = "Button";
53
-
54
- // src/components/atoms/ui/textarea.tsx
55
- import * as React2 from "react";
56
- import { jsx as jsx2 } from "react/jsx-runtime";
57
- var Textarea = React2.forwardRef(
58
- ({ className, ...props }, ref) => {
59
- return /* @__PURE__ */ jsx2(
60
- "textarea",
61
- {
62
- className: cn(
63
- "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",
64
- className,
65
- "alq--textarea"
66
- ),
67
- ref,
68
- ...props
69
- }
70
- );
71
- }
72
- );
73
- Textarea.displayName = "Textarea";
74
-
75
- // src/components/atoms/ui/input.tsx
76
- import { forwardRef as forwardRef3 } from "react";
77
- import { jsx as jsx3 } from "react/jsx-runtime";
78
- var Input = forwardRef3(
79
- ({ className, type, ...props }, ref) => {
80
- return /* @__PURE__ */ jsx3(
81
- "input",
82
- {
83
- type,
84
- className: cn(
85
- "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",
86
- className,
87
- "alq--input"
88
- ),
89
- ref,
90
- ...props
91
- }
92
- );
93
- }
94
- );
95
- Input.displayName = "Input";
96
-
97
- // src/components/atoms/ui/select.tsx
98
- import * as React3 from "react";
99
- import * as SelectPrimitive from "@radix-ui/react-select";
100
- import { Check, ChevronDown, ChevronUp } from "lucide-react";
101
- import { jsx as jsx4, jsxs } from "react/jsx-runtime";
102
- var SelectTrigger = React3.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
103
- SelectPrimitive.Trigger,
104
- {
105
- ref,
106
- className: cn(
107
- "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",
108
- className,
109
- "alq--select"
110
- ),
111
- ...props,
112
- children: [
113
- children,
114
- /* @__PURE__ */ jsx4(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx4(ChevronDown, { className: "h-4 w-4 opacity-50" }) })
115
- ]
116
- }
117
- ));
118
- SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
119
- var SelectScrollUpButton = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx4(
120
- SelectPrimitive.ScrollUpButton,
121
- {
122
- ref,
123
- className: cn(
124
- "flex cursor-default items-center justify-center py-1",
125
- className
126
- ),
127
- ...props,
128
- children: /* @__PURE__ */ jsx4(ChevronUp, { className: "h-4 w-4" })
129
- }
130
- ));
131
- SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
132
- var SelectScrollDownButton = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx4(
133
- SelectPrimitive.ScrollDownButton,
134
- {
135
- ref,
136
- className: cn(
137
- "flex cursor-default items-center justify-center py-1",
138
- className
139
- ),
140
- ...props,
141
- children: /* @__PURE__ */ jsx4(ChevronDown, { className: "h-4 w-4" })
142
- }
143
- ));
144
- SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
145
- var SelectContent = React3.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx4(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
146
- SelectPrimitive.Content,
147
- {
148
- ref,
149
- className: cn(
150
- "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",
151
- 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",
152
- className
153
- ),
154
- position,
155
- ...props,
156
- children: [
157
- /* @__PURE__ */ jsx4(SelectScrollUpButton, {}),
158
- /* @__PURE__ */ jsx4(
159
- SelectPrimitive.Viewport,
160
- {
161
- className: cn(
162
- "p-1",
163
- position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
164
- ),
165
- children
166
- }
167
- ),
168
- /* @__PURE__ */ jsx4(SelectScrollDownButton, {})
169
- ]
170
- }
171
- ) }));
172
- SelectContent.displayName = SelectPrimitive.Content.displayName;
173
- var SelectLabel = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx4(
174
- SelectPrimitive.Label,
175
- {
176
- ref,
177
- className: cn("py-1.5 pl-8 pr-2 text-sm font-semibold", className),
178
- ...props
179
- }
180
- ));
181
- SelectLabel.displayName = SelectPrimitive.Label.displayName;
182
- var SelectItem = React3.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
183
- SelectPrimitive.Item,
184
- {
185
- ref,
186
- className: cn(
187
- "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",
188
- className
189
- ),
190
- ...props,
191
- children: [
192
- /* @__PURE__ */ jsx4("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx4(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx4(Check, { className: "h-4 w-4" }) }) }),
193
- /* @__PURE__ */ jsx4(SelectPrimitive.ItemText, { children })
194
- ]
195
- }
196
- ));
197
- SelectItem.displayName = SelectPrimitive.Item.displayName;
198
- var SelectSeparator = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx4(
199
- SelectPrimitive.Separator,
200
- {
201
- ref,
202
- className: cn("-mx-1 my-1 h-px bg-muted", className),
203
- ...props
204
- }
205
- ));
206
- SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
207
-
208
- // src/components/atoms/ui/avatar.tsx
209
- import * as React4 from "react";
210
- import * as AvatarPrimitive from "@radix-ui/react-avatar";
211
- import { jsx as jsx5 } from "react/jsx-runtime";
212
- var Avatar = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx5(
213
- AvatarPrimitive.Root,
214
- {
215
- ref,
216
- className: cn(
217
- "relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",
218
- className
219
- ),
220
- ...props
221
- }
222
- ));
223
- Avatar.displayName = AvatarPrimitive.Root.displayName;
224
- var AvatarImage = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx5(
225
- AvatarPrimitive.Image,
226
- {
227
- ref,
228
- className: cn("aspect-square h-full w-full", className),
229
- ...props
230
- }
231
- ));
232
- AvatarImage.displayName = AvatarPrimitive.Image.displayName;
233
- var AvatarFallback = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx5(
234
- AvatarPrimitive.Fallback,
235
- {
236
- ref,
237
- className: cn(
238
- "flex h-full w-full items-center justify-center rounded-full bg-muted",
239
- className
240
- ),
241
- ...props
242
- }
243
- ));
244
- AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
245
-
246
- // src/components/atoms/ui/scroll-area.tsx
247
- import * as React5 from "react";
248
- import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
249
- import { jsx as jsx6, jsxs as jsxs2 } from "react/jsx-runtime";
250
- var ScrollArea = React5.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs2(
251
- ScrollAreaPrimitive.Root,
252
- {
253
- ref,
254
- className: cn("relative overflow-hidden", className),
255
- ...props,
256
- children: [
257
- /* @__PURE__ */ jsx6(ScrollAreaPrimitive.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
258
- /* @__PURE__ */ jsx6(ScrollBar, {}),
259
- /* @__PURE__ */ jsx6(ScrollAreaPrimitive.Corner, {})
260
- ]
261
- }
262
- ));
263
- ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
264
- var ScrollBar = React5.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx6(
265
- ScrollAreaPrimitive.ScrollAreaScrollbar,
266
- {
267
- ref,
268
- orientation,
269
- className: cn(
270
- "flex touch-none select-none transition-colors",
271
- orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
272
- orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
273
- className
274
- ),
275
- ...props,
276
- children: /* @__PURE__ */ jsx6(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
277
- }
278
- ));
279
- ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
280
-
281
- // src/components/atoms/ui/rich-text.tsx
282
- import ReactMarkdown from "react-markdown";
283
- import remarkGfm from "remark-gfm";
284
- import { jsx as jsx7 } from "react/jsx-runtime";
285
-
286
- // src/components/atoms/ui/skeleton.tsx
287
- import { jsx as jsx8 } from "react/jsx-runtime";
288
-
289
- // src/components/atoms/ui/card.tsx
290
- import * as React6 from "react";
291
- import { jsx as jsx9 } from "react/jsx-runtime";
292
- var Card = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
293
- "div",
294
- {
295
- ref,
296
- className: cn(
297
- "rounded-lg",
298
- " border",
299
- "bg-card",
300
- "text-card-foreground",
301
- "shadow-raised",
302
- className
303
- ),
304
- ...props
305
- }
306
- ));
307
- Card.displayName = "Card";
308
- var CardHeader = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
309
- "div",
310
- {
311
- ref,
312
- className: cn("flex flex-col space-y-1.5 p-6", className),
313
- ...props
314
- }
315
- ));
316
- CardHeader.displayName = "CardHeader";
317
- var CardTitle = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
318
- "h3",
319
- {
320
- ref,
321
- className: cn("alq--typography-heading4", className),
322
- ...props
323
- }
324
- ));
325
- CardTitle.displayName = "CardTitle";
326
- var CardDescription = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
327
- "p",
328
- {
329
- ref,
330
- className: cn("text-sm text-muted-foreground", className),
331
- ...props
332
- }
333
- ));
334
- CardDescription.displayName = "CardDescription";
335
- var CardContent = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9("div", { ref, className: cn("p-6 pt-0", className), ...props }));
336
- CardContent.displayName = "CardContent";
337
- var CardFooter = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
338
- "div",
339
- {
340
- ref,
341
- className: cn("flex items-center p-6 pt-0", className),
342
- ...props
343
- }
344
- ));
345
- CardFooter.displayName = "CardFooter";
346
-
347
- // src/components/atoms/ui/drawer.tsx
348
- import * as React7 from "react";
349
- import { Drawer as DrawerPrimitive } from "vaul";
350
- import { jsx as jsx10, jsxs as jsxs3 } from "react/jsx-runtime";
351
- var Drawer = ({
352
- shouldScaleBackground = true,
353
- ...props
354
- }) => /* @__PURE__ */ jsx10(
355
- DrawerPrimitive.Root,
356
- {
357
- shouldScaleBackground,
358
- ...props
359
- }
360
- );
361
- Drawer.displayName = "Drawer";
362
- var DrawerTrigger = DrawerPrimitive.Trigger;
363
- var DrawerPortal = DrawerPrimitive.Portal;
364
- var DrawerClose = DrawerPrimitive.Close;
365
- var DrawerOverlay = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx10(
366
- DrawerPrimitive.Overlay,
367
- {
368
- ref,
369
- className: cn("fixed inset-0 z-50 bg-black/80", className),
370
- ...props
371
- }
372
- ));
373
- DrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName;
374
- var DrawerContent = React7.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs3(DrawerPortal, { children: [
375
- /* @__PURE__ */ jsx10(DrawerOverlay, {}),
376
- /* @__PURE__ */ jsxs3(
377
- DrawerPrimitive.Content,
378
- {
379
- ref,
380
- className: cn(
381
- "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",
382
- className
383
- ),
384
- ...props,
385
- children: [
386
- /* @__PURE__ */ jsx10("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
387
- children
388
- ]
389
- }
390
- )
391
- ] }));
392
- DrawerContent.displayName = "DrawerContent";
393
- var DrawerHeader = ({
394
- className,
395
- ...props
396
- }) => /* @__PURE__ */ jsx10(
397
- "div",
398
- {
399
- className: cn("grid gap-1.5 p-4 text-center sm:text-left", className, "alq--drawer-header"),
400
- ...props
401
- }
402
- );
403
- DrawerHeader.displayName = "DrawerHeader";
404
- var DrawerFooter = ({
405
- className,
406
- ...props
407
- }) => /* @__PURE__ */ jsx10(
408
- "div",
409
- {
410
- className: cn("mt-auto flex flex-col gap-2 p-4", className, "alq--drawer-footer"),
411
- ...props
412
- }
413
- );
414
- DrawerFooter.displayName = "DrawerFooter";
415
- var DrawerTitle = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx10(
416
- DrawerPrimitive.Title,
417
- {
418
- ref,
419
- className: cn(
420
- "text-lg font-semibold leading-none tracking-tight",
421
- className,
422
- "alq--drawer-title"
423
- ),
424
- ...props
425
- }
426
- ));
427
- DrawerTitle.displayName = DrawerPrimitive.Title.displayName;
428
- var DrawerDescription = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx10(
429
- DrawerPrimitive.Description,
430
- {
431
- ref,
432
- className: cn("text-sm text-muted-foreground", className, "alq--drawer-description"),
433
- ...props
434
- }
435
- ));
436
- DrawerDescription.displayName = DrawerPrimitive.Description.displayName;
437
-
438
- // src/components/atoms/ui/typography/index.tsx
439
- import { forwardRef as forwardRef9 } from "react";
440
- import { jsx as jsx11 } from "react/jsx-runtime";
441
- var Typography = forwardRef9(
442
- ({ as: Component = "p", typeStyle, ...props }, ref) => {
443
- return /* @__PURE__ */ jsx11(
444
- Component,
445
- {
446
- ...props,
447
- className: cn(props.className, `alq--typography-${typeStyle}`),
448
- ref
449
- }
450
- );
451
- }
452
- );
453
- Typography.displayName = "Typography";
454
-
455
- // src/components/atoms/ui/badge.tsx
456
- import { cva as cva2 } from "class-variance-authority";
457
- import { jsx as jsx12 } from "react/jsx-runtime";
458
- var badgeVariants = cva2(
459
- "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",
460
- {
461
- variants: {
462
- variant: {
463
- default: "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
464
- secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
465
- destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
466
- outline: "text-foreground"
467
- }
468
- },
469
- defaultVariants: {
470
- variant: "default"
471
- }
472
- }
473
- );
474
-
475
- // src/components/atoms/ui/alert.tsx
476
- import * as React8 from "react";
477
- import { cva as cva3 } from "class-variance-authority";
478
- import { jsx as jsx13 } from "react/jsx-runtime";
479
- var alertVariants = cva3(
480
- "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",
481
- {
482
- variants: {
483
- variant: {
484
- default: "bg-background text-foreground",
485
- destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"
486
- }
487
- },
488
- defaultVariants: {
489
- variant: "default"
490
- }
491
- }
492
- );
493
- var Alert = React8.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx13(
494
- "div",
495
- {
496
- ref,
497
- role: "alert",
498
- className: cn(alertVariants({ variant }), className),
499
- ...props
500
- }
501
- ));
502
- Alert.displayName = "Alert";
503
- var AlertTitle = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx13(
504
- "h5",
505
- {
506
- ref,
507
- className: cn("mb-1 font-medium leading-none tracking-tight", className),
508
- ...props
509
- }
510
- ));
511
- AlertTitle.displayName = "AlertTitle";
512
- var AlertDescription = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx13(
513
- "div",
514
- {
515
- ref,
516
- className: cn("text-sm [&_p]:leading-relaxed", className),
517
- ...props
518
- }
519
- ));
520
- AlertDescription.displayName = "AlertDescription";
521
-
522
- // src/components/atoms/ui/label.tsx
523
- import * as React9 from "react";
524
- import * as LabelPrimitive from "@radix-ui/react-label";
525
- import { cva as cva4 } from "class-variance-authority";
526
- import { jsx as jsx14 } from "react/jsx-runtime";
527
- var labelVariants = cva4(
528
- "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
529
- );
530
- var Label2 = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
531
- LabelPrimitive.Root,
532
- {
533
- ref,
534
- className: cn(labelVariants(), className, "alq--label"),
535
- ...props
536
- }
537
- ));
538
- Label2.displayName = LabelPrimitive.Root.displayName;
539
-
540
- // src/components/atoms/ui/checkbox.tsx
541
- import * as React10 from "react";
542
- import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
543
- import { Check as Check2 } from "lucide-react";
544
- import { jsx as jsx15 } from "react/jsx-runtime";
545
- var Checkbox = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
546
- CheckboxPrimitive.Root,
547
- {
548
- ref,
549
- className: cn(
550
- "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",
551
- className,
552
- "alq--checkbox"
553
- ),
554
- ...props,
555
- children: /* @__PURE__ */ jsx15(
556
- CheckboxPrimitive.Indicator,
557
- {
558
- className: cn("flex items-center justify-center text-current"),
559
- children: /* @__PURE__ */ jsx15(Check2, { className: "h-4 w-4" })
560
- }
561
- )
562
- }
563
- ));
564
- Checkbox.displayName = CheckboxPrimitive.Root.displayName;
565
-
566
- // src/components/atoms/ui/toggle.tsx
567
- import * as React11 from "react";
568
- import * as TogglePrimitive from "@radix-ui/react-toggle";
569
- import { cva as cva5 } from "class-variance-authority";
570
- import { jsx as jsx16 } from "react/jsx-runtime";
571
- var toggleVariants = cva5(
572
- "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",
573
- {
574
- variants: {
575
- variant: {
576
- default: "bg-transparent",
577
- outline: "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"
578
- },
579
- size: {
580
- default: "h-10 px-3",
581
- sm: "h-9 px-2.5",
582
- lg: "h-11 px-5"
583
- }
584
- },
585
- defaultVariants: {
586
- variant: "default",
587
- size: "default"
588
- }
589
- }
590
- );
591
- var Toggle = React11.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx16(
592
- TogglePrimitive.Root,
593
- {
594
- ref,
595
- className: cn(toggleVariants({ variant, size, className }), "alq--toggle"),
596
- ...props
597
- }
598
- ));
599
- Toggle.displayName = TogglePrimitive.Root.displayName;
600
-
601
- // src/components/atoms/ui/slider.tsx
602
- import * as React12 from "react";
603
- import * as SliderPrimitive from "@radix-ui/react-slider";
604
- import { jsx as jsx17, jsxs as jsxs4 } from "react/jsx-runtime";
605
- var Slider = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs4(
606
- SliderPrimitive.Root,
607
- {
608
- ref,
609
- className: cn(
610
- "relative flex w-44 touch-none select-none items-center",
611
- className,
612
- "alq--slider"
613
- ),
614
- ...props,
615
- children: [
616
- /* @__PURE__ */ jsx17(SliderPrimitive.Track, { className: "relative h-2 w-44 grow overflow-hidden rounded-full bg-primary", children: /* @__PURE__ */ jsx17(SliderPrimitive.Range, { className: "absolute h-full bg-secondary" }) }),
617
- /* @__PURE__ */ jsx17(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" })
618
- ]
619
- }
620
- ));
621
- Slider.displayName = SliderPrimitive.Root.displayName;
622
-
623
- // src/components/atoms/ui/switch.tsx
624
- import * as React13 from "react";
625
- import * as SwitchPrimitives from "@radix-ui/react-switch";
626
- import { jsx as jsx18 } from "react/jsx-runtime";
627
- var Switch = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx18(
628
- SwitchPrimitives.Root,
629
- {
630
- className: cn(
631
- "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",
632
- className,
633
- "alq--switch"
634
- ),
635
- ...props,
636
- ref,
637
- children: /* @__PURE__ */ jsx18(
638
- SwitchPrimitives.Thumb,
639
- {
640
- className: cn(
641
- "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"
642
- )
643
- }
644
- )
645
- }
646
- ));
647
- Switch.displayName = SwitchPrimitives.Root.displayName;
648
-
649
- // src/components/atoms/ui/tabs.tsx
650
- import * as React14 from "react";
651
- import * as TabsPrimitive from "@radix-ui/react-tabs";
652
- import { jsx as jsx19 } from "react/jsx-runtime";
653
- var TabsList = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx19(
654
- TabsPrimitive.List,
655
- {
656
- ref,
657
- className: cn(
658
- "inline-flex h-10 items-center justify-center rounded-md p-1 text-muted-foreground",
659
- className,
660
- "alq--tabs"
661
- ),
662
- ...props
663
- }
664
- ));
665
- TabsList.displayName = TabsPrimitive.List.displayName;
666
- var TabsTrigger = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx19(
667
- TabsPrimitive.Trigger,
668
- {
669
- ref,
670
- className: cn(
671
- "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",
672
- className
673
- ),
674
- ...props
675
- }
676
- ));
677
- TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
678
- var TabsContent = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx19(
679
- TabsPrimitive.Content,
680
- {
681
- ref,
682
- className: cn(
683
- "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
684
- className
685
- ),
686
- ...props
687
- }
688
- ));
689
- TabsContent.displayName = TabsPrimitive.Content.displayName;
690
-
691
- // src/components/atoms/ui/aspect-ratio.tsx
692
- import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio";
693
-
694
- // src/components/atoms/ui/table.tsx
695
- import * as React15 from "react";
696
- import { jsx as jsx20 } from "react/jsx-runtime";
697
- var Table = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx20(
698
- "table",
699
- {
700
- ref,
701
- className: cn("w-full caption-bottom text-sm text-foreground bg-background", className, "alq--table"),
702
- ...props
703
- }
704
- ) }));
705
- Table.displayName = "Table";
706
- var TableHeader = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20("thead", { ref, className: cn("[&_tr]:border-b border-border bg-muted", className, "alq--table-header"), ...props }));
707
- TableHeader.displayName = "TableHeader";
708
- var TableBody = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
709
- "tbody",
710
- {
711
- ref,
712
- className: cn("[&_tr:last-child]:border-0 [&_tr]:border-b border-border", className, "alq--table-body"),
713
- ...props
714
- }
715
- ));
716
- TableBody.displayName = "TableBody";
717
- var TableFooter = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
718
- "tfoot",
719
- {
720
- ref,
721
- className: cn(
722
- "border-t border-border bg-muted/50 font-medium [&>tr]:last:border-b-0",
723
- className,
724
- "alq--table-footer"
725
- ),
726
- ...props
727
- }
728
- ));
729
- TableFooter.displayName = "TableFooter";
730
- var TableRow = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
731
- "tr",
732
- {
733
- ref,
734
- className: cn(
735
- "border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",
736
- className
737
- ),
738
- ...props
739
- }
740
- ));
741
- TableRow.displayName = "TableRow";
742
- var TableHead = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
743
- "th",
744
- {
745
- ref,
746
- className: cn(
747
- "h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",
748
- className
749
- ),
750
- ...props
751
- }
752
- ));
753
- TableHead.displayName = "TableHead";
754
- var TableCell = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
755
- "td",
756
- {
757
- ref,
758
- className: cn("p-4 align-middle [&:has([role=checkbox])]:pr-0", className),
759
- ...props
760
- }
761
- ));
762
- TableCell.displayName = "TableCell";
763
- var TableCaption = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
764
- "caption",
765
- {
766
- ref,
767
- className: cn("mt-4 text-sm text-muted-foreground", className),
768
- ...props
769
- }
770
- ));
771
- TableCaption.displayName = "TableCaption";
772
-
773
- // src/components/atoms/ui/breadcrumb.tsx
774
- import * as React16 from "react";
775
- import { Slot as Slot2 } from "@radix-ui/react-slot";
776
- import { ChevronRight, MoreHorizontal } from "lucide-react";
777
- import { jsx as jsx21, jsxs as jsxs5 } from "react/jsx-runtime";
778
- var Breadcrumb = React16.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx21("nav", { ref, "aria-label": "breadcrumb", ...props }));
779
- Breadcrumb.displayName = "Breadcrumb";
780
- var BreadcrumbList = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx21(
781
- "ol",
782
- {
783
- ref,
784
- className: cn(
785
- "flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",
786
- className
787
- ),
788
- ...props
789
- }
790
- ));
791
- BreadcrumbList.displayName = "BreadcrumbList";
792
- var BreadcrumbItem = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx21(
793
- "li",
794
- {
795
- ref,
796
- className: cn("inline-flex items-center gap-1.5", className),
797
- ...props
798
- }
799
- ));
800
- BreadcrumbItem.displayName = "BreadcrumbItem";
801
- var BreadcrumbLink = React16.forwardRef(({ asChild, className, ...props }, ref) => {
802
- const Comp = asChild ? Slot2 : "a";
803
- return /* @__PURE__ */ jsx21(
804
- Comp,
805
- {
806
- ref,
807
- className: cn("transition-colors hover:text-foreground", className),
808
- ...props
809
- }
810
- );
811
- });
812
- BreadcrumbLink.displayName = "BreadcrumbLink";
813
- var BreadcrumbPage = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx21(
814
- "span",
815
- {
816
- ref,
817
- role: "link",
818
- "aria-disabled": "true",
819
- "aria-current": "page",
820
- className: cn("font-normal text-foreground", className),
821
- ...props
822
- }
823
- ));
824
- BreadcrumbPage.displayName = "BreadcrumbPage";
825
- var BreadcrumbSeparator = ({
826
- children,
827
- className,
828
- ...props
829
- }) => /* @__PURE__ */ jsx21(
830
- "li",
831
- {
832
- role: "presentation",
833
- "aria-hidden": "true",
834
- className: cn("[&>svg]:w-3.5 [&>svg]:h-3.5", className),
835
- ...props,
836
- children: children ?? /* @__PURE__ */ jsx21(ChevronRight, {})
837
- }
838
- );
839
- BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
840
- var BreadcrumbEllipsis = ({
841
- className,
842
- ...props
843
- }) => /* @__PURE__ */ jsxs5(
844
- "span",
845
- {
846
- role: "presentation",
847
- "aria-hidden": "true",
848
- className: cn("flex h-9 w-9 items-center justify-center", className),
849
- ...props,
850
- children: [
851
- /* @__PURE__ */ jsx21(MoreHorizontal, { className: "h-4 w-4" }),
852
- /* @__PURE__ */ jsx21("span", { className: "sr-only", children: "More" })
853
- ]
854
- }
855
- );
856
- BreadcrumbEllipsis.displayName = "BreadcrumbElipssis";
857
-
858
- // src/components/molecules/alert-dialog.tsx
859
- import * as React17 from "react";
860
- import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
861
- import { jsx as jsx22, jsxs as jsxs6 } from "react/jsx-runtime";
862
- var AlertDialogPortal = AlertDialogPrimitive.Portal;
863
- var AlertDialogOverlay = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(
864
- AlertDialogPrimitive.Overlay,
865
- {
866
- className: cn(
867
- "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",
868
- className
869
- ),
870
- ...props,
871
- ref
872
- }
873
- ));
874
- AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
875
- var AlertDialogContent = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs6(AlertDialogPortal, { children: [
876
- /* @__PURE__ */ jsx22(AlertDialogOverlay, {}),
877
- /* @__PURE__ */ jsx22(
878
- AlertDialogPrimitive.Content,
879
- {
880
- ref,
881
- className: cn(
882
- "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",
883
- className
884
- ),
885
- ...props
886
- }
887
- )
888
- ] }));
889
- AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
890
- var AlertDialogHeader = ({
891
- className,
892
- ...props
893
- }) => /* @__PURE__ */ jsx22(
894
- "div",
895
- {
896
- className: cn(
897
- "flex flex-col space-y-2 text-center sm:text-left",
898
- className
899
- ),
900
- ...props
901
- }
902
- );
903
- AlertDialogHeader.displayName = "AlertDialogHeader";
904
- var AlertDialogFooter = ({
905
- className,
906
- ...props
907
- }) => /* @__PURE__ */ jsx22(
908
- "div",
909
- {
910
- className: cn(
911
- "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
912
- className
913
- ),
914
- ...props
915
- }
916
- );
917
- AlertDialogFooter.displayName = "AlertDialogFooter";
918
- var AlertDialogTitle = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(
919
- AlertDialogPrimitive.Title,
920
- {
921
- ref,
922
- className: cn("text-lg font-semibold", className),
923
- ...props
924
- }
925
- ));
926
- AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
927
- var AlertDialogDescription = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(
928
- AlertDialogPrimitive.Description,
929
- {
930
- ref,
931
- className: cn("text-sm text-muted-foreground", className),
932
- ...props
933
- }
934
- ));
935
- AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
936
- var AlertDialogAction = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(
937
- AlertDialogPrimitive.Action,
938
- {
939
- ref,
940
- className: cn(buttonVariants(), className),
941
- ...props
942
- }
943
- ));
944
- AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
945
- var AlertDialogCancel = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(
946
- AlertDialogPrimitive.Cancel,
947
- {
948
- ref,
949
- className: cn(
950
- buttonVariants({ variant: "outline" }),
951
- "mt-2 sm:mt-0",
952
- className
953
- ),
954
- ...props
955
- }
956
- ));
957
- AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
958
-
959
- // src/components/atoms/ui/popover.tsx
960
- import * as React18 from "react";
961
- import * as PopoverPrimitive from "@radix-ui/react-popover";
962
- import { jsx as jsx23 } from "react/jsx-runtime";
963
- var PopoverContent = React18.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx23(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx23(
964
- PopoverPrimitive.Content,
965
- {
966
- ref,
967
- align,
968
- sideOffset,
969
- className: cn(
970
- "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",
971
- className
972
- ),
973
- ...props
974
- }
975
- ) }));
976
- PopoverContent.displayName = PopoverPrimitive.Content.displayName;
977
-
978
- // src/components/atoms/ui/command.tsx
979
- import * as React20 from "react";
980
- import { Command as CommandPrimitive } from "cmdk";
981
- import { Search } from "lucide-react";
982
-
983
- // src/components/atoms/ui/dialog.tsx
984
- import * as React19 from "react";
985
- import * as DialogPrimitive from "@radix-ui/react-dialog";
986
- import { X } from "lucide-react";
987
- import { jsx as jsx24, jsxs as jsxs7 } from "react/jsx-runtime";
988
- var DialogPortal = DialogPrimitive.Portal;
989
- var DialogOverlay = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx24(
990
- DialogPrimitive.Overlay,
991
- {
992
- ref,
993
- className: cn(
994
- "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",
995
- className
996
- ),
997
- ...props
998
- }
999
- ));
1000
- DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
1001
- var DialogContent = React19.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs7(DialogPortal, { children: [
1002
- /* @__PURE__ */ jsx24(DialogOverlay, {}),
1003
- /* @__PURE__ */ jsxs7(
1004
- DialogPrimitive.Content,
1005
- {
1006
- ref,
1007
- className: cn(
1008
- "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",
1009
- className,
1010
- "alq--dialog-content"
1011
- ),
1012
- ...props,
1013
- children: [
1014
- children,
1015
- /* @__PURE__ */ jsxs7(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: [
1016
- /* @__PURE__ */ jsx24(X, { className: "h-4 w-4" }),
1017
- /* @__PURE__ */ jsx24("span", { className: "sr-only", children: "Close" })
1018
- ] })
1019
- ]
1020
- }
1021
- )
1022
- ] }));
1023
- DialogContent.displayName = DialogPrimitive.Content.displayName;
1024
- var DialogHeader = ({
1025
- className,
1026
- ...props
1027
- }) => /* @__PURE__ */ jsx24(
1028
- "div",
1029
- {
1030
- className: cn(
1031
- "flex flex-col space-y-1.5 text-center sm:text-left text-foreground",
1032
- className,
1033
- "alq--dialog-header"
1034
- ),
1035
- ...props
1036
- }
1037
- );
1038
- DialogHeader.displayName = "DialogHeader";
1039
- var DialogFooter = ({
1040
- className,
1041
- ...props
1042
- }) => /* @__PURE__ */ jsx24(
1043
- "div",
1044
- {
1045
- className: cn(
1046
- "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
1047
- className
1048
- ),
1049
- ...props
1050
- }
1051
- );
1052
- DialogFooter.displayName = "DialogFooter";
1053
- var DialogTitle = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx24(
1054
- DialogPrimitive.Title,
1055
- {
1056
- ref,
1057
- className: cn(
1058
- "text-lg font-semibold leading-none tracking-tight text-foreground",
1059
- className,
1060
- "alq--dialog-title"
1061
- ),
1062
- ...props
1063
- }
1064
- ));
1065
- DialogTitle.displayName = DialogPrimitive.Title.displayName;
1066
- var DialogDescription = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx24(
1067
- DialogPrimitive.Description,
1068
- {
1069
- ref,
1070
- className: cn("text-sm text-muted-foreground", className),
1071
- ...props
1072
- }
1073
- ));
1074
- DialogDescription.displayName = DialogPrimitive.Description.displayName;
1075
-
1076
- // src/components/atoms/ui/command.tsx
1077
- import { jsx as jsx25, jsxs as jsxs8 } from "react/jsx-runtime";
1078
- var Command = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25(
1079
- CommandPrimitive,
1080
- {
1081
- ref,
1082
- className: cn(
1083
- "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
1084
- className
1085
- ),
1086
- ...props
1087
- }
1088
- ));
1089
- Command.displayName = CommandPrimitive.displayName;
1090
- var CommandInput = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs8("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
1091
- /* @__PURE__ */ jsx25(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
1092
- /* @__PURE__ */ jsx25(
1093
- CommandPrimitive.Input,
1094
- {
1095
- ref,
1096
- className: cn(
1097
- "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",
1098
- className
1099
- ),
1100
- ...props
1101
- }
1102
- )
1103
- ] }));
1104
- CommandInput.displayName = CommandPrimitive.Input.displayName;
1105
- var CommandList = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25(
1106
- CommandPrimitive.List,
1107
- {
1108
- ref,
1109
- className: cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className),
1110
- ...props
1111
- }
1112
- ));
1113
- CommandList.displayName = CommandPrimitive.List.displayName;
1114
- var CommandEmpty = React20.forwardRef((props, ref) => /* @__PURE__ */ jsx25(
1115
- CommandPrimitive.Empty,
1116
- {
1117
- ref,
1118
- className: "py-6 text-center text-sm",
1119
- ...props
1120
- }
1121
- ));
1122
- CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
1123
- var CommandGroup = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25(
1124
- CommandPrimitive.Group,
1125
- {
1126
- ref,
1127
- className: cn(
1128
- "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",
1129
- className
1130
- ),
1131
- ...props
1132
- }
1133
- ));
1134
- CommandGroup.displayName = CommandPrimitive.Group.displayName;
1135
- var CommandSeparator = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25(
1136
- CommandPrimitive.Separator,
1137
- {
1138
- ref,
1139
- className: cn("-mx-1 h-px bg-border", className),
1140
- ...props
1141
- }
1142
- ));
1143
- CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
1144
- var CommandItem = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25(
1145
- CommandPrimitive.Item,
1146
- {
1147
- ref,
1148
- className: cn(
1149
- "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",
1150
- className
1151
- ),
1152
- ...props
1153
- }
1154
- ));
1155
- CommandItem.displayName = CommandPrimitive.Item.displayName;
1156
- var CommandShortcut = ({
1157
- className,
1158
- ...props
1159
- }) => {
1160
- return /* @__PURE__ */ jsx25(
1161
- "span",
1162
- {
1163
- className: cn(
1164
- "ml-auto text-xs tracking-widest text-muted-foreground",
1165
- className
1166
- ),
1167
- ...props
1168
- }
1169
- );
1170
- };
1171
- CommandShortcut.displayName = "CommandShortcut";
1172
-
1173
- // src/components/atoms/ui/toast.tsx
1174
- import * as React21 from "react";
1175
- import * as ToastPrimitives from "@radix-ui/react-toast";
1176
- import { cva as cva6 } from "class-variance-authority";
1177
- import { X as X2 } from "lucide-react";
1178
- import { jsx as jsx26 } from "react/jsx-runtime";
1179
- var ToastViewport = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx26(
1180
- ToastPrimitives.Viewport,
1181
- {
1182
- ref,
1183
- className: cn(
1184
- "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]",
1185
- className
1186
- ),
1187
- ...props
1188
- }
1189
- ));
1190
- ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
1191
- var toastVariants = cva6(
1192
- "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",
1193
- {
1194
- variants: {
1195
- variant: {
1196
- default: "border bg-background text-foreground",
1197
- destructive: "destructive group border-destructive bg-destructive text-destructive-foreground"
1198
- }
1199
- },
1200
- defaultVariants: {
1201
- variant: "default"
1202
- }
1203
- }
1204
- );
1205
- var Toast = React21.forwardRef(({ className, variant, ...props }, ref) => {
1206
- return /* @__PURE__ */ jsx26(
1207
- ToastPrimitives.Root,
1208
- {
1209
- ref,
1210
- className: cn(toastVariants({ variant }), className),
1211
- ...props
1212
- }
1213
- );
1214
- });
1215
- Toast.displayName = ToastPrimitives.Root.displayName;
1216
- var ToastAction = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx26(
1217
- ToastPrimitives.Action,
1218
- {
1219
- ref,
1220
- className: cn(
1221
- "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",
1222
- className
1223
- ),
1224
- ...props
1225
- }
1226
- ));
1227
- ToastAction.displayName = ToastPrimitives.Action.displayName;
1228
- var ToastClose = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx26(
1229
- ToastPrimitives.Close,
1230
- {
1231
- ref,
1232
- className: cn(
1233
- "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",
1234
- className
1235
- ),
1236
- "toast-close": "",
1237
- ...props,
1238
- children: /* @__PURE__ */ jsx26(X2, { className: "h-4 w-4" })
1239
- }
1240
- ));
1241
- ToastClose.displayName = ToastPrimitives.Close.displayName;
1242
- var ToastTitle = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx26(
1243
- ToastPrimitives.Title,
1244
- {
1245
- ref,
1246
- className: cn("text-sm font-semibold", className),
1247
- ...props
1248
- }
1249
- ));
1250
- ToastTitle.displayName = ToastPrimitives.Title.displayName;
1251
- var ToastDescription = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx26(
1252
- ToastPrimitives.Description,
1253
- {
1254
- ref,
1255
- className: cn("text-sm opacity-90", className),
1256
- ...props
1257
- }
1258
- ));
1259
- ToastDescription.displayName = ToastPrimitives.Description.displayName;
1260
-
1261
- // src/components/atoms/ui/loader.tsx
1262
- import * as React22 from "react";
1263
- import { cva as cva7 } from "class-variance-authority";
1264
- import { Loader2 } from "lucide-react";
1265
- import { jsx as jsx27 } from "react/jsx-runtime";
1266
- var loaderVariants = cva7(
1267
- "flex justify-center items-center w-full",
1268
- {
1269
- variants: {
1270
- size: {
1271
- small: "h-6 w-6",
1272
- medium: "h-8 w-8",
1273
- large: "h-12 w-12",
1274
- xl: "h-24 w-24"
1275
- },
1276
- colorVariant: {
1277
- default: "text-primary",
1278
- primary: "text-primary",
1279
- secondary: "text-secondary",
1280
- destructive: "text-destructive"
1281
- }
1282
- },
1283
- defaultVariants: {
1284
- size: "medium",
1285
- colorVariant: "default"
1286
- }
1287
- }
1288
- );
1289
- var Loader = React22.forwardRef(
1290
- ({ className, size, colorVariant, ...props }, ref) => /* @__PURE__ */ jsx27(
1291
- "div",
1292
- {
1293
- ref,
1294
- className: cn(loaderVariants({ size, colorVariant }), "flex justify-center items-center h-full w-full", className),
1295
- ...props,
1296
- children: /* @__PURE__ */ jsx27(Loader2, { className: "animate-spin" })
1297
- }
1298
- )
1299
- );
1300
- Loader.displayName = "Loader";
1301
-
1302
- // src/components/atoms/ui/separator.tsx
1303
- import * as React23 from "react";
1304
- import * as SeparatorPrimitive from "@radix-ui/react-separator";
1305
- import { jsx as jsx28 } from "react/jsx-runtime";
1306
- var Separator2 = React23.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx28(
1307
- SeparatorPrimitive.Root,
1308
- {
1309
- ref,
1310
- decorative,
1311
- orientation,
1312
- className: cn(
1313
- "shrink-0 bg-border",
1314
- orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
1315
- className,
1316
- "alq--separator"
1317
- ),
1318
- ...props
1319
- }
1320
- ));
1321
- Separator2.displayName = SeparatorPrimitive.Root.displayName;
1322
-
1323
- // src/components/hooks/use-toast.ts
1324
- import * as React24 from "react";
1325
-
1326
- // src/components/atoms/ui/toaster.tsx
1327
- import { jsx as jsx29, jsxs as jsxs9 } from "react/jsx-runtime";
1328
-
1329
- // src/components/atoms/ui/think-indicator.tsx
1330
- import * as React25 from "react";
1331
- import { useState as useState2, useEffect as useEffect2 } from "react";
1332
- import { cva as cva8 } from "class-variance-authority";
1333
- import { jsx as jsx30, jsxs as jsxs10 } from "react/jsx-runtime";
1334
- var thinkIndicatorVariants = cva8(
1335
- "flex items-center gap-3",
1336
- {
1337
- variants: {
1338
- variant: {
1339
- default: "text-muted-foreground",
1340
- primary: "text-primary",
1341
- secondary: "text-secondary"
1342
- },
1343
- size: {
1344
- default: "gap-3",
1345
- sm: "gap-2",
1346
- lg: "gap-4"
1347
- }
1348
- },
1349
- defaultVariants: {
1350
- variant: "default",
1351
- size: "default"
1352
- }
1353
- }
1354
- );
1355
- var ThinkIndicator = React25.forwardRef(
1356
- ({
1357
- className,
1358
- variant,
1359
- size,
1360
- thoughts = [
1361
- "Analyzing your request...",
1362
- "Processing information...",
1363
- "Formulating response..."
1364
- ],
1365
- interval = 5e3,
1366
- loader,
1367
- ...props
1368
- }, ref) => {
1369
- const [currentThoughtIndex, setCurrentThoughtIndex] = useState2(0);
1370
- const [isAnimating, setIsAnimating] = useState2(false);
1371
- useEffect2(() => {
1372
- const timer = setInterval(() => {
1373
- setIsAnimating(true);
1374
- setTimeout(() => {
1375
- setCurrentThoughtIndex((prev) => {
1376
- return prev < thoughts.length - 1 ? prev + 1 : prev;
1377
- });
1378
- setIsAnimating(false);
1379
- }, 300);
1380
- }, interval);
1381
- if (currentThoughtIndex === thoughts.length - 1) {
1382
- clearInterval(timer);
1383
- }
1384
- return () => clearInterval(timer);
1385
- }, [thoughts, interval, currentThoughtIndex]);
1386
- return /* @__PURE__ */ jsxs10(
1387
- "div",
1388
- {
1389
- ref,
1390
- className: cn(thinkIndicatorVariants({ variant, size }), className, "alq--think-indicator"),
1391
- ...props,
1392
- children: [
1393
- loader || /* @__PURE__ */ jsx30(
1394
- Loader,
1395
- {
1396
- className: cn(
1397
- size === "sm" ? "h-3 w-3" : size === "lg" ? "h-5 w-5" : "h-4 w-4"
1398
- )
1399
- }
1400
- ),
1401
- /* @__PURE__ */ jsx30(
1402
- "div",
1403
- {
1404
- className: cn(
1405
- "alq--think-indicator-text",
1406
- "transition-all duration-300",
1407
- isAnimating ? "opacity-0 -translate-y-2" : "opacity-100 translate-y-0"
1408
- ),
1409
- children: thoughts[currentThoughtIndex]
1410
- }
1411
- )
1412
- ]
1413
- }
1414
- );
1415
- }
1416
- );
1417
- ThinkIndicator.displayName = "ThinkIndicator";
1418
-
1419
- // src/components/templates/cards/with-image-heading-description.tsx
1420
- import { jsx as jsx31, jsxs as jsxs11 } from "react/jsx-runtime";
1421
- var CardWithImageHeadingDescriptionVertical = (props) => {
1422
- const { showBorder, image, heading, description } = props;
1423
- return /* @__PURE__ */ jsxs11(Card, { className: cn("w-[360px]", !showBorder && "border-none shadow-none"), children: [
1424
- image,
1425
- /* @__PURE__ */ jsxs11(CardHeader, { children: [
1426
- /* @__PURE__ */ jsx31(CardTitle, { children: heading }),
1427
- /* @__PURE__ */ jsx31(Typography, { typeStyle: "small", className: "text-font-weak-color", children: description })
1428
- ] }),
1429
- /* @__PURE__ */ jsx31(CardContent, {})
1430
- ] });
1431
- };
1432
- var CardImageWithHeadingAndDescriptionHorizontal = (props) => {
1433
- const { showBorder, image, heading, description } = props;
1434
- return /* @__PURE__ */ jsxs11(
1435
- Card,
1436
- {
1437
- className: cn(
1438
- "lg:w-[600px] w-[360px] lg:flex lg:h-[150px]",
1439
- !showBorder && "border-none shadow-none "
1440
- ),
1441
- children: [
1442
- image,
1443
- /* @__PURE__ */ jsxs11(CardHeader, { children: [
1444
- /* @__PURE__ */ jsx31(CardTitle, { children: heading }),
1445
- /* @__PURE__ */ jsx31(Typography, { typeStyle: "small", className: "text-font-weak-color", children: description })
1446
- ] }),
1447
- /* @__PURE__ */ jsx31(CardContent, {})
1448
- ]
1449
- }
1450
- );
1451
- };
1452
-
1453
- // src/components/templates/cards/with-image-heading-description-avatar.tsx
1454
- import { jsx as jsx32, jsxs as jsxs12 } from "react/jsx-runtime";
1455
- var AvatarInfo = (props) => {
1456
- const { userName, email, avatarImage } = props;
1457
- return /* @__PURE__ */ jsxs12("div", { className: "flex space-x-2 items-center", children: [
1458
- /* @__PURE__ */ jsx32(Avatar, { className: "w-16 h-16", children: /* @__PURE__ */ jsx32(AvatarImage, { src: avatarImage }) }),
1459
- /* @__PURE__ */ jsxs12("div", { children: [
1460
- /* @__PURE__ */ jsx32(Typography, { typeStyle: "small", className: "font-semibold", children: userName }),
1461
- /* @__PURE__ */ jsx32(Typography, { typeStyle: "tiny", className: "text-font-weak-color", children: email })
1462
- ] })
1463
- ] });
1464
- };
1465
- var CardWithImageHeadingDescriptionAvatarVertical = (props) => {
1466
- const { showBorder, image, heading, description } = props;
1467
- return /* @__PURE__ */ jsxs12(Card, { className: cn("w-[360px]", !showBorder && "border-none shadow-none"), children: [
1468
- image,
1469
- /* @__PURE__ */ jsxs12(CardHeader, { children: [
1470
- /* @__PURE__ */ jsx32(CardTitle, { children: heading }),
1471
- /* @__PURE__ */ jsx32(Typography, { typeStyle: "small", className: "text-font-weak-color", children: description })
1472
- ] }),
1473
- /* @__PURE__ */ jsx32(CardContent, { children: /* @__PURE__ */ jsx32(AvatarInfo, { ...props }) })
1474
- ] });
1475
- };
1476
- var CardImageWithHeadingAndDescriptionAvatarHorizontal = (props) => {
1477
- const { showBorder, image, heading, description } = props;
1478
- return /* @__PURE__ */ jsxs12(
1479
- Card,
1480
- {
1481
- className: cn(
1482
- "lg:w-[600px] w-[360px] lg:flex lg:h-[246px]",
1483
- !showBorder && "border-none shadow-none "
1484
- ),
1485
- children: [
1486
- image,
1487
- /* @__PURE__ */ jsxs12("div", { children: [
1488
- /* @__PURE__ */ jsxs12(CardHeader, { children: [
1489
- /* @__PURE__ */ jsx32(CardTitle, { children: heading }),
1490
- /* @__PURE__ */ jsx32(Typography, { typeStyle: "small", className: "text-font-weak-color", children: description })
1491
- ] }),
1492
- /* @__PURE__ */ jsx32(CardContent, { children: /* @__PURE__ */ jsx32(AvatarInfo, { ...props }) })
1493
- ] })
1494
- ]
1495
- }
1496
- );
1497
- };
1498
- export {
1499
- CardImageWithHeadingAndDescriptionAvatarHorizontal,
1500
- CardImageWithHeadingAndDescriptionHorizontal,
1501
- CardWithImageHeadingDescriptionAvatarVertical,
1502
- CardWithImageHeadingDescriptionVertical
1503
- };
1504
- //# sourceMappingURL=index.mjs.map