@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
@@ -19,6 +19,7 @@ import * as SwitchPrimitives from '@radix-ui/react-switch';
19
19
  import * as TabsPrimitive from '@radix-ui/react-tabs';
20
20
  import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
21
21
  import * as PopoverPrimitive from '@radix-ui/react-popover';
22
+ import * as SeparatorPrimitive from '@radix-ui/react-separator';
22
23
  import '@radix-ui/react-alert-dialog';
23
24
  import '@radix-ui/react-toast';
24
25
 
@@ -262,6 +263,8 @@ interface LoaderProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantPro
262
263
  }
263
264
  declare const Loader: React$1.ForwardRefExoticComponent<LoaderProps & React$1.RefAttributes<HTMLDivElement>>;
264
265
 
266
+ declare const Separator: React$1.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
267
+
265
268
  declare function Toaster(): react_jsx_runtime.JSX.Element;
266
269
 
267
270
  declare const thinkIndicatorVariants: (props?: ({
@@ -275,4 +278,4 @@ interface ThinkIndicatorProps extends React$1.HTMLAttributes<HTMLDivElement>, Va
275
278
  }
276
279
  declare const ThinkIndicator: React$1.ForwardRefExoticComponent<ThinkIndicatorProps & React$1.RefAttributes<HTMLDivElement>>;
277
280
 
278
- export { Alert, AlertDescription, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, Input, type InputProps, Label, Loader, Popover, PopoverContent, PopoverTrigger, RichText, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Skeleton, Slider, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, ThinkIndicator, type ThinkIndicatorProps, Toaster, Toggle, Typography, type TypographyProps, badgeVariants, thinkIndicatorVariants, toggleVariants };
281
+ export { Alert, AlertDescription, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, Input, type InputProps, Label, Loader, Popover, PopoverContent, PopoverTrigger, RichText, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Skeleton, Slider, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, ThinkIndicator, type ThinkIndicatorProps, Toaster, Toggle, Typography, type TypographyProps, badgeVariants, thinkIndicatorVariants, toggleVariants };
@@ -19,6 +19,7 @@ import * as SwitchPrimitives from '@radix-ui/react-switch';
19
19
  import * as TabsPrimitive from '@radix-ui/react-tabs';
20
20
  import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
21
21
  import * as PopoverPrimitive from '@radix-ui/react-popover';
22
+ import * as SeparatorPrimitive from '@radix-ui/react-separator';
22
23
  import '@radix-ui/react-alert-dialog';
23
24
  import '@radix-ui/react-toast';
24
25
 
@@ -262,6 +263,8 @@ interface LoaderProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantPro
262
263
  }
263
264
  declare const Loader: React$1.ForwardRefExoticComponent<LoaderProps & React$1.RefAttributes<HTMLDivElement>>;
264
265
 
266
+ declare const Separator: React$1.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
267
+
265
268
  declare function Toaster(): react_jsx_runtime.JSX.Element;
266
269
 
267
270
  declare const thinkIndicatorVariants: (props?: ({
@@ -275,4 +278,4 @@ interface ThinkIndicatorProps extends React$1.HTMLAttributes<HTMLDivElement>, Va
275
278
  }
276
279
  declare const ThinkIndicator: React$1.ForwardRefExoticComponent<ThinkIndicatorProps & React$1.RefAttributes<HTMLDivElement>>;
277
280
 
278
- export { Alert, AlertDescription, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, Input, type InputProps, Label, Loader, Popover, PopoverContent, PopoverTrigger, RichText, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Skeleton, Slider, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, ThinkIndicator, type ThinkIndicatorProps, Toaster, Toggle, Typography, type TypographyProps, badgeVariants, thinkIndicatorVariants, toggleVariants };
281
+ export { Alert, AlertDescription, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, Input, type InputProps, Label, Loader, Popover, PopoverContent, PopoverTrigger, RichText, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Skeleton, Slider, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, ThinkIndicator, type ThinkIndicatorProps, Toaster, Toggle, Typography, type TypographyProps, badgeVariants, thinkIndicatorVariants, toggleVariants };
@@ -112,6 +112,7 @@ __export(atoms_exports, {
112
112
  SelectSeparator: () => SelectSeparator,
113
113
  SelectTrigger: () => SelectTrigger,
114
114
  SelectValue: () => SelectValue,
115
+ Separator: () => Separator2,
115
116
  Skeleton: () => Skeleton,
116
117
  Slider: () => Slider,
117
118
  Switch: () => Switch,
@@ -1482,8 +1483,29 @@ var Loader = React22.forwardRef(
1482
1483
  );
1483
1484
  Loader.displayName = "Loader";
1484
1485
 
1485
- // src/components/hooks/use-toast.ts
1486
+ // src/components/atoms/ui/separator.tsx
1486
1487
  var React23 = __toESM(require("react"));
1488
+ var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"));
1489
+ var import_jsx_runtime28 = require("react/jsx-runtime");
1490
+ var Separator2 = React23.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1491
+ SeparatorPrimitive.Root,
1492
+ {
1493
+ ref,
1494
+ decorative,
1495
+ orientation,
1496
+ className: cn(
1497
+ "shrink-0 bg-border",
1498
+ orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
1499
+ className,
1500
+ "alq--separator"
1501
+ ),
1502
+ ...props
1503
+ }
1504
+ ));
1505
+ Separator2.displayName = SeparatorPrimitive.Root.displayName;
1506
+
1507
+ // src/components/hooks/use-toast.ts
1508
+ var React24 = __toESM(require("react"));
1487
1509
  var TOAST_LIMIT = 1;
1488
1510
  var TOAST_REMOVE_DELAY = 1e6;
1489
1511
  var count = 0;
@@ -1584,8 +1606,8 @@ function toast({ ...props }) {
1584
1606
  };
1585
1607
  }
1586
1608
  function useToast() {
1587
- const [state, setState] = React23.useState(memoryState);
1588
- React23.useEffect(() => {
1609
+ const [state, setState] = React24.useState(memoryState);
1610
+ React24.useEffect(() => {
1589
1611
  listeners.push(setState);
1590
1612
  return () => {
1591
1613
  const index = listeners.indexOf(setState);
@@ -1602,29 +1624,29 @@ function useToast() {
1602
1624
  }
1603
1625
 
1604
1626
  // src/components/atoms/ui/toaster.tsx
1605
- var import_jsx_runtime28 = require("react/jsx-runtime");
1627
+ var import_jsx_runtime29 = require("react/jsx-runtime");
1606
1628
  function Toaster() {
1607
1629
  const { toasts } = useToast();
1608
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(ToastProvider, { children: [
1630
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(ToastProvider, { children: [
1609
1631
  toasts.map(function({ id, title, description, action, ...props }) {
1610
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(Toast, { ...props, children: [
1611
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "grid gap-1", children: [
1612
- title && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(ToastTitle, { children: title }),
1613
- description && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(ToastDescription, { children: description })
1632
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(Toast, { ...props, children: [
1633
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "grid gap-1", children: [
1634
+ title && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ToastTitle, { children: title }),
1635
+ description && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ToastDescription, { children: description })
1614
1636
  ] }),
1615
1637
  action,
1616
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(ToastClose, {})
1638
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ToastClose, {})
1617
1639
  ] }, id);
1618
1640
  }),
1619
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(ToastViewport, {})
1641
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ToastViewport, {})
1620
1642
  ] });
1621
1643
  }
1622
1644
 
1623
1645
  // src/components/atoms/ui/think-indicator.tsx
1624
- var React24 = __toESM(require("react"));
1646
+ var React25 = __toESM(require("react"));
1625
1647
  var import_react3 = require("react");
1626
1648
  var import_class_variance_authority8 = require("class-variance-authority");
1627
- var import_jsx_runtime29 = require("react/jsx-runtime");
1649
+ var import_jsx_runtime30 = require("react/jsx-runtime");
1628
1650
  var thinkIndicatorVariants = (0, import_class_variance_authority8.cva)(
1629
1651
  "flex items-center gap-3",
1630
1652
  {
@@ -1646,7 +1668,7 @@ var thinkIndicatorVariants = (0, import_class_variance_authority8.cva)(
1646
1668
  }
1647
1669
  }
1648
1670
  );
1649
- var ThinkIndicator = React24.forwardRef(
1671
+ var ThinkIndicator = React25.forwardRef(
1650
1672
  ({
1651
1673
  className,
1652
1674
  variant,
@@ -1677,14 +1699,14 @@ var ThinkIndicator = React24.forwardRef(
1677
1699
  }
1678
1700
  return () => clearInterval(timer);
1679
1701
  }, [thoughts, interval, currentThoughtIndex]);
1680
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
1702
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
1681
1703
  "div",
1682
1704
  {
1683
1705
  ref,
1684
1706
  className: cn(thinkIndicatorVariants({ variant, size }), className, "alq--think-indicator"),
1685
1707
  ...props,
1686
1708
  children: [
1687
- loader || /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1709
+ loader || /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1688
1710
  Loader,
1689
1711
  {
1690
1712
  className: cn(
@@ -1692,7 +1714,7 @@ var ThinkIndicator = React24.forwardRef(
1692
1714
  )
1693
1715
  }
1694
1716
  ),
1695
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1717
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1696
1718
  "div",
1697
1719
  {
1698
1720
  className: cn(