@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
@@ -1554,40 +1554,69 @@ var init_loader = __esm({
1554
1554
  }
1555
1555
  });
1556
1556
 
1557
+ // src/components/atoms/ui/separator.tsx
1558
+ var React23, SeparatorPrimitive, import_jsx_runtime28, Separator2;
1559
+ var init_separator = __esm({
1560
+ "src/components/atoms/ui/separator.tsx"() {
1561
+ "use strict";
1562
+ "use client";
1563
+ React23 = __toESM(require("react"));
1564
+ SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"));
1565
+ init_utils();
1566
+ import_jsx_runtime28 = require("react/jsx-runtime");
1567
+ Separator2 = React23.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1568
+ SeparatorPrimitive.Root,
1569
+ {
1570
+ ref,
1571
+ decorative,
1572
+ orientation,
1573
+ className: cn(
1574
+ "shrink-0 bg-border",
1575
+ orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
1576
+ className,
1577
+ "alq--separator"
1578
+ ),
1579
+ ...props
1580
+ }
1581
+ ));
1582
+ Separator2.displayName = SeparatorPrimitive.Root.displayName;
1583
+ }
1584
+ });
1585
+
1557
1586
  // src/components/hooks/use-toast.ts
1558
- var React23;
1587
+ var React24;
1559
1588
  var init_use_toast = __esm({
1560
1589
  "src/components/hooks/use-toast.ts"() {
1561
1590
  "use strict";
1562
1591
  "use client";
1563
- React23 = __toESM(require("react"));
1592
+ React24 = __toESM(require("react"));
1564
1593
  }
1565
1594
  });
1566
1595
 
1567
1596
  // src/components/atoms/ui/toaster.tsx
1568
- var import_jsx_runtime28;
1597
+ var import_jsx_runtime29;
1569
1598
  var init_toaster = __esm({
1570
1599
  "src/components/atoms/ui/toaster.tsx"() {
1571
1600
  "use strict";
1572
1601
  "use client";
1573
1602
  init_use_toast();
1574
1603
  init_toast();
1575
- import_jsx_runtime28 = require("react/jsx-runtime");
1604
+ import_jsx_runtime29 = require("react/jsx-runtime");
1576
1605
  }
1577
1606
  });
1578
1607
 
1579
1608
  // src/components/atoms/ui/think-indicator.tsx
1580
- var React24, import_react3, import_class_variance_authority8, import_jsx_runtime29, thinkIndicatorVariants, ThinkIndicator;
1609
+ var React25, import_react3, import_class_variance_authority8, import_jsx_runtime30, thinkIndicatorVariants, ThinkIndicator;
1581
1610
  var init_think_indicator = __esm({
1582
1611
  "src/components/atoms/ui/think-indicator.tsx"() {
1583
1612
  "use strict";
1584
1613
  "use client";
1585
- React24 = __toESM(require("react"));
1614
+ React25 = __toESM(require("react"));
1586
1615
  import_react3 = require("react");
1587
1616
  init_atoms();
1588
1617
  init_utils();
1589
1618
  import_class_variance_authority8 = require("class-variance-authority");
1590
- import_jsx_runtime29 = require("react/jsx-runtime");
1619
+ import_jsx_runtime30 = require("react/jsx-runtime");
1591
1620
  thinkIndicatorVariants = (0, import_class_variance_authority8.cva)(
1592
1621
  "flex items-center gap-3",
1593
1622
  {
@@ -1609,7 +1638,7 @@ var init_think_indicator = __esm({
1609
1638
  }
1610
1639
  }
1611
1640
  );
1612
- ThinkIndicator = React24.forwardRef(
1641
+ ThinkIndicator = React25.forwardRef(
1613
1642
  ({
1614
1643
  className,
1615
1644
  variant,
@@ -1640,14 +1669,14 @@ var init_think_indicator = __esm({
1640
1669
  }
1641
1670
  return () => clearInterval(timer);
1642
1671
  }, [thoughts, interval, currentThoughtIndex]);
1643
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
1672
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
1644
1673
  "div",
1645
1674
  {
1646
1675
  ref,
1647
1676
  className: cn(thinkIndicatorVariants({ variant, size }), className, "alq--think-indicator"),
1648
1677
  ...props,
1649
1678
  children: [
1650
- loader || /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1679
+ loader || /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1651
1680
  Loader,
1652
1681
  {
1653
1682
  className: cn(
@@ -1655,7 +1684,7 @@ var init_think_indicator = __esm({
1655
1684
  )
1656
1685
  }
1657
1686
  ),
1658
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1687
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1659
1688
  "div",
1660
1689
  {
1661
1690
  className: cn(
@@ -1709,6 +1738,7 @@ var init_atoms = __esm({
1709
1738
  init_dialog();
1710
1739
  init_toast();
1711
1740
  init_loader();
1741
+ init_separator();
1712
1742
  init_toaster();
1713
1743
  init_think_indicator();
1714
1744
  }
@@ -1787,49 +1817,49 @@ function PdfViewer({ doc, docId }) {
1787
1817
  a.click();
1788
1818
  URL.revokeObjectURL(docUrl || "");
1789
1819
  };
1790
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_jsx_runtime30.Fragment, { children: [
1791
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex justify-between items-center p-4 border-b border-border", children: [
1792
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { children: [
1793
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1820
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
1821
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex justify-between items-center p-4 border-b border-border", children: [
1822
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { children: [
1823
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1794
1824
  Button,
1795
1825
  {
1796
1826
  onClick: handlePrevPage,
1797
1827
  disabled: pageNumber <= 1,
1798
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react8.ChevronLeft, { className: "h-4 w-4" })
1828
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react8.ChevronLeft, { className: "h-4 w-4" })
1799
1829
  }
1800
1830
  ),
1801
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("span", { className: "mx-2", children: [
1831
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("span", { className: "mx-2", children: [
1802
1832
  "Page ",
1803
1833
  pageNumber,
1804
1834
  " of ",
1805
1835
  numPages
1806
1836
  ] }),
1807
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1837
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1808
1838
  Button,
1809
1839
  {
1810
1840
  onClick: handleNextPage,
1811
1841
  disabled: pageNumber >= numPages,
1812
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react8.ChevronRight, { className: "h-4 w-4" })
1842
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react8.ChevronRight, { className: "h-4 w-4" })
1813
1843
  }
1814
1844
  )
1815
1845
  ] }),
1816
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { children: [
1817
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Button, { onClick: handleZoomOut, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react8.ZoomOut, { className: "h-4 w-4" }) }),
1818
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("span", { className: "mx-2", children: [
1846
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { children: [
1847
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Button, { onClick: handleZoomOut, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react8.ZoomOut, { className: "h-4 w-4" }) }),
1848
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("span", { className: "mx-2", children: [
1819
1849
  (scale * 100).toFixed(0),
1820
1850
  "%"
1821
1851
  ] }),
1822
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Button, { onClick: handleZoomIn, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react8.ZoomIn, { className: "h-4 w-4" }) })
1852
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Button, { onClick: handleZoomIn, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react8.ZoomIn, { className: "h-4 w-4" }) })
1823
1853
  ] })
1824
1854
  ] }),
1825
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { ref: setContainerRef, className: "overflow-auto", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1855
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { ref: setContainerRef, className: "overflow-auto", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1826
1856
  import_react_pdf.Document,
1827
1857
  {
1828
1858
  file: doc,
1829
1859
  onLoadSuccess: onDocumentLoadSuccess,
1830
1860
  options,
1831
- loading: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Loader, { size: "xl", colorVariant: "destructive" }),
1832
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1861
+ loading: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Loader, { size: "xl", colorVariant: "destructive" }),
1862
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1833
1863
  import_react_pdf.Page,
1834
1864
  {
1835
1865
  pageNumber,
@@ -1842,7 +1872,7 @@ function PdfViewer({ doc, docId }) {
1842
1872
  ) })
1843
1873
  ] });
1844
1874
  }
1845
- var import_react6, import_lucide_react8, import_react_pdf, import_AnnotationLayer, import_TextLayer, import_jsx_runtime30, options, resizeObserverOptions;
1875
+ var import_react6, import_lucide_react8, import_react_pdf, import_AnnotationLayer, import_TextLayer, import_jsx_runtime31, options, resizeObserverOptions;
1846
1876
  var init_pdf_viewer = __esm({
1847
1877
  "src/components/molecules/viewers/pdf-viewer.tsx"() {
1848
1878
  "use strict";
@@ -1854,7 +1884,7 @@ var init_pdf_viewer = __esm({
1854
1884
  import_react_pdf = require("react-pdf");
1855
1885
  import_AnnotationLayer = require("react-pdf/dist/esm/Page/AnnotationLayer.css");
1856
1886
  import_TextLayer = require("react-pdf/dist/esm/Page/TextLayer.css");
1857
- import_jsx_runtime30 = require("react/jsx-runtime");
1887
+ import_jsx_runtime31 = require("react/jsx-runtime");
1858
1888
  import_react_pdf.pdfjs.GlobalWorkerOptions.workerSrc = `//unpkg.com/pdfjs-dist@${import_react_pdf.pdfjs.version}/build/pdf.worker.min.mjs`;
1859
1889
  options = {
1860
1890
  cMapUrl: "/cmaps/",
@@ -1888,19 +1918,19 @@ function PlainTextViewer({ doc }) {
1888
1918
  }
1889
1919
  parseDocument();
1890
1920
  }, [doc]);
1891
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_jsx_runtime31.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "relative w-full h-full max-h-[80vh] overflow-y-auto p-8 alq--prose", children: [
1892
- loading && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Loader, {}),
1893
- !loading && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(RichText, { content: content || "" })
1921
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_jsx_runtime32.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "relative w-full h-full max-h-[80vh] overflow-y-auto p-8 alq--prose", children: [
1922
+ loading && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Loader, {}),
1923
+ !loading && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(RichText, { content: content || "" })
1894
1924
  ] }) });
1895
1925
  }
1896
- var import_react7, import_jsx_runtime31;
1926
+ var import_react7, import_jsx_runtime32;
1897
1927
  var init_plain_text_viewer = __esm({
1898
1928
  "src/components/molecules/viewers/plain-text-viewer.tsx"() {
1899
1929
  "use strict";
1900
1930
  "use client";
1901
1931
  import_react7 = require("react");
1902
1932
  init_atoms();
1903
- import_jsx_runtime31 = require("react/jsx-runtime");
1933
+ import_jsx_runtime32 = require("react/jsx-runtime");
1904
1934
  }
1905
1935
  });
1906
1936
 
@@ -1957,7 +1987,7 @@ var useDocumentReader = (url, getDocument) => {
1957
1987
 
1958
1988
  // src/components/molecules/documents/document-viewer.tsx
1959
1989
  var import_dynamic = __toESM(require("next/dynamic"));
1960
- var import_jsx_runtime32 = require("react/jsx-runtime");
1990
+ var import_jsx_runtime33 = require("react/jsx-runtime");
1961
1991
  var PdfViewer2 = (0, import_dynamic.default)(() => Promise.resolve().then(() => (init_pdf_viewer(), pdf_viewer_exports)), { ssr: false });
1962
1992
  var PlainTextViewer2 = (0, import_dynamic.default)(() => Promise.resolve().then(() => (init_plain_text_viewer(), plain_text_viewer_exports)), { ssr: false });
1963
1993
  var DocumentViewer = ({
@@ -1974,15 +2004,15 @@ var DocumentViewer = ({
1974
2004
  fetchDocument();
1975
2005
  }
1976
2006
  }, [isOpen]);
1977
- const documentRender = document2 && !error ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DocumentFactory, { document: document2, docId: doc.id }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "flex flex-col items-center justify-center h-full w-full text-center p-4", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "text-primary font-medium", children: error }) });
1978
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Dialog, { open: isOpen, onOpenChange: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
2007
+ const documentRender = document2 && !error ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(DocumentFactory, { document: document2, docId: doc.id }) : /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "flex flex-col items-center justify-center h-full w-full text-center p-4", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "text-primary font-medium", children: error }) });
2008
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Dialog, { open: isOpen, onOpenChange: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
1979
2009
  DialogContent,
1980
2010
  {
1981
2011
  "aria-describedby": document2 ? "document-description" : void 0,
1982
2012
  className: "h-[90%] max-w-[90%] gap-0 flex flex-col focus:outline-none",
1983
2013
  children: [
1984
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DialogHeader, { className: "border-b border-border pb-2", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DialogTitle, { children: doc.name }) }),
1985
- !document2 && loading ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Loader, { size: "xl", colorVariant: "destructive" }) : documentRender
2014
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(DialogHeader, { className: "border-b border-border pb-2", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(DialogTitle, { children: doc.name }) }),
2015
+ !document2 && loading ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Loader, { size: "xl", colorVariant: "destructive" }) : documentRender
1986
2016
  ]
1987
2017
  }
1988
2018
  ) });
@@ -1990,16 +2020,16 @@ var DocumentViewer = ({
1990
2020
  var DocumentFactory = ({ document: document2, docId }) => {
1991
2021
  switch (document2 && document2.type) {
1992
2022
  case "application/pdf":
1993
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(PdfViewer2, { doc: document2, docId });
2023
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(PdfViewer2, { doc: document2, docId });
1994
2024
  case "text/plain":
1995
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(PlainTextViewer2, { doc: document2, docId });
2025
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(PlainTextViewer2, { doc: document2, docId });
1996
2026
  default:
1997
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { children: "Unsupported file type" });
2027
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { children: "Unsupported file type" });
1998
2028
  }
1999
2029
  };
2000
2030
 
2001
2031
  // src/components/molecules/documents/document-selector.tsx
2002
- var import_jsx_runtime33 = require("react/jsx-runtime");
2032
+ var import_jsx_runtime34 = require("react/jsx-runtime");
2003
2033
  var DocumentSelector = ({ documents, getDocument, logInfoMessage }) => {
2004
2034
  const [selectedDocName, setSelectedDocName] = (0, import_react9.useState)(void 0);
2005
2035
  const [selectedDoc, setSelectedDoc] = (0, import_react9.useState)(null);
@@ -2016,26 +2046,26 @@ var DocumentSelector = ({ documents, getDocument, logInfoMessage }) => {
2016
2046
  const handleDrawerClose = () => {
2017
2047
  setIsModalOpen(false);
2018
2048
  };
2019
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "w-full md:w-4/6 alq--document-selector", children: [
2020
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(Select, { value: selectedDocName, onValueChange: setSelectedDocName, children: [
2021
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(SelectTrigger, { "aria-label": "Documentos", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(SelectValue, { placeholder: "Documentos" }) }),
2022
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(SelectContent, { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(SelectGroup, { children: [
2023
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(SelectLabel, { children: "Documents" }),
2024
- documents.map((doc) => /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "w-full flex relative", children: [
2025
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(SelectItem, { className: "w-full", value: doc.id, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "flex justify-between w-full", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "h-4 truncate mr-5", children: doc.name }) }) }, doc.id),
2026
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2049
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "w-full md:w-4/6 alq--document-selector", children: [
2050
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Select, { value: selectedDocName, onValueChange: setSelectedDocName, children: [
2051
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SelectTrigger, { "aria-label": "Documentos", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SelectValue, { placeholder: "Documentos" }) }),
2052
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SelectContent, { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(SelectGroup, { children: [
2053
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SelectLabel, { children: "Documents" }),
2054
+ documents.map((doc) => /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "w-full flex relative", children: [
2055
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SelectItem, { className: "w-full", value: doc.id, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "flex justify-between w-full", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "h-4 truncate mr-5", children: doc.name }) }) }, doc.id),
2056
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2027
2057
  "div",
2028
2058
  {
2029
2059
  onClick: (event) => handleDocumentClick(doc, event),
2030
2060
  className: "bflex items-center text-gray-400 hover:text-gray-500 absolute right-0 mt-2",
2031
2061
  "aria-label": `Open ${doc.name}`,
2032
- children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_lucide_react9.ExternalLink, { className: "h-4 w-4 mx-2" })
2062
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react9.ExternalLink, { className: "h-4 w-4 mx-2" })
2033
2063
  }
2034
2064
  )
2035
2065
  ] }, doc.id))
2036
2066
  ] }) })
2037
2067
  ] }),
2038
- selectedDoc && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2068
+ selectedDoc && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2039
2069
  DocumentViewer,
2040
2070
  {
2041
2071
  doc: selectedDoc,