@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
|
@@ -175,300 +175,16 @@ var AlertDialogCancel = React2.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
175
175
|
));
|
|
176
176
|
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
177
177
|
|
|
178
|
-
// src/components/molecules/
|
|
179
|
-
import * as
|
|
180
|
-
import
|
|
181
|
-
import { ArrowLeft, ArrowRight } from "lucide-react";
|
|
182
|
-
import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
183
|
-
var CarouselContext = React3.createContext(null);
|
|
184
|
-
function useCarousel() {
|
|
185
|
-
const context = React3.useContext(CarouselContext);
|
|
186
|
-
if (!context) {
|
|
187
|
-
throw new Error("useCarousel must be used within a <Carousel />");
|
|
188
|
-
}
|
|
189
|
-
return context;
|
|
190
|
-
}
|
|
191
|
-
var Carousel = React3.forwardRef(
|
|
192
|
-
({
|
|
193
|
-
orientation = "horizontal",
|
|
194
|
-
opts,
|
|
195
|
-
setApi,
|
|
196
|
-
plugins,
|
|
197
|
-
className,
|
|
198
|
-
children,
|
|
199
|
-
...props
|
|
200
|
-
}, ref) => {
|
|
201
|
-
const [carouselRef, api] = useEmblaCarousel(
|
|
202
|
-
{
|
|
203
|
-
...opts,
|
|
204
|
-
axis: orientation === "horizontal" ? "x" : "y"
|
|
205
|
-
},
|
|
206
|
-
plugins
|
|
207
|
-
);
|
|
208
|
-
const [canScrollPrev, setCanScrollPrev] = React3.useState(false);
|
|
209
|
-
const [canScrollNext, setCanScrollNext] = React3.useState(false);
|
|
210
|
-
const onSelect = React3.useCallback((api2) => {
|
|
211
|
-
if (!api2) {
|
|
212
|
-
return;
|
|
213
|
-
}
|
|
214
|
-
setCanScrollPrev(api2.canScrollPrev());
|
|
215
|
-
setCanScrollNext(api2.canScrollNext());
|
|
216
|
-
}, []);
|
|
217
|
-
const scrollPrev = React3.useCallback(() => {
|
|
218
|
-
api?.scrollPrev();
|
|
219
|
-
}, [api]);
|
|
220
|
-
const scrollNext = React3.useCallback(() => {
|
|
221
|
-
api?.scrollNext();
|
|
222
|
-
}, [api]);
|
|
223
|
-
const handleKeyDown = React3.useCallback(
|
|
224
|
-
(event) => {
|
|
225
|
-
if (event.key === "ArrowLeft") {
|
|
226
|
-
event.preventDefault();
|
|
227
|
-
scrollPrev();
|
|
228
|
-
} else if (event.key === "ArrowRight") {
|
|
229
|
-
event.preventDefault();
|
|
230
|
-
scrollNext();
|
|
231
|
-
}
|
|
232
|
-
},
|
|
233
|
-
[scrollPrev, scrollNext]
|
|
234
|
-
);
|
|
235
|
-
React3.useEffect(() => {
|
|
236
|
-
if (!api || !setApi) {
|
|
237
|
-
return;
|
|
238
|
-
}
|
|
239
|
-
setApi(api);
|
|
240
|
-
}, [api, setApi]);
|
|
241
|
-
React3.useEffect(() => {
|
|
242
|
-
if (!api) {
|
|
243
|
-
return;
|
|
244
|
-
}
|
|
245
|
-
onSelect(api);
|
|
246
|
-
api.on("reInit", onSelect);
|
|
247
|
-
api.on("select", onSelect);
|
|
248
|
-
return () => {
|
|
249
|
-
api?.off("select", onSelect);
|
|
250
|
-
};
|
|
251
|
-
}, [api, onSelect]);
|
|
252
|
-
return /* @__PURE__ */ jsx4(
|
|
253
|
-
CarouselContext.Provider,
|
|
254
|
-
{
|
|
255
|
-
value: {
|
|
256
|
-
carouselRef,
|
|
257
|
-
api,
|
|
258
|
-
opts,
|
|
259
|
-
orientation: orientation || (opts?.axis === "y" ? "vertical" : "horizontal"),
|
|
260
|
-
scrollPrev,
|
|
261
|
-
scrollNext,
|
|
262
|
-
canScrollPrev,
|
|
263
|
-
canScrollNext
|
|
264
|
-
},
|
|
265
|
-
children: /* @__PURE__ */ jsx4(
|
|
266
|
-
"div",
|
|
267
|
-
{
|
|
268
|
-
ref,
|
|
269
|
-
onKeyDownCapture: handleKeyDown,
|
|
270
|
-
className: cn("relative", className),
|
|
271
|
-
role: "region",
|
|
272
|
-
"aria-roledescription": "carousel",
|
|
273
|
-
...props,
|
|
274
|
-
children
|
|
275
|
-
}
|
|
276
|
-
)
|
|
277
|
-
}
|
|
278
|
-
);
|
|
279
|
-
}
|
|
280
|
-
);
|
|
281
|
-
Carousel.displayName = "Carousel";
|
|
282
|
-
var CarouselContent = React3.forwardRef(({ className, ...props }, ref) => {
|
|
283
|
-
const { carouselRef, orientation } = useCarousel();
|
|
284
|
-
return /* @__PURE__ */ jsx4("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ jsx4(
|
|
285
|
-
"div",
|
|
286
|
-
{
|
|
287
|
-
ref,
|
|
288
|
-
className: cn(
|
|
289
|
-
"flex",
|
|
290
|
-
orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col",
|
|
291
|
-
className
|
|
292
|
-
),
|
|
293
|
-
...props
|
|
294
|
-
}
|
|
295
|
-
) });
|
|
296
|
-
});
|
|
297
|
-
CarouselContent.displayName = "CarouselContent";
|
|
298
|
-
var CarouselItem = React3.forwardRef(({ className, ...props }, ref) => {
|
|
299
|
-
const { orientation } = useCarousel();
|
|
300
|
-
return /* @__PURE__ */ jsx4(
|
|
301
|
-
"div",
|
|
302
|
-
{
|
|
303
|
-
ref,
|
|
304
|
-
role: "group",
|
|
305
|
-
"aria-roledescription": "slide",
|
|
306
|
-
className: cn(
|
|
307
|
-
"min-w-0 shrink-0 grow-0 basis-full",
|
|
308
|
-
orientation === "horizontal" ? "pl-4" : "pt-4",
|
|
309
|
-
className
|
|
310
|
-
),
|
|
311
|
-
...props
|
|
312
|
-
}
|
|
313
|
-
);
|
|
314
|
-
});
|
|
315
|
-
CarouselItem.displayName = "CarouselItem";
|
|
316
|
-
var CarouselPrevious = React3.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
317
|
-
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
318
|
-
return /* @__PURE__ */ jsxs2(
|
|
319
|
-
Button,
|
|
320
|
-
{
|
|
321
|
-
ref,
|
|
322
|
-
variant,
|
|
323
|
-
size,
|
|
324
|
-
className: cn(
|
|
325
|
-
"absolute h-8 w-8 rounded-full",
|
|
326
|
-
orientation === "horizontal" ? "-left-12 top-1/2 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
327
|
-
className
|
|
328
|
-
),
|
|
329
|
-
disabled: !canScrollPrev,
|
|
330
|
-
onClick: scrollPrev,
|
|
331
|
-
...props,
|
|
332
|
-
children: [
|
|
333
|
-
/* @__PURE__ */ jsx4(ArrowLeft, { className: "h-4 w-4" }),
|
|
334
|
-
/* @__PURE__ */ jsx4("span", { className: "sr-only", children: "Previous slide" })
|
|
335
|
-
]
|
|
336
|
-
}
|
|
337
|
-
);
|
|
338
|
-
});
|
|
339
|
-
CarouselPrevious.displayName = "CarouselPrevious";
|
|
340
|
-
var CarouselNext = React3.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
341
|
-
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
342
|
-
return /* @__PURE__ */ jsxs2(
|
|
343
|
-
Button,
|
|
344
|
-
{
|
|
345
|
-
ref,
|
|
346
|
-
variant,
|
|
347
|
-
size,
|
|
348
|
-
className: cn(
|
|
349
|
-
"absolute h-8 w-8 rounded-full",
|
|
350
|
-
orientation === "horizontal" ? "-right-12 top-1/2 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
351
|
-
className
|
|
352
|
-
),
|
|
353
|
-
disabled: !canScrollNext,
|
|
354
|
-
onClick: scrollNext,
|
|
355
|
-
...props,
|
|
356
|
-
children: [
|
|
357
|
-
/* @__PURE__ */ jsx4(ArrowRight, { className: "h-4 w-4" }),
|
|
358
|
-
/* @__PURE__ */ jsx4("span", { className: "sr-only", children: "Next slide" })
|
|
359
|
-
]
|
|
360
|
-
}
|
|
361
|
-
);
|
|
362
|
-
});
|
|
363
|
-
CarouselNext.displayName = "CarouselNext";
|
|
364
|
-
|
|
365
|
-
// src/components/molecules/navigation-menu.tsx
|
|
366
|
-
import * as React4 from "react";
|
|
367
|
-
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
|
368
|
-
import { cva as cva2 } from "class-variance-authority";
|
|
369
|
-
import { ChevronDown } from "lucide-react";
|
|
370
|
-
import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
371
|
-
var NavigationMenu = React4.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs3(
|
|
372
|
-
NavigationMenuPrimitive.Root,
|
|
373
|
-
{
|
|
374
|
-
ref,
|
|
375
|
-
className: cn(
|
|
376
|
-
"relative z-10 flex max-w-max flex-1 items-center justify-center",
|
|
377
|
-
className
|
|
378
|
-
),
|
|
379
|
-
...props,
|
|
380
|
-
children: [
|
|
381
|
-
children,
|
|
382
|
-
/* @__PURE__ */ jsx5(NavigationMenuViewport, {})
|
|
383
|
-
]
|
|
384
|
-
}
|
|
385
|
-
));
|
|
386
|
-
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
387
|
-
var NavigationMenuList = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx5(
|
|
388
|
-
NavigationMenuPrimitive.List,
|
|
389
|
-
{
|
|
390
|
-
ref,
|
|
391
|
-
className: cn(
|
|
392
|
-
"group flex flex-1 list-none items-center justify-center space-x-1",
|
|
393
|
-
className
|
|
394
|
-
),
|
|
395
|
-
...props
|
|
396
|
-
}
|
|
397
|
-
));
|
|
398
|
-
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
399
|
-
var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
400
|
-
var navigationMenuTriggerStyle = cva2(
|
|
401
|
-
"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"
|
|
402
|
-
);
|
|
403
|
-
var NavigationMenuTrigger = React4.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs3(
|
|
404
|
-
NavigationMenuPrimitive.Trigger,
|
|
405
|
-
{
|
|
406
|
-
ref,
|
|
407
|
-
className: cn(navigationMenuTriggerStyle(), "group", className),
|
|
408
|
-
...props,
|
|
409
|
-
children: [
|
|
410
|
-
children,
|
|
411
|
-
" ",
|
|
412
|
-
/* @__PURE__ */ jsx5(
|
|
413
|
-
ChevronDown,
|
|
414
|
-
{
|
|
415
|
-
className: "relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180",
|
|
416
|
-
"aria-hidden": "true"
|
|
417
|
-
}
|
|
418
|
-
)
|
|
419
|
-
]
|
|
420
|
-
}
|
|
421
|
-
));
|
|
422
|
-
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
423
|
-
var NavigationMenuContent = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx5(
|
|
424
|
-
NavigationMenuPrimitive.Content,
|
|
425
|
-
{
|
|
426
|
-
ref,
|
|
427
|
-
className: cn(
|
|
428
|
-
"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 ",
|
|
429
|
-
className
|
|
430
|
-
),
|
|
431
|
-
...props
|
|
432
|
-
}
|
|
433
|
-
));
|
|
434
|
-
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
435
|
-
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
436
|
-
var NavigationMenuViewport = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx5("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsx5(
|
|
437
|
-
NavigationMenuPrimitive.Viewport,
|
|
438
|
-
{
|
|
439
|
-
className: cn(
|
|
440
|
-
"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)]",
|
|
441
|
-
className
|
|
442
|
-
),
|
|
443
|
-
ref,
|
|
444
|
-
...props
|
|
445
|
-
}
|
|
446
|
-
) }));
|
|
447
|
-
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
448
|
-
var NavigationMenuIndicator = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx5(
|
|
449
|
-
NavigationMenuPrimitive.Indicator,
|
|
450
|
-
{
|
|
451
|
-
ref,
|
|
452
|
-
className: cn(
|
|
453
|
-
"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",
|
|
454
|
-
className
|
|
455
|
-
),
|
|
456
|
-
...props,
|
|
457
|
-
children: /* @__PURE__ */ jsx5("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
458
|
-
}
|
|
459
|
-
));
|
|
460
|
-
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
461
|
-
|
|
462
|
-
// src/components/molecules/sidebar.tsx
|
|
463
|
-
import * as React27 from "react";
|
|
464
|
-
import { cva as cva10 } from "class-variance-authority";
|
|
178
|
+
// src/components/molecules/assistant-button.tsx
|
|
179
|
+
import * as React25 from "react";
|
|
180
|
+
import { useState as useState3 } from "react";
|
|
465
181
|
|
|
466
182
|
// src/components/atoms/ui/textarea.tsx
|
|
467
|
-
import * as
|
|
468
|
-
import { jsx as
|
|
469
|
-
var Textarea =
|
|
183
|
+
import * as React3 from "react";
|
|
184
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
185
|
+
var Textarea = React3.forwardRef(
|
|
470
186
|
({ className, ...props }, ref) => {
|
|
471
|
-
return /* @__PURE__ */
|
|
187
|
+
return /* @__PURE__ */ jsx4(
|
|
472
188
|
"textarea",
|
|
473
189
|
{
|
|
474
190
|
className: cn(
|
|
@@ -485,11 +201,11 @@ var Textarea = React5.forwardRef(
|
|
|
485
201
|
Textarea.displayName = "Textarea";
|
|
486
202
|
|
|
487
203
|
// src/components/atoms/ui/input.tsx
|
|
488
|
-
import { forwardRef as
|
|
489
|
-
import { jsx as
|
|
490
|
-
var Input =
|
|
204
|
+
import { forwardRef as forwardRef5 } from "react";
|
|
205
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
206
|
+
var Input = forwardRef5(
|
|
491
207
|
({ className, type, ...props }, ref) => {
|
|
492
|
-
return /* @__PURE__ */
|
|
208
|
+
return /* @__PURE__ */ jsx5(
|
|
493
209
|
"input",
|
|
494
210
|
{
|
|
495
211
|
type,
|
|
@@ -507,11 +223,11 @@ var Input = forwardRef7(
|
|
|
507
223
|
Input.displayName = "Input";
|
|
508
224
|
|
|
509
225
|
// src/components/atoms/ui/select.tsx
|
|
510
|
-
import * as
|
|
226
|
+
import * as React4 from "react";
|
|
511
227
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
512
|
-
import { Check, ChevronDown
|
|
513
|
-
import { jsx as
|
|
514
|
-
var SelectTrigger =
|
|
228
|
+
import { Check, ChevronDown, ChevronUp } from "lucide-react";
|
|
229
|
+
import { jsx as jsx6, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
230
|
+
var SelectTrigger = React4.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs2(
|
|
515
231
|
SelectPrimitive.Trigger,
|
|
516
232
|
{
|
|
517
233
|
ref,
|
|
@@ -523,12 +239,12 @@ var SelectTrigger = React6.forwardRef(({ className, children, ...props }, ref) =
|
|
|
523
239
|
...props,
|
|
524
240
|
children: [
|
|
525
241
|
children,
|
|
526
|
-
/* @__PURE__ */
|
|
242
|
+
/* @__PURE__ */ jsx6(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx6(ChevronDown, { className: "h-4 w-4 opacity-50" }) })
|
|
527
243
|
]
|
|
528
244
|
}
|
|
529
245
|
));
|
|
530
246
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
531
|
-
var SelectScrollUpButton =
|
|
247
|
+
var SelectScrollUpButton = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx6(
|
|
532
248
|
SelectPrimitive.ScrollUpButton,
|
|
533
249
|
{
|
|
534
250
|
ref,
|
|
@@ -537,11 +253,11 @@ var SelectScrollUpButton = React6.forwardRef(({ className, ...props }, ref) => /
|
|
|
537
253
|
className
|
|
538
254
|
),
|
|
539
255
|
...props,
|
|
540
|
-
children: /* @__PURE__ */
|
|
256
|
+
children: /* @__PURE__ */ jsx6(ChevronUp, { className: "h-4 w-4" })
|
|
541
257
|
}
|
|
542
258
|
));
|
|
543
259
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
544
|
-
var SelectScrollDownButton =
|
|
260
|
+
var SelectScrollDownButton = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx6(
|
|
545
261
|
SelectPrimitive.ScrollDownButton,
|
|
546
262
|
{
|
|
547
263
|
ref,
|
|
@@ -550,11 +266,11 @@ var SelectScrollDownButton = React6.forwardRef(({ className, ...props }, ref) =>
|
|
|
550
266
|
className
|
|
551
267
|
),
|
|
552
268
|
...props,
|
|
553
|
-
children: /* @__PURE__ */
|
|
269
|
+
children: /* @__PURE__ */ jsx6(ChevronDown, { className: "h-4 w-4" })
|
|
554
270
|
}
|
|
555
271
|
));
|
|
556
272
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
557
|
-
var SelectContent =
|
|
273
|
+
var SelectContent = React4.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx6(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs2(
|
|
558
274
|
SelectPrimitive.Content,
|
|
559
275
|
{
|
|
560
276
|
ref,
|
|
@@ -566,8 +282,8 @@ var SelectContent = React6.forwardRef(({ className, children, position = "popper
|
|
|
566
282
|
position,
|
|
567
283
|
...props,
|
|
568
284
|
children: [
|
|
569
|
-
/* @__PURE__ */
|
|
570
|
-
/* @__PURE__ */
|
|
285
|
+
/* @__PURE__ */ jsx6(SelectScrollUpButton, {}),
|
|
286
|
+
/* @__PURE__ */ jsx6(
|
|
571
287
|
SelectPrimitive.Viewport,
|
|
572
288
|
{
|
|
573
289
|
className: cn(
|
|
@@ -577,12 +293,12 @@ var SelectContent = React6.forwardRef(({ className, children, position = "popper
|
|
|
577
293
|
children
|
|
578
294
|
}
|
|
579
295
|
),
|
|
580
|
-
/* @__PURE__ */
|
|
296
|
+
/* @__PURE__ */ jsx6(SelectScrollDownButton, {})
|
|
581
297
|
]
|
|
582
298
|
}
|
|
583
299
|
) }));
|
|
584
300
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
585
|
-
var SelectLabel =
|
|
301
|
+
var SelectLabel = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx6(
|
|
586
302
|
SelectPrimitive.Label,
|
|
587
303
|
{
|
|
588
304
|
ref,
|
|
@@ -591,7 +307,7 @@ var SelectLabel = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
591
307
|
}
|
|
592
308
|
));
|
|
593
309
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
594
|
-
var SelectItem =
|
|
310
|
+
var SelectItem = React4.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs2(
|
|
595
311
|
SelectPrimitive.Item,
|
|
596
312
|
{
|
|
597
313
|
ref,
|
|
@@ -601,13 +317,13 @@ var SelectItem = React6.forwardRef(({ className, children, ...props }, ref) => /
|
|
|
601
317
|
),
|
|
602
318
|
...props,
|
|
603
319
|
children: [
|
|
604
|
-
/* @__PURE__ */
|
|
605
|
-
/* @__PURE__ */
|
|
320
|
+
/* @__PURE__ */ jsx6("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx6(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx6(Check, { className: "h-4 w-4" }) }) }),
|
|
321
|
+
/* @__PURE__ */ jsx6(SelectPrimitive.ItemText, { children })
|
|
606
322
|
]
|
|
607
323
|
}
|
|
608
324
|
));
|
|
609
325
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
610
|
-
var SelectSeparator =
|
|
326
|
+
var SelectSeparator = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx6(
|
|
611
327
|
SelectPrimitive.Separator,
|
|
612
328
|
{
|
|
613
329
|
ref,
|
|
@@ -618,10 +334,10 @@ var SelectSeparator = React6.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
618
334
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
619
335
|
|
|
620
336
|
// src/components/atoms/ui/avatar.tsx
|
|
621
|
-
import * as
|
|
337
|
+
import * as React5 from "react";
|
|
622
338
|
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
623
|
-
import { jsx as
|
|
624
|
-
var Avatar =
|
|
339
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
340
|
+
var Avatar = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx7(
|
|
625
341
|
AvatarPrimitive.Root,
|
|
626
342
|
{
|
|
627
343
|
ref,
|
|
@@ -633,7 +349,7 @@ var Avatar = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
633
349
|
}
|
|
634
350
|
));
|
|
635
351
|
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
636
|
-
var AvatarImage =
|
|
352
|
+
var AvatarImage = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx7(
|
|
637
353
|
AvatarPrimitive.Image,
|
|
638
354
|
{
|
|
639
355
|
ref,
|
|
@@ -642,7 +358,7 @@ var AvatarImage = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
642
358
|
}
|
|
643
359
|
));
|
|
644
360
|
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
645
|
-
var AvatarFallback =
|
|
361
|
+
var AvatarFallback = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx7(
|
|
646
362
|
AvatarPrimitive.Fallback,
|
|
647
363
|
{
|
|
648
364
|
ref,
|
|
@@ -656,24 +372,24 @@ var AvatarFallback = React7.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
656
372
|
AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
657
373
|
|
|
658
374
|
// src/components/atoms/ui/scroll-area.tsx
|
|
659
|
-
import * as
|
|
375
|
+
import * as React6 from "react";
|
|
660
376
|
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
661
|
-
import { jsx as
|
|
662
|
-
var ScrollArea =
|
|
377
|
+
import { jsx as jsx8, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
378
|
+
var ScrollArea = React6.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs3(
|
|
663
379
|
ScrollAreaPrimitive.Root,
|
|
664
380
|
{
|
|
665
381
|
ref,
|
|
666
382
|
className: cn("relative overflow-hidden", className),
|
|
667
383
|
...props,
|
|
668
384
|
children: [
|
|
669
|
-
/* @__PURE__ */
|
|
670
|
-
/* @__PURE__ */
|
|
671
|
-
/* @__PURE__ */
|
|
385
|
+
/* @__PURE__ */ jsx8(ScrollAreaPrimitive.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
|
|
386
|
+
/* @__PURE__ */ jsx8(ScrollBar, {}),
|
|
387
|
+
/* @__PURE__ */ jsx8(ScrollAreaPrimitive.Corner, {})
|
|
672
388
|
]
|
|
673
389
|
}
|
|
674
390
|
));
|
|
675
391
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
676
|
-
var ScrollBar =
|
|
392
|
+
var ScrollBar = React6.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx8(
|
|
677
393
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
678
394
|
{
|
|
679
395
|
ref,
|
|
@@ -685,7 +401,7 @@ var ScrollBar = React8.forwardRef(({ className, orientation = "vertical", ...pro
|
|
|
685
401
|
className
|
|
686
402
|
),
|
|
687
403
|
...props,
|
|
688
|
-
children: /* @__PURE__ */
|
|
404
|
+
children: /* @__PURE__ */ jsx8(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
689
405
|
}
|
|
690
406
|
));
|
|
691
407
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
@@ -693,18 +409,18 @@ ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
|
693
409
|
// src/components/atoms/ui/rich-text.tsx
|
|
694
410
|
import ReactMarkdown from "react-markdown";
|
|
695
411
|
import remarkGfm from "remark-gfm";
|
|
696
|
-
import { jsx as
|
|
412
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
697
413
|
function RichText({ content, className }) {
|
|
698
|
-
return /* @__PURE__ */
|
|
414
|
+
return /* @__PURE__ */ jsx9(ReactMarkdown, { className: cn(className), remarkPlugins: [remarkGfm], children: content });
|
|
699
415
|
}
|
|
700
416
|
|
|
701
417
|
// src/components/atoms/ui/skeleton.tsx
|
|
702
|
-
import { jsx as
|
|
418
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
703
419
|
|
|
704
420
|
// src/components/atoms/ui/card.tsx
|
|
705
|
-
import * as
|
|
706
|
-
import { jsx as
|
|
707
|
-
var Card =
|
|
421
|
+
import * as React7 from "react";
|
|
422
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
423
|
+
var Card = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
708
424
|
"div",
|
|
709
425
|
{
|
|
710
426
|
ref,
|
|
@@ -720,7 +436,7 @@ var Card = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ j
|
|
|
720
436
|
}
|
|
721
437
|
));
|
|
722
438
|
Card.displayName = "Card";
|
|
723
|
-
var CardHeader =
|
|
439
|
+
var CardHeader = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
724
440
|
"div",
|
|
725
441
|
{
|
|
726
442
|
ref,
|
|
@@ -729,7 +445,7 @@ var CardHeader = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
729
445
|
}
|
|
730
446
|
));
|
|
731
447
|
CardHeader.displayName = "CardHeader";
|
|
732
|
-
var CardTitle =
|
|
448
|
+
var CardTitle = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
733
449
|
"h3",
|
|
734
450
|
{
|
|
735
451
|
ref,
|
|
@@ -738,7 +454,7 @@ var CardTitle = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
738
454
|
}
|
|
739
455
|
));
|
|
740
456
|
CardTitle.displayName = "CardTitle";
|
|
741
|
-
var CardDescription =
|
|
457
|
+
var CardDescription = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
742
458
|
"p",
|
|
743
459
|
{
|
|
744
460
|
ref,
|
|
@@ -747,9 +463,9 @@ var CardDescription = React9.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
747
463
|
}
|
|
748
464
|
));
|
|
749
465
|
CardDescription.displayName = "CardDescription";
|
|
750
|
-
var CardContent =
|
|
466
|
+
var CardContent = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11("div", { ref, className: cn("p-6 pt-0", className), ...props }));
|
|
751
467
|
CardContent.displayName = "CardContent";
|
|
752
|
-
var CardFooter =
|
|
468
|
+
var CardFooter = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
753
469
|
"div",
|
|
754
470
|
{
|
|
755
471
|
ref,
|
|
@@ -760,13 +476,13 @@ var CardFooter = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
760
476
|
CardFooter.displayName = "CardFooter";
|
|
761
477
|
|
|
762
478
|
// src/components/atoms/ui/drawer.tsx
|
|
763
|
-
import * as
|
|
479
|
+
import * as React8 from "react";
|
|
764
480
|
import { Drawer as DrawerPrimitive } from "vaul";
|
|
765
|
-
import { jsx as
|
|
481
|
+
import { jsx as jsx12, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
766
482
|
var Drawer = ({
|
|
767
483
|
shouldScaleBackground = true,
|
|
768
484
|
...props
|
|
769
|
-
}) => /* @__PURE__ */
|
|
485
|
+
}) => /* @__PURE__ */ jsx12(
|
|
770
486
|
DrawerPrimitive.Root,
|
|
771
487
|
{
|
|
772
488
|
shouldScaleBackground,
|
|
@@ -777,7 +493,7 @@ Drawer.displayName = "Drawer";
|
|
|
777
493
|
var DrawerTrigger = DrawerPrimitive.Trigger;
|
|
778
494
|
var DrawerPortal = DrawerPrimitive.Portal;
|
|
779
495
|
var DrawerClose = DrawerPrimitive.Close;
|
|
780
|
-
var DrawerOverlay =
|
|
496
|
+
var DrawerOverlay = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(
|
|
781
497
|
DrawerPrimitive.Overlay,
|
|
782
498
|
{
|
|
783
499
|
ref,
|
|
@@ -786,9 +502,9 @@ var DrawerOverlay = React10.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
786
502
|
}
|
|
787
503
|
));
|
|
788
504
|
DrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName;
|
|
789
|
-
var DrawerContent =
|
|
790
|
-
/* @__PURE__ */
|
|
791
|
-
/* @__PURE__ */
|
|
505
|
+
var DrawerContent = React8.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs4(DrawerPortal, { children: [
|
|
506
|
+
/* @__PURE__ */ jsx12(DrawerOverlay, {}),
|
|
507
|
+
/* @__PURE__ */ jsxs4(
|
|
792
508
|
DrawerPrimitive.Content,
|
|
793
509
|
{
|
|
794
510
|
ref,
|
|
@@ -798,7 +514,7 @@ var DrawerContent = React10.forwardRef(({ className, children, ...props }, ref)
|
|
|
798
514
|
),
|
|
799
515
|
...props,
|
|
800
516
|
children: [
|
|
801
|
-
/* @__PURE__ */
|
|
517
|
+
/* @__PURE__ */ jsx12("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
|
|
802
518
|
children
|
|
803
519
|
]
|
|
804
520
|
}
|
|
@@ -808,7 +524,7 @@ DrawerContent.displayName = "DrawerContent";
|
|
|
808
524
|
var DrawerHeader = ({
|
|
809
525
|
className,
|
|
810
526
|
...props
|
|
811
|
-
}) => /* @__PURE__ */
|
|
527
|
+
}) => /* @__PURE__ */ jsx12(
|
|
812
528
|
"div",
|
|
813
529
|
{
|
|
814
530
|
className: cn("grid gap-1.5 p-4 text-center sm:text-left", className, "alq--drawer-header"),
|
|
@@ -819,7 +535,7 @@ DrawerHeader.displayName = "DrawerHeader";
|
|
|
819
535
|
var DrawerFooter = ({
|
|
820
536
|
className,
|
|
821
537
|
...props
|
|
822
|
-
}) => /* @__PURE__ */
|
|
538
|
+
}) => /* @__PURE__ */ jsx12(
|
|
823
539
|
"div",
|
|
824
540
|
{
|
|
825
541
|
className: cn("mt-auto flex flex-col gap-2 p-4", className, "alq--drawer-footer"),
|
|
@@ -827,7 +543,7 @@ var DrawerFooter = ({
|
|
|
827
543
|
}
|
|
828
544
|
);
|
|
829
545
|
DrawerFooter.displayName = "DrawerFooter";
|
|
830
|
-
var DrawerTitle =
|
|
546
|
+
var DrawerTitle = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(
|
|
831
547
|
DrawerPrimitive.Title,
|
|
832
548
|
{
|
|
833
549
|
ref,
|
|
@@ -840,7 +556,7 @@ var DrawerTitle = React10.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
840
556
|
}
|
|
841
557
|
));
|
|
842
558
|
DrawerTitle.displayName = DrawerPrimitive.Title.displayName;
|
|
843
|
-
var DrawerDescription =
|
|
559
|
+
var DrawerDescription = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(
|
|
844
560
|
DrawerPrimitive.Description,
|
|
845
561
|
{
|
|
846
562
|
ref,
|
|
@@ -851,11 +567,11 @@ var DrawerDescription = React10.forwardRef(({ className, ...props }, ref) => /*
|
|
|
851
567
|
DrawerDescription.displayName = DrawerPrimitive.Description.displayName;
|
|
852
568
|
|
|
853
569
|
// src/components/atoms/ui/typography/index.tsx
|
|
854
|
-
import { forwardRef as
|
|
855
|
-
import { jsx as
|
|
856
|
-
var Typography =
|
|
570
|
+
import { forwardRef as forwardRef11 } from "react";
|
|
571
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
572
|
+
var Typography = forwardRef11(
|
|
857
573
|
({ as: Component = "p", typeStyle, ...props }, ref) => {
|
|
858
|
-
return /* @__PURE__ */
|
|
574
|
+
return /* @__PURE__ */ jsx13(
|
|
859
575
|
Component,
|
|
860
576
|
{
|
|
861
577
|
...props,
|
|
@@ -868,9 +584,9 @@ var Typography = forwardRef13(
|
|
|
868
584
|
Typography.displayName = "Typography";
|
|
869
585
|
|
|
870
586
|
// src/components/atoms/ui/badge.tsx
|
|
871
|
-
import { cva as
|
|
872
|
-
import { jsx as
|
|
873
|
-
var badgeVariants =
|
|
587
|
+
import { cva as cva2 } from "class-variance-authority";
|
|
588
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
589
|
+
var badgeVariants = cva2(
|
|
874
590
|
"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",
|
|
875
591
|
{
|
|
876
592
|
variants: {
|
|
@@ -888,10 +604,10 @@ var badgeVariants = cva3(
|
|
|
888
604
|
);
|
|
889
605
|
|
|
890
606
|
// src/components/atoms/ui/alert.tsx
|
|
891
|
-
import * as
|
|
892
|
-
import { cva as
|
|
893
|
-
import { jsx as
|
|
894
|
-
var alertVariants =
|
|
607
|
+
import * as React9 from "react";
|
|
608
|
+
import { cva as cva3 } from "class-variance-authority";
|
|
609
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
610
|
+
var alertVariants = cva3(
|
|
895
611
|
"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",
|
|
896
612
|
{
|
|
897
613
|
variants: {
|
|
@@ -905,7 +621,7 @@ var alertVariants = cva4(
|
|
|
905
621
|
}
|
|
906
622
|
}
|
|
907
623
|
);
|
|
908
|
-
var Alert =
|
|
624
|
+
var Alert = React9.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
909
625
|
"div",
|
|
910
626
|
{
|
|
911
627
|
ref,
|
|
@@ -915,7 +631,7 @@ var Alert = React11.forwardRef(({ className, variant, ...props }, ref) => /* @__
|
|
|
915
631
|
}
|
|
916
632
|
));
|
|
917
633
|
Alert.displayName = "Alert";
|
|
918
|
-
var AlertTitle =
|
|
634
|
+
var AlertTitle = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
919
635
|
"h5",
|
|
920
636
|
{
|
|
921
637
|
ref,
|
|
@@ -924,7 +640,7 @@ var AlertTitle = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
924
640
|
}
|
|
925
641
|
));
|
|
926
642
|
AlertTitle.displayName = "AlertTitle";
|
|
927
|
-
var AlertDescription =
|
|
643
|
+
var AlertDescription = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
928
644
|
"div",
|
|
929
645
|
{
|
|
930
646
|
ref,
|
|
@@ -935,14 +651,14 @@ var AlertDescription = React11.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
935
651
|
AlertDescription.displayName = "AlertDescription";
|
|
936
652
|
|
|
937
653
|
// src/components/atoms/ui/label.tsx
|
|
938
|
-
import * as
|
|
654
|
+
import * as React10 from "react";
|
|
939
655
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
940
|
-
import { cva as
|
|
941
|
-
import { jsx as
|
|
942
|
-
var labelVariants =
|
|
656
|
+
import { cva as cva4 } from "class-variance-authority";
|
|
657
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
658
|
+
var labelVariants = cva4(
|
|
943
659
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
944
660
|
);
|
|
945
|
-
var Label2 =
|
|
661
|
+
var Label2 = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
946
662
|
LabelPrimitive.Root,
|
|
947
663
|
{
|
|
948
664
|
ref,
|
|
@@ -953,11 +669,11 @@ var Label2 = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
953
669
|
Label2.displayName = LabelPrimitive.Root.displayName;
|
|
954
670
|
|
|
955
671
|
// src/components/atoms/ui/checkbox.tsx
|
|
956
|
-
import * as
|
|
672
|
+
import * as React11 from "react";
|
|
957
673
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
958
674
|
import { Check as Check2 } from "lucide-react";
|
|
959
|
-
import { jsx as
|
|
960
|
-
var Checkbox =
|
|
675
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
676
|
+
var Checkbox = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx17(
|
|
961
677
|
CheckboxPrimitive.Root,
|
|
962
678
|
{
|
|
963
679
|
ref,
|
|
@@ -967,11 +683,11 @@ var Checkbox = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
967
683
|
"alq--checkbox"
|
|
968
684
|
),
|
|
969
685
|
...props,
|
|
970
|
-
children: /* @__PURE__ */
|
|
686
|
+
children: /* @__PURE__ */ jsx17(
|
|
971
687
|
CheckboxPrimitive.Indicator,
|
|
972
688
|
{
|
|
973
689
|
className: cn("flex items-center justify-center text-current"),
|
|
974
|
-
children: /* @__PURE__ */
|
|
690
|
+
children: /* @__PURE__ */ jsx17(Check2, { className: "h-4 w-4" })
|
|
975
691
|
}
|
|
976
692
|
)
|
|
977
693
|
}
|
|
@@ -979,11 +695,11 @@ var Checkbox = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
979
695
|
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
980
696
|
|
|
981
697
|
// src/components/atoms/ui/toggle.tsx
|
|
982
|
-
import * as
|
|
698
|
+
import * as React12 from "react";
|
|
983
699
|
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
984
|
-
import { cva as
|
|
985
|
-
import { jsx as
|
|
986
|
-
var toggleVariants =
|
|
700
|
+
import { cva as cva5 } from "class-variance-authority";
|
|
701
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
702
|
+
var toggleVariants = cva5(
|
|
987
703
|
"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",
|
|
988
704
|
{
|
|
989
705
|
variants: {
|
|
@@ -1003,7 +719,7 @@ var toggleVariants = cva6(
|
|
|
1003
719
|
}
|
|
1004
720
|
}
|
|
1005
721
|
);
|
|
1006
|
-
var Toggle =
|
|
722
|
+
var Toggle = React12.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx18(
|
|
1007
723
|
TogglePrimitive.Root,
|
|
1008
724
|
{
|
|
1009
725
|
ref,
|
|
@@ -1014,10 +730,10 @@ var Toggle = React14.forwardRef(({ className, variant, size, ...props }, ref) =>
|
|
|
1014
730
|
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
1015
731
|
|
|
1016
732
|
// src/components/atoms/ui/slider.tsx
|
|
1017
|
-
import * as
|
|
733
|
+
import * as React13 from "react";
|
|
1018
734
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
1019
|
-
import { jsx as
|
|
1020
|
-
var Slider =
|
|
735
|
+
import { jsx as jsx19, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
736
|
+
var Slider = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs5(
|
|
1021
737
|
SliderPrimitive.Root,
|
|
1022
738
|
{
|
|
1023
739
|
ref,
|
|
@@ -1028,18 +744,18 @@ var Slider = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
1028
744
|
),
|
|
1029
745
|
...props,
|
|
1030
746
|
children: [
|
|
1031
|
-
/* @__PURE__ */
|
|
1032
|
-
/* @__PURE__ */
|
|
747
|
+
/* @__PURE__ */ jsx19(SliderPrimitive.Track, { className: "relative h-2 w-44 grow overflow-hidden rounded-full bg-primary", children: /* @__PURE__ */ jsx19(SliderPrimitive.Range, { className: "absolute h-full bg-secondary" }) }),
|
|
748
|
+
/* @__PURE__ */ jsx19(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" })
|
|
1033
749
|
]
|
|
1034
750
|
}
|
|
1035
751
|
));
|
|
1036
752
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
|
1037
753
|
|
|
1038
754
|
// src/components/atoms/ui/switch.tsx
|
|
1039
|
-
import * as
|
|
755
|
+
import * as React14 from "react";
|
|
1040
756
|
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
|
1041
|
-
import { jsx as
|
|
1042
|
-
var Switch =
|
|
757
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
758
|
+
var Switch = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
|
|
1043
759
|
SwitchPrimitives.Root,
|
|
1044
760
|
{
|
|
1045
761
|
className: cn(
|
|
@@ -1049,7 +765,7 @@ var Switch = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
1049
765
|
),
|
|
1050
766
|
...props,
|
|
1051
767
|
ref,
|
|
1052
|
-
children: /* @__PURE__ */
|
|
768
|
+
children: /* @__PURE__ */ jsx20(
|
|
1053
769
|
SwitchPrimitives.Thumb,
|
|
1054
770
|
{
|
|
1055
771
|
className: cn(
|
|
@@ -1062,10 +778,10 @@ var Switch = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
1062
778
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
1063
779
|
|
|
1064
780
|
// src/components/atoms/ui/tabs.tsx
|
|
1065
|
-
import * as
|
|
781
|
+
import * as React15 from "react";
|
|
1066
782
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
1067
|
-
import { jsx as
|
|
1068
|
-
var TabsList =
|
|
783
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
784
|
+
var TabsList = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
1069
785
|
TabsPrimitive.List,
|
|
1070
786
|
{
|
|
1071
787
|
ref,
|
|
@@ -1078,7 +794,7 @@ var TabsList = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1078
794
|
}
|
|
1079
795
|
));
|
|
1080
796
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
1081
|
-
var TabsTrigger =
|
|
797
|
+
var TabsTrigger = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
1082
798
|
TabsPrimitive.Trigger,
|
|
1083
799
|
{
|
|
1084
800
|
ref,
|
|
@@ -1090,7 +806,7 @@ var TabsTrigger = React17.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1090
806
|
}
|
|
1091
807
|
));
|
|
1092
808
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
1093
|
-
var TabsContent =
|
|
809
|
+
var TabsContent = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
1094
810
|
TabsPrimitive.Content,
|
|
1095
811
|
{
|
|
1096
812
|
ref,
|
|
@@ -1107,9 +823,9 @@ TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
|
1107
823
|
import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio";
|
|
1108
824
|
|
|
1109
825
|
// src/components/atoms/ui/table.tsx
|
|
1110
|
-
import * as
|
|
1111
|
-
import { jsx as
|
|
1112
|
-
var Table =
|
|
826
|
+
import * as React16 from "react";
|
|
827
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
828
|
+
var Table = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx22(
|
|
1113
829
|
"table",
|
|
1114
830
|
{
|
|
1115
831
|
ref,
|
|
@@ -1118,9 +834,9 @@ var Table = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
1118
834
|
}
|
|
1119
835
|
) }));
|
|
1120
836
|
Table.displayName = "Table";
|
|
1121
|
-
var TableHeader =
|
|
837
|
+
var TableHeader = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22("thead", { ref, className: cn("[&_tr]:border-b border-border bg-muted", className, "alq--table-header"), ...props }));
|
|
1122
838
|
TableHeader.displayName = "TableHeader";
|
|
1123
|
-
var TableBody =
|
|
839
|
+
var TableBody = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(
|
|
1124
840
|
"tbody",
|
|
1125
841
|
{
|
|
1126
842
|
ref,
|
|
@@ -1129,7 +845,7 @@ var TableBody = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
1129
845
|
}
|
|
1130
846
|
));
|
|
1131
847
|
TableBody.displayName = "TableBody";
|
|
1132
|
-
var TableFooter =
|
|
848
|
+
var TableFooter = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(
|
|
1133
849
|
"tfoot",
|
|
1134
850
|
{
|
|
1135
851
|
ref,
|
|
@@ -1142,7 +858,7 @@ var TableFooter = React18.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1142
858
|
}
|
|
1143
859
|
));
|
|
1144
860
|
TableFooter.displayName = "TableFooter";
|
|
1145
|
-
var TableRow =
|
|
861
|
+
var TableRow = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(
|
|
1146
862
|
"tr",
|
|
1147
863
|
{
|
|
1148
864
|
ref,
|
|
@@ -1154,7 +870,7 @@ var TableRow = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1154
870
|
}
|
|
1155
871
|
));
|
|
1156
872
|
TableRow.displayName = "TableRow";
|
|
1157
|
-
var TableHead =
|
|
873
|
+
var TableHead = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(
|
|
1158
874
|
"th",
|
|
1159
875
|
{
|
|
1160
876
|
ref,
|
|
@@ -1166,7 +882,7 @@ var TableHead = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
1166
882
|
}
|
|
1167
883
|
));
|
|
1168
884
|
TableHead.displayName = "TableHead";
|
|
1169
|
-
var TableCell =
|
|
885
|
+
var TableCell = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(
|
|
1170
886
|
"td",
|
|
1171
887
|
{
|
|
1172
888
|
ref,
|
|
@@ -1175,7 +891,7 @@ var TableCell = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
1175
891
|
}
|
|
1176
892
|
));
|
|
1177
893
|
TableCell.displayName = "TableCell";
|
|
1178
|
-
var TableCaption =
|
|
894
|
+
var TableCaption = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(
|
|
1179
895
|
"caption",
|
|
1180
896
|
{
|
|
1181
897
|
ref,
|
|
@@ -1186,13 +902,13 @@ var TableCaption = React18.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1186
902
|
TableCaption.displayName = "TableCaption";
|
|
1187
903
|
|
|
1188
904
|
// src/components/atoms/ui/breadcrumb.tsx
|
|
1189
|
-
import * as
|
|
905
|
+
import * as React17 from "react";
|
|
1190
906
|
import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
1191
907
|
import { ChevronRight, MoreHorizontal } from "lucide-react";
|
|
1192
|
-
import { jsx as
|
|
1193
|
-
var Breadcrumb =
|
|
908
|
+
import { jsx as jsx23, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
909
|
+
var Breadcrumb = React17.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx23("nav", { ref, "aria-label": "breadcrumb", ...props }));
|
|
1194
910
|
Breadcrumb.displayName = "Breadcrumb";
|
|
1195
|
-
var BreadcrumbList =
|
|
911
|
+
var BreadcrumbList = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
1196
912
|
"ol",
|
|
1197
913
|
{
|
|
1198
914
|
ref,
|
|
@@ -1204,7 +920,7 @@ var BreadcrumbList = React19.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
1204
920
|
}
|
|
1205
921
|
));
|
|
1206
922
|
BreadcrumbList.displayName = "BreadcrumbList";
|
|
1207
|
-
var BreadcrumbItem =
|
|
923
|
+
var BreadcrumbItem = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
1208
924
|
"li",
|
|
1209
925
|
{
|
|
1210
926
|
ref,
|
|
@@ -1213,9 +929,9 @@ var BreadcrumbItem = React19.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
1213
929
|
}
|
|
1214
930
|
));
|
|
1215
931
|
BreadcrumbItem.displayName = "BreadcrumbItem";
|
|
1216
|
-
var BreadcrumbLink =
|
|
932
|
+
var BreadcrumbLink = React17.forwardRef(({ asChild, className, ...props }, ref) => {
|
|
1217
933
|
const Comp = asChild ? Slot2 : "a";
|
|
1218
|
-
return /* @__PURE__ */
|
|
934
|
+
return /* @__PURE__ */ jsx23(
|
|
1219
935
|
Comp,
|
|
1220
936
|
{
|
|
1221
937
|
ref,
|
|
@@ -1225,7 +941,7 @@ var BreadcrumbLink = React19.forwardRef(({ asChild, className, ...props }, ref)
|
|
|
1225
941
|
);
|
|
1226
942
|
});
|
|
1227
943
|
BreadcrumbLink.displayName = "BreadcrumbLink";
|
|
1228
|
-
var BreadcrumbPage =
|
|
944
|
+
var BreadcrumbPage = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
1229
945
|
"span",
|
|
1230
946
|
{
|
|
1231
947
|
ref,
|
|
@@ -1241,21 +957,21 @@ var BreadcrumbSeparator = ({
|
|
|
1241
957
|
children,
|
|
1242
958
|
className,
|
|
1243
959
|
...props
|
|
1244
|
-
}) => /* @__PURE__ */
|
|
960
|
+
}) => /* @__PURE__ */ jsx23(
|
|
1245
961
|
"li",
|
|
1246
962
|
{
|
|
1247
963
|
role: "presentation",
|
|
1248
964
|
"aria-hidden": "true",
|
|
1249
965
|
className: cn("[&>svg]:w-3.5 [&>svg]:h-3.5", className),
|
|
1250
966
|
...props,
|
|
1251
|
-
children: children ?? /* @__PURE__ */
|
|
967
|
+
children: children ?? /* @__PURE__ */ jsx23(ChevronRight, {})
|
|
1252
968
|
}
|
|
1253
969
|
);
|
|
1254
970
|
BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
|
|
1255
971
|
var BreadcrumbEllipsis = ({
|
|
1256
972
|
className,
|
|
1257
973
|
...props
|
|
1258
|
-
}) => /* @__PURE__ */
|
|
974
|
+
}) => /* @__PURE__ */ jsxs6(
|
|
1259
975
|
"span",
|
|
1260
976
|
{
|
|
1261
977
|
role: "presentation",
|
|
@@ -1263,18 +979,18 @@ var BreadcrumbEllipsis = ({
|
|
|
1263
979
|
className: cn("flex h-9 w-9 items-center justify-center", className),
|
|
1264
980
|
...props,
|
|
1265
981
|
children: [
|
|
1266
|
-
/* @__PURE__ */
|
|
1267
|
-
/* @__PURE__ */
|
|
982
|
+
/* @__PURE__ */ jsx23(MoreHorizontal, { className: "h-4 w-4" }),
|
|
983
|
+
/* @__PURE__ */ jsx23("span", { className: "sr-only", children: "More" })
|
|
1268
984
|
]
|
|
1269
985
|
}
|
|
1270
986
|
);
|
|
1271
987
|
BreadcrumbEllipsis.displayName = "BreadcrumbElipssis";
|
|
1272
988
|
|
|
1273
989
|
// src/components/atoms/ui/popover.tsx
|
|
1274
|
-
import * as
|
|
990
|
+
import * as React18 from "react";
|
|
1275
991
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
1276
|
-
import { jsx as
|
|
1277
|
-
var PopoverContent =
|
|
992
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
993
|
+
var PopoverContent = React18.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx24(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx24(
|
|
1278
994
|
PopoverPrimitive.Content,
|
|
1279
995
|
{
|
|
1280
996
|
ref,
|
|
@@ -1290,19 +1006,19 @@ var PopoverContent = React20.forwardRef(({ className, align = "center", sideOffs
|
|
|
1290
1006
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
1291
1007
|
|
|
1292
1008
|
// src/components/atoms/ui/command.tsx
|
|
1293
|
-
import * as
|
|
1009
|
+
import * as React20 from "react";
|
|
1294
1010
|
import { Command as CommandPrimitive } from "cmdk";
|
|
1295
1011
|
import { Search } from "lucide-react";
|
|
1296
1012
|
|
|
1297
1013
|
// src/components/atoms/ui/dialog.tsx
|
|
1298
|
-
import * as
|
|
1014
|
+
import * as React19 from "react";
|
|
1299
1015
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
1300
1016
|
import { X } from "lucide-react";
|
|
1301
|
-
import { jsx as
|
|
1017
|
+
import { jsx as jsx25, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1302
1018
|
var Dialog = DialogPrimitive.Root;
|
|
1303
1019
|
var DialogTrigger = DialogPrimitive.Trigger;
|
|
1304
1020
|
var DialogPortal = DialogPrimitive.Portal;
|
|
1305
|
-
var DialogOverlay =
|
|
1021
|
+
var DialogOverlay = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25(
|
|
1306
1022
|
DialogPrimitive.Overlay,
|
|
1307
1023
|
{
|
|
1308
1024
|
ref,
|
|
@@ -1314,9 +1030,9 @@ var DialogOverlay = React21.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1314
1030
|
}
|
|
1315
1031
|
));
|
|
1316
1032
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
1317
|
-
var DialogContent =
|
|
1318
|
-
/* @__PURE__ */
|
|
1319
|
-
/* @__PURE__ */
|
|
1033
|
+
var DialogContent = React19.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs7(DialogPortal, { children: [
|
|
1034
|
+
/* @__PURE__ */ jsx25(DialogOverlay, {}),
|
|
1035
|
+
/* @__PURE__ */ jsxs7(
|
|
1320
1036
|
DialogPrimitive.Content,
|
|
1321
1037
|
{
|
|
1322
1038
|
ref,
|
|
@@ -1328,9 +1044,9 @@ var DialogContent = React21.forwardRef(({ className, children, ...props }, ref)
|
|
|
1328
1044
|
...props,
|
|
1329
1045
|
children: [
|
|
1330
1046
|
children,
|
|
1331
|
-
/* @__PURE__ */
|
|
1332
|
-
/* @__PURE__ */
|
|
1333
|
-
/* @__PURE__ */
|
|
1047
|
+
/* @__PURE__ */ jsxs7(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
|
1048
|
+
/* @__PURE__ */ jsx25(X, { className: "h-4 w-4" }),
|
|
1049
|
+
/* @__PURE__ */ jsx25("span", { className: "sr-only", children: "Close" })
|
|
1334
1050
|
] })
|
|
1335
1051
|
]
|
|
1336
1052
|
}
|
|
@@ -1340,7 +1056,7 @@ DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
|
1340
1056
|
var DialogHeader = ({
|
|
1341
1057
|
className,
|
|
1342
1058
|
...props
|
|
1343
|
-
}) => /* @__PURE__ */
|
|
1059
|
+
}) => /* @__PURE__ */ jsx25(
|
|
1344
1060
|
"div",
|
|
1345
1061
|
{
|
|
1346
1062
|
className: cn(
|
|
@@ -1355,7 +1071,7 @@ DialogHeader.displayName = "DialogHeader";
|
|
|
1355
1071
|
var DialogFooter = ({
|
|
1356
1072
|
className,
|
|
1357
1073
|
...props
|
|
1358
|
-
}) => /* @__PURE__ */
|
|
1074
|
+
}) => /* @__PURE__ */ jsx25(
|
|
1359
1075
|
"div",
|
|
1360
1076
|
{
|
|
1361
1077
|
className: cn(
|
|
@@ -1366,7 +1082,7 @@ var DialogFooter = ({
|
|
|
1366
1082
|
}
|
|
1367
1083
|
);
|
|
1368
1084
|
DialogFooter.displayName = "DialogFooter";
|
|
1369
|
-
var DialogTitle =
|
|
1085
|
+
var DialogTitle = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25(
|
|
1370
1086
|
DialogPrimitive.Title,
|
|
1371
1087
|
{
|
|
1372
1088
|
ref,
|
|
@@ -1379,7 +1095,7 @@ var DialogTitle = React21.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1379
1095
|
}
|
|
1380
1096
|
));
|
|
1381
1097
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
1382
|
-
var DialogDescription =
|
|
1098
|
+
var DialogDescription = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25(
|
|
1383
1099
|
DialogPrimitive.Description,
|
|
1384
1100
|
{
|
|
1385
1101
|
ref,
|
|
@@ -1390,8 +1106,8 @@ var DialogDescription = React21.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1390
1106
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
1391
1107
|
|
|
1392
1108
|
// src/components/atoms/ui/command.tsx
|
|
1393
|
-
import { jsx as
|
|
1394
|
-
var Command =
|
|
1109
|
+
import { jsx as jsx26, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1110
|
+
var Command = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx26(
|
|
1395
1111
|
CommandPrimitive,
|
|
1396
1112
|
{
|
|
1397
1113
|
ref,
|
|
@@ -1403,9 +1119,9 @@ var Command = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1403
1119
|
}
|
|
1404
1120
|
));
|
|
1405
1121
|
Command.displayName = CommandPrimitive.displayName;
|
|
1406
|
-
var CommandInput =
|
|
1407
|
-
/* @__PURE__ */
|
|
1408
|
-
/* @__PURE__ */
|
|
1122
|
+
var CommandInput = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs8("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
1123
|
+
/* @__PURE__ */ jsx26(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
1124
|
+
/* @__PURE__ */ jsx26(
|
|
1409
1125
|
CommandPrimitive.Input,
|
|
1410
1126
|
{
|
|
1411
1127
|
ref,
|
|
@@ -1418,7 +1134,7 @@ var CommandInput = React22.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1418
1134
|
)
|
|
1419
1135
|
] }));
|
|
1420
1136
|
CommandInput.displayName = CommandPrimitive.Input.displayName;
|
|
1421
|
-
var CommandList =
|
|
1137
|
+
var CommandList = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx26(
|
|
1422
1138
|
CommandPrimitive.List,
|
|
1423
1139
|
{
|
|
1424
1140
|
ref,
|
|
@@ -1427,7 +1143,7 @@ var CommandList = React22.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1427
1143
|
}
|
|
1428
1144
|
));
|
|
1429
1145
|
CommandList.displayName = CommandPrimitive.List.displayName;
|
|
1430
|
-
var CommandEmpty =
|
|
1146
|
+
var CommandEmpty = React20.forwardRef((props, ref) => /* @__PURE__ */ jsx26(
|
|
1431
1147
|
CommandPrimitive.Empty,
|
|
1432
1148
|
{
|
|
1433
1149
|
ref,
|
|
@@ -1436,7 +1152,7 @@ var CommandEmpty = React22.forwardRef((props, ref) => /* @__PURE__ */ jsx28(
|
|
|
1436
1152
|
}
|
|
1437
1153
|
));
|
|
1438
1154
|
CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
|
|
1439
|
-
var CommandGroup =
|
|
1155
|
+
var CommandGroup = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx26(
|
|
1440
1156
|
CommandPrimitive.Group,
|
|
1441
1157
|
{
|
|
1442
1158
|
ref,
|
|
@@ -1448,7 +1164,7 @@ var CommandGroup = React22.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1448
1164
|
}
|
|
1449
1165
|
));
|
|
1450
1166
|
CommandGroup.displayName = CommandPrimitive.Group.displayName;
|
|
1451
|
-
var CommandSeparator =
|
|
1167
|
+
var CommandSeparator = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx26(
|
|
1452
1168
|
CommandPrimitive.Separator,
|
|
1453
1169
|
{
|
|
1454
1170
|
ref,
|
|
@@ -1457,7 +1173,7 @@ var CommandSeparator = React22.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1457
1173
|
}
|
|
1458
1174
|
));
|
|
1459
1175
|
CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
|
|
1460
|
-
var CommandItem =
|
|
1176
|
+
var CommandItem = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx26(
|
|
1461
1177
|
CommandPrimitive.Item,
|
|
1462
1178
|
{
|
|
1463
1179
|
ref,
|
|
@@ -1473,246 +1189,641 @@ var CommandShortcut = ({
|
|
|
1473
1189
|
className,
|
|
1474
1190
|
...props
|
|
1475
1191
|
}) => {
|
|
1476
|
-
return /* @__PURE__ */
|
|
1192
|
+
return /* @__PURE__ */ jsx26(
|
|
1477
1193
|
"span",
|
|
1478
1194
|
{
|
|
1479
1195
|
className: cn(
|
|
1480
1196
|
"ml-auto text-xs tracking-widest text-muted-foreground",
|
|
1481
1197
|
className
|
|
1482
1198
|
),
|
|
1483
|
-
...props
|
|
1199
|
+
...props
|
|
1200
|
+
}
|
|
1201
|
+
);
|
|
1202
|
+
};
|
|
1203
|
+
CommandShortcut.displayName = "CommandShortcut";
|
|
1204
|
+
|
|
1205
|
+
// src/components/atoms/ui/toast.tsx
|
|
1206
|
+
import * as React21 from "react";
|
|
1207
|
+
import * as ToastPrimitives from "@radix-ui/react-toast";
|
|
1208
|
+
import { cva as cva6 } from "class-variance-authority";
|
|
1209
|
+
import { X as X2 } from "lucide-react";
|
|
1210
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
1211
|
+
var ToastViewport = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx27(
|
|
1212
|
+
ToastPrimitives.Viewport,
|
|
1213
|
+
{
|
|
1214
|
+
ref,
|
|
1215
|
+
className: cn(
|
|
1216
|
+
"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",
|
|
1217
|
+
className
|
|
1218
|
+
),
|
|
1219
|
+
...props
|
|
1220
|
+
}
|
|
1221
|
+
));
|
|
1222
|
+
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
1223
|
+
var toastVariants = cva6(
|
|
1224
|
+
"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",
|
|
1225
|
+
{
|
|
1226
|
+
variants: {
|
|
1227
|
+
variant: {
|
|
1228
|
+
default: "border bg-background text-foreground",
|
|
1229
|
+
destructive: "destructive group border-destructive bg-destructive text-destructive-foreground"
|
|
1230
|
+
}
|
|
1231
|
+
},
|
|
1232
|
+
defaultVariants: {
|
|
1233
|
+
variant: "default"
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1236
|
+
);
|
|
1237
|
+
var Toast = React21.forwardRef(({ className, variant, ...props }, ref) => {
|
|
1238
|
+
return /* @__PURE__ */ jsx27(
|
|
1239
|
+
ToastPrimitives.Root,
|
|
1240
|
+
{
|
|
1241
|
+
ref,
|
|
1242
|
+
className: cn(toastVariants({ variant }), className),
|
|
1243
|
+
...props
|
|
1244
|
+
}
|
|
1245
|
+
);
|
|
1246
|
+
});
|
|
1247
|
+
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
1248
|
+
var ToastAction = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx27(
|
|
1249
|
+
ToastPrimitives.Action,
|
|
1250
|
+
{
|
|
1251
|
+
ref,
|
|
1252
|
+
className: cn(
|
|
1253
|
+
"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",
|
|
1254
|
+
className
|
|
1255
|
+
),
|
|
1256
|
+
...props
|
|
1257
|
+
}
|
|
1258
|
+
));
|
|
1259
|
+
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
1260
|
+
var ToastClose = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx27(
|
|
1261
|
+
ToastPrimitives.Close,
|
|
1262
|
+
{
|
|
1263
|
+
ref,
|
|
1264
|
+
className: cn(
|
|
1265
|
+
"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",
|
|
1266
|
+
className
|
|
1267
|
+
),
|
|
1268
|
+
"toast-close": "",
|
|
1269
|
+
...props,
|
|
1270
|
+
children: /* @__PURE__ */ jsx27(X2, { className: "h-4 w-4" })
|
|
1271
|
+
}
|
|
1272
|
+
));
|
|
1273
|
+
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
1274
|
+
var ToastTitle = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx27(
|
|
1275
|
+
ToastPrimitives.Title,
|
|
1276
|
+
{
|
|
1277
|
+
ref,
|
|
1278
|
+
className: cn("text-sm font-semibold", className),
|
|
1279
|
+
...props
|
|
1280
|
+
}
|
|
1281
|
+
));
|
|
1282
|
+
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
1283
|
+
var ToastDescription = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx27(
|
|
1284
|
+
ToastPrimitives.Description,
|
|
1285
|
+
{
|
|
1286
|
+
ref,
|
|
1287
|
+
className: cn("text-sm opacity-90", className),
|
|
1288
|
+
...props
|
|
1289
|
+
}
|
|
1290
|
+
));
|
|
1291
|
+
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
1292
|
+
|
|
1293
|
+
// src/components/atoms/ui/loader.tsx
|
|
1294
|
+
import * as React22 from "react";
|
|
1295
|
+
import { cva as cva7 } from "class-variance-authority";
|
|
1296
|
+
import { Loader2 } from "lucide-react";
|
|
1297
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
1298
|
+
var loaderVariants = cva7(
|
|
1299
|
+
"flex justify-center items-center w-full",
|
|
1300
|
+
{
|
|
1301
|
+
variants: {
|
|
1302
|
+
size: {
|
|
1303
|
+
small: "h-6 w-6",
|
|
1304
|
+
medium: "h-8 w-8",
|
|
1305
|
+
large: "h-12 w-12",
|
|
1306
|
+
xl: "h-24 w-24"
|
|
1307
|
+
},
|
|
1308
|
+
colorVariant: {
|
|
1309
|
+
default: "text-primary",
|
|
1310
|
+
primary: "text-primary",
|
|
1311
|
+
secondary: "text-secondary",
|
|
1312
|
+
destructive: "text-destructive"
|
|
1313
|
+
}
|
|
1314
|
+
},
|
|
1315
|
+
defaultVariants: {
|
|
1316
|
+
size: "medium",
|
|
1317
|
+
colorVariant: "default"
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
);
|
|
1321
|
+
var Loader = React22.forwardRef(
|
|
1322
|
+
({ className, size, colorVariant, ...props }, ref) => /* @__PURE__ */ jsx28(
|
|
1323
|
+
"div",
|
|
1324
|
+
{
|
|
1325
|
+
ref,
|
|
1326
|
+
className: cn(loaderVariants({ size, colorVariant }), "flex justify-center items-center h-full w-full", className),
|
|
1327
|
+
...props,
|
|
1328
|
+
children: /* @__PURE__ */ jsx28(Loader2, { className: "animate-spin" })
|
|
1329
|
+
}
|
|
1330
|
+
)
|
|
1331
|
+
);
|
|
1332
|
+
Loader.displayName = "Loader";
|
|
1333
|
+
|
|
1334
|
+
// src/components/hooks/use-toast.ts
|
|
1335
|
+
import * as React23 from "react";
|
|
1336
|
+
|
|
1337
|
+
// src/components/atoms/ui/toaster.tsx
|
|
1338
|
+
import { jsx as jsx29, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1339
|
+
|
|
1340
|
+
// src/components/atoms/ui/think-indicator.tsx
|
|
1341
|
+
import * as React24 from "react";
|
|
1342
|
+
import { useState as useState2, useEffect as useEffect2 } from "react";
|
|
1343
|
+
import { cva as cva8 } from "class-variance-authority";
|
|
1344
|
+
import { jsx as jsx30, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1345
|
+
var thinkIndicatorVariants = cva8(
|
|
1346
|
+
"flex items-center gap-3",
|
|
1347
|
+
{
|
|
1348
|
+
variants: {
|
|
1349
|
+
variant: {
|
|
1350
|
+
default: "text-muted-foreground",
|
|
1351
|
+
primary: "text-primary",
|
|
1352
|
+
secondary: "text-secondary"
|
|
1353
|
+
},
|
|
1354
|
+
size: {
|
|
1355
|
+
default: "gap-3",
|
|
1356
|
+
sm: "gap-2",
|
|
1357
|
+
lg: "gap-4"
|
|
1358
|
+
}
|
|
1359
|
+
},
|
|
1360
|
+
defaultVariants: {
|
|
1361
|
+
variant: "default",
|
|
1362
|
+
size: "default"
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
);
|
|
1366
|
+
var ThinkIndicator = React24.forwardRef(
|
|
1367
|
+
({
|
|
1368
|
+
className,
|
|
1369
|
+
variant,
|
|
1370
|
+
size,
|
|
1371
|
+
thoughts = [
|
|
1372
|
+
"Analyzing your request...",
|
|
1373
|
+
"Processing information...",
|
|
1374
|
+
"Formulating response..."
|
|
1375
|
+
],
|
|
1376
|
+
interval = 5e3,
|
|
1377
|
+
loader,
|
|
1378
|
+
...props
|
|
1379
|
+
}, ref) => {
|
|
1380
|
+
const [currentThoughtIndex, setCurrentThoughtIndex] = useState2(0);
|
|
1381
|
+
const [isAnimating, setIsAnimating] = useState2(false);
|
|
1382
|
+
useEffect2(() => {
|
|
1383
|
+
const timer = setInterval(() => {
|
|
1384
|
+
setIsAnimating(true);
|
|
1385
|
+
setTimeout(() => {
|
|
1386
|
+
setCurrentThoughtIndex((prev) => {
|
|
1387
|
+
return prev < thoughts.length - 1 ? prev + 1 : prev;
|
|
1388
|
+
});
|
|
1389
|
+
setIsAnimating(false);
|
|
1390
|
+
}, 300);
|
|
1391
|
+
}, interval);
|
|
1392
|
+
if (currentThoughtIndex === thoughts.length - 1) {
|
|
1393
|
+
clearInterval(timer);
|
|
1394
|
+
}
|
|
1395
|
+
return () => clearInterval(timer);
|
|
1396
|
+
}, [thoughts, interval, currentThoughtIndex]);
|
|
1397
|
+
return /* @__PURE__ */ jsxs10(
|
|
1398
|
+
"div",
|
|
1399
|
+
{
|
|
1400
|
+
ref,
|
|
1401
|
+
className: cn(thinkIndicatorVariants({ variant, size }), className, "alq--think-indicator"),
|
|
1402
|
+
...props,
|
|
1403
|
+
children: [
|
|
1404
|
+
loader || /* @__PURE__ */ jsx30(
|
|
1405
|
+
Loader,
|
|
1406
|
+
{
|
|
1407
|
+
className: cn(
|
|
1408
|
+
size === "sm" ? "h-3 w-3" : size === "lg" ? "h-5 w-5" : "h-4 w-4"
|
|
1409
|
+
)
|
|
1410
|
+
}
|
|
1411
|
+
),
|
|
1412
|
+
/* @__PURE__ */ jsx30(
|
|
1413
|
+
"div",
|
|
1414
|
+
{
|
|
1415
|
+
className: cn(
|
|
1416
|
+
"alq--think-indicator-text",
|
|
1417
|
+
"transition-all duration-300",
|
|
1418
|
+
isAnimating ? "opacity-0 -translate-y-2" : "opacity-100 translate-y-0"
|
|
1419
|
+
),
|
|
1420
|
+
children: thoughts[currentThoughtIndex]
|
|
1421
|
+
}
|
|
1422
|
+
)
|
|
1423
|
+
]
|
|
1424
|
+
}
|
|
1425
|
+
);
|
|
1426
|
+
}
|
|
1427
|
+
);
|
|
1428
|
+
ThinkIndicator.displayName = "ThinkIndicator";
|
|
1429
|
+
|
|
1430
|
+
// src/components/molecules/assistant-button.tsx
|
|
1431
|
+
import { jsx as jsx31, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1432
|
+
var AssistantSuggestions = React25.forwardRef(({ suggestions, showSuggestions, className }, ref) => {
|
|
1433
|
+
return /* @__PURE__ */ jsx31(
|
|
1434
|
+
"div",
|
|
1435
|
+
{
|
|
1436
|
+
ref,
|
|
1437
|
+
className: cn(
|
|
1438
|
+
"absolute bottom-[calc(100%+0.5rem)] right-0 pb-2 mb-4 alq--assistant-suggestions-container",
|
|
1439
|
+
"transition-all duration-300",
|
|
1440
|
+
showSuggestions ? "opacity-100 translate-y-0" : "opacity-0 translate-y-4",
|
|
1441
|
+
className
|
|
1442
|
+
),
|
|
1443
|
+
children: /* @__PURE__ */ jsx31("div", { className: "rounded-lg p-2 pr-0 w-64", children: suggestions.map((suggestion, index) => /* @__PURE__ */ jsxs11(
|
|
1444
|
+
"button",
|
|
1445
|
+
{
|
|
1446
|
+
onClick: () => suggestion.action?.(),
|
|
1447
|
+
style: {
|
|
1448
|
+
transitionDelay: showSuggestions ? `${index * 50}ms` : "0ms"
|
|
1449
|
+
},
|
|
1450
|
+
className: cn(
|
|
1451
|
+
"bg-background flex items-center gap-2 border p-2 pr-4 my-2 rounded-full ml-auto",
|
|
1452
|
+
"text-primary hover:bg-secondary",
|
|
1453
|
+
"transition-all duration-100",
|
|
1454
|
+
"origin-bottom w-fit",
|
|
1455
|
+
"alq--assistant-suggestion",
|
|
1456
|
+
showSuggestions ? "opacity-100 translate-y-0" : "opacity-0 translate-y-4"
|
|
1457
|
+
),
|
|
1458
|
+
children: [
|
|
1459
|
+
/* @__PURE__ */ jsx31(suggestion.icon, { className: "w-5 h-5 text-primary" }),
|
|
1460
|
+
/* @__PURE__ */ jsx31("span", { className: "text-xs whitespace-nowrap font-normal", children: suggestion.label })
|
|
1461
|
+
]
|
|
1462
|
+
},
|
|
1463
|
+
index
|
|
1464
|
+
)) })
|
|
1465
|
+
}
|
|
1466
|
+
);
|
|
1467
|
+
});
|
|
1468
|
+
AssistantSuggestions.displayName = "Suggestions";
|
|
1469
|
+
var AssistantButton = React25.forwardRef(
|
|
1470
|
+
({
|
|
1471
|
+
icon: Icon2,
|
|
1472
|
+
clickAction,
|
|
1473
|
+
className,
|
|
1474
|
+
suggestions = []
|
|
1475
|
+
}, ref) => {
|
|
1476
|
+
const [isVisible, setIsVisible] = useState3(false);
|
|
1477
|
+
const [showSuggestions, setShowSuggestions] = useState3(false);
|
|
1478
|
+
const handleMouseEnter = () => {
|
|
1479
|
+
setIsVisible(true);
|
|
1480
|
+
requestAnimationFrame(() => {
|
|
1481
|
+
requestAnimationFrame(() => {
|
|
1482
|
+
setShowSuggestions(true);
|
|
1483
|
+
});
|
|
1484
|
+
});
|
|
1485
|
+
};
|
|
1486
|
+
const handleMouseLeave = () => {
|
|
1487
|
+
setShowSuggestions(false);
|
|
1488
|
+
setTimeout(() => setIsVisible(false), 300);
|
|
1489
|
+
};
|
|
1490
|
+
return /* @__PURE__ */ jsx31(
|
|
1491
|
+
"div",
|
|
1492
|
+
{
|
|
1493
|
+
ref,
|
|
1494
|
+
className: cn(
|
|
1495
|
+
"fixed bottom-8 right-4 z-50",
|
|
1496
|
+
"alq--assistant-button-container",
|
|
1497
|
+
className
|
|
1498
|
+
),
|
|
1499
|
+
onMouseEnter: handleMouseEnter,
|
|
1500
|
+
onMouseLeave: handleMouseLeave,
|
|
1501
|
+
children: /* @__PURE__ */ jsxs11("div", { className: "relative group", children: [
|
|
1502
|
+
isVisible && suggestions.length > 0 && /* @__PURE__ */ jsx31(
|
|
1503
|
+
AssistantSuggestions,
|
|
1504
|
+
{
|
|
1505
|
+
suggestions,
|
|
1506
|
+
showSuggestions
|
|
1507
|
+
}
|
|
1508
|
+
),
|
|
1509
|
+
/* @__PURE__ */ jsx31(
|
|
1510
|
+
Button,
|
|
1511
|
+
{
|
|
1512
|
+
variant: "outline",
|
|
1513
|
+
size: "sm",
|
|
1514
|
+
className: cn(
|
|
1515
|
+
"fixed hover:bg-opacity-70 transition-all duration-300",
|
|
1516
|
+
"bottom-4 h-12 w-12 right-4 z-50 rounded-full p-2",
|
|
1517
|
+
"shadow-md",
|
|
1518
|
+
"hover:shadow-lg",
|
|
1519
|
+
showSuggestions ? "scale-110" : "hover:scale-105",
|
|
1520
|
+
"alq--assistant-button"
|
|
1521
|
+
),
|
|
1522
|
+
onClick: clickAction,
|
|
1523
|
+
children: /* @__PURE__ */ jsx31(
|
|
1524
|
+
Icon2,
|
|
1525
|
+
{
|
|
1526
|
+
style: { width: "22px", height: "22px" },
|
|
1527
|
+
className: "text-primary"
|
|
1528
|
+
}
|
|
1529
|
+
)
|
|
1530
|
+
}
|
|
1531
|
+
)
|
|
1532
|
+
] })
|
|
1533
|
+
}
|
|
1534
|
+
);
|
|
1535
|
+
}
|
|
1536
|
+
);
|
|
1537
|
+
AssistantButton.displayName = "AssistantButton";
|
|
1538
|
+
|
|
1539
|
+
// src/components/molecules/carousel.tsx
|
|
1540
|
+
import * as React26 from "react";
|
|
1541
|
+
import useEmblaCarousel from "embla-carousel-react";
|
|
1542
|
+
import { ArrowLeft, ArrowRight } from "lucide-react";
|
|
1543
|
+
import { jsx as jsx32, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1544
|
+
var CarouselContext = React26.createContext(null);
|
|
1545
|
+
function useCarousel() {
|
|
1546
|
+
const context = React26.useContext(CarouselContext);
|
|
1547
|
+
if (!context) {
|
|
1548
|
+
throw new Error("useCarousel must be used within a <Carousel />");
|
|
1549
|
+
}
|
|
1550
|
+
return context;
|
|
1551
|
+
}
|
|
1552
|
+
var Carousel = React26.forwardRef(
|
|
1553
|
+
({
|
|
1554
|
+
orientation = "horizontal",
|
|
1555
|
+
opts,
|
|
1556
|
+
setApi,
|
|
1557
|
+
plugins,
|
|
1558
|
+
className,
|
|
1559
|
+
children,
|
|
1560
|
+
...props
|
|
1561
|
+
}, ref) => {
|
|
1562
|
+
const [carouselRef, api] = useEmblaCarousel(
|
|
1563
|
+
{
|
|
1564
|
+
...opts,
|
|
1565
|
+
axis: orientation === "horizontal" ? "x" : "y"
|
|
1566
|
+
},
|
|
1567
|
+
plugins
|
|
1568
|
+
);
|
|
1569
|
+
const [canScrollPrev, setCanScrollPrev] = React26.useState(false);
|
|
1570
|
+
const [canScrollNext, setCanScrollNext] = React26.useState(false);
|
|
1571
|
+
const onSelect = React26.useCallback((api2) => {
|
|
1572
|
+
if (!api2) {
|
|
1573
|
+
return;
|
|
1574
|
+
}
|
|
1575
|
+
setCanScrollPrev(api2.canScrollPrev());
|
|
1576
|
+
setCanScrollNext(api2.canScrollNext());
|
|
1577
|
+
}, []);
|
|
1578
|
+
const scrollPrev = React26.useCallback(() => {
|
|
1579
|
+
api?.scrollPrev();
|
|
1580
|
+
}, [api]);
|
|
1581
|
+
const scrollNext = React26.useCallback(() => {
|
|
1582
|
+
api?.scrollNext();
|
|
1583
|
+
}, [api]);
|
|
1584
|
+
const handleKeyDown = React26.useCallback(
|
|
1585
|
+
(event) => {
|
|
1586
|
+
if (event.key === "ArrowLeft") {
|
|
1587
|
+
event.preventDefault();
|
|
1588
|
+
scrollPrev();
|
|
1589
|
+
} else if (event.key === "ArrowRight") {
|
|
1590
|
+
event.preventDefault();
|
|
1591
|
+
scrollNext();
|
|
1592
|
+
}
|
|
1593
|
+
},
|
|
1594
|
+
[scrollPrev, scrollNext]
|
|
1595
|
+
);
|
|
1596
|
+
React26.useEffect(() => {
|
|
1597
|
+
if (!api || !setApi) {
|
|
1598
|
+
return;
|
|
1599
|
+
}
|
|
1600
|
+
setApi(api);
|
|
1601
|
+
}, [api, setApi]);
|
|
1602
|
+
React26.useEffect(() => {
|
|
1603
|
+
if (!api) {
|
|
1604
|
+
return;
|
|
1605
|
+
}
|
|
1606
|
+
onSelect(api);
|
|
1607
|
+
api.on("reInit", onSelect);
|
|
1608
|
+
api.on("select", onSelect);
|
|
1609
|
+
return () => {
|
|
1610
|
+
api?.off("select", onSelect);
|
|
1611
|
+
};
|
|
1612
|
+
}, [api, onSelect]);
|
|
1613
|
+
return /* @__PURE__ */ jsx32(
|
|
1614
|
+
CarouselContext.Provider,
|
|
1615
|
+
{
|
|
1616
|
+
value: {
|
|
1617
|
+
carouselRef,
|
|
1618
|
+
api,
|
|
1619
|
+
opts,
|
|
1620
|
+
orientation: orientation || (opts?.axis === "y" ? "vertical" : "horizontal"),
|
|
1621
|
+
scrollPrev,
|
|
1622
|
+
scrollNext,
|
|
1623
|
+
canScrollPrev,
|
|
1624
|
+
canScrollNext
|
|
1625
|
+
},
|
|
1626
|
+
children: /* @__PURE__ */ jsx32(
|
|
1627
|
+
"div",
|
|
1628
|
+
{
|
|
1629
|
+
ref,
|
|
1630
|
+
onKeyDownCapture: handleKeyDown,
|
|
1631
|
+
className: cn("relative", className),
|
|
1632
|
+
role: "region",
|
|
1633
|
+
"aria-roledescription": "carousel",
|
|
1634
|
+
...props,
|
|
1635
|
+
children
|
|
1636
|
+
}
|
|
1637
|
+
)
|
|
1638
|
+
}
|
|
1639
|
+
);
|
|
1640
|
+
}
|
|
1641
|
+
);
|
|
1642
|
+
Carousel.displayName = "Carousel";
|
|
1643
|
+
var CarouselContent = React26.forwardRef(({ className, ...props }, ref) => {
|
|
1644
|
+
const { carouselRef, orientation } = useCarousel();
|
|
1645
|
+
return /* @__PURE__ */ jsx32("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ jsx32(
|
|
1646
|
+
"div",
|
|
1647
|
+
{
|
|
1648
|
+
ref,
|
|
1649
|
+
className: cn(
|
|
1650
|
+
"flex",
|
|
1651
|
+
orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col",
|
|
1652
|
+
className
|
|
1653
|
+
),
|
|
1654
|
+
...props
|
|
1655
|
+
}
|
|
1656
|
+
) });
|
|
1657
|
+
});
|
|
1658
|
+
CarouselContent.displayName = "CarouselContent";
|
|
1659
|
+
var CarouselItem = React26.forwardRef(({ className, ...props }, ref) => {
|
|
1660
|
+
const { orientation } = useCarousel();
|
|
1661
|
+
return /* @__PURE__ */ jsx32(
|
|
1662
|
+
"div",
|
|
1663
|
+
{
|
|
1664
|
+
ref,
|
|
1665
|
+
role: "group",
|
|
1666
|
+
"aria-roledescription": "slide",
|
|
1667
|
+
className: cn(
|
|
1668
|
+
"min-w-0 shrink-0 grow-0 basis-full",
|
|
1669
|
+
orientation === "horizontal" ? "pl-4" : "pt-4",
|
|
1670
|
+
className
|
|
1671
|
+
),
|
|
1672
|
+
...props
|
|
1673
|
+
}
|
|
1674
|
+
);
|
|
1675
|
+
});
|
|
1676
|
+
CarouselItem.displayName = "CarouselItem";
|
|
1677
|
+
var CarouselPrevious = React26.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
1678
|
+
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
1679
|
+
return /* @__PURE__ */ jsxs12(
|
|
1680
|
+
Button,
|
|
1681
|
+
{
|
|
1682
|
+
ref,
|
|
1683
|
+
variant,
|
|
1684
|
+
size,
|
|
1685
|
+
className: cn(
|
|
1686
|
+
"absolute h-8 w-8 rounded-full",
|
|
1687
|
+
orientation === "horizontal" ? "-left-12 top-1/2 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
1688
|
+
className
|
|
1689
|
+
),
|
|
1690
|
+
disabled: !canScrollPrev,
|
|
1691
|
+
onClick: scrollPrev,
|
|
1692
|
+
...props,
|
|
1693
|
+
children: [
|
|
1694
|
+
/* @__PURE__ */ jsx32(ArrowLeft, { className: "h-4 w-4" }),
|
|
1695
|
+
/* @__PURE__ */ jsx32("span", { className: "sr-only", children: "Previous slide" })
|
|
1696
|
+
]
|
|
1697
|
+
}
|
|
1698
|
+
);
|
|
1699
|
+
});
|
|
1700
|
+
CarouselPrevious.displayName = "CarouselPrevious";
|
|
1701
|
+
var CarouselNext = React26.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
1702
|
+
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
1703
|
+
return /* @__PURE__ */ jsxs12(
|
|
1704
|
+
Button,
|
|
1705
|
+
{
|
|
1706
|
+
ref,
|
|
1707
|
+
variant,
|
|
1708
|
+
size,
|
|
1709
|
+
className: cn(
|
|
1710
|
+
"absolute h-8 w-8 rounded-full",
|
|
1711
|
+
orientation === "horizontal" ? "-right-12 top-1/2 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
1712
|
+
className
|
|
1713
|
+
),
|
|
1714
|
+
disabled: !canScrollNext,
|
|
1715
|
+
onClick: scrollNext,
|
|
1716
|
+
...props,
|
|
1717
|
+
children: [
|
|
1718
|
+
/* @__PURE__ */ jsx32(ArrowRight, { className: "h-4 w-4" }),
|
|
1719
|
+
/* @__PURE__ */ jsx32("span", { className: "sr-only", children: "Next slide" })
|
|
1720
|
+
]
|
|
1484
1721
|
}
|
|
1485
1722
|
);
|
|
1486
|
-
};
|
|
1487
|
-
|
|
1723
|
+
});
|
|
1724
|
+
CarouselNext.displayName = "CarouselNext";
|
|
1488
1725
|
|
|
1489
|
-
// src/components/
|
|
1490
|
-
import * as
|
|
1491
|
-
import * as
|
|
1492
|
-
import { cva as
|
|
1493
|
-
import {
|
|
1494
|
-
import { jsx as
|
|
1495
|
-
var
|
|
1496
|
-
|
|
1726
|
+
// src/components/molecules/navigation-menu.tsx
|
|
1727
|
+
import * as React27 from "react";
|
|
1728
|
+
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
|
1729
|
+
import { cva as cva9 } from "class-variance-authority";
|
|
1730
|
+
import { ChevronDown as ChevronDown2 } from "lucide-react";
|
|
1731
|
+
import { jsx as jsx33, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1732
|
+
var NavigationMenu = React27.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs13(
|
|
1733
|
+
NavigationMenuPrimitive.Root,
|
|
1497
1734
|
{
|
|
1498
1735
|
ref,
|
|
1499
1736
|
className: cn(
|
|
1500
|
-
"
|
|
1737
|
+
"relative z-10 flex max-w-max flex-1 items-center justify-center",
|
|
1501
1738
|
className
|
|
1502
1739
|
),
|
|
1503
|
-
...props
|
|
1740
|
+
...props,
|
|
1741
|
+
children: [
|
|
1742
|
+
children,
|
|
1743
|
+
/* @__PURE__ */ jsx33(NavigationMenuViewport, {})
|
|
1744
|
+
]
|
|
1504
1745
|
}
|
|
1505
1746
|
));
|
|
1506
|
-
|
|
1507
|
-
var
|
|
1508
|
-
|
|
1509
|
-
{
|
|
1510
|
-
variants: {
|
|
1511
|
-
variant: {
|
|
1512
|
-
default: "border bg-background text-foreground",
|
|
1513
|
-
destructive: "destructive group border-destructive bg-destructive text-destructive-foreground"
|
|
1514
|
-
}
|
|
1515
|
-
},
|
|
1516
|
-
defaultVariants: {
|
|
1517
|
-
variant: "default"
|
|
1518
|
-
}
|
|
1519
|
-
}
|
|
1520
|
-
);
|
|
1521
|
-
var Toast = React23.forwardRef(({ className, variant, ...props }, ref) => {
|
|
1522
|
-
return /* @__PURE__ */ jsx29(
|
|
1523
|
-
ToastPrimitives.Root,
|
|
1524
|
-
{
|
|
1525
|
-
ref,
|
|
1526
|
-
className: cn(toastVariants({ variant }), className),
|
|
1527
|
-
...props
|
|
1528
|
-
}
|
|
1529
|
-
);
|
|
1530
|
-
});
|
|
1531
|
-
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
1532
|
-
var ToastAction = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx29(
|
|
1533
|
-
ToastPrimitives.Action,
|
|
1747
|
+
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
1748
|
+
var NavigationMenuList = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx33(
|
|
1749
|
+
NavigationMenuPrimitive.List,
|
|
1534
1750
|
{
|
|
1535
1751
|
ref,
|
|
1536
1752
|
className: cn(
|
|
1537
|
-
"
|
|
1753
|
+
"group flex flex-1 list-none items-center justify-center space-x-1",
|
|
1538
1754
|
className
|
|
1539
1755
|
),
|
|
1540
1756
|
...props
|
|
1541
1757
|
}
|
|
1542
1758
|
));
|
|
1543
|
-
|
|
1544
|
-
var
|
|
1545
|
-
|
|
1759
|
+
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
1760
|
+
var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
1761
|
+
var navigationMenuTriggerStyle = cva9(
|
|
1762
|
+
"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"
|
|
1763
|
+
);
|
|
1764
|
+
var NavigationMenuTrigger = React27.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs13(
|
|
1765
|
+
NavigationMenuPrimitive.Trigger,
|
|
1546
1766
|
{
|
|
1547
1767
|
ref,
|
|
1548
|
-
className: cn(
|
|
1549
|
-
"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",
|
|
1550
|
-
className
|
|
1551
|
-
),
|
|
1552
|
-
"toast-close": "",
|
|
1768
|
+
className: cn(navigationMenuTriggerStyle(), "group", className),
|
|
1553
1769
|
...props,
|
|
1554
|
-
children:
|
|
1770
|
+
children: [
|
|
1771
|
+
children,
|
|
1772
|
+
" ",
|
|
1773
|
+
/* @__PURE__ */ jsx33(
|
|
1774
|
+
ChevronDown2,
|
|
1775
|
+
{
|
|
1776
|
+
className: "relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180",
|
|
1777
|
+
"aria-hidden": "true"
|
|
1778
|
+
}
|
|
1779
|
+
)
|
|
1780
|
+
]
|
|
1555
1781
|
}
|
|
1556
1782
|
));
|
|
1557
|
-
|
|
1558
|
-
var
|
|
1559
|
-
|
|
1783
|
+
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
1784
|
+
var NavigationMenuContent = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx33(
|
|
1785
|
+
NavigationMenuPrimitive.Content,
|
|
1560
1786
|
{
|
|
1561
1787
|
ref,
|
|
1562
|
-
className: cn(
|
|
1788
|
+
className: cn(
|
|
1789
|
+
"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 ",
|
|
1790
|
+
className
|
|
1791
|
+
),
|
|
1563
1792
|
...props
|
|
1564
1793
|
}
|
|
1565
1794
|
));
|
|
1566
|
-
|
|
1567
|
-
var
|
|
1568
|
-
|
|
1795
|
+
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
1796
|
+
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
1797
|
+
var NavigationMenuViewport = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx33("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsx33(
|
|
1798
|
+
NavigationMenuPrimitive.Viewport,
|
|
1569
1799
|
{
|
|
1800
|
+
className: cn(
|
|
1801
|
+
"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)]",
|
|
1802
|
+
className
|
|
1803
|
+
),
|
|
1570
1804
|
ref,
|
|
1571
|
-
className: cn("text-sm opacity-90", className),
|
|
1572
1805
|
...props
|
|
1573
1806
|
}
|
|
1574
|
-
));
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
import * as React24 from "react";
|
|
1579
|
-
import { cva as cva8 } from "class-variance-authority";
|
|
1580
|
-
import { Loader2 } from "lucide-react";
|
|
1581
|
-
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
1582
|
-
var loaderVariants = cva8(
|
|
1583
|
-
"flex justify-center items-center w-full",
|
|
1584
|
-
{
|
|
1585
|
-
variants: {
|
|
1586
|
-
size: {
|
|
1587
|
-
small: "h-6 w-6",
|
|
1588
|
-
medium: "h-8 w-8",
|
|
1589
|
-
large: "h-12 w-12",
|
|
1590
|
-
xl: "h-24 w-24"
|
|
1591
|
-
},
|
|
1592
|
-
colorVariant: {
|
|
1593
|
-
default: "text-primary",
|
|
1594
|
-
primary: "text-primary",
|
|
1595
|
-
secondary: "text-secondary",
|
|
1596
|
-
destructive: "text-destructive"
|
|
1597
|
-
}
|
|
1598
|
-
},
|
|
1599
|
-
defaultVariants: {
|
|
1600
|
-
size: "medium",
|
|
1601
|
-
colorVariant: "default"
|
|
1602
|
-
}
|
|
1603
|
-
}
|
|
1604
|
-
);
|
|
1605
|
-
var Loader = React24.forwardRef(
|
|
1606
|
-
({ className, size, colorVariant, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
1607
|
-
"div",
|
|
1608
|
-
{
|
|
1609
|
-
ref,
|
|
1610
|
-
className: cn(loaderVariants({ size, colorVariant }), "flex justify-center items-center h-full w-full", className),
|
|
1611
|
-
...props,
|
|
1612
|
-
children: /* @__PURE__ */ jsx30(Loader2, { className: "animate-spin" })
|
|
1613
|
-
}
|
|
1614
|
-
)
|
|
1615
|
-
);
|
|
1616
|
-
Loader.displayName = "Loader";
|
|
1617
|
-
|
|
1618
|
-
// src/components/hooks/use-toast.ts
|
|
1619
|
-
import * as React25 from "react";
|
|
1620
|
-
|
|
1621
|
-
// src/components/atoms/ui/toaster.tsx
|
|
1622
|
-
import { jsx as jsx31, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1623
|
-
|
|
1624
|
-
// src/components/atoms/ui/think-indicator.tsx
|
|
1625
|
-
import * as React26 from "react";
|
|
1626
|
-
import { useState as useState3, useEffect as useEffect3 } from "react";
|
|
1627
|
-
import { cva as cva9 } from "class-variance-authority";
|
|
1628
|
-
import { jsx as jsx32, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1629
|
-
var thinkIndicatorVariants = cva9(
|
|
1630
|
-
"flex items-center gap-3",
|
|
1807
|
+
) }));
|
|
1808
|
+
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
1809
|
+
var NavigationMenuIndicator = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx33(
|
|
1810
|
+
NavigationMenuPrimitive.Indicator,
|
|
1631
1811
|
{
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
default: "gap-3",
|
|
1640
|
-
sm: "gap-2",
|
|
1641
|
-
lg: "gap-4"
|
|
1642
|
-
}
|
|
1643
|
-
},
|
|
1644
|
-
defaultVariants: {
|
|
1645
|
-
variant: "default",
|
|
1646
|
-
size: "default"
|
|
1647
|
-
}
|
|
1648
|
-
}
|
|
1649
|
-
);
|
|
1650
|
-
var ThinkIndicator = React26.forwardRef(
|
|
1651
|
-
({
|
|
1652
|
-
className,
|
|
1653
|
-
variant,
|
|
1654
|
-
size,
|
|
1655
|
-
thoughts = [
|
|
1656
|
-
"Analyzing your request...",
|
|
1657
|
-
"Processing information...",
|
|
1658
|
-
"Formulating response..."
|
|
1659
|
-
],
|
|
1660
|
-
interval = 5e3,
|
|
1661
|
-
loader,
|
|
1662
|
-
...props
|
|
1663
|
-
}, ref) => {
|
|
1664
|
-
const [currentThoughtIndex, setCurrentThoughtIndex] = useState3(0);
|
|
1665
|
-
const [isAnimating, setIsAnimating] = useState3(false);
|
|
1666
|
-
useEffect3(() => {
|
|
1667
|
-
const timer = setInterval(() => {
|
|
1668
|
-
setIsAnimating(true);
|
|
1669
|
-
setTimeout(() => {
|
|
1670
|
-
setCurrentThoughtIndex((prev) => {
|
|
1671
|
-
return prev < thoughts.length - 1 ? prev + 1 : prev;
|
|
1672
|
-
});
|
|
1673
|
-
setIsAnimating(false);
|
|
1674
|
-
}, 300);
|
|
1675
|
-
}, interval);
|
|
1676
|
-
if (currentThoughtIndex === thoughts.length - 1) {
|
|
1677
|
-
clearInterval(timer);
|
|
1678
|
-
}
|
|
1679
|
-
return () => clearInterval(timer);
|
|
1680
|
-
}, [thoughts, interval, currentThoughtIndex]);
|
|
1681
|
-
return /* @__PURE__ */ jsxs12(
|
|
1682
|
-
"div",
|
|
1683
|
-
{
|
|
1684
|
-
ref,
|
|
1685
|
-
className: cn(thinkIndicatorVariants({ variant, size }), className, "alq--think-indicator"),
|
|
1686
|
-
...props,
|
|
1687
|
-
children: [
|
|
1688
|
-
loader || /* @__PURE__ */ jsx32(
|
|
1689
|
-
Loader,
|
|
1690
|
-
{
|
|
1691
|
-
className: cn(
|
|
1692
|
-
size === "sm" ? "h-3 w-3" : size === "lg" ? "h-5 w-5" : "h-4 w-4"
|
|
1693
|
-
)
|
|
1694
|
-
}
|
|
1695
|
-
),
|
|
1696
|
-
/* @__PURE__ */ jsx32(
|
|
1697
|
-
"div",
|
|
1698
|
-
{
|
|
1699
|
-
className: cn(
|
|
1700
|
-
"alq--think-indicator-text",
|
|
1701
|
-
"transition-all duration-300",
|
|
1702
|
-
isAnimating ? "opacity-0 -translate-y-2" : "opacity-100 translate-y-0"
|
|
1703
|
-
),
|
|
1704
|
-
children: thoughts[currentThoughtIndex]
|
|
1705
|
-
}
|
|
1706
|
-
)
|
|
1707
|
-
]
|
|
1708
|
-
}
|
|
1709
|
-
);
|
|
1812
|
+
ref,
|
|
1813
|
+
className: cn(
|
|
1814
|
+
"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",
|
|
1815
|
+
className
|
|
1816
|
+
),
|
|
1817
|
+
...props,
|
|
1818
|
+
children: /* @__PURE__ */ jsx33("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
1710
1819
|
}
|
|
1711
|
-
);
|
|
1712
|
-
|
|
1820
|
+
));
|
|
1821
|
+
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
1713
1822
|
|
|
1714
1823
|
// src/components/molecules/sidebar.tsx
|
|
1715
|
-
import
|
|
1824
|
+
import * as React28 from "react";
|
|
1825
|
+
import { cva as cva10 } from "class-variance-authority";
|
|
1826
|
+
import { jsx as jsx34, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1716
1827
|
var sidebarVariants = cva10(
|
|
1717
1828
|
"flex flex-col border-r",
|
|
1718
1829
|
{
|
|
@@ -1728,7 +1839,7 @@ var sidebarVariants = cva10(
|
|
|
1728
1839
|
}
|
|
1729
1840
|
}
|
|
1730
1841
|
);
|
|
1731
|
-
var SidebarFooter =
|
|
1842
|
+
var SidebarFooter = React28.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx34(
|
|
1732
1843
|
"div",
|
|
1733
1844
|
{
|
|
1734
1845
|
ref,
|
|
@@ -1738,7 +1849,7 @@ var SidebarFooter = React27.forwardRef(({ className, children, ...props }, ref)
|
|
|
1738
1849
|
}
|
|
1739
1850
|
));
|
|
1740
1851
|
SidebarFooter.displayName = "SidebarFooter";
|
|
1741
|
-
var Sidebar =
|
|
1852
|
+
var Sidebar = React28.forwardRef(
|
|
1742
1853
|
({
|
|
1743
1854
|
className,
|
|
1744
1855
|
items,
|
|
@@ -1751,8 +1862,8 @@ var Sidebar = React27.forwardRef(
|
|
|
1751
1862
|
buttonClassName,
|
|
1752
1863
|
...props
|
|
1753
1864
|
}, ref) => {
|
|
1754
|
-
return /* @__PURE__ */
|
|
1755
|
-
/* @__PURE__ */
|
|
1865
|
+
return /* @__PURE__ */ jsx34("div", { className: cn(className, "alq--navigation-sidebar h-full"), ref, ...props, children: /* @__PURE__ */ jsxs14("aside", { className: cn(sidebarVariants({ size }), "h-full"), children: [
|
|
1866
|
+
/* @__PURE__ */ jsx34(ScrollArea, { className: "flex-grow justify-between", children: /* @__PURE__ */ jsx34("div", { className: "flex flex-col gap-2 p-4", children: items.map((item) => /* @__PURE__ */ jsxs14(
|
|
1756
1867
|
Button,
|
|
1757
1868
|
{
|
|
1758
1869
|
variant: selectedSection?.name === item.name ? selectedVariant : defaultVariant,
|
|
@@ -1764,13 +1875,13 @@ var Sidebar = React27.forwardRef(
|
|
|
1764
1875
|
}
|
|
1765
1876
|
},
|
|
1766
1877
|
children: [
|
|
1767
|
-
item.icon && /* @__PURE__ */
|
|
1878
|
+
item.icon && /* @__PURE__ */ jsx34(item.icon, { className: "mr-2 h-4 w-4" }),
|
|
1768
1879
|
item.name
|
|
1769
1880
|
]
|
|
1770
1881
|
},
|
|
1771
1882
|
item.name
|
|
1772
1883
|
)) }) }),
|
|
1773
|
-
footerContent && /* @__PURE__ */
|
|
1884
|
+
footerContent && /* @__PURE__ */ jsx34(SidebarFooter, { children: footerContent })
|
|
1774
1885
|
] }) });
|
|
1775
1886
|
}
|
|
1776
1887
|
);
|
|
@@ -1778,10 +1889,10 @@ var Sidebar = React27.forwardRef(
|
|
|
1778
1889
|
// src/components/molecules/sonner.tsx
|
|
1779
1890
|
import { useTheme } from "next-themes";
|
|
1780
1891
|
import { Toaster as Sonner } from "sonner";
|
|
1781
|
-
import { jsx as
|
|
1892
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
1782
1893
|
var Toaster = ({ ...props }) => {
|
|
1783
1894
|
const { theme = "system" } = useTheme();
|
|
1784
|
-
return /* @__PURE__ */
|
|
1895
|
+
return /* @__PURE__ */ jsx35(
|
|
1785
1896
|
Sonner,
|
|
1786
1897
|
{
|
|
1787
1898
|
theme,
|
|
@@ -1800,14 +1911,14 @@ var Toaster = ({ ...props }) => {
|
|
|
1800
1911
|
};
|
|
1801
1912
|
|
|
1802
1913
|
// src/components/molecules/rating-stars.tsx
|
|
1803
|
-
import * as
|
|
1914
|
+
import * as React29 from "react";
|
|
1804
1915
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
1805
1916
|
import { Star } from "lucide-react";
|
|
1806
|
-
import { jsx as
|
|
1917
|
+
import { jsx as jsx36, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1807
1918
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
1808
1919
|
var Tooltip = TooltipPrimitive.Root;
|
|
1809
1920
|
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
1810
|
-
var TooltipContent =
|
|
1921
|
+
var TooltipContent = React29.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx36(
|
|
1811
1922
|
TooltipPrimitive.Content,
|
|
1812
1923
|
{
|
|
1813
1924
|
ref,
|
|
@@ -1820,14 +1931,14 @@ var TooltipContent = React28.forwardRef(({ className, sideOffset = 4, ...props }
|
|
|
1820
1931
|
}
|
|
1821
1932
|
));
|
|
1822
1933
|
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
1823
|
-
var StarRating =
|
|
1934
|
+
var StarRating = React29.forwardRef(({ rating, onRate }, ref) => /* @__PURE__ */ jsx36("div", { ref, className: "flex", children: [1, 2, 3, 4, 5].map((star) => /* @__PURE__ */ jsx36(
|
|
1824
1935
|
Button,
|
|
1825
1936
|
{
|
|
1826
1937
|
onClick: () => onRate(star),
|
|
1827
1938
|
variant: "link",
|
|
1828
1939
|
className: "p-1 transition-colors [&_svg]:size-5 h-5",
|
|
1829
1940
|
"aria-label": `Rate ${star} star${star !== 1 ? "s" : ""}`,
|
|
1830
|
-
children: /* @__PURE__ */
|
|
1941
|
+
children: /* @__PURE__ */ jsx36(
|
|
1831
1942
|
Star,
|
|
1832
1943
|
{
|
|
1833
1944
|
className: cn(
|
|
@@ -1840,19 +1951,19 @@ var StarRating = React28.forwardRef(({ rating, onRate }, ref) => /* @__PURE__ */
|
|
|
1840
1951
|
star
|
|
1841
1952
|
)) }));
|
|
1842
1953
|
StarRating.displayName = "StarRating";
|
|
1843
|
-
var RatingStars =
|
|
1954
|
+
var RatingStars = React29.forwardRef(({
|
|
1844
1955
|
currentRating = 0,
|
|
1845
1956
|
onRate,
|
|
1846
1957
|
className,
|
|
1847
1958
|
isLoading
|
|
1848
1959
|
}, ref) => {
|
|
1849
|
-
const [open, setOpen] =
|
|
1850
|
-
const [animate, setAnimate] =
|
|
1960
|
+
const [open, setOpen] = React29.useState(false);
|
|
1961
|
+
const [animate, setAnimate] = React29.useState(false);
|
|
1851
1962
|
const handleRate = (rating) => {
|
|
1852
1963
|
onRate(rating);
|
|
1853
1964
|
setOpen(false);
|
|
1854
1965
|
};
|
|
1855
|
-
|
|
1966
|
+
React29.useEffect(() => {
|
|
1856
1967
|
if (currentRating > 0) {
|
|
1857
1968
|
setAnimate(true);
|
|
1858
1969
|
const timer = setTimeout(() => setAnimate(false), 150);
|
|
@@ -1860,8 +1971,8 @@ var RatingStars = React28.forwardRef(({
|
|
|
1860
1971
|
}
|
|
1861
1972
|
}, [currentRating]);
|
|
1862
1973
|
const hasRated = currentRating > 0;
|
|
1863
|
-
return /* @__PURE__ */
|
|
1864
|
-
/* @__PURE__ */
|
|
1974
|
+
return /* @__PURE__ */ jsx36(TooltipProvider, { children: /* @__PURE__ */ jsxs15(Tooltip, { open, onOpenChange: setOpen, children: [
|
|
1975
|
+
/* @__PURE__ */ jsx36(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx36(
|
|
1865
1976
|
Button,
|
|
1866
1977
|
{
|
|
1867
1978
|
ref,
|
|
@@ -1872,7 +1983,7 @@ var RatingStars = React28.forwardRef(({
|
|
|
1872
1983
|
),
|
|
1873
1984
|
disabled: isLoading,
|
|
1874
1985
|
onClick: () => setOpen(!open),
|
|
1875
|
-
children: /* @__PURE__ */
|
|
1986
|
+
children: /* @__PURE__ */ jsx36(
|
|
1876
1987
|
Star,
|
|
1877
1988
|
{
|
|
1878
1989
|
className: cn(
|
|
@@ -1885,7 +1996,7 @@ var RatingStars = React28.forwardRef(({
|
|
|
1885
1996
|
)
|
|
1886
1997
|
}
|
|
1887
1998
|
) }),
|
|
1888
|
-
/* @__PURE__ */
|
|
1999
|
+
/* @__PURE__ */ jsx36(TooltipContent, { side: "top", align: "center", className: "p-0", children: /* @__PURE__ */ jsx36("div", { className: "p-2 bg-background", children: /* @__PURE__ */ jsx36(
|
|
1889
2000
|
StarRating,
|
|
1890
2001
|
{
|
|
1891
2002
|
rating: currentRating,
|
|
@@ -1897,10 +2008,10 @@ var RatingStars = React28.forwardRef(({
|
|
|
1897
2008
|
RatingStars.displayName = "RatingStars";
|
|
1898
2009
|
|
|
1899
2010
|
// src/components/molecules/rating-thumbs.tsx
|
|
1900
|
-
import * as
|
|
2011
|
+
import * as React30 from "react";
|
|
1901
2012
|
import { ThumbsUp, ThumbsDown } from "lucide-react";
|
|
1902
|
-
import { jsx as
|
|
1903
|
-
var RatingThumbs =
|
|
2013
|
+
import { jsx as jsx37, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2014
|
+
var RatingThumbs = React30.forwardRef(
|
|
1904
2015
|
({
|
|
1905
2016
|
currentRating,
|
|
1906
2017
|
onRate,
|
|
@@ -1908,15 +2019,15 @@ var RatingThumbs = React29.forwardRef(
|
|
|
1908
2019
|
className,
|
|
1909
2020
|
isLoading
|
|
1910
2021
|
}, ref) => {
|
|
1911
|
-
const [animate, setAnimate] =
|
|
1912
|
-
|
|
2022
|
+
const [animate, setAnimate] = React30.useState(false);
|
|
2023
|
+
React30.useEffect(() => {
|
|
1913
2024
|
if (currentRating) {
|
|
1914
2025
|
setAnimate(true);
|
|
1915
2026
|
const timer = setTimeout(() => setAnimate(false), 150);
|
|
1916
2027
|
return () => clearTimeout(timer);
|
|
1917
2028
|
}
|
|
1918
2029
|
}, [currentRating]);
|
|
1919
|
-
return /* @__PURE__ */
|
|
2030
|
+
return /* @__PURE__ */ jsxs16(
|
|
1920
2031
|
"div",
|
|
1921
2032
|
{
|
|
1922
2033
|
ref,
|
|
@@ -1927,7 +2038,7 @@ var RatingThumbs = React29.forwardRef(
|
|
|
1927
2038
|
className
|
|
1928
2039
|
),
|
|
1929
2040
|
children: [
|
|
1930
|
-
/* @__PURE__ */
|
|
2041
|
+
/* @__PURE__ */ jsx37(
|
|
1931
2042
|
Button,
|
|
1932
2043
|
{
|
|
1933
2044
|
variant: "link",
|
|
@@ -1938,7 +2049,7 @@ var RatingThumbs = React29.forwardRef(
|
|
|
1938
2049
|
),
|
|
1939
2050
|
"aria-label": "Thumbs up",
|
|
1940
2051
|
disabled: isLoading,
|
|
1941
|
-
children: /* @__PURE__ */
|
|
2052
|
+
children: /* @__PURE__ */ jsx37(
|
|
1942
2053
|
ThumbsUp,
|
|
1943
2054
|
{
|
|
1944
2055
|
className: cn(
|
|
@@ -1951,7 +2062,7 @@ var RatingThumbs = React29.forwardRef(
|
|
|
1951
2062
|
)
|
|
1952
2063
|
}
|
|
1953
2064
|
),
|
|
1954
|
-
/* @__PURE__ */
|
|
2065
|
+
/* @__PURE__ */ jsx37(
|
|
1955
2066
|
Button,
|
|
1956
2067
|
{
|
|
1957
2068
|
variant: "link",
|
|
@@ -1962,7 +2073,7 @@ var RatingThumbs = React29.forwardRef(
|
|
|
1962
2073
|
),
|
|
1963
2074
|
"aria-label": "Thumbs down",
|
|
1964
2075
|
disabled: isLoading,
|
|
1965
|
-
children: /* @__PURE__ */
|
|
2076
|
+
children: /* @__PURE__ */ jsx37(
|
|
1966
2077
|
ThumbsDown,
|
|
1967
2078
|
{
|
|
1968
2079
|
className: cn(
|
|
@@ -1983,30 +2094,30 @@ var RatingThumbs = React29.forwardRef(
|
|
|
1983
2094
|
RatingThumbs.displayName = "RatingThumbs";
|
|
1984
2095
|
|
|
1985
2096
|
// src/components/molecules/rating-comment.tsx
|
|
1986
|
-
import * as
|
|
2097
|
+
import * as React31 from "react";
|
|
1987
2098
|
import { Book } from "lucide-react";
|
|
1988
|
-
import { jsx as
|
|
1989
|
-
var RatingComment =
|
|
2099
|
+
import { jsx as jsx38, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2100
|
+
var RatingComment = React31.forwardRef(
|
|
1990
2101
|
({ currentRating, onRate, className, isLoading }, ref) => {
|
|
1991
|
-
const [open, setOpen] =
|
|
1992
|
-
const [comment, setComment] =
|
|
1993
|
-
const [animate, setAnimate] =
|
|
2102
|
+
const [open, setOpen] = React31.useState(false);
|
|
2103
|
+
const [comment, setComment] = React31.useState("");
|
|
2104
|
+
const [animate, setAnimate] = React31.useState(false);
|
|
1994
2105
|
const handleRate = () => {
|
|
1995
2106
|
onRate(comment);
|
|
1996
2107
|
setOpen(false);
|
|
1997
2108
|
};
|
|
1998
|
-
|
|
2109
|
+
React31.useEffect(() => {
|
|
1999
2110
|
if (currentRating) {
|
|
2000
2111
|
setAnimate(true);
|
|
2001
2112
|
const timer = setTimeout(() => setAnimate(false), 150);
|
|
2002
2113
|
return () => clearTimeout(timer);
|
|
2003
2114
|
}
|
|
2004
2115
|
}, [currentRating]);
|
|
2005
|
-
|
|
2116
|
+
React31.useEffect(() => {
|
|
2006
2117
|
setComment("");
|
|
2007
2118
|
}, [open]);
|
|
2008
|
-
return /* @__PURE__ */
|
|
2009
|
-
/* @__PURE__ */
|
|
2119
|
+
return /* @__PURE__ */ jsxs17(Dialog, { open, onOpenChange: setOpen, children: [
|
|
2120
|
+
/* @__PURE__ */ jsx38(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsx38(
|
|
2010
2121
|
Button,
|
|
2011
2122
|
{
|
|
2012
2123
|
ref,
|
|
@@ -2017,7 +2128,7 @@ var RatingComment = React30.forwardRef(
|
|
|
2017
2128
|
className
|
|
2018
2129
|
),
|
|
2019
2130
|
disabled: isLoading,
|
|
2020
|
-
children: /* @__PURE__ */
|
|
2131
|
+
children: /* @__PURE__ */ jsx38(
|
|
2021
2132
|
Book,
|
|
2022
2133
|
{
|
|
2023
2134
|
className: cn(
|
|
@@ -2030,10 +2141,10 @@ var RatingComment = React30.forwardRef(
|
|
|
2030
2141
|
)
|
|
2031
2142
|
}
|
|
2032
2143
|
) }),
|
|
2033
|
-
/* @__PURE__ */
|
|
2034
|
-
/* @__PURE__ */
|
|
2035
|
-
/* @__PURE__ */
|
|
2036
|
-
/* @__PURE__ */
|
|
2144
|
+
/* @__PURE__ */ jsx38(DialogOverlay, { className: "fixed inset-0 bg-black bg-opacity-50" }),
|
|
2145
|
+
/* @__PURE__ */ jsxs17(DialogContent, { "aria-describedby": void 0, children: [
|
|
2146
|
+
/* @__PURE__ */ jsx38(DialogTitle, { className: "text-lg font-medium", children: "Deja un comentario" }),
|
|
2147
|
+
/* @__PURE__ */ jsx38(
|
|
2037
2148
|
"textarea",
|
|
2038
2149
|
{
|
|
2039
2150
|
className: "mt-4 w-full p-2 border rounded-md focus:outline-none focus:ring-2 focus:ring-primary",
|
|
@@ -2042,7 +2153,7 @@ var RatingComment = React30.forwardRef(
|
|
|
2042
2153
|
onChange: (e) => setComment(e.target.value)
|
|
2043
2154
|
}
|
|
2044
2155
|
),
|
|
2045
|
-
/* @__PURE__ */
|
|
2156
|
+
/* @__PURE__ */ jsx38("div", { className: "mt-4 flex justify-end", children: /* @__PURE__ */ jsx38(
|
|
2046
2157
|
Button,
|
|
2047
2158
|
{
|
|
2048
2159
|
onClick: handleRate,
|
|
@@ -2057,27 +2168,27 @@ var RatingComment = React30.forwardRef(
|
|
|
2057
2168
|
RatingComment.displayName = "RatingComment";
|
|
2058
2169
|
|
|
2059
2170
|
// src/components/molecules/call-out.tsx
|
|
2060
|
-
import * as
|
|
2171
|
+
import * as React32 from "react";
|
|
2061
2172
|
|
|
2062
2173
|
// src/components/hooks/use-text-streaming.ts
|
|
2063
|
-
import { useEffect as
|
|
2174
|
+
import { useEffect as useEffect8, useRef, useState as useState8 } from "react";
|
|
2064
2175
|
var CHAR_DELAY = 25;
|
|
2065
2176
|
var PUNCTUATION_DELAY = 200;
|
|
2066
2177
|
var PUNCTUATION_MARKS = [".", "!", "?", ";", ":"];
|
|
2067
2178
|
function useTextStreaming(content, shouldStream, handleIsTextStreaming) {
|
|
2068
|
-
const [displayedContent, setDisplayedContent] =
|
|
2179
|
+
const [displayedContent, setDisplayedContent] = useState8("");
|
|
2069
2180
|
const timeoutId = useRef(null);
|
|
2070
2181
|
const hasStartedStreaming = useRef(false);
|
|
2071
2182
|
const getDelayForChar = (text, position) => {
|
|
2072
2183
|
if (position === 0) return CHAR_DELAY;
|
|
2073
|
-
const previousChar = text[position - 1];
|
|
2184
|
+
const previousChar = text[position - 1] || "";
|
|
2074
2185
|
const isEllipsis = text.slice(position - 1, position + 2) === "...";
|
|
2075
2186
|
if (isEllipsis) {
|
|
2076
2187
|
return CHAR_DELAY;
|
|
2077
2188
|
}
|
|
2078
2189
|
return PUNCTUATION_MARKS.includes(previousChar) ? PUNCTUATION_DELAY : CHAR_DELAY;
|
|
2079
2190
|
};
|
|
2080
|
-
|
|
2191
|
+
useEffect8(() => {
|
|
2081
2192
|
if (!shouldStream && !hasStartedStreaming.current) {
|
|
2082
2193
|
setDisplayedContent(content);
|
|
2083
2194
|
handleIsTextStreaming?.(false);
|
|
@@ -2107,9 +2218,9 @@ function useTextStreaming(content, shouldStream, handleIsTextStreaming) {
|
|
|
2107
2218
|
}
|
|
2108
2219
|
|
|
2109
2220
|
// src/components/molecules/call-out.tsx
|
|
2110
|
-
import { jsx as
|
|
2111
|
-
var CallOut =
|
|
2112
|
-
return /* @__PURE__ */
|
|
2221
|
+
import { jsx as jsx39, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2222
|
+
var CallOut = React32.forwardRef(({ className, children, role, ...props }, ref) => {
|
|
2223
|
+
return /* @__PURE__ */ jsx39(
|
|
2113
2224
|
"div",
|
|
2114
2225
|
{
|
|
2115
2226
|
ref,
|
|
@@ -2120,8 +2231,8 @@ var CallOut = React31.forwardRef(({ className, children, role, ...props }, ref)
|
|
|
2120
2231
|
}
|
|
2121
2232
|
);
|
|
2122
2233
|
});
|
|
2123
|
-
var CallOutDate =
|
|
2124
|
-
return /* @__PURE__ */
|
|
2234
|
+
var CallOutDate = React32.forwardRef(({ className, children, ...props }, ref) => {
|
|
2235
|
+
return /* @__PURE__ */ jsx39(
|
|
2125
2236
|
"div",
|
|
2126
2237
|
{
|
|
2127
2238
|
ref,
|
|
@@ -2135,13 +2246,13 @@ var CallOutDate = React31.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
2135
2246
|
}
|
|
2136
2247
|
);
|
|
2137
2248
|
});
|
|
2138
|
-
var CallOutActions =
|
|
2139
|
-
const [isLoading, setIsLoading] =
|
|
2140
|
-
const [isClicked, setIsClicked] =
|
|
2249
|
+
var CallOutActions = React32.forwardRef(({ className, actions, role, message, ...props }, ref) => {
|
|
2250
|
+
const [isLoading, setIsLoading] = React32.useState(false);
|
|
2251
|
+
const [isClicked, setIsClicked] = React32.useState(false);
|
|
2141
2252
|
if (role === "user") {
|
|
2142
2253
|
return null;
|
|
2143
2254
|
}
|
|
2144
|
-
return /* @__PURE__ */
|
|
2255
|
+
return /* @__PURE__ */ jsx39("div", { ref, className: cn("alq--callout-actions", className), ...props, children: actions.map((action) => /* @__PURE__ */ jsxs18(
|
|
2145
2256
|
"button",
|
|
2146
2257
|
{
|
|
2147
2258
|
className: cn(
|
|
@@ -2163,7 +2274,7 @@ var CallOutActions = React31.forwardRef(({ className, actions, role, message, ..
|
|
|
2163
2274
|
});
|
|
2164
2275
|
},
|
|
2165
2276
|
children: [
|
|
2166
|
-
/* @__PURE__ */
|
|
2277
|
+
/* @__PURE__ */ jsx39(
|
|
2167
2278
|
"span",
|
|
2168
2279
|
{
|
|
2169
2280
|
className: cn("alq-action-icon-wrapper", {
|
|
@@ -2172,18 +2283,18 @@ var CallOutActions = React31.forwardRef(({ className, actions, role, message, ..
|
|
|
2172
2283
|
children: action.icon
|
|
2173
2284
|
}
|
|
2174
2285
|
),
|
|
2175
|
-
/* @__PURE__ */
|
|
2286
|
+
/* @__PURE__ */ jsx39("label", { children: action.label })
|
|
2176
2287
|
]
|
|
2177
2288
|
},
|
|
2178
2289
|
action.label
|
|
2179
2290
|
)) });
|
|
2180
2291
|
});
|
|
2181
|
-
var CallOutResponse =
|
|
2292
|
+
var CallOutResponse = React32.forwardRef(
|
|
2182
2293
|
({ className, children, role, additionalInfo, isStreaming, handleIsTextStreaming, ...props }, ref) => {
|
|
2183
2294
|
const content = String(children || "");
|
|
2184
2295
|
const shouldStream = role === "assistant" && isStreaming;
|
|
2185
2296
|
const displayedContent = useTextStreaming(content, shouldStream ?? false, handleIsTextStreaming);
|
|
2186
|
-
return /* @__PURE__ */
|
|
2297
|
+
return /* @__PURE__ */ jsxs18(
|
|
2187
2298
|
"div",
|
|
2188
2299
|
{
|
|
2189
2300
|
ref,
|
|
@@ -2196,8 +2307,8 @@ var CallOutResponse = React31.forwardRef(
|
|
|
2196
2307
|
),
|
|
2197
2308
|
...props,
|
|
2198
2309
|
children: [
|
|
2199
|
-
/* @__PURE__ */
|
|
2200
|
-
additionalInfo && /* @__PURE__ */
|
|
2310
|
+
/* @__PURE__ */ jsx39(RichText, { content: displayedContent }),
|
|
2311
|
+
additionalInfo && /* @__PURE__ */ jsx39(
|
|
2201
2312
|
"div",
|
|
2202
2313
|
{
|
|
2203
2314
|
className: cn(
|
|
@@ -2229,6 +2340,7 @@ export {
|
|
|
2229
2340
|
AlertDialogPortal,
|
|
2230
2341
|
AlertDialogTitle,
|
|
2231
2342
|
AlertDialogTrigger,
|
|
2343
|
+
AssistantButton,
|
|
2232
2344
|
CallOut,
|
|
2233
2345
|
CallOutActions,
|
|
2234
2346
|
CallOutDate,
|