@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
@@ -1511,17 +1511,196 @@ var ThinkIndicator = React25.forwardRef(function(_param, ref) {
1511
1511
  }));
1512
1512
  });
1513
1513
  ThinkIndicator.displayName = "ThinkIndicator";
1514
+ // src/components/atoms/ui/accordion.tsx
1515
+ import * as React26 from "react";
1516
+ import * as AccordionPrimitive from "@radix-ui/react-accordion";
1517
+ import { ChevronDown as ChevronDown2 } from "lucide-react";
1518
+ import { jsx as jsx31, jsxs as jsxs11 } from "react/jsx-runtime";
1519
+ var AccordionItem = React26.forwardRef(function(_param, ref) {
1520
+ var className = _param.className, props = _object_without_properties(_param, [
1521
+ "className"
1522
+ ]);
1523
+ return /* @__PURE__ */ jsx31(AccordionPrimitive.Item, _object_spread({
1524
+ ref: ref,
1525
+ className: cn("border-b", className)
1526
+ }, props));
1527
+ });
1528
+ AccordionItem.displayName = "AccordionItem";
1529
+ var AccordionTrigger = React26.forwardRef(function(_param, ref) {
1530
+ var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
1531
+ "className",
1532
+ "children"
1533
+ ]);
1534
+ return /* @__PURE__ */ jsx31(AccordionPrimitive.Header, {
1535
+ className: "flex",
1536
+ children: /* @__PURE__ */ jsxs11(AccordionPrimitive.Trigger, _object_spread_props(_object_spread({
1537
+ ref: ref,
1538
+ 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)
1539
+ }, props), {
1540
+ children: [
1541
+ children,
1542
+ /* @__PURE__ */ jsx31(ChevronDown2, {
1543
+ className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"
1544
+ })
1545
+ ]
1546
+ }))
1547
+ });
1548
+ });
1549
+ AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
1550
+ var AccordionContent = React26.forwardRef(function(_param, ref) {
1551
+ var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
1552
+ "className",
1553
+ "children"
1554
+ ]);
1555
+ return /* @__PURE__ */ jsx31(AccordionPrimitive.Content, _object_spread_props(_object_spread({
1556
+ ref: ref,
1557
+ className: "overflow-hidden text-sm text-muted-foreground data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down"
1558
+ }, props), {
1559
+ children: /* @__PURE__ */ jsx31("div", {
1560
+ className: cn("pb-4 pt-0", className),
1561
+ children: children
1562
+ })
1563
+ }));
1564
+ });
1565
+ AccordionContent.displayName = AccordionPrimitive.Content.displayName;
1566
+ // src/components/atoms/ui/radio-group.tsx
1567
+ import * as React27 from "react";
1568
+ import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
1569
+ import { Circle } from "lucide-react";
1570
+ import { jsx as jsx32 } from "react/jsx-runtime";
1571
+ var RadioGroup = React27.forwardRef(function(_param, ref) {
1572
+ var className = _param.className, props = _object_without_properties(_param, [
1573
+ "className"
1574
+ ]);
1575
+ return /* @__PURE__ */ jsx32(RadioGroupPrimitive.Root, _object_spread({
1576
+ ref: ref,
1577
+ className: cn("grid gap-2", className)
1578
+ }, props));
1579
+ });
1580
+ RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
1581
+ var RadioGroupItem = React27.forwardRef(function(_param, ref) {
1582
+ var className = _param.className, props = _object_without_properties(_param, [
1583
+ "className"
1584
+ ]);
1585
+ return /* @__PURE__ */ jsx32(RadioGroupPrimitive.Item, _object_spread_props(_object_spread({
1586
+ ref: ref,
1587
+ 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)
1588
+ }, props), {
1589
+ children: /* @__PURE__ */ jsx32(RadioGroupPrimitive.Indicator, {
1590
+ className: "flex items-center justify-center",
1591
+ children: /* @__PURE__ */ jsx32(Circle, {
1592
+ className: "h-2.5 w-2.5 fill-current text-current"
1593
+ })
1594
+ })
1595
+ }));
1596
+ });
1597
+ RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
1598
+ // src/components/atoms/ui/progress.tsx
1599
+ import * as React28 from "react";
1600
+ import * as ProgressPrimitive from "@radix-ui/react-progress";
1601
+ import { jsx as jsx33 } from "react/jsx-runtime";
1602
+ var Progress = React28.forwardRef(function(_param, ref) {
1603
+ var className = _param.className, value = _param.value, props = _object_without_properties(_param, [
1604
+ "className",
1605
+ "value"
1606
+ ]);
1607
+ return /* @__PURE__ */ jsx33(ProgressPrimitive.Root, _object_spread_props(_object_spread({
1608
+ ref: ref,
1609
+ className: cn("relative h-2 w-full overflow-hidden rounded-full bg-muted", className)
1610
+ }, props), {
1611
+ children: /* @__PURE__ */ jsx33(ProgressPrimitive.Indicator, {
1612
+ className: "h-full w-full flex-1 bg-primary transition-all",
1613
+ style: {
1614
+ transform: "translateX(-".concat(100 - (value || 0), "%)")
1615
+ }
1616
+ })
1617
+ }));
1618
+ });
1619
+ Progress.displayName = ProgressPrimitive.Root.displayName;
1620
+ // src/components/atoms/ui/calendar.tsx
1621
+ import { ChevronLeft, ChevronRight as ChevronRight2 } from "lucide-react";
1622
+ import { DayPicker } from "react-day-picker";
1623
+ import { jsx as jsx34 } from "react/jsx-runtime";
1624
+ function Calendar(_param) {
1625
+ var className = _param.className, classNames = _param.classNames, _param_showOutsideDays = _param.showOutsideDays, showOutsideDays = _param_showOutsideDays === void 0 ? true : _param_showOutsideDays, props = _object_without_properties(_param, [
1626
+ "className",
1627
+ "classNames",
1628
+ "showOutsideDays"
1629
+ ]);
1630
+ return /* @__PURE__ */ jsx34(DayPicker, _object_spread({
1631
+ showOutsideDays: showOutsideDays,
1632
+ className: cn("p-3", className),
1633
+ classNames: _object_spread({
1634
+ months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
1635
+ month: "space-y-4",
1636
+ caption: "flex justify-center pt-1 relative items-center",
1637
+ caption_label: "text-sm font-medium",
1638
+ nav: "space-x-1 flex items-center",
1639
+ nav_button: cn(buttonVariants({
1640
+ variant: "outline"
1641
+ }), "h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),
1642
+ nav_button_previous: "absolute left-1",
1643
+ nav_button_next: "absolute right-1",
1644
+ table: "w-full border-collapse space-y-1",
1645
+ head_row: "flex",
1646
+ head_cell: "text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",
1647
+ row: "flex w-full mt-2",
1648
+ 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",
1649
+ day: cn(buttonVariants({
1650
+ variant: "ghost"
1651
+ }), "h-9 w-9 p-0 font-normal aria-selected:opacity-100"),
1652
+ day_range_end: "day-range-end",
1653
+ day_selected: "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
1654
+ day_today: "bg-accent text-accent-foreground",
1655
+ day_outside: "day-outside text-muted-foreground opacity-50",
1656
+ day_disabled: "text-muted-foreground opacity-50",
1657
+ day_range_middle: "aria-selected:bg-accent aria-selected:text-accent-foreground",
1658
+ day_hidden: "invisible"
1659
+ }, classNames),
1660
+ components: {
1661
+ IconLeft: function() {
1662
+ return /* @__PURE__ */ jsx34(ChevronLeft, {
1663
+ className: "h-4 w-4"
1664
+ });
1665
+ },
1666
+ IconRight: function() {
1667
+ return /* @__PURE__ */ jsx34(ChevronRight2, {
1668
+ className: "h-4 w-4"
1669
+ });
1670
+ }
1671
+ }
1672
+ }, props));
1673
+ }
1674
+ Calendar.displayName = "Calendar";
1675
+ // src/components/atoms/ui/chart.tsx
1676
+ import { ResponsiveContainer, CartesianGrid, XAxis, YAxis, Tooltip, Legend } from "recharts";
1677
+ import { Fragment, jsx as jsx35, jsxs as jsxs12 } from "react/jsx-runtime";
1678
+ function Chart(param) {
1679
+ var className = param.className, _param_height = param.height, height = _param_height === void 0 ? 300 : _param_height, children = param.children;
1680
+ return /* @__PURE__ */ jsx35("div", {
1681
+ className: cn("w-full", className),
1682
+ style: {
1683
+ height: height
1684
+ },
1685
+ children: /* @__PURE__ */ jsx35(ResponsiveContainer, {
1686
+ width: "100%",
1687
+ height: "100%",
1688
+ children: children
1689
+ })
1690
+ });
1691
+ }
1692
+ Chart.displayName = "Chart";
1514
1693
  // src/components/molecules/viewers/pdf-viewer.tsx
1515
- import { ChevronLeft, ChevronRight as ChevronRight2, ZoomIn, ZoomOut } from "lucide-react";
1694
+ import { ChevronLeft as ChevronLeft2, ChevronRight as ChevronRight3, ZoomIn, ZoomOut } from "lucide-react";
1516
1695
  // src/components/hooks/use-resize-observer.ts
1517
1696
  import { useEffect as useEffect3, useRef } from "react";
1518
1697
  // src/components/molecules/viewers/pdf-viewer.tsx
1519
1698
  import { pdfjs, Document, Page } from "react-pdf";
1520
1699
  import "react-pdf/dist/esm/Page/AnnotationLayer.css";
1521
1700
  import "react-pdf/dist/esm/Page/TextLayer.css";
1522
- import { Fragment, jsx as jsx31, jsxs as jsxs11 } from "react/jsx-runtime";
1701
+ import { Fragment as Fragment2, jsx as jsx36, jsxs as jsxs13 } from "react/jsx-runtime";
1523
1702
  pdfjs.GlobalWorkerOptions.workerSrc = "//unpkg.com/pdfjs-dist@".concat(pdfjs.version, "/build/pdf.worker.min.mjs");
1524
1703
  // src/components/molecules/viewers/plain-text-viewer.tsx
1525
1704
  import { useState as useState4, useEffect as useEffect5 } from "react";
1526
- import { Fragment as Fragment2, jsx as jsx32, jsxs as jsxs12 } from "react/jsx-runtime";
1705
+ import { Fragment as Fragment3, jsx as jsx37, jsxs as jsxs14 } from "react/jsx-runtime";
1527
1706
  //# sourceMappingURL=index.mjs.map