@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.
- package/dist/{alert-dialog-CP71C4vl.d.mts → alert-dialog-HrXEPlTh.d.mts} +1 -1
- package/dist/{alert-dialog-CP71C4vl.d.ts → alert-dialog-HrXEPlTh.d.ts} +1 -1
- package/dist/components/atoms/index.d.mts +48 -3
- package/dist/components/atoms/index.d.ts +48 -3
- package/dist/components/atoms/index.js +239 -0
- package/dist/components/atoms/index.js.map +1 -1
- package/dist/components/atoms/index.mjs +207 -1
- package/dist/components/atoms/index.mjs.map +1 -1
- package/dist/components/genui/index.d.mts +79 -0
- package/dist/components/genui/index.d.ts +79 -0
- package/dist/components/genui/index.js +4693 -0
- package/dist/components/genui/index.js.map +1 -0
- package/dist/components/genui/index.mjs +4622 -0
- package/dist/components/genui/index.mjs.map +1 -0
- package/dist/components/hooks/index.d.mts +1 -1
- package/dist/components/hooks/index.d.ts +1 -1
- package/dist/components/molecules/documents/index.js +283 -58
- package/dist/components/molecules/documents/index.js.map +1 -1
- package/dist/components/molecules/documents/index.mjs +281 -58
- package/dist/components/molecules/documents/index.mjs.map +1 -1
- package/dist/components/molecules/index.d.mts +2 -2
- package/dist/components/molecules/index.d.ts +2 -2
- package/dist/components/molecules/index.js +335 -156
- package/dist/components/molecules/index.js.map +1 -1
- package/dist/components/molecules/index.mjs +331 -152
- package/dist/components/molecules/index.mjs.map +1 -1
- package/dist/components/molecules/viewers/index.js +182 -3
- package/dist/components/molecules/viewers/index.js.map +1 -1
- package/dist/components/molecules/viewers/index.mjs +182 -3
- package/dist/components/molecules/viewers/index.mjs.map +1 -1
- package/dist/components/organisms/index.d.mts +15 -2
- package/dist/components/organisms/index.d.ts +15 -2
- package/dist/components/organisms/index.js +434 -247
- package/dist/components/organisms/index.js.map +1 -1
- package/dist/components/organisms/index.mjs +431 -244
- package/dist/components/organisms/index.mjs.map +1 -1
- package/dist/components/templates/index.js +210 -31
- package/dist/components/templates/index.js.map +1 -1
- package/dist/components/templates/index.mjs +210 -31
- package/dist/components/templates/index.mjs.map +1 -1
- package/dist/index.d.mts +7 -3
- package/dist/index.d.ts +7 -3
- package/dist/index.js +554 -307
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +524 -310
- package/dist/index.mjs.map +1 -1
- package/dist/{toast-2xT7L1tJ.d.mts → toast-DEc6eGUE.d.mts} +1 -1
- package/dist/{toast-2xT7L1tJ.d.ts → toast-DEc6eGUE.d.ts} +1 -1
- package/package.json +22 -3
|
@@ -1570,17 +1570,196 @@ var ThinkIndicator = React25.forwardRef(function(_param, ref) {
|
|
|
1570
1570
|
}));
|
|
1571
1571
|
});
|
|
1572
1572
|
ThinkIndicator.displayName = "ThinkIndicator";
|
|
1573
|
-
// src/components/
|
|
1573
|
+
// src/components/atoms/ui/accordion.tsx
|
|
1574
|
+
var React26 = __toESM(require("react"));
|
|
1575
|
+
var AccordionPrimitive = __toESM(require("@radix-ui/react-accordion"));
|
|
1574
1576
|
var import_lucide_react8 = require("lucide-react");
|
|
1577
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
1578
|
+
var AccordionItem = React26.forwardRef(function(_param, ref) {
|
|
1579
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1580
|
+
"className"
|
|
1581
|
+
]);
|
|
1582
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(AccordionPrimitive.Item, _object_spread({
|
|
1583
|
+
ref: ref,
|
|
1584
|
+
className: cn("border-b", className)
|
|
1585
|
+
}, props));
|
|
1586
|
+
});
|
|
1587
|
+
AccordionItem.displayName = "AccordionItem";
|
|
1588
|
+
var AccordionTrigger = React26.forwardRef(function(_param, ref) {
|
|
1589
|
+
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
1590
|
+
"className",
|
|
1591
|
+
"children"
|
|
1592
|
+
]);
|
|
1593
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(AccordionPrimitive.Header, {
|
|
1594
|
+
className: "flex",
|
|
1595
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(AccordionPrimitive.Trigger, _object_spread_props(_object_spread({
|
|
1596
|
+
ref: ref,
|
|
1597
|
+
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)
|
|
1598
|
+
}, props), {
|
|
1599
|
+
children: [
|
|
1600
|
+
children,
|
|
1601
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react8.ChevronDown, {
|
|
1602
|
+
className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"
|
|
1603
|
+
})
|
|
1604
|
+
]
|
|
1605
|
+
}))
|
|
1606
|
+
});
|
|
1607
|
+
});
|
|
1608
|
+
AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
|
|
1609
|
+
var AccordionContent = React26.forwardRef(function(_param, ref) {
|
|
1610
|
+
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
1611
|
+
"className",
|
|
1612
|
+
"children"
|
|
1613
|
+
]);
|
|
1614
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(AccordionPrimitive.Content, _object_spread_props(_object_spread({
|
|
1615
|
+
ref: ref,
|
|
1616
|
+
className: "overflow-hidden text-sm text-muted-foreground data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down"
|
|
1617
|
+
}, props), {
|
|
1618
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", {
|
|
1619
|
+
className: cn("pb-4 pt-0", className),
|
|
1620
|
+
children: children
|
|
1621
|
+
})
|
|
1622
|
+
}));
|
|
1623
|
+
});
|
|
1624
|
+
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
|
1625
|
+
// src/components/atoms/ui/radio-group.tsx
|
|
1626
|
+
var React27 = __toESM(require("react"));
|
|
1627
|
+
var RadioGroupPrimitive = __toESM(require("@radix-ui/react-radio-group"));
|
|
1628
|
+
var import_lucide_react9 = require("lucide-react");
|
|
1629
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
1630
|
+
var RadioGroup = React27.forwardRef(function(_param, ref) {
|
|
1631
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1632
|
+
"className"
|
|
1633
|
+
]);
|
|
1634
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(RadioGroupPrimitive.Root, _object_spread({
|
|
1635
|
+
ref: ref,
|
|
1636
|
+
className: cn("grid gap-2", className)
|
|
1637
|
+
}, props));
|
|
1638
|
+
});
|
|
1639
|
+
RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
|
|
1640
|
+
var RadioGroupItem = React27.forwardRef(function(_param, ref) {
|
|
1641
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1642
|
+
"className"
|
|
1643
|
+
]);
|
|
1644
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(RadioGroupPrimitive.Item, _object_spread_props(_object_spread({
|
|
1645
|
+
ref: ref,
|
|
1646
|
+
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)
|
|
1647
|
+
}, props), {
|
|
1648
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(RadioGroupPrimitive.Indicator, {
|
|
1649
|
+
className: "flex items-center justify-center",
|
|
1650
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react9.Circle, {
|
|
1651
|
+
className: "h-2.5 w-2.5 fill-current text-current"
|
|
1652
|
+
})
|
|
1653
|
+
})
|
|
1654
|
+
}));
|
|
1655
|
+
});
|
|
1656
|
+
RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
|
|
1657
|
+
// src/components/atoms/ui/progress.tsx
|
|
1658
|
+
var React28 = __toESM(require("react"));
|
|
1659
|
+
var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"));
|
|
1660
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
1661
|
+
var Progress = React28.forwardRef(function(_param, ref) {
|
|
1662
|
+
var className = _param.className, value = _param.value, props = _object_without_properties(_param, [
|
|
1663
|
+
"className",
|
|
1664
|
+
"value"
|
|
1665
|
+
]);
|
|
1666
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ProgressPrimitive.Root, _object_spread_props(_object_spread({
|
|
1667
|
+
ref: ref,
|
|
1668
|
+
className: cn("relative h-2 w-full overflow-hidden rounded-full bg-muted", className)
|
|
1669
|
+
}, props), {
|
|
1670
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ProgressPrimitive.Indicator, {
|
|
1671
|
+
className: "h-full w-full flex-1 bg-primary transition-all",
|
|
1672
|
+
style: {
|
|
1673
|
+
transform: "translateX(-".concat(100 - (value || 0), "%)")
|
|
1674
|
+
}
|
|
1675
|
+
})
|
|
1676
|
+
}));
|
|
1677
|
+
});
|
|
1678
|
+
Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
1679
|
+
// src/components/atoms/ui/calendar.tsx
|
|
1680
|
+
var import_lucide_react10 = require("lucide-react");
|
|
1681
|
+
var import_react_day_picker = require("react-day-picker");
|
|
1682
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
1683
|
+
function Calendar(_param) {
|
|
1684
|
+
var className = _param.className, classNames = _param.classNames, _param_showOutsideDays = _param.showOutsideDays, showOutsideDays = _param_showOutsideDays === void 0 ? true : _param_showOutsideDays, props = _object_without_properties(_param, [
|
|
1685
|
+
"className",
|
|
1686
|
+
"classNames",
|
|
1687
|
+
"showOutsideDays"
|
|
1688
|
+
]);
|
|
1689
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react_day_picker.DayPicker, _object_spread({
|
|
1690
|
+
showOutsideDays: showOutsideDays,
|
|
1691
|
+
className: cn("p-3", className),
|
|
1692
|
+
classNames: _object_spread({
|
|
1693
|
+
months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
|
|
1694
|
+
month: "space-y-4",
|
|
1695
|
+
caption: "flex justify-center pt-1 relative items-center",
|
|
1696
|
+
caption_label: "text-sm font-medium",
|
|
1697
|
+
nav: "space-x-1 flex items-center",
|
|
1698
|
+
nav_button: cn(buttonVariants({
|
|
1699
|
+
variant: "outline"
|
|
1700
|
+
}), "h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),
|
|
1701
|
+
nav_button_previous: "absolute left-1",
|
|
1702
|
+
nav_button_next: "absolute right-1",
|
|
1703
|
+
table: "w-full border-collapse space-y-1",
|
|
1704
|
+
head_row: "flex",
|
|
1705
|
+
head_cell: "text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",
|
|
1706
|
+
row: "flex w-full mt-2",
|
|
1707
|
+
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",
|
|
1708
|
+
day: cn(buttonVariants({
|
|
1709
|
+
variant: "ghost"
|
|
1710
|
+
}), "h-9 w-9 p-0 font-normal aria-selected:opacity-100"),
|
|
1711
|
+
day_range_end: "day-range-end",
|
|
1712
|
+
day_selected: "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
|
|
1713
|
+
day_today: "bg-accent text-accent-foreground",
|
|
1714
|
+
day_outside: "day-outside text-muted-foreground opacity-50",
|
|
1715
|
+
day_disabled: "text-muted-foreground opacity-50",
|
|
1716
|
+
day_range_middle: "aria-selected:bg-accent aria-selected:text-accent-foreground",
|
|
1717
|
+
day_hidden: "invisible"
|
|
1718
|
+
}, classNames),
|
|
1719
|
+
components: {
|
|
1720
|
+
IconLeft: function() {
|
|
1721
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react10.ChevronLeft, {
|
|
1722
|
+
className: "h-4 w-4"
|
|
1723
|
+
});
|
|
1724
|
+
},
|
|
1725
|
+
IconRight: function() {
|
|
1726
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react10.ChevronRight, {
|
|
1727
|
+
className: "h-4 w-4"
|
|
1728
|
+
});
|
|
1729
|
+
}
|
|
1730
|
+
}
|
|
1731
|
+
}, props));
|
|
1732
|
+
}
|
|
1733
|
+
Calendar.displayName = "Calendar";
|
|
1734
|
+
// src/components/atoms/ui/chart.tsx
|
|
1735
|
+
var import_recharts = require("recharts");
|
|
1736
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
1737
|
+
function Chart(param) {
|
|
1738
|
+
var className = param.className, _param_height = param.height, height = _param_height === void 0 ? 300 : _param_height, children = param.children;
|
|
1739
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", {
|
|
1740
|
+
className: cn("w-full", className),
|
|
1741
|
+
style: {
|
|
1742
|
+
height: height
|
|
1743
|
+
},
|
|
1744
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_recharts.ResponsiveContainer, {
|
|
1745
|
+
width: "100%",
|
|
1746
|
+
height: "100%",
|
|
1747
|
+
children: children
|
|
1748
|
+
})
|
|
1749
|
+
});
|
|
1750
|
+
}
|
|
1751
|
+
Chart.displayName = "Chart";
|
|
1752
|
+
// src/components/molecules/viewers/pdf-viewer.tsx
|
|
1753
|
+
var import_lucide_react11 = require("lucide-react");
|
|
1575
1754
|
// src/components/hooks/use-resize-observer.ts
|
|
1576
1755
|
var import_react4 = require("react");
|
|
1577
1756
|
// src/components/molecules/viewers/pdf-viewer.tsx
|
|
1578
1757
|
var import_react_pdf = require("react-pdf");
|
|
1579
1758
|
var import_AnnotationLayer = require("react-pdf/dist/esm/Page/AnnotationLayer.css");
|
|
1580
1759
|
var import_TextLayer = require("react-pdf/dist/esm/Page/TextLayer.css");
|
|
1581
|
-
var
|
|
1760
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
1582
1761
|
import_react_pdf.pdfjs.GlobalWorkerOptions.workerSrc = "//unpkg.com/pdfjs-dist@".concat(import_react_pdf.pdfjs.version, "/build/pdf.worker.min.mjs");
|
|
1583
1762
|
// src/components/molecules/viewers/plain-text-viewer.tsx
|
|
1584
1763
|
var import_react6 = require("react");
|
|
1585
|
-
var
|
|
1764
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
1586
1765
|
//# sourceMappingURL=index.js.map
|