@kumix/ui 0.1.0 → 0.1.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/README.md +5 -2
- package/dist/hooks.d.ts +181 -155
- package/dist/hooks.d.ts.map +1 -1
- package/dist/hooks.js +6 -24
- package/dist/hooks.js.map +1 -1
- package/dist/index.d.ts +589 -1898
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1173 -408
- package/dist/index.js.map +1 -1
- package/package.json +10 -4
package/dist/index.js
CHANGED
|
@@ -7,9 +7,11 @@ import { cn } from "@kumix/utils";
|
|
|
7
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { cva } from "class-variance-authority";
|
|
9
9
|
import { AlertCircleIcon, ArrowDownIcon, ArrowLeftIcon, ArrowLeftToLineIcon, ArrowRightIcon, ArrowRightToLineIcon, ArrowUpIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsUpDownIcon, CircleIcon, CirclePlusIcon, CopyIcon, GripHorizontalIcon, GripVerticalIcon, Loader2Icon, LoaderIcon, MinusIcon, MoreHorizontalIcon, PanelLeftIcon, PinOffIcon, PlusIcon, SearchIcon, Settings2Icon, SquareMinusIcon, SquarePlusIcon, StarIcon, XIcon } from "lucide-react";
|
|
10
|
-
import { Accordion as Accordion$1, AlertDialog as AlertDialog$1, AspectRatio as AspectRatio$1, Avatar as Avatar$1, Checkbox as Checkbox$1, Collapsible as Collapsible$1, ContextMenu as ContextMenu$1, Dialog as Dialog$1, DropdownMenu as DropdownMenu$1, HoverCard as HoverCard$1, Label as Label$1, Menubar as Menubar$1, NavigationMenu as NavigationMenu$1, Popover as Popover$1, Progress as Progress$1, RadioGroup as RadioGroup$1, ScrollArea as ScrollArea$1, Select as Select$1, Separator as Separator$1, Slider as Slider$1, Slot, Switch as Switch$1, Tabs as Tabs$1, Toggle as Toggle$1, ToggleGroup as ToggleGroup$1, Tooltip as Tooltip$1 } from "radix-ui";
|
|
10
|
+
import { Accordion as Accordion$1, AlertDialog as AlertDialog$1, AspectRatio as AspectRatio$1, Avatar as Avatar$1, Checkbox as Checkbox$1, Collapsible as Collapsible$1, ContextMenu as ContextMenu$1, Dialog as Dialog$1, Direction, DropdownMenu as DropdownMenu$1, HoverCard as HoverCard$1, Label as Label$1, Menubar as Menubar$1, NavigationMenu as NavigationMenu$1, Popover as Popover$1, Progress as Progress$1, RadioGroup as RadioGroup$1, ScrollArea as ScrollArea$1, Select as Select$1, Separator as Separator$1, Slider as Slider$1, Slot, Switch as Switch$1, Tabs as Tabs$1, Toggle as Toggle$1, ToggleGroup as ToggleGroup$1, Tooltip as Tooltip$1 } from "radix-ui";
|
|
11
11
|
import { DayPicker } from "react-day-picker";
|
|
12
12
|
import useEmblaCarousel from "embla-carousel-react";
|
|
13
|
+
import * as RechartsPrimitive from "recharts";
|
|
14
|
+
import { Combobox as Combobox$1 } from "@base-ui/react";
|
|
13
15
|
import { Command as Command$1 } from "cmdk";
|
|
14
16
|
import { flexRender } from "@tanstack/react-table";
|
|
15
17
|
import { DndContext, DragOverlay, KeyboardSensor, MouseSensor, PointerSensor, TouchSensor, closestCenter, defaultDropAnimation, defaultDropAnimationSideEffects, useSensor, useSensors } from "@dnd-kit/core";
|
|
@@ -20,6 +22,7 @@ import { DateField as DateField$1, DateInput as DateInput$1, DateSegment as Date
|
|
|
20
22
|
import { Drawer as Drawer$1 } from "vaul";
|
|
21
23
|
import { Controller, FormProvider, useFormContext } from "react-hook-form";
|
|
22
24
|
import { OTPInput, OTPInputContext } from "input-otp";
|
|
25
|
+
import { MessageScroller as MessageScroller$1, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility } from "@shadcn/react/message-scroller";
|
|
23
26
|
import { Group, Panel, Separator as Separator$2 } from "react-resizable-panels";
|
|
24
27
|
import { useTheme } from "next-themes";
|
|
25
28
|
import { Toaster as Toaster$1 } from "sonner";
|
|
@@ -872,9 +875,7 @@ function ShimmeringText({ text, duration = 2, delay = 0, repeat = true, repeatDe
|
|
|
872
875
|
margin: inViewMargin
|
|
873
876
|
});
|
|
874
877
|
const shouldReduceMotion = useReducedMotion();
|
|
875
|
-
const dynamicSpread =
|
|
876
|
-
return text.length * spread;
|
|
877
|
-
}, [text, spread]);
|
|
878
|
+
const dynamicSpread = text.length * spread;
|
|
878
879
|
const shouldAnimate = !startOnView || isInView;
|
|
879
880
|
return /* @__PURE__ */ jsx(motion.span, {
|
|
880
881
|
ref,
|
|
@@ -1538,6 +1539,18 @@ const cursorVariants = { blinking: {
|
|
|
1538
1539
|
]
|
|
1539
1540
|
}
|
|
1540
1541
|
} };
|
|
1542
|
+
const CONTAINER_VARIANTS = {
|
|
1543
|
+
hidden: {
|
|
1544
|
+
opacity: 0,
|
|
1545
|
+
y: 10
|
|
1546
|
+
},
|
|
1547
|
+
show: {
|
|
1548
|
+
opacity: 1,
|
|
1549
|
+
y: 0,
|
|
1550
|
+
transition: { staggerChildren: .02 }
|
|
1551
|
+
},
|
|
1552
|
+
exit: { opacity: 0 }
|
|
1553
|
+
};
|
|
1541
1554
|
function TypingText({ text, texts, speed = 100, delay = 0, showCursor = true, cursorClassName = "", cursor = "|", loop = false, pauseDuration = 2e3, className, onComplete, startOnView = true, once = false, inViewMargin, ...props }) {
|
|
1542
1555
|
const ref = useRef(null);
|
|
1543
1556
|
const isInView = useInView(ref, {
|
|
@@ -1601,22 +1614,10 @@ function TypingText({ text, texts, speed = 100, delay = 0, showCursor = true, cu
|
|
|
1601
1614
|
pauseDuration,
|
|
1602
1615
|
onComplete
|
|
1603
1616
|
]);
|
|
1604
|
-
const finalVariants = { container: {
|
|
1605
|
-
hidden: {
|
|
1606
|
-
opacity: 0,
|
|
1607
|
-
y: 10
|
|
1608
|
-
},
|
|
1609
|
-
show: {
|
|
1610
|
-
opacity: 1,
|
|
1611
|
-
y: 0,
|
|
1612
|
-
transition: { staggerChildren: .02 }
|
|
1613
|
-
},
|
|
1614
|
-
exit: { opacity: 0 }
|
|
1615
|
-
} };
|
|
1616
1617
|
const MotionComponent = motion.span;
|
|
1617
1618
|
return /* @__PURE__ */ jsx(MotionComponent, {
|
|
1618
1619
|
ref,
|
|
1619
|
-
variants:
|
|
1620
|
+
variants: CONTAINER_VARIANTS,
|
|
1620
1621
|
initial: "hidden",
|
|
1621
1622
|
whileInView: startOnView ? "show" : void 0,
|
|
1622
1623
|
animate: startOnView ? void 0 : "show",
|
|
@@ -1745,161 +1746,161 @@ function VideoText({ src, children, className = "", autoPlay = true, muted = tru
|
|
|
1745
1746
|
}
|
|
1746
1747
|
//#endregion
|
|
1747
1748
|
//#region src/ui/animation/word-rotate.tsx
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
animate: {
|
|
1762
|
-
opacity: 1,
|
|
1763
|
-
transition: {
|
|
1764
|
-
duration: .4,
|
|
1765
|
-
ease: [
|
|
1766
|
-
.4,
|
|
1767
|
-
0,
|
|
1768
|
-
.2,
|
|
1769
|
-
1
|
|
1770
|
-
]
|
|
1771
|
-
}
|
|
1772
|
-
},
|
|
1773
|
-
exit: {
|
|
1774
|
-
opacity: 0,
|
|
1775
|
-
transition: {
|
|
1776
|
-
duration: .3,
|
|
1777
|
-
ease: [
|
|
1778
|
-
.4,
|
|
1779
|
-
0,
|
|
1780
|
-
1,
|
|
1781
|
-
1
|
|
1782
|
-
]
|
|
1783
|
-
}
|
|
1749
|
+
const ANIMATION_VARIANTS = {
|
|
1750
|
+
fade: {
|
|
1751
|
+
initial: { opacity: 0 },
|
|
1752
|
+
animate: {
|
|
1753
|
+
opacity: 1,
|
|
1754
|
+
transition: {
|
|
1755
|
+
duration: .4,
|
|
1756
|
+
ease: [
|
|
1757
|
+
.4,
|
|
1758
|
+
0,
|
|
1759
|
+
.2,
|
|
1760
|
+
1
|
|
1761
|
+
]
|
|
1784
1762
|
}
|
|
1785
1763
|
},
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
stiffness: 300,
|
|
1797
|
-
damping: 25,
|
|
1798
|
-
mass: .8
|
|
1799
|
-
}
|
|
1800
|
-
},
|
|
1801
|
-
exit: {
|
|
1802
|
-
opacity: 0,
|
|
1803
|
-
y: -24,
|
|
1804
|
-
transition: {
|
|
1805
|
-
duration: .25,
|
|
1806
|
-
ease: [
|
|
1807
|
-
.4,
|
|
1808
|
-
0,
|
|
1809
|
-
1,
|
|
1810
|
-
1
|
|
1811
|
-
]
|
|
1812
|
-
}
|
|
1764
|
+
exit: {
|
|
1765
|
+
opacity: 0,
|
|
1766
|
+
transition: {
|
|
1767
|
+
duration: .3,
|
|
1768
|
+
ease: [
|
|
1769
|
+
.4,
|
|
1770
|
+
0,
|
|
1771
|
+
1,
|
|
1772
|
+
1
|
|
1773
|
+
]
|
|
1813
1774
|
}
|
|
1775
|
+
}
|
|
1776
|
+
},
|
|
1777
|
+
"slide-up": {
|
|
1778
|
+
initial: {
|
|
1779
|
+
opacity: 0,
|
|
1780
|
+
y: 24
|
|
1814
1781
|
},
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
transition: {
|
|
1824
|
-
type: "spring",
|
|
1825
|
-
stiffness: 300,
|
|
1826
|
-
damping: 25,
|
|
1827
|
-
mass: .8
|
|
1828
|
-
}
|
|
1829
|
-
},
|
|
1830
|
-
exit: {
|
|
1831
|
-
opacity: 0,
|
|
1832
|
-
y: 24,
|
|
1833
|
-
transition: {
|
|
1834
|
-
duration: .25,
|
|
1835
|
-
ease: [
|
|
1836
|
-
.4,
|
|
1837
|
-
0,
|
|
1838
|
-
1,
|
|
1839
|
-
1
|
|
1840
|
-
]
|
|
1841
|
-
}
|
|
1782
|
+
animate: {
|
|
1783
|
+
opacity: 1,
|
|
1784
|
+
y: 0,
|
|
1785
|
+
transition: {
|
|
1786
|
+
type: "spring",
|
|
1787
|
+
stiffness: 300,
|
|
1788
|
+
damping: 25,
|
|
1789
|
+
mass: .8
|
|
1842
1790
|
}
|
|
1843
1791
|
},
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
damping: 30,
|
|
1856
|
-
mass: .6
|
|
1857
|
-
}
|
|
1858
|
-
},
|
|
1859
|
-
exit: {
|
|
1860
|
-
opacity: 0,
|
|
1861
|
-
scale: .9,
|
|
1862
|
-
transition: {
|
|
1863
|
-
duration: .2,
|
|
1864
|
-
ease: [
|
|
1865
|
-
.4,
|
|
1866
|
-
0,
|
|
1867
|
-
1,
|
|
1868
|
-
1
|
|
1869
|
-
]
|
|
1870
|
-
}
|
|
1792
|
+
exit: {
|
|
1793
|
+
opacity: 0,
|
|
1794
|
+
y: -24,
|
|
1795
|
+
transition: {
|
|
1796
|
+
duration: .25,
|
|
1797
|
+
ease: [
|
|
1798
|
+
.4,
|
|
1799
|
+
0,
|
|
1800
|
+
1,
|
|
1801
|
+
1
|
|
1802
|
+
]
|
|
1871
1803
|
}
|
|
1804
|
+
}
|
|
1805
|
+
},
|
|
1806
|
+
"slide-down": {
|
|
1807
|
+
initial: {
|
|
1808
|
+
opacity: 0,
|
|
1809
|
+
y: -24
|
|
1872
1810
|
},
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
.4,
|
|
1895
|
-
0,
|
|
1896
|
-
1,
|
|
1897
|
-
1
|
|
1898
|
-
]
|
|
1899
|
-
}
|
|
1811
|
+
animate: {
|
|
1812
|
+
opacity: 1,
|
|
1813
|
+
y: 0,
|
|
1814
|
+
transition: {
|
|
1815
|
+
type: "spring",
|
|
1816
|
+
stiffness: 300,
|
|
1817
|
+
damping: 25,
|
|
1818
|
+
mass: .8
|
|
1819
|
+
}
|
|
1820
|
+
},
|
|
1821
|
+
exit: {
|
|
1822
|
+
opacity: 0,
|
|
1823
|
+
y: 24,
|
|
1824
|
+
transition: {
|
|
1825
|
+
duration: .25,
|
|
1826
|
+
ease: [
|
|
1827
|
+
.4,
|
|
1828
|
+
0,
|
|
1829
|
+
1,
|
|
1830
|
+
1
|
|
1831
|
+
]
|
|
1900
1832
|
}
|
|
1901
1833
|
}
|
|
1902
|
-
}
|
|
1834
|
+
},
|
|
1835
|
+
scale: {
|
|
1836
|
+
initial: {
|
|
1837
|
+
opacity: 0,
|
|
1838
|
+
scale: .8
|
|
1839
|
+
},
|
|
1840
|
+
animate: {
|
|
1841
|
+
opacity: 1,
|
|
1842
|
+
scale: 1,
|
|
1843
|
+
transition: {
|
|
1844
|
+
type: "spring",
|
|
1845
|
+
stiffness: 400,
|
|
1846
|
+
damping: 30,
|
|
1847
|
+
mass: .6
|
|
1848
|
+
}
|
|
1849
|
+
},
|
|
1850
|
+
exit: {
|
|
1851
|
+
opacity: 0,
|
|
1852
|
+
scale: .9,
|
|
1853
|
+
transition: {
|
|
1854
|
+
duration: .2,
|
|
1855
|
+
ease: [
|
|
1856
|
+
.4,
|
|
1857
|
+
0,
|
|
1858
|
+
1,
|
|
1859
|
+
1
|
|
1860
|
+
]
|
|
1861
|
+
}
|
|
1862
|
+
}
|
|
1863
|
+
},
|
|
1864
|
+
flip: {
|
|
1865
|
+
initial: {
|
|
1866
|
+
opacity: 0,
|
|
1867
|
+
rotateX: 90
|
|
1868
|
+
},
|
|
1869
|
+
animate: {
|
|
1870
|
+
opacity: 1,
|
|
1871
|
+
rotateX: 0,
|
|
1872
|
+
transition: {
|
|
1873
|
+
type: "spring",
|
|
1874
|
+
stiffness: 200,
|
|
1875
|
+
damping: 20,
|
|
1876
|
+
mass: 1
|
|
1877
|
+
}
|
|
1878
|
+
},
|
|
1879
|
+
exit: {
|
|
1880
|
+
opacity: 0,
|
|
1881
|
+
rotateX: -90,
|
|
1882
|
+
transition: {
|
|
1883
|
+
duration: .3,
|
|
1884
|
+
ease: [
|
|
1885
|
+
.4,
|
|
1886
|
+
0,
|
|
1887
|
+
1,
|
|
1888
|
+
1
|
|
1889
|
+
]
|
|
1890
|
+
}
|
|
1891
|
+
}
|
|
1892
|
+
}
|
|
1893
|
+
};
|
|
1894
|
+
function WordRotate({ words, duration = 1500, animationStyle = "fade", loop = true, className, containerClassName, pauseDuration = 300, startOnView = true, once = false, inViewMargin, ...props }) {
|
|
1895
|
+
const ref = useRef(null);
|
|
1896
|
+
const isInView = useInView(ref, {
|
|
1897
|
+
once,
|
|
1898
|
+
margin: inViewMargin
|
|
1899
|
+
});
|
|
1900
|
+
const shouldReduceMotion = useReducedMotion();
|
|
1901
|
+
const [hasAnimated, setHasAnimated] = useState(false);
|
|
1902
|
+
const [currentWord, setCurrentWord] = useState(0);
|
|
1903
|
+
const [show, setShow] = useState(true);
|
|
1903
1904
|
const shouldStart = !startOnView || isInView && (!once || !hasAnimated);
|
|
1904
1905
|
useEffect(() => {
|
|
1905
1906
|
if (!shouldStart) return;
|
|
@@ -1934,7 +1935,7 @@ function WordRotate({ words, duration = 1500, animationStyle = "fade", loop = tr
|
|
|
1934
1935
|
initial: "initial",
|
|
1935
1936
|
animate: show ? "animate" : "exit",
|
|
1936
1937
|
exit: "exit",
|
|
1937
|
-
variants:
|
|
1938
|
+
variants: ANIMATION_VARIANTS[animationStyle],
|
|
1938
1939
|
transition: shouldReduceMotion ? { duration: 0 } : void 0,
|
|
1939
1940
|
style: { perspective: animationStyle === "flip" ? 1e3 : void 0 },
|
|
1940
1941
|
className: cn("inline-block overflow-hidden", className),
|
|
@@ -2303,9 +2304,9 @@ const alertVariants = cva("flex w-full items-stretch gap-2 group-[.toaster]:w-(-
|
|
|
2303
2304
|
stroke: "text-foreground"
|
|
2304
2305
|
},
|
|
2305
2306
|
size: {
|
|
2306
|
-
lg: "gap-3 rounded-lg p-4 text-base *:data-slot=alert-icon:mt-0.5 [&>[data-slot=alert-icon]>svg]:size-6 [&_[data-slot=alert-close]]:mt-1",
|
|
2307
|
-
md: "gap-2.5 rounded-lg p-3.5 text-sm *:data-slot=alert-icon:mt-0 [&>[data-slot=alert-icon]>svg]:size-5 [&_[data-slot=alert-close]]:mt-0.5",
|
|
2308
|
-
sm: "gap-2 rounded-md px-3 py-2.5 text-xs *:data-alert-icon:mt-0.5 [&>[data-slot=alert-icon]>svg]:size-4 [&_[data-slot=alert-close]]:mt-0.25 [&_[data-slot=alert-close]_svg]:size-3.5"
|
|
2307
|
+
lg: "gap-3 rounded-lg p-4 text-base *:data-[slot=alert-icon]:mt-0.5 [&>[data-slot=alert-icon]>svg]:size-6 [&_[data-slot=alert-close]]:mt-1",
|
|
2308
|
+
md: "gap-2.5 rounded-lg p-3.5 text-sm *:data-[slot=alert-icon]:mt-0 [&>[data-slot=alert-icon]>svg]:size-5 [&_[data-slot=alert-close]]:mt-0.5",
|
|
2309
|
+
sm: "gap-2 rounded-md px-3 py-2.5 text-xs *:data-[slot=alert-icon]:mt-0.5 [&>[data-slot=alert-icon]>svg]:size-4 [&_[data-slot=alert-close]]:mt-0.25 [&_[data-slot=alert-close]_svg]:size-3.5"
|
|
2309
2310
|
}
|
|
2310
2311
|
},
|
|
2311
2312
|
compoundVariants: [
|
|
@@ -2342,7 +2343,7 @@ const alertVariants = cva("flex w-full items-stretch gap-2 group-[.toaster]:w-(-
|
|
|
2342
2343
|
{
|
|
2343
2344
|
variant: "mono",
|
|
2344
2345
|
appearance: "solid",
|
|
2345
|
-
className: "bg-zinc-950 text-white
|
|
2346
|
+
className: "bg-zinc-950 text-white dark:bg-zinc-300 dark:text-black [&_[data-slot=alert-close]]:text-white"
|
|
2346
2347
|
},
|
|
2347
2348
|
{
|
|
2348
2349
|
variant: "secondary",
|
|
@@ -2828,7 +2829,7 @@ const buttonVariants = cva("group inline-flex cursor-pointer items-center justif
|
|
|
2828
2829
|
}
|
|
2829
2830
|
});
|
|
2830
2831
|
function Button({ className, selected, variant, radius, appearance, mode, size, autoHeight, underlined, underline, asChild = false, placeholder = false, ...props }) {
|
|
2831
|
-
return /* @__PURE__ */ jsx(asChild ? Slot.
|
|
2832
|
+
return /* @__PURE__ */ jsx(asChild ? Slot.Root : "button", {
|
|
2832
2833
|
"data-slot": "button",
|
|
2833
2834
|
...!asChild ? { type: "button" } : {},
|
|
2834
2835
|
className: cn(buttonVariants({
|
|
@@ -2935,44 +2936,137 @@ function AspectRatio({ ...props }) {
|
|
|
2935
2936
|
});
|
|
2936
2937
|
}
|
|
2937
2938
|
//#endregion
|
|
2938
|
-
//#region src/ui/
|
|
2939
|
-
const
|
|
2939
|
+
//#region src/ui/attachment.tsx
|
|
2940
|
+
const attachmentVariants = cva("group/attachment relative flex w-fit min-w-0 max-w-full shrink-0 flex-wrap rounded-xl border bg-card text-card-foreground transition-colors focus-within:ring-1 focus-within:ring-ring/50 has-[>a,>button]:hover:bg-muted/50 data-[state=error]:border-destructive/30 data-[state=idle]:border-dashed", { variants: {
|
|
2941
|
+
size: {
|
|
2942
|
+
default: "gap-2 text-sm has-data-[slot=attachment-media]:p-2 has-data-[slot=attachment-content]:px-2.5 has-data-[slot=attachment-content]:py-2",
|
|
2943
|
+
sm: "gap-2.5 text-xs has-data-[slot=attachment-media]:p-1.5 has-data-[slot=attachment-content]:px-2 has-data-[slot=attachment-content]:py-1.5",
|
|
2944
|
+
xs: "gap-1.5 rounded-lg text-xs has-data-[slot=attachment-media]:p-1 has-data-[slot=attachment-content]:px-1.5 has-data-[slot=attachment-content]:py-1"
|
|
2945
|
+
},
|
|
2946
|
+
orientation: {
|
|
2947
|
+
horizontal: "min-w-40 items-center",
|
|
2948
|
+
vertical: "w-24 flex-col has-data-[slot=attachment-content]:w-30"
|
|
2949
|
+
}
|
|
2950
|
+
} });
|
|
2951
|
+
function Attachment({ className, state = "done", size = "default", orientation = "horizontal", ...props }) {
|
|
2952
|
+
return /* @__PURE__ */ jsx("div", {
|
|
2953
|
+
"data-slot": "attachment",
|
|
2954
|
+
"data-state": state,
|
|
2955
|
+
"data-size": size,
|
|
2956
|
+
"data-orientation": orientation,
|
|
2957
|
+
className: cn(attachmentVariants({
|
|
2958
|
+
size,
|
|
2959
|
+
orientation
|
|
2960
|
+
}), className),
|
|
2961
|
+
...props
|
|
2962
|
+
});
|
|
2963
|
+
}
|
|
2964
|
+
const attachmentMediaVariants = cva("relative flex aspect-square w-10 shrink-0 items-center justify-center overflow-hidden rounded-lg bg-muted text-foreground group-data-[orientation=vertical]/attachment:w-full group-data-[size=sm]/attachment:w-8 group-data-[size=xs]/attachment:w-7 group-data-[size=xs]/attachment:rounded-md group-data-[state=error]/attachment:bg-destructive/10 group-data-[state=error]/attachment:text-destructive group-data-[orientation=vertical]/attachment:*:data-[slot=spinner]:size-6! [&_svg:not([class*='size-'])]:size-4 group-data-[orientation=vertical]/attachment:[&_svg:not([class*='size-'])]:size-6 group-data-[size=xs]/attachment:[&_svg:not([class*='size-'])]:size-3.5 [&_svg]:pointer-events-none", {
|
|
2940
2965
|
variants: { variant: {
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
busy: "bg-yellow-600",
|
|
2944
|
-
away: "bg-blue-600"
|
|
2966
|
+
icon: "",
|
|
2967
|
+
image: "opacity-60 group-data-[state=done]/attachment:opacity-100 group-data-[state=idle]/attachment:opacity-100 *:[img]:aspect-square *:[img]:w-full *:[img]:object-cover"
|
|
2945
2968
|
} },
|
|
2946
|
-
defaultVariants: { variant: "
|
|
2969
|
+
defaultVariants: { variant: "icon" }
|
|
2947
2970
|
});
|
|
2948
|
-
function
|
|
2949
|
-
return /* @__PURE__ */ jsx(
|
|
2950
|
-
"data-slot": "
|
|
2951
|
-
|
|
2971
|
+
function AttachmentMedia({ className, variant = "icon", ...props }) {
|
|
2972
|
+
return /* @__PURE__ */ jsx("div", {
|
|
2973
|
+
"data-slot": "attachment-media",
|
|
2974
|
+
"data-variant": variant,
|
|
2975
|
+
className: cn(attachmentMediaVariants({ variant }), className),
|
|
2952
2976
|
...props
|
|
2953
2977
|
});
|
|
2954
2978
|
}
|
|
2955
|
-
function
|
|
2979
|
+
function AttachmentContent({ className, ...props }) {
|
|
2956
2980
|
return /* @__PURE__ */ jsx("div", {
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
className: cn("aspect-square h-full w-full"),
|
|
2961
|
-
...props
|
|
2962
|
-
})
|
|
2981
|
+
"data-slot": "attachment-content",
|
|
2982
|
+
className: cn("min-w-0 max-w-full flex-1 leading-tight group-data-[orientation=vertical]/attachment:px-1", className),
|
|
2983
|
+
...props
|
|
2963
2984
|
});
|
|
2964
2985
|
}
|
|
2965
|
-
function
|
|
2966
|
-
return /* @__PURE__ */ jsx(
|
|
2967
|
-
"data-slot": "
|
|
2968
|
-
className: cn("
|
|
2986
|
+
function AttachmentTitle({ className, ...props }) {
|
|
2987
|
+
return /* @__PURE__ */ jsx("span", {
|
|
2988
|
+
"data-slot": "attachment-title",
|
|
2989
|
+
className: cn("group-data-[state=processing]/attachment:shimmer group-data-[state=uploading]/attachment:shimmer block min-w-0 max-w-full truncate font-medium", className),
|
|
2969
2990
|
...props
|
|
2970
2991
|
});
|
|
2971
2992
|
}
|
|
2972
|
-
function
|
|
2973
|
-
return /* @__PURE__ */ jsx("
|
|
2974
|
-
"data-slot": "
|
|
2975
|
-
className: cn("
|
|
2993
|
+
function AttachmentDescription({ className, ...props }) {
|
|
2994
|
+
return /* @__PURE__ */ jsx("span", {
|
|
2995
|
+
"data-slot": "attachment-description",
|
|
2996
|
+
className: cn("mt-0.5 block min-w-0 truncate text-muted-foreground text-xs group-data-[state=error]/attachment:text-destructive/80", "max-w-full", className),
|
|
2997
|
+
...props
|
|
2998
|
+
});
|
|
2999
|
+
}
|
|
3000
|
+
function AttachmentActions({ className, ...props }) {
|
|
3001
|
+
return /* @__PURE__ */ jsx("div", {
|
|
3002
|
+
"data-slot": "attachment-actions",
|
|
3003
|
+
className: cn("relative z-20 flex shrink-0 items-center group-data-[orientation=vertical]/attachment:absolute group-data-[orientation=vertical]/attachment:top-3 group-data-[orientation=vertical]/attachment:right-3 group-data-[orientation=vertical]/attachment:gap-1", className),
|
|
3004
|
+
...props
|
|
3005
|
+
});
|
|
3006
|
+
}
|
|
3007
|
+
function AttachmentAction({ className, variant, size = "icon", ...props }) {
|
|
3008
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
3009
|
+
"data-slot": "attachment-action",
|
|
3010
|
+
variant: variant ?? "ghost",
|
|
3011
|
+
size,
|
|
3012
|
+
className: cn(className),
|
|
3013
|
+
...props
|
|
3014
|
+
});
|
|
3015
|
+
}
|
|
3016
|
+
function AttachmentTrigger({ className, asChild = false, type, ...props }) {
|
|
3017
|
+
return /* @__PURE__ */ jsx(asChild ? Slot.Root : "button", {
|
|
3018
|
+
"data-slot": "attachment-trigger",
|
|
3019
|
+
type: asChild ? void 0 : type ?? "button",
|
|
3020
|
+
className: cn("absolute inset-0 z-10 outline-none", className),
|
|
3021
|
+
...props
|
|
3022
|
+
});
|
|
3023
|
+
}
|
|
3024
|
+
function AttachmentGroup({ className, ...props }) {
|
|
3025
|
+
return /* @__PURE__ */ jsx("div", {
|
|
3026
|
+
"data-slot": "attachment-group",
|
|
3027
|
+
className: cn("scroll-fade-x scrollbar-none flex min-w-0 snap-x snap-mandatory scroll-px-1 gap-3 overflow-x-auto overscroll-x-contain py-1 *:data-[slot=attachment]:flex-none *:data-[slot=attachment]:snap-start", className),
|
|
3028
|
+
...props
|
|
3029
|
+
});
|
|
3030
|
+
}
|
|
3031
|
+
//#endregion
|
|
3032
|
+
//#region src/ui/avatar.tsx
|
|
3033
|
+
const avatarStatusVariants = cva("flex size-2 items-center rounded-full border-2 border-background", {
|
|
3034
|
+
variants: { variant: {
|
|
3035
|
+
online: "bg-green-600",
|
|
3036
|
+
offline: "bg-zinc-400 dark:bg-zinc-500",
|
|
3037
|
+
busy: "bg-yellow-600",
|
|
3038
|
+
away: "bg-blue-600"
|
|
3039
|
+
} },
|
|
3040
|
+
defaultVariants: { variant: "online" }
|
|
3041
|
+
});
|
|
3042
|
+
function Avatar({ className, ...props }) {
|
|
3043
|
+
return /* @__PURE__ */ jsx(Avatar$1.Root, {
|
|
3044
|
+
"data-slot": "avatar",
|
|
3045
|
+
className: cn("relative flex size-10 shrink-0", className),
|
|
3046
|
+
...props
|
|
3047
|
+
});
|
|
3048
|
+
}
|
|
3049
|
+
function AvatarImage({ className, ...props }) {
|
|
3050
|
+
return /* @__PURE__ */ jsx("div", {
|
|
3051
|
+
className: cn("relative overflow-hidden rounded-full", className),
|
|
3052
|
+
children: /* @__PURE__ */ jsx(Avatar$1.Image, {
|
|
3053
|
+
"data-slot": "avatar-image",
|
|
3054
|
+
className: cn("aspect-square h-full w-full"),
|
|
3055
|
+
...props
|
|
3056
|
+
})
|
|
3057
|
+
});
|
|
3058
|
+
}
|
|
3059
|
+
function AvatarFallback({ className, ...props }) {
|
|
3060
|
+
return /* @__PURE__ */ jsx(Avatar$1.Fallback, {
|
|
3061
|
+
"data-slot": "avatar-fallback",
|
|
3062
|
+
className: cn("flex h-full w-full items-center justify-center rounded-full border border-border bg-accent text-accent-foreground text-xs", className),
|
|
3063
|
+
...props
|
|
3064
|
+
});
|
|
3065
|
+
}
|
|
3066
|
+
function AvatarIndicator({ className, ...props }) {
|
|
3067
|
+
return /* @__PURE__ */ jsx("div", {
|
|
3068
|
+
"data-slot": "avatar-indicator",
|
|
3069
|
+
className: cn("absolute flex size-6 items-center justify-center", className),
|
|
2976
3070
|
...props
|
|
2977
3071
|
});
|
|
2978
3072
|
}
|
|
@@ -3127,12 +3221,9 @@ const badgeVariants = cva("inline-flex items-center justify-center whitespace-no
|
|
|
3127
3221
|
size: "md"
|
|
3128
3222
|
}
|
|
3129
3223
|
});
|
|
3130
|
-
const
|
|
3131
|
-
variants: { variant: { default: "" } },
|
|
3132
|
-
defaultVariants: { variant: "default" }
|
|
3133
|
-
});
|
|
3224
|
+
const badgeButtonClassNames = "-me-0.5 inline-flex size-3.5 cursor-pointer items-center justify-center rounded-md p-0 leading-none opacity-60 transition-all hover:opacity-100 [&>svg]:size-3.5! [&>svg]:opacity-100!";
|
|
3134
3225
|
function Badge({ className, variant, size, appearance, shape, asChild = false, disabled, ...props }) {
|
|
3135
|
-
return /* @__PURE__ */ jsx(asChild ? Slot.
|
|
3226
|
+
return /* @__PURE__ */ jsx(asChild ? Slot.Root : "span", {
|
|
3136
3227
|
"data-slot": "badge",
|
|
3137
3228
|
className: cn(badgeVariants({
|
|
3138
3229
|
variant,
|
|
@@ -3144,13 +3235,10 @@ function Badge({ className, variant, size, appearance, shape, asChild = false, d
|
|
|
3144
3235
|
...props
|
|
3145
3236
|
});
|
|
3146
3237
|
}
|
|
3147
|
-
function BadgeButton({ className,
|
|
3148
|
-
return /* @__PURE__ */ jsx(asChild ? Slot.
|
|
3238
|
+
function BadgeButton({ className, asChild = false, ...props }) {
|
|
3239
|
+
return /* @__PURE__ */ jsx(asChild ? Slot.Root : "button", {
|
|
3149
3240
|
"data-slot": "badge-button",
|
|
3150
|
-
className: cn(
|
|
3151
|
-
variant,
|
|
3152
|
-
className
|
|
3153
|
-
})),
|
|
3241
|
+
className: cn(badgeButtonClassNames, className),
|
|
3154
3242
|
...!asChild ? { type: "button" } : {},
|
|
3155
3243
|
...props
|
|
3156
3244
|
});
|
|
@@ -3186,7 +3274,7 @@ function BreadcrumbItem({ className, ...props }) {
|
|
|
3186
3274
|
});
|
|
3187
3275
|
}
|
|
3188
3276
|
function BreadcrumbLink({ asChild, className, ...props }) {
|
|
3189
|
-
return /* @__PURE__ */ jsx(asChild ? Slot.
|
|
3277
|
+
return /* @__PURE__ */ jsx(asChild ? Slot.Root : "a", {
|
|
3190
3278
|
"data-slot": "breadcrumb-link",
|
|
3191
3279
|
className: cn("transition-colors hover:text-foreground", className),
|
|
3192
3280
|
...props
|
|
@@ -3222,6 +3310,71 @@ const BreadcrumbEllipsis = ({ className, ...props }) => /* @__PURE__ */ jsx("spa
|
|
|
3222
3310
|
})
|
|
3223
3311
|
});
|
|
3224
3312
|
//#endregion
|
|
3313
|
+
//#region src/ui/bubble.tsx
|
|
3314
|
+
function BubbleGroup({ className, ...props }) {
|
|
3315
|
+
return /* @__PURE__ */ jsx("div", {
|
|
3316
|
+
"data-slot": "bubble-group",
|
|
3317
|
+
className: cn("flex min-w-0 flex-col gap-2", className),
|
|
3318
|
+
...props
|
|
3319
|
+
});
|
|
3320
|
+
}
|
|
3321
|
+
const bubbleVariants = cva("group/bubble relative flex w-fit min-w-0 max-w-[80%] flex-col gap-1 data-[variant=ghost]:max-w-full data-[align=end]:self-end group-data-[align=end]/message:self-end", {
|
|
3322
|
+
variants: { variant: {
|
|
3323
|
+
default: "*:data-[slot=bubble-content]:bg-primary *:data-[slot=bubble-content]:text-primary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-primary/80",
|
|
3324
|
+
secondary: "*:data-[slot=bubble-content]:bg-secondary *:data-[slot=bubble-content]:text-secondary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)]",
|
|
3325
|
+
muted: "*:data-[slot=bubble-content]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--muted),var(--foreground)_5%)]",
|
|
3326
|
+
tinted: "*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.93_calc(c*0.4)_h)] *:data-[slot=bubble-content]:text-foreground dark:*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.3_calc(c*0.4)_h)] [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.88_calc(c*0.5)_h)] dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.35_calc(c*0.5)_h)]",
|
|
3327
|
+
outline: "*:data-[slot=bubble-content]:border-border *:data-[slot=bubble-content]:bg-background [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-input/30",
|
|
3328
|
+
ghost: "border-none *:data-[slot=bubble-content]:rounded-none *:data-[slot=bubble-content]:bg-transparent *:data-[slot=bubble-content]:p-0 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted/50",
|
|
3329
|
+
destructive: "*:data-[slot=bubble-content]:bg-destructive/10 *:data-[slot=bubble-content]:text-destructive dark:*:data-[slot=bubble-content]:bg-destructive/20 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/20 dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/30"
|
|
3330
|
+
} },
|
|
3331
|
+
defaultVariants: { variant: "default" }
|
|
3332
|
+
});
|
|
3333
|
+
function Bubble({ variant = "default", align = "start", className, ...props }) {
|
|
3334
|
+
return /* @__PURE__ */ jsx("div", {
|
|
3335
|
+
"data-slot": "bubble",
|
|
3336
|
+
"data-variant": variant,
|
|
3337
|
+
"data-align": align,
|
|
3338
|
+
className: cn(bubbleVariants({ variant }), className),
|
|
3339
|
+
...props
|
|
3340
|
+
});
|
|
3341
|
+
}
|
|
3342
|
+
function BubbleContent({ asChild = false, className, ...props }) {
|
|
3343
|
+
return /* @__PURE__ */ jsx(asChild ? Slot.Root : "div", {
|
|
3344
|
+
"data-slot": "bubble-content",
|
|
3345
|
+
className: cn("wrap-break-word w-fit min-w-0 max-w-full overflow-hidden rounded-xl border border-transparent px-3 py-2 text-sm leading-relaxed group-data-[align=end]/bubble:self-end [button,a]:outline-none [button,a]:transition-colors [button,a]:focus-visible:border-ring [button,a]:focus-visible:ring-3 [button,a]:focus-visible:ring-ring/50 [button]:text-left", className),
|
|
3346
|
+
...props
|
|
3347
|
+
});
|
|
3348
|
+
}
|
|
3349
|
+
const bubbleReactionsVariants = cva("absolute z-10 flex w-fit shrink-0 items-center justify-center gap-1 rounded-full bg-muted px-1.5 py-0.5 text-sm ring-3 ring-card has-[button]:p-0", {
|
|
3350
|
+
variants: {
|
|
3351
|
+
side: {
|
|
3352
|
+
top: "top-0 -translate-y-3/4",
|
|
3353
|
+
bottom: "bottom-0 translate-y-3/4"
|
|
3354
|
+
},
|
|
3355
|
+
align: {
|
|
3356
|
+
start: "left-3",
|
|
3357
|
+
end: "right-3"
|
|
3358
|
+
}
|
|
3359
|
+
},
|
|
3360
|
+
defaultVariants: {
|
|
3361
|
+
side: "bottom",
|
|
3362
|
+
align: "end"
|
|
3363
|
+
}
|
|
3364
|
+
});
|
|
3365
|
+
function BubbleReactions({ side = "bottom", align = "end", className, ...props }) {
|
|
3366
|
+
return /* @__PURE__ */ jsx("div", {
|
|
3367
|
+
"data-slot": "bubble-reactions",
|
|
3368
|
+
"data-align": align,
|
|
3369
|
+
"data-side": side,
|
|
3370
|
+
className: cn(bubbleReactionsVariants({
|
|
3371
|
+
side,
|
|
3372
|
+
align
|
|
3373
|
+
}), className),
|
|
3374
|
+
...props
|
|
3375
|
+
});
|
|
3376
|
+
}
|
|
3377
|
+
//#endregion
|
|
3225
3378
|
//#region src/ui/separator.tsx
|
|
3226
3379
|
function Separator({ className, orientation = "horizontal", decorative = true, ...props }) {
|
|
3227
3380
|
return /* @__PURE__ */ jsx(Separator$1.Root, {
|
|
@@ -3536,6 +3689,149 @@ function CarouselNext({ className, variant = "outline", size = "icon", ...props
|
|
|
3536
3689
|
});
|
|
3537
3690
|
}
|
|
3538
3691
|
//#endregion
|
|
3692
|
+
//#region src/ui/chart.tsx
|
|
3693
|
+
const THEMES = {
|
|
3694
|
+
light: "",
|
|
3695
|
+
dark: ".dark"
|
|
3696
|
+
};
|
|
3697
|
+
const INITIAL_DIMENSION = {
|
|
3698
|
+
width: 320,
|
|
3699
|
+
height: 200
|
|
3700
|
+
};
|
|
3701
|
+
const ChartContext = React$1.createContext(null);
|
|
3702
|
+
function useChart() {
|
|
3703
|
+
const context = React$1.useContext(ChartContext);
|
|
3704
|
+
if (!context) throw new Error("useChart must be used within a <ChartContainer />");
|
|
3705
|
+
return context;
|
|
3706
|
+
}
|
|
3707
|
+
function ChartContainer({ id, className, children, config, initialDimension = INITIAL_DIMENSION, ...props }) {
|
|
3708
|
+
const uniqueId = React$1.useId();
|
|
3709
|
+
const chartId = `chart-${id ?? uniqueId.replace(/:/g, "")}`;
|
|
3710
|
+
return /* @__PURE__ */ jsx(ChartContext.Provider, {
|
|
3711
|
+
value: { config },
|
|
3712
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
3713
|
+
"data-slot": "chart",
|
|
3714
|
+
"data-chart": chartId,
|
|
3715
|
+
className: cn("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-hidden [&_.recharts-surface]:outline-hidden", className),
|
|
3716
|
+
...props,
|
|
3717
|
+
children: [/* @__PURE__ */ jsx(ChartStyle, {
|
|
3718
|
+
id: chartId,
|
|
3719
|
+
config
|
|
3720
|
+
}), /* @__PURE__ */ jsx(RechartsPrimitive.ResponsiveContainer, {
|
|
3721
|
+
initialDimension,
|
|
3722
|
+
children
|
|
3723
|
+
})]
|
|
3724
|
+
})
|
|
3725
|
+
});
|
|
3726
|
+
}
|
|
3727
|
+
const ChartStyle = ({ id, config }) => {
|
|
3728
|
+
const colorConfig = Object.entries(config).filter(([, config]) => config.theme ?? config.color);
|
|
3729
|
+
if (!colorConfig.length) return null;
|
|
3730
|
+
return /* @__PURE__ */ jsx("style", { dangerouslySetInnerHTML: { __html: Object.entries(THEMES).map(([theme, prefix]) => `
|
|
3731
|
+
${prefix} [data-chart=${id}] {
|
|
3732
|
+
${colorConfig.map(([key, itemConfig]) => {
|
|
3733
|
+
const color = itemConfig.theme?.[theme] ?? itemConfig.color;
|
|
3734
|
+
return color ? ` --color-${key}: ${color};` : null;
|
|
3735
|
+
}).join("\n")}
|
|
3736
|
+
}
|
|
3737
|
+
`).join("\n") } });
|
|
3738
|
+
};
|
|
3739
|
+
const ChartTooltip = RechartsPrimitive.Tooltip;
|
|
3740
|
+
function ChartTooltipContent({ active, payload, className, indicator = "dot", hideLabel = false, hideIndicator = false, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey }) {
|
|
3741
|
+
const { config } = useChart();
|
|
3742
|
+
const tooltipLabel = React$1.useMemo(() => {
|
|
3743
|
+
if (hideLabel || !payload?.length) return null;
|
|
3744
|
+
const [item] = payload;
|
|
3745
|
+
const key = `${labelKey ?? item?.dataKey ?? item?.name ?? "value"}`;
|
|
3746
|
+
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
3747
|
+
const value = !labelKey && typeof label === "string" ? config[label]?.label ?? label : itemConfig?.label;
|
|
3748
|
+
if (labelFormatter) return /* @__PURE__ */ jsx("div", {
|
|
3749
|
+
className: cn("font-medium", labelClassName),
|
|
3750
|
+
children: labelFormatter(value, payload)
|
|
3751
|
+
});
|
|
3752
|
+
if (!value) return null;
|
|
3753
|
+
return /* @__PURE__ */ jsx("div", {
|
|
3754
|
+
className: cn("font-medium", labelClassName),
|
|
3755
|
+
children: value
|
|
3756
|
+
});
|
|
3757
|
+
}, [
|
|
3758
|
+
label,
|
|
3759
|
+
labelFormatter,
|
|
3760
|
+
payload,
|
|
3761
|
+
hideLabel,
|
|
3762
|
+
labelClassName,
|
|
3763
|
+
config,
|
|
3764
|
+
labelKey
|
|
3765
|
+
]);
|
|
3766
|
+
if (!active || !payload?.length) return null;
|
|
3767
|
+
const nestLabel = payload.length === 1 && indicator !== "dot";
|
|
3768
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
3769
|
+
className: cn("grid min-w-32 items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl", className),
|
|
3770
|
+
children: [!nestLabel ? tooltipLabel : null, /* @__PURE__ */ jsx("div", {
|
|
3771
|
+
className: "grid gap-1.5",
|
|
3772
|
+
children: payload.filter((item) => item.type !== "none").map((item, index) => {
|
|
3773
|
+
const key = `${nameKey ?? item.name ?? item.dataKey ?? "value"}`;
|
|
3774
|
+
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
3775
|
+
const indicatorColor = color ?? item.payload?.fill ?? item.color;
|
|
3776
|
+
return /* @__PURE__ */ jsx("div", {
|
|
3777
|
+
className: cn("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground", indicator === "dot" && "items-center"),
|
|
3778
|
+
children: formatter && item?.value !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ jsxs(Fragment$1, { children: [itemConfig?.icon ? /* @__PURE__ */ jsx(itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ jsx("div", {
|
|
3779
|
+
className: cn("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)", {
|
|
3780
|
+
"h-2.5 w-2.5": indicator === "dot",
|
|
3781
|
+
"w-1": indicator === "line",
|
|
3782
|
+
"w-0 border-[1.5px] border-dashed bg-transparent": indicator === "dashed",
|
|
3783
|
+
"my-0.5": nestLabel && indicator === "dashed"
|
|
3784
|
+
}),
|
|
3785
|
+
style: {
|
|
3786
|
+
"--color-bg": indicatorColor,
|
|
3787
|
+
"--color-border": indicatorColor
|
|
3788
|
+
}
|
|
3789
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
3790
|
+
className: cn("flex flex-1 justify-between leading-none", nestLabel ? "items-end" : "items-center"),
|
|
3791
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
3792
|
+
className: "grid gap-1.5",
|
|
3793
|
+
children: [nestLabel ? tooltipLabel : null, /* @__PURE__ */ jsx("span", {
|
|
3794
|
+
className: "text-muted-foreground",
|
|
3795
|
+
children: itemConfig?.label ?? item.name
|
|
3796
|
+
})]
|
|
3797
|
+
}), item.value != null && /* @__PURE__ */ jsx("span", {
|
|
3798
|
+
className: "font-medium font-mono text-foreground tabular-nums",
|
|
3799
|
+
children: typeof item.value === "number" ? item.value.toLocaleString() : String(item.value)
|
|
3800
|
+
})]
|
|
3801
|
+
})] })
|
|
3802
|
+
}, index);
|
|
3803
|
+
})
|
|
3804
|
+
})]
|
|
3805
|
+
});
|
|
3806
|
+
}
|
|
3807
|
+
const ChartLegend = RechartsPrimitive.Legend;
|
|
3808
|
+
function ChartLegendContent({ className, hideIcon = false, payload, verticalAlign = "bottom", nameKey }) {
|
|
3809
|
+
const { config } = useChart();
|
|
3810
|
+
if (!payload?.length) return null;
|
|
3811
|
+
return /* @__PURE__ */ jsx("div", {
|
|
3812
|
+
className: cn("flex items-center justify-center gap-4", verticalAlign === "top" ? "pb-3" : "pt-3", className),
|
|
3813
|
+
children: payload.filter((item) => item.type !== "none").map((item, index) => {
|
|
3814
|
+
const key = `${nameKey ?? item.dataKey ?? "value"}`;
|
|
3815
|
+
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
3816
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
3817
|
+
className: cn("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),
|
|
3818
|
+
children: [itemConfig?.icon && !hideIcon ? /* @__PURE__ */ jsx(itemConfig.icon, {}) : /* @__PURE__ */ jsx("div", {
|
|
3819
|
+
className: "h-2 w-2 shrink-0 rounded-[2px]",
|
|
3820
|
+
style: { backgroundColor: item.color }
|
|
3821
|
+
}), itemConfig?.label]
|
|
3822
|
+
}, index);
|
|
3823
|
+
})
|
|
3824
|
+
});
|
|
3825
|
+
}
|
|
3826
|
+
function getPayloadConfigFromPayload(config, payload, key) {
|
|
3827
|
+
if (typeof payload !== "object" || payload === null) return;
|
|
3828
|
+
const payloadPayload = "payload" in payload && typeof payload.payload === "object" && payload.payload !== null ? payload.payload : void 0;
|
|
3829
|
+
let configLabelKey = key;
|
|
3830
|
+
if (key in payload && typeof payload[key] === "string") configLabelKey = payload[key];
|
|
3831
|
+
else if (payloadPayload && key in payloadPayload && typeof payloadPayload[key] === "string") configLabelKey = payloadPayload[key];
|
|
3832
|
+
return configLabelKey in config ? config[configLabelKey] : config[key];
|
|
3833
|
+
}
|
|
3834
|
+
//#endregion
|
|
3539
3835
|
//#region src/ui/checkbox.tsx
|
|
3540
3836
|
const checkboxVariants = cva(`
|
|
3541
3837
|
group peer bg-background shrink-0 rounded-md border border-input ring-offset-background focus-visible:outline-none
|
|
@@ -3584,7 +3880,7 @@ const codeVariants = cva("relative rounded-md bg-muted font-medium font-mono tex
|
|
|
3584
3880
|
});
|
|
3585
3881
|
function Code({ className, variant, size, asChild = false, showCopyButton = false, copyText, children, ...props }) {
|
|
3586
3882
|
const { copy, copied } = useCopyToClipboard();
|
|
3587
|
-
const Comp = asChild ? Slot.
|
|
3883
|
+
const Comp = asChild ? Slot.Root : "code";
|
|
3588
3884
|
const textToCopy = copyText || (typeof children === "string" ? children : "");
|
|
3589
3885
|
return /* @__PURE__ */ jsxs("span", {
|
|
3590
3886
|
className: cn("inline-flex items-center gap-2", className),
|
|
@@ -3637,6 +3933,362 @@ function CollapsibleContent({ className, children, ...props }) {
|
|
|
3637
3933
|
});
|
|
3638
3934
|
}
|
|
3639
3935
|
//#endregion
|
|
3936
|
+
//#region src/ui/input.tsx
|
|
3937
|
+
const inputVariants = cva(`
|
|
3938
|
+
flex w-full bg-background border border-input shadow-xs shadow-black/5 transition-[color,box-shadow] text-foreground placeholder:text-muted-foreground/80
|
|
3939
|
+
focus-visible:ring-ring/30 focus-visible:border-ring focus-visible:outline-none focus-visible:ring-[3px]
|
|
3940
|
+
disabled:cursor-not-allowed disabled:opacity-60
|
|
3941
|
+
[[readonly]]:bg-muted/80 [[readonly]]:cursor-not-allowed
|
|
3942
|
+
file:h-full [[type=file]]:py-0 file:border-solid file:border-input file:bg-transparent
|
|
3943
|
+
file:font-medium file:not-italic file:text-foreground file:p-0 file:border-0 file:border-e
|
|
3944
|
+
aria-invalid:border-destructive/60 aria-invalid:ring-destructive/10 dark:aria-invalid:border-destructive dark:aria-invalid:ring-destructive/20
|
|
3945
|
+
`, {
|
|
3946
|
+
variants: { variant: {
|
|
3947
|
+
lg: "h-10 rounded-md px-4 text-sm file:me-4 file:pe-4",
|
|
3948
|
+
md: "h-9 rounded-md px-3 text-sm file:me-3 file:pe-3",
|
|
3949
|
+
sm: "h-8 rounded-md px-2.5 text-xs file:me-2.5 file:pe-2.5"
|
|
3950
|
+
} },
|
|
3951
|
+
defaultVariants: { variant: "md" }
|
|
3952
|
+
});
|
|
3953
|
+
const inputAddonVariants = cva("flex shrink-0 items-center justify-center border border-input bg-muted text-secondary-foreground shadow-[rgba(0,0,0,0.05)] shadow-xs [&_svg]:text-secondary-foreground/60", {
|
|
3954
|
+
variants: {
|
|
3955
|
+
variant: {
|
|
3956
|
+
lg: "h-10 min-w-10 rounded-md px-4 text-sm [&_svg:not([class*=size-])]:size-4.5",
|
|
3957
|
+
md: "h-9 min-w-9 rounded-md px-3 text-sm [&_svg:not([class*=size-])]:size-4.5",
|
|
3958
|
+
sm: "h-8 min-w-7 rounded-md px-2.5 text-xs [&_svg:not([class*=size-])]:size-3.5"
|
|
3959
|
+
},
|
|
3960
|
+
mode: {
|
|
3961
|
+
default: "",
|
|
3962
|
+
icon: "justify-center px-0"
|
|
3963
|
+
}
|
|
3964
|
+
},
|
|
3965
|
+
defaultVariants: {
|
|
3966
|
+
variant: "md",
|
|
3967
|
+
mode: "default"
|
|
3968
|
+
}
|
|
3969
|
+
});
|
|
3970
|
+
const inputGroupClasses = "flex items-stretch **:data-[slot=input]:grow [&_[data-slot=input-addon]:has(+[data-slot=input])]:rounded-e-none [&_[data-slot=input-addon]:has(+[data-slot=input])]:border-e-0 [&_[data-slot=input-addon]:has(+[data-slot=datefield])]:rounded-e-none [&_[data-slot=input-addon]:has(+[data-slot=datefield])]:border-e-0 [&_[data-slot=input]+[data-slot=input-addon]]:rounded-s-none [&_[data-slot=input]+[data-slot=input-addon]]:border-s-0 [&_[data-slot=input-addon]:has(+[data-slot=button])]:rounded-e-none [&_[data-slot=input]+[data-slot=button]]:rounded-s-none [&_[data-slot=button]+[data-slot=input]]:rounded-s-none [&_[data-slot=input-addon]+[data-slot=input]]:rounded-s-none [&_[data-slot=input-addon]+[data-slot=datefield]]:**:data-[slot=input]:rounded-s-none [&_[data-slot=datefield]:has(+[data-slot=input-addon])]:**:data-[slot=input]:rounded-e-none [&_[data-slot=input]:has(+[data-slot=button])]:rounded-e-none [&_[data-slot=input]:has(+[data-slot=input-addon])]:rounded-e-none **:data-[slot=datefield]:grow [&_[data-slot=datefield]+[data-slot=input-addon]]:rounded-s-none [&_[data-slot=datefield]+[data-slot=input-addon]]:border-s-0 [&_[data-slot=datefield]:has(~[data-slot=input-addon])]:**:data-[slot=input]:rounded-e-none [&_[data-slot=datefield]~[data-slot=input-addon]]:rounded-s-none";
|
|
3971
|
+
const inputWrapperVariants = cva(`
|
|
3972
|
+
flex items-center gap-1.5
|
|
3973
|
+
has-focus-visible:ring-ring/30
|
|
3974
|
+
has-focus-visible:border-ring
|
|
3975
|
+
has-focus-visible:outline-none
|
|
3976
|
+
has-focus-visible:ring-[3px]
|
|
3977
|
+
|
|
3978
|
+
**:data-[slot=datefield]:grow
|
|
3979
|
+
**:data-[slot=input]:data-focus-within:ring-transparent
|
|
3980
|
+
**:data-[slot=input]:data-focus-within:ring-0
|
|
3981
|
+
**:data-[slot=input]:data-focus-within:border-0
|
|
3982
|
+
**:data-[slot=input]:flex
|
|
3983
|
+
**:data-[slot=input]:w-full
|
|
3984
|
+
**:data-[slot=input]:outline-none
|
|
3985
|
+
**:data-[slot=input]:transition-colors
|
|
3986
|
+
**:data-[slot=input]:text-foreground
|
|
3987
|
+
**:data-[slot=input]:placeholder:text-muted-foreground
|
|
3988
|
+
**:data-[slot=input]:border-0
|
|
3989
|
+
**:data-[slot=input]:bg-transparent
|
|
3990
|
+
**:data-[slot=input]:p-0
|
|
3991
|
+
**:data-[slot=input]:shadow-none
|
|
3992
|
+
**:data-[slot=input]:focus-visible:ring-0
|
|
3993
|
+
**:data-[slot=input]:h-auto
|
|
3994
|
+
**:data-[slot=input]:disabled:cursor-not-allowed
|
|
3995
|
+
**:data-[slot=input]:disabled:opacity-50
|
|
3996
|
+
|
|
3997
|
+
[&_svg]:text-muted-foreground
|
|
3998
|
+
[&_svg]:shrink-0
|
|
3999
|
+
|
|
4000
|
+
has-aria-invalid:border-destructive/60
|
|
4001
|
+
has-aria-invalid:ring-destructive/10
|
|
4002
|
+
dark:has-aria-invalid:border-destructive
|
|
4003
|
+
dark:has-aria-invalid:ring-destructive/20
|
|
4004
|
+
`, {
|
|
4005
|
+
variants: { variant: {
|
|
4006
|
+
sm: "gap-1.25 [&_svg:not([class*=size-])]:size-3.5",
|
|
4007
|
+
md: "gap-1.5 [&_svg:not([class*=size-])]:size-4",
|
|
4008
|
+
lg: "gap-1.5 [&_svg:not([class*=size-])]:size-4"
|
|
4009
|
+
} },
|
|
4010
|
+
defaultVariants: { variant: "md" }
|
|
4011
|
+
});
|
|
4012
|
+
function Input({ className, type, variant, ...props }) {
|
|
4013
|
+
return /* @__PURE__ */ jsx("input", {
|
|
4014
|
+
"data-slot": "input",
|
|
4015
|
+
type,
|
|
4016
|
+
className: cn(inputVariants({ variant }), className),
|
|
4017
|
+
...props
|
|
4018
|
+
});
|
|
4019
|
+
}
|
|
4020
|
+
function InputAddon({ className, variant, mode, ...props }) {
|
|
4021
|
+
return /* @__PURE__ */ jsx("div", {
|
|
4022
|
+
"data-slot": "input-addon",
|
|
4023
|
+
className: cn(inputAddonVariants({
|
|
4024
|
+
variant,
|
|
4025
|
+
mode
|
|
4026
|
+
}), className),
|
|
4027
|
+
...props
|
|
4028
|
+
});
|
|
4029
|
+
}
|
|
4030
|
+
function InputGroup({ className, ...props }) {
|
|
4031
|
+
return /* @__PURE__ */ jsx("div", {
|
|
4032
|
+
"data-slot": "input-group",
|
|
4033
|
+
className: cn(inputGroupClasses, className),
|
|
4034
|
+
...props
|
|
4035
|
+
});
|
|
4036
|
+
}
|
|
4037
|
+
function InputWrapper({ className, variant, ...props }) {
|
|
4038
|
+
return /* @__PURE__ */ jsx("div", {
|
|
4039
|
+
"data-slot": "input-wrapper",
|
|
4040
|
+
className: cn(inputVariants({ variant }), inputWrapperVariants({ variant }), className),
|
|
4041
|
+
...props
|
|
4042
|
+
});
|
|
4043
|
+
}
|
|
4044
|
+
//#endregion
|
|
4045
|
+
//#region src/ui/textarea.tsx
|
|
4046
|
+
const textareaVariants = cva(`
|
|
4047
|
+
w-full bg-background border border-input shadow-xs shadow-black/5 transition-[color,box-shadow]
|
|
4048
|
+
text-foreground placeholder:text-muted-foreground/80 focus-visible:border-ring focus-visible:outline-none focus-visible:ring-[3px]
|
|
4049
|
+
focus-visible:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50 read-only:opacity-70
|
|
4050
|
+
aria-invalid:border-destructive/60 aria-invalid:ring-destructive/10 dark:aria-invalid:border-destructive dark:aria-invalid:ring-destructive/20
|
|
4051
|
+
in-data-[invalid=true]:border-destructive/60 in-data-[invalid=true]:ring-destructive/10 dark:in-data-[invalid=true]:border-destructive dark:in-data-[invalid=true]:ring-destructive/20
|
|
4052
|
+
`, {
|
|
4053
|
+
variants: { variant: {
|
|
4054
|
+
sm: "rounded-md px-2.5 py-2.5 text-xs",
|
|
4055
|
+
md: "rounded-md px-3 py-3 text-sm",
|
|
4056
|
+
lg: "rounded-md px-4 py-4 text-sm"
|
|
4057
|
+
} },
|
|
4058
|
+
defaultVariants: { variant: "md" }
|
|
4059
|
+
});
|
|
4060
|
+
function Textarea({ className, variant, ...props }) {
|
|
4061
|
+
return /* @__PURE__ */ jsx("textarea", {
|
|
4062
|
+
"data-slot": "textarea",
|
|
4063
|
+
className: cn(textareaVariants({ variant }), className),
|
|
4064
|
+
...props
|
|
4065
|
+
});
|
|
4066
|
+
}
|
|
4067
|
+
//#endregion
|
|
4068
|
+
//#region src/ui/input-group.tsx
|
|
4069
|
+
function InputGroup$1({ className, ...props }) {
|
|
4070
|
+
return /* @__PURE__ */ jsx("div", {
|
|
4071
|
+
"data-slot": "input-group",
|
|
4072
|
+
role: "group",
|
|
4073
|
+
className: cn("group/input-group relative flex h-9 w-full min-w-0 items-center rounded-md border border-input shadow-xs outline-none transition-[color,box-shadow] in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-start]]:h-auto has-[>textarea]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:flex-col has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 dark:bg-input/30 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-start]]:[&>input]:pl-1.5", className),
|
|
4074
|
+
...props
|
|
4075
|
+
});
|
|
4076
|
+
}
|
|
4077
|
+
const inputGroupAddonVariants = cva("flex h-auto cursor-text select-none items-center justify-center gap-2 py-1.5 font-medium text-muted-foreground text-sm group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4", {
|
|
4078
|
+
variants: { align: {
|
|
4079
|
+
"inline-start": "order-first pl-2 has-[>button]:-ml-1 has-[>kbd]:ml-[-0.15rem]",
|
|
4080
|
+
"inline-end": "order-last pr-2 has-[>button]:-mr-1 has-[>kbd]:mr-[-0.15rem]",
|
|
4081
|
+
"block-start": "order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2",
|
|
4082
|
+
"block-end": "order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2"
|
|
4083
|
+
} },
|
|
4084
|
+
defaultVariants: { align: "inline-start" }
|
|
4085
|
+
});
|
|
4086
|
+
function InputGroupAddon({ className, align = "inline-start", ...props }) {
|
|
4087
|
+
return /* @__PURE__ */ jsx("div", {
|
|
4088
|
+
role: "group",
|
|
4089
|
+
"data-slot": "input-group-addon",
|
|
4090
|
+
"data-align": align,
|
|
4091
|
+
className: cn(inputGroupAddonVariants({ align }), className),
|
|
4092
|
+
onClick: (e) => {
|
|
4093
|
+
if (e.target.closest("button")) return;
|
|
4094
|
+
e.currentTarget.parentElement?.querySelector("input")?.focus();
|
|
4095
|
+
},
|
|
4096
|
+
...props
|
|
4097
|
+
});
|
|
4098
|
+
}
|
|
4099
|
+
const inputGroupButtonVariants = cva("flex items-center gap-2 text-sm shadow-none", {
|
|
4100
|
+
variants: { size: {
|
|
4101
|
+
xs: "h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",
|
|
4102
|
+
sm: "",
|
|
4103
|
+
"icon-xs": "size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0",
|
|
4104
|
+
"icon-sm": "size-8 p-0 has-[>svg]:p-0"
|
|
4105
|
+
} },
|
|
4106
|
+
defaultVariants: { size: "xs" }
|
|
4107
|
+
});
|
|
4108
|
+
function InputGroupButton({ className, type = "button", variant = "ghost", size = "xs", ...props }) {
|
|
4109
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
4110
|
+
type,
|
|
4111
|
+
"data-size": size,
|
|
4112
|
+
variant,
|
|
4113
|
+
className: cn(inputGroupButtonVariants({ size }), className),
|
|
4114
|
+
...props
|
|
4115
|
+
});
|
|
4116
|
+
}
|
|
4117
|
+
function InputGroupText({ className, ...props }) {
|
|
4118
|
+
return /* @__PURE__ */ jsx("span", {
|
|
4119
|
+
className: cn("flex items-center gap-2 text-muted-foreground text-sm [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none", className),
|
|
4120
|
+
...props
|
|
4121
|
+
});
|
|
4122
|
+
}
|
|
4123
|
+
function InputGroupInput({ className, ...props }) {
|
|
4124
|
+
return /* @__PURE__ */ jsx(Input, {
|
|
4125
|
+
"data-slot": "input-group-control",
|
|
4126
|
+
className: cn("flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent", className),
|
|
4127
|
+
...props
|
|
4128
|
+
});
|
|
4129
|
+
}
|
|
4130
|
+
function InputGroupTextarea({ className, ...props }) {
|
|
4131
|
+
return /* @__PURE__ */ jsx(Textarea, {
|
|
4132
|
+
"data-slot": "input-group-control",
|
|
4133
|
+
className: cn("flex-1 resize-none rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent", className),
|
|
4134
|
+
...props
|
|
4135
|
+
});
|
|
4136
|
+
}
|
|
4137
|
+
//#endregion
|
|
4138
|
+
//#region src/ui/combobox.tsx
|
|
4139
|
+
const Combobox = Combobox$1.Root;
|
|
4140
|
+
function ComboboxValue({ ...props }) {
|
|
4141
|
+
return /* @__PURE__ */ jsx(Combobox$1.Value, {
|
|
4142
|
+
"data-slot": "combobox-value",
|
|
4143
|
+
...props
|
|
4144
|
+
});
|
|
4145
|
+
}
|
|
4146
|
+
function ComboboxTrigger({ className, children, ...props }) {
|
|
4147
|
+
return /* @__PURE__ */ jsxs(Combobox$1.Trigger, {
|
|
4148
|
+
"data-slot": "combobox-trigger",
|
|
4149
|
+
className: cn("[&_svg:not([class*='size-'])]:size-4", className),
|
|
4150
|
+
...props,
|
|
4151
|
+
children: [children, /* @__PURE__ */ jsx(ChevronDownIcon, { className: "pointer-events-none size-4 text-muted-foreground" })]
|
|
4152
|
+
});
|
|
4153
|
+
}
|
|
4154
|
+
function ComboboxClear({ className, ...props }) {
|
|
4155
|
+
return /* @__PURE__ */ jsx(Combobox$1.Clear, {
|
|
4156
|
+
"data-slot": "combobox-clear",
|
|
4157
|
+
render: /* @__PURE__ */ jsx(InputGroupButton, {
|
|
4158
|
+
variant: "ghost",
|
|
4159
|
+
size: "icon-xs"
|
|
4160
|
+
}),
|
|
4161
|
+
className: cn(className),
|
|
4162
|
+
...props,
|
|
4163
|
+
children: /* @__PURE__ */ jsx(XIcon, { className: "pointer-events-none" })
|
|
4164
|
+
});
|
|
4165
|
+
}
|
|
4166
|
+
function ComboboxInput({ className, children, disabled = false, showTrigger = true, showClear = false, ...props }) {
|
|
4167
|
+
return /* @__PURE__ */ jsxs(InputGroup$1, {
|
|
4168
|
+
className: cn("w-auto", className),
|
|
4169
|
+
children: [
|
|
4170
|
+
/* @__PURE__ */ jsx(Combobox$1.Input, {
|
|
4171
|
+
render: /* @__PURE__ */ jsx(InputGroupInput, { disabled }),
|
|
4172
|
+
...props
|
|
4173
|
+
}),
|
|
4174
|
+
/* @__PURE__ */ jsxs(InputGroupAddon, {
|
|
4175
|
+
align: "inline-end",
|
|
4176
|
+
children: [showTrigger && /* @__PURE__ */ jsx(InputGroupButton, {
|
|
4177
|
+
size: "icon-xs",
|
|
4178
|
+
variant: "ghost",
|
|
4179
|
+
asChild: true,
|
|
4180
|
+
"data-slot": "input-group-button",
|
|
4181
|
+
className: "group-has-data-[slot=combobox-clear]/input-group:hidden data-pressed:bg-transparent",
|
|
4182
|
+
disabled,
|
|
4183
|
+
children: /* @__PURE__ */ jsx(ComboboxTrigger, {})
|
|
4184
|
+
}), showClear && /* @__PURE__ */ jsx(ComboboxClear, { disabled })]
|
|
4185
|
+
}),
|
|
4186
|
+
children
|
|
4187
|
+
]
|
|
4188
|
+
});
|
|
4189
|
+
}
|
|
4190
|
+
function ComboboxContent({ className, side = "bottom", sideOffset = 6, align = "start", alignOffset = 0, anchor, ...props }) {
|
|
4191
|
+
return /* @__PURE__ */ jsx(Combobox$1.Portal, { children: /* @__PURE__ */ jsx(Combobox$1.Positioner, {
|
|
4192
|
+
side,
|
|
4193
|
+
sideOffset,
|
|
4194
|
+
align,
|
|
4195
|
+
alignOffset,
|
|
4196
|
+
anchor,
|
|
4197
|
+
className: "isolate z-50",
|
|
4198
|
+
children: /* @__PURE__ */ jsx(Combobox$1.Popup, {
|
|
4199
|
+
"data-slot": "combobox-content",
|
|
4200
|
+
"data-chips": !!anchor,
|
|
4201
|
+
className: cn("group/combobox-content data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:fade-in-0 data-open:zoom-in-95 data-closed:fade-out-0 data-closed:zoom-out-95 relative max-h-(--available-height) w-(--anchor-width) min-w-[calc(var(--anchor-width)+--spacing(7))] max-w-(--available-width) origin-(--transform-origin) overflow-hidden rounded-md bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[chips=true]:min-w-(--anchor-width) data-closed:animate-out data-open:animate-in *:data-[slot=input-group]:m-1 *:data-[slot=input-group]:mb-0 *:data-[slot=input-group]:h-8 *:data-[slot=input-group]:border-input/30 *:data-[slot=input-group]:bg-input/30 *:data-[slot=input-group]:shadow-none", className),
|
|
4202
|
+
...props
|
|
4203
|
+
})
|
|
4204
|
+
}) });
|
|
4205
|
+
}
|
|
4206
|
+
function ComboboxList({ className, ...props }) {
|
|
4207
|
+
return /* @__PURE__ */ jsx(Combobox$1.List, {
|
|
4208
|
+
"data-slot": "combobox-list",
|
|
4209
|
+
className: cn("no-scrollbar max-h-[min(calc(--spacing(72)---spacing(9)),calc(var(--available-height)---spacing(9)))] scroll-py-1 overflow-y-auto overscroll-contain p-1 data-empty:p-0", className),
|
|
4210
|
+
...props
|
|
4211
|
+
});
|
|
4212
|
+
}
|
|
4213
|
+
function ComboboxItem({ className, children, ...props }) {
|
|
4214
|
+
return /* @__PURE__ */ jsxs(Combobox$1.Item, {
|
|
4215
|
+
"data-slot": "combobox-item",
|
|
4216
|
+
className: cn("relative flex w-full cursor-default select-none items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden data-disabled:pointer-events-none data-highlighted:bg-accent data-highlighted:text-accent-foreground data-disabled:opacity-50 not-data-[variant=destructive]:data-highlighted:**:text-accent-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0", className),
|
|
4217
|
+
...props,
|
|
4218
|
+
children: [children, /* @__PURE__ */ jsx(Combobox$1.ItemIndicator, {
|
|
4219
|
+
render: /* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center" }),
|
|
4220
|
+
children: /* @__PURE__ */ jsx(CheckIcon, { className: "pointer-events-none" })
|
|
4221
|
+
})]
|
|
4222
|
+
});
|
|
4223
|
+
}
|
|
4224
|
+
function ComboboxGroup({ className, ...props }) {
|
|
4225
|
+
return /* @__PURE__ */ jsx(Combobox$1.Group, {
|
|
4226
|
+
"data-slot": "combobox-group",
|
|
4227
|
+
className: cn(className),
|
|
4228
|
+
...props
|
|
4229
|
+
});
|
|
4230
|
+
}
|
|
4231
|
+
function ComboboxLabel({ className, ...props }) {
|
|
4232
|
+
return /* @__PURE__ */ jsx(Combobox$1.GroupLabel, {
|
|
4233
|
+
"data-slot": "combobox-label",
|
|
4234
|
+
className: cn("px-2 py-1.5 text-muted-foreground text-xs", className),
|
|
4235
|
+
...props
|
|
4236
|
+
});
|
|
4237
|
+
}
|
|
4238
|
+
function ComboboxCollection({ ...props }) {
|
|
4239
|
+
return /* @__PURE__ */ jsx(Combobox$1.Collection, {
|
|
4240
|
+
"data-slot": "combobox-collection",
|
|
4241
|
+
...props
|
|
4242
|
+
});
|
|
4243
|
+
}
|
|
4244
|
+
function ComboboxEmpty({ className, ...props }) {
|
|
4245
|
+
return /* @__PURE__ */ jsx(Combobox$1.Empty, {
|
|
4246
|
+
"data-slot": "combobox-empty",
|
|
4247
|
+
className: cn("hidden w-full justify-center py-2 text-center text-muted-foreground text-sm group-data-empty/combobox-content:flex", className),
|
|
4248
|
+
...props
|
|
4249
|
+
});
|
|
4250
|
+
}
|
|
4251
|
+
function ComboboxSeparator({ className, ...props }) {
|
|
4252
|
+
return /* @__PURE__ */ jsx(Combobox$1.Separator, {
|
|
4253
|
+
"data-slot": "combobox-separator",
|
|
4254
|
+
className: cn("-mx-1 my-1 h-px bg-border", className),
|
|
4255
|
+
...props
|
|
4256
|
+
});
|
|
4257
|
+
}
|
|
4258
|
+
function ComboboxChips({ className, ...props }) {
|
|
4259
|
+
return /* @__PURE__ */ jsx(Combobox$1.Chips, {
|
|
4260
|
+
"data-slot": "combobox-chips",
|
|
4261
|
+
className: cn("flex min-h-9 flex-wrap items-center gap-1.5 rounded-md border border-input bg-transparent bg-clip-padding px-2.5 py-1.5 text-sm shadow-xs transition-[color,box-shadow] focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/50 has-aria-invalid:border-destructive has-data-[slot=combobox-chip]:px-1.5 has-aria-invalid:ring-3 has-aria-invalid:ring-destructive/20 dark:bg-input/30 dark:has-aria-invalid:border-destructive/50 dark:has-aria-invalid:ring-destructive/40", className),
|
|
4262
|
+
...props
|
|
4263
|
+
});
|
|
4264
|
+
}
|
|
4265
|
+
function ComboboxChip({ className, children, showRemove = true, ...props }) {
|
|
4266
|
+
return /* @__PURE__ */ jsxs(Combobox$1.Chip, {
|
|
4267
|
+
"data-slot": "combobox-chip",
|
|
4268
|
+
className: cn("flex h-[calc(--spacing(5.5))] w-fit items-center justify-center gap-1 whitespace-nowrap rounded-sm bg-muted px-1.5 font-medium text-foreground text-xs has-disabled:pointer-events-none has-disabled:cursor-not-allowed has-data-[slot=combobox-chip-remove]:pr-0 has-disabled:opacity-50", className),
|
|
4269
|
+
...props,
|
|
4270
|
+
children: [children, showRemove && /* @__PURE__ */ jsx(Combobox$1.ChipRemove, {
|
|
4271
|
+
render: /* @__PURE__ */ jsx(Button, {
|
|
4272
|
+
variant: "ghost",
|
|
4273
|
+
size: "icon"
|
|
4274
|
+
}),
|
|
4275
|
+
className: "-ml-1 opacity-50 hover:opacity-100",
|
|
4276
|
+
"data-slot": "combobox-chip-remove",
|
|
4277
|
+
children: /* @__PURE__ */ jsx(XIcon, { className: "pointer-events-none" })
|
|
4278
|
+
})]
|
|
4279
|
+
});
|
|
4280
|
+
}
|
|
4281
|
+
function ComboboxChipsInput({ className, ...props }) {
|
|
4282
|
+
return /* @__PURE__ */ jsx(Combobox$1.Input, {
|
|
4283
|
+
"data-slot": "combobox-chip-input",
|
|
4284
|
+
className: cn("min-w-16 flex-1 outline-none", className),
|
|
4285
|
+
...props
|
|
4286
|
+
});
|
|
4287
|
+
}
|
|
4288
|
+
function useComboboxAnchor() {
|
|
4289
|
+
return React$1.useRef(null);
|
|
4290
|
+
}
|
|
4291
|
+
//#endregion
|
|
3640
4292
|
//#region src/ui/dialog.tsx
|
|
3641
4293
|
const dialogContentVariants = cva("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed z-50 flex flex-col border border-border bg-background p-6 shadow-black/5 shadow-lg outline-0 duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:rounded-lg", {
|
|
3642
4294
|
variants: { variant: {
|
|
@@ -3944,46 +4596,46 @@ function DataGridProvider({ children, table, ...props }) {
|
|
|
3944
4596
|
children
|
|
3945
4597
|
});
|
|
3946
4598
|
}
|
|
4599
|
+
const DATA_GRID_DEFAULT_PROPS = {
|
|
4600
|
+
loadingMode: "skeleton",
|
|
4601
|
+
tableLayout: {
|
|
4602
|
+
dense: false,
|
|
4603
|
+
cellBorder: false,
|
|
4604
|
+
rowBorder: true,
|
|
4605
|
+
rowRounded: false,
|
|
4606
|
+
stripped: false,
|
|
4607
|
+
headerSticky: false,
|
|
4608
|
+
headerBackground: true,
|
|
4609
|
+
headerBorder: true,
|
|
4610
|
+
width: "fixed",
|
|
4611
|
+
columnsVisibility: false,
|
|
4612
|
+
columnsResizable: false,
|
|
4613
|
+
columnsPinnable: false,
|
|
4614
|
+
columnsMovable: false,
|
|
4615
|
+
columnsDraggable: false,
|
|
4616
|
+
rowsDraggable: false
|
|
4617
|
+
},
|
|
4618
|
+
tableClassNames: {
|
|
4619
|
+
base: "",
|
|
4620
|
+
header: "",
|
|
4621
|
+
headerRow: "",
|
|
4622
|
+
headerSticky: "sticky top-0 z-10 bg-background/90 backdrop-blur-xs",
|
|
4623
|
+
body: "",
|
|
4624
|
+
bodyRow: "",
|
|
4625
|
+
footer: "",
|
|
4626
|
+
edgeCell: ""
|
|
4627
|
+
}
|
|
4628
|
+
};
|
|
3947
4629
|
function DataGrid({ children, table, ...props }) {
|
|
3948
|
-
const defaultProps = {
|
|
3949
|
-
loadingMode: "skeleton",
|
|
3950
|
-
tableLayout: {
|
|
3951
|
-
dense: false,
|
|
3952
|
-
cellBorder: false,
|
|
3953
|
-
rowBorder: true,
|
|
3954
|
-
rowRounded: false,
|
|
3955
|
-
stripped: false,
|
|
3956
|
-
headerSticky: false,
|
|
3957
|
-
headerBackground: true,
|
|
3958
|
-
headerBorder: true,
|
|
3959
|
-
width: "fixed",
|
|
3960
|
-
columnsVisibility: false,
|
|
3961
|
-
columnsResizable: false,
|
|
3962
|
-
columnsPinnable: false,
|
|
3963
|
-
columnsMovable: false,
|
|
3964
|
-
columnsDraggable: false,
|
|
3965
|
-
rowsDraggable: false
|
|
3966
|
-
},
|
|
3967
|
-
tableClassNames: {
|
|
3968
|
-
base: "",
|
|
3969
|
-
header: "",
|
|
3970
|
-
headerRow: "",
|
|
3971
|
-
headerSticky: "sticky top-0 z-10 bg-background/90 backdrop-blur-xs",
|
|
3972
|
-
body: "",
|
|
3973
|
-
bodyRow: "",
|
|
3974
|
-
footer: "",
|
|
3975
|
-
edgeCell: ""
|
|
3976
|
-
}
|
|
3977
|
-
};
|
|
3978
4630
|
const mergedProps = {
|
|
3979
|
-
...
|
|
4631
|
+
...DATA_GRID_DEFAULT_PROPS,
|
|
3980
4632
|
...props,
|
|
3981
4633
|
tableLayout: {
|
|
3982
|
-
...
|
|
4634
|
+
...DATA_GRID_DEFAULT_PROPS.tableLayout,
|
|
3983
4635
|
...props.tableLayout || {}
|
|
3984
4636
|
},
|
|
3985
4637
|
tableClassNames: {
|
|
3986
|
-
...
|
|
4638
|
+
...DATA_GRID_DEFAULT_PROPS.tableClassNames,
|
|
3987
4639
|
...props.tableClassNames || {}
|
|
3988
4640
|
}
|
|
3989
4641
|
};
|
|
@@ -4128,7 +4780,7 @@ function DropdownMenuTrigger({ ...props }) {
|
|
|
4128
4780
|
function DropdownMenuSubTrigger({ className, inset, children, ...props }) {
|
|
4129
4781
|
return /* @__PURE__ */ jsxs(DropdownMenu$1.SubTrigger, {
|
|
4130
4782
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
4131
|
-
className: cn("flex cursor-default select-none items-center gap-2 rounded-md px-2 py-1.5 text-sm outline-hidden", "focus:bg-accent focus:text-foreground", "data-[state=open]:bg-accent data-[state=open]:text-foreground", "
|
|
4783
|
+
className: cn("flex cursor-default select-none items-center gap-2 rounded-md px-2 py-1.5 text-sm outline-hidden", "focus:bg-accent focus:text-foreground", "data-[state=open]:bg-accent data-[state=open]:text-foreground", "[&>svg]:pointer-events-none [&>svg]:size-4 [&>svg]:shrink-0 [&_svg:not([role=img]):not([class*=text-])]:opacity-60", inset && "ps-8", className),
|
|
4132
4784
|
...props,
|
|
4133
4785
|
children: [children, /* @__PURE__ */ jsx(ChevronRightIcon, {
|
|
4134
4786
|
"data-slot": "dropdown-menu-sub-trigger-indicator",
|
|
@@ -4550,27 +5202,30 @@ function Skeleton({ className, ...props }) {
|
|
|
4550
5202
|
}
|
|
4551
5203
|
//#endregion
|
|
4552
5204
|
//#region src/ui/data-grid-pagination.tsx
|
|
5205
|
+
const DATA_GRID_PAGINATION_DEFAULT_PROPS = {
|
|
5206
|
+
sizes: [
|
|
5207
|
+
5,
|
|
5208
|
+
10,
|
|
5209
|
+
25,
|
|
5210
|
+
50,
|
|
5211
|
+
100
|
|
5212
|
+
],
|
|
5213
|
+
sizesLabel: "Show",
|
|
5214
|
+
sizesSkeleton: /* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-44" }),
|
|
5215
|
+
moreLimit: 5,
|
|
5216
|
+
info: "{from} - {to} of {count}",
|
|
5217
|
+
infoSkeleton: /* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-60" }),
|
|
5218
|
+
rowsPerPageLabel: "Rows per page",
|
|
5219
|
+
previousPageLabel: "Go to previous page",
|
|
5220
|
+
nextPageLabel: "Go to next page",
|
|
5221
|
+
ellipsisText: "...",
|
|
5222
|
+
previousPagesLabel: "Jump to previous pages",
|
|
5223
|
+
nextPagesLabel: "Jump to next pages"
|
|
5224
|
+
};
|
|
4553
5225
|
function DataGridPagination(props) {
|
|
4554
5226
|
const { table, recordCount, isLoading } = useDataGrid();
|
|
4555
5227
|
const mergedProps = {
|
|
4556
|
-
|
|
4557
|
-
5,
|
|
4558
|
-
10,
|
|
4559
|
-
25,
|
|
4560
|
-
50,
|
|
4561
|
-
100
|
|
4562
|
-
],
|
|
4563
|
-
sizesLabel: "Show",
|
|
4564
|
-
sizesSkeleton: /* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-44" }),
|
|
4565
|
-
moreLimit: 5,
|
|
4566
|
-
info: "{from} - {to} of {count}",
|
|
4567
|
-
infoSkeleton: /* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-60" }),
|
|
4568
|
-
rowsPerPageLabel: "Rows per page",
|
|
4569
|
-
previousPageLabel: "Go to previous page",
|
|
4570
|
-
nextPageLabel: "Go to next page",
|
|
4571
|
-
ellipsisText: "...",
|
|
4572
|
-
previousPagesLabel: "Jump to previous pages",
|
|
4573
|
-
nextPagesLabel: "Jump to next pages",
|
|
5228
|
+
...DATA_GRID_PAGINATION_DEFAULT_PROPS,
|
|
4574
5229
|
...props
|
|
4575
5230
|
};
|
|
4576
5231
|
const btnBaseClasses = "size-7 p-0 text-sm";
|
|
@@ -5212,6 +5867,15 @@ const DescriptionList = DescriptionListBase;
|
|
|
5212
5867
|
DescriptionList.Term = DescriptionTerm;
|
|
5213
5868
|
DescriptionList.Details = DescriptionDetails;
|
|
5214
5869
|
//#endregion
|
|
5870
|
+
//#region src/ui/direction.tsx
|
|
5871
|
+
function DirectionProvider({ dir, direction, children }) {
|
|
5872
|
+
return /* @__PURE__ */ jsx(Direction.DirectionProvider, {
|
|
5873
|
+
dir: direction ?? dir ?? "ltr",
|
|
5874
|
+
children
|
|
5875
|
+
});
|
|
5876
|
+
}
|
|
5877
|
+
const useDirection = Direction.useDirection;
|
|
5878
|
+
//#endregion
|
|
5215
5879
|
//#region src/ui/drawer.tsx
|
|
5216
5880
|
const Drawer = ({ shouldScaleBackground = true, ...props }) => /* @__PURE__ */ jsx(Drawer$1.Root, {
|
|
5217
5881
|
shouldScaleBackground,
|
|
@@ -5327,6 +5991,56 @@ function EmptyContent({ className, ...props }) {
|
|
|
5327
5991
|
});
|
|
5328
5992
|
}
|
|
5329
5993
|
//#endregion
|
|
5994
|
+
//#region src/ui/error-boundary.tsx
|
|
5995
|
+
function areResetKeysEqual(a = [], b = []) {
|
|
5996
|
+
if (a.length !== b.length) return false;
|
|
5997
|
+
return a.every((key, index) => Object.is(key, b[index]));
|
|
5998
|
+
}
|
|
5999
|
+
function DefaultFallback({ error, reset }) {
|
|
6000
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
6001
|
+
role: "alert",
|
|
6002
|
+
className: cn("flex flex-col items-center gap-3 rounded-lg border border-destructive/30 bg-destructive/5 p-6 text-center"),
|
|
6003
|
+
children: [
|
|
6004
|
+
/* @__PURE__ */ jsx("p", {
|
|
6005
|
+
className: "font-medium text-destructive text-sm",
|
|
6006
|
+
children: "Something went wrong"
|
|
6007
|
+
}),
|
|
6008
|
+
/* @__PURE__ */ jsx("p", {
|
|
6009
|
+
className: "max-w-md text-muted-foreground text-xs",
|
|
6010
|
+
children: error.message
|
|
6011
|
+
}),
|
|
6012
|
+
/* @__PURE__ */ jsx("button", {
|
|
6013
|
+
type: "button",
|
|
6014
|
+
onClick: reset,
|
|
6015
|
+
className: "rounded-md bg-primary px-4 py-2 font-medium text-primary-foreground text-sm transition-colors hover:bg-primary/90",
|
|
6016
|
+
children: "Try again"
|
|
6017
|
+
})
|
|
6018
|
+
]
|
|
6019
|
+
});
|
|
6020
|
+
}
|
|
6021
|
+
var ErrorBoundary = class extends React$1.Component {
|
|
6022
|
+
state = { error: null };
|
|
6023
|
+
static getDerivedStateFromError(error) {
|
|
6024
|
+
return { error };
|
|
6025
|
+
}
|
|
6026
|
+
componentDidCatch(error, info) {
|
|
6027
|
+
this.props.onError?.(error, info);
|
|
6028
|
+
}
|
|
6029
|
+
componentDidUpdate(prevProps) {
|
|
6030
|
+
if (this.state.error && !areResetKeysEqual(prevProps.resetKeys, this.props.resetKeys)) this.reset();
|
|
6031
|
+
}
|
|
6032
|
+
reset = () => {
|
|
6033
|
+
this.setState({ error: null });
|
|
6034
|
+
};
|
|
6035
|
+
render() {
|
|
6036
|
+
if (this.state.error) return /* @__PURE__ */ jsx(this.props.fallback ?? DefaultFallback, {
|
|
6037
|
+
error: this.state.error,
|
|
6038
|
+
reset: this.reset
|
|
6039
|
+
});
|
|
6040
|
+
return this.props.children;
|
|
6041
|
+
}
|
|
6042
|
+
};
|
|
6043
|
+
//#endregion
|
|
5330
6044
|
//#region src/ui/label.tsx
|
|
5331
6045
|
const labelVariants = cva("text-foreground text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50", {
|
|
5332
6046
|
variants: { variant: {
|
|
@@ -6412,7 +7126,7 @@ function FilterOperatorDropdown({ field, operator, values, onChange }) {
|
|
|
6412
7126
|
}, op.value))
|
|
6413
7127
|
})] });
|
|
6414
7128
|
}
|
|
6415
|
-
function renderOptionCommandItems({ selectedOptions, unselectedOptions, onSelectSelected, onSelectAvailable, isMultiSelect,
|
|
7129
|
+
function renderOptionCommandItems({ selectedOptions, unselectedOptions, onSelectSelected, onSelectAvailable, isMultiSelect, onClose }) {
|
|
6416
7130
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [selectedOptions.length > 0 && /* @__PURE__ */ jsx(CommandGroup, { children: selectedOptions.map((option) => /* @__PURE__ */ jsxs(CommandItem, {
|
|
6417
7131
|
className: "group flex items-center gap-2",
|
|
6418
7132
|
onSelect: () => onSelectSelected(option.value),
|
|
@@ -6480,7 +7194,6 @@ function SelectOptionsPopover({ field, values, onChange, onClose, inline = false
|
|
|
6480
7194
|
} else change([value]);
|
|
6481
7195
|
},
|
|
6482
7196
|
isMultiSelect,
|
|
6483
|
-
maxSelections: field.maxSelections,
|
|
6484
7197
|
onClose
|
|
6485
7198
|
})] })] })
|
|
6486
7199
|
});
|
|
@@ -6526,7 +7239,6 @@ function SelectOptionsPopover({ field, values, onChange, onClose, inline = false
|
|
|
6526
7239
|
} else onChange([value]);
|
|
6527
7240
|
},
|
|
6528
7241
|
isMultiSelect,
|
|
6529
|
-
maxSelections: field.maxSelections,
|
|
6530
7242
|
onClose: () => {
|
|
6531
7243
|
setOpen(false);
|
|
6532
7244
|
handleClose();
|
|
@@ -6853,7 +7565,6 @@ function FilterValueSelector({ field, values, onChange, operator }) {
|
|
|
6853
7565
|
} else onChange([value]);
|
|
6854
7566
|
},
|
|
6855
7567
|
isMultiSelect,
|
|
6856
|
-
maxSelections: field.maxSelections,
|
|
6857
7568
|
onClose: () => setOpen(false)
|
|
6858
7569
|
})] })] })
|
|
6859
7570
|
})]
|
|
@@ -6978,8 +7689,6 @@ function Filters({ filters, fields, onChange, className, showAddButton = true, a
|
|
|
6978
7689
|
else if (field.type === "daterange") defaultValues = ["", ""];
|
|
6979
7690
|
else if (field.type === "numberrange") defaultValues = [field.min || 0, field.max || 100];
|
|
6980
7691
|
else if (field.type === "boolean") defaultValues = [false];
|
|
6981
|
-
else if (field.type === "time") defaultValues = [""];
|
|
6982
|
-
else if (field.type === "datetime") defaultValues = [""];
|
|
6983
7692
|
const newFilter = createFilter(fieldKey, defaultOperator, defaultValues);
|
|
6984
7693
|
onChange([...filters, newFilter]);
|
|
6985
7694
|
setAddFilterOpen(false);
|
|
@@ -7293,115 +8002,6 @@ function HoverCardContent({ className, align = "center", sideOffset = 4, ...prop
|
|
|
7293
8002
|
});
|
|
7294
8003
|
}
|
|
7295
8004
|
//#endregion
|
|
7296
|
-
//#region src/ui/input.tsx
|
|
7297
|
-
const inputVariants = cva(`
|
|
7298
|
-
flex w-full bg-background border border-input shadow-xs shadow-black/5 transition-[color,box-shadow] text-foreground placeholder:text-muted-foreground/80
|
|
7299
|
-
focus-visible:ring-ring/30 focus-visible:border-ring focus-visible:outline-none focus-visible:ring-[3px]
|
|
7300
|
-
disabled:cursor-not-allowed disabled:opacity-60
|
|
7301
|
-
[[readonly]]:bg-muted/80 [[readonly]]:cursor-not-allowed
|
|
7302
|
-
file:h-full [[type=file]]:py-0 file:border-solid file:border-input file:bg-transparent
|
|
7303
|
-
file:font-medium file:not-italic file:text-foreground file:p-0 file:border-0 file:border-e
|
|
7304
|
-
aria-invalid:border-destructive/60 aria-invalid:ring-destructive/10 dark:aria-invalid:border-destructive dark:aria-invalid:ring-destructive/20
|
|
7305
|
-
`, {
|
|
7306
|
-
variants: { variant: {
|
|
7307
|
-
lg: "h-10 rounded-md px-4 text-sm file:me-4 file:pe-4",
|
|
7308
|
-
md: "h-9 rounded-md px-3 text-sm file:me-3 file:pe-3",
|
|
7309
|
-
sm: "h-8 rounded-md px-2.5 text-xs file:me-2.5 file:pe-2.5"
|
|
7310
|
-
} },
|
|
7311
|
-
defaultVariants: { variant: "md" }
|
|
7312
|
-
});
|
|
7313
|
-
const inputAddonVariants = cva("flex shrink-0 items-center justify-center border border-input bg-muted text-secondary-foreground shadow-[rgba(0,0,0,0.05)] shadow-xs [&_svg]:text-secondary-foreground/60", {
|
|
7314
|
-
variants: {
|
|
7315
|
-
variant: {
|
|
7316
|
-
lg: "h-10 min-w-10 rounded-md px-4 text-sm [&_svg:not([class*=size-])]:size-4.5",
|
|
7317
|
-
md: "h-9 min-w-9 rounded-md px-3 text-sm [&_svg:not([class*=size-])]:size-4.5",
|
|
7318
|
-
sm: "h-8 min-w-7 rounded-md px-2.5 text-xs [&_svg:not([class*=size-])]:size-3.5"
|
|
7319
|
-
},
|
|
7320
|
-
mode: {
|
|
7321
|
-
default: "",
|
|
7322
|
-
icon: "justify-center px-0"
|
|
7323
|
-
}
|
|
7324
|
-
},
|
|
7325
|
-
defaultVariants: {
|
|
7326
|
-
variant: "md",
|
|
7327
|
-
mode: "default"
|
|
7328
|
-
}
|
|
7329
|
-
});
|
|
7330
|
-
const inputGroupClasses = "flex items-stretch **:data-[slot=input]:grow [&_[data-slot=input-addon]:has(+[data-slot=input])]:rounded-e-none [&_[data-slot=input-addon]:has(+[data-slot=input])]:border-e-0 [&_[data-slot=input-addon]:has(+[data-slot=datefield])]:rounded-e-none [&_[data-slot=input-addon]:has(+[data-slot=datefield])]:border-e-0 [&_[data-slot=input]+[data-slot=input-addon]]:rounded-s-none [&_[data-slot=input]+[data-slot=input-addon]]:border-s-0 [&_[data-slot=input-addon]:has(+[data-slot=button])]:rounded-e-none [&_[data-slot=input]+[data-slot=button]]:rounded-s-none [&_[data-slot=button]+[data-slot=input]]:rounded-s-none [&_[data-slot=input-addon]+[data-slot=input]]:rounded-s-none [&_[data-slot=input-addon]+[data-slot=datefield]]:**:data-[slot=input]:rounded-s-none [&_[data-slot=datefield]:has(+[data-slot=input-addon])]:**:data-[slot=input]:rounded-e-none [&_[data-slot=input]:has(+[data-slot=button])]:rounded-e-none [&_[data-slot=input]:has(+[data-slot=input-addon])]:rounded-e-none **:data-[slot=datefield]:grow [&_[data-slot=datefield]+[data-slot=input-addon]]:rounded-s-none [&_[data-slot=datefield]+[data-slot=input-addon]]:border-s-0 [&_[data-slot=datefield]:has(~[data-slot=input-addon])]:**:data-[slot=input]:rounded-e-none [&_[data-slot=datefield]~[data-slot=input-addon]]:rounded-s-none";
|
|
7331
|
-
const inputWrapperVariants = cva(`
|
|
7332
|
-
flex items-center gap-1.5
|
|
7333
|
-
has-focus-visible:ring-ring/30
|
|
7334
|
-
has-focus-visible:border-ring
|
|
7335
|
-
has-focus-visible:outline-none
|
|
7336
|
-
has-focus-visible:ring-[3px]
|
|
7337
|
-
|
|
7338
|
-
**:data-[slot=datefield]:grow
|
|
7339
|
-
**:data-[slot=input]:data-focus-within:ring-transparent
|
|
7340
|
-
**:data-[slot=input]:data-focus-within:ring-0
|
|
7341
|
-
**:data-[slot=input]:data-focus-within:border-0
|
|
7342
|
-
**:data-[slot=input]:flex
|
|
7343
|
-
**:data-[slot=input]:w-full
|
|
7344
|
-
**:data-[slot=input]:outline-none
|
|
7345
|
-
**:data-[slot=input]:transition-colors
|
|
7346
|
-
**:data-[slot=input]:text-foreground
|
|
7347
|
-
**:data-[slot=input]:placeholder:text-muted-foreground
|
|
7348
|
-
**:data-[slot=input]:border-0
|
|
7349
|
-
**:data-[slot=input]:bg-transparent
|
|
7350
|
-
**:data-[slot=input]:p-0
|
|
7351
|
-
**:data-[slot=input]:shadow-none
|
|
7352
|
-
**:data-[slot=input]:focus-visible:ring-0
|
|
7353
|
-
**:data-[slot=input]:h-auto
|
|
7354
|
-
**:data-[slot=input]:disabled:cursor-not-allowed
|
|
7355
|
-
**:data-[slot=input]:disabled:opacity-50
|
|
7356
|
-
|
|
7357
|
-
[&_svg]:text-muted-foreground
|
|
7358
|
-
[&_svg]:shrink-0
|
|
7359
|
-
|
|
7360
|
-
has-aria-invalid:border-destructive/60
|
|
7361
|
-
has-aria-invalid:ring-destructive/10
|
|
7362
|
-
dark:has-aria-invalid:border-destructive
|
|
7363
|
-
dark:has-aria-invalid:ring-destructive/20
|
|
7364
|
-
`, {
|
|
7365
|
-
variants: { variant: {
|
|
7366
|
-
sm: "gap-1.25 [&_svg:not([class*=size-])]:size-3.5",
|
|
7367
|
-
md: "gap-1.5 [&_svg:not([class*=size-])]:size-4",
|
|
7368
|
-
lg: "gap-1.5 [&_svg:not([class*=size-])]:size-4"
|
|
7369
|
-
} },
|
|
7370
|
-
defaultVariants: { variant: "md" }
|
|
7371
|
-
});
|
|
7372
|
-
function Input({ className, type, variant, ...props }) {
|
|
7373
|
-
return /* @__PURE__ */ jsx("input", {
|
|
7374
|
-
"data-slot": "input",
|
|
7375
|
-
type,
|
|
7376
|
-
className: cn(inputVariants({ variant }), className),
|
|
7377
|
-
...props
|
|
7378
|
-
});
|
|
7379
|
-
}
|
|
7380
|
-
function InputAddon({ className, variant, mode, ...props }) {
|
|
7381
|
-
return /* @__PURE__ */ jsx("div", {
|
|
7382
|
-
"data-slot": "input-addon",
|
|
7383
|
-
className: cn(inputAddonVariants({
|
|
7384
|
-
variant,
|
|
7385
|
-
mode
|
|
7386
|
-
}), className),
|
|
7387
|
-
...props
|
|
7388
|
-
});
|
|
7389
|
-
}
|
|
7390
|
-
function InputGroup({ className, ...props }) {
|
|
7391
|
-
return /* @__PURE__ */ jsx("div", {
|
|
7392
|
-
"data-slot": "input-group",
|
|
7393
|
-
className: cn(inputGroupClasses, className),
|
|
7394
|
-
...props
|
|
7395
|
-
});
|
|
7396
|
-
}
|
|
7397
|
-
function InputWrapper({ className, variant, ...props }) {
|
|
7398
|
-
return /* @__PURE__ */ jsx("div", {
|
|
7399
|
-
"data-slot": "input-wrapper",
|
|
7400
|
-
className: cn(inputVariants({ variant }), inputWrapperVariants({ variant }), className),
|
|
7401
|
-
...props
|
|
7402
|
-
});
|
|
7403
|
-
}
|
|
7404
|
-
//#endregion
|
|
7405
8005
|
//#region src/ui/input-otp.tsx
|
|
7406
8006
|
function InputOTP({ className, containerClassName, ...props }) {
|
|
7407
8007
|
return /* @__PURE__ */ jsx(OTPInput, {
|
|
@@ -7877,6 +8477,39 @@ function KbdGroup({ className, ...props }) {
|
|
|
7877
8477
|
});
|
|
7878
8478
|
}
|
|
7879
8479
|
//#endregion
|
|
8480
|
+
//#region src/ui/marker.tsx
|
|
8481
|
+
const markerVariants = cva("group/marker relative flex min-h-4 w-full items-center gap-2 text-left text-muted-foreground text-sm [&_svg:not([class*='size-'])]:size-4 [a]:underline [a]:underline-offset-3 [a]:hover:text-foreground", { variants: { variant: {
|
|
8482
|
+
default: "",
|
|
8483
|
+
separator: "before:mr-1 before:h-px before:min-w-0 before:flex-1 before:bg-border after:ml-1 after:h-px after:min-w-0 after:flex-1 after:bg-border",
|
|
8484
|
+
border: "border-border border-b pb-2"
|
|
8485
|
+
} } });
|
|
8486
|
+
function Marker({ className, variant = "default", asChild = false, ...props }) {
|
|
8487
|
+
return /* @__PURE__ */ jsx(asChild ? Slot.Root : "div", {
|
|
8488
|
+
"data-slot": "marker",
|
|
8489
|
+
"data-variant": variant,
|
|
8490
|
+
className: cn(markerVariants({
|
|
8491
|
+
variant,
|
|
8492
|
+
className
|
|
8493
|
+
})),
|
|
8494
|
+
...props
|
|
8495
|
+
});
|
|
8496
|
+
}
|
|
8497
|
+
function MarkerIcon({ className, ...props }) {
|
|
8498
|
+
return /* @__PURE__ */ jsx("span", {
|
|
8499
|
+
"data-slot": "marker-icon",
|
|
8500
|
+
"aria-hidden": "true",
|
|
8501
|
+
className: cn("size-4 shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
|
|
8502
|
+
...props
|
|
8503
|
+
});
|
|
8504
|
+
}
|
|
8505
|
+
function MarkerContent({ className, ...props }) {
|
|
8506
|
+
return /* @__PURE__ */ jsx("span", {
|
|
8507
|
+
"data-slot": "marker-content",
|
|
8508
|
+
className: cn("wrap-break-word min-w-0 group-data-[variant=separator]/marker:flex-none group-data-[variant=separator]/marker:text-center *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", className),
|
|
8509
|
+
...props
|
|
8510
|
+
});
|
|
8511
|
+
}
|
|
8512
|
+
//#endregion
|
|
7880
8513
|
//#region src/ui/menubar.tsx
|
|
7881
8514
|
function MenubarMenu({ ...props }) {
|
|
7882
8515
|
return /* @__PURE__ */ jsx(Menubar$1.Menu, {
|
|
@@ -7999,6 +8632,137 @@ const MenubarShortcut = ({ className, ...props }) => {
|
|
|
7999
8632
|
});
|
|
8000
8633
|
};
|
|
8001
8634
|
//#endregion
|
|
8635
|
+
//#region src/ui/message-scroller.tsx
|
|
8636
|
+
function MessageScrollerProvider(props) {
|
|
8637
|
+
return /* @__PURE__ */ jsx(MessageScroller$1.Provider, { ...props });
|
|
8638
|
+
}
|
|
8639
|
+
function MessageScroller({ className, ...props }) {
|
|
8640
|
+
return /* @__PURE__ */ jsx(MessageScroller$1.Root, {
|
|
8641
|
+
"data-slot": "message-scroller",
|
|
8642
|
+
className: cn("group/message-scroller relative flex size-full min-h-0 flex-col overflow-hidden", className),
|
|
8643
|
+
...props
|
|
8644
|
+
});
|
|
8645
|
+
}
|
|
8646
|
+
function MessageScrollerViewport({ className, ...props }) {
|
|
8647
|
+
return /* @__PURE__ */ jsx(MessageScroller$1.Viewport, {
|
|
8648
|
+
"data-slot": "message-scroller-viewport",
|
|
8649
|
+
className: cn("scroll-fade-b scrollbar-thin scrollbar-gutter-stable data-autoscrolling:scrollbar-thumb-transparent data-autoscrolling:scrollbar-track-transparent size-full min-h-0 min-w-0 overflow-y-auto overscroll-contain contain-content", className),
|
|
8650
|
+
...props
|
|
8651
|
+
});
|
|
8652
|
+
}
|
|
8653
|
+
function MessageScrollerContent({ className, ...props }) {
|
|
8654
|
+
return /* @__PURE__ */ jsx(MessageScroller$1.Content, {
|
|
8655
|
+
"data-slot": "message-scroller-content",
|
|
8656
|
+
className: cn("flex h-max min-h-full flex-col gap-8", className),
|
|
8657
|
+
...props
|
|
8658
|
+
});
|
|
8659
|
+
}
|
|
8660
|
+
function MessageScrollerItem({ className, scrollAnchor = false, ...props }) {
|
|
8661
|
+
return /* @__PURE__ */ jsx(MessageScroller$1.Item, {
|
|
8662
|
+
"data-slot": "message-scroller-item",
|
|
8663
|
+
scrollAnchor,
|
|
8664
|
+
className: cn("min-w-0 shrink-0 [contain-intrinsic-size:auto_10rem] [content-visibility:auto]", className),
|
|
8665
|
+
...props
|
|
8666
|
+
});
|
|
8667
|
+
}
|
|
8668
|
+
function MessageScrollerButton({ direction = "end", className, children, render, variant = "secondary", size = "icon", ...props }) {
|
|
8669
|
+
return /* @__PURE__ */ jsx(MessageScroller$1.Button, {
|
|
8670
|
+
"data-slot": "message-scroller-button",
|
|
8671
|
+
"data-direction": direction,
|
|
8672
|
+
"data-variant": variant,
|
|
8673
|
+
"data-size": size,
|
|
8674
|
+
direction,
|
|
8675
|
+
className: cn("absolute inset-s-1/2 -translate-x-1/2 border-border bg-background text-foreground transition-[translate,scale,opacity] duration-200 hover:bg-muted hover:text-foreground data-[direction=end]:data-[active=false]:translate-y-full data-[direction=start]:data-[active=false]:-translate-y-full data-[active=false]:pointer-events-none data-[direction=start]:top-4 data-[direction=end]:bottom-4 data-[active=true]:translate-y-0 data-[active=false]:scale-95 data-[active=true]:scale-100 data-[active=false]:opacity-0 data-[active=true]:opacity-100 data-[active=false]:duration-400 data-[active=false]:ease-[cubic-bezier(0.7,0,0.84,0)] data-[active=true]:ease-[cubic-bezier(0.23,1,0.32,1)] rtl:translate-x-1/2 data-[direction=start]:[&_svg]:rotate-180", className),
|
|
8676
|
+
render: render ?? /* @__PURE__ */ jsx(Button, {
|
|
8677
|
+
variant,
|
|
8678
|
+
size
|
|
8679
|
+
}),
|
|
8680
|
+
...props,
|
|
8681
|
+
children: children ?? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(ArrowDownIcon, {}), /* @__PURE__ */ jsx("span", {
|
|
8682
|
+
className: "sr-only",
|
|
8683
|
+
children: direction === "end" ? "Scroll to end" : "Scroll to start"
|
|
8684
|
+
})] })
|
|
8685
|
+
});
|
|
8686
|
+
}
|
|
8687
|
+
//#endregion
|
|
8688
|
+
//#region src/ui/message.tsx
|
|
8689
|
+
function MessageGroup({ className, ...props }) {
|
|
8690
|
+
return /* @__PURE__ */ jsx("div", {
|
|
8691
|
+
"data-slot": "message-group",
|
|
8692
|
+
className: cn("flex min-w-0 flex-col gap-2", className),
|
|
8693
|
+
...props
|
|
8694
|
+
});
|
|
8695
|
+
}
|
|
8696
|
+
function Message({ className, align = "start", ...props }) {
|
|
8697
|
+
return /* @__PURE__ */ jsx("div", {
|
|
8698
|
+
"data-slot": "message",
|
|
8699
|
+
"data-align": align,
|
|
8700
|
+
className: cn("group/message relative flex w-full min-w-0 gap-2 text-sm data-[align=end]:flex-row-reverse", className),
|
|
8701
|
+
...props
|
|
8702
|
+
});
|
|
8703
|
+
}
|
|
8704
|
+
function MessageAvatar({ className, ...props }) {
|
|
8705
|
+
return /* @__PURE__ */ jsx("div", {
|
|
8706
|
+
"data-slot": "message-avatar",
|
|
8707
|
+
className: cn("flex w-fit min-w-8 shrink-0 items-center justify-center self-end overflow-hidden rounded-full bg-muted group-has-data-[slot=message-footer]/message:-translate-y-8", className),
|
|
8708
|
+
...props
|
|
8709
|
+
});
|
|
8710
|
+
}
|
|
8711
|
+
function MessageContent({ className, ...props }) {
|
|
8712
|
+
return /* @__PURE__ */ jsx("div", {
|
|
8713
|
+
"data-slot": "message-content",
|
|
8714
|
+
className: cn("wrap-break-word flex w-full min-w-0 flex-col gap-2.5 group-data-[align=end]/message:*:data-slot:self-end", className),
|
|
8715
|
+
...props
|
|
8716
|
+
});
|
|
8717
|
+
}
|
|
8718
|
+
function MessageHeader({ className, ...props }) {
|
|
8719
|
+
return /* @__PURE__ */ jsx("div", {
|
|
8720
|
+
"data-slot": "message-header",
|
|
8721
|
+
className: cn("flex min-w-0 max-w-full items-center px-3 font-medium text-muted-foreground text-xs group-has-data-[variant=ghost]/message:px-0", className),
|
|
8722
|
+
...props
|
|
8723
|
+
});
|
|
8724
|
+
}
|
|
8725
|
+
function MessageFooter({ className, ...props }) {
|
|
8726
|
+
return /* @__PURE__ */ jsx("div", {
|
|
8727
|
+
"data-slot": "message-footer",
|
|
8728
|
+
className: cn("flex min-w-0 max-w-full items-center px-3 font-medium text-muted-foreground text-xs group-has-data-[variant=ghost]/message:px-0 group-data-[align=end]/message:justify-end", className),
|
|
8729
|
+
...props
|
|
8730
|
+
});
|
|
8731
|
+
}
|
|
8732
|
+
//#endregion
|
|
8733
|
+
//#region src/ui/native-select.tsx
|
|
8734
|
+
function NativeSelect({ className, size = "default", ...props }) {
|
|
8735
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
8736
|
+
className: cn("group/native-select relative w-fit has-[select:disabled]:opacity-50", className),
|
|
8737
|
+
"data-slot": "native-select-wrapper",
|
|
8738
|
+
"data-size": size,
|
|
8739
|
+
children: [/* @__PURE__ */ jsx("select", {
|
|
8740
|
+
"data-slot": "native-select",
|
|
8741
|
+
"data-size": size,
|
|
8742
|
+
className: "h-9 w-full min-w-0 select-none appearance-none rounded-md border border-input bg-transparent py-1 pr-8 pl-2.5 text-sm shadow-xs outline-none transition-[color,box-shadow] selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=sm]:h-8 dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 dark:hover:bg-input/50",
|
|
8743
|
+
...props
|
|
8744
|
+
}), /* @__PURE__ */ jsx(ChevronDownIcon, {
|
|
8745
|
+
className: "pointer-events-none absolute top-1/2 right-2.5 size-4 -translate-y-1/2 select-none text-muted-foreground",
|
|
8746
|
+
"aria-hidden": "true",
|
|
8747
|
+
"data-slot": "native-select-icon"
|
|
8748
|
+
})]
|
|
8749
|
+
});
|
|
8750
|
+
}
|
|
8751
|
+
function NativeSelectOption({ className, ...props }) {
|
|
8752
|
+
return /* @__PURE__ */ jsx("option", {
|
|
8753
|
+
"data-slot": "native-select-option",
|
|
8754
|
+
className: cn("bg-[Canvas] text-[CanvasText]", className),
|
|
8755
|
+
...props
|
|
8756
|
+
});
|
|
8757
|
+
}
|
|
8758
|
+
function NativeSelectOptGroup({ className, ...props }) {
|
|
8759
|
+
return /* @__PURE__ */ jsx("optgroup", {
|
|
8760
|
+
"data-slot": "native-select-optgroup",
|
|
8761
|
+
className: cn("bg-[Canvas] text-[CanvasText]", className),
|
|
8762
|
+
...props
|
|
8763
|
+
});
|
|
8764
|
+
}
|
|
8765
|
+
//#endregion
|
|
8002
8766
|
//#region src/ui/navigation-menu.tsx
|
|
8003
8767
|
function NavigationMenu({ className, children, viewport = true, ...props }) {
|
|
8004
8768
|
return /* @__PURE__ */ jsxs(NavigationMenu$1.Root, {
|
|
@@ -8023,11 +8787,11 @@ function NavigationMenuItem({ className, ...props }) {
|
|
|
8023
8787
|
...props
|
|
8024
8788
|
});
|
|
8025
8789
|
}
|
|
8026
|
-
const navigationMenuTriggerStyle =
|
|
8790
|
+
const navigationMenuTriggerStyle = "group inline-flex h-9 w-max cursor-pointer items-center justify-center rounded-md bg-background px-4 py-2 font-medium text-sm outline-ring/50 ring-ring/10 transition-[color,box-shadow] hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:outline-1 focus-visible:ring-4 disabled:pointer-events-none disabled:opacity-50 data-[active=true]:bg-accent/50 data-[state=open]:bg-accent/50 data-[active=true]:text-accent-foreground dark:outline-ring/40 dark:ring-ring/20";
|
|
8027
8791
|
function NavigationMenuTrigger({ className, children, ...props }) {
|
|
8028
8792
|
return /* @__PURE__ */ jsxs(NavigationMenu$1.Trigger, {
|
|
8029
8793
|
"data-slot": "navigation-menu-trigger",
|
|
8030
|
-
className: cn(navigationMenuTriggerStyle
|
|
8794
|
+
className: cn(navigationMenuTriggerStyle, "group", className),
|
|
8031
8795
|
...props,
|
|
8032
8796
|
children: [
|
|
8033
8797
|
children,
|
|
@@ -8089,7 +8853,7 @@ function PaginationContent({ className, ...props }) {
|
|
|
8089
8853
|
function PaginationItem({ className, ...props }) {
|
|
8090
8854
|
return /* @__PURE__ */ jsx("li", {
|
|
8091
8855
|
"data-slot": "pagination-item",
|
|
8092
|
-
className: cn(
|
|
8856
|
+
className: cn(className),
|
|
8093
8857
|
...props
|
|
8094
8858
|
});
|
|
8095
8859
|
}
|
|
@@ -8304,8 +9068,24 @@ const valueVariants = cva("w-5 text-muted-foreground", {
|
|
|
8304
9068
|
function Rating({ rating, maxRating = 5, size, className, starClassName, showValue = false, editable = false, onRatingChange, ...props }) {
|
|
8305
9069
|
const [hoveredRating, setHoveredRating] = React$1.useState(null);
|
|
8306
9070
|
const displayRating = editable && hoveredRating !== null ? hoveredRating : rating;
|
|
8307
|
-
const
|
|
8308
|
-
if (editable && onRatingChange) onRatingChange(
|
|
9071
|
+
const handleRatingChange = (value) => {
|
|
9072
|
+
if (editable && onRatingChange) onRatingChange(value);
|
|
9073
|
+
};
|
|
9074
|
+
const handleKeyDown = (e) => {
|
|
9075
|
+
if (!editable) return;
|
|
9076
|
+
if (e.key === "ArrowRight" || e.key === "ArrowUp") {
|
|
9077
|
+
e.preventDefault();
|
|
9078
|
+
handleRatingChange(Math.min(maxRating, Math.round(displayRating) + 1));
|
|
9079
|
+
} else if (e.key === "ArrowLeft" || e.key === "ArrowDown") {
|
|
9080
|
+
e.preventDefault();
|
|
9081
|
+
handleRatingChange(Math.max(1, Math.round(displayRating) - 1));
|
|
9082
|
+
} else if (e.key === "Home") {
|
|
9083
|
+
e.preventDefault();
|
|
9084
|
+
handleRatingChange(1);
|
|
9085
|
+
} else if (e.key === "End") {
|
|
9086
|
+
e.preventDefault();
|
|
9087
|
+
handleRatingChange(maxRating);
|
|
9088
|
+
}
|
|
8309
9089
|
};
|
|
8310
9090
|
const handleStarMouseEnter = (starRating) => {
|
|
8311
9091
|
if (editable) setHoveredRating(starRating);
|
|
@@ -8321,11 +9101,12 @@ function Rating({ rating, maxRating = 5, size, className, starClassName, showVal
|
|
|
8321
9101
|
stars.push(/* @__PURE__ */ jsxs("button", {
|
|
8322
9102
|
type: "button",
|
|
8323
9103
|
className: cn("relative border-0 bg-transparent p-0", editable && "cursor-pointer"),
|
|
8324
|
-
onClick: () =>
|
|
9104
|
+
onClick: () => handleRatingChange(i),
|
|
8325
9105
|
onMouseEnter: () => handleStarMouseEnter(i),
|
|
8326
9106
|
onMouseLeave: handleStarMouseLeave,
|
|
8327
|
-
"aria-label":
|
|
8328
|
-
|
|
9107
|
+
"aria-label": `${i} star${i > 1 ? "s" : ""}`,
|
|
9108
|
+
disabled: !editable,
|
|
9109
|
+
tabIndex: -1,
|
|
8329
9110
|
children: [/* @__PURE__ */ jsx(StarIcon, {
|
|
8330
9111
|
"data-slot": "rating-star-empty",
|
|
8331
9112
|
className: cn(starVariants({ size }), "text-muted-foreground/30")
|
|
@@ -8344,6 +9125,13 @@ function Rating({ rating, maxRating = 5, size, className, starClassName, showVal
|
|
|
8344
9125
|
return /* @__PURE__ */ jsxs("div", {
|
|
8345
9126
|
"data-slot": "rating",
|
|
8346
9127
|
className: cn(ratingVariants({ size }), className),
|
|
9128
|
+
role: editable ? "slider" : void 0,
|
|
9129
|
+
tabIndex: editable ? 0 : void 0,
|
|
9130
|
+
"aria-valuenow": editable ? displayRating : void 0,
|
|
9131
|
+
"aria-valuemin": editable ? 1 : void 0,
|
|
9132
|
+
"aria-valuemax": editable ? maxRating : void 0,
|
|
9133
|
+
"aria-label": editable ? "Rating" : void 0,
|
|
9134
|
+
onKeyDown: handleKeyDown,
|
|
8347
9135
|
...props,
|
|
8348
9136
|
children: [/* @__PURE__ */ jsx("div", {
|
|
8349
9137
|
className: "flex items-center",
|
|
@@ -9691,29 +10479,6 @@ function TabsContent({ className, ...props }) {
|
|
|
9691
10479
|
});
|
|
9692
10480
|
}
|
|
9693
10481
|
//#endregion
|
|
9694
|
-
//#region src/ui/textarea.tsx
|
|
9695
|
-
const textareaVariants = cva(`
|
|
9696
|
-
w-full bg-background border border-input shadow-xs shadow-black/5 transition-[color,box-shadow]
|
|
9697
|
-
text-foreground placeholder:text-muted-foreground/80 focus-visible:border-ring focus-visible:outline-none focus-visible:ring-[3px]
|
|
9698
|
-
focus-visible:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50 read-only:opacity-70
|
|
9699
|
-
aria-invalid:border-destructive/60 aria-invalid:ring-destructive/10 dark:aria-invalid:border-destructive dark:aria-invalid:ring-destructive/20
|
|
9700
|
-
in-data-[invalid=true]:border-destructive/60 in-data-[invalid=true]:ring-destructive/10 dark:in-data-[invalid=true]:border-destructive dark:in-data-[invalid=true]:ring-destructive/20
|
|
9701
|
-
`, {
|
|
9702
|
-
variants: { variant: {
|
|
9703
|
-
sm: "rounded-md px-2.5 py-2.5 text-xs",
|
|
9704
|
-
md: "rounded-md px-3 py-3 text-sm",
|
|
9705
|
-
lg: "rounded-md px-4 py-4 text-sm"
|
|
9706
|
-
} },
|
|
9707
|
-
defaultVariants: { variant: "md" }
|
|
9708
|
-
});
|
|
9709
|
-
function Textarea({ className, variant, ...props }) {
|
|
9710
|
-
return /* @__PURE__ */ jsx("textarea", {
|
|
9711
|
-
"data-slot": "textarea",
|
|
9712
|
-
className: cn(textareaVariants({ variant }), className),
|
|
9713
|
-
...props
|
|
9714
|
-
});
|
|
9715
|
-
}
|
|
9716
|
-
//#endregion
|
|
9717
10482
|
//#region src/ui/toggle.tsx
|
|
9718
10483
|
const toggleVariants = cva("inline-flex shrink-0 cursor-pointer items-center justify-center rounded-md font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0", {
|
|
9719
10484
|
variants: {
|
|
@@ -9826,7 +10591,7 @@ function TreeItem({ item, className, asChild, children, ...props }) {
|
|
|
9826
10591
|
...propStyle,
|
|
9827
10592
|
"--tree-padding": `${item.getItemMeta().level * indent}px`
|
|
9828
10593
|
};
|
|
9829
|
-
const Comp = asChild ? Slot.
|
|
10594
|
+
const Comp = asChild ? Slot.Root : "button";
|
|
9830
10595
|
return /* @__PURE__ */ jsx(TreeContext.Provider, {
|
|
9831
10596
|
value: {
|
|
9832
10597
|
...parentContext,
|
|
@@ -9854,7 +10619,7 @@ function TreeItemLabel({ item: propItem, children, className, ...props }) {
|
|
|
9854
10619
|
if (!item) return null;
|
|
9855
10620
|
return /* @__PURE__ */ jsxs("span", {
|
|
9856
10621
|
"data-slot": "tree-item-label",
|
|
9857
|
-
className: cn("flex items-center gap-1 rounded-sm bg-background in-data-[drag-target=true]:bg-accent in-data-[search-match=true]:bg-
|
|
10622
|
+
className: cn("flex items-center gap-1 rounded-sm bg-background in-data-[drag-target=true]:bg-accent in-data-[search-match=true]:bg-primary/10! in-data-[selected=true]:bg-accent px-2 py-1.5 not-in-data-[folder=true]:ps-7 in-data-[selected=true]:text-accent-foreground text-sm in-focus-visible:ring-[3px] in-focus-visible:ring-ring/50 transition-colors hover:bg-accent [&_svg]:pointer-events-none [&_svg]:shrink-0", className),
|
|
9858
10623
|
...props,
|
|
9859
10624
|
children: [item.isFolder() && (toggleIconType === "plus-minus" ? item.isExpanded() ? /* @__PURE__ */ jsx(SquareMinusIcon, {
|
|
9860
10625
|
className: "size-3.5 text-muted-foreground",
|
|
@@ -9877,6 +10642,6 @@ function TreeDragLine({ className, ...props }) {
|
|
|
9877
10642
|
});
|
|
9878
10643
|
}
|
|
9879
10644
|
//#endregion
|
|
9880
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionMenu, AccordionMenuGroup, AccordionMenuIndicator, AccordionMenuItem, AccordionMenuLabel, AccordionMenuSeparator, AccordionMenuSub, AccordionMenuSubContent, AccordionMenuSubTrigger, AccordionTrigger, Alert, AlertContent, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertIcon, AlertTitle, AlertToolbar, AspectRatio, Avatar, AvatarFallback, AvatarGroup, AvatarGroupItem, AvatarGroupTooltip, AvatarImage, AvatarIndicator, AvatarStatus, Badge, BadgeButton, BadgeDot, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonArrow, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardHeading, CardTable, CardTitle, CardToolbar, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Code, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandCheck, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CountingNumber, DEFAULT_I18N, DEFAULT_OPERATORS, DataGrid, DataGridColumnFilter, DataGridColumnHeader, DataGridColumnVisibility, DataGridContainer, DataGridPagination, DataGridProvider, DataGridTable, DataGridTableBase, DataGridTableBody, DataGridTableBodyRow, DataGridTableBodyRowCell, DataGridTableBodyRowExpanded, DataGridTableBodyRowSkeleton, DataGridTableBodyRowSkeletonCell, DataGridTableDnd, DataGridTableDndRowHandle, DataGridTableDndRows, DataGridTableEmpty, DataGridTableHead, DataGridTableHeadRow, DataGridTableHeadRowCell, DataGridTableHeadRowCellResize, DataGridTableRowSelect, DataGridTableRowSelectAll, DataGridTableRowSpacer, DateField, DateInput, DateSegment, DescriptionDetails, DescriptionList, DescriptionTerm, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Filters, FiltersContent, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, GithubButton, GradientBackground, GridBackground, Heading, HoverBackground, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputAddon, InputGroup, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, InputWrapper, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kanban, KanbanBoard, KanbanColumn, KanbanColumnContent, KanbanColumnHandle, KanbanItem, KanbanItemHandle, KanbanOverlay, Kbd, KbdGroup, Label, Marquee, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, ProgressCircle, ProgressRadial, RadioGroup, RadioGroupItem, Rating, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Scrollspy, Select, SelectContent, SelectGroup, SelectIndicator, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, ShimmeringText, ShowMore, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, SliderThumb, SlidingNumber, Sortable, SortableItem, SortableItemHandle, Spinner, SpinnerDefault, Stepper, StepperContent, StepperDescription, StepperIndicator, StepperItem, StepperNav, StepperPanel, StepperSeparator, StepperTitle, StepperTrigger, SvgText, Switch, SwitchIndicator, SwitchWrapper, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TextReveal, Textarea, TimeField, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Tree, TreeDragLine, TreeItem, TreeItemLabel, TypingText, VideoText, WordRotate, avatarStatusVariants, badgeVariants, buttonGroupVariants, buttonVariants, codeVariants, createFilter, createFilterGroup, dateInputStyles, githubButtonVariants, inputAddonVariants, inputVariants, navigationMenuTriggerStyle, textareaVariants, toggleVariants, useDataGrid, useFormField, useSidebar, useStepItem, useStepper };
|
|
10645
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionMenu, AccordionMenuGroup, AccordionMenuIndicator, AccordionMenuItem, AccordionMenuLabel, AccordionMenuSeparator, AccordionMenuSub, AccordionMenuSubContent, AccordionMenuSubTrigger, AccordionTrigger, Alert, AlertContent, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertIcon, AlertTitle, AlertToolbar, AspectRatio, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger, Avatar, AvatarFallback, AvatarGroup, AvatarGroupItem, AvatarGroupTooltip, AvatarImage, AvatarIndicator, AvatarStatus, Badge, BadgeButton, BadgeDot, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Bubble, BubbleContent, BubbleGroup, BubbleReactions, Button, ButtonArrow, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardHeading, CardTable, CardTitle, CardToolbar, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Code, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandCheck, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CountingNumber, DEFAULT_I18N, DEFAULT_OPERATORS, DataGrid, DataGridColumnFilter, DataGridColumnHeader, DataGridColumnVisibility, DataGridContainer, DataGridPagination, DataGridProvider, DataGridTable, DataGridTableBase, DataGridTableBody, DataGridTableBodyRow, DataGridTableBodyRowCell, DataGridTableBodyRowExpanded, DataGridTableBodyRowSkeleton, DataGridTableBodyRowSkeletonCell, DataGridTableDnd, DataGridTableDndRowHandle, DataGridTableDndRows, DataGridTableEmpty, DataGridTableHead, DataGridTableHeadRow, DataGridTableHeadRowCell, DataGridTableHeadRowCellResize, DataGridTableRowSelect, DataGridTableRowSelectAll, DataGridTableRowSpacer, DateField, DateInput, DateSegment, DescriptionDetails, DescriptionList, DescriptionTerm, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DirectionProvider, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, ErrorBoundary, DefaultFallback as ErrorFallback, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Filters, FiltersContent, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, GithubButton, GradientBackground, GridBackground, Heading, HoverBackground, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputAddon, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroup$1 as InputGroupNew, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, InputWrapper, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kanban, KanbanBoard, KanbanColumn, KanbanColumnContent, KanbanColumnHandle, KanbanItem, KanbanItemHandle, KanbanOverlay, Kbd, KbdGroup, Label, Marker, MarkerContent, MarkerIcon, Marquee, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, NativeSelect, NativeSelectOptGroup, NativeSelectOption, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, ProgressCircle, ProgressRadial, RadioGroup, RadioGroupItem, Rating, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Scrollspy, Select, SelectContent, SelectGroup, SelectIndicator, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, ShimmeringText, ShowMore, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, SliderThumb, SlidingNumber, Sortable, SortableItem, SortableItemHandle, Spinner, SpinnerDefault, Stepper, StepperContent, StepperDescription, StepperIndicator, StepperItem, StepperNav, StepperPanel, StepperSeparator, StepperTitle, StepperTrigger, SvgText, Switch, SwitchIndicator, SwitchWrapper, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TextReveal, Textarea, TimeField, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Tree, TreeDragLine, TreeItem, TreeItemLabel, TypingText, VideoText, WordRotate, avatarStatusVariants, badgeVariants, buttonGroupVariants, buttonVariants, codeVariants, createFilter, createFilterGroup, dateInputStyles, githubButtonVariants, inputAddonVariants, inputVariants, markerVariants, navigationMenuTriggerStyle, textareaVariants, toggleVariants, useComboboxAnchor, useDataGrid, useDirection, useFormField, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility, useSidebar, useStepItem, useStepper };
|
|
9881
10646
|
|
|
9882
10647
|
//# sourceMappingURL=index.js.map
|