@alquimia-ai/ui 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/hooks/index.js +1 -1
- package/dist/components/hooks/index.js.map +1 -1
- package/dist/components/hooks/index.mjs +1 -1
- package/dist/components/hooks/index.mjs.map +1 -1
- package/dist/components/molecules/index.d.mts +15 -2
- package/dist/components/molecules/index.d.ts +15 -2
- package/dist/components/molecules/index.js +837 -725
- package/dist/components/molecules/index.js.map +1 -1
- package/dist/components/molecules/index.mjs +819 -707
- package/dist/components/molecules/index.mjs.map +1 -1
- package/dist/components/organisms/index.js +260 -149
- package/dist/components/organisms/index.js.map +1 -1
- package/dist/components/organisms/index.mjs +258 -147
- package/dist/components/organisms/index.mjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +265 -153
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +263 -151
- package/dist/index.mjs.map +1 -1
- package/package.json +52 -32
- package/src/components/atoms/index.ts +32 -0
- package/src/components/atoms/ui/alert.tsx +59 -0
- package/src/components/atoms/ui/aspect-ratio.tsx +7 -0
- package/src/components/atoms/ui/avatar.tsx +50 -0
- package/src/components/atoms/ui/badge.tsx +36 -0
- package/src/components/atoms/ui/breadcrumb.tsx +120 -0
- package/src/components/atoms/ui/button.tsx +56 -0
- package/src/components/atoms/ui/card.tsx +87 -0
- package/src/components/atoms/ui/checkbox.tsx +31 -0
- package/src/components/atoms/ui/command.tsx +155 -0
- package/src/components/atoms/ui/dialog.tsx +125 -0
- package/src/components/atoms/ui/drawer.tsx +119 -0
- package/src/components/atoms/ui/input.tsx +26 -0
- package/src/components/atoms/ui/label.tsx +26 -0
- package/src/components/atoms/ui/loader.tsx +52 -0
- package/src/components/atoms/ui/popover.tsx +31 -0
- package/src/components/atoms/ui/rich-text.tsx +19 -0
- package/src/components/atoms/ui/scroll-area.tsx +48 -0
- package/src/components/atoms/ui/select.tsx +160 -0
- package/src/components/atoms/ui/skeleton.tsx +15 -0
- package/src/components/atoms/ui/slider.tsx +29 -0
- package/src/components/atoms/ui/switch.tsx +30 -0
- package/src/components/atoms/ui/table.tsx +118 -0
- package/src/components/atoms/ui/tabs.tsx +56 -0
- package/src/components/atoms/ui/text-area/index.tsx +24 -0
- package/src/components/atoms/ui/textarea.tsx +25 -0
- package/src/components/atoms/ui/think-indicator.tsx +103 -0
- package/src/components/atoms/ui/toast.tsx +129 -0
- package/src/components/atoms/ui/toaster.tsx +38 -0
- package/src/components/atoms/ui/toggle.tsx +45 -0
- package/src/components/atoms/ui/typography/index.tsx +30 -0
- package/src/components/hooks/index.ts +4 -0
- package/src/components/hooks/use-document.tsx +44 -0
- package/src/components/hooks/use-resize-observer.ts +28 -0
- package/src/components/hooks/use-text-streaming.ts +63 -0
- package/src/components/hooks/use-toast.ts +194 -0
- package/src/components/index.ts +1 -0
- package/src/components/molecules/alert-dialog.tsx +141 -0
- package/src/components/molecules/assistant-button.tsx +148 -0
- package/src/components/molecules/call-out.tsx +163 -0
- package/src/components/molecules/carousel.tsx +262 -0
- package/src/components/molecules/documents/document-selector.tsx +79 -0
- package/src/components/molecules/documents/document-viewer.tsx +85 -0
- package/src/components/molecules/documents/index.ts +2 -0
- package/src/components/molecules/index.ts +11 -0
- package/src/components/molecules/navigation-menu.tsx +128 -0
- package/src/components/molecules/page-container.tsx +17 -0
- package/src/components/molecules/rating-comment.tsx +93 -0
- package/src/components/molecules/rating-stars.tsx +136 -0
- package/src/components/molecules/rating-thumbs.tsx +90 -0
- package/src/components/molecules/sidebar.tsx +107 -0
- package/src/components/molecules/sonner.tsx +30 -0
- package/src/components/molecules/viewers/index.ts +2 -0
- package/src/components/molecules/viewers/pdf-viewer.tsx +138 -0
- package/src/components/molecules/viewers/plain-text-viewer.tsx +40 -0
- package/src/components/organisms/assistant.tsx +271 -0
- package/src/components/organisms/index.ts +6 -0
- package/src/components/organisms/rating-dialog.tsx +104 -0
- package/src/components/organisms/speechToText.tsx +92 -0
- package/src/components/organisms/whisper.tsx +106 -0
- package/src/components/templates/cards/index.ts +2 -0
- package/src/components/templates/cards/with-image-heading-description-avatar.tsx +94 -0
- package/src/components/templates/cards/with-image-heading-description.tsx +63 -0
- package/src/components/templates/hero/index.tsx +39 -0
- package/src/components/templates/index.ts +4 -0
- package/src/components/templates/messages-window.tsx +15 -0
- package/src/components/templates/query-box.tsx +13 -0
- package/src/components/ui/input.tsx +25 -0
- package/src/components/ui/select.tsx +163 -0
- package/src/index.ts +7 -0
- package/src/lib/index.ts +1 -0
- package/src/lib/utils.ts +34 -0
- package/src/styles/call-out.css +153 -0
- package/src/styles/drawer.css +28 -0
- package/src/styles/globals.css +69 -0
- package/src/styles/prose.css +51 -0
- package/src/styles/ratings.css +27 -0
- package/src/styles/themes/base-alquimia.css +95 -0
- package/src/styles/themes/base-nordic.css +83 -0
- package/src/styles/themes/base-primary.css +85 -0
- package/src/styles/themes/base.css +8 -0
- package/src/types/index.ts +1 -0
- package/src/types/type.ts +76 -0
|
@@ -41,6 +41,7 @@ __export(molecules_exports, {
|
|
|
41
41
|
AlertDialogPortal: () => AlertDialogPortal,
|
|
42
42
|
AlertDialogTitle: () => AlertDialogTitle,
|
|
43
43
|
AlertDialogTrigger: () => AlertDialogTrigger,
|
|
44
|
+
AssistantButton: () => AssistantButton,
|
|
44
45
|
CallOut: () => CallOut,
|
|
45
46
|
CallOutActions: () => CallOutActions,
|
|
46
47
|
CallOutDate: () => CallOutDate,
|
|
@@ -249,399 +250,115 @@ var AlertDialogCancel = React2.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
249
250
|
));
|
|
250
251
|
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
251
252
|
|
|
252
|
-
// src/components/molecules/
|
|
253
|
+
// src/components/molecules/assistant-button.tsx
|
|
254
|
+
var React25 = __toESM(require("react"));
|
|
255
|
+
var import_react5 = require("react");
|
|
256
|
+
|
|
257
|
+
// src/components/atoms/ui/textarea.tsx
|
|
253
258
|
var React3 = __toESM(require("react"));
|
|
254
|
-
var import_embla_carousel_react = __toESM(require("embla-carousel-react"));
|
|
255
|
-
var import_lucide_react = require("lucide-react");
|
|
256
259
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
257
|
-
var
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
throw new Error("useCarousel must be used within a <Carousel />");
|
|
262
|
-
}
|
|
263
|
-
return context;
|
|
264
|
-
}
|
|
265
|
-
var Carousel = React3.forwardRef(
|
|
266
|
-
({
|
|
267
|
-
orientation = "horizontal",
|
|
268
|
-
opts,
|
|
269
|
-
setApi,
|
|
270
|
-
plugins,
|
|
271
|
-
className,
|
|
272
|
-
children,
|
|
273
|
-
...props
|
|
274
|
-
}, ref) => {
|
|
275
|
-
const [carouselRef, api] = (0, import_embla_carousel_react.default)(
|
|
260
|
+
var Textarea = React3.forwardRef(
|
|
261
|
+
({ className, ...props }, ref) => {
|
|
262
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
263
|
+
"textarea",
|
|
276
264
|
{
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
const onSelect = React3.useCallback((api2) => {
|
|
285
|
-
if (!api2) {
|
|
286
|
-
return;
|
|
265
|
+
className: cn(
|
|
266
|
+
"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",
|
|
267
|
+
className,
|
|
268
|
+
"alq--textarea"
|
|
269
|
+
),
|
|
270
|
+
ref,
|
|
271
|
+
...props
|
|
287
272
|
}
|
|
288
|
-
setCanScrollPrev(api2.canScrollPrev());
|
|
289
|
-
setCanScrollNext(api2.canScrollNext());
|
|
290
|
-
}, []);
|
|
291
|
-
const scrollPrev = React3.useCallback(() => {
|
|
292
|
-
api?.scrollPrev();
|
|
293
|
-
}, [api]);
|
|
294
|
-
const scrollNext = React3.useCallback(() => {
|
|
295
|
-
api?.scrollNext();
|
|
296
|
-
}, [api]);
|
|
297
|
-
const handleKeyDown = React3.useCallback(
|
|
298
|
-
(event) => {
|
|
299
|
-
if (event.key === "ArrowLeft") {
|
|
300
|
-
event.preventDefault();
|
|
301
|
-
scrollPrev();
|
|
302
|
-
} else if (event.key === "ArrowRight") {
|
|
303
|
-
event.preventDefault();
|
|
304
|
-
scrollNext();
|
|
305
|
-
}
|
|
306
|
-
},
|
|
307
|
-
[scrollPrev, scrollNext]
|
|
308
273
|
);
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
api.on("reInit", onSelect);
|
|
321
|
-
api.on("select", onSelect);
|
|
322
|
-
return () => {
|
|
323
|
-
api?.off("select", onSelect);
|
|
324
|
-
};
|
|
325
|
-
}, [api, onSelect]);
|
|
326
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
327
|
-
CarouselContext.Provider,
|
|
274
|
+
}
|
|
275
|
+
);
|
|
276
|
+
Textarea.displayName = "Textarea";
|
|
277
|
+
|
|
278
|
+
// src/components/atoms/ui/input.tsx
|
|
279
|
+
var import_react2 = require("react");
|
|
280
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
281
|
+
var Input = (0, import_react2.forwardRef)(
|
|
282
|
+
({ className, type, ...props }, ref) => {
|
|
283
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
284
|
+
"input",
|
|
328
285
|
{
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
canScrollNext
|
|
338
|
-
},
|
|
339
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
340
|
-
"div",
|
|
341
|
-
{
|
|
342
|
-
ref,
|
|
343
|
-
onKeyDownCapture: handleKeyDown,
|
|
344
|
-
className: cn("relative", className),
|
|
345
|
-
role: "region",
|
|
346
|
-
"aria-roledescription": "carousel",
|
|
347
|
-
...props,
|
|
348
|
-
children
|
|
349
|
-
}
|
|
350
|
-
)
|
|
286
|
+
type,
|
|
287
|
+
className: cn(
|
|
288
|
+
"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",
|
|
289
|
+
className,
|
|
290
|
+
"alq--input"
|
|
291
|
+
),
|
|
292
|
+
ref,
|
|
293
|
+
...props
|
|
351
294
|
}
|
|
352
295
|
);
|
|
353
296
|
}
|
|
354
297
|
);
|
|
355
|
-
|
|
356
|
-
var CarouselContent = React3.forwardRef(({ className, ...props }, ref) => {
|
|
357
|
-
const { carouselRef, orientation } = useCarousel();
|
|
358
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
359
|
-
"div",
|
|
360
|
-
{
|
|
361
|
-
ref,
|
|
362
|
-
className: cn(
|
|
363
|
-
"flex",
|
|
364
|
-
orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col",
|
|
365
|
-
className
|
|
366
|
-
),
|
|
367
|
-
...props
|
|
368
|
-
}
|
|
369
|
-
) });
|
|
370
|
-
});
|
|
371
|
-
CarouselContent.displayName = "CarouselContent";
|
|
372
|
-
var CarouselItem = React3.forwardRef(({ className, ...props }, ref) => {
|
|
373
|
-
const { orientation } = useCarousel();
|
|
374
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
375
|
-
"div",
|
|
376
|
-
{
|
|
377
|
-
ref,
|
|
378
|
-
role: "group",
|
|
379
|
-
"aria-roledescription": "slide",
|
|
380
|
-
className: cn(
|
|
381
|
-
"min-w-0 shrink-0 grow-0 basis-full",
|
|
382
|
-
orientation === "horizontal" ? "pl-4" : "pt-4",
|
|
383
|
-
className
|
|
384
|
-
),
|
|
385
|
-
...props
|
|
386
|
-
}
|
|
387
|
-
);
|
|
388
|
-
});
|
|
389
|
-
CarouselItem.displayName = "CarouselItem";
|
|
390
|
-
var CarouselPrevious = React3.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
391
|
-
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
392
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
393
|
-
Button,
|
|
394
|
-
{
|
|
395
|
-
ref,
|
|
396
|
-
variant,
|
|
397
|
-
size,
|
|
398
|
-
className: cn(
|
|
399
|
-
"absolute h-8 w-8 rounded-full",
|
|
400
|
-
orientation === "horizontal" ? "-left-12 top-1/2 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
401
|
-
className
|
|
402
|
-
),
|
|
403
|
-
disabled: !canScrollPrev,
|
|
404
|
-
onClick: scrollPrev,
|
|
405
|
-
...props,
|
|
406
|
-
children: [
|
|
407
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_lucide_react.ArrowLeft, { className: "h-4 w-4" }),
|
|
408
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "sr-only", children: "Previous slide" })
|
|
409
|
-
]
|
|
410
|
-
}
|
|
411
|
-
);
|
|
412
|
-
});
|
|
413
|
-
CarouselPrevious.displayName = "CarouselPrevious";
|
|
414
|
-
var CarouselNext = React3.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
415
|
-
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
416
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
417
|
-
Button,
|
|
418
|
-
{
|
|
419
|
-
ref,
|
|
420
|
-
variant,
|
|
421
|
-
size,
|
|
422
|
-
className: cn(
|
|
423
|
-
"absolute h-8 w-8 rounded-full",
|
|
424
|
-
orientation === "horizontal" ? "-right-12 top-1/2 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
425
|
-
className
|
|
426
|
-
),
|
|
427
|
-
disabled: !canScrollNext,
|
|
428
|
-
onClick: scrollNext,
|
|
429
|
-
...props,
|
|
430
|
-
children: [
|
|
431
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_lucide_react.ArrowRight, { className: "h-4 w-4" }),
|
|
432
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "sr-only", children: "Next slide" })
|
|
433
|
-
]
|
|
434
|
-
}
|
|
435
|
-
);
|
|
436
|
-
});
|
|
437
|
-
CarouselNext.displayName = "CarouselNext";
|
|
298
|
+
Input.displayName = "Input";
|
|
438
299
|
|
|
439
|
-
// src/components/
|
|
300
|
+
// src/components/atoms/ui/select.tsx
|
|
440
301
|
var React4 = __toESM(require("react"));
|
|
441
|
-
var
|
|
442
|
-
var
|
|
443
|
-
var
|
|
444
|
-
var
|
|
445
|
-
|
|
446
|
-
NavigationMenuPrimitive.Root,
|
|
302
|
+
var SelectPrimitive = __toESM(require("@radix-ui/react-select"));
|
|
303
|
+
var import_lucide_react = require("lucide-react");
|
|
304
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
305
|
+
var SelectTrigger = React4.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
306
|
+
SelectPrimitive.Trigger,
|
|
447
307
|
{
|
|
448
308
|
ref,
|
|
449
309
|
className: cn(
|
|
450
|
-
"
|
|
451
|
-
className
|
|
310
|
+
"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",
|
|
311
|
+
className,
|
|
312
|
+
"alq--select"
|
|
452
313
|
),
|
|
453
314
|
...props,
|
|
454
315
|
children: [
|
|
455
316
|
children,
|
|
456
|
-
/* @__PURE__ */ (0,
|
|
317
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react.ChevronDown, { className: "h-4 w-4 opacity-50" }) })
|
|
457
318
|
]
|
|
458
319
|
}
|
|
459
320
|
));
|
|
460
|
-
|
|
461
|
-
var
|
|
462
|
-
|
|
321
|
+
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
322
|
+
var SelectScrollUpButton = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
323
|
+
SelectPrimitive.ScrollUpButton,
|
|
463
324
|
{
|
|
464
325
|
ref,
|
|
465
326
|
className: cn(
|
|
466
|
-
"
|
|
327
|
+
"flex cursor-default items-center justify-center py-1",
|
|
467
328
|
className
|
|
468
329
|
),
|
|
469
|
-
...props
|
|
470
|
-
}
|
|
471
|
-
));
|
|
472
|
-
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
473
|
-
var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
474
|
-
var navigationMenuTriggerStyle = (0, import_class_variance_authority2.cva)(
|
|
475
|
-
"group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"
|
|
476
|
-
);
|
|
477
|
-
var NavigationMenuTrigger = React4.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
478
|
-
NavigationMenuPrimitive.Trigger,
|
|
479
|
-
{
|
|
480
|
-
ref,
|
|
481
|
-
className: cn(navigationMenuTriggerStyle(), "group", className),
|
|
482
330
|
...props,
|
|
483
|
-
children:
|
|
484
|
-
children,
|
|
485
|
-
" ",
|
|
486
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
487
|
-
import_lucide_react2.ChevronDown,
|
|
488
|
-
{
|
|
489
|
-
className: "relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180",
|
|
490
|
-
"aria-hidden": "true"
|
|
491
|
-
}
|
|
492
|
-
)
|
|
493
|
-
]
|
|
331
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react.ChevronUp, { className: "h-4 w-4" })
|
|
494
332
|
}
|
|
495
333
|
));
|
|
496
|
-
|
|
497
|
-
var
|
|
498
|
-
|
|
334
|
+
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
335
|
+
var SelectScrollDownButton = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
336
|
+
SelectPrimitive.ScrollDownButton,
|
|
499
337
|
{
|
|
500
338
|
ref,
|
|
501
339
|
className: cn(
|
|
502
|
-
"
|
|
340
|
+
"flex cursor-default items-center justify-center py-1",
|
|
503
341
|
className
|
|
504
342
|
),
|
|
505
|
-
...props
|
|
343
|
+
...props,
|
|
344
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react.ChevronDown, { className: "h-4 w-4" })
|
|
506
345
|
}
|
|
507
346
|
));
|
|
508
|
-
|
|
509
|
-
var
|
|
510
|
-
|
|
511
|
-
NavigationMenuPrimitive.Viewport,
|
|
512
|
-
{
|
|
513
|
-
className: cn(
|
|
514
|
-
"origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",
|
|
515
|
-
className
|
|
516
|
-
),
|
|
517
|
-
ref,
|
|
518
|
-
...props
|
|
519
|
-
}
|
|
520
|
-
) }));
|
|
521
|
-
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
522
|
-
var NavigationMenuIndicator = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
523
|
-
NavigationMenuPrimitive.Indicator,
|
|
347
|
+
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
348
|
+
var SelectContent = React4.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
349
|
+
SelectPrimitive.Content,
|
|
524
350
|
{
|
|
525
351
|
ref,
|
|
526
352
|
className: cn(
|
|
527
|
-
"
|
|
353
|
+
"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",
|
|
354
|
+
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",
|
|
528
355
|
className
|
|
529
356
|
),
|
|
530
|
-
|
|
531
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
532
|
-
}
|
|
533
|
-
));
|
|
534
|
-
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
535
|
-
|
|
536
|
-
// src/components/molecules/sidebar.tsx
|
|
537
|
-
var React27 = __toESM(require("react"));
|
|
538
|
-
var import_class_variance_authority10 = require("class-variance-authority");
|
|
539
|
-
|
|
540
|
-
// src/components/atoms/ui/textarea.tsx
|
|
541
|
-
var React5 = __toESM(require("react"));
|
|
542
|
-
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
543
|
-
var Textarea = React5.forwardRef(
|
|
544
|
-
({ className, ...props }, ref) => {
|
|
545
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
546
|
-
"textarea",
|
|
547
|
-
{
|
|
548
|
-
className: cn(
|
|
549
|
-
"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",
|
|
550
|
-
className,
|
|
551
|
-
"alq--textarea"
|
|
552
|
-
),
|
|
553
|
-
ref,
|
|
554
|
-
...props
|
|
555
|
-
}
|
|
556
|
-
);
|
|
557
|
-
}
|
|
558
|
-
);
|
|
559
|
-
Textarea.displayName = "Textarea";
|
|
560
|
-
|
|
561
|
-
// src/components/atoms/ui/input.tsx
|
|
562
|
-
var import_react2 = require("react");
|
|
563
|
-
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
564
|
-
var Input = (0, import_react2.forwardRef)(
|
|
565
|
-
({ className, type, ...props }, ref) => {
|
|
566
|
-
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
567
|
-
"input",
|
|
568
|
-
{
|
|
569
|
-
type,
|
|
570
|
-
className: cn(
|
|
571
|
-
"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",
|
|
572
|
-
className,
|
|
573
|
-
"alq--input"
|
|
574
|
-
),
|
|
575
|
-
ref,
|
|
576
|
-
...props
|
|
577
|
-
}
|
|
578
|
-
);
|
|
579
|
-
}
|
|
580
|
-
);
|
|
581
|
-
Input.displayName = "Input";
|
|
582
|
-
|
|
583
|
-
// src/components/atoms/ui/select.tsx
|
|
584
|
-
var React6 = __toESM(require("react"));
|
|
585
|
-
var SelectPrimitive = __toESM(require("@radix-ui/react-select"));
|
|
586
|
-
var import_lucide_react3 = require("lucide-react");
|
|
587
|
-
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
588
|
-
var SelectTrigger = React6.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
589
|
-
SelectPrimitive.Trigger,
|
|
590
|
-
{
|
|
591
|
-
ref,
|
|
592
|
-
className: cn(
|
|
593
|
-
"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",
|
|
594
|
-
className,
|
|
595
|
-
"alq--select"
|
|
596
|
-
),
|
|
597
|
-
...props,
|
|
598
|
-
children: [
|
|
599
|
-
children,
|
|
600
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.ChevronDown, { className: "h-4 w-4 opacity-50" }) })
|
|
601
|
-
]
|
|
602
|
-
}
|
|
603
|
-
));
|
|
604
|
-
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
605
|
-
var SelectScrollUpButton = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
606
|
-
SelectPrimitive.ScrollUpButton,
|
|
607
|
-
{
|
|
608
|
-
ref,
|
|
609
|
-
className: cn(
|
|
610
|
-
"flex cursor-default items-center justify-center py-1",
|
|
611
|
-
className
|
|
612
|
-
),
|
|
613
|
-
...props,
|
|
614
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.ChevronUp, { className: "h-4 w-4" })
|
|
615
|
-
}
|
|
616
|
-
));
|
|
617
|
-
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
618
|
-
var SelectScrollDownButton = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
619
|
-
SelectPrimitive.ScrollDownButton,
|
|
620
|
-
{
|
|
621
|
-
ref,
|
|
622
|
-
className: cn(
|
|
623
|
-
"flex cursor-default items-center justify-center py-1",
|
|
624
|
-
className
|
|
625
|
-
),
|
|
626
|
-
...props,
|
|
627
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.ChevronDown, { className: "h-4 w-4" })
|
|
628
|
-
}
|
|
629
|
-
));
|
|
630
|
-
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
631
|
-
var SelectContent = React6.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
632
|
-
SelectPrimitive.Content,
|
|
633
|
-
{
|
|
634
|
-
ref,
|
|
635
|
-
className: cn(
|
|
636
|
-
"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",
|
|
637
|
-
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",
|
|
638
|
-
className
|
|
639
|
-
),
|
|
640
|
-
position,
|
|
357
|
+
position,
|
|
641
358
|
...props,
|
|
642
359
|
children: [
|
|
643
|
-
/* @__PURE__ */ (0,
|
|
644
|
-
/* @__PURE__ */ (0,
|
|
360
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectScrollUpButton, {}),
|
|
361
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
645
362
|
SelectPrimitive.Viewport,
|
|
646
363
|
{
|
|
647
364
|
className: cn(
|
|
@@ -651,12 +368,12 @@ var SelectContent = React6.forwardRef(({ className, children, position = "popper
|
|
|
651
368
|
children
|
|
652
369
|
}
|
|
653
370
|
),
|
|
654
|
-
/* @__PURE__ */ (0,
|
|
371
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectScrollDownButton, {})
|
|
655
372
|
]
|
|
656
373
|
}
|
|
657
374
|
) }));
|
|
658
375
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
659
|
-
var SelectLabel =
|
|
376
|
+
var SelectLabel = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
660
377
|
SelectPrimitive.Label,
|
|
661
378
|
{
|
|
662
379
|
ref,
|
|
@@ -665,7 +382,7 @@ var SelectLabel = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
665
382
|
}
|
|
666
383
|
));
|
|
667
384
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
668
|
-
var SelectItem =
|
|
385
|
+
var SelectItem = React4.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
669
386
|
SelectPrimitive.Item,
|
|
670
387
|
{
|
|
671
388
|
ref,
|
|
@@ -675,13 +392,13 @@ var SelectItem = React6.forwardRef(({ className, children, ...props }, ref) => /
|
|
|
675
392
|
),
|
|
676
393
|
...props,
|
|
677
394
|
children: [
|
|
678
|
-
/* @__PURE__ */ (0,
|
|
679
|
-
/* @__PURE__ */ (0,
|
|
395
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react.Check, { className: "h-4 w-4" }) }) }),
|
|
396
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectPrimitive.ItemText, { children })
|
|
680
397
|
]
|
|
681
398
|
}
|
|
682
399
|
));
|
|
683
400
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
684
|
-
var SelectSeparator =
|
|
401
|
+
var SelectSeparator = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
685
402
|
SelectPrimitive.Separator,
|
|
686
403
|
{
|
|
687
404
|
ref,
|
|
@@ -692,10 +409,10 @@ var SelectSeparator = React6.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
692
409
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
693
410
|
|
|
694
411
|
// src/components/atoms/ui/avatar.tsx
|
|
695
|
-
var
|
|
412
|
+
var React5 = __toESM(require("react"));
|
|
696
413
|
var AvatarPrimitive = __toESM(require("@radix-ui/react-avatar"));
|
|
697
|
-
var
|
|
698
|
-
var Avatar =
|
|
414
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
415
|
+
var Avatar = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
699
416
|
AvatarPrimitive.Root,
|
|
700
417
|
{
|
|
701
418
|
ref,
|
|
@@ -707,7 +424,7 @@ var Avatar = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
707
424
|
}
|
|
708
425
|
));
|
|
709
426
|
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
710
|
-
var AvatarImage =
|
|
427
|
+
var AvatarImage = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
711
428
|
AvatarPrimitive.Image,
|
|
712
429
|
{
|
|
713
430
|
ref,
|
|
@@ -716,7 +433,7 @@ var AvatarImage = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
716
433
|
}
|
|
717
434
|
));
|
|
718
435
|
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
719
|
-
var AvatarFallback =
|
|
436
|
+
var AvatarFallback = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
720
437
|
AvatarPrimitive.Fallback,
|
|
721
438
|
{
|
|
722
439
|
ref,
|
|
@@ -730,24 +447,24 @@ var AvatarFallback = React7.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
730
447
|
AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
731
448
|
|
|
732
449
|
// src/components/atoms/ui/scroll-area.tsx
|
|
733
|
-
var
|
|
450
|
+
var React6 = __toESM(require("react"));
|
|
734
451
|
var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"));
|
|
735
|
-
var
|
|
736
|
-
var ScrollArea =
|
|
452
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
453
|
+
var ScrollArea = React6.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
737
454
|
ScrollAreaPrimitive.Root,
|
|
738
455
|
{
|
|
739
456
|
ref,
|
|
740
457
|
className: cn("relative overflow-hidden", className),
|
|
741
458
|
...props,
|
|
742
459
|
children: [
|
|
743
|
-
/* @__PURE__ */ (0,
|
|
744
|
-
/* @__PURE__ */ (0,
|
|
745
|
-
/* @__PURE__ */ (0,
|
|
460
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ScrollAreaPrimitive.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
|
|
461
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ScrollBar, {}),
|
|
462
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ScrollAreaPrimitive.Corner, {})
|
|
746
463
|
]
|
|
747
464
|
}
|
|
748
465
|
));
|
|
749
466
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
750
|
-
var ScrollBar =
|
|
467
|
+
var ScrollBar = React6.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
751
468
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
752
469
|
{
|
|
753
470
|
ref,
|
|
@@ -759,7 +476,7 @@ var ScrollBar = React8.forwardRef(({ className, orientation = "vertical", ...pro
|
|
|
759
476
|
className
|
|
760
477
|
),
|
|
761
478
|
...props,
|
|
762
|
-
children: /* @__PURE__ */ (0,
|
|
479
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
763
480
|
}
|
|
764
481
|
));
|
|
765
482
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
@@ -767,18 +484,18 @@ ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
|
767
484
|
// src/components/atoms/ui/rich-text.tsx
|
|
768
485
|
var import_react_markdown = __toESM(require("react-markdown"));
|
|
769
486
|
var import_remark_gfm = __toESM(require("remark-gfm"));
|
|
770
|
-
var
|
|
487
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
771
488
|
function RichText({ content, className }) {
|
|
772
|
-
return /* @__PURE__ */ (0,
|
|
489
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react_markdown.default, { className: cn(className), remarkPlugins: [import_remark_gfm.default], children: content });
|
|
773
490
|
}
|
|
774
491
|
|
|
775
492
|
// src/components/atoms/ui/skeleton.tsx
|
|
776
|
-
var
|
|
493
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
777
494
|
|
|
778
495
|
// src/components/atoms/ui/card.tsx
|
|
779
|
-
var
|
|
780
|
-
var
|
|
781
|
-
var Card =
|
|
496
|
+
var React7 = __toESM(require("react"));
|
|
497
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
498
|
+
var Card = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
782
499
|
"div",
|
|
783
500
|
{
|
|
784
501
|
ref,
|
|
@@ -794,7 +511,7 @@ var Card = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
|
794
511
|
}
|
|
795
512
|
));
|
|
796
513
|
Card.displayName = "Card";
|
|
797
|
-
var CardHeader =
|
|
514
|
+
var CardHeader = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
798
515
|
"div",
|
|
799
516
|
{
|
|
800
517
|
ref,
|
|
@@ -803,7 +520,7 @@ var CardHeader = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
803
520
|
}
|
|
804
521
|
));
|
|
805
522
|
CardHeader.displayName = "CardHeader";
|
|
806
|
-
var CardTitle =
|
|
523
|
+
var CardTitle = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
807
524
|
"h3",
|
|
808
525
|
{
|
|
809
526
|
ref,
|
|
@@ -812,7 +529,7 @@ var CardTitle = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
812
529
|
}
|
|
813
530
|
));
|
|
814
531
|
CardTitle.displayName = "CardTitle";
|
|
815
|
-
var CardDescription =
|
|
532
|
+
var CardDescription = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
816
533
|
"p",
|
|
817
534
|
{
|
|
818
535
|
ref,
|
|
@@ -821,9 +538,9 @@ var CardDescription = React9.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
821
538
|
}
|
|
822
539
|
));
|
|
823
540
|
CardDescription.displayName = "CardDescription";
|
|
824
|
-
var CardContent =
|
|
541
|
+
var CardContent = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { ref, className: cn("p-6 pt-0", className), ...props }));
|
|
825
542
|
CardContent.displayName = "CardContent";
|
|
826
|
-
var CardFooter =
|
|
543
|
+
var CardFooter = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
827
544
|
"div",
|
|
828
545
|
{
|
|
829
546
|
ref,
|
|
@@ -834,13 +551,13 @@ var CardFooter = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
834
551
|
CardFooter.displayName = "CardFooter";
|
|
835
552
|
|
|
836
553
|
// src/components/atoms/ui/drawer.tsx
|
|
837
|
-
var
|
|
554
|
+
var React8 = __toESM(require("react"));
|
|
838
555
|
var import_vaul = require("vaul");
|
|
839
|
-
var
|
|
556
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
840
557
|
var Drawer = ({
|
|
841
558
|
shouldScaleBackground = true,
|
|
842
559
|
...props
|
|
843
|
-
}) => /* @__PURE__ */ (0,
|
|
560
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
844
561
|
import_vaul.Drawer.Root,
|
|
845
562
|
{
|
|
846
563
|
shouldScaleBackground,
|
|
@@ -851,7 +568,7 @@ Drawer.displayName = "Drawer";
|
|
|
851
568
|
var DrawerTrigger = import_vaul.Drawer.Trigger;
|
|
852
569
|
var DrawerPortal = import_vaul.Drawer.Portal;
|
|
853
570
|
var DrawerClose = import_vaul.Drawer.Close;
|
|
854
|
-
var DrawerOverlay =
|
|
571
|
+
var DrawerOverlay = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
855
572
|
import_vaul.Drawer.Overlay,
|
|
856
573
|
{
|
|
857
574
|
ref,
|
|
@@ -860,9 +577,9 @@ var DrawerOverlay = React10.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
860
577
|
}
|
|
861
578
|
));
|
|
862
579
|
DrawerOverlay.displayName = import_vaul.Drawer.Overlay.displayName;
|
|
863
|
-
var DrawerContent =
|
|
864
|
-
/* @__PURE__ */ (0,
|
|
865
|
-
/* @__PURE__ */ (0,
|
|
580
|
+
var DrawerContent = React8.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(DrawerPortal, { children: [
|
|
581
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(DrawerOverlay, {}),
|
|
582
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
866
583
|
import_vaul.Drawer.Content,
|
|
867
584
|
{
|
|
868
585
|
ref,
|
|
@@ -872,7 +589,7 @@ var DrawerContent = React10.forwardRef(({ className, children, ...props }, ref)
|
|
|
872
589
|
),
|
|
873
590
|
...props,
|
|
874
591
|
children: [
|
|
875
|
-
/* @__PURE__ */ (0,
|
|
592
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
|
|
876
593
|
children
|
|
877
594
|
]
|
|
878
595
|
}
|
|
@@ -882,7 +599,7 @@ DrawerContent.displayName = "DrawerContent";
|
|
|
882
599
|
var DrawerHeader = ({
|
|
883
600
|
className,
|
|
884
601
|
...props
|
|
885
|
-
}) => /* @__PURE__ */ (0,
|
|
602
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
886
603
|
"div",
|
|
887
604
|
{
|
|
888
605
|
className: cn("grid gap-1.5 p-4 text-center sm:text-left", className, "alq--drawer-header"),
|
|
@@ -893,7 +610,7 @@ DrawerHeader.displayName = "DrawerHeader";
|
|
|
893
610
|
var DrawerFooter = ({
|
|
894
611
|
className,
|
|
895
612
|
...props
|
|
896
|
-
}) => /* @__PURE__ */ (0,
|
|
613
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
897
614
|
"div",
|
|
898
615
|
{
|
|
899
616
|
className: cn("mt-auto flex flex-col gap-2 p-4", className, "alq--drawer-footer"),
|
|
@@ -901,7 +618,7 @@ var DrawerFooter = ({
|
|
|
901
618
|
}
|
|
902
619
|
);
|
|
903
620
|
DrawerFooter.displayName = "DrawerFooter";
|
|
904
|
-
var DrawerTitle =
|
|
621
|
+
var DrawerTitle = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
905
622
|
import_vaul.Drawer.Title,
|
|
906
623
|
{
|
|
907
624
|
ref,
|
|
@@ -914,7 +631,7 @@ var DrawerTitle = React10.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
914
631
|
}
|
|
915
632
|
));
|
|
916
633
|
DrawerTitle.displayName = import_vaul.Drawer.Title.displayName;
|
|
917
|
-
var DrawerDescription =
|
|
634
|
+
var DrawerDescription = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
918
635
|
import_vaul.Drawer.Description,
|
|
919
636
|
{
|
|
920
637
|
ref,
|
|
@@ -926,10 +643,10 @@ DrawerDescription.displayName = import_vaul.Drawer.Description.displayName;
|
|
|
926
643
|
|
|
927
644
|
// src/components/atoms/ui/typography/index.tsx
|
|
928
645
|
var import_react3 = require("react");
|
|
929
|
-
var
|
|
646
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
930
647
|
var Typography = (0, import_react3.forwardRef)(
|
|
931
648
|
({ as: Component = "p", typeStyle, ...props }, ref) => {
|
|
932
|
-
return /* @__PURE__ */ (0,
|
|
649
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
933
650
|
Component,
|
|
934
651
|
{
|
|
935
652
|
...props,
|
|
@@ -942,9 +659,9 @@ var Typography = (0, import_react3.forwardRef)(
|
|
|
942
659
|
Typography.displayName = "Typography";
|
|
943
660
|
|
|
944
661
|
// src/components/atoms/ui/badge.tsx
|
|
945
|
-
var
|
|
946
|
-
var
|
|
947
|
-
var badgeVariants = (0,
|
|
662
|
+
var import_class_variance_authority2 = require("class-variance-authority");
|
|
663
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
664
|
+
var badgeVariants = (0, import_class_variance_authority2.cva)(
|
|
948
665
|
"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",
|
|
949
666
|
{
|
|
950
667
|
variants: {
|
|
@@ -962,10 +679,10 @@ var badgeVariants = (0, import_class_variance_authority3.cva)(
|
|
|
962
679
|
);
|
|
963
680
|
|
|
964
681
|
// src/components/atoms/ui/alert.tsx
|
|
965
|
-
var
|
|
966
|
-
var
|
|
967
|
-
var
|
|
968
|
-
var alertVariants = (0,
|
|
682
|
+
var React9 = __toESM(require("react"));
|
|
683
|
+
var import_class_variance_authority3 = require("class-variance-authority");
|
|
684
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
685
|
+
var alertVariants = (0, import_class_variance_authority3.cva)(
|
|
969
686
|
"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",
|
|
970
687
|
{
|
|
971
688
|
variants: {
|
|
@@ -979,7 +696,7 @@ var alertVariants = (0, import_class_variance_authority4.cva)(
|
|
|
979
696
|
}
|
|
980
697
|
}
|
|
981
698
|
);
|
|
982
|
-
var Alert =
|
|
699
|
+
var Alert = React9.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
983
700
|
"div",
|
|
984
701
|
{
|
|
985
702
|
ref,
|
|
@@ -989,7 +706,7 @@ var Alert = React11.forwardRef(({ className, variant, ...props }, ref) => /* @__
|
|
|
989
706
|
}
|
|
990
707
|
));
|
|
991
708
|
Alert.displayName = "Alert";
|
|
992
|
-
var AlertTitle =
|
|
709
|
+
var AlertTitle = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
993
710
|
"h5",
|
|
994
711
|
{
|
|
995
712
|
ref,
|
|
@@ -998,7 +715,7 @@ var AlertTitle = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
998
715
|
}
|
|
999
716
|
));
|
|
1000
717
|
AlertTitle.displayName = "AlertTitle";
|
|
1001
|
-
var AlertDescription =
|
|
718
|
+
var AlertDescription = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1002
719
|
"div",
|
|
1003
720
|
{
|
|
1004
721
|
ref,
|
|
@@ -1009,14 +726,14 @@ var AlertDescription = React11.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1009
726
|
AlertDescription.displayName = "AlertDescription";
|
|
1010
727
|
|
|
1011
728
|
// src/components/atoms/ui/label.tsx
|
|
1012
|
-
var
|
|
729
|
+
var React10 = __toESM(require("react"));
|
|
1013
730
|
var LabelPrimitive = __toESM(require("@radix-ui/react-label"));
|
|
1014
|
-
var
|
|
1015
|
-
var
|
|
1016
|
-
var labelVariants = (0,
|
|
731
|
+
var import_class_variance_authority4 = require("class-variance-authority");
|
|
732
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
733
|
+
var labelVariants = (0, import_class_variance_authority4.cva)(
|
|
1017
734
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
1018
735
|
);
|
|
1019
|
-
var Label2 =
|
|
736
|
+
var Label2 = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1020
737
|
LabelPrimitive.Root,
|
|
1021
738
|
{
|
|
1022
739
|
ref,
|
|
@@ -1027,11 +744,11 @@ var Label2 = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
1027
744
|
Label2.displayName = LabelPrimitive.Root.displayName;
|
|
1028
745
|
|
|
1029
746
|
// src/components/atoms/ui/checkbox.tsx
|
|
1030
|
-
var
|
|
747
|
+
var React11 = __toESM(require("react"));
|
|
1031
748
|
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"));
|
|
1032
|
-
var
|
|
1033
|
-
var
|
|
1034
|
-
var Checkbox =
|
|
749
|
+
var import_lucide_react2 = require("lucide-react");
|
|
750
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
751
|
+
var Checkbox = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1035
752
|
CheckboxPrimitive.Root,
|
|
1036
753
|
{
|
|
1037
754
|
ref,
|
|
@@ -1041,11 +758,11 @@ var Checkbox = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1041
758
|
"alq--checkbox"
|
|
1042
759
|
),
|
|
1043
760
|
...props,
|
|
1044
|
-
children: /* @__PURE__ */ (0,
|
|
761
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1045
762
|
CheckboxPrimitive.Indicator,
|
|
1046
763
|
{
|
|
1047
764
|
className: cn("flex items-center justify-center text-current"),
|
|
1048
|
-
children: /* @__PURE__ */ (0,
|
|
765
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react2.Check, { className: "h-4 w-4" })
|
|
1049
766
|
}
|
|
1050
767
|
)
|
|
1051
768
|
}
|
|
@@ -1053,11 +770,11 @@ var Checkbox = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1053
770
|
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
1054
771
|
|
|
1055
772
|
// src/components/atoms/ui/toggle.tsx
|
|
1056
|
-
var
|
|
773
|
+
var React12 = __toESM(require("react"));
|
|
1057
774
|
var TogglePrimitive = __toESM(require("@radix-ui/react-toggle"));
|
|
1058
|
-
var
|
|
1059
|
-
var
|
|
1060
|
-
var toggleVariants = (0,
|
|
775
|
+
var import_class_variance_authority5 = require("class-variance-authority");
|
|
776
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
777
|
+
var toggleVariants = (0, import_class_variance_authority5.cva)(
|
|
1061
778
|
"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",
|
|
1062
779
|
{
|
|
1063
780
|
variants: {
|
|
@@ -1077,7 +794,7 @@ var toggleVariants = (0, import_class_variance_authority6.cva)(
|
|
|
1077
794
|
}
|
|
1078
795
|
}
|
|
1079
796
|
);
|
|
1080
|
-
var Toggle =
|
|
797
|
+
var Toggle = React12.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1081
798
|
TogglePrimitive.Root,
|
|
1082
799
|
{
|
|
1083
800
|
ref,
|
|
@@ -1088,10 +805,10 @@ var Toggle = React14.forwardRef(({ className, variant, size, ...props }, ref) =>
|
|
|
1088
805
|
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
1089
806
|
|
|
1090
807
|
// src/components/atoms/ui/slider.tsx
|
|
1091
|
-
var
|
|
808
|
+
var React13 = __toESM(require("react"));
|
|
1092
809
|
var SliderPrimitive = __toESM(require("@radix-ui/react-slider"));
|
|
1093
|
-
var
|
|
1094
|
-
var Slider =
|
|
810
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
811
|
+
var Slider = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
1095
812
|
SliderPrimitive.Root,
|
|
1096
813
|
{
|
|
1097
814
|
ref,
|
|
@@ -1102,18 +819,18 @@ var Slider = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
1102
819
|
),
|
|
1103
820
|
...props,
|
|
1104
821
|
children: [
|
|
1105
|
-
/* @__PURE__ */ (0,
|
|
1106
|
-
/* @__PURE__ */ (0,
|
|
822
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(SliderPrimitive.Track, { className: "relative h-2 w-44 grow overflow-hidden rounded-full bg-primary", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(SliderPrimitive.Range, { className: "absolute h-full bg-secondary" }) }),
|
|
823
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.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" })
|
|
1107
824
|
]
|
|
1108
825
|
}
|
|
1109
826
|
));
|
|
1110
827
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
|
1111
828
|
|
|
1112
829
|
// src/components/atoms/ui/switch.tsx
|
|
1113
|
-
var
|
|
830
|
+
var React14 = __toESM(require("react"));
|
|
1114
831
|
var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"));
|
|
1115
|
-
var
|
|
1116
|
-
var Switch =
|
|
832
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
833
|
+
var Switch = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1117
834
|
SwitchPrimitives.Root,
|
|
1118
835
|
{
|
|
1119
836
|
className: cn(
|
|
@@ -1123,7 +840,7 @@ var Switch = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
1123
840
|
),
|
|
1124
841
|
...props,
|
|
1125
842
|
ref,
|
|
1126
|
-
children: /* @__PURE__ */ (0,
|
|
843
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1127
844
|
SwitchPrimitives.Thumb,
|
|
1128
845
|
{
|
|
1129
846
|
className: cn(
|
|
@@ -1136,10 +853,10 @@ var Switch = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
1136
853
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
1137
854
|
|
|
1138
855
|
// src/components/atoms/ui/tabs.tsx
|
|
1139
|
-
var
|
|
856
|
+
var React15 = __toESM(require("react"));
|
|
1140
857
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
|
|
1141
|
-
var
|
|
1142
|
-
var TabsList =
|
|
858
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
859
|
+
var TabsList = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1143
860
|
TabsPrimitive.List,
|
|
1144
861
|
{
|
|
1145
862
|
ref,
|
|
@@ -1152,7 +869,7 @@ var TabsList = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1152
869
|
}
|
|
1153
870
|
));
|
|
1154
871
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
1155
|
-
var TabsTrigger =
|
|
872
|
+
var TabsTrigger = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1156
873
|
TabsPrimitive.Trigger,
|
|
1157
874
|
{
|
|
1158
875
|
ref,
|
|
@@ -1164,7 +881,7 @@ var TabsTrigger = React17.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1164
881
|
}
|
|
1165
882
|
));
|
|
1166
883
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
1167
|
-
var TabsContent =
|
|
884
|
+
var TabsContent = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1168
885
|
TabsPrimitive.Content,
|
|
1169
886
|
{
|
|
1170
887
|
ref,
|
|
@@ -1181,9 +898,9 @@ TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
|
1181
898
|
var AspectRatioPrimitive = __toESM(require("@radix-ui/react-aspect-ratio"));
|
|
1182
899
|
|
|
1183
900
|
// src/components/atoms/ui/table.tsx
|
|
1184
|
-
var
|
|
1185
|
-
var
|
|
1186
|
-
var Table =
|
|
901
|
+
var React16 = __toESM(require("react"));
|
|
902
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
903
|
+
var Table = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1187
904
|
"table",
|
|
1188
905
|
{
|
|
1189
906
|
ref,
|
|
@@ -1192,9 +909,9 @@ var Table = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
1192
909
|
}
|
|
1193
910
|
) }));
|
|
1194
911
|
Table.displayName = "Table";
|
|
1195
|
-
var TableHeader =
|
|
912
|
+
var TableHeader = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("thead", { ref, className: cn("[&_tr]:border-b border-border bg-muted", className, "alq--table-header"), ...props }));
|
|
1196
913
|
TableHeader.displayName = "TableHeader";
|
|
1197
|
-
var TableBody =
|
|
914
|
+
var TableBody = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1198
915
|
"tbody",
|
|
1199
916
|
{
|
|
1200
917
|
ref,
|
|
@@ -1203,7 +920,7 @@ var TableBody = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
1203
920
|
}
|
|
1204
921
|
));
|
|
1205
922
|
TableBody.displayName = "TableBody";
|
|
1206
|
-
var TableFooter =
|
|
923
|
+
var TableFooter = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1207
924
|
"tfoot",
|
|
1208
925
|
{
|
|
1209
926
|
ref,
|
|
@@ -1216,7 +933,7 @@ var TableFooter = React18.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1216
933
|
}
|
|
1217
934
|
));
|
|
1218
935
|
TableFooter.displayName = "TableFooter";
|
|
1219
|
-
var TableRow =
|
|
936
|
+
var TableRow = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1220
937
|
"tr",
|
|
1221
938
|
{
|
|
1222
939
|
ref,
|
|
@@ -1228,7 +945,7 @@ var TableRow = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1228
945
|
}
|
|
1229
946
|
));
|
|
1230
947
|
TableRow.displayName = "TableRow";
|
|
1231
|
-
var TableHead =
|
|
948
|
+
var TableHead = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1232
949
|
"th",
|
|
1233
950
|
{
|
|
1234
951
|
ref,
|
|
@@ -1240,7 +957,7 @@ var TableHead = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
1240
957
|
}
|
|
1241
958
|
));
|
|
1242
959
|
TableHead.displayName = "TableHead";
|
|
1243
|
-
var TableCell =
|
|
960
|
+
var TableCell = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1244
961
|
"td",
|
|
1245
962
|
{
|
|
1246
963
|
ref,
|
|
@@ -1249,7 +966,7 @@ var TableCell = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
1249
966
|
}
|
|
1250
967
|
));
|
|
1251
968
|
TableCell.displayName = "TableCell";
|
|
1252
|
-
var TableCaption =
|
|
969
|
+
var TableCaption = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1253
970
|
"caption",
|
|
1254
971
|
{
|
|
1255
972
|
ref,
|
|
@@ -1260,13 +977,13 @@ var TableCaption = React18.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1260
977
|
TableCaption.displayName = "TableCaption";
|
|
1261
978
|
|
|
1262
979
|
// src/components/atoms/ui/breadcrumb.tsx
|
|
1263
|
-
var
|
|
980
|
+
var React17 = __toESM(require("react"));
|
|
1264
981
|
var import_react_slot2 = require("@radix-ui/react-slot");
|
|
1265
|
-
var
|
|
1266
|
-
var
|
|
1267
|
-
var Breadcrumb =
|
|
982
|
+
var import_lucide_react3 = require("lucide-react");
|
|
983
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
984
|
+
var Breadcrumb = React17.forwardRef(({ ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("nav", { ref, "aria-label": "breadcrumb", ...props }));
|
|
1268
985
|
Breadcrumb.displayName = "Breadcrumb";
|
|
1269
|
-
var BreadcrumbList =
|
|
986
|
+
var BreadcrumbList = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1270
987
|
"ol",
|
|
1271
988
|
{
|
|
1272
989
|
ref,
|
|
@@ -1278,7 +995,7 @@ var BreadcrumbList = React19.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
1278
995
|
}
|
|
1279
996
|
));
|
|
1280
997
|
BreadcrumbList.displayName = "BreadcrumbList";
|
|
1281
|
-
var BreadcrumbItem =
|
|
998
|
+
var BreadcrumbItem = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1282
999
|
"li",
|
|
1283
1000
|
{
|
|
1284
1001
|
ref,
|
|
@@ -1287,9 +1004,9 @@ var BreadcrumbItem = React19.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
1287
1004
|
}
|
|
1288
1005
|
));
|
|
1289
1006
|
BreadcrumbItem.displayName = "BreadcrumbItem";
|
|
1290
|
-
var BreadcrumbLink =
|
|
1007
|
+
var BreadcrumbLink = React17.forwardRef(({ asChild, className, ...props }, ref) => {
|
|
1291
1008
|
const Comp = asChild ? import_react_slot2.Slot : "a";
|
|
1292
|
-
return /* @__PURE__ */ (0,
|
|
1009
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1293
1010
|
Comp,
|
|
1294
1011
|
{
|
|
1295
1012
|
ref,
|
|
@@ -1299,7 +1016,7 @@ var BreadcrumbLink = React19.forwardRef(({ asChild, className, ...props }, ref)
|
|
|
1299
1016
|
);
|
|
1300
1017
|
});
|
|
1301
1018
|
BreadcrumbLink.displayName = "BreadcrumbLink";
|
|
1302
|
-
var BreadcrumbPage =
|
|
1019
|
+
var BreadcrumbPage = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1303
1020
|
"span",
|
|
1304
1021
|
{
|
|
1305
1022
|
ref,
|
|
@@ -1315,21 +1032,21 @@ var BreadcrumbSeparator = ({
|
|
|
1315
1032
|
children,
|
|
1316
1033
|
className,
|
|
1317
1034
|
...props
|
|
1318
|
-
}) => /* @__PURE__ */ (0,
|
|
1035
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1319
1036
|
"li",
|
|
1320
1037
|
{
|
|
1321
1038
|
role: "presentation",
|
|
1322
1039
|
"aria-hidden": "true",
|
|
1323
1040
|
className: cn("[&>svg]:w-3.5 [&>svg]:h-3.5", className),
|
|
1324
1041
|
...props,
|
|
1325
|
-
children: children ?? /* @__PURE__ */ (0,
|
|
1042
|
+
children: children ?? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react3.ChevronRight, {})
|
|
1326
1043
|
}
|
|
1327
1044
|
);
|
|
1328
1045
|
BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
|
|
1329
1046
|
var BreadcrumbEllipsis = ({
|
|
1330
1047
|
className,
|
|
1331
1048
|
...props
|
|
1332
|
-
}) => /* @__PURE__ */ (0,
|
|
1049
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
1333
1050
|
"span",
|
|
1334
1051
|
{
|
|
1335
1052
|
role: "presentation",
|
|
@@ -1337,18 +1054,18 @@ var BreadcrumbEllipsis = ({
|
|
|
1337
1054
|
className: cn("flex h-9 w-9 items-center justify-center", className),
|
|
1338
1055
|
...props,
|
|
1339
1056
|
children: [
|
|
1340
|
-
/* @__PURE__ */ (0,
|
|
1341
|
-
/* @__PURE__ */ (0,
|
|
1057
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react3.MoreHorizontal, { className: "h-4 w-4" }),
|
|
1058
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "sr-only", children: "More" })
|
|
1342
1059
|
]
|
|
1343
1060
|
}
|
|
1344
1061
|
);
|
|
1345
1062
|
BreadcrumbEllipsis.displayName = "BreadcrumbElipssis";
|
|
1346
1063
|
|
|
1347
1064
|
// src/components/atoms/ui/popover.tsx
|
|
1348
|
-
var
|
|
1065
|
+
var React18 = __toESM(require("react"));
|
|
1349
1066
|
var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
|
|
1350
|
-
var
|
|
1351
|
-
var PopoverContent =
|
|
1067
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1068
|
+
var PopoverContent = React18.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1352
1069
|
PopoverPrimitive.Content,
|
|
1353
1070
|
{
|
|
1354
1071
|
ref,
|
|
@@ -1364,19 +1081,19 @@ var PopoverContent = React20.forwardRef(({ className, align = "center", sideOffs
|
|
|
1364
1081
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
1365
1082
|
|
|
1366
1083
|
// src/components/atoms/ui/command.tsx
|
|
1367
|
-
var
|
|
1084
|
+
var React20 = __toESM(require("react"));
|
|
1368
1085
|
var import_cmdk = require("cmdk");
|
|
1369
|
-
var
|
|
1086
|
+
var import_lucide_react5 = require("lucide-react");
|
|
1370
1087
|
|
|
1371
1088
|
// src/components/atoms/ui/dialog.tsx
|
|
1372
|
-
var
|
|
1089
|
+
var React19 = __toESM(require("react"));
|
|
1373
1090
|
var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"));
|
|
1374
|
-
var
|
|
1375
|
-
var
|
|
1091
|
+
var import_lucide_react4 = require("lucide-react");
|
|
1092
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1376
1093
|
var Dialog = DialogPrimitive.Root;
|
|
1377
1094
|
var DialogTrigger = DialogPrimitive.Trigger;
|
|
1378
1095
|
var DialogPortal = DialogPrimitive.Portal;
|
|
1379
|
-
var DialogOverlay =
|
|
1096
|
+
var DialogOverlay = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1380
1097
|
DialogPrimitive.Overlay,
|
|
1381
1098
|
{
|
|
1382
1099
|
ref,
|
|
@@ -1388,9 +1105,9 @@ var DialogOverlay = React21.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1388
1105
|
}
|
|
1389
1106
|
));
|
|
1390
1107
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
1391
|
-
var DialogContent =
|
|
1392
|
-
/* @__PURE__ */ (0,
|
|
1393
|
-
/* @__PURE__ */ (0,
|
|
1108
|
+
var DialogContent = React19.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(DialogPortal, { children: [
|
|
1109
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(DialogOverlay, {}),
|
|
1110
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
1394
1111
|
DialogPrimitive.Content,
|
|
1395
1112
|
{
|
|
1396
1113
|
ref,
|
|
@@ -1402,9 +1119,9 @@ var DialogContent = React21.forwardRef(({ className, children, ...props }, ref)
|
|
|
1402
1119
|
...props,
|
|
1403
1120
|
children: [
|
|
1404
1121
|
children,
|
|
1405
|
-
/* @__PURE__ */ (0,
|
|
1406
|
-
/* @__PURE__ */ (0,
|
|
1407
|
-
/* @__PURE__ */ (0,
|
|
1122
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.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: [
|
|
1123
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react4.X, { className: "h-4 w-4" }),
|
|
1124
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "sr-only", children: "Close" })
|
|
1408
1125
|
] })
|
|
1409
1126
|
]
|
|
1410
1127
|
}
|
|
@@ -1414,7 +1131,7 @@ DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
|
1414
1131
|
var DialogHeader = ({
|
|
1415
1132
|
className,
|
|
1416
1133
|
...props
|
|
1417
|
-
}) => /* @__PURE__ */ (0,
|
|
1134
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1418
1135
|
"div",
|
|
1419
1136
|
{
|
|
1420
1137
|
className: cn(
|
|
@@ -1429,7 +1146,7 @@ DialogHeader.displayName = "DialogHeader";
|
|
|
1429
1146
|
var DialogFooter = ({
|
|
1430
1147
|
className,
|
|
1431
1148
|
...props
|
|
1432
|
-
}) => /* @__PURE__ */ (0,
|
|
1149
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1433
1150
|
"div",
|
|
1434
1151
|
{
|
|
1435
1152
|
className: cn(
|
|
@@ -1440,7 +1157,7 @@ var DialogFooter = ({
|
|
|
1440
1157
|
}
|
|
1441
1158
|
);
|
|
1442
1159
|
DialogFooter.displayName = "DialogFooter";
|
|
1443
|
-
var DialogTitle =
|
|
1160
|
+
var DialogTitle = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1444
1161
|
DialogPrimitive.Title,
|
|
1445
1162
|
{
|
|
1446
1163
|
ref,
|
|
@@ -1453,7 +1170,7 @@ var DialogTitle = React21.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1453
1170
|
}
|
|
1454
1171
|
));
|
|
1455
1172
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
1456
|
-
var DialogDescription =
|
|
1173
|
+
var DialogDescription = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1457
1174
|
DialogPrimitive.Description,
|
|
1458
1175
|
{
|
|
1459
1176
|
ref,
|
|
@@ -1464,8 +1181,8 @@ var DialogDescription = React21.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1464
1181
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
1465
1182
|
|
|
1466
1183
|
// src/components/atoms/ui/command.tsx
|
|
1467
|
-
var
|
|
1468
|
-
var Command =
|
|
1184
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1185
|
+
var Command = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1469
1186
|
import_cmdk.Command,
|
|
1470
1187
|
{
|
|
1471
1188
|
ref,
|
|
@@ -1477,9 +1194,9 @@ var Command = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1477
1194
|
}
|
|
1478
1195
|
));
|
|
1479
1196
|
Command.displayName = import_cmdk.Command.displayName;
|
|
1480
|
-
var CommandInput =
|
|
1481
|
-
/* @__PURE__ */ (0,
|
|
1482
|
-
/* @__PURE__ */ (0,
|
|
1197
|
+
var CommandInput = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
1198
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_lucide_react5.Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
1199
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1483
1200
|
import_cmdk.Command.Input,
|
|
1484
1201
|
{
|
|
1485
1202
|
ref,
|
|
@@ -1492,7 +1209,7 @@ var CommandInput = React22.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1492
1209
|
)
|
|
1493
1210
|
] }));
|
|
1494
1211
|
CommandInput.displayName = import_cmdk.Command.Input.displayName;
|
|
1495
|
-
var CommandList =
|
|
1212
|
+
var CommandList = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1496
1213
|
import_cmdk.Command.List,
|
|
1497
1214
|
{
|
|
1498
1215
|
ref,
|
|
@@ -1501,7 +1218,7 @@ var CommandList = React22.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1501
1218
|
}
|
|
1502
1219
|
));
|
|
1503
1220
|
CommandList.displayName = import_cmdk.Command.List.displayName;
|
|
1504
|
-
var CommandEmpty =
|
|
1221
|
+
var CommandEmpty = React20.forwardRef((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1505
1222
|
import_cmdk.Command.Empty,
|
|
1506
1223
|
{
|
|
1507
1224
|
ref,
|
|
@@ -1510,7 +1227,7 @@ var CommandEmpty = React22.forwardRef((props, ref) => /* @__PURE__ */ (0, import
|
|
|
1510
1227
|
}
|
|
1511
1228
|
));
|
|
1512
1229
|
CommandEmpty.displayName = import_cmdk.Command.Empty.displayName;
|
|
1513
|
-
var CommandGroup =
|
|
1230
|
+
var CommandGroup = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1514
1231
|
import_cmdk.Command.Group,
|
|
1515
1232
|
{
|
|
1516
1233
|
ref,
|
|
@@ -1522,7 +1239,7 @@ var CommandGroup = React22.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1522
1239
|
}
|
|
1523
1240
|
));
|
|
1524
1241
|
CommandGroup.displayName = import_cmdk.Command.Group.displayName;
|
|
1525
|
-
var CommandSeparator =
|
|
1242
|
+
var CommandSeparator = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1526
1243
|
import_cmdk.Command.Separator,
|
|
1527
1244
|
{
|
|
1528
1245
|
ref,
|
|
@@ -1531,7 +1248,7 @@ var CommandSeparator = React22.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1531
1248
|
}
|
|
1532
1249
|
));
|
|
1533
1250
|
CommandSeparator.displayName = import_cmdk.Command.Separator.displayName;
|
|
1534
|
-
var CommandItem =
|
|
1251
|
+
var CommandItem = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1535
1252
|
import_cmdk.Command.Item,
|
|
1536
1253
|
{
|
|
1537
1254
|
ref,
|
|
@@ -1547,7 +1264,7 @@ var CommandShortcut = ({
|
|
|
1547
1264
|
className,
|
|
1548
1265
|
...props
|
|
1549
1266
|
}) => {
|
|
1550
|
-
return /* @__PURE__ */ (0,
|
|
1267
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1551
1268
|
"span",
|
|
1552
1269
|
{
|
|
1553
1270
|
className: cn(
|
|
@@ -1561,12 +1278,12 @@ var CommandShortcut = ({
|
|
|
1561
1278
|
CommandShortcut.displayName = "CommandShortcut";
|
|
1562
1279
|
|
|
1563
1280
|
// src/components/atoms/ui/toast.tsx
|
|
1564
|
-
var
|
|
1281
|
+
var React21 = __toESM(require("react"));
|
|
1565
1282
|
var ToastPrimitives = __toESM(require("@radix-ui/react-toast"));
|
|
1566
|
-
var
|
|
1567
|
-
var
|
|
1568
|
-
var
|
|
1569
|
-
var ToastViewport =
|
|
1283
|
+
var import_class_variance_authority6 = require("class-variance-authority");
|
|
1284
|
+
var import_lucide_react6 = require("lucide-react");
|
|
1285
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1286
|
+
var ToastViewport = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1570
1287
|
ToastPrimitives.Viewport,
|
|
1571
1288
|
{
|
|
1572
1289
|
ref,
|
|
@@ -1578,7 +1295,7 @@ var ToastViewport = React23.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1578
1295
|
}
|
|
1579
1296
|
));
|
|
1580
1297
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
1581
|
-
var toastVariants = (0,
|
|
1298
|
+
var toastVariants = (0, import_class_variance_authority6.cva)(
|
|
1582
1299
|
"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",
|
|
1583
1300
|
{
|
|
1584
1301
|
variants: {
|
|
@@ -1590,203 +1307,598 @@ var toastVariants = (0, import_class_variance_authority7.cva)(
|
|
|
1590
1307
|
defaultVariants: {
|
|
1591
1308
|
variant: "default"
|
|
1592
1309
|
}
|
|
1593
|
-
}
|
|
1594
|
-
);
|
|
1595
|
-
var Toast =
|
|
1596
|
-
return /* @__PURE__ */ (0,
|
|
1597
|
-
ToastPrimitives.Root,
|
|
1310
|
+
}
|
|
1311
|
+
);
|
|
1312
|
+
var Toast = React21.forwardRef(({ className, variant, ...props }, ref) => {
|
|
1313
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1314
|
+
ToastPrimitives.Root,
|
|
1315
|
+
{
|
|
1316
|
+
ref,
|
|
1317
|
+
className: cn(toastVariants({ variant }), className),
|
|
1318
|
+
...props
|
|
1319
|
+
}
|
|
1320
|
+
);
|
|
1321
|
+
});
|
|
1322
|
+
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
1323
|
+
var ToastAction = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1324
|
+
ToastPrimitives.Action,
|
|
1325
|
+
{
|
|
1326
|
+
ref,
|
|
1327
|
+
className: cn(
|
|
1328
|
+
"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",
|
|
1329
|
+
className
|
|
1330
|
+
),
|
|
1331
|
+
...props
|
|
1332
|
+
}
|
|
1333
|
+
));
|
|
1334
|
+
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
1335
|
+
var ToastClose = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1336
|
+
ToastPrimitives.Close,
|
|
1337
|
+
{
|
|
1338
|
+
ref,
|
|
1339
|
+
className: cn(
|
|
1340
|
+
"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",
|
|
1341
|
+
className
|
|
1342
|
+
),
|
|
1343
|
+
"toast-close": "",
|
|
1344
|
+
...props,
|
|
1345
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_lucide_react6.X, { className: "h-4 w-4" })
|
|
1346
|
+
}
|
|
1347
|
+
));
|
|
1348
|
+
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
1349
|
+
var ToastTitle = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1350
|
+
ToastPrimitives.Title,
|
|
1351
|
+
{
|
|
1352
|
+
ref,
|
|
1353
|
+
className: cn("text-sm font-semibold", className),
|
|
1354
|
+
...props
|
|
1355
|
+
}
|
|
1356
|
+
));
|
|
1357
|
+
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
1358
|
+
var ToastDescription = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1359
|
+
ToastPrimitives.Description,
|
|
1360
|
+
{
|
|
1361
|
+
ref,
|
|
1362
|
+
className: cn("text-sm opacity-90", className),
|
|
1363
|
+
...props
|
|
1364
|
+
}
|
|
1365
|
+
));
|
|
1366
|
+
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
1367
|
+
|
|
1368
|
+
// src/components/atoms/ui/loader.tsx
|
|
1369
|
+
var React22 = __toESM(require("react"));
|
|
1370
|
+
var import_class_variance_authority7 = require("class-variance-authority");
|
|
1371
|
+
var import_lucide_react7 = require("lucide-react");
|
|
1372
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1373
|
+
var loaderVariants = (0, import_class_variance_authority7.cva)(
|
|
1374
|
+
"flex justify-center items-center w-full",
|
|
1375
|
+
{
|
|
1376
|
+
variants: {
|
|
1377
|
+
size: {
|
|
1378
|
+
small: "h-6 w-6",
|
|
1379
|
+
medium: "h-8 w-8",
|
|
1380
|
+
large: "h-12 w-12",
|
|
1381
|
+
xl: "h-24 w-24"
|
|
1382
|
+
},
|
|
1383
|
+
colorVariant: {
|
|
1384
|
+
default: "text-primary",
|
|
1385
|
+
primary: "text-primary",
|
|
1386
|
+
secondary: "text-secondary",
|
|
1387
|
+
destructive: "text-destructive"
|
|
1388
|
+
}
|
|
1389
|
+
},
|
|
1390
|
+
defaultVariants: {
|
|
1391
|
+
size: "medium",
|
|
1392
|
+
colorVariant: "default"
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1395
|
+
);
|
|
1396
|
+
var Loader = React22.forwardRef(
|
|
1397
|
+
({ className, size, colorVariant, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1398
|
+
"div",
|
|
1399
|
+
{
|
|
1400
|
+
ref,
|
|
1401
|
+
className: cn(loaderVariants({ size, colorVariant }), "flex justify-center items-center h-full w-full", className),
|
|
1402
|
+
...props,
|
|
1403
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_lucide_react7.Loader2, { className: "animate-spin" })
|
|
1404
|
+
}
|
|
1405
|
+
)
|
|
1406
|
+
);
|
|
1407
|
+
Loader.displayName = "Loader";
|
|
1408
|
+
|
|
1409
|
+
// src/components/hooks/use-toast.ts
|
|
1410
|
+
var React23 = __toESM(require("react"));
|
|
1411
|
+
|
|
1412
|
+
// src/components/atoms/ui/toaster.tsx
|
|
1413
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
1414
|
+
|
|
1415
|
+
// src/components/atoms/ui/think-indicator.tsx
|
|
1416
|
+
var React24 = __toESM(require("react"));
|
|
1417
|
+
var import_react4 = require("react");
|
|
1418
|
+
var import_class_variance_authority8 = require("class-variance-authority");
|
|
1419
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
1420
|
+
var thinkIndicatorVariants = (0, import_class_variance_authority8.cva)(
|
|
1421
|
+
"flex items-center gap-3",
|
|
1422
|
+
{
|
|
1423
|
+
variants: {
|
|
1424
|
+
variant: {
|
|
1425
|
+
default: "text-muted-foreground",
|
|
1426
|
+
primary: "text-primary",
|
|
1427
|
+
secondary: "text-secondary"
|
|
1428
|
+
},
|
|
1429
|
+
size: {
|
|
1430
|
+
default: "gap-3",
|
|
1431
|
+
sm: "gap-2",
|
|
1432
|
+
lg: "gap-4"
|
|
1433
|
+
}
|
|
1434
|
+
},
|
|
1435
|
+
defaultVariants: {
|
|
1436
|
+
variant: "default",
|
|
1437
|
+
size: "default"
|
|
1438
|
+
}
|
|
1439
|
+
}
|
|
1440
|
+
);
|
|
1441
|
+
var ThinkIndicator = React24.forwardRef(
|
|
1442
|
+
({
|
|
1443
|
+
className,
|
|
1444
|
+
variant,
|
|
1445
|
+
size,
|
|
1446
|
+
thoughts = [
|
|
1447
|
+
"Analyzing your request...",
|
|
1448
|
+
"Processing information...",
|
|
1449
|
+
"Formulating response..."
|
|
1450
|
+
],
|
|
1451
|
+
interval = 5e3,
|
|
1452
|
+
loader,
|
|
1453
|
+
...props
|
|
1454
|
+
}, ref) => {
|
|
1455
|
+
const [currentThoughtIndex, setCurrentThoughtIndex] = (0, import_react4.useState)(0);
|
|
1456
|
+
const [isAnimating, setIsAnimating] = (0, import_react4.useState)(false);
|
|
1457
|
+
(0, import_react4.useEffect)(() => {
|
|
1458
|
+
const timer = setInterval(() => {
|
|
1459
|
+
setIsAnimating(true);
|
|
1460
|
+
setTimeout(() => {
|
|
1461
|
+
setCurrentThoughtIndex((prev) => {
|
|
1462
|
+
return prev < thoughts.length - 1 ? prev + 1 : prev;
|
|
1463
|
+
});
|
|
1464
|
+
setIsAnimating(false);
|
|
1465
|
+
}, 300);
|
|
1466
|
+
}, interval);
|
|
1467
|
+
if (currentThoughtIndex === thoughts.length - 1) {
|
|
1468
|
+
clearInterval(timer);
|
|
1469
|
+
}
|
|
1470
|
+
return () => clearInterval(timer);
|
|
1471
|
+
}, [thoughts, interval, currentThoughtIndex]);
|
|
1472
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
1473
|
+
"div",
|
|
1474
|
+
{
|
|
1475
|
+
ref,
|
|
1476
|
+
className: cn(thinkIndicatorVariants({ variant, size }), className, "alq--think-indicator"),
|
|
1477
|
+
...props,
|
|
1478
|
+
children: [
|
|
1479
|
+
loader || /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1480
|
+
Loader,
|
|
1481
|
+
{
|
|
1482
|
+
className: cn(
|
|
1483
|
+
size === "sm" ? "h-3 w-3" : size === "lg" ? "h-5 w-5" : "h-4 w-4"
|
|
1484
|
+
)
|
|
1485
|
+
}
|
|
1486
|
+
),
|
|
1487
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1488
|
+
"div",
|
|
1489
|
+
{
|
|
1490
|
+
className: cn(
|
|
1491
|
+
"alq--think-indicator-text",
|
|
1492
|
+
"transition-all duration-300",
|
|
1493
|
+
isAnimating ? "opacity-0 -translate-y-2" : "opacity-100 translate-y-0"
|
|
1494
|
+
),
|
|
1495
|
+
children: thoughts[currentThoughtIndex]
|
|
1496
|
+
}
|
|
1497
|
+
)
|
|
1498
|
+
]
|
|
1499
|
+
}
|
|
1500
|
+
);
|
|
1501
|
+
}
|
|
1502
|
+
);
|
|
1503
|
+
ThinkIndicator.displayName = "ThinkIndicator";
|
|
1504
|
+
|
|
1505
|
+
// src/components/molecules/assistant-button.tsx
|
|
1506
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
1507
|
+
var AssistantSuggestions = React25.forwardRef(({ suggestions, showSuggestions, className }, ref) => {
|
|
1508
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1509
|
+
"div",
|
|
1510
|
+
{
|
|
1511
|
+
ref,
|
|
1512
|
+
className: cn(
|
|
1513
|
+
"absolute bottom-[calc(100%+0.5rem)] right-0 pb-2 mb-4 alq--assistant-suggestions-container",
|
|
1514
|
+
"transition-all duration-300",
|
|
1515
|
+
showSuggestions ? "opacity-100 translate-y-0" : "opacity-0 translate-y-4",
|
|
1516
|
+
className
|
|
1517
|
+
),
|
|
1518
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "rounded-lg p-2 pr-0 w-64", children: suggestions.map((suggestion, index) => /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
1519
|
+
"button",
|
|
1520
|
+
{
|
|
1521
|
+
onClick: () => suggestion.action?.(),
|
|
1522
|
+
style: {
|
|
1523
|
+
transitionDelay: showSuggestions ? `${index * 50}ms` : "0ms"
|
|
1524
|
+
},
|
|
1525
|
+
className: cn(
|
|
1526
|
+
"bg-background flex items-center gap-2 border p-2 pr-4 my-2 rounded-full ml-auto",
|
|
1527
|
+
"text-primary hover:bg-secondary",
|
|
1528
|
+
"transition-all duration-100",
|
|
1529
|
+
"origin-bottom w-fit",
|
|
1530
|
+
"alq--assistant-suggestion",
|
|
1531
|
+
showSuggestions ? "opacity-100 translate-y-0" : "opacity-0 translate-y-4"
|
|
1532
|
+
),
|
|
1533
|
+
children: [
|
|
1534
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(suggestion.icon, { className: "w-5 h-5 text-primary" }),
|
|
1535
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-xs whitespace-nowrap font-normal", children: suggestion.label })
|
|
1536
|
+
]
|
|
1537
|
+
},
|
|
1538
|
+
index
|
|
1539
|
+
)) })
|
|
1540
|
+
}
|
|
1541
|
+
);
|
|
1542
|
+
});
|
|
1543
|
+
AssistantSuggestions.displayName = "Suggestions";
|
|
1544
|
+
var AssistantButton = React25.forwardRef(
|
|
1545
|
+
({
|
|
1546
|
+
icon: Icon2,
|
|
1547
|
+
clickAction,
|
|
1548
|
+
className,
|
|
1549
|
+
suggestions = []
|
|
1550
|
+
}, ref) => {
|
|
1551
|
+
const [isVisible, setIsVisible] = (0, import_react5.useState)(false);
|
|
1552
|
+
const [showSuggestions, setShowSuggestions] = (0, import_react5.useState)(false);
|
|
1553
|
+
const handleMouseEnter = () => {
|
|
1554
|
+
setIsVisible(true);
|
|
1555
|
+
requestAnimationFrame(() => {
|
|
1556
|
+
requestAnimationFrame(() => {
|
|
1557
|
+
setShowSuggestions(true);
|
|
1558
|
+
});
|
|
1559
|
+
});
|
|
1560
|
+
};
|
|
1561
|
+
const handleMouseLeave = () => {
|
|
1562
|
+
setShowSuggestions(false);
|
|
1563
|
+
setTimeout(() => setIsVisible(false), 300);
|
|
1564
|
+
};
|
|
1565
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1566
|
+
"div",
|
|
1567
|
+
{
|
|
1568
|
+
ref,
|
|
1569
|
+
className: cn(
|
|
1570
|
+
"fixed bottom-8 right-4 z-50",
|
|
1571
|
+
"alq--assistant-button-container",
|
|
1572
|
+
className
|
|
1573
|
+
),
|
|
1574
|
+
onMouseEnter: handleMouseEnter,
|
|
1575
|
+
onMouseLeave: handleMouseLeave,
|
|
1576
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "relative group", children: [
|
|
1577
|
+
isVisible && suggestions.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1578
|
+
AssistantSuggestions,
|
|
1579
|
+
{
|
|
1580
|
+
suggestions,
|
|
1581
|
+
showSuggestions
|
|
1582
|
+
}
|
|
1583
|
+
),
|
|
1584
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1585
|
+
Button,
|
|
1586
|
+
{
|
|
1587
|
+
variant: "outline",
|
|
1588
|
+
size: "sm",
|
|
1589
|
+
className: cn(
|
|
1590
|
+
"fixed hover:bg-opacity-70 transition-all duration-300",
|
|
1591
|
+
"bottom-4 h-12 w-12 right-4 z-50 rounded-full p-2",
|
|
1592
|
+
"shadow-md",
|
|
1593
|
+
"hover:shadow-lg",
|
|
1594
|
+
showSuggestions ? "scale-110" : "hover:scale-105",
|
|
1595
|
+
"alq--assistant-button"
|
|
1596
|
+
),
|
|
1597
|
+
onClick: clickAction,
|
|
1598
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1599
|
+
Icon2,
|
|
1600
|
+
{
|
|
1601
|
+
style: { width: "22px", height: "22px" },
|
|
1602
|
+
className: "text-primary"
|
|
1603
|
+
}
|
|
1604
|
+
)
|
|
1605
|
+
}
|
|
1606
|
+
)
|
|
1607
|
+
] })
|
|
1608
|
+
}
|
|
1609
|
+
);
|
|
1610
|
+
}
|
|
1611
|
+
);
|
|
1612
|
+
AssistantButton.displayName = "AssistantButton";
|
|
1613
|
+
|
|
1614
|
+
// src/components/molecules/carousel.tsx
|
|
1615
|
+
var React26 = __toESM(require("react"));
|
|
1616
|
+
var import_embla_carousel_react = __toESM(require("embla-carousel-react"));
|
|
1617
|
+
var import_lucide_react8 = require("lucide-react");
|
|
1618
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
1619
|
+
var CarouselContext = React26.createContext(null);
|
|
1620
|
+
function useCarousel() {
|
|
1621
|
+
const context = React26.useContext(CarouselContext);
|
|
1622
|
+
if (!context) {
|
|
1623
|
+
throw new Error("useCarousel must be used within a <Carousel />");
|
|
1624
|
+
}
|
|
1625
|
+
return context;
|
|
1626
|
+
}
|
|
1627
|
+
var Carousel = React26.forwardRef(
|
|
1628
|
+
({
|
|
1629
|
+
orientation = "horizontal",
|
|
1630
|
+
opts,
|
|
1631
|
+
setApi,
|
|
1632
|
+
plugins,
|
|
1633
|
+
className,
|
|
1634
|
+
children,
|
|
1635
|
+
...props
|
|
1636
|
+
}, ref) => {
|
|
1637
|
+
const [carouselRef, api] = (0, import_embla_carousel_react.default)(
|
|
1638
|
+
{
|
|
1639
|
+
...opts,
|
|
1640
|
+
axis: orientation === "horizontal" ? "x" : "y"
|
|
1641
|
+
},
|
|
1642
|
+
plugins
|
|
1643
|
+
);
|
|
1644
|
+
const [canScrollPrev, setCanScrollPrev] = React26.useState(false);
|
|
1645
|
+
const [canScrollNext, setCanScrollNext] = React26.useState(false);
|
|
1646
|
+
const onSelect = React26.useCallback((api2) => {
|
|
1647
|
+
if (!api2) {
|
|
1648
|
+
return;
|
|
1649
|
+
}
|
|
1650
|
+
setCanScrollPrev(api2.canScrollPrev());
|
|
1651
|
+
setCanScrollNext(api2.canScrollNext());
|
|
1652
|
+
}, []);
|
|
1653
|
+
const scrollPrev = React26.useCallback(() => {
|
|
1654
|
+
api?.scrollPrev();
|
|
1655
|
+
}, [api]);
|
|
1656
|
+
const scrollNext = React26.useCallback(() => {
|
|
1657
|
+
api?.scrollNext();
|
|
1658
|
+
}, [api]);
|
|
1659
|
+
const handleKeyDown = React26.useCallback(
|
|
1660
|
+
(event) => {
|
|
1661
|
+
if (event.key === "ArrowLeft") {
|
|
1662
|
+
event.preventDefault();
|
|
1663
|
+
scrollPrev();
|
|
1664
|
+
} else if (event.key === "ArrowRight") {
|
|
1665
|
+
event.preventDefault();
|
|
1666
|
+
scrollNext();
|
|
1667
|
+
}
|
|
1668
|
+
},
|
|
1669
|
+
[scrollPrev, scrollNext]
|
|
1670
|
+
);
|
|
1671
|
+
React26.useEffect(() => {
|
|
1672
|
+
if (!api || !setApi) {
|
|
1673
|
+
return;
|
|
1674
|
+
}
|
|
1675
|
+
setApi(api);
|
|
1676
|
+
}, [api, setApi]);
|
|
1677
|
+
React26.useEffect(() => {
|
|
1678
|
+
if (!api) {
|
|
1679
|
+
return;
|
|
1680
|
+
}
|
|
1681
|
+
onSelect(api);
|
|
1682
|
+
api.on("reInit", onSelect);
|
|
1683
|
+
api.on("select", onSelect);
|
|
1684
|
+
return () => {
|
|
1685
|
+
api?.off("select", onSelect);
|
|
1686
|
+
};
|
|
1687
|
+
}, [api, onSelect]);
|
|
1688
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1689
|
+
CarouselContext.Provider,
|
|
1690
|
+
{
|
|
1691
|
+
value: {
|
|
1692
|
+
carouselRef,
|
|
1693
|
+
api,
|
|
1694
|
+
opts,
|
|
1695
|
+
orientation: orientation || (opts?.axis === "y" ? "vertical" : "horizontal"),
|
|
1696
|
+
scrollPrev,
|
|
1697
|
+
scrollNext,
|
|
1698
|
+
canScrollPrev,
|
|
1699
|
+
canScrollNext
|
|
1700
|
+
},
|
|
1701
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1702
|
+
"div",
|
|
1703
|
+
{
|
|
1704
|
+
ref,
|
|
1705
|
+
onKeyDownCapture: handleKeyDown,
|
|
1706
|
+
className: cn("relative", className),
|
|
1707
|
+
role: "region",
|
|
1708
|
+
"aria-roledescription": "carousel",
|
|
1709
|
+
...props,
|
|
1710
|
+
children
|
|
1711
|
+
}
|
|
1712
|
+
)
|
|
1713
|
+
}
|
|
1714
|
+
);
|
|
1715
|
+
}
|
|
1716
|
+
);
|
|
1717
|
+
Carousel.displayName = "Carousel";
|
|
1718
|
+
var CarouselContent = React26.forwardRef(({ className, ...props }, ref) => {
|
|
1719
|
+
const { carouselRef, orientation } = useCarousel();
|
|
1720
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1721
|
+
"div",
|
|
1722
|
+
{
|
|
1723
|
+
ref,
|
|
1724
|
+
className: cn(
|
|
1725
|
+
"flex",
|
|
1726
|
+
orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col",
|
|
1727
|
+
className
|
|
1728
|
+
),
|
|
1729
|
+
...props
|
|
1730
|
+
}
|
|
1731
|
+
) });
|
|
1732
|
+
});
|
|
1733
|
+
CarouselContent.displayName = "CarouselContent";
|
|
1734
|
+
var CarouselItem = React26.forwardRef(({ className, ...props }, ref) => {
|
|
1735
|
+
const { orientation } = useCarousel();
|
|
1736
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1737
|
+
"div",
|
|
1738
|
+
{
|
|
1739
|
+
ref,
|
|
1740
|
+
role: "group",
|
|
1741
|
+
"aria-roledescription": "slide",
|
|
1742
|
+
className: cn(
|
|
1743
|
+
"min-w-0 shrink-0 grow-0 basis-full",
|
|
1744
|
+
orientation === "horizontal" ? "pl-4" : "pt-4",
|
|
1745
|
+
className
|
|
1746
|
+
),
|
|
1747
|
+
...props
|
|
1748
|
+
}
|
|
1749
|
+
);
|
|
1750
|
+
});
|
|
1751
|
+
CarouselItem.displayName = "CarouselItem";
|
|
1752
|
+
var CarouselPrevious = React26.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
1753
|
+
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
1754
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
1755
|
+
Button,
|
|
1756
|
+
{
|
|
1757
|
+
ref,
|
|
1758
|
+
variant,
|
|
1759
|
+
size,
|
|
1760
|
+
className: cn(
|
|
1761
|
+
"absolute h-8 w-8 rounded-full",
|
|
1762
|
+
orientation === "horizontal" ? "-left-12 top-1/2 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
1763
|
+
className
|
|
1764
|
+
),
|
|
1765
|
+
disabled: !canScrollPrev,
|
|
1766
|
+
onClick: scrollPrev,
|
|
1767
|
+
...props,
|
|
1768
|
+
children: [
|
|
1769
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react8.ArrowLeft, { className: "h-4 w-4" }),
|
|
1770
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "sr-only", children: "Previous slide" })
|
|
1771
|
+
]
|
|
1772
|
+
}
|
|
1773
|
+
);
|
|
1774
|
+
});
|
|
1775
|
+
CarouselPrevious.displayName = "CarouselPrevious";
|
|
1776
|
+
var CarouselNext = React26.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
1777
|
+
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
1778
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
1779
|
+
Button,
|
|
1598
1780
|
{
|
|
1599
1781
|
ref,
|
|
1600
|
-
|
|
1601
|
-
|
|
1782
|
+
variant,
|
|
1783
|
+
size,
|
|
1784
|
+
className: cn(
|
|
1785
|
+
"absolute h-8 w-8 rounded-full",
|
|
1786
|
+
orientation === "horizontal" ? "-right-12 top-1/2 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
1787
|
+
className
|
|
1788
|
+
),
|
|
1789
|
+
disabled: !canScrollNext,
|
|
1790
|
+
onClick: scrollNext,
|
|
1791
|
+
...props,
|
|
1792
|
+
children: [
|
|
1793
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react8.ArrowRight, { className: "h-4 w-4" }),
|
|
1794
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "sr-only", children: "Next slide" })
|
|
1795
|
+
]
|
|
1602
1796
|
}
|
|
1603
1797
|
);
|
|
1604
1798
|
});
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1799
|
+
CarouselNext.displayName = "CarouselNext";
|
|
1800
|
+
|
|
1801
|
+
// src/components/molecules/navigation-menu.tsx
|
|
1802
|
+
var React27 = __toESM(require("react"));
|
|
1803
|
+
var NavigationMenuPrimitive = __toESM(require("@radix-ui/react-navigation-menu"));
|
|
1804
|
+
var import_class_variance_authority9 = require("class-variance-authority");
|
|
1805
|
+
var import_lucide_react9 = require("lucide-react");
|
|
1806
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
1807
|
+
var NavigationMenu = React27.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
1808
|
+
NavigationMenuPrimitive.Root,
|
|
1608
1809
|
{
|
|
1609
1810
|
ref,
|
|
1610
1811
|
className: cn(
|
|
1611
|
-
"
|
|
1812
|
+
"relative z-10 flex max-w-max flex-1 items-center justify-center",
|
|
1612
1813
|
className
|
|
1613
1814
|
),
|
|
1614
|
-
...props
|
|
1815
|
+
...props,
|
|
1816
|
+
children: [
|
|
1817
|
+
children,
|
|
1818
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(NavigationMenuViewport, {})
|
|
1819
|
+
]
|
|
1615
1820
|
}
|
|
1616
1821
|
));
|
|
1617
|
-
|
|
1618
|
-
var
|
|
1619
|
-
|
|
1822
|
+
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
1823
|
+
var NavigationMenuList = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
1824
|
+
NavigationMenuPrimitive.List,
|
|
1620
1825
|
{
|
|
1621
1826
|
ref,
|
|
1622
1827
|
className: cn(
|
|
1623
|
-
"
|
|
1828
|
+
"group flex flex-1 list-none items-center justify-center space-x-1",
|
|
1624
1829
|
className
|
|
1625
1830
|
),
|
|
1626
|
-
|
|
1627
|
-
...props,
|
|
1628
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_lucide_react8.X, { className: "h-4 w-4" })
|
|
1831
|
+
...props
|
|
1629
1832
|
}
|
|
1630
1833
|
));
|
|
1631
|
-
|
|
1632
|
-
var
|
|
1633
|
-
|
|
1834
|
+
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
1835
|
+
var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
1836
|
+
var navigationMenuTriggerStyle = (0, import_class_variance_authority9.cva)(
|
|
1837
|
+
"group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"
|
|
1838
|
+
);
|
|
1839
|
+
var NavigationMenuTrigger = React27.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
1840
|
+
NavigationMenuPrimitive.Trigger,
|
|
1634
1841
|
{
|
|
1635
1842
|
ref,
|
|
1636
|
-
className: cn(
|
|
1637
|
-
...props
|
|
1843
|
+
className: cn(navigationMenuTriggerStyle(), "group", className),
|
|
1844
|
+
...props,
|
|
1845
|
+
children: [
|
|
1846
|
+
children,
|
|
1847
|
+
" ",
|
|
1848
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
1849
|
+
import_lucide_react9.ChevronDown,
|
|
1850
|
+
{
|
|
1851
|
+
className: "relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180",
|
|
1852
|
+
"aria-hidden": "true"
|
|
1853
|
+
}
|
|
1854
|
+
)
|
|
1855
|
+
]
|
|
1638
1856
|
}
|
|
1639
1857
|
));
|
|
1640
|
-
|
|
1641
|
-
var
|
|
1642
|
-
|
|
1858
|
+
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
1859
|
+
var NavigationMenuContent = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
1860
|
+
NavigationMenuPrimitive.Content,
|
|
1643
1861
|
{
|
|
1644
1862
|
ref,
|
|
1645
|
-
className: cn(
|
|
1863
|
+
className: cn(
|
|
1864
|
+
"left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",
|
|
1865
|
+
className
|
|
1866
|
+
),
|
|
1646
1867
|
...props
|
|
1647
1868
|
}
|
|
1648
1869
|
));
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
var import_class_variance_authority8 = require("class-variance-authority");
|
|
1654
|
-
var import_lucide_react9 = require("lucide-react");
|
|
1655
|
-
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
1656
|
-
var loaderVariants = (0, import_class_variance_authority8.cva)(
|
|
1657
|
-
"flex justify-center items-center w-full",
|
|
1870
|
+
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
1871
|
+
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
1872
|
+
var NavigationMenuViewport = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
1873
|
+
NavigationMenuPrimitive.Viewport,
|
|
1658
1874
|
{
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
},
|
|
1666
|
-
colorVariant: {
|
|
1667
|
-
default: "text-primary",
|
|
1668
|
-
primary: "text-primary",
|
|
1669
|
-
secondary: "text-secondary",
|
|
1670
|
-
destructive: "text-destructive"
|
|
1671
|
-
}
|
|
1672
|
-
},
|
|
1673
|
-
defaultVariants: {
|
|
1674
|
-
size: "medium",
|
|
1675
|
-
colorVariant: "default"
|
|
1676
|
-
}
|
|
1875
|
+
className: cn(
|
|
1876
|
+
"origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",
|
|
1877
|
+
className
|
|
1878
|
+
),
|
|
1879
|
+
ref,
|
|
1880
|
+
...props
|
|
1677
1881
|
}
|
|
1678
|
-
);
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
{
|
|
1683
|
-
ref,
|
|
1684
|
-
className: cn(loaderVariants({ size, colorVariant }), "flex justify-center items-center h-full w-full", className),
|
|
1685
|
-
...props,
|
|
1686
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react9.Loader2, { className: "animate-spin" })
|
|
1687
|
-
}
|
|
1688
|
-
)
|
|
1689
|
-
);
|
|
1690
|
-
Loader.displayName = "Loader";
|
|
1691
|
-
|
|
1692
|
-
// src/components/hooks/use-toast.ts
|
|
1693
|
-
var React25 = __toESM(require("react"));
|
|
1694
|
-
|
|
1695
|
-
// src/components/atoms/ui/toaster.tsx
|
|
1696
|
-
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
1697
|
-
|
|
1698
|
-
// src/components/atoms/ui/think-indicator.tsx
|
|
1699
|
-
var React26 = __toESM(require("react"));
|
|
1700
|
-
var import_react4 = require("react");
|
|
1701
|
-
var import_class_variance_authority9 = require("class-variance-authority");
|
|
1702
|
-
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
1703
|
-
var thinkIndicatorVariants = (0, import_class_variance_authority9.cva)(
|
|
1704
|
-
"flex items-center gap-3",
|
|
1882
|
+
) }));
|
|
1883
|
+
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
1884
|
+
var NavigationMenuIndicator = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
1885
|
+
NavigationMenuPrimitive.Indicator,
|
|
1705
1886
|
{
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
default: "gap-3",
|
|
1714
|
-
sm: "gap-2",
|
|
1715
|
-
lg: "gap-4"
|
|
1716
|
-
}
|
|
1717
|
-
},
|
|
1718
|
-
defaultVariants: {
|
|
1719
|
-
variant: "default",
|
|
1720
|
-
size: "default"
|
|
1721
|
-
}
|
|
1722
|
-
}
|
|
1723
|
-
);
|
|
1724
|
-
var ThinkIndicator = React26.forwardRef(
|
|
1725
|
-
({
|
|
1726
|
-
className,
|
|
1727
|
-
variant,
|
|
1728
|
-
size,
|
|
1729
|
-
thoughts = [
|
|
1730
|
-
"Analyzing your request...",
|
|
1731
|
-
"Processing information...",
|
|
1732
|
-
"Formulating response..."
|
|
1733
|
-
],
|
|
1734
|
-
interval = 5e3,
|
|
1735
|
-
loader,
|
|
1736
|
-
...props
|
|
1737
|
-
}, ref) => {
|
|
1738
|
-
const [currentThoughtIndex, setCurrentThoughtIndex] = (0, import_react4.useState)(0);
|
|
1739
|
-
const [isAnimating, setIsAnimating] = (0, import_react4.useState)(false);
|
|
1740
|
-
(0, import_react4.useEffect)(() => {
|
|
1741
|
-
const timer = setInterval(() => {
|
|
1742
|
-
setIsAnimating(true);
|
|
1743
|
-
setTimeout(() => {
|
|
1744
|
-
setCurrentThoughtIndex((prev) => {
|
|
1745
|
-
return prev < thoughts.length - 1 ? prev + 1 : prev;
|
|
1746
|
-
});
|
|
1747
|
-
setIsAnimating(false);
|
|
1748
|
-
}, 300);
|
|
1749
|
-
}, interval);
|
|
1750
|
-
if (currentThoughtIndex === thoughts.length - 1) {
|
|
1751
|
-
clearInterval(timer);
|
|
1752
|
-
}
|
|
1753
|
-
return () => clearInterval(timer);
|
|
1754
|
-
}, [thoughts, interval, currentThoughtIndex]);
|
|
1755
|
-
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
1756
|
-
"div",
|
|
1757
|
-
{
|
|
1758
|
-
ref,
|
|
1759
|
-
className: cn(thinkIndicatorVariants({ variant, size }), className, "alq--think-indicator"),
|
|
1760
|
-
...props,
|
|
1761
|
-
children: [
|
|
1762
|
-
loader || /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1763
|
-
Loader,
|
|
1764
|
-
{
|
|
1765
|
-
className: cn(
|
|
1766
|
-
size === "sm" ? "h-3 w-3" : size === "lg" ? "h-5 w-5" : "h-4 w-4"
|
|
1767
|
-
)
|
|
1768
|
-
}
|
|
1769
|
-
),
|
|
1770
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1771
|
-
"div",
|
|
1772
|
-
{
|
|
1773
|
-
className: cn(
|
|
1774
|
-
"alq--think-indicator-text",
|
|
1775
|
-
"transition-all duration-300",
|
|
1776
|
-
isAnimating ? "opacity-0 -translate-y-2" : "opacity-100 translate-y-0"
|
|
1777
|
-
),
|
|
1778
|
-
children: thoughts[currentThoughtIndex]
|
|
1779
|
-
}
|
|
1780
|
-
)
|
|
1781
|
-
]
|
|
1782
|
-
}
|
|
1783
|
-
);
|
|
1887
|
+
ref,
|
|
1888
|
+
className: cn(
|
|
1889
|
+
"top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",
|
|
1890
|
+
className
|
|
1891
|
+
),
|
|
1892
|
+
...props,
|
|
1893
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
1784
1894
|
}
|
|
1785
|
-
);
|
|
1786
|
-
|
|
1895
|
+
));
|
|
1896
|
+
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
1787
1897
|
|
|
1788
1898
|
// src/components/molecules/sidebar.tsx
|
|
1789
|
-
var
|
|
1899
|
+
var React28 = __toESM(require("react"));
|
|
1900
|
+
var import_class_variance_authority10 = require("class-variance-authority");
|
|
1901
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
1790
1902
|
var sidebarVariants = (0, import_class_variance_authority10.cva)(
|
|
1791
1903
|
"flex flex-col border-r",
|
|
1792
1904
|
{
|
|
@@ -1802,7 +1914,7 @@ var sidebarVariants = (0, import_class_variance_authority10.cva)(
|
|
|
1802
1914
|
}
|
|
1803
1915
|
}
|
|
1804
1916
|
);
|
|
1805
|
-
var SidebarFooter =
|
|
1917
|
+
var SidebarFooter = React28.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
1806
1918
|
"div",
|
|
1807
1919
|
{
|
|
1808
1920
|
ref,
|
|
@@ -1812,7 +1924,7 @@ var SidebarFooter = React27.forwardRef(({ className, children, ...props }, ref)
|
|
|
1812
1924
|
}
|
|
1813
1925
|
));
|
|
1814
1926
|
SidebarFooter.displayName = "SidebarFooter";
|
|
1815
|
-
var Sidebar =
|
|
1927
|
+
var Sidebar = React28.forwardRef(
|
|
1816
1928
|
({
|
|
1817
1929
|
className,
|
|
1818
1930
|
items,
|
|
@@ -1825,8 +1937,8 @@ var Sidebar = React27.forwardRef(
|
|
|
1825
1937
|
buttonClassName,
|
|
1826
1938
|
...props
|
|
1827
1939
|
}, ref) => {
|
|
1828
|
-
return /* @__PURE__ */ (0,
|
|
1829
|
-
/* @__PURE__ */ (0,
|
|
1940
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: cn(className, "alq--navigation-sidebar h-full"), ref, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("aside", { className: cn(sidebarVariants({ size }), "h-full"), children: [
|
|
1941
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ScrollArea, { className: "flex-grow justify-between", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "flex flex-col gap-2 p-4", children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
1830
1942
|
Button,
|
|
1831
1943
|
{
|
|
1832
1944
|
variant: selectedSection?.name === item.name ? selectedVariant : defaultVariant,
|
|
@@ -1838,13 +1950,13 @@ var Sidebar = React27.forwardRef(
|
|
|
1838
1950
|
}
|
|
1839
1951
|
},
|
|
1840
1952
|
children: [
|
|
1841
|
-
item.icon && /* @__PURE__ */ (0,
|
|
1953
|
+
item.icon && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(item.icon, { className: "mr-2 h-4 w-4" }),
|
|
1842
1954
|
item.name
|
|
1843
1955
|
]
|
|
1844
1956
|
},
|
|
1845
1957
|
item.name
|
|
1846
1958
|
)) }) }),
|
|
1847
|
-
footerContent && /* @__PURE__ */ (0,
|
|
1959
|
+
footerContent && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SidebarFooter, { children: footerContent })
|
|
1848
1960
|
] }) });
|
|
1849
1961
|
}
|
|
1850
1962
|
);
|
|
@@ -1852,10 +1964,10 @@ var Sidebar = React27.forwardRef(
|
|
|
1852
1964
|
// src/components/molecules/sonner.tsx
|
|
1853
1965
|
var import_next_themes = require("next-themes");
|
|
1854
1966
|
var import_sonner = require("sonner");
|
|
1855
|
-
var
|
|
1967
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
1856
1968
|
var Toaster = ({ ...props }) => {
|
|
1857
1969
|
const { theme = "system" } = (0, import_next_themes.useTheme)();
|
|
1858
|
-
return /* @__PURE__ */ (0,
|
|
1970
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
1859
1971
|
import_sonner.Toaster,
|
|
1860
1972
|
{
|
|
1861
1973
|
theme,
|
|
@@ -1874,14 +1986,14 @@ var Toaster = ({ ...props }) => {
|
|
|
1874
1986
|
};
|
|
1875
1987
|
|
|
1876
1988
|
// src/components/molecules/rating-stars.tsx
|
|
1877
|
-
var
|
|
1989
|
+
var React29 = __toESM(require("react"));
|
|
1878
1990
|
var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"));
|
|
1879
1991
|
var import_lucide_react10 = require("lucide-react");
|
|
1880
|
-
var
|
|
1992
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
1881
1993
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
1882
1994
|
var Tooltip = TooltipPrimitive.Root;
|
|
1883
1995
|
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
1884
|
-
var TooltipContent =
|
|
1996
|
+
var TooltipContent = React29.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
1885
1997
|
TooltipPrimitive.Content,
|
|
1886
1998
|
{
|
|
1887
1999
|
ref,
|
|
@@ -1894,14 +2006,14 @@ var TooltipContent = React28.forwardRef(({ className, sideOffset = 4, ...props }
|
|
|
1894
2006
|
}
|
|
1895
2007
|
));
|
|
1896
2008
|
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
1897
|
-
var StarRating =
|
|
2009
|
+
var StarRating = React29.forwardRef(({ rating, onRate }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { ref, className: "flex", children: [1, 2, 3, 4, 5].map((star) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
1898
2010
|
Button,
|
|
1899
2011
|
{
|
|
1900
2012
|
onClick: () => onRate(star),
|
|
1901
2013
|
variant: "link",
|
|
1902
2014
|
className: "p-1 transition-colors [&_svg]:size-5 h-5",
|
|
1903
2015
|
"aria-label": `Rate ${star} star${star !== 1 ? "s" : ""}`,
|
|
1904
|
-
children: /* @__PURE__ */ (0,
|
|
2016
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
1905
2017
|
import_lucide_react10.Star,
|
|
1906
2018
|
{
|
|
1907
2019
|
className: cn(
|
|
@@ -1914,19 +2026,19 @@ var StarRating = React28.forwardRef(({ rating, onRate }, ref) => /* @__PURE__ */
|
|
|
1914
2026
|
star
|
|
1915
2027
|
)) }));
|
|
1916
2028
|
StarRating.displayName = "StarRating";
|
|
1917
|
-
var RatingStars =
|
|
2029
|
+
var RatingStars = React29.forwardRef(({
|
|
1918
2030
|
currentRating = 0,
|
|
1919
2031
|
onRate,
|
|
1920
2032
|
className,
|
|
1921
2033
|
isLoading
|
|
1922
2034
|
}, ref) => {
|
|
1923
|
-
const [open, setOpen] =
|
|
1924
|
-
const [animate, setAnimate] =
|
|
2035
|
+
const [open, setOpen] = React29.useState(false);
|
|
2036
|
+
const [animate, setAnimate] = React29.useState(false);
|
|
1925
2037
|
const handleRate = (rating) => {
|
|
1926
2038
|
onRate(rating);
|
|
1927
2039
|
setOpen(false);
|
|
1928
2040
|
};
|
|
1929
|
-
|
|
2041
|
+
React29.useEffect(() => {
|
|
1930
2042
|
if (currentRating > 0) {
|
|
1931
2043
|
setAnimate(true);
|
|
1932
2044
|
const timer = setTimeout(() => setAnimate(false), 150);
|
|
@@ -1934,8 +2046,8 @@ var RatingStars = React28.forwardRef(({
|
|
|
1934
2046
|
}
|
|
1935
2047
|
}, [currentRating]);
|
|
1936
2048
|
const hasRated = currentRating > 0;
|
|
1937
|
-
return /* @__PURE__ */ (0,
|
|
1938
|
-
/* @__PURE__ */ (0,
|
|
2049
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(Tooltip, { open, onOpenChange: setOpen, children: [
|
|
2050
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
1939
2051
|
Button,
|
|
1940
2052
|
{
|
|
1941
2053
|
ref,
|
|
@@ -1946,7 +2058,7 @@ var RatingStars = React28.forwardRef(({
|
|
|
1946
2058
|
),
|
|
1947
2059
|
disabled: isLoading,
|
|
1948
2060
|
onClick: () => setOpen(!open),
|
|
1949
|
-
children: /* @__PURE__ */ (0,
|
|
2061
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
1950
2062
|
import_lucide_react10.Star,
|
|
1951
2063
|
{
|
|
1952
2064
|
className: cn(
|
|
@@ -1959,7 +2071,7 @@ var RatingStars = React28.forwardRef(({
|
|
|
1959
2071
|
)
|
|
1960
2072
|
}
|
|
1961
2073
|
) }),
|
|
1962
|
-
/* @__PURE__ */ (0,
|
|
2074
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(TooltipContent, { side: "top", align: "center", className: "p-0", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "p-2 bg-background", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
1963
2075
|
StarRating,
|
|
1964
2076
|
{
|
|
1965
2077
|
rating: currentRating,
|
|
@@ -1971,10 +2083,10 @@ var RatingStars = React28.forwardRef(({
|
|
|
1971
2083
|
RatingStars.displayName = "RatingStars";
|
|
1972
2084
|
|
|
1973
2085
|
// src/components/molecules/rating-thumbs.tsx
|
|
1974
|
-
var
|
|
2086
|
+
var React30 = __toESM(require("react"));
|
|
1975
2087
|
var import_lucide_react11 = require("lucide-react");
|
|
1976
|
-
var
|
|
1977
|
-
var RatingThumbs =
|
|
2088
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
2089
|
+
var RatingThumbs = React30.forwardRef(
|
|
1978
2090
|
({
|
|
1979
2091
|
currentRating,
|
|
1980
2092
|
onRate,
|
|
@@ -1982,15 +2094,15 @@ var RatingThumbs = React29.forwardRef(
|
|
|
1982
2094
|
className,
|
|
1983
2095
|
isLoading
|
|
1984
2096
|
}, ref) => {
|
|
1985
|
-
const [animate, setAnimate] =
|
|
1986
|
-
|
|
2097
|
+
const [animate, setAnimate] = React30.useState(false);
|
|
2098
|
+
React30.useEffect(() => {
|
|
1987
2099
|
if (currentRating) {
|
|
1988
2100
|
setAnimate(true);
|
|
1989
2101
|
const timer = setTimeout(() => setAnimate(false), 150);
|
|
1990
2102
|
return () => clearTimeout(timer);
|
|
1991
2103
|
}
|
|
1992
2104
|
}, [currentRating]);
|
|
1993
|
-
return /* @__PURE__ */ (0,
|
|
2105
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
1994
2106
|
"div",
|
|
1995
2107
|
{
|
|
1996
2108
|
ref,
|
|
@@ -2001,7 +2113,7 @@ var RatingThumbs = React29.forwardRef(
|
|
|
2001
2113
|
className
|
|
2002
2114
|
),
|
|
2003
2115
|
children: [
|
|
2004
|
-
/* @__PURE__ */ (0,
|
|
2116
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
2005
2117
|
Button,
|
|
2006
2118
|
{
|
|
2007
2119
|
variant: "link",
|
|
@@ -2012,7 +2124,7 @@ var RatingThumbs = React29.forwardRef(
|
|
|
2012
2124
|
),
|
|
2013
2125
|
"aria-label": "Thumbs up",
|
|
2014
2126
|
disabled: isLoading,
|
|
2015
|
-
children: /* @__PURE__ */ (0,
|
|
2127
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
2016
2128
|
import_lucide_react11.ThumbsUp,
|
|
2017
2129
|
{
|
|
2018
2130
|
className: cn(
|
|
@@ -2025,7 +2137,7 @@ var RatingThumbs = React29.forwardRef(
|
|
|
2025
2137
|
)
|
|
2026
2138
|
}
|
|
2027
2139
|
),
|
|
2028
|
-
/* @__PURE__ */ (0,
|
|
2140
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
2029
2141
|
Button,
|
|
2030
2142
|
{
|
|
2031
2143
|
variant: "link",
|
|
@@ -2036,7 +2148,7 @@ var RatingThumbs = React29.forwardRef(
|
|
|
2036
2148
|
),
|
|
2037
2149
|
"aria-label": "Thumbs down",
|
|
2038
2150
|
disabled: isLoading,
|
|
2039
|
-
children: /* @__PURE__ */ (0,
|
|
2151
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
2040
2152
|
import_lucide_react11.ThumbsDown,
|
|
2041
2153
|
{
|
|
2042
2154
|
className: cn(
|
|
@@ -2057,30 +2169,30 @@ var RatingThumbs = React29.forwardRef(
|
|
|
2057
2169
|
RatingThumbs.displayName = "RatingThumbs";
|
|
2058
2170
|
|
|
2059
2171
|
// src/components/molecules/rating-comment.tsx
|
|
2060
|
-
var
|
|
2172
|
+
var React31 = __toESM(require("react"));
|
|
2061
2173
|
var import_lucide_react12 = require("lucide-react");
|
|
2062
|
-
var
|
|
2063
|
-
var RatingComment =
|
|
2174
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
2175
|
+
var RatingComment = React31.forwardRef(
|
|
2064
2176
|
({ currentRating, onRate, className, isLoading }, ref) => {
|
|
2065
|
-
const [open, setOpen] =
|
|
2066
|
-
const [comment, setComment] =
|
|
2067
|
-
const [animate, setAnimate] =
|
|
2177
|
+
const [open, setOpen] = React31.useState(false);
|
|
2178
|
+
const [comment, setComment] = React31.useState("");
|
|
2179
|
+
const [animate, setAnimate] = React31.useState(false);
|
|
2068
2180
|
const handleRate = () => {
|
|
2069
2181
|
onRate(comment);
|
|
2070
2182
|
setOpen(false);
|
|
2071
2183
|
};
|
|
2072
|
-
|
|
2184
|
+
React31.useEffect(() => {
|
|
2073
2185
|
if (currentRating) {
|
|
2074
2186
|
setAnimate(true);
|
|
2075
2187
|
const timer = setTimeout(() => setAnimate(false), 150);
|
|
2076
2188
|
return () => clearTimeout(timer);
|
|
2077
2189
|
}
|
|
2078
2190
|
}, [currentRating]);
|
|
2079
|
-
|
|
2191
|
+
React31.useEffect(() => {
|
|
2080
2192
|
setComment("");
|
|
2081
2193
|
}, [open]);
|
|
2082
|
-
return /* @__PURE__ */ (0,
|
|
2083
|
-
/* @__PURE__ */ (0,
|
|
2194
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(Dialog, { open, onOpenChange: setOpen, children: [
|
|
2195
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(DialogTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
2084
2196
|
Button,
|
|
2085
2197
|
{
|
|
2086
2198
|
ref,
|
|
@@ -2091,7 +2203,7 @@ var RatingComment = React30.forwardRef(
|
|
|
2091
2203
|
className
|
|
2092
2204
|
),
|
|
2093
2205
|
disabled: isLoading,
|
|
2094
|
-
children: /* @__PURE__ */ (0,
|
|
2206
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
2095
2207
|
import_lucide_react12.Book,
|
|
2096
2208
|
{
|
|
2097
2209
|
className: cn(
|
|
@@ -2104,10 +2216,10 @@ var RatingComment = React30.forwardRef(
|
|
|
2104
2216
|
)
|
|
2105
2217
|
}
|
|
2106
2218
|
) }),
|
|
2107
|
-
/* @__PURE__ */ (0,
|
|
2108
|
-
/* @__PURE__ */ (0,
|
|
2109
|
-
/* @__PURE__ */ (0,
|
|
2110
|
-
/* @__PURE__ */ (0,
|
|
2219
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(DialogOverlay, { className: "fixed inset-0 bg-black bg-opacity-50" }),
|
|
2220
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(DialogContent, { "aria-describedby": void 0, children: [
|
|
2221
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(DialogTitle, { className: "text-lg font-medium", children: "Deja un comentario" }),
|
|
2222
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
2111
2223
|
"textarea",
|
|
2112
2224
|
{
|
|
2113
2225
|
className: "mt-4 w-full p-2 border rounded-md focus:outline-none focus:ring-2 focus:ring-primary",
|
|
@@ -2116,7 +2228,7 @@ var RatingComment = React30.forwardRef(
|
|
|
2116
2228
|
onChange: (e) => setComment(e.target.value)
|
|
2117
2229
|
}
|
|
2118
2230
|
),
|
|
2119
|
-
/* @__PURE__ */ (0,
|
|
2231
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "mt-4 flex justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
2120
2232
|
Button,
|
|
2121
2233
|
{
|
|
2122
2234
|
onClick: handleRate,
|
|
@@ -2131,27 +2243,27 @@ var RatingComment = React30.forwardRef(
|
|
|
2131
2243
|
RatingComment.displayName = "RatingComment";
|
|
2132
2244
|
|
|
2133
2245
|
// src/components/molecules/call-out.tsx
|
|
2134
|
-
var
|
|
2246
|
+
var React32 = __toESM(require("react"));
|
|
2135
2247
|
|
|
2136
2248
|
// src/components/hooks/use-text-streaming.ts
|
|
2137
|
-
var
|
|
2249
|
+
var import_react6 = require("react");
|
|
2138
2250
|
var CHAR_DELAY = 25;
|
|
2139
2251
|
var PUNCTUATION_DELAY = 200;
|
|
2140
2252
|
var PUNCTUATION_MARKS = [".", "!", "?", ";", ":"];
|
|
2141
2253
|
function useTextStreaming(content, shouldStream, handleIsTextStreaming) {
|
|
2142
|
-
const [displayedContent, setDisplayedContent] = (0,
|
|
2143
|
-
const timeoutId = (0,
|
|
2144
|
-
const hasStartedStreaming = (0,
|
|
2254
|
+
const [displayedContent, setDisplayedContent] = (0, import_react6.useState)("");
|
|
2255
|
+
const timeoutId = (0, import_react6.useRef)(null);
|
|
2256
|
+
const hasStartedStreaming = (0, import_react6.useRef)(false);
|
|
2145
2257
|
const getDelayForChar = (text, position) => {
|
|
2146
2258
|
if (position === 0) return CHAR_DELAY;
|
|
2147
|
-
const previousChar = text[position - 1];
|
|
2259
|
+
const previousChar = text[position - 1] || "";
|
|
2148
2260
|
const isEllipsis = text.slice(position - 1, position + 2) === "...";
|
|
2149
2261
|
if (isEllipsis) {
|
|
2150
2262
|
return CHAR_DELAY;
|
|
2151
2263
|
}
|
|
2152
2264
|
return PUNCTUATION_MARKS.includes(previousChar) ? PUNCTUATION_DELAY : CHAR_DELAY;
|
|
2153
2265
|
};
|
|
2154
|
-
(0,
|
|
2266
|
+
(0, import_react6.useEffect)(() => {
|
|
2155
2267
|
if (!shouldStream && !hasStartedStreaming.current) {
|
|
2156
2268
|
setDisplayedContent(content);
|
|
2157
2269
|
handleIsTextStreaming?.(false);
|
|
@@ -2181,9 +2293,9 @@ function useTextStreaming(content, shouldStream, handleIsTextStreaming) {
|
|
|
2181
2293
|
}
|
|
2182
2294
|
|
|
2183
2295
|
// src/components/molecules/call-out.tsx
|
|
2184
|
-
var
|
|
2185
|
-
var CallOut =
|
|
2186
|
-
return /* @__PURE__ */ (0,
|
|
2296
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
2297
|
+
var CallOut = React32.forwardRef(({ className, children, role, ...props }, ref) => {
|
|
2298
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2187
2299
|
"div",
|
|
2188
2300
|
{
|
|
2189
2301
|
ref,
|
|
@@ -2194,8 +2306,8 @@ var CallOut = React31.forwardRef(({ className, children, role, ...props }, ref)
|
|
|
2194
2306
|
}
|
|
2195
2307
|
);
|
|
2196
2308
|
});
|
|
2197
|
-
var CallOutDate =
|
|
2198
|
-
return /* @__PURE__ */ (0,
|
|
2309
|
+
var CallOutDate = React32.forwardRef(({ className, children, ...props }, ref) => {
|
|
2310
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2199
2311
|
"div",
|
|
2200
2312
|
{
|
|
2201
2313
|
ref,
|
|
@@ -2209,13 +2321,13 @@ var CallOutDate = React31.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
2209
2321
|
}
|
|
2210
2322
|
);
|
|
2211
2323
|
});
|
|
2212
|
-
var CallOutActions =
|
|
2213
|
-
const [isLoading, setIsLoading] =
|
|
2214
|
-
const [isClicked, setIsClicked] =
|
|
2324
|
+
var CallOutActions = React32.forwardRef(({ className, actions, role, message, ...props }, ref) => {
|
|
2325
|
+
const [isLoading, setIsLoading] = React32.useState(false);
|
|
2326
|
+
const [isClicked, setIsClicked] = React32.useState(false);
|
|
2215
2327
|
if (role === "user") {
|
|
2216
2328
|
return null;
|
|
2217
2329
|
}
|
|
2218
|
-
return /* @__PURE__ */ (0,
|
|
2330
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { ref, className: cn("alq--callout-actions", className), ...props, children: actions.map((action) => /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
2219
2331
|
"button",
|
|
2220
2332
|
{
|
|
2221
2333
|
className: cn(
|
|
@@ -2237,7 +2349,7 @@ var CallOutActions = React31.forwardRef(({ className, actions, role, message, ..
|
|
|
2237
2349
|
});
|
|
2238
2350
|
},
|
|
2239
2351
|
children: [
|
|
2240
|
-
/* @__PURE__ */ (0,
|
|
2352
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2241
2353
|
"span",
|
|
2242
2354
|
{
|
|
2243
2355
|
className: cn("alq-action-icon-wrapper", {
|
|
@@ -2246,18 +2358,18 @@ var CallOutActions = React31.forwardRef(({ className, actions, role, message, ..
|
|
|
2246
2358
|
children: action.icon
|
|
2247
2359
|
}
|
|
2248
2360
|
),
|
|
2249
|
-
/* @__PURE__ */ (0,
|
|
2361
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("label", { children: action.label })
|
|
2250
2362
|
]
|
|
2251
2363
|
},
|
|
2252
2364
|
action.label
|
|
2253
2365
|
)) });
|
|
2254
2366
|
});
|
|
2255
|
-
var CallOutResponse =
|
|
2367
|
+
var CallOutResponse = React32.forwardRef(
|
|
2256
2368
|
({ className, children, role, additionalInfo, isStreaming, handleIsTextStreaming, ...props }, ref) => {
|
|
2257
2369
|
const content = String(children || "");
|
|
2258
2370
|
const shouldStream = role === "assistant" && isStreaming;
|
|
2259
2371
|
const displayedContent = useTextStreaming(content, shouldStream ?? false, handleIsTextStreaming);
|
|
2260
|
-
return /* @__PURE__ */ (0,
|
|
2372
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
2261
2373
|
"div",
|
|
2262
2374
|
{
|
|
2263
2375
|
ref,
|
|
@@ -2270,8 +2382,8 @@ var CallOutResponse = React31.forwardRef(
|
|
|
2270
2382
|
),
|
|
2271
2383
|
...props,
|
|
2272
2384
|
children: [
|
|
2273
|
-
/* @__PURE__ */ (0,
|
|
2274
|
-
additionalInfo && /* @__PURE__ */ (0,
|
|
2385
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(RichText, { content: displayedContent }),
|
|
2386
|
+
additionalInfo && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2275
2387
|
"div",
|
|
2276
2388
|
{
|
|
2277
2389
|
className: cn(
|