@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
@@ -1335,8 +1335,29 @@ var Loader = React22.forwardRef(
1335
1335
  );
1336
1336
  Loader.displayName = "Loader";
1337
1337
 
1338
- // src/components/hooks/use-toast.ts
1338
+ // src/components/atoms/ui/separator.tsx
1339
1339
  import * as React23 from "react";
1340
+ import * as SeparatorPrimitive from "@radix-ui/react-separator";
1341
+ import { jsx as jsx28 } from "react/jsx-runtime";
1342
+ var Separator2 = React23.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx28(
1343
+ SeparatorPrimitive.Root,
1344
+ {
1345
+ ref,
1346
+ decorative,
1347
+ orientation,
1348
+ className: cn(
1349
+ "shrink-0 bg-border",
1350
+ orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
1351
+ className,
1352
+ "alq--separator"
1353
+ ),
1354
+ ...props
1355
+ }
1356
+ ));
1357
+ Separator2.displayName = SeparatorPrimitive.Root.displayName;
1358
+
1359
+ // src/components/hooks/use-toast.ts
1360
+ import * as React24 from "react";
1340
1361
  var TOAST_LIMIT = 1;
1341
1362
  var TOAST_REMOVE_DELAY = 1e6;
1342
1363
  var count = 0;
@@ -1437,8 +1458,8 @@ function toast({ ...props }) {
1437
1458
  };
1438
1459
  }
1439
1460
  function useToast() {
1440
- const [state, setState] = React23.useState(memoryState);
1441
- React23.useEffect(() => {
1461
+ const [state, setState] = React24.useState(memoryState);
1462
+ React24.useEffect(() => {
1442
1463
  listeners.push(setState);
1443
1464
  return () => {
1444
1465
  const index = listeners.indexOf(setState);
@@ -1455,29 +1476,29 @@ function useToast() {
1455
1476
  }
1456
1477
 
1457
1478
  // src/components/atoms/ui/toaster.tsx
1458
- import { jsx as jsx28, jsxs as jsxs9 } from "react/jsx-runtime";
1479
+ import { jsx as jsx29, jsxs as jsxs9 } from "react/jsx-runtime";
1459
1480
  function Toaster() {
1460
1481
  const { toasts } = useToast();
1461
1482
  return /* @__PURE__ */ jsxs9(ToastProvider, { children: [
1462
1483
  toasts.map(function({ id, title, description, action, ...props }) {
1463
1484
  return /* @__PURE__ */ jsxs9(Toast, { ...props, children: [
1464
1485
  /* @__PURE__ */ jsxs9("div", { className: "grid gap-1", children: [
1465
- title && /* @__PURE__ */ jsx28(ToastTitle, { children: title }),
1466
- description && /* @__PURE__ */ jsx28(ToastDescription, { children: description })
1486
+ title && /* @__PURE__ */ jsx29(ToastTitle, { children: title }),
1487
+ description && /* @__PURE__ */ jsx29(ToastDescription, { children: description })
1467
1488
  ] }),
1468
1489
  action,
1469
- /* @__PURE__ */ jsx28(ToastClose, {})
1490
+ /* @__PURE__ */ jsx29(ToastClose, {})
1470
1491
  ] }, id);
1471
1492
  }),
1472
- /* @__PURE__ */ jsx28(ToastViewport, {})
1493
+ /* @__PURE__ */ jsx29(ToastViewport, {})
1473
1494
  ] });
1474
1495
  }
1475
1496
 
1476
1497
  // src/components/atoms/ui/think-indicator.tsx
1477
- import * as React24 from "react";
1498
+ import * as React25 from "react";
1478
1499
  import { useState as useState2, useEffect as useEffect2 } from "react";
1479
1500
  import { cva as cva8 } from "class-variance-authority";
1480
- import { jsx as jsx29, jsxs as jsxs10 } from "react/jsx-runtime";
1501
+ import { jsx as jsx30, jsxs as jsxs10 } from "react/jsx-runtime";
1481
1502
  var thinkIndicatorVariants = cva8(
1482
1503
  "flex items-center gap-3",
1483
1504
  {
@@ -1499,7 +1520,7 @@ var thinkIndicatorVariants = cva8(
1499
1520
  }
1500
1521
  }
1501
1522
  );
1502
- var ThinkIndicator = React24.forwardRef(
1523
+ var ThinkIndicator = React25.forwardRef(
1503
1524
  ({
1504
1525
  className,
1505
1526
  variant,
@@ -1537,7 +1558,7 @@ var ThinkIndicator = React24.forwardRef(
1537
1558
  className: cn(thinkIndicatorVariants({ variant, size }), className, "alq--think-indicator"),
1538
1559
  ...props,
1539
1560
  children: [
1540
- loader || /* @__PURE__ */ jsx29(
1561
+ loader || /* @__PURE__ */ jsx30(
1541
1562
  Loader,
1542
1563
  {
1543
1564
  className: cn(
@@ -1545,7 +1566,7 @@ var ThinkIndicator = React24.forwardRef(
1545
1566
  )
1546
1567
  }
1547
1568
  ),
1548
- /* @__PURE__ */ jsx29(
1569
+ /* @__PURE__ */ jsx30(
1549
1570
  "div",
1550
1571
  {
1551
1572
  className: cn(
@@ -1645,6 +1666,7 @@ export {
1645
1666
  SelectSeparator,
1646
1667
  SelectTrigger,
1647
1668
  SelectValue,
1669
+ Separator2 as Separator,
1648
1670
  Skeleton,
1649
1671
  Slider,
1650
1672
  Switch,