@alquimia-ai/ui 1.2.3 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/components/atoms/index.d.mts +4 -1
  2. package/dist/components/atoms/index.d.ts +4 -1
  3. package/dist/components/atoms/index.js +39 -17
  4. package/dist/components/atoms/index.js.map +1 -1
  5. package/dist/components/atoms/index.mjs +35 -13
  6. package/dist/components/atoms/index.mjs.map +1 -1
  7. package/dist/components/hooks/index.js +41 -32
  8. package/dist/components/hooks/index.js.map +1 -1
  9. package/dist/components/hooks/index.mjs +42 -33
  10. package/dist/components/hooks/index.mjs.map +1 -1
  11. package/dist/components/index.d.mts +2 -1
  12. package/dist/components/index.d.ts +2 -1
  13. package/dist/components/index.js +39 -17
  14. package/dist/components/index.js.map +1 -1
  15. package/dist/components/index.mjs +35 -13
  16. package/dist/components/index.mjs.map +1 -1
  17. package/dist/components/molecules/documents/index.js +82 -52
  18. package/dist/components/molecules/documents/index.js.map +1 -1
  19. package/dist/components/molecules/documents/index.mjs +67 -37
  20. package/dist/components/molecules/documents/index.mjs.map +1 -1
  21. package/dist/components/molecules/index.js +186 -156
  22. package/dist/components/molecules/index.js.map +1 -1
  23. package/dist/components/molecules/index.mjs +179 -149
  24. package/dist/components/molecules/index.mjs.map +1 -1
  25. package/dist/components/molecules/viewers/index.js +31 -10
  26. package/dist/components/molecules/viewers/index.js.map +1 -1
  27. package/dist/components/molecules/viewers/index.mjs +30 -9
  28. package/dist/components/molecules/viewers/index.mjs.map +1 -1
  29. package/dist/components/organisms/index.d.mts +3 -1
  30. package/dist/components/organisms/index.d.ts +3 -1
  31. package/dist/components/organisms/index.js +228 -196
  32. package/dist/components/organisms/index.js.map +1 -1
  33. package/dist/components/organisms/index.mjs +217 -185
  34. package/dist/components/organisms/index.mjs.map +1 -1
  35. package/dist/components/templates/cards/index.js +57 -36
  36. package/dist/components/templates/cards/index.js.map +1 -1
  37. package/dist/components/templates/cards/index.mjs +45 -24
  38. package/dist/components/templates/cards/index.mjs.map +1 -1
  39. package/dist/components/templates/index.js +57 -36
  40. package/dist/components/templates/index.js.map +1 -1
  41. package/dist/components/templates/index.mjs +45 -24
  42. package/dist/components/templates/index.mjs.map +1 -1
  43. package/dist/index.d.mts +3 -2
  44. package/dist/index.d.ts +3 -2
  45. package/dist/index.js +283 -250
  46. package/dist/index.js.map +1 -1
  47. package/dist/index.mjs +262 -229
  48. package/dist/index.mjs.map +1 -1
  49. package/dist/package.json +137 -0
  50. package/dist/types/index.d.mts +12 -1
  51. package/dist/types/index.d.ts +12 -1
  52. package/dist/types/index.js.map +1 -1
  53. package/dist/types/index.mjs.map +1 -1
  54. package/package.json +21 -3
@@ -1395,17 +1395,38 @@ var Loader = React22.forwardRef(
1395
1395
  );
1396
1396
  Loader.displayName = "Loader";
1397
1397
 
1398
- // src/components/hooks/use-toast.ts
1398
+ // src/components/atoms/ui/separator.tsx
1399
1399
  var React23 = __toESM(require("react"));
1400
+ var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"));
1401
+ var import_jsx_runtime31 = require("react/jsx-runtime");
1402
+ var Separator2 = React23.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1403
+ SeparatorPrimitive.Root,
1404
+ {
1405
+ ref,
1406
+ decorative,
1407
+ orientation,
1408
+ className: cn(
1409
+ "shrink-0 bg-border",
1410
+ orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
1411
+ className,
1412
+ "alq--separator"
1413
+ ),
1414
+ ...props
1415
+ }
1416
+ ));
1417
+ Separator2.displayName = SeparatorPrimitive.Root.displayName;
1418
+
1419
+ // src/components/hooks/use-toast.ts
1420
+ var React24 = __toESM(require("react"));
1400
1421
 
1401
1422
  // src/components/atoms/ui/toaster.tsx
1402
- var import_jsx_runtime31 = require("react/jsx-runtime");
1423
+ var import_jsx_runtime32 = require("react/jsx-runtime");
1403
1424
 
1404
1425
  // src/components/atoms/ui/think-indicator.tsx
1405
- var React24 = __toESM(require("react"));
1426
+ var React25 = __toESM(require("react"));
1406
1427
  var import_react6 = require("react");
1407
1428
  var import_class_variance_authority8 = require("class-variance-authority");
1408
- var import_jsx_runtime32 = require("react/jsx-runtime");
1429
+ var import_jsx_runtime33 = require("react/jsx-runtime");
1409
1430
  var thinkIndicatorVariants = (0, import_class_variance_authority8.cva)(
1410
1431
  "flex items-center gap-3",
1411
1432
  {
@@ -1427,7 +1448,7 @@ var thinkIndicatorVariants = (0, import_class_variance_authority8.cva)(
1427
1448
  }
1428
1449
  }
1429
1450
  );
1430
- var ThinkIndicator = React24.forwardRef(
1451
+ var ThinkIndicator = React25.forwardRef(
1431
1452
  ({
1432
1453
  className,
1433
1454
  variant,
@@ -1458,14 +1479,14 @@ var ThinkIndicator = React24.forwardRef(
1458
1479
  }
1459
1480
  return () => clearInterval(timer);
1460
1481
  }, [thoughts, interval, currentThoughtIndex]);
1461
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
1482
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
1462
1483
  "div",
1463
1484
  {
1464
1485
  ref,
1465
1486
  className: cn(thinkIndicatorVariants({ variant, size }), className, "alq--think-indicator"),
1466
1487
  ...props,
1467
1488
  children: [
1468
- loader || /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1489
+ loader || /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1469
1490
  Loader,
1470
1491
  {
1471
1492
  className: cn(
@@ -1473,7 +1494,7 @@ var ThinkIndicator = React24.forwardRef(
1473
1494
  )
1474
1495
  }
1475
1496
  ),
1476
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1497
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1477
1498
  "div",
1478
1499
  {
1479
1500
  className: cn(
@@ -1492,21 +1513,21 @@ var ThinkIndicator = React24.forwardRef(
1492
1513
  ThinkIndicator.displayName = "ThinkIndicator";
1493
1514
 
1494
1515
  // src/components/templates/cards/with-image-heading-description.tsx
1495
- var import_jsx_runtime33 = require("react/jsx-runtime");
1516
+ var import_jsx_runtime34 = require("react/jsx-runtime");
1496
1517
  var CardWithImageHeadingDescriptionVertical = (props) => {
1497
1518
  const { showBorder, image, heading, description } = props;
1498
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(Card, { className: cn("w-[360px]", !showBorder && "border-none shadow-none"), children: [
1519
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Card, { className: cn("w-[360px]", !showBorder && "border-none shadow-none"), children: [
1499
1520
  image,
1500
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(CardHeader, { children: [
1501
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(CardTitle, { children: heading }),
1502
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Typography, { typeStyle: "small", className: "text-font-weak-color", children: description })
1521
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(CardHeader, { children: [
1522
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CardTitle, { children: heading }),
1523
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Typography, { typeStyle: "small", className: "text-font-weak-color", children: description })
1503
1524
  ] }),
1504
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(CardContent, {})
1525
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CardContent, {})
1505
1526
  ] });
1506
1527
  };
1507
1528
  var CardImageWithHeadingAndDescriptionHorizontal = (props) => {
1508
1529
  const { showBorder, image, heading, description } = props;
1509
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
1530
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
1510
1531
  Card,
1511
1532
  {
1512
1533
  className: cn(
@@ -1515,42 +1536,42 @@ var CardImageWithHeadingAndDescriptionHorizontal = (props) => {
1515
1536
  ),
1516
1537
  children: [
1517
1538
  image,
1518
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(CardHeader, { children: [
1519
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(CardTitle, { children: heading }),
1520
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Typography, { typeStyle: "small", className: "text-font-weak-color", children: description })
1539
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(CardHeader, { children: [
1540
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CardTitle, { children: heading }),
1541
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Typography, { typeStyle: "small", className: "text-font-weak-color", children: description })
1521
1542
  ] }),
1522
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(CardContent, {})
1543
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CardContent, {})
1523
1544
  ]
1524
1545
  }
1525
1546
  );
1526
1547
  };
1527
1548
 
1528
1549
  // src/components/templates/cards/with-image-heading-description-avatar.tsx
1529
- var import_jsx_runtime34 = require("react/jsx-runtime");
1550
+ var import_jsx_runtime35 = require("react/jsx-runtime");
1530
1551
  var AvatarInfo = (props) => {
1531
1552
  const { userName, email, avatarImage } = props;
1532
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex space-x-2 items-center", children: [
1533
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Avatar, { className: "w-16 h-16", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(AvatarImage, { src: avatarImage }) }),
1534
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { children: [
1535
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Typography, { typeStyle: "small", className: "font-semibold", children: userName }),
1536
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Typography, { typeStyle: "tiny", className: "text-font-weak-color", children: email })
1553
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex space-x-2 items-center", children: [
1554
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Avatar, { className: "w-16 h-16", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(AvatarImage, { src: avatarImage }) }),
1555
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { children: [
1556
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Typography, { typeStyle: "small", className: "font-semibold", children: userName }),
1557
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Typography, { typeStyle: "tiny", className: "text-font-weak-color", children: email })
1537
1558
  ] })
1538
1559
  ] });
1539
1560
  };
1540
1561
  var CardWithImageHeadingDescriptionAvatarVertical = (props) => {
1541
1562
  const { showBorder, image, heading, description } = props;
1542
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Card, { className: cn("w-[360px]", !showBorder && "border-none shadow-none"), children: [
1563
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(Card, { className: cn("w-[360px]", !showBorder && "border-none shadow-none"), children: [
1543
1564
  image,
1544
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(CardHeader, { children: [
1545
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CardTitle, { children: heading }),
1546
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Typography, { typeStyle: "small", className: "text-font-weak-color", children: description })
1565
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(CardHeader, { children: [
1566
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(CardTitle, { children: heading }),
1567
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Typography, { typeStyle: "small", className: "text-font-weak-color", children: description })
1547
1568
  ] }),
1548
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CardContent, { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(AvatarInfo, { ...props }) })
1569
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(CardContent, { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(AvatarInfo, { ...props }) })
1549
1570
  ] });
1550
1571
  };
1551
1572
  var CardImageWithHeadingAndDescriptionAvatarHorizontal = (props) => {
1552
1573
  const { showBorder, image, heading, description } = props;
1553
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
1574
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
1554
1575
  Card,
1555
1576
  {
1556
1577
  className: cn(
@@ -1559,12 +1580,12 @@ var CardImageWithHeadingAndDescriptionAvatarHorizontal = (props) => {
1559
1580
  ),
1560
1581
  children: [
1561
1582
  image,
1562
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { children: [
1563
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(CardHeader, { children: [
1564
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CardTitle, { children: heading }),
1565
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Typography, { typeStyle: "small", className: "text-font-weak-color", children: description })
1583
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { children: [
1584
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(CardHeader, { children: [
1585
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(CardTitle, { children: heading }),
1586
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Typography, { typeStyle: "small", className: "text-font-weak-color", children: description })
1566
1587
  ] }),
1567
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CardContent, { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(AvatarInfo, { ...props }) })
1588
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(CardContent, { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(AvatarInfo, { ...props }) })
1568
1589
  ] })
1569
1590
  ]
1570
1591
  }