@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
@@ -1337,17 +1337,38 @@ var Loader = React22.forwardRef(
1337
1337
  );
1338
1338
  Loader.displayName = "Loader";
1339
1339
 
1340
- // src/components/hooks/use-toast.ts
1340
+ // src/components/atoms/ui/separator.tsx
1341
1341
  var React23 = __toESM(require("react"));
1342
+ var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"));
1343
+ var import_jsx_runtime28 = require("react/jsx-runtime");
1344
+ var Separator2 = React23.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1345
+ SeparatorPrimitive.Root,
1346
+ {
1347
+ ref,
1348
+ decorative,
1349
+ orientation,
1350
+ className: cn(
1351
+ "shrink-0 bg-border",
1352
+ orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
1353
+ className,
1354
+ "alq--separator"
1355
+ ),
1356
+ ...props
1357
+ }
1358
+ ));
1359
+ Separator2.displayName = SeparatorPrimitive.Root.displayName;
1360
+
1361
+ // src/components/hooks/use-toast.ts
1362
+ var React24 = __toESM(require("react"));
1342
1363
 
1343
1364
  // src/components/atoms/ui/toaster.tsx
1344
- var import_jsx_runtime28 = require("react/jsx-runtime");
1365
+ var import_jsx_runtime29 = require("react/jsx-runtime");
1345
1366
 
1346
1367
  // src/components/atoms/ui/think-indicator.tsx
1347
- var React24 = __toESM(require("react"));
1368
+ var React25 = __toESM(require("react"));
1348
1369
  var import_react3 = require("react");
1349
1370
  var import_class_variance_authority8 = require("class-variance-authority");
1350
- var import_jsx_runtime29 = require("react/jsx-runtime");
1371
+ var import_jsx_runtime30 = require("react/jsx-runtime");
1351
1372
  var thinkIndicatorVariants = (0, import_class_variance_authority8.cva)(
1352
1373
  "flex items-center gap-3",
1353
1374
  {
@@ -1369,7 +1390,7 @@ var thinkIndicatorVariants = (0, import_class_variance_authority8.cva)(
1369
1390
  }
1370
1391
  }
1371
1392
  );
1372
- var ThinkIndicator = React24.forwardRef(
1393
+ var ThinkIndicator = React25.forwardRef(
1373
1394
  ({
1374
1395
  className,
1375
1396
  variant,
@@ -1400,14 +1421,14 @@ var ThinkIndicator = React24.forwardRef(
1400
1421
  }
1401
1422
  return () => clearInterval(timer);
1402
1423
  }, [thoughts, interval, currentThoughtIndex]);
1403
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
1424
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
1404
1425
  "div",
1405
1426
  {
1406
1427
  ref,
1407
1428
  className: cn(thinkIndicatorVariants({ variant, size }), className, "alq--think-indicator"),
1408
1429
  ...props,
1409
1430
  children: [
1410
- loader || /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1431
+ loader || /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1411
1432
  Loader,
1412
1433
  {
1413
1434
  className: cn(
@@ -1415,7 +1436,7 @@ var ThinkIndicator = React24.forwardRef(
1415
1436
  )
1416
1437
  }
1417
1438
  ),
1418
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1439
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1419
1440
  "div",
1420
1441
  {
1421
1442
  className: cn(
@@ -1434,21 +1455,21 @@ var ThinkIndicator = React24.forwardRef(
1434
1455
  ThinkIndicator.displayName = "ThinkIndicator";
1435
1456
 
1436
1457
  // src/components/templates/cards/with-image-heading-description.tsx
1437
- var import_jsx_runtime30 = require("react/jsx-runtime");
1458
+ var import_jsx_runtime31 = require("react/jsx-runtime");
1438
1459
  var CardWithImageHeadingDescriptionVertical = (props) => {
1439
1460
  const { showBorder, image, heading, description } = props;
1440
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(Card, { className: cn("w-[360px]", !showBorder && "border-none shadow-none"), children: [
1461
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(Card, { className: cn("w-[360px]", !showBorder && "border-none shadow-none"), children: [
1441
1462
  image,
1442
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(CardHeader, { children: [
1443
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(CardTitle, { children: heading }),
1444
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Typography, { typeStyle: "small", className: "text-font-weak-color", children: description })
1463
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(CardHeader, { children: [
1464
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(CardTitle, { children: heading }),
1465
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Typography, { typeStyle: "small", className: "text-font-weak-color", children: description })
1445
1466
  ] }),
1446
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(CardContent, {})
1467
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(CardContent, {})
1447
1468
  ] });
1448
1469
  };
1449
1470
  var CardImageWithHeadingAndDescriptionHorizontal = (props) => {
1450
1471
  const { showBorder, image, heading, description } = props;
1451
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
1472
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
1452
1473
  Card,
1453
1474
  {
1454
1475
  className: cn(
@@ -1457,42 +1478,42 @@ var CardImageWithHeadingAndDescriptionHorizontal = (props) => {
1457
1478
  ),
1458
1479
  children: [
1459
1480
  image,
1460
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(CardHeader, { children: [
1461
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(CardTitle, { children: heading }),
1462
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Typography, { typeStyle: "small", className: "text-font-weak-color", children: description })
1481
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(CardHeader, { children: [
1482
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(CardTitle, { children: heading }),
1483
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Typography, { typeStyle: "small", className: "text-font-weak-color", children: description })
1463
1484
  ] }),
1464
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(CardContent, {})
1485
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(CardContent, {})
1465
1486
  ]
1466
1487
  }
1467
1488
  );
1468
1489
  };
1469
1490
 
1470
1491
  // src/components/templates/cards/with-image-heading-description-avatar.tsx
1471
- var import_jsx_runtime31 = require("react/jsx-runtime");
1492
+ var import_jsx_runtime32 = require("react/jsx-runtime");
1472
1493
  var AvatarInfo = (props) => {
1473
1494
  const { userName, email, avatarImage } = props;
1474
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex space-x-2 items-center", children: [
1475
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Avatar, { className: "w-16 h-16", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(AvatarImage, { src: avatarImage }) }),
1476
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { children: [
1477
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Typography, { typeStyle: "small", className: "font-semibold", children: userName }),
1478
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Typography, { typeStyle: "tiny", className: "text-font-weak-color", children: email })
1495
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex space-x-2 items-center", children: [
1496
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Avatar, { className: "w-16 h-16", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(AvatarImage, { src: avatarImage }) }),
1497
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { children: [
1498
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Typography, { typeStyle: "small", className: "font-semibold", children: userName }),
1499
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Typography, { typeStyle: "tiny", className: "text-font-weak-color", children: email })
1479
1500
  ] })
1480
1501
  ] });
1481
1502
  };
1482
1503
  var CardWithImageHeadingDescriptionAvatarVertical = (props) => {
1483
1504
  const { showBorder, image, heading, description } = props;
1484
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(Card, { className: cn("w-[360px]", !showBorder && "border-none shadow-none"), children: [
1505
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(Card, { className: cn("w-[360px]", !showBorder && "border-none shadow-none"), children: [
1485
1506
  image,
1486
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(CardHeader, { children: [
1487
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(CardTitle, { children: heading }),
1488
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Typography, { typeStyle: "small", className: "text-font-weak-color", children: description })
1507
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(CardHeader, { children: [
1508
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(CardTitle, { children: heading }),
1509
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Typography, { typeStyle: "small", className: "text-font-weak-color", children: description })
1489
1510
  ] }),
1490
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(CardContent, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(AvatarInfo, { ...props }) })
1511
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(CardContent, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(AvatarInfo, { ...props }) })
1491
1512
  ] });
1492
1513
  };
1493
1514
  var CardImageWithHeadingAndDescriptionAvatarHorizontal = (props) => {
1494
1515
  const { showBorder, image, heading, description } = props;
1495
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
1516
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
1496
1517
  Card,
1497
1518
  {
1498
1519
  className: cn(
@@ -1501,12 +1522,12 @@ var CardImageWithHeadingAndDescriptionAvatarHorizontal = (props) => {
1501
1522
  ),
1502
1523
  children: [
1503
1524
  image,
1504
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { children: [
1505
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(CardHeader, { children: [
1506
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(CardTitle, { children: heading }),
1507
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Typography, { typeStyle: "small", className: "text-font-weak-color", children: description })
1525
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { children: [
1526
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(CardHeader, { children: [
1527
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(CardTitle, { children: heading }),
1528
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Typography, { typeStyle: "small", className: "text-font-weak-color", children: description })
1508
1529
  ] }),
1509
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(CardContent, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(AvatarInfo, { ...props }) })
1530
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(CardContent, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(AvatarInfo, { ...props }) })
1510
1531
  ] })
1511
1532
  ]
1512
1533
  }