@alquimia-ai/ui 2.0.0 → 2.2.1

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
@@ -1562,73 +1562,252 @@ var ThinkIndicator = React25.forwardRef(function(_param, ref) {
1562
1562
  }));
1563
1563
  });
1564
1564
  ThinkIndicator.displayName = "ThinkIndicator";
1565
- // src/components/templates/cards/with-image-heading-description.tsx
1565
+ // src/components/atoms/ui/accordion.tsx
1566
+ import * as React26 from "react";
1567
+ import * as AccordionPrimitive from "@radix-ui/react-accordion";
1568
+ import { ChevronDown as ChevronDown2 } from "lucide-react";
1566
1569
  import { jsx as jsx34, jsxs as jsxs11 } from "react/jsx-runtime";
1570
+ var AccordionItem = React26.forwardRef(function(_param, ref) {
1571
+ var className = _param.className, props = _object_without_properties(_param, [
1572
+ "className"
1573
+ ]);
1574
+ return /* @__PURE__ */ jsx34(AccordionPrimitive.Item, _object_spread({
1575
+ ref: ref,
1576
+ className: cn("border-b", className)
1577
+ }, props));
1578
+ });
1579
+ AccordionItem.displayName = "AccordionItem";
1580
+ var AccordionTrigger = React26.forwardRef(function(_param, ref) {
1581
+ var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
1582
+ "className",
1583
+ "children"
1584
+ ]);
1585
+ return /* @__PURE__ */ jsx34(AccordionPrimitive.Header, {
1586
+ className: "flex",
1587
+ children: /* @__PURE__ */ jsxs11(AccordionPrimitive.Trigger, _object_spread_props(_object_spread({
1588
+ ref: ref,
1589
+ 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)
1590
+ }, props), {
1591
+ children: [
1592
+ children,
1593
+ /* @__PURE__ */ jsx34(ChevronDown2, {
1594
+ className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"
1595
+ })
1596
+ ]
1597
+ }))
1598
+ });
1599
+ });
1600
+ AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
1601
+ var AccordionContent = React26.forwardRef(function(_param, ref) {
1602
+ var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
1603
+ "className",
1604
+ "children"
1605
+ ]);
1606
+ return /* @__PURE__ */ jsx34(AccordionPrimitive.Content, _object_spread_props(_object_spread({
1607
+ ref: ref,
1608
+ className: "overflow-hidden text-sm text-muted-foreground data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down"
1609
+ }, props), {
1610
+ children: /* @__PURE__ */ jsx34("div", {
1611
+ className: cn("pb-4 pt-0", className),
1612
+ children: children
1613
+ })
1614
+ }));
1615
+ });
1616
+ AccordionContent.displayName = AccordionPrimitive.Content.displayName;
1617
+ // src/components/atoms/ui/radio-group.tsx
1618
+ import * as React27 from "react";
1619
+ import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
1620
+ import { Circle } from "lucide-react";
1621
+ import { jsx as jsx35 } from "react/jsx-runtime";
1622
+ var RadioGroup = React27.forwardRef(function(_param, ref) {
1623
+ var className = _param.className, props = _object_without_properties(_param, [
1624
+ "className"
1625
+ ]);
1626
+ return /* @__PURE__ */ jsx35(RadioGroupPrimitive.Root, _object_spread({
1627
+ ref: ref,
1628
+ className: cn("grid gap-2", className)
1629
+ }, props));
1630
+ });
1631
+ RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
1632
+ var RadioGroupItem = React27.forwardRef(function(_param, ref) {
1633
+ var className = _param.className, props = _object_without_properties(_param, [
1634
+ "className"
1635
+ ]);
1636
+ return /* @__PURE__ */ jsx35(RadioGroupPrimitive.Item, _object_spread_props(_object_spread({
1637
+ ref: ref,
1638
+ 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)
1639
+ }, props), {
1640
+ children: /* @__PURE__ */ jsx35(RadioGroupPrimitive.Indicator, {
1641
+ className: "flex items-center justify-center",
1642
+ children: /* @__PURE__ */ jsx35(Circle, {
1643
+ className: "h-2.5 w-2.5 fill-current text-current"
1644
+ })
1645
+ })
1646
+ }));
1647
+ });
1648
+ RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
1649
+ // src/components/atoms/ui/progress.tsx
1650
+ import * as React28 from "react";
1651
+ import * as ProgressPrimitive from "@radix-ui/react-progress";
1652
+ import { jsx as jsx36 } from "react/jsx-runtime";
1653
+ var Progress = React28.forwardRef(function(_param, ref) {
1654
+ var className = _param.className, value = _param.value, props = _object_without_properties(_param, [
1655
+ "className",
1656
+ "value"
1657
+ ]);
1658
+ return /* @__PURE__ */ jsx36(ProgressPrimitive.Root, _object_spread_props(_object_spread({
1659
+ ref: ref,
1660
+ className: cn("relative h-2 w-full overflow-hidden rounded-full bg-muted", className)
1661
+ }, props), {
1662
+ children: /* @__PURE__ */ jsx36(ProgressPrimitive.Indicator, {
1663
+ className: "h-full w-full flex-1 bg-primary transition-all",
1664
+ style: {
1665
+ transform: "translateX(-".concat(100 - (value || 0), "%)")
1666
+ }
1667
+ })
1668
+ }));
1669
+ });
1670
+ Progress.displayName = ProgressPrimitive.Root.displayName;
1671
+ // src/components/atoms/ui/calendar.tsx
1672
+ import { ChevronLeft, ChevronRight as ChevronRight2 } from "lucide-react";
1673
+ import { DayPicker } from "react-day-picker";
1674
+ import { jsx as jsx37 } from "react/jsx-runtime";
1675
+ function Calendar(_param) {
1676
+ var className = _param.className, classNames = _param.classNames, _param_showOutsideDays = _param.showOutsideDays, showOutsideDays = _param_showOutsideDays === void 0 ? true : _param_showOutsideDays, props = _object_without_properties(_param, [
1677
+ "className",
1678
+ "classNames",
1679
+ "showOutsideDays"
1680
+ ]);
1681
+ return /* @__PURE__ */ jsx37(DayPicker, _object_spread({
1682
+ showOutsideDays: showOutsideDays,
1683
+ className: cn("p-3", className),
1684
+ classNames: _object_spread({
1685
+ months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
1686
+ month: "space-y-4",
1687
+ caption: "flex justify-center pt-1 relative items-center",
1688
+ caption_label: "text-sm font-medium",
1689
+ nav: "space-x-1 flex items-center",
1690
+ nav_button: cn(buttonVariants({
1691
+ variant: "outline"
1692
+ }), "h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),
1693
+ nav_button_previous: "absolute left-1",
1694
+ nav_button_next: "absolute right-1",
1695
+ table: "w-full border-collapse space-y-1",
1696
+ head_row: "flex",
1697
+ head_cell: "text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",
1698
+ row: "flex w-full mt-2",
1699
+ 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",
1700
+ day: cn(buttonVariants({
1701
+ variant: "ghost"
1702
+ }), "h-9 w-9 p-0 font-normal aria-selected:opacity-100"),
1703
+ day_range_end: "day-range-end",
1704
+ day_selected: "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
1705
+ day_today: "bg-accent text-accent-foreground",
1706
+ day_outside: "day-outside text-muted-foreground opacity-50",
1707
+ day_disabled: "text-muted-foreground opacity-50",
1708
+ day_range_middle: "aria-selected:bg-accent aria-selected:text-accent-foreground",
1709
+ day_hidden: "invisible"
1710
+ }, classNames),
1711
+ components: {
1712
+ IconLeft: function() {
1713
+ return /* @__PURE__ */ jsx37(ChevronLeft, {
1714
+ className: "h-4 w-4"
1715
+ });
1716
+ },
1717
+ IconRight: function() {
1718
+ return /* @__PURE__ */ jsx37(ChevronRight2, {
1719
+ className: "h-4 w-4"
1720
+ });
1721
+ }
1722
+ }
1723
+ }, props));
1724
+ }
1725
+ Calendar.displayName = "Calendar";
1726
+ // src/components/atoms/ui/chart.tsx
1727
+ import { ResponsiveContainer, CartesianGrid, XAxis, YAxis, Tooltip, Legend } from "recharts";
1728
+ import { Fragment, jsx as jsx38, jsxs as jsxs12 } from "react/jsx-runtime";
1729
+ function Chart(param) {
1730
+ var className = param.className, _param_height = param.height, height = _param_height === void 0 ? 300 : _param_height, children = param.children;
1731
+ return /* @__PURE__ */ jsx38("div", {
1732
+ className: cn("w-full", className),
1733
+ style: {
1734
+ height: height
1735
+ },
1736
+ children: /* @__PURE__ */ jsx38(ResponsiveContainer, {
1737
+ width: "100%",
1738
+ height: "100%",
1739
+ children: children
1740
+ })
1741
+ });
1742
+ }
1743
+ Chart.displayName = "Chart";
1744
+ // src/components/templates/cards/with-image-heading-description.tsx
1745
+ import { jsx as jsx39, jsxs as jsxs13 } from "react/jsx-runtime";
1567
1746
  var CardWithImageHeadingDescriptionVertical = function(props) {
1568
1747
  var showBorder = props.showBorder, image = props.image, heading = props.heading, description = props.description;
1569
- return /* @__PURE__ */ jsxs11(Card, {
1748
+ return /* @__PURE__ */ jsxs13(Card, {
1570
1749
  className: cn("w-[360px]", !showBorder && "border-none shadow-none"),
1571
1750
  children: [
1572
1751
  image,
1573
- /* @__PURE__ */ jsxs11(CardHeader, {
1752
+ /* @__PURE__ */ jsxs13(CardHeader, {
1574
1753
  children: [
1575
- /* @__PURE__ */ jsx34(CardTitle, {
1754
+ /* @__PURE__ */ jsx39(CardTitle, {
1576
1755
  children: heading
1577
1756
  }),
1578
- /* @__PURE__ */ jsx34(Typography, {
1757
+ /* @__PURE__ */ jsx39(Typography, {
1579
1758
  typeStyle: "small",
1580
1759
  className: "text-font-weak-color",
1581
1760
  children: description
1582
1761
  })
1583
1762
  ]
1584
1763
  }),
1585
- /* @__PURE__ */ jsx34(CardContent, {})
1764
+ /* @__PURE__ */ jsx39(CardContent, {})
1586
1765
  ]
1587
1766
  });
1588
1767
  };
1589
1768
  var CardImageWithHeadingAndDescriptionHorizontal = function(props) {
1590
1769
  var showBorder = props.showBorder, image = props.image, heading = props.heading, description = props.description;
1591
- return /* @__PURE__ */ jsxs11(Card, {
1770
+ return /* @__PURE__ */ jsxs13(Card, {
1592
1771
  className: cn("lg:w-[600px] w-[360px] lg:flex lg:h-[150px]", !showBorder && "border-none shadow-none "),
1593
1772
  children: [
1594
1773
  image,
1595
- /* @__PURE__ */ jsxs11(CardHeader, {
1774
+ /* @__PURE__ */ jsxs13(CardHeader, {
1596
1775
  children: [
1597
- /* @__PURE__ */ jsx34(CardTitle, {
1776
+ /* @__PURE__ */ jsx39(CardTitle, {
1598
1777
  children: heading
1599
1778
  }),
1600
- /* @__PURE__ */ jsx34(Typography, {
1779
+ /* @__PURE__ */ jsx39(Typography, {
1601
1780
  typeStyle: "small",
1602
1781
  className: "text-font-weak-color",
1603
1782
  children: description
1604
1783
  })
1605
1784
  ]
1606
1785
  }),
1607
- /* @__PURE__ */ jsx34(CardContent, {})
1786
+ /* @__PURE__ */ jsx39(CardContent, {})
1608
1787
  ]
1609
1788
  });
1610
1789
  };
1611
1790
  // src/components/templates/cards/with-image-heading-description-avatar.tsx
1612
- import { jsx as jsx35, jsxs as jsxs12 } from "react/jsx-runtime";
1791
+ import { jsx as jsx40, jsxs as jsxs14 } from "react/jsx-runtime";
1613
1792
  var AvatarInfo = function(props) {
1614
1793
  var userName = props.userName, email = props.email, avatarImage = props.avatarImage;
1615
- return /* @__PURE__ */ jsxs12("div", {
1794
+ return /* @__PURE__ */ jsxs14("div", {
1616
1795
  className: "flex space-x-2 items-center",
1617
1796
  children: [
1618
- /* @__PURE__ */ jsx35(Avatar, {
1797
+ /* @__PURE__ */ jsx40(Avatar, {
1619
1798
  className: "w-16 h-16",
1620
- children: /* @__PURE__ */ jsx35(AvatarImage, {
1799
+ children: /* @__PURE__ */ jsx40(AvatarImage, {
1621
1800
  src: avatarImage
1622
1801
  })
1623
1802
  }),
1624
- /* @__PURE__ */ jsxs12("div", {
1803
+ /* @__PURE__ */ jsxs14("div", {
1625
1804
  children: [
1626
- /* @__PURE__ */ jsx35(Typography, {
1805
+ /* @__PURE__ */ jsx40(Typography, {
1627
1806
  typeStyle: "small",
1628
1807
  className: "font-semibold",
1629
1808
  children: userName
1630
1809
  }),
1631
- /* @__PURE__ */ jsx35(Typography, {
1810
+ /* @__PURE__ */ jsx40(Typography, {
1632
1811
  typeStyle: "tiny",
1633
1812
  className: "text-font-weak-color",
1634
1813
  children: email
@@ -1640,50 +1819,50 @@ var AvatarInfo = function(props) {
1640
1819
  };
1641
1820
  var CardWithImageHeadingDescriptionAvatarVertical = function(props) {
1642
1821
  var showBorder = props.showBorder, image = props.image, heading = props.heading, description = props.description;
1643
- return /* @__PURE__ */ jsxs12(Card, {
1822
+ return /* @__PURE__ */ jsxs14(Card, {
1644
1823
  className: cn("w-[360px]", !showBorder && "border-none shadow-none"),
1645
1824
  children: [
1646
1825
  image,
1647
- /* @__PURE__ */ jsxs12(CardHeader, {
1826
+ /* @__PURE__ */ jsxs14(CardHeader, {
1648
1827
  children: [
1649
- /* @__PURE__ */ jsx35(CardTitle, {
1828
+ /* @__PURE__ */ jsx40(CardTitle, {
1650
1829
  children: heading
1651
1830
  }),
1652
- /* @__PURE__ */ jsx35(Typography, {
1831
+ /* @__PURE__ */ jsx40(Typography, {
1653
1832
  typeStyle: "small",
1654
1833
  className: "text-font-weak-color",
1655
1834
  children: description
1656
1835
  })
1657
1836
  ]
1658
1837
  }),
1659
- /* @__PURE__ */ jsx35(CardContent, {
1660
- children: /* @__PURE__ */ jsx35(AvatarInfo, _object_spread({}, props))
1838
+ /* @__PURE__ */ jsx40(CardContent, {
1839
+ children: /* @__PURE__ */ jsx40(AvatarInfo, _object_spread({}, props))
1661
1840
  })
1662
1841
  ]
1663
1842
  });
1664
1843
  };
1665
1844
  var CardImageWithHeadingAndDescriptionAvatarHorizontal = function(props) {
1666
1845
  var showBorder = props.showBorder, image = props.image, heading = props.heading, description = props.description;
1667
- return /* @__PURE__ */ jsxs12(Card, {
1846
+ return /* @__PURE__ */ jsxs14(Card, {
1668
1847
  className: cn("lg:w-[600px] w-[360px] lg:flex lg:h-[246px]", !showBorder && "border-none shadow-none "),
1669
1848
  children: [
1670
1849
  image,
1671
- /* @__PURE__ */ jsxs12("div", {
1850
+ /* @__PURE__ */ jsxs14("div", {
1672
1851
  children: [
1673
- /* @__PURE__ */ jsxs12(CardHeader, {
1852
+ /* @__PURE__ */ jsxs14(CardHeader, {
1674
1853
  children: [
1675
- /* @__PURE__ */ jsx35(CardTitle, {
1854
+ /* @__PURE__ */ jsx40(CardTitle, {
1676
1855
  children: heading
1677
1856
  }),
1678
- /* @__PURE__ */ jsx35(Typography, {
1857
+ /* @__PURE__ */ jsx40(Typography, {
1679
1858
  typeStyle: "small",
1680
1859
  className: "text-font-weak-color",
1681
1860
  children: description
1682
1861
  })
1683
1862
  ]
1684
1863
  }),
1685
- /* @__PURE__ */ jsx35(CardContent, {
1686
- children: /* @__PURE__ */ jsx35(AvatarInfo, _object_spread({}, props))
1864
+ /* @__PURE__ */ jsx40(CardContent, {
1865
+ children: /* @__PURE__ */ jsx40(AvatarInfo, _object_spread({}, props))
1687
1866
  })
1688
1867
  ]
1689
1868
  })