@alquimia-ai/ui 1.2.4 → 1.3.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/atoms/index.d.mts +4 -1
- package/dist/components/atoms/index.d.ts +4 -1
- package/dist/components/atoms/index.js +39 -17
- package/dist/components/atoms/index.js.map +1 -1
- package/dist/components/atoms/index.mjs +35 -13
- package/dist/components/atoms/index.mjs.map +1 -1
- package/dist/components/index.d.mts +2 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +39 -17
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +35 -13
- package/dist/components/index.mjs.map +1 -1
- package/dist/components/molecules/documents/index.js +82 -52
- package/dist/components/molecules/documents/index.js.map +1 -1
- package/dist/components/molecules/documents/index.mjs +67 -37
- package/dist/components/molecules/documents/index.mjs.map +1 -1
- package/dist/components/molecules/index.js +145 -124
- package/dist/components/molecules/index.js.map +1 -1
- package/dist/components/molecules/index.mjs +137 -116
- package/dist/components/molecules/index.mjs.map +1 -1
- package/dist/components/molecules/viewers/index.js +31 -10
- package/dist/components/molecules/viewers/index.js.map +1 -1
- package/dist/components/molecules/viewers/index.mjs +30 -9
- package/dist/components/molecules/viewers/index.mjs.map +1 -1
- package/dist/components/organisms/index.d.mts +3 -1
- package/dist/components/organisms/index.d.ts +3 -1
- package/dist/components/organisms/index.js +187 -164
- package/dist/components/organisms/index.js.map +1 -1
- package/dist/components/organisms/index.mjs +175 -152
- package/dist/components/organisms/index.mjs.map +1 -1
- package/dist/components/templates/cards/index.js +57 -36
- package/dist/components/templates/cards/index.js.map +1 -1
- package/dist/components/templates/cards/index.mjs +45 -24
- package/dist/components/templates/cards/index.mjs.map +1 -1
- package/dist/components/templates/index.js +57 -36
- package/dist/components/templates/index.js.map +1 -1
- package/dist/components/templates/index.mjs +45 -24
- package/dist/components/templates/index.mjs.map +1 -1
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +242 -218
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +220 -196
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.d.mts +12 -1
- package/dist/types/index.d.ts +12 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/index.mjs.map +1 -1
- package/package.json +3 -19
- package/dist/package.json +0 -136
|
@@ -176,7 +176,7 @@ var AlertDialogCancel = React2.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
176
176
|
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
177
177
|
|
|
178
178
|
// src/components/molecules/assistant-button.tsx
|
|
179
|
-
import * as
|
|
179
|
+
import * as React26 from "react";
|
|
180
180
|
import { useState as useState3 } from "react";
|
|
181
181
|
|
|
182
182
|
// src/components/atoms/ui/textarea.tsx
|
|
@@ -1331,17 +1331,38 @@ var Loader = React22.forwardRef(
|
|
|
1331
1331
|
);
|
|
1332
1332
|
Loader.displayName = "Loader";
|
|
1333
1333
|
|
|
1334
|
-
// src/components/
|
|
1334
|
+
// src/components/atoms/ui/separator.tsx
|
|
1335
1335
|
import * as React23 from "react";
|
|
1336
|
+
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
1337
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
1338
|
+
var Separator2 = React23.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx29(
|
|
1339
|
+
SeparatorPrimitive.Root,
|
|
1340
|
+
{
|
|
1341
|
+
ref,
|
|
1342
|
+
decorative,
|
|
1343
|
+
orientation,
|
|
1344
|
+
className: cn(
|
|
1345
|
+
"shrink-0 bg-border",
|
|
1346
|
+
orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
|
|
1347
|
+
className,
|
|
1348
|
+
"alq--separator"
|
|
1349
|
+
),
|
|
1350
|
+
...props
|
|
1351
|
+
}
|
|
1352
|
+
));
|
|
1353
|
+
Separator2.displayName = SeparatorPrimitive.Root.displayName;
|
|
1354
|
+
|
|
1355
|
+
// src/components/hooks/use-toast.ts
|
|
1356
|
+
import * as React24 from "react";
|
|
1336
1357
|
|
|
1337
1358
|
// src/components/atoms/ui/toaster.tsx
|
|
1338
|
-
import { jsx as
|
|
1359
|
+
import { jsx as jsx30, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1339
1360
|
|
|
1340
1361
|
// src/components/atoms/ui/think-indicator.tsx
|
|
1341
|
-
import * as
|
|
1362
|
+
import * as React25 from "react";
|
|
1342
1363
|
import { useState as useState2, useEffect as useEffect2 } from "react";
|
|
1343
1364
|
import { cva as cva8 } from "class-variance-authority";
|
|
1344
|
-
import { jsx as
|
|
1365
|
+
import { jsx as jsx31, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1345
1366
|
var thinkIndicatorVariants = cva8(
|
|
1346
1367
|
"flex items-center gap-3",
|
|
1347
1368
|
{
|
|
@@ -1363,7 +1384,7 @@ var thinkIndicatorVariants = cva8(
|
|
|
1363
1384
|
}
|
|
1364
1385
|
}
|
|
1365
1386
|
);
|
|
1366
|
-
var ThinkIndicator =
|
|
1387
|
+
var ThinkIndicator = React25.forwardRef(
|
|
1367
1388
|
({
|
|
1368
1389
|
className,
|
|
1369
1390
|
variant,
|
|
@@ -1401,7 +1422,7 @@ var ThinkIndicator = React24.forwardRef(
|
|
|
1401
1422
|
className: cn(thinkIndicatorVariants({ variant, size }), className, "alq--think-indicator"),
|
|
1402
1423
|
...props,
|
|
1403
1424
|
children: [
|
|
1404
|
-
loader || /* @__PURE__ */
|
|
1425
|
+
loader || /* @__PURE__ */ jsx31(
|
|
1405
1426
|
Loader,
|
|
1406
1427
|
{
|
|
1407
1428
|
className: cn(
|
|
@@ -1409,7 +1430,7 @@ var ThinkIndicator = React24.forwardRef(
|
|
|
1409
1430
|
)
|
|
1410
1431
|
}
|
|
1411
1432
|
),
|
|
1412
|
-
/* @__PURE__ */
|
|
1433
|
+
/* @__PURE__ */ jsx31(
|
|
1413
1434
|
"div",
|
|
1414
1435
|
{
|
|
1415
1436
|
className: cn(
|
|
@@ -1428,9 +1449,9 @@ var ThinkIndicator = React24.forwardRef(
|
|
|
1428
1449
|
ThinkIndicator.displayName = "ThinkIndicator";
|
|
1429
1450
|
|
|
1430
1451
|
// src/components/molecules/assistant-button.tsx
|
|
1431
|
-
import { jsx as
|
|
1432
|
-
var AssistantSuggestions =
|
|
1433
|
-
return /* @__PURE__ */
|
|
1452
|
+
import { jsx as jsx32, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1453
|
+
var AssistantSuggestions = React26.forwardRef(({ suggestions, showSuggestions, className }, ref) => {
|
|
1454
|
+
return /* @__PURE__ */ jsx32(
|
|
1434
1455
|
"div",
|
|
1435
1456
|
{
|
|
1436
1457
|
ref,
|
|
@@ -1440,7 +1461,7 @@ var AssistantSuggestions = React25.forwardRef(({ suggestions, showSuggestions, c
|
|
|
1440
1461
|
showSuggestions ? "opacity-100 translate-y-0" : "opacity-0 translate-y-4",
|
|
1441
1462
|
className
|
|
1442
1463
|
),
|
|
1443
|
-
children: /* @__PURE__ */
|
|
1464
|
+
children: /* @__PURE__ */ jsx32("div", { className: "rounded-lg p-2 pr-0 w-64", children: suggestions.map((suggestion, index) => /* @__PURE__ */ jsxs11(
|
|
1444
1465
|
"button",
|
|
1445
1466
|
{
|
|
1446
1467
|
onClick: () => suggestion.action?.(),
|
|
@@ -1456,8 +1477,8 @@ var AssistantSuggestions = React25.forwardRef(({ suggestions, showSuggestions, c
|
|
|
1456
1477
|
showSuggestions ? "opacity-100 translate-y-0" : "opacity-0 translate-y-4"
|
|
1457
1478
|
),
|
|
1458
1479
|
children: [
|
|
1459
|
-
/* @__PURE__ */
|
|
1460
|
-
/* @__PURE__ */
|
|
1480
|
+
/* @__PURE__ */ jsx32(suggestion.icon, { className: "w-5 h-5 text-primary" }),
|
|
1481
|
+
/* @__PURE__ */ jsx32("span", { className: "text-xs whitespace-nowrap font-normal", children: suggestion.label })
|
|
1461
1482
|
]
|
|
1462
1483
|
},
|
|
1463
1484
|
index
|
|
@@ -1466,7 +1487,7 @@ var AssistantSuggestions = React25.forwardRef(({ suggestions, showSuggestions, c
|
|
|
1466
1487
|
);
|
|
1467
1488
|
});
|
|
1468
1489
|
AssistantSuggestions.displayName = "Suggestions";
|
|
1469
|
-
var AssistantButton =
|
|
1490
|
+
var AssistantButton = React26.forwardRef(
|
|
1470
1491
|
({
|
|
1471
1492
|
icon: Icon2,
|
|
1472
1493
|
clickAction,
|
|
@@ -1487,7 +1508,7 @@ var AssistantButton = React25.forwardRef(
|
|
|
1487
1508
|
setShowSuggestions(false);
|
|
1488
1509
|
setTimeout(() => setIsVisible(false), 300);
|
|
1489
1510
|
};
|
|
1490
|
-
return /* @__PURE__ */
|
|
1511
|
+
return /* @__PURE__ */ jsx32(
|
|
1491
1512
|
"div",
|
|
1492
1513
|
{
|
|
1493
1514
|
ref,
|
|
@@ -1499,14 +1520,14 @@ var AssistantButton = React25.forwardRef(
|
|
|
1499
1520
|
onMouseEnter: handleMouseEnter,
|
|
1500
1521
|
onMouseLeave: handleMouseLeave,
|
|
1501
1522
|
children: /* @__PURE__ */ jsxs11("div", { className: "relative group", children: [
|
|
1502
|
-
isVisible && suggestions.length > 0 && /* @__PURE__ */
|
|
1523
|
+
isVisible && suggestions.length > 0 && /* @__PURE__ */ jsx32(
|
|
1503
1524
|
AssistantSuggestions,
|
|
1504
1525
|
{
|
|
1505
1526
|
suggestions,
|
|
1506
1527
|
showSuggestions
|
|
1507
1528
|
}
|
|
1508
1529
|
),
|
|
1509
|
-
/* @__PURE__ */
|
|
1530
|
+
/* @__PURE__ */ jsx32(
|
|
1510
1531
|
Button,
|
|
1511
1532
|
{
|
|
1512
1533
|
variant: "outline",
|
|
@@ -1520,7 +1541,7 @@ var AssistantButton = React25.forwardRef(
|
|
|
1520
1541
|
"alq--assistant-button"
|
|
1521
1542
|
),
|
|
1522
1543
|
onClick: clickAction,
|
|
1523
|
-
children: /* @__PURE__ */
|
|
1544
|
+
children: /* @__PURE__ */ jsx32(
|
|
1524
1545
|
Icon2,
|
|
1525
1546
|
{
|
|
1526
1547
|
style: { width: "22px", height: "22px" },
|
|
@@ -1537,19 +1558,19 @@ var AssistantButton = React25.forwardRef(
|
|
|
1537
1558
|
AssistantButton.displayName = "AssistantButton";
|
|
1538
1559
|
|
|
1539
1560
|
// src/components/molecules/carousel.tsx
|
|
1540
|
-
import * as
|
|
1561
|
+
import * as React27 from "react";
|
|
1541
1562
|
import useEmblaCarousel from "embla-carousel-react";
|
|
1542
1563
|
import { ArrowLeft, ArrowRight } from "lucide-react";
|
|
1543
|
-
import { jsx as
|
|
1544
|
-
var CarouselContext =
|
|
1564
|
+
import { jsx as jsx33, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1565
|
+
var CarouselContext = React27.createContext(null);
|
|
1545
1566
|
function useCarousel() {
|
|
1546
|
-
const context =
|
|
1567
|
+
const context = React27.useContext(CarouselContext);
|
|
1547
1568
|
if (!context) {
|
|
1548
1569
|
throw new Error("useCarousel must be used within a <Carousel />");
|
|
1549
1570
|
}
|
|
1550
1571
|
return context;
|
|
1551
1572
|
}
|
|
1552
|
-
var Carousel =
|
|
1573
|
+
var Carousel = React27.forwardRef(
|
|
1553
1574
|
({
|
|
1554
1575
|
orientation = "horizontal",
|
|
1555
1576
|
opts,
|
|
@@ -1566,22 +1587,22 @@ var Carousel = React26.forwardRef(
|
|
|
1566
1587
|
},
|
|
1567
1588
|
plugins
|
|
1568
1589
|
);
|
|
1569
|
-
const [canScrollPrev, setCanScrollPrev] =
|
|
1570
|
-
const [canScrollNext, setCanScrollNext] =
|
|
1571
|
-
const onSelect =
|
|
1590
|
+
const [canScrollPrev, setCanScrollPrev] = React27.useState(false);
|
|
1591
|
+
const [canScrollNext, setCanScrollNext] = React27.useState(false);
|
|
1592
|
+
const onSelect = React27.useCallback((api2) => {
|
|
1572
1593
|
if (!api2) {
|
|
1573
1594
|
return;
|
|
1574
1595
|
}
|
|
1575
1596
|
setCanScrollPrev(api2.canScrollPrev());
|
|
1576
1597
|
setCanScrollNext(api2.canScrollNext());
|
|
1577
1598
|
}, []);
|
|
1578
|
-
const scrollPrev =
|
|
1599
|
+
const scrollPrev = React27.useCallback(() => {
|
|
1579
1600
|
api?.scrollPrev();
|
|
1580
1601
|
}, [api]);
|
|
1581
|
-
const scrollNext =
|
|
1602
|
+
const scrollNext = React27.useCallback(() => {
|
|
1582
1603
|
api?.scrollNext();
|
|
1583
1604
|
}, [api]);
|
|
1584
|
-
const handleKeyDown =
|
|
1605
|
+
const handleKeyDown = React27.useCallback(
|
|
1585
1606
|
(event) => {
|
|
1586
1607
|
if (event.key === "ArrowLeft") {
|
|
1587
1608
|
event.preventDefault();
|
|
@@ -1593,13 +1614,13 @@ var Carousel = React26.forwardRef(
|
|
|
1593
1614
|
},
|
|
1594
1615
|
[scrollPrev, scrollNext]
|
|
1595
1616
|
);
|
|
1596
|
-
|
|
1617
|
+
React27.useEffect(() => {
|
|
1597
1618
|
if (!api || !setApi) {
|
|
1598
1619
|
return;
|
|
1599
1620
|
}
|
|
1600
1621
|
setApi(api);
|
|
1601
1622
|
}, [api, setApi]);
|
|
1602
|
-
|
|
1623
|
+
React27.useEffect(() => {
|
|
1603
1624
|
if (!api) {
|
|
1604
1625
|
return;
|
|
1605
1626
|
}
|
|
@@ -1610,7 +1631,7 @@ var Carousel = React26.forwardRef(
|
|
|
1610
1631
|
api?.off("select", onSelect);
|
|
1611
1632
|
};
|
|
1612
1633
|
}, [api, onSelect]);
|
|
1613
|
-
return /* @__PURE__ */
|
|
1634
|
+
return /* @__PURE__ */ jsx33(
|
|
1614
1635
|
CarouselContext.Provider,
|
|
1615
1636
|
{
|
|
1616
1637
|
value: {
|
|
@@ -1623,7 +1644,7 @@ var Carousel = React26.forwardRef(
|
|
|
1623
1644
|
canScrollPrev,
|
|
1624
1645
|
canScrollNext
|
|
1625
1646
|
},
|
|
1626
|
-
children: /* @__PURE__ */
|
|
1647
|
+
children: /* @__PURE__ */ jsx33(
|
|
1627
1648
|
"div",
|
|
1628
1649
|
{
|
|
1629
1650
|
ref,
|
|
@@ -1640,9 +1661,9 @@ var Carousel = React26.forwardRef(
|
|
|
1640
1661
|
}
|
|
1641
1662
|
);
|
|
1642
1663
|
Carousel.displayName = "Carousel";
|
|
1643
|
-
var CarouselContent =
|
|
1664
|
+
var CarouselContent = React27.forwardRef(({ className, ...props }, ref) => {
|
|
1644
1665
|
const { carouselRef, orientation } = useCarousel();
|
|
1645
|
-
return /* @__PURE__ */
|
|
1666
|
+
return /* @__PURE__ */ jsx33("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ jsx33(
|
|
1646
1667
|
"div",
|
|
1647
1668
|
{
|
|
1648
1669
|
ref,
|
|
@@ -1656,9 +1677,9 @@ var CarouselContent = React26.forwardRef(({ className, ...props }, ref) => {
|
|
|
1656
1677
|
) });
|
|
1657
1678
|
});
|
|
1658
1679
|
CarouselContent.displayName = "CarouselContent";
|
|
1659
|
-
var CarouselItem =
|
|
1680
|
+
var CarouselItem = React27.forwardRef(({ className, ...props }, ref) => {
|
|
1660
1681
|
const { orientation } = useCarousel();
|
|
1661
|
-
return /* @__PURE__ */
|
|
1682
|
+
return /* @__PURE__ */ jsx33(
|
|
1662
1683
|
"div",
|
|
1663
1684
|
{
|
|
1664
1685
|
ref,
|
|
@@ -1674,7 +1695,7 @@ var CarouselItem = React26.forwardRef(({ className, ...props }, ref) => {
|
|
|
1674
1695
|
);
|
|
1675
1696
|
});
|
|
1676
1697
|
CarouselItem.displayName = "CarouselItem";
|
|
1677
|
-
var CarouselPrevious =
|
|
1698
|
+
var CarouselPrevious = React27.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
1678
1699
|
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
1679
1700
|
return /* @__PURE__ */ jsxs12(
|
|
1680
1701
|
Button,
|
|
@@ -1691,14 +1712,14 @@ var CarouselPrevious = React26.forwardRef(({ className, variant = "outline", siz
|
|
|
1691
1712
|
onClick: scrollPrev,
|
|
1692
1713
|
...props,
|
|
1693
1714
|
children: [
|
|
1694
|
-
/* @__PURE__ */
|
|
1695
|
-
/* @__PURE__ */
|
|
1715
|
+
/* @__PURE__ */ jsx33(ArrowLeft, { className: "h-4 w-4" }),
|
|
1716
|
+
/* @__PURE__ */ jsx33("span", { className: "sr-only", children: "Previous slide" })
|
|
1696
1717
|
]
|
|
1697
1718
|
}
|
|
1698
1719
|
);
|
|
1699
1720
|
});
|
|
1700
1721
|
CarouselPrevious.displayName = "CarouselPrevious";
|
|
1701
|
-
var CarouselNext =
|
|
1722
|
+
var CarouselNext = React27.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
1702
1723
|
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
1703
1724
|
return /* @__PURE__ */ jsxs12(
|
|
1704
1725
|
Button,
|
|
@@ -1715,8 +1736,8 @@ var CarouselNext = React26.forwardRef(({ className, variant = "outline", size =
|
|
|
1715
1736
|
onClick: scrollNext,
|
|
1716
1737
|
...props,
|
|
1717
1738
|
children: [
|
|
1718
|
-
/* @__PURE__ */
|
|
1719
|
-
/* @__PURE__ */
|
|
1739
|
+
/* @__PURE__ */ jsx33(ArrowRight, { className: "h-4 w-4" }),
|
|
1740
|
+
/* @__PURE__ */ jsx33("span", { className: "sr-only", children: "Next slide" })
|
|
1720
1741
|
]
|
|
1721
1742
|
}
|
|
1722
1743
|
);
|
|
@@ -1724,12 +1745,12 @@ var CarouselNext = React26.forwardRef(({ className, variant = "outline", size =
|
|
|
1724
1745
|
CarouselNext.displayName = "CarouselNext";
|
|
1725
1746
|
|
|
1726
1747
|
// src/components/molecules/navigation-menu.tsx
|
|
1727
|
-
import * as
|
|
1748
|
+
import * as React28 from "react";
|
|
1728
1749
|
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
|
1729
1750
|
import { cva as cva9 } from "class-variance-authority";
|
|
1730
1751
|
import { ChevronDown as ChevronDown2 } from "lucide-react";
|
|
1731
|
-
import { jsx as
|
|
1732
|
-
var NavigationMenu =
|
|
1752
|
+
import { jsx as jsx34, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1753
|
+
var NavigationMenu = React28.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs13(
|
|
1733
1754
|
NavigationMenuPrimitive.Root,
|
|
1734
1755
|
{
|
|
1735
1756
|
ref,
|
|
@@ -1740,12 +1761,12 @@ var NavigationMenu = React27.forwardRef(({ className, children, ...props }, ref)
|
|
|
1740
1761
|
...props,
|
|
1741
1762
|
children: [
|
|
1742
1763
|
children,
|
|
1743
|
-
/* @__PURE__ */
|
|
1764
|
+
/* @__PURE__ */ jsx34(NavigationMenuViewport, {})
|
|
1744
1765
|
]
|
|
1745
1766
|
}
|
|
1746
1767
|
));
|
|
1747
1768
|
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
1748
|
-
var NavigationMenuList =
|
|
1769
|
+
var NavigationMenuList = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34(
|
|
1749
1770
|
NavigationMenuPrimitive.List,
|
|
1750
1771
|
{
|
|
1751
1772
|
ref,
|
|
@@ -1761,7 +1782,7 @@ var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
|
1761
1782
|
var navigationMenuTriggerStyle = cva9(
|
|
1762
1783
|
"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
1784
|
);
|
|
1764
|
-
var NavigationMenuTrigger =
|
|
1785
|
+
var NavigationMenuTrigger = React28.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs13(
|
|
1765
1786
|
NavigationMenuPrimitive.Trigger,
|
|
1766
1787
|
{
|
|
1767
1788
|
ref,
|
|
@@ -1770,7 +1791,7 @@ var NavigationMenuTrigger = React27.forwardRef(({ className, children, ...props
|
|
|
1770
1791
|
children: [
|
|
1771
1792
|
children,
|
|
1772
1793
|
" ",
|
|
1773
|
-
/* @__PURE__ */
|
|
1794
|
+
/* @__PURE__ */ jsx34(
|
|
1774
1795
|
ChevronDown2,
|
|
1775
1796
|
{
|
|
1776
1797
|
className: "relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180",
|
|
@@ -1781,7 +1802,7 @@ var NavigationMenuTrigger = React27.forwardRef(({ className, children, ...props
|
|
|
1781
1802
|
}
|
|
1782
1803
|
));
|
|
1783
1804
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
1784
|
-
var NavigationMenuContent =
|
|
1805
|
+
var NavigationMenuContent = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34(
|
|
1785
1806
|
NavigationMenuPrimitive.Content,
|
|
1786
1807
|
{
|
|
1787
1808
|
ref,
|
|
@@ -1794,7 +1815,7 @@ var NavigationMenuContent = React27.forwardRef(({ className, ...props }, ref) =>
|
|
|
1794
1815
|
));
|
|
1795
1816
|
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
1796
1817
|
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
1797
|
-
var NavigationMenuViewport =
|
|
1818
|
+
var NavigationMenuViewport = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsx34(
|
|
1798
1819
|
NavigationMenuPrimitive.Viewport,
|
|
1799
1820
|
{
|
|
1800
1821
|
className: cn(
|
|
@@ -1806,7 +1827,7 @@ var NavigationMenuViewport = React27.forwardRef(({ className, ...props }, ref) =
|
|
|
1806
1827
|
}
|
|
1807
1828
|
) }));
|
|
1808
1829
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
1809
|
-
var NavigationMenuIndicator =
|
|
1830
|
+
var NavigationMenuIndicator = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34(
|
|
1810
1831
|
NavigationMenuPrimitive.Indicator,
|
|
1811
1832
|
{
|
|
1812
1833
|
ref,
|
|
@@ -1815,15 +1836,15 @@ var NavigationMenuIndicator = React27.forwardRef(({ className, ...props }, ref)
|
|
|
1815
1836
|
className
|
|
1816
1837
|
),
|
|
1817
1838
|
...props,
|
|
1818
|
-
children: /* @__PURE__ */
|
|
1839
|
+
children: /* @__PURE__ */ jsx34("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
1819
1840
|
}
|
|
1820
1841
|
));
|
|
1821
1842
|
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
1822
1843
|
|
|
1823
1844
|
// src/components/molecules/sidebar.tsx
|
|
1824
|
-
import * as
|
|
1845
|
+
import * as React29 from "react";
|
|
1825
1846
|
import { cva as cva10 } from "class-variance-authority";
|
|
1826
|
-
import { jsx as
|
|
1847
|
+
import { jsx as jsx35, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1827
1848
|
var sidebarVariants = cva10(
|
|
1828
1849
|
"flex flex-col border-r",
|
|
1829
1850
|
{
|
|
@@ -1839,7 +1860,7 @@ var sidebarVariants = cva10(
|
|
|
1839
1860
|
}
|
|
1840
1861
|
}
|
|
1841
1862
|
);
|
|
1842
|
-
var SidebarFooter =
|
|
1863
|
+
var SidebarFooter = React29.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx35(
|
|
1843
1864
|
"div",
|
|
1844
1865
|
{
|
|
1845
1866
|
ref,
|
|
@@ -1849,7 +1870,7 @@ var SidebarFooter = React28.forwardRef(({ className, children, ...props }, ref)
|
|
|
1849
1870
|
}
|
|
1850
1871
|
));
|
|
1851
1872
|
SidebarFooter.displayName = "SidebarFooter";
|
|
1852
|
-
var Sidebar =
|
|
1873
|
+
var Sidebar = React29.forwardRef(
|
|
1853
1874
|
({
|
|
1854
1875
|
className,
|
|
1855
1876
|
items,
|
|
@@ -1862,8 +1883,8 @@ var Sidebar = React28.forwardRef(
|
|
|
1862
1883
|
buttonClassName,
|
|
1863
1884
|
...props
|
|
1864
1885
|
}, ref) => {
|
|
1865
|
-
return /* @__PURE__ */
|
|
1866
|
-
/* @__PURE__ */
|
|
1886
|
+
return /* @__PURE__ */ jsx35("div", { className: cn(className, "alq--navigation-sidebar h-full"), ref, ...props, children: /* @__PURE__ */ jsxs14("aside", { className: cn(sidebarVariants({ size }), "h-full"), children: [
|
|
1887
|
+
/* @__PURE__ */ jsx35(ScrollArea, { className: "flex-grow justify-between", children: /* @__PURE__ */ jsx35("div", { className: "flex flex-col gap-2 p-4", children: items.map((item) => /* @__PURE__ */ jsxs14(
|
|
1867
1888
|
Button,
|
|
1868
1889
|
{
|
|
1869
1890
|
variant: selectedSection?.name === item.name ? selectedVariant : defaultVariant,
|
|
@@ -1875,13 +1896,13 @@ var Sidebar = React28.forwardRef(
|
|
|
1875
1896
|
}
|
|
1876
1897
|
},
|
|
1877
1898
|
children: [
|
|
1878
|
-
item.icon && /* @__PURE__ */
|
|
1899
|
+
item.icon && /* @__PURE__ */ jsx35(item.icon, { className: "mr-2 h-4 w-4" }),
|
|
1879
1900
|
item.name
|
|
1880
1901
|
]
|
|
1881
1902
|
},
|
|
1882
1903
|
item.name
|
|
1883
1904
|
)) }) }),
|
|
1884
|
-
footerContent && /* @__PURE__ */
|
|
1905
|
+
footerContent && /* @__PURE__ */ jsx35(SidebarFooter, { children: footerContent })
|
|
1885
1906
|
] }) });
|
|
1886
1907
|
}
|
|
1887
1908
|
);
|
|
@@ -1889,10 +1910,10 @@ var Sidebar = React28.forwardRef(
|
|
|
1889
1910
|
// src/components/molecules/sonner.tsx
|
|
1890
1911
|
import { useTheme } from "next-themes";
|
|
1891
1912
|
import { Toaster as Sonner } from "sonner";
|
|
1892
|
-
import { jsx as
|
|
1913
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
1893
1914
|
var Toaster = ({ ...props }) => {
|
|
1894
1915
|
const { theme = "system" } = useTheme();
|
|
1895
|
-
return /* @__PURE__ */
|
|
1916
|
+
return /* @__PURE__ */ jsx36(
|
|
1896
1917
|
Sonner,
|
|
1897
1918
|
{
|
|
1898
1919
|
theme,
|
|
@@ -1911,14 +1932,14 @@ var Toaster = ({ ...props }) => {
|
|
|
1911
1932
|
};
|
|
1912
1933
|
|
|
1913
1934
|
// src/components/molecules/rating-stars.tsx
|
|
1914
|
-
import * as
|
|
1935
|
+
import * as React30 from "react";
|
|
1915
1936
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
1916
1937
|
import { Star } from "lucide-react";
|
|
1917
|
-
import { jsx as
|
|
1938
|
+
import { jsx as jsx37, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1918
1939
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
1919
1940
|
var Tooltip = TooltipPrimitive.Root;
|
|
1920
1941
|
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
1921
|
-
var TooltipContent =
|
|
1942
|
+
var TooltipContent = React30.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx37(
|
|
1922
1943
|
TooltipPrimitive.Content,
|
|
1923
1944
|
{
|
|
1924
1945
|
ref,
|
|
@@ -1931,14 +1952,14 @@ var TooltipContent = React29.forwardRef(({ className, sideOffset = 4, ...props }
|
|
|
1931
1952
|
}
|
|
1932
1953
|
));
|
|
1933
1954
|
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
1934
|
-
var StarRating =
|
|
1955
|
+
var StarRating = React30.forwardRef(({ rating, onRate }, ref) => /* @__PURE__ */ jsx37("div", { ref, className: "flex", children: [1, 2, 3, 4, 5].map((star) => /* @__PURE__ */ jsx37(
|
|
1935
1956
|
Button,
|
|
1936
1957
|
{
|
|
1937
1958
|
onClick: () => onRate(star),
|
|
1938
1959
|
variant: "link",
|
|
1939
1960
|
className: "p-1 transition-colors [&_svg]:size-5 h-5",
|
|
1940
1961
|
"aria-label": `Rate ${star} star${star !== 1 ? "s" : ""}`,
|
|
1941
|
-
children: /* @__PURE__ */
|
|
1962
|
+
children: /* @__PURE__ */ jsx37(
|
|
1942
1963
|
Star,
|
|
1943
1964
|
{
|
|
1944
1965
|
className: cn(
|
|
@@ -1951,19 +1972,19 @@ var StarRating = React29.forwardRef(({ rating, onRate }, ref) => /* @__PURE__ */
|
|
|
1951
1972
|
star
|
|
1952
1973
|
)) }));
|
|
1953
1974
|
StarRating.displayName = "StarRating";
|
|
1954
|
-
var RatingStars =
|
|
1975
|
+
var RatingStars = React30.forwardRef(({
|
|
1955
1976
|
currentRating = 0,
|
|
1956
1977
|
onRate,
|
|
1957
1978
|
className,
|
|
1958
1979
|
isLoading
|
|
1959
1980
|
}, ref) => {
|
|
1960
|
-
const [open, setOpen] =
|
|
1961
|
-
const [animate, setAnimate] =
|
|
1981
|
+
const [open, setOpen] = React30.useState(false);
|
|
1982
|
+
const [animate, setAnimate] = React30.useState(false);
|
|
1962
1983
|
const handleRate = (rating) => {
|
|
1963
1984
|
onRate(rating);
|
|
1964
1985
|
setOpen(false);
|
|
1965
1986
|
};
|
|
1966
|
-
|
|
1987
|
+
React30.useEffect(() => {
|
|
1967
1988
|
if (currentRating > 0) {
|
|
1968
1989
|
setAnimate(true);
|
|
1969
1990
|
const timer = setTimeout(() => setAnimate(false), 150);
|
|
@@ -1971,8 +1992,8 @@ var RatingStars = React29.forwardRef(({
|
|
|
1971
1992
|
}
|
|
1972
1993
|
}, [currentRating]);
|
|
1973
1994
|
const hasRated = currentRating > 0;
|
|
1974
|
-
return /* @__PURE__ */
|
|
1975
|
-
/* @__PURE__ */
|
|
1995
|
+
return /* @__PURE__ */ jsx37(TooltipProvider, { children: /* @__PURE__ */ jsxs15(Tooltip, { open, onOpenChange: setOpen, children: [
|
|
1996
|
+
/* @__PURE__ */ jsx37(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx37(
|
|
1976
1997
|
Button,
|
|
1977
1998
|
{
|
|
1978
1999
|
ref,
|
|
@@ -1983,7 +2004,7 @@ var RatingStars = React29.forwardRef(({
|
|
|
1983
2004
|
),
|
|
1984
2005
|
disabled: isLoading,
|
|
1985
2006
|
onClick: () => setOpen(!open),
|
|
1986
|
-
children: /* @__PURE__ */
|
|
2007
|
+
children: /* @__PURE__ */ jsx37(
|
|
1987
2008
|
Star,
|
|
1988
2009
|
{
|
|
1989
2010
|
className: cn(
|
|
@@ -1996,7 +2017,7 @@ var RatingStars = React29.forwardRef(({
|
|
|
1996
2017
|
)
|
|
1997
2018
|
}
|
|
1998
2019
|
) }),
|
|
1999
|
-
/* @__PURE__ */
|
|
2020
|
+
/* @__PURE__ */ jsx37(TooltipContent, { side: "top", align: "center", className: "p-0", children: /* @__PURE__ */ jsx37("div", { className: "p-2 bg-background", children: /* @__PURE__ */ jsx37(
|
|
2000
2021
|
StarRating,
|
|
2001
2022
|
{
|
|
2002
2023
|
rating: currentRating,
|
|
@@ -2008,10 +2029,10 @@ var RatingStars = React29.forwardRef(({
|
|
|
2008
2029
|
RatingStars.displayName = "RatingStars";
|
|
2009
2030
|
|
|
2010
2031
|
// src/components/molecules/rating-thumbs.tsx
|
|
2011
|
-
import * as
|
|
2032
|
+
import * as React31 from "react";
|
|
2012
2033
|
import { ThumbsUp, ThumbsDown } from "lucide-react";
|
|
2013
|
-
import { jsx as
|
|
2014
|
-
var RatingThumbs =
|
|
2034
|
+
import { jsx as jsx38, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2035
|
+
var RatingThumbs = React31.forwardRef(
|
|
2015
2036
|
({
|
|
2016
2037
|
currentRating,
|
|
2017
2038
|
onRate,
|
|
@@ -2019,8 +2040,8 @@ var RatingThumbs = React30.forwardRef(
|
|
|
2019
2040
|
className,
|
|
2020
2041
|
isLoading
|
|
2021
2042
|
}, ref) => {
|
|
2022
|
-
const [animate, setAnimate] =
|
|
2023
|
-
|
|
2043
|
+
const [animate, setAnimate] = React31.useState(false);
|
|
2044
|
+
React31.useEffect(() => {
|
|
2024
2045
|
if (currentRating) {
|
|
2025
2046
|
setAnimate(true);
|
|
2026
2047
|
const timer = setTimeout(() => setAnimate(false), 150);
|
|
@@ -2038,7 +2059,7 @@ var RatingThumbs = React30.forwardRef(
|
|
|
2038
2059
|
className
|
|
2039
2060
|
),
|
|
2040
2061
|
children: [
|
|
2041
|
-
/* @__PURE__ */
|
|
2062
|
+
/* @__PURE__ */ jsx38(
|
|
2042
2063
|
Button,
|
|
2043
2064
|
{
|
|
2044
2065
|
variant: "link",
|
|
@@ -2049,7 +2070,7 @@ var RatingThumbs = React30.forwardRef(
|
|
|
2049
2070
|
),
|
|
2050
2071
|
"aria-label": "Thumbs up",
|
|
2051
2072
|
disabled: isLoading,
|
|
2052
|
-
children: /* @__PURE__ */
|
|
2073
|
+
children: /* @__PURE__ */ jsx38(
|
|
2053
2074
|
ThumbsUp,
|
|
2054
2075
|
{
|
|
2055
2076
|
className: cn(
|
|
@@ -2062,7 +2083,7 @@ var RatingThumbs = React30.forwardRef(
|
|
|
2062
2083
|
)
|
|
2063
2084
|
}
|
|
2064
2085
|
),
|
|
2065
|
-
/* @__PURE__ */
|
|
2086
|
+
/* @__PURE__ */ jsx38(
|
|
2066
2087
|
Button,
|
|
2067
2088
|
{
|
|
2068
2089
|
variant: "link",
|
|
@@ -2073,7 +2094,7 @@ var RatingThumbs = React30.forwardRef(
|
|
|
2073
2094
|
),
|
|
2074
2095
|
"aria-label": "Thumbs down",
|
|
2075
2096
|
disabled: isLoading,
|
|
2076
|
-
children: /* @__PURE__ */
|
|
2097
|
+
children: /* @__PURE__ */ jsx38(
|
|
2077
2098
|
ThumbsDown,
|
|
2078
2099
|
{
|
|
2079
2100
|
className: cn(
|
|
@@ -2094,30 +2115,30 @@ var RatingThumbs = React30.forwardRef(
|
|
|
2094
2115
|
RatingThumbs.displayName = "RatingThumbs";
|
|
2095
2116
|
|
|
2096
2117
|
// src/components/molecules/rating-comment.tsx
|
|
2097
|
-
import * as
|
|
2118
|
+
import * as React32 from "react";
|
|
2098
2119
|
import { Book } from "lucide-react";
|
|
2099
|
-
import { jsx as
|
|
2100
|
-
var RatingComment =
|
|
2120
|
+
import { jsx as jsx39, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2121
|
+
var RatingComment = React32.forwardRef(
|
|
2101
2122
|
({ currentRating, onRate, className, isLoading }, ref) => {
|
|
2102
|
-
const [open, setOpen] =
|
|
2103
|
-
const [comment, setComment] =
|
|
2104
|
-
const [animate, setAnimate] =
|
|
2123
|
+
const [open, setOpen] = React32.useState(false);
|
|
2124
|
+
const [comment, setComment] = React32.useState("");
|
|
2125
|
+
const [animate, setAnimate] = React32.useState(false);
|
|
2105
2126
|
const handleRate = () => {
|
|
2106
2127
|
onRate(comment);
|
|
2107
2128
|
setOpen(false);
|
|
2108
2129
|
};
|
|
2109
|
-
|
|
2130
|
+
React32.useEffect(() => {
|
|
2110
2131
|
if (currentRating) {
|
|
2111
2132
|
setAnimate(true);
|
|
2112
2133
|
const timer = setTimeout(() => setAnimate(false), 150);
|
|
2113
2134
|
return () => clearTimeout(timer);
|
|
2114
2135
|
}
|
|
2115
2136
|
}, [currentRating]);
|
|
2116
|
-
|
|
2137
|
+
React32.useEffect(() => {
|
|
2117
2138
|
setComment("");
|
|
2118
2139
|
}, [open]);
|
|
2119
2140
|
return /* @__PURE__ */ jsxs17(Dialog, { open, onOpenChange: setOpen, children: [
|
|
2120
|
-
/* @__PURE__ */
|
|
2141
|
+
/* @__PURE__ */ jsx39(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsx39(
|
|
2121
2142
|
Button,
|
|
2122
2143
|
{
|
|
2123
2144
|
ref,
|
|
@@ -2128,7 +2149,7 @@ var RatingComment = React31.forwardRef(
|
|
|
2128
2149
|
className
|
|
2129
2150
|
),
|
|
2130
2151
|
disabled: isLoading,
|
|
2131
|
-
children: /* @__PURE__ */
|
|
2152
|
+
children: /* @__PURE__ */ jsx39(
|
|
2132
2153
|
Book,
|
|
2133
2154
|
{
|
|
2134
2155
|
className: cn(
|
|
@@ -2141,10 +2162,10 @@ var RatingComment = React31.forwardRef(
|
|
|
2141
2162
|
)
|
|
2142
2163
|
}
|
|
2143
2164
|
) }),
|
|
2144
|
-
/* @__PURE__ */
|
|
2165
|
+
/* @__PURE__ */ jsx39(DialogOverlay, { className: "fixed inset-0 bg-black bg-opacity-50" }),
|
|
2145
2166
|
/* @__PURE__ */ jsxs17(DialogContent, { "aria-describedby": void 0, children: [
|
|
2146
|
-
/* @__PURE__ */
|
|
2147
|
-
/* @__PURE__ */
|
|
2167
|
+
/* @__PURE__ */ jsx39(DialogTitle, { className: "text-lg font-medium", children: "Deja un comentario" }),
|
|
2168
|
+
/* @__PURE__ */ jsx39(
|
|
2148
2169
|
"textarea",
|
|
2149
2170
|
{
|
|
2150
2171
|
className: "mt-4 w-full p-2 border rounded-md focus:outline-none focus:ring-2 focus:ring-primary",
|
|
@@ -2153,7 +2174,7 @@ var RatingComment = React31.forwardRef(
|
|
|
2153
2174
|
onChange: (e) => setComment(e.target.value)
|
|
2154
2175
|
}
|
|
2155
2176
|
),
|
|
2156
|
-
/* @__PURE__ */
|
|
2177
|
+
/* @__PURE__ */ jsx39("div", { className: "mt-4 flex justify-end", children: /* @__PURE__ */ jsx39(
|
|
2157
2178
|
Button,
|
|
2158
2179
|
{
|
|
2159
2180
|
onClick: handleRate,
|
|
@@ -2168,7 +2189,7 @@ var RatingComment = React31.forwardRef(
|
|
|
2168
2189
|
RatingComment.displayName = "RatingComment";
|
|
2169
2190
|
|
|
2170
2191
|
// src/components/molecules/call-out.tsx
|
|
2171
|
-
import * as
|
|
2192
|
+
import * as React33 from "react";
|
|
2172
2193
|
|
|
2173
2194
|
// src/components/hooks/use-text-streaming.ts
|
|
2174
2195
|
import { useState as useState8, useEffect as useEffect8, useRef, useCallback as useCallback2 } from "react";
|
|
@@ -2227,9 +2248,9 @@ function useTextStreaming(content, shouldStream, handleIsTextStreaming) {
|
|
|
2227
2248
|
}
|
|
2228
2249
|
|
|
2229
2250
|
// src/components/molecules/call-out.tsx
|
|
2230
|
-
import { jsx as
|
|
2231
|
-
var CallOut =
|
|
2232
|
-
return /* @__PURE__ */
|
|
2251
|
+
import { jsx as jsx40, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2252
|
+
var CallOut = React33.forwardRef(({ className, children, role, ...props }, ref) => {
|
|
2253
|
+
return /* @__PURE__ */ jsx40(
|
|
2233
2254
|
"div",
|
|
2234
2255
|
{
|
|
2235
2256
|
ref,
|
|
@@ -2240,8 +2261,8 @@ var CallOut = React32.forwardRef(({ className, children, role, ...props }, ref)
|
|
|
2240
2261
|
}
|
|
2241
2262
|
);
|
|
2242
2263
|
});
|
|
2243
|
-
var CallOutDate =
|
|
2244
|
-
return /* @__PURE__ */
|
|
2264
|
+
var CallOutDate = React33.forwardRef(({ className, children, ...props }, ref) => {
|
|
2265
|
+
return /* @__PURE__ */ jsx40(
|
|
2245
2266
|
"div",
|
|
2246
2267
|
{
|
|
2247
2268
|
ref,
|
|
@@ -2255,13 +2276,13 @@ var CallOutDate = React32.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
2255
2276
|
}
|
|
2256
2277
|
);
|
|
2257
2278
|
});
|
|
2258
|
-
var CallOutActions =
|
|
2259
|
-
const [isLoading, setIsLoading] =
|
|
2260
|
-
const [isClicked, setIsClicked] =
|
|
2279
|
+
var CallOutActions = React33.forwardRef(({ className, actions, role, message, ...props }, ref) => {
|
|
2280
|
+
const [isLoading, setIsLoading] = React33.useState(false);
|
|
2281
|
+
const [isClicked, setIsClicked] = React33.useState(false);
|
|
2261
2282
|
if (role === "user") {
|
|
2262
2283
|
return null;
|
|
2263
2284
|
}
|
|
2264
|
-
return /* @__PURE__ */
|
|
2285
|
+
return /* @__PURE__ */ jsx40("div", { ref, className: cn("alq--callout-actions", className), ...props, children: actions.map((action) => /* @__PURE__ */ jsxs18(
|
|
2265
2286
|
"button",
|
|
2266
2287
|
{
|
|
2267
2288
|
className: cn(
|
|
@@ -2283,7 +2304,7 @@ var CallOutActions = React32.forwardRef(({ className, actions, role, message, ..
|
|
|
2283
2304
|
});
|
|
2284
2305
|
},
|
|
2285
2306
|
children: [
|
|
2286
|
-
/* @__PURE__ */
|
|
2307
|
+
/* @__PURE__ */ jsx40(
|
|
2287
2308
|
"span",
|
|
2288
2309
|
{
|
|
2289
2310
|
className: cn("alq-action-icon-wrapper", {
|
|
@@ -2292,13 +2313,13 @@ var CallOutActions = React32.forwardRef(({ className, actions, role, message, ..
|
|
|
2292
2313
|
children: action.icon
|
|
2293
2314
|
}
|
|
2294
2315
|
),
|
|
2295
|
-
/* @__PURE__ */
|
|
2316
|
+
/* @__PURE__ */ jsx40("label", { children: action.label })
|
|
2296
2317
|
]
|
|
2297
2318
|
},
|
|
2298
2319
|
action.label
|
|
2299
2320
|
)) });
|
|
2300
2321
|
});
|
|
2301
|
-
var CallOutResponse =
|
|
2322
|
+
var CallOutResponse = React33.forwardRef(
|
|
2302
2323
|
({ className, children, role, additionalInfo, isStreaming, handleIsTextStreaming, ...props }, ref) => {
|
|
2303
2324
|
const content = String(children || "");
|
|
2304
2325
|
const shouldStream = role === "assistant" && isStreaming;
|
|
@@ -2316,8 +2337,8 @@ var CallOutResponse = React32.forwardRef(
|
|
|
2316
2337
|
),
|
|
2317
2338
|
...props,
|
|
2318
2339
|
children: [
|
|
2319
|
-
/* @__PURE__ */
|
|
2320
|
-
additionalInfo && /* @__PURE__ */
|
|
2340
|
+
/* @__PURE__ */ jsx40(RichText, { content: displayedContent }),
|
|
2341
|
+
additionalInfo && /* @__PURE__ */ jsx40(
|
|
2321
2342
|
"div",
|
|
2322
2343
|
{
|
|
2323
2344
|
className: cn(
|