@alquimia-ai/ui 2.0.0 → 2.2.2

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 (49) hide show
  1. package/dist/{alert-dialog-CP71C4vl.d.mts → alert-dialog-HrXEPlTh.d.mts} +1 -1
  2. package/dist/{alert-dialog-CP71C4vl.d.ts → alert-dialog-HrXEPlTh.d.ts} +1 -1
  3. package/dist/components/atoms/index.d.mts +48 -3
  4. package/dist/components/atoms/index.d.ts +48 -3
  5. package/dist/components/atoms/index.js +239 -0
  6. package/dist/components/atoms/index.js.map +1 -1
  7. package/dist/components/atoms/index.mjs +207 -1
  8. package/dist/components/atoms/index.mjs.map +1 -1
  9. package/dist/components/genui/index.d.mts +79 -0
  10. package/dist/components/genui/index.d.ts +79 -0
  11. package/dist/components/genui/index.js +4693 -0
  12. package/dist/components/genui/index.js.map +1 -0
  13. package/dist/components/genui/index.mjs +4622 -0
  14. package/dist/components/genui/index.mjs.map +1 -0
  15. package/dist/components/hooks/index.d.mts +1 -1
  16. package/dist/components/hooks/index.d.ts +1 -1
  17. package/dist/components/molecules/documents/index.js +283 -58
  18. package/dist/components/molecules/documents/index.js.map +1 -1
  19. package/dist/components/molecules/documents/index.mjs +281 -58
  20. package/dist/components/molecules/documents/index.mjs.map +1 -1
  21. package/dist/components/molecules/index.d.mts +2 -2
  22. package/dist/components/molecules/index.d.ts +2 -2
  23. package/dist/components/molecules/index.js +335 -156
  24. package/dist/components/molecules/index.js.map +1 -1
  25. package/dist/components/molecules/index.mjs +331 -152
  26. package/dist/components/molecules/index.mjs.map +1 -1
  27. package/dist/components/molecules/viewers/index.js +182 -3
  28. package/dist/components/molecules/viewers/index.js.map +1 -1
  29. package/dist/components/molecules/viewers/index.mjs +182 -3
  30. package/dist/components/molecules/viewers/index.mjs.map +1 -1
  31. package/dist/components/organisms/index.d.mts +15 -2
  32. package/dist/components/organisms/index.d.ts +15 -2
  33. package/dist/components/organisms/index.js +434 -247
  34. package/dist/components/organisms/index.js.map +1 -1
  35. package/dist/components/organisms/index.mjs +431 -244
  36. package/dist/components/organisms/index.mjs.map +1 -1
  37. package/dist/components/templates/index.js +210 -31
  38. package/dist/components/templates/index.js.map +1 -1
  39. package/dist/components/templates/index.mjs +210 -31
  40. package/dist/components/templates/index.mjs.map +1 -1
  41. package/dist/index.d.mts +7 -3
  42. package/dist/index.d.ts +7 -3
  43. package/dist/index.js +554 -307
  44. package/dist/index.js.map +1 -1
  45. package/dist/index.mjs +524 -310
  46. package/dist/index.mjs.map +1 -1
  47. package/dist/{toast-2xT7L1tJ.d.mts → toast-DEc6eGUE.d.mts} +1 -1
  48. package/dist/{toast-2xT7L1tJ.d.ts → toast-DEc6eGUE.d.ts} +1 -1
  49. package/package.json +22 -3
@@ -1653,73 +1653,252 @@ var ThinkIndicator = React25.forwardRef(function(_param, ref) {
1653
1653
  }));
1654
1654
  });
1655
1655
  ThinkIndicator.displayName = "ThinkIndicator";
1656
- // src/components/templates/cards/with-image-heading-description.tsx
1656
+ // src/components/atoms/ui/accordion.tsx
1657
+ var React26 = __toESM(require("react"));
1658
+ var AccordionPrimitive = __toESM(require("@radix-ui/react-accordion"));
1659
+ var import_lucide_react8 = require("lucide-react");
1657
1660
  var import_jsx_runtime34 = require("react/jsx-runtime");
1661
+ var AccordionItem = React26.forwardRef(function(_param, ref) {
1662
+ var className = _param.className, props = _object_without_properties(_param, [
1663
+ "className"
1664
+ ]);
1665
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(AccordionPrimitive.Item, _object_spread({
1666
+ ref: ref,
1667
+ className: cn("border-b", className)
1668
+ }, props));
1669
+ });
1670
+ AccordionItem.displayName = "AccordionItem";
1671
+ var AccordionTrigger = React26.forwardRef(function(_param, ref) {
1672
+ var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
1673
+ "className",
1674
+ "children"
1675
+ ]);
1676
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(AccordionPrimitive.Header, {
1677
+ className: "flex",
1678
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(AccordionPrimitive.Trigger, _object_spread_props(_object_spread({
1679
+ ref: ref,
1680
+ className: cn("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180", className)
1681
+ }, props), {
1682
+ children: [
1683
+ children,
1684
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react8.ChevronDown, {
1685
+ className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"
1686
+ })
1687
+ ]
1688
+ }))
1689
+ });
1690
+ });
1691
+ AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
1692
+ var AccordionContent = React26.forwardRef(function(_param, ref) {
1693
+ var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
1694
+ "className",
1695
+ "children"
1696
+ ]);
1697
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(AccordionPrimitive.Content, _object_spread_props(_object_spread({
1698
+ ref: ref,
1699
+ className: "overflow-hidden text-sm text-muted-foreground data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down"
1700
+ }, props), {
1701
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", {
1702
+ className: cn("pb-4 pt-0", className),
1703
+ children: children
1704
+ })
1705
+ }));
1706
+ });
1707
+ AccordionContent.displayName = AccordionPrimitive.Content.displayName;
1708
+ // src/components/atoms/ui/radio-group.tsx
1709
+ var React27 = __toESM(require("react"));
1710
+ var RadioGroupPrimitive = __toESM(require("@radix-ui/react-radio-group"));
1711
+ var import_lucide_react9 = require("lucide-react");
1712
+ var import_jsx_runtime35 = require("react/jsx-runtime");
1713
+ var RadioGroup = React27.forwardRef(function(_param, ref) {
1714
+ var className = _param.className, props = _object_without_properties(_param, [
1715
+ "className"
1716
+ ]);
1717
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(RadioGroupPrimitive.Root, _object_spread({
1718
+ ref: ref,
1719
+ className: cn("grid gap-2", className)
1720
+ }, props));
1721
+ });
1722
+ RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
1723
+ var RadioGroupItem = React27.forwardRef(function(_param, ref) {
1724
+ var className = _param.className, props = _object_without_properties(_param, [
1725
+ "className"
1726
+ ]);
1727
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(RadioGroupPrimitive.Item, _object_spread_props(_object_spread({
1728
+ ref: ref,
1729
+ className: cn("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", className)
1730
+ }, props), {
1731
+ children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(RadioGroupPrimitive.Indicator, {
1732
+ className: "flex items-center justify-center",
1733
+ children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_lucide_react9.Circle, {
1734
+ className: "h-2.5 w-2.5 fill-current text-current"
1735
+ })
1736
+ })
1737
+ }));
1738
+ });
1739
+ RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
1740
+ // src/components/atoms/ui/progress.tsx
1741
+ var React28 = __toESM(require("react"));
1742
+ var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"));
1743
+ var import_jsx_runtime36 = require("react/jsx-runtime");
1744
+ var Progress = React28.forwardRef(function(_param, ref) {
1745
+ var className = _param.className, value = _param.value, props = _object_without_properties(_param, [
1746
+ "className",
1747
+ "value"
1748
+ ]);
1749
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(ProgressPrimitive.Root, _object_spread_props(_object_spread({
1750
+ ref: ref,
1751
+ className: cn("relative h-2 w-full overflow-hidden rounded-full bg-muted", className)
1752
+ }, props), {
1753
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(ProgressPrimitive.Indicator, {
1754
+ className: "h-full w-full flex-1 bg-primary transition-all",
1755
+ style: {
1756
+ transform: "translateX(-".concat(100 - (value || 0), "%)")
1757
+ }
1758
+ })
1759
+ }));
1760
+ });
1761
+ Progress.displayName = ProgressPrimitive.Root.displayName;
1762
+ // src/components/atoms/ui/calendar.tsx
1763
+ var import_lucide_react10 = require("lucide-react");
1764
+ var import_react_day_picker = require("react-day-picker");
1765
+ var import_jsx_runtime37 = require("react/jsx-runtime");
1766
+ function Calendar(_param) {
1767
+ var className = _param.className, classNames = _param.classNames, _param_showOutsideDays = _param.showOutsideDays, showOutsideDays = _param_showOutsideDays === void 0 ? true : _param_showOutsideDays, props = _object_without_properties(_param, [
1768
+ "className",
1769
+ "classNames",
1770
+ "showOutsideDays"
1771
+ ]);
1772
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react_day_picker.DayPicker, _object_spread({
1773
+ showOutsideDays: showOutsideDays,
1774
+ className: cn("p-3", className),
1775
+ classNames: _object_spread({
1776
+ months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
1777
+ month: "space-y-4",
1778
+ caption: "flex justify-center pt-1 relative items-center",
1779
+ caption_label: "text-sm font-medium",
1780
+ nav: "space-x-1 flex items-center",
1781
+ nav_button: cn(buttonVariants({
1782
+ variant: "outline"
1783
+ }), "h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),
1784
+ nav_button_previous: "absolute left-1",
1785
+ nav_button_next: "absolute right-1",
1786
+ table: "w-full border-collapse space-y-1",
1787
+ head_row: "flex",
1788
+ head_cell: "text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",
1789
+ row: "flex w-full mt-2",
1790
+ cell: "h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",
1791
+ day: cn(buttonVariants({
1792
+ variant: "ghost"
1793
+ }), "h-9 w-9 p-0 font-normal aria-selected:opacity-100"),
1794
+ day_range_end: "day-range-end",
1795
+ day_selected: "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
1796
+ day_today: "bg-accent text-accent-foreground",
1797
+ day_outside: "day-outside text-muted-foreground opacity-50",
1798
+ day_disabled: "text-muted-foreground opacity-50",
1799
+ day_range_middle: "aria-selected:bg-accent aria-selected:text-accent-foreground",
1800
+ day_hidden: "invisible"
1801
+ }, classNames),
1802
+ components: {
1803
+ IconLeft: function() {
1804
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react10.ChevronLeft, {
1805
+ className: "h-4 w-4"
1806
+ });
1807
+ },
1808
+ IconRight: function() {
1809
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react10.ChevronRight, {
1810
+ className: "h-4 w-4"
1811
+ });
1812
+ }
1813
+ }
1814
+ }, props));
1815
+ }
1816
+ Calendar.displayName = "Calendar";
1817
+ // src/components/atoms/ui/chart.tsx
1818
+ var import_recharts = require("recharts");
1819
+ var import_jsx_runtime38 = require("react/jsx-runtime");
1820
+ function Chart(param) {
1821
+ var className = param.className, _param_height = param.height, height = _param_height === void 0 ? 300 : _param_height, children = param.children;
1822
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", {
1823
+ className: cn("w-full", className),
1824
+ style: {
1825
+ height: height
1826
+ },
1827
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_recharts.ResponsiveContainer, {
1828
+ width: "100%",
1829
+ height: "100%",
1830
+ children: children
1831
+ })
1832
+ });
1833
+ }
1834
+ Chart.displayName = "Chart";
1835
+ // src/components/templates/cards/with-image-heading-description.tsx
1836
+ var import_jsx_runtime39 = require("react/jsx-runtime");
1658
1837
  var CardWithImageHeadingDescriptionVertical = function(props) {
1659
1838
  var showBorder = props.showBorder, image = props.image, heading = props.heading, description = props.description;
1660
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Card, {
1839
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(Card, {
1661
1840
  className: cn("w-[360px]", !showBorder && "border-none shadow-none"),
1662
1841
  children: [
1663
1842
  image,
1664
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(CardHeader, {
1843
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(CardHeader, {
1665
1844
  children: [
1666
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CardTitle, {
1845
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(CardTitle, {
1667
1846
  children: heading
1668
1847
  }),
1669
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Typography, {
1848
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Typography, {
1670
1849
  typeStyle: "small",
1671
1850
  className: "text-font-weak-color",
1672
1851
  children: description
1673
1852
  })
1674
1853
  ]
1675
1854
  }),
1676
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CardContent, {})
1855
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(CardContent, {})
1677
1856
  ]
1678
1857
  });
1679
1858
  };
1680
1859
  var CardImageWithHeadingAndDescriptionHorizontal = function(props) {
1681
1860
  var showBorder = props.showBorder, image = props.image, heading = props.heading, description = props.description;
1682
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Card, {
1861
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(Card, {
1683
1862
  className: cn("lg:w-[600px] w-[360px] lg:flex lg:h-[150px]", !showBorder && "border-none shadow-none "),
1684
1863
  children: [
1685
1864
  image,
1686
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(CardHeader, {
1865
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(CardHeader, {
1687
1866
  children: [
1688
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CardTitle, {
1867
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(CardTitle, {
1689
1868
  children: heading
1690
1869
  }),
1691
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Typography, {
1870
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Typography, {
1692
1871
  typeStyle: "small",
1693
1872
  className: "text-font-weak-color",
1694
1873
  children: description
1695
1874
  })
1696
1875
  ]
1697
1876
  }),
1698
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CardContent, {})
1877
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(CardContent, {})
1699
1878
  ]
1700
1879
  });
1701
1880
  };
1702
1881
  // src/components/templates/cards/with-image-heading-description-avatar.tsx
1703
- var import_jsx_runtime35 = require("react/jsx-runtime");
1882
+ var import_jsx_runtime40 = require("react/jsx-runtime");
1704
1883
  var AvatarInfo = function(props) {
1705
1884
  var userName = props.userName, email = props.email, avatarImage = props.avatarImage;
1706
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", {
1885
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", {
1707
1886
  className: "flex space-x-2 items-center",
1708
1887
  children: [
1709
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Avatar, {
1888
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Avatar, {
1710
1889
  className: "w-16 h-16",
1711
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(AvatarImage, {
1890
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(AvatarImage, {
1712
1891
  src: avatarImage
1713
1892
  })
1714
1893
  }),
1715
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", {
1894
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", {
1716
1895
  children: [
1717
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Typography, {
1896
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Typography, {
1718
1897
  typeStyle: "small",
1719
1898
  className: "font-semibold",
1720
1899
  children: userName
1721
1900
  }),
1722
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Typography, {
1901
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Typography, {
1723
1902
  typeStyle: "tiny",
1724
1903
  className: "text-font-weak-color",
1725
1904
  children: email
@@ -1731,50 +1910,50 @@ var AvatarInfo = function(props) {
1731
1910
  };
1732
1911
  var CardWithImageHeadingDescriptionAvatarVertical = function(props) {
1733
1912
  var showBorder = props.showBorder, image = props.image, heading = props.heading, description = props.description;
1734
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(Card, {
1913
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(Card, {
1735
1914
  className: cn("w-[360px]", !showBorder && "border-none shadow-none"),
1736
1915
  children: [
1737
1916
  image,
1738
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(CardHeader, {
1917
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(CardHeader, {
1739
1918
  children: [
1740
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(CardTitle, {
1919
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(CardTitle, {
1741
1920
  children: heading
1742
1921
  }),
1743
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Typography, {
1922
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Typography, {
1744
1923
  typeStyle: "small",
1745
1924
  className: "text-font-weak-color",
1746
1925
  children: description
1747
1926
  })
1748
1927
  ]
1749
1928
  }),
1750
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(CardContent, {
1751
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(AvatarInfo, _object_spread({}, props))
1929
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(CardContent, {
1930
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(AvatarInfo, _object_spread({}, props))
1752
1931
  })
1753
1932
  ]
1754
1933
  });
1755
1934
  };
1756
1935
  var CardImageWithHeadingAndDescriptionAvatarHorizontal = function(props) {
1757
1936
  var showBorder = props.showBorder, image = props.image, heading = props.heading, description = props.description;
1758
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(Card, {
1937
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(Card, {
1759
1938
  className: cn("lg:w-[600px] w-[360px] lg:flex lg:h-[246px]", !showBorder && "border-none shadow-none "),
1760
1939
  children: [
1761
1940
  image,
1762
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", {
1941
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", {
1763
1942
  children: [
1764
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(CardHeader, {
1943
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(CardHeader, {
1765
1944
  children: [
1766
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(CardTitle, {
1945
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(CardTitle, {
1767
1946
  children: heading
1768
1947
  }),
1769
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Typography, {
1948
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Typography, {
1770
1949
  typeStyle: "small",
1771
1950
  className: "text-font-weak-color",
1772
1951
  children: description
1773
1952
  })
1774
1953
  ]
1775
1954
  }),
1776
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(CardContent, {
1777
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(AvatarInfo, _object_spread({}, props))
1955
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(CardContent, {
1956
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(AvatarInfo, _object_spread({}, props))
1778
1957
  })
1779
1958
  ]
1780
1959
  })