@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.
- 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
|
@@ -1742,5 +1742,211 @@ var ThinkIndicator = React25.forwardRef(function(_param, ref) {
|
|
|
1742
1742
|
}));
|
|
1743
1743
|
});
|
|
1744
1744
|
ThinkIndicator.displayName = "ThinkIndicator";
|
|
1745
|
-
|
|
1745
|
+
// src/components/atoms/ui/accordion.tsx
|
|
1746
|
+
import * as React26 from "react";
|
|
1747
|
+
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
1748
|
+
import { ChevronDown as ChevronDown2 } from "lucide-react";
|
|
1749
|
+
import { jsx as jsx31, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1750
|
+
var Accordion = AccordionPrimitive.Root;
|
|
1751
|
+
var AccordionItem = React26.forwardRef(function(_param, ref) {
|
|
1752
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1753
|
+
"className"
|
|
1754
|
+
]);
|
|
1755
|
+
return /* @__PURE__ */ jsx31(AccordionPrimitive.Item, _object_spread({
|
|
1756
|
+
ref: ref,
|
|
1757
|
+
className: cn("border-b", className)
|
|
1758
|
+
}, props));
|
|
1759
|
+
});
|
|
1760
|
+
AccordionItem.displayName = "AccordionItem";
|
|
1761
|
+
var AccordionTrigger = React26.forwardRef(function(_param, ref) {
|
|
1762
|
+
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
1763
|
+
"className",
|
|
1764
|
+
"children"
|
|
1765
|
+
]);
|
|
1766
|
+
return /* @__PURE__ */ jsx31(AccordionPrimitive.Header, {
|
|
1767
|
+
className: "flex",
|
|
1768
|
+
children: /* @__PURE__ */ jsxs11(AccordionPrimitive.Trigger, _object_spread_props(_object_spread({
|
|
1769
|
+
ref: ref,
|
|
1770
|
+
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)
|
|
1771
|
+
}, props), {
|
|
1772
|
+
children: [
|
|
1773
|
+
children,
|
|
1774
|
+
/* @__PURE__ */ jsx31(ChevronDown2, {
|
|
1775
|
+
className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"
|
|
1776
|
+
})
|
|
1777
|
+
]
|
|
1778
|
+
}))
|
|
1779
|
+
});
|
|
1780
|
+
});
|
|
1781
|
+
AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
|
|
1782
|
+
var AccordionContent = React26.forwardRef(function(_param, ref) {
|
|
1783
|
+
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
1784
|
+
"className",
|
|
1785
|
+
"children"
|
|
1786
|
+
]);
|
|
1787
|
+
return /* @__PURE__ */ jsx31(AccordionPrimitive.Content, _object_spread_props(_object_spread({
|
|
1788
|
+
ref: ref,
|
|
1789
|
+
className: "overflow-hidden text-sm text-muted-foreground data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down"
|
|
1790
|
+
}, props), {
|
|
1791
|
+
children: /* @__PURE__ */ jsx31("div", {
|
|
1792
|
+
className: cn("pb-4 pt-0", className),
|
|
1793
|
+
children: children
|
|
1794
|
+
})
|
|
1795
|
+
}));
|
|
1796
|
+
});
|
|
1797
|
+
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
|
1798
|
+
// src/components/atoms/ui/radio-group.tsx
|
|
1799
|
+
import * as React27 from "react";
|
|
1800
|
+
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
1801
|
+
import { Circle } from "lucide-react";
|
|
1802
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
1803
|
+
var RadioGroup = React27.forwardRef(function(_param, ref) {
|
|
1804
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1805
|
+
"className"
|
|
1806
|
+
]);
|
|
1807
|
+
return /* @__PURE__ */ jsx32(RadioGroupPrimitive.Root, _object_spread({
|
|
1808
|
+
ref: ref,
|
|
1809
|
+
className: cn("grid gap-2", className)
|
|
1810
|
+
}, props));
|
|
1811
|
+
});
|
|
1812
|
+
RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
|
|
1813
|
+
var RadioGroupItem = React27.forwardRef(function(_param, ref) {
|
|
1814
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1815
|
+
"className"
|
|
1816
|
+
]);
|
|
1817
|
+
return /* @__PURE__ */ jsx32(RadioGroupPrimitive.Item, _object_spread_props(_object_spread({
|
|
1818
|
+
ref: ref,
|
|
1819
|
+
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)
|
|
1820
|
+
}, props), {
|
|
1821
|
+
children: /* @__PURE__ */ jsx32(RadioGroupPrimitive.Indicator, {
|
|
1822
|
+
className: "flex items-center justify-center",
|
|
1823
|
+
children: /* @__PURE__ */ jsx32(Circle, {
|
|
1824
|
+
className: "h-2.5 w-2.5 fill-current text-current"
|
|
1825
|
+
})
|
|
1826
|
+
})
|
|
1827
|
+
}));
|
|
1828
|
+
});
|
|
1829
|
+
RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
|
|
1830
|
+
// src/components/atoms/ui/progress.tsx
|
|
1831
|
+
import * as React28 from "react";
|
|
1832
|
+
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
1833
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
1834
|
+
var Progress = React28.forwardRef(function(_param, ref) {
|
|
1835
|
+
var className = _param.className, value = _param.value, props = _object_without_properties(_param, [
|
|
1836
|
+
"className",
|
|
1837
|
+
"value"
|
|
1838
|
+
]);
|
|
1839
|
+
return /* @__PURE__ */ jsx33(ProgressPrimitive.Root, _object_spread_props(_object_spread({
|
|
1840
|
+
ref: ref,
|
|
1841
|
+
className: cn("relative h-2 w-full overflow-hidden rounded-full bg-muted", className)
|
|
1842
|
+
}, props), {
|
|
1843
|
+
children: /* @__PURE__ */ jsx33(ProgressPrimitive.Indicator, {
|
|
1844
|
+
className: "h-full w-full flex-1 bg-primary transition-all",
|
|
1845
|
+
style: {
|
|
1846
|
+
transform: "translateX(-".concat(100 - (value || 0), "%)")
|
|
1847
|
+
}
|
|
1848
|
+
})
|
|
1849
|
+
}));
|
|
1850
|
+
});
|
|
1851
|
+
Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
1852
|
+
// src/components/atoms/ui/calendar.tsx
|
|
1853
|
+
import { ChevronLeft, ChevronRight as ChevronRight2 } from "lucide-react";
|
|
1854
|
+
import { DayPicker } from "react-day-picker";
|
|
1855
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
1856
|
+
function Calendar(_param) {
|
|
1857
|
+
var className = _param.className, classNames = _param.classNames, _param_showOutsideDays = _param.showOutsideDays, showOutsideDays = _param_showOutsideDays === void 0 ? true : _param_showOutsideDays, props = _object_without_properties(_param, [
|
|
1858
|
+
"className",
|
|
1859
|
+
"classNames",
|
|
1860
|
+
"showOutsideDays"
|
|
1861
|
+
]);
|
|
1862
|
+
return /* @__PURE__ */ jsx34(DayPicker, _object_spread({
|
|
1863
|
+
showOutsideDays: showOutsideDays,
|
|
1864
|
+
className: cn("p-3", className),
|
|
1865
|
+
classNames: _object_spread({
|
|
1866
|
+
months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
|
|
1867
|
+
month: "space-y-4",
|
|
1868
|
+
caption: "flex justify-center pt-1 relative items-center",
|
|
1869
|
+
caption_label: "text-sm font-medium",
|
|
1870
|
+
nav: "space-x-1 flex items-center",
|
|
1871
|
+
nav_button: cn(buttonVariants({
|
|
1872
|
+
variant: "outline"
|
|
1873
|
+
}), "h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),
|
|
1874
|
+
nav_button_previous: "absolute left-1",
|
|
1875
|
+
nav_button_next: "absolute right-1",
|
|
1876
|
+
table: "w-full border-collapse space-y-1",
|
|
1877
|
+
head_row: "flex",
|
|
1878
|
+
head_cell: "text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",
|
|
1879
|
+
row: "flex w-full mt-2",
|
|
1880
|
+
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",
|
|
1881
|
+
day: cn(buttonVariants({
|
|
1882
|
+
variant: "ghost"
|
|
1883
|
+
}), "h-9 w-9 p-0 font-normal aria-selected:opacity-100"),
|
|
1884
|
+
day_range_end: "day-range-end",
|
|
1885
|
+
day_selected: "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
|
|
1886
|
+
day_today: "bg-accent text-accent-foreground",
|
|
1887
|
+
day_outside: "day-outside text-muted-foreground opacity-50",
|
|
1888
|
+
day_disabled: "text-muted-foreground opacity-50",
|
|
1889
|
+
day_range_middle: "aria-selected:bg-accent aria-selected:text-accent-foreground",
|
|
1890
|
+
day_hidden: "invisible"
|
|
1891
|
+
}, classNames),
|
|
1892
|
+
components: {
|
|
1893
|
+
IconLeft: function() {
|
|
1894
|
+
return /* @__PURE__ */ jsx34(ChevronLeft, {
|
|
1895
|
+
className: "h-4 w-4"
|
|
1896
|
+
});
|
|
1897
|
+
},
|
|
1898
|
+
IconRight: function() {
|
|
1899
|
+
return /* @__PURE__ */ jsx34(ChevronRight2, {
|
|
1900
|
+
className: "h-4 w-4"
|
|
1901
|
+
});
|
|
1902
|
+
}
|
|
1903
|
+
}
|
|
1904
|
+
}, props));
|
|
1905
|
+
}
|
|
1906
|
+
Calendar.displayName = "Calendar";
|
|
1907
|
+
// src/components/atoms/ui/chart.tsx
|
|
1908
|
+
import { ResponsiveContainer, CartesianGrid, XAxis, YAxis, Tooltip, Legend } from "recharts";
|
|
1909
|
+
import { Fragment, jsx as jsx35, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1910
|
+
var CHART_PALETTE = [
|
|
1911
|
+
"hsl(var(--chart-1))",
|
|
1912
|
+
"hsl(var(--chart-2))",
|
|
1913
|
+
"hsl(var(--chart-3))",
|
|
1914
|
+
"hsl(var(--chart-4))",
|
|
1915
|
+
"hsl(var(--chart-5))"
|
|
1916
|
+
];
|
|
1917
|
+
function Chart(param) {
|
|
1918
|
+
var className = param.className, _param_height = param.height, height = _param_height === void 0 ? 300 : _param_height, children = param.children;
|
|
1919
|
+
return /* @__PURE__ */ jsx35("div", {
|
|
1920
|
+
className: cn("w-full", className),
|
|
1921
|
+
style: {
|
|
1922
|
+
height: height
|
|
1923
|
+
},
|
|
1924
|
+
children: /* @__PURE__ */ jsx35(ResponsiveContainer, {
|
|
1925
|
+
width: "100%",
|
|
1926
|
+
height: "100%",
|
|
1927
|
+
children: children
|
|
1928
|
+
})
|
|
1929
|
+
});
|
|
1930
|
+
}
|
|
1931
|
+
Chart.displayName = "Chart";
|
|
1932
|
+
function themedChartAxes(x) {
|
|
1933
|
+
return /* @__PURE__ */ jsxs12(Fragment, {
|
|
1934
|
+
children: [
|
|
1935
|
+
/* @__PURE__ */ jsx35(CartesianGrid, {
|
|
1936
|
+
strokeDasharray: "3 3",
|
|
1937
|
+
className: "stroke-border"
|
|
1938
|
+
}),
|
|
1939
|
+
/* @__PURE__ */ jsx35(XAxis, {
|
|
1940
|
+
dataKey: x,
|
|
1941
|
+
className: "text-xs"
|
|
1942
|
+
}),
|
|
1943
|
+
/* @__PURE__ */ jsx35(YAxis, {
|
|
1944
|
+
className: "text-xs"
|
|
1945
|
+
}),
|
|
1946
|
+
/* @__PURE__ */ jsx35(Tooltip, {}),
|
|
1947
|
+
/* @__PURE__ */ jsx35(Legend, {})
|
|
1948
|
+
]
|
|
1949
|
+
});
|
|
1950
|
+
}
|
|
1951
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, CHART_PALETTE, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Chart, Checkbox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, Input, Label2 as Label, Loader, Popover, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, RichText, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator2 as Separator, Skeleton, Slider, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThinkIndicator, Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle, Typography, badgeVariants, buttonVariants, themedChartAxes, thinkIndicatorVariants, toggleVariants };
|
|
1746
1952
|
//# sourceMappingURL=index.mjs.map
|