@webstacks/ui 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +589 -436
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +73 -9
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +58 -26
- package/dist/index.d.ts +58 -26
- package/dist/index.js +588 -437
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/dist/index.cjs
CHANGED
|
@@ -208,6 +208,7 @@ __export(index_exports, {
|
|
|
208
208
|
ResizablePanelGroup: () => ResizablePanelGroup,
|
|
209
209
|
ScrollArea: () => ScrollArea,
|
|
210
210
|
ScrollBar: () => ScrollBar,
|
|
211
|
+
Section: () => Section,
|
|
211
212
|
Select: () => Select,
|
|
212
213
|
SelectContent: () => SelectContent,
|
|
213
214
|
SelectGroup: () => SelectGroup,
|
|
@@ -294,6 +295,7 @@ __export(index_exports, {
|
|
|
294
295
|
gridVariants: () => gridVariants,
|
|
295
296
|
headingVariants: () => headingVariants,
|
|
296
297
|
navigationMenuTriggerStyle: () => navigationMenuTriggerStyle,
|
|
298
|
+
sectionVariants: () => sectionVariants,
|
|
297
299
|
stackVariants: () => stackVariants,
|
|
298
300
|
textVariants: () => textVariants,
|
|
299
301
|
toast: () => toast,
|
|
@@ -1501,11 +1503,160 @@ var Text = React13.forwardRef(
|
|
|
1501
1503
|
);
|
|
1502
1504
|
Text.displayName = "Text";
|
|
1503
1505
|
|
|
1504
|
-
// src/components/ui/
|
|
1506
|
+
// src/components/ui/section.tsx
|
|
1505
1507
|
var React14 = __toESM(require("react"), 1);
|
|
1506
1508
|
var import_class_variance_authority8 = require("class-variance-authority");
|
|
1507
1509
|
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
1508
|
-
var
|
|
1510
|
+
var paddingStartVariants = {
|
|
1511
|
+
none: "pt-0",
|
|
1512
|
+
condensed: "pt-6 md:pt-8",
|
|
1513
|
+
normal: "pt-12 md:pt-16 lg:pt-20",
|
|
1514
|
+
spacious: "pt-16 md:pt-24 lg:pt-32"
|
|
1515
|
+
};
|
|
1516
|
+
var paddingEndVariants = {
|
|
1517
|
+
none: "pb-0",
|
|
1518
|
+
condensed: "pb-6 md:pb-8",
|
|
1519
|
+
normal: "pb-12 md:pb-16 lg:pb-20",
|
|
1520
|
+
spacious: "pb-16 md:pb-24 lg:pb-32"
|
|
1521
|
+
};
|
|
1522
|
+
var backgroundColorVariants = {
|
|
1523
|
+
default: "bg-background",
|
|
1524
|
+
subtle: "bg-muted",
|
|
1525
|
+
inset: "bg-accent"
|
|
1526
|
+
};
|
|
1527
|
+
var sectionVariants = (0, import_class_variance_authority8.cva)("relative w-full", {
|
|
1528
|
+
variants: {
|
|
1529
|
+
rounded: {
|
|
1530
|
+
true: "rounded-xl overflow-hidden",
|
|
1531
|
+
false: ""
|
|
1532
|
+
}
|
|
1533
|
+
},
|
|
1534
|
+
defaultVariants: {
|
|
1535
|
+
rounded: false
|
|
1536
|
+
}
|
|
1537
|
+
});
|
|
1538
|
+
var responsivePrefixes4 = { narrow: "", regular: "md:", wide: "lg:" };
|
|
1539
|
+
function resolveResponsivePadding(prop, map, fallback) {
|
|
1540
|
+
if (!prop) return map[fallback] || "";
|
|
1541
|
+
if (typeof prop === "string") return map[prop] || "";
|
|
1542
|
+
const classes = [];
|
|
1543
|
+
for (const [bp, prefix] of Object.entries(responsivePrefixes4)) {
|
|
1544
|
+
const val = prop[bp];
|
|
1545
|
+
if (val && map[val]) {
|
|
1546
|
+
const base = map[val];
|
|
1547
|
+
if (prefix === "") {
|
|
1548
|
+
classes.push(base);
|
|
1549
|
+
} else {
|
|
1550
|
+
const parts = base.split(" ");
|
|
1551
|
+
for (const part of parts) {
|
|
1552
|
+
if (prefix === "md:" && part.startsWith("md:")) {
|
|
1553
|
+
classes.push(part);
|
|
1554
|
+
} else if (prefix === "lg:" && part.startsWith("lg:")) {
|
|
1555
|
+
classes.push(part);
|
|
1556
|
+
} else if (prefix === "" && !part.includes(":")) {
|
|
1557
|
+
classes.push(part);
|
|
1558
|
+
}
|
|
1559
|
+
}
|
|
1560
|
+
}
|
|
1561
|
+
}
|
|
1562
|
+
}
|
|
1563
|
+
return classes.join(" ");
|
|
1564
|
+
}
|
|
1565
|
+
var Section = React14.forwardRef(
|
|
1566
|
+
({
|
|
1567
|
+
as: Tag = "section",
|
|
1568
|
+
className,
|
|
1569
|
+
children,
|
|
1570
|
+
paddingBlockStart = "normal",
|
|
1571
|
+
paddingBlockEnd = "normal",
|
|
1572
|
+
backgroundColor,
|
|
1573
|
+
backgroundImageSrc,
|
|
1574
|
+
backgroundImageSize = "cover",
|
|
1575
|
+
backgroundImagePosition = "50%",
|
|
1576
|
+
rounded,
|
|
1577
|
+
fullWidth = false,
|
|
1578
|
+
sectionTitle,
|
|
1579
|
+
containerClassName,
|
|
1580
|
+
style,
|
|
1581
|
+
...props
|
|
1582
|
+
}, ref) => {
|
|
1583
|
+
const paddingStartClasses = resolveResponsivePadding(
|
|
1584
|
+
paddingBlockStart,
|
|
1585
|
+
paddingStartVariants,
|
|
1586
|
+
"normal"
|
|
1587
|
+
);
|
|
1588
|
+
const paddingEndClasses = resolveResponsivePadding(
|
|
1589
|
+
paddingBlockEnd,
|
|
1590
|
+
paddingEndVariants,
|
|
1591
|
+
"normal"
|
|
1592
|
+
);
|
|
1593
|
+
let bgColorClass = "";
|
|
1594
|
+
let bgColorStyle;
|
|
1595
|
+
if (backgroundColor) {
|
|
1596
|
+
if (typeof backgroundColor === "string") {
|
|
1597
|
+
const mapped = backgroundColorVariants[backgroundColor];
|
|
1598
|
+
if (mapped) {
|
|
1599
|
+
bgColorClass = mapped;
|
|
1600
|
+
} else {
|
|
1601
|
+
bgColorStyle = { backgroundColor };
|
|
1602
|
+
}
|
|
1603
|
+
}
|
|
1604
|
+
}
|
|
1605
|
+
let bgImageStyle;
|
|
1606
|
+
if (backgroundImageSrc) {
|
|
1607
|
+
const srcs = Array.isArray(backgroundImageSrc) ? backgroundImageSrc : [backgroundImageSrc];
|
|
1608
|
+
const bgImages = srcs.map((src) => `url(${src})`).join(", ");
|
|
1609
|
+
const bgSizes = Array.isArray(backgroundImageSrc) ? srcs.map(() => backgroundImageSize).join(", ") : backgroundImageSize;
|
|
1610
|
+
const bgPositions = Array.isArray(backgroundImageSrc) ? srcs.map(() => backgroundImagePosition).join(", ") : backgroundImagePosition;
|
|
1611
|
+
bgImageStyle = {
|
|
1612
|
+
backgroundImage: bgImages,
|
|
1613
|
+
backgroundSize: bgSizes,
|
|
1614
|
+
backgroundPosition: bgPositions,
|
|
1615
|
+
backgroundRepeat: "no-repeat"
|
|
1616
|
+
};
|
|
1617
|
+
}
|
|
1618
|
+
const combinedStyle = {
|
|
1619
|
+
...bgColorStyle,
|
|
1620
|
+
...bgImageStyle,
|
|
1621
|
+
...style
|
|
1622
|
+
};
|
|
1623
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1624
|
+
Tag,
|
|
1625
|
+
{
|
|
1626
|
+
ref,
|
|
1627
|
+
className: cn(
|
|
1628
|
+
sectionVariants({ rounded }),
|
|
1629
|
+
paddingStartClasses,
|
|
1630
|
+
paddingEndClasses,
|
|
1631
|
+
bgColorClass,
|
|
1632
|
+
className
|
|
1633
|
+
),
|
|
1634
|
+
style: Object.keys(combinedStyle).length > 0 ? combinedStyle : void 0,
|
|
1635
|
+
...props,
|
|
1636
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
1637
|
+
"div",
|
|
1638
|
+
{
|
|
1639
|
+
className: cn(
|
|
1640
|
+
fullWidth ? "w-full" : "max-w-7xl mx-auto px-6",
|
|
1641
|
+
containerClassName
|
|
1642
|
+
),
|
|
1643
|
+
children: [
|
|
1644
|
+
sectionTitle && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("h2", { className: "text-2xl text-foreground border-b border-border pb-2 mb-4", children: sectionTitle }),
|
|
1645
|
+
children
|
|
1646
|
+
]
|
|
1647
|
+
}
|
|
1648
|
+
)
|
|
1649
|
+
}
|
|
1650
|
+
);
|
|
1651
|
+
}
|
|
1652
|
+
);
|
|
1653
|
+
Section.displayName = "Section";
|
|
1654
|
+
|
|
1655
|
+
// src/components/ui/stack.tsx
|
|
1656
|
+
var React15 = __toESM(require("react"), 1);
|
|
1657
|
+
var import_class_variance_authority9 = require("class-variance-authority");
|
|
1658
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
1659
|
+
var stackVariants = (0, import_class_variance_authority9.cva)("flex", {
|
|
1509
1660
|
variants: {
|
|
1510
1661
|
direction: {
|
|
1511
1662
|
horizontal: "flex-row",
|
|
@@ -1591,7 +1742,7 @@ function resolveResponsive3(value, map) {
|
|
|
1591
1742
|
}
|
|
1592
1743
|
return classes;
|
|
1593
1744
|
}
|
|
1594
|
-
var Stack =
|
|
1745
|
+
var Stack = React15.forwardRef(
|
|
1595
1746
|
({
|
|
1596
1747
|
as: Comp = "div",
|
|
1597
1748
|
className,
|
|
@@ -1613,7 +1764,7 @@ var Stack = React14.forwardRef(
|
|
|
1613
1764
|
const isResponsiveGap = typeof gap === "object";
|
|
1614
1765
|
const isResponsiveAlign = typeof align === "object";
|
|
1615
1766
|
const isResponsiveJustify = typeof justify === "object";
|
|
1616
|
-
return /* @__PURE__ */ (0,
|
|
1767
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1617
1768
|
Comp,
|
|
1618
1769
|
{
|
|
1619
1770
|
ref,
|
|
@@ -1640,10 +1791,10 @@ var Stack = React14.forwardRef(
|
|
|
1640
1791
|
Stack.displayName = "Stack";
|
|
1641
1792
|
|
|
1642
1793
|
// src/components/ui/calendar.tsx
|
|
1643
|
-
var
|
|
1794
|
+
var React16 = __toESM(require("react"), 1);
|
|
1644
1795
|
var import_lucide_react3 = require("lucide-react");
|
|
1645
1796
|
var import_react_day_picker = require("react-day-picker");
|
|
1646
|
-
var
|
|
1797
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
1647
1798
|
function Calendar({
|
|
1648
1799
|
className,
|
|
1649
1800
|
classNames,
|
|
@@ -1655,7 +1806,7 @@ function Calendar({
|
|
|
1655
1806
|
...props
|
|
1656
1807
|
}) {
|
|
1657
1808
|
const defaultClassNames = (0, import_react_day_picker.getDefaultClassNames)();
|
|
1658
|
-
return /* @__PURE__ */ (0,
|
|
1809
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1659
1810
|
import_react_day_picker.DayPicker,
|
|
1660
1811
|
{
|
|
1661
1812
|
showOutsideDays,
|
|
@@ -1754,7 +1905,7 @@ function Calendar({
|
|
|
1754
1905
|
},
|
|
1755
1906
|
components: {
|
|
1756
1907
|
Root: ({ className: className2, rootRef, ...props2 }) => {
|
|
1757
|
-
return /* @__PURE__ */ (0,
|
|
1908
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1758
1909
|
"div",
|
|
1759
1910
|
{
|
|
1760
1911
|
"data-slot": "calendar",
|
|
@@ -1766,10 +1917,10 @@ function Calendar({
|
|
|
1766
1917
|
},
|
|
1767
1918
|
Chevron: ({ className: className2, orientation, ...props2 }) => {
|
|
1768
1919
|
if (orientation === "left") {
|
|
1769
|
-
return /* @__PURE__ */ (0,
|
|
1920
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react3.ChevronLeftIcon, { className: cn("size-4", className2), ...props2 });
|
|
1770
1921
|
}
|
|
1771
1922
|
if (orientation === "right") {
|
|
1772
|
-
return /* @__PURE__ */ (0,
|
|
1923
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1773
1924
|
import_lucide_react3.ChevronRightIcon,
|
|
1774
1925
|
{
|
|
1775
1926
|
className: cn("size-4", className2),
|
|
@@ -1777,11 +1928,11 @@ function Calendar({
|
|
|
1777
1928
|
}
|
|
1778
1929
|
);
|
|
1779
1930
|
}
|
|
1780
|
-
return /* @__PURE__ */ (0,
|
|
1931
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react3.ChevronDownIcon, { className: cn("size-4", className2), ...props2 });
|
|
1781
1932
|
},
|
|
1782
1933
|
DayButton: CalendarDayButton,
|
|
1783
1934
|
WeekNumber: ({ children, ...props2 }) => {
|
|
1784
|
-
return /* @__PURE__ */ (0,
|
|
1935
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("td", { ...props2, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "flex size-[--cell-size] items-center justify-center text-center", children }) });
|
|
1785
1936
|
},
|
|
1786
1937
|
...components
|
|
1787
1938
|
},
|
|
@@ -1796,11 +1947,11 @@ function CalendarDayButton({
|
|
|
1796
1947
|
...props
|
|
1797
1948
|
}) {
|
|
1798
1949
|
const defaultClassNames = (0, import_react_day_picker.getDefaultClassNames)();
|
|
1799
|
-
const ref =
|
|
1800
|
-
|
|
1950
|
+
const ref = React16.useRef(null);
|
|
1951
|
+
React16.useEffect(() => {
|
|
1801
1952
|
if (modifiers.focused) ref.current?.focus();
|
|
1802
1953
|
}, [modifiers.focused]);
|
|
1803
|
-
return /* @__PURE__ */ (0,
|
|
1954
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1804
1955
|
Button,
|
|
1805
1956
|
{
|
|
1806
1957
|
ref,
|
|
@@ -1822,9 +1973,9 @@ function CalendarDayButton({
|
|
|
1822
1973
|
}
|
|
1823
1974
|
|
|
1824
1975
|
// src/components/ui/card.tsx
|
|
1825
|
-
var
|
|
1826
|
-
var
|
|
1827
|
-
var Card =
|
|
1976
|
+
var React17 = __toESM(require("react"), 1);
|
|
1977
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
1978
|
+
var Card = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1828
1979
|
"div",
|
|
1829
1980
|
{
|
|
1830
1981
|
ref,
|
|
@@ -1836,7 +1987,7 @@ var Card = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
1836
1987
|
}
|
|
1837
1988
|
));
|
|
1838
1989
|
Card.displayName = "Card";
|
|
1839
|
-
var CardHeader =
|
|
1990
|
+
var CardHeader = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1840
1991
|
"div",
|
|
1841
1992
|
{
|
|
1842
1993
|
ref,
|
|
@@ -1845,7 +1996,7 @@ var CardHeader = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1845
1996
|
}
|
|
1846
1997
|
));
|
|
1847
1998
|
CardHeader.displayName = "CardHeader";
|
|
1848
|
-
var CardTitle =
|
|
1999
|
+
var CardTitle = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1849
2000
|
"div",
|
|
1850
2001
|
{
|
|
1851
2002
|
ref,
|
|
@@ -1854,7 +2005,7 @@ var CardTitle = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
1854
2005
|
}
|
|
1855
2006
|
));
|
|
1856
2007
|
CardTitle.displayName = "CardTitle";
|
|
1857
|
-
var CardDescription =
|
|
2008
|
+
var CardDescription = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1858
2009
|
"div",
|
|
1859
2010
|
{
|
|
1860
2011
|
ref,
|
|
@@ -1863,9 +2014,9 @@ var CardDescription = React16.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
1863
2014
|
}
|
|
1864
2015
|
));
|
|
1865
2016
|
CardDescription.displayName = "CardDescription";
|
|
1866
|
-
var CardContent =
|
|
2017
|
+
var CardContent = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { ref, className: cn("p-6 pt-0", className), ...props }));
|
|
1867
2018
|
CardContent.displayName = "CardContent";
|
|
1868
|
-
var CardFooter =
|
|
2019
|
+
var CardFooter = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1869
2020
|
"div",
|
|
1870
2021
|
{
|
|
1871
2022
|
ref,
|
|
@@ -1876,19 +2027,19 @@ var CardFooter = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1876
2027
|
CardFooter.displayName = "CardFooter";
|
|
1877
2028
|
|
|
1878
2029
|
// src/components/ui/carousel.tsx
|
|
1879
|
-
var
|
|
2030
|
+
var React18 = __toESM(require("react"), 1);
|
|
1880
2031
|
var import_embla_carousel_react = __toESM(require("embla-carousel-react"), 1);
|
|
1881
2032
|
var import_lucide_react4 = require("lucide-react");
|
|
1882
|
-
var
|
|
1883
|
-
var CarouselContext =
|
|
2033
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
2034
|
+
var CarouselContext = React18.createContext(null);
|
|
1884
2035
|
function useCarousel() {
|
|
1885
|
-
const context =
|
|
2036
|
+
const context = React18.useContext(CarouselContext);
|
|
1886
2037
|
if (!context) {
|
|
1887
2038
|
throw new Error("useCarousel must be used within a <Carousel />");
|
|
1888
2039
|
}
|
|
1889
2040
|
return context;
|
|
1890
2041
|
}
|
|
1891
|
-
var Carousel =
|
|
2042
|
+
var Carousel = React18.forwardRef(
|
|
1892
2043
|
({
|
|
1893
2044
|
orientation = "horizontal",
|
|
1894
2045
|
opts,
|
|
@@ -1905,22 +2056,22 @@ var Carousel = React17.forwardRef(
|
|
|
1905
2056
|
},
|
|
1906
2057
|
plugins
|
|
1907
2058
|
);
|
|
1908
|
-
const [canScrollPrev, setCanScrollPrev] =
|
|
1909
|
-
const [canScrollNext, setCanScrollNext] =
|
|
1910
|
-
const onSelect =
|
|
2059
|
+
const [canScrollPrev, setCanScrollPrev] = React18.useState(false);
|
|
2060
|
+
const [canScrollNext, setCanScrollNext] = React18.useState(false);
|
|
2061
|
+
const onSelect = React18.useCallback((api2) => {
|
|
1911
2062
|
if (!api2) {
|
|
1912
2063
|
return;
|
|
1913
2064
|
}
|
|
1914
2065
|
setCanScrollPrev(api2.canScrollPrev());
|
|
1915
2066
|
setCanScrollNext(api2.canScrollNext());
|
|
1916
2067
|
}, []);
|
|
1917
|
-
const scrollPrev =
|
|
2068
|
+
const scrollPrev = React18.useCallback(() => {
|
|
1918
2069
|
api?.scrollPrev();
|
|
1919
2070
|
}, [api]);
|
|
1920
|
-
const scrollNext =
|
|
2071
|
+
const scrollNext = React18.useCallback(() => {
|
|
1921
2072
|
api?.scrollNext();
|
|
1922
2073
|
}, [api]);
|
|
1923
|
-
const handleKeyDown =
|
|
2074
|
+
const handleKeyDown = React18.useCallback(
|
|
1924
2075
|
(event) => {
|
|
1925
2076
|
if (event.key === "ArrowLeft") {
|
|
1926
2077
|
event.preventDefault();
|
|
@@ -1932,13 +2083,13 @@ var Carousel = React17.forwardRef(
|
|
|
1932
2083
|
},
|
|
1933
2084
|
[scrollPrev, scrollNext]
|
|
1934
2085
|
);
|
|
1935
|
-
|
|
2086
|
+
React18.useEffect(() => {
|
|
1936
2087
|
if (!api || !setApi) {
|
|
1937
2088
|
return;
|
|
1938
2089
|
}
|
|
1939
2090
|
setApi(api);
|
|
1940
2091
|
}, [api, setApi]);
|
|
1941
|
-
|
|
2092
|
+
React18.useEffect(() => {
|
|
1942
2093
|
if (!api) {
|
|
1943
2094
|
return;
|
|
1944
2095
|
}
|
|
@@ -1949,7 +2100,7 @@ var Carousel = React17.forwardRef(
|
|
|
1949
2100
|
api?.off("select", onSelect);
|
|
1950
2101
|
};
|
|
1951
2102
|
}, [api, onSelect]);
|
|
1952
|
-
return /* @__PURE__ */ (0,
|
|
2103
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1953
2104
|
CarouselContext.Provider,
|
|
1954
2105
|
{
|
|
1955
2106
|
value: {
|
|
@@ -1962,7 +2113,7 @@ var Carousel = React17.forwardRef(
|
|
|
1962
2113
|
canScrollPrev,
|
|
1963
2114
|
canScrollNext
|
|
1964
2115
|
},
|
|
1965
|
-
children: /* @__PURE__ */ (0,
|
|
2116
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1966
2117
|
"div",
|
|
1967
2118
|
{
|
|
1968
2119
|
ref,
|
|
@@ -1979,9 +2130,9 @@ var Carousel = React17.forwardRef(
|
|
|
1979
2130
|
}
|
|
1980
2131
|
);
|
|
1981
2132
|
Carousel.displayName = "Carousel";
|
|
1982
|
-
var CarouselContent =
|
|
2133
|
+
var CarouselContent = React18.forwardRef(({ className, ...props }, ref) => {
|
|
1983
2134
|
const { carouselRef, orientation } = useCarousel();
|
|
1984
|
-
return /* @__PURE__ */ (0,
|
|
2135
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1985
2136
|
"div",
|
|
1986
2137
|
{
|
|
1987
2138
|
ref,
|
|
@@ -1995,9 +2146,9 @@ var CarouselContent = React17.forwardRef(({ className, ...props }, ref) => {
|
|
|
1995
2146
|
) });
|
|
1996
2147
|
});
|
|
1997
2148
|
CarouselContent.displayName = "CarouselContent";
|
|
1998
|
-
var CarouselItem =
|
|
2149
|
+
var CarouselItem = React18.forwardRef(({ className, ...props }, ref) => {
|
|
1999
2150
|
const { orientation } = useCarousel();
|
|
2000
|
-
return /* @__PURE__ */ (0,
|
|
2151
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
2001
2152
|
"div",
|
|
2002
2153
|
{
|
|
2003
2154
|
ref,
|
|
@@ -2013,9 +2164,9 @@ var CarouselItem = React17.forwardRef(({ className, ...props }, ref) => {
|
|
|
2013
2164
|
);
|
|
2014
2165
|
});
|
|
2015
2166
|
CarouselItem.displayName = "CarouselItem";
|
|
2016
|
-
var CarouselPrevious =
|
|
2167
|
+
var CarouselPrevious = React18.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
2017
2168
|
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
2018
|
-
return /* @__PURE__ */ (0,
|
|
2169
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
2019
2170
|
Button,
|
|
2020
2171
|
{
|
|
2021
2172
|
ref,
|
|
@@ -2030,16 +2181,16 @@ var CarouselPrevious = React17.forwardRef(({ className, variant = "outline", siz
|
|
|
2030
2181
|
onClick: scrollPrev,
|
|
2031
2182
|
...props,
|
|
2032
2183
|
children: [
|
|
2033
|
-
/* @__PURE__ */ (0,
|
|
2034
|
-
/* @__PURE__ */ (0,
|
|
2184
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react4.ArrowLeft, { className: "h-4 w-4" }),
|
|
2185
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "sr-only", children: "Previous slide" })
|
|
2035
2186
|
]
|
|
2036
2187
|
}
|
|
2037
2188
|
);
|
|
2038
2189
|
});
|
|
2039
2190
|
CarouselPrevious.displayName = "CarouselPrevious";
|
|
2040
|
-
var CarouselNext =
|
|
2191
|
+
var CarouselNext = React18.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
2041
2192
|
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
2042
|
-
return /* @__PURE__ */ (0,
|
|
2193
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
2043
2194
|
Button,
|
|
2044
2195
|
{
|
|
2045
2196
|
ref,
|
|
@@ -2054,8 +2205,8 @@ var CarouselNext = React17.forwardRef(({ className, variant = "outline", size =
|
|
|
2054
2205
|
onClick: scrollNext,
|
|
2055
2206
|
...props,
|
|
2056
2207
|
children: [
|
|
2057
|
-
/* @__PURE__ */ (0,
|
|
2058
|
-
/* @__PURE__ */ (0,
|
|
2208
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react4.ArrowRight, { className: "h-4 w-4" }),
|
|
2209
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "sr-only", children: "Next slide" })
|
|
2059
2210
|
]
|
|
2060
2211
|
}
|
|
2061
2212
|
);
|
|
@@ -2063,22 +2214,22 @@ var CarouselNext = React17.forwardRef(({ className, variant = "outline", size =
|
|
|
2063
2214
|
CarouselNext.displayName = "CarouselNext";
|
|
2064
2215
|
|
|
2065
2216
|
// src/components/ui/chart.tsx
|
|
2066
|
-
var
|
|
2217
|
+
var React19 = __toESM(require("react"), 1);
|
|
2067
2218
|
var RechartsPrimitive = __toESM(require("recharts"), 1);
|
|
2068
|
-
var
|
|
2219
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
2069
2220
|
var THEMES = { light: "", dark: ".dark" };
|
|
2070
|
-
var ChartContext =
|
|
2221
|
+
var ChartContext = React19.createContext(null);
|
|
2071
2222
|
function useChart() {
|
|
2072
|
-
const context =
|
|
2223
|
+
const context = React19.useContext(ChartContext);
|
|
2073
2224
|
if (!context) {
|
|
2074
2225
|
throw new Error("useChart must be used within a <ChartContainer />");
|
|
2075
2226
|
}
|
|
2076
2227
|
return context;
|
|
2077
2228
|
}
|
|
2078
|
-
var ChartContainer =
|
|
2079
|
-
const uniqueId =
|
|
2229
|
+
var ChartContainer = React19.forwardRef(({ id, className, children, config, ...props }, ref) => {
|
|
2230
|
+
const uniqueId = React19.useId();
|
|
2080
2231
|
const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
|
|
2081
|
-
return /* @__PURE__ */ (0,
|
|
2232
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
2082
2233
|
"div",
|
|
2083
2234
|
{
|
|
2084
2235
|
"data-chart": chartId,
|
|
@@ -2089,8 +2240,8 @@ var ChartContainer = React18.forwardRef(({ id, className, children, config, ...p
|
|
|
2089
2240
|
),
|
|
2090
2241
|
...props,
|
|
2091
2242
|
children: [
|
|
2092
|
-
/* @__PURE__ */ (0,
|
|
2093
|
-
/* @__PURE__ */ (0,
|
|
2243
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(ChartStyle, { id: chartId, config }),
|
|
2244
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(RechartsPrimitive.ResponsiveContainer, { children })
|
|
2094
2245
|
]
|
|
2095
2246
|
}
|
|
2096
2247
|
) });
|
|
@@ -2103,7 +2254,7 @@ var ChartStyle = ({ id, config }) => {
|
|
|
2103
2254
|
if (!colorConfig.length) {
|
|
2104
2255
|
return null;
|
|
2105
2256
|
}
|
|
2106
|
-
return /* @__PURE__ */ (0,
|
|
2257
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
2107
2258
|
"style",
|
|
2108
2259
|
{
|
|
2109
2260
|
dangerouslySetInnerHTML: {
|
|
@@ -2122,7 +2273,7 @@ ${colorConfig.map(([key, itemConfig]) => {
|
|
|
2122
2273
|
);
|
|
2123
2274
|
};
|
|
2124
2275
|
var ChartTooltip = RechartsPrimitive.Tooltip;
|
|
2125
|
-
var ChartTooltipContent =
|
|
2276
|
+
var ChartTooltipContent = React19.forwardRef(
|
|
2126
2277
|
({
|
|
2127
2278
|
active,
|
|
2128
2279
|
payload,
|
|
@@ -2139,7 +2290,7 @@ var ChartTooltipContent = React18.forwardRef(
|
|
|
2139
2290
|
labelKey
|
|
2140
2291
|
}, ref) => {
|
|
2141
2292
|
const { config } = useChart();
|
|
2142
|
-
const tooltipLabel =
|
|
2293
|
+
const tooltipLabel = React19.useMemo(() => {
|
|
2143
2294
|
if (hideLabel || !payload?.length) {
|
|
2144
2295
|
return null;
|
|
2145
2296
|
}
|
|
@@ -2148,12 +2299,12 @@ var ChartTooltipContent = React18.forwardRef(
|
|
|
2148
2299
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
2149
2300
|
const value = !labelKey && typeof label === "string" ? config[label]?.label || label : itemConfig?.label;
|
|
2150
2301
|
if (labelFormatter) {
|
|
2151
|
-
return /* @__PURE__ */ (0,
|
|
2302
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: cn(labelClassName), children: labelFormatter(value, payload) });
|
|
2152
2303
|
}
|
|
2153
2304
|
if (!value) {
|
|
2154
2305
|
return null;
|
|
2155
2306
|
}
|
|
2156
|
-
return /* @__PURE__ */ (0,
|
|
2307
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: cn(labelClassName), children: value });
|
|
2157
2308
|
}, [
|
|
2158
2309
|
label,
|
|
2159
2310
|
labelFormatter,
|
|
@@ -2167,7 +2318,7 @@ var ChartTooltipContent = React18.forwardRef(
|
|
|
2167
2318
|
return null;
|
|
2168
2319
|
}
|
|
2169
2320
|
const nestLabel = payload.length === 1 && indicator !== "dot";
|
|
2170
|
-
return /* @__PURE__ */ (0,
|
|
2321
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
2171
2322
|
"div",
|
|
2172
2323
|
{
|
|
2173
2324
|
ref,
|
|
@@ -2177,19 +2328,19 @@ var ChartTooltipContent = React18.forwardRef(
|
|
|
2177
2328
|
),
|
|
2178
2329
|
children: [
|
|
2179
2330
|
!nestLabel ? tooltipLabel : null,
|
|
2180
|
-
/* @__PURE__ */ (0,
|
|
2331
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "grid gap-1.5", children: payload.filter((item) => item.type !== "none").map((item, index) => {
|
|
2181
2332
|
const key = `${nameKey || item.name || item.dataKey || "value"}`;
|
|
2182
2333
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
2183
2334
|
const indicatorColor = color || item.payload.fill || item.color;
|
|
2184
|
-
return /* @__PURE__ */ (0,
|
|
2335
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
2185
2336
|
"div",
|
|
2186
2337
|
{
|
|
2187
2338
|
className: cn(
|
|
2188
2339
|
"flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",
|
|
2189
2340
|
indicator === "dot" && "items-center"
|
|
2190
2341
|
),
|
|
2191
|
-
children: formatter && item?.value !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ (0,
|
|
2192
|
-
itemConfig?.icon ? /* @__PURE__ */ (0,
|
|
2342
|
+
children: formatter && item?.value !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
|
|
2343
|
+
itemConfig?.icon ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
2193
2344
|
"div",
|
|
2194
2345
|
{
|
|
2195
2346
|
className: cn(
|
|
@@ -2207,7 +2358,7 @@ var ChartTooltipContent = React18.forwardRef(
|
|
|
2207
2358
|
}
|
|
2208
2359
|
}
|
|
2209
2360
|
),
|
|
2210
|
-
/* @__PURE__ */ (0,
|
|
2361
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
2211
2362
|
"div",
|
|
2212
2363
|
{
|
|
2213
2364
|
className: cn(
|
|
@@ -2215,11 +2366,11 @@ var ChartTooltipContent = React18.forwardRef(
|
|
|
2215
2366
|
nestLabel ? "items-end" : "items-center"
|
|
2216
2367
|
),
|
|
2217
2368
|
children: [
|
|
2218
|
-
/* @__PURE__ */ (0,
|
|
2369
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "grid gap-1.5", children: [
|
|
2219
2370
|
nestLabel ? tooltipLabel : null,
|
|
2220
|
-
/* @__PURE__ */ (0,
|
|
2371
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-muted-foreground", children: itemConfig?.label || item.name })
|
|
2221
2372
|
] }),
|
|
2222
|
-
item.value && /* @__PURE__ */ (0,
|
|
2373
|
+
item.value && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "font-mono tabular-nums text-foreground", children: item.value.toLocaleString() })
|
|
2223
2374
|
]
|
|
2224
2375
|
}
|
|
2225
2376
|
)
|
|
@@ -2235,13 +2386,13 @@ var ChartTooltipContent = React18.forwardRef(
|
|
|
2235
2386
|
);
|
|
2236
2387
|
ChartTooltipContent.displayName = "ChartTooltip";
|
|
2237
2388
|
var ChartLegend = RechartsPrimitive.Legend;
|
|
2238
|
-
var ChartLegendContent =
|
|
2389
|
+
var ChartLegendContent = React19.forwardRef(
|
|
2239
2390
|
({ className, hideIcon = false, payload, verticalAlign = "bottom", nameKey }, ref) => {
|
|
2240
2391
|
const { config } = useChart();
|
|
2241
2392
|
if (!payload?.length) {
|
|
2242
2393
|
return null;
|
|
2243
2394
|
}
|
|
2244
|
-
return /* @__PURE__ */ (0,
|
|
2395
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
2245
2396
|
"div",
|
|
2246
2397
|
{
|
|
2247
2398
|
ref,
|
|
@@ -2253,14 +2404,14 @@ var ChartLegendContent = React18.forwardRef(
|
|
|
2253
2404
|
children: payload.filter((item) => item.type !== "none").map((item) => {
|
|
2254
2405
|
const key = `${nameKey || item.dataKey || "value"}`;
|
|
2255
2406
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
2256
|
-
return /* @__PURE__ */ (0,
|
|
2407
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
2257
2408
|
"div",
|
|
2258
2409
|
{
|
|
2259
2410
|
className: cn(
|
|
2260
2411
|
"flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"
|
|
2261
2412
|
),
|
|
2262
2413
|
children: [
|
|
2263
|
-
itemConfig?.icon && !hideIcon ? /* @__PURE__ */ (0,
|
|
2414
|
+
itemConfig?.icon && !hideIcon ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(itemConfig.icon, {}) : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
2264
2415
|
"div",
|
|
2265
2416
|
{
|
|
2266
2417
|
className: "h-2 w-2 shrink-0 rounded-[2px]",
|
|
@@ -2295,11 +2446,11 @@ function getPayloadConfigFromPayload(config, payload, key) {
|
|
|
2295
2446
|
}
|
|
2296
2447
|
|
|
2297
2448
|
// src/components/ui/checkbox.tsx
|
|
2298
|
-
var
|
|
2449
|
+
var React20 = __toESM(require("react"), 1);
|
|
2299
2450
|
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"), 1);
|
|
2300
2451
|
var import_lucide_react5 = require("lucide-react");
|
|
2301
|
-
var
|
|
2302
|
-
var Checkbox =
|
|
2452
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
2453
|
+
var Checkbox = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2303
2454
|
CheckboxPrimitive.Root,
|
|
2304
2455
|
{
|
|
2305
2456
|
ref,
|
|
@@ -2308,11 +2459,11 @@ var Checkbox = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
2308
2459
|
className
|
|
2309
2460
|
),
|
|
2310
2461
|
...props,
|
|
2311
|
-
children: /* @__PURE__ */ (0,
|
|
2462
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2312
2463
|
CheckboxPrimitive.Indicator,
|
|
2313
2464
|
{
|
|
2314
2465
|
className: cn("grid place-content-center text-current"),
|
|
2315
|
-
children: /* @__PURE__ */ (0,
|
|
2466
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react5.Check, { className: "h-4 w-4" })
|
|
2316
2467
|
}
|
|
2317
2468
|
)
|
|
2318
2469
|
}
|
|
@@ -2326,20 +2477,20 @@ var CollapsibleTrigger2 = CollapsiblePrimitive.CollapsibleTrigger;
|
|
|
2326
2477
|
var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
|
|
2327
2478
|
|
|
2328
2479
|
// src/components/ui/command.tsx
|
|
2329
|
-
var
|
|
2480
|
+
var React22 = __toESM(require("react"), 1);
|
|
2330
2481
|
var import_cmdk = require("cmdk");
|
|
2331
2482
|
var import_lucide_react7 = require("lucide-react");
|
|
2332
2483
|
|
|
2333
2484
|
// src/components/ui/dialog.tsx
|
|
2334
|
-
var
|
|
2485
|
+
var React21 = __toESM(require("react"), 1);
|
|
2335
2486
|
var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
2336
2487
|
var import_lucide_react6 = require("lucide-react");
|
|
2337
|
-
var
|
|
2488
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
2338
2489
|
var Dialog = DialogPrimitive.Root;
|
|
2339
2490
|
var DialogTrigger = DialogPrimitive.Trigger;
|
|
2340
2491
|
var DialogPortal = DialogPrimitive.Portal;
|
|
2341
2492
|
var DialogClose = DialogPrimitive.Close;
|
|
2342
|
-
var DialogOverlay =
|
|
2493
|
+
var DialogOverlay = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2343
2494
|
DialogPrimitive.Overlay,
|
|
2344
2495
|
{
|
|
2345
2496
|
ref,
|
|
@@ -2351,9 +2502,9 @@ var DialogOverlay = React20.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
2351
2502
|
}
|
|
2352
2503
|
));
|
|
2353
2504
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
2354
|
-
var DialogContent =
|
|
2355
|
-
/* @__PURE__ */ (0,
|
|
2356
|
-
/* @__PURE__ */ (0,
|
|
2505
|
+
var DialogContent = React21.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(DialogPortal, { children: [
|
|
2506
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(DialogOverlay, {}),
|
|
2507
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
2357
2508
|
DialogPrimitive.Content,
|
|
2358
2509
|
{
|
|
2359
2510
|
ref,
|
|
@@ -2364,9 +2515,9 @@ var DialogContent = React20.forwardRef(({ className, children, ...props }, ref)
|
|
|
2364
2515
|
...props,
|
|
2365
2516
|
children: [
|
|
2366
2517
|
children,
|
|
2367
|
-
/* @__PURE__ */ (0,
|
|
2368
|
-
/* @__PURE__ */ (0,
|
|
2369
|
-
/* @__PURE__ */ (0,
|
|
2518
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
|
2519
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react6.X, { className: "h-4 w-4" }),
|
|
2520
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "sr-only", children: "Close" })
|
|
2370
2521
|
] })
|
|
2371
2522
|
]
|
|
2372
2523
|
}
|
|
@@ -2376,7 +2527,7 @@ DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
|
2376
2527
|
var DialogHeader = ({
|
|
2377
2528
|
className,
|
|
2378
2529
|
...props
|
|
2379
|
-
}) => /* @__PURE__ */ (0,
|
|
2530
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2380
2531
|
"div",
|
|
2381
2532
|
{
|
|
2382
2533
|
className: cn(
|
|
@@ -2390,7 +2541,7 @@ DialogHeader.displayName = "DialogHeader";
|
|
|
2390
2541
|
var DialogFooter = ({
|
|
2391
2542
|
className,
|
|
2392
2543
|
...props
|
|
2393
|
-
}) => /* @__PURE__ */ (0,
|
|
2544
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2394
2545
|
"div",
|
|
2395
2546
|
{
|
|
2396
2547
|
className: cn(
|
|
@@ -2401,7 +2552,7 @@ var DialogFooter = ({
|
|
|
2401
2552
|
}
|
|
2402
2553
|
);
|
|
2403
2554
|
DialogFooter.displayName = "DialogFooter";
|
|
2404
|
-
var DialogTitle =
|
|
2555
|
+
var DialogTitle = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2405
2556
|
DialogPrimitive.Title,
|
|
2406
2557
|
{
|
|
2407
2558
|
ref,
|
|
@@ -2413,7 +2564,7 @@ var DialogTitle = React20.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2413
2564
|
}
|
|
2414
2565
|
));
|
|
2415
2566
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
2416
|
-
var DialogDescription =
|
|
2567
|
+
var DialogDescription = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2417
2568
|
DialogPrimitive.Description,
|
|
2418
2569
|
{
|
|
2419
2570
|
ref,
|
|
@@ -2424,8 +2575,8 @@ var DialogDescription = React20.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2424
2575
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
2425
2576
|
|
|
2426
2577
|
// src/components/ui/command.tsx
|
|
2427
|
-
var
|
|
2428
|
-
var Command =
|
|
2578
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
2579
|
+
var Command = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2429
2580
|
import_cmdk.Command,
|
|
2430
2581
|
{
|
|
2431
2582
|
ref,
|
|
@@ -2438,11 +2589,11 @@ var Command = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
2438
2589
|
));
|
|
2439
2590
|
Command.displayName = import_cmdk.Command.displayName;
|
|
2440
2591
|
var CommandDialog = ({ children, ...props }) => {
|
|
2441
|
-
return /* @__PURE__ */ (0,
|
|
2592
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Dialog, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(DialogContent, { className: "overflow-hidden p-0", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Command, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children }) }) });
|
|
2442
2593
|
};
|
|
2443
|
-
var CommandInput =
|
|
2444
|
-
/* @__PURE__ */ (0,
|
|
2445
|
-
/* @__PURE__ */ (0,
|
|
2594
|
+
var CommandInput = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex items-center border-b border-border px-3", "cmdk-input-wrapper": "", children: [
|
|
2595
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react7.Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
2596
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2446
2597
|
import_cmdk.Command.Input,
|
|
2447
2598
|
{
|
|
2448
2599
|
ref,
|
|
@@ -2455,7 +2606,7 @@ var CommandInput = React21.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2455
2606
|
)
|
|
2456
2607
|
] }));
|
|
2457
2608
|
CommandInput.displayName = import_cmdk.Command.Input.displayName;
|
|
2458
|
-
var CommandList =
|
|
2609
|
+
var CommandList = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2459
2610
|
import_cmdk.Command.List,
|
|
2460
2611
|
{
|
|
2461
2612
|
ref,
|
|
@@ -2464,7 +2615,7 @@ var CommandList = React21.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2464
2615
|
}
|
|
2465
2616
|
));
|
|
2466
2617
|
CommandList.displayName = import_cmdk.Command.List.displayName;
|
|
2467
|
-
var CommandEmpty =
|
|
2618
|
+
var CommandEmpty = React22.forwardRef((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2468
2619
|
import_cmdk.Command.Empty,
|
|
2469
2620
|
{
|
|
2470
2621
|
ref,
|
|
@@ -2473,7 +2624,7 @@ var CommandEmpty = React21.forwardRef((props, ref) => /* @__PURE__ */ (0, import
|
|
|
2473
2624
|
}
|
|
2474
2625
|
));
|
|
2475
2626
|
CommandEmpty.displayName = import_cmdk.Command.Empty.displayName;
|
|
2476
|
-
var CommandGroup =
|
|
2627
|
+
var CommandGroup = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2477
2628
|
import_cmdk.Command.Group,
|
|
2478
2629
|
{
|
|
2479
2630
|
ref,
|
|
@@ -2485,7 +2636,7 @@ var CommandGroup = React21.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2485
2636
|
}
|
|
2486
2637
|
));
|
|
2487
2638
|
CommandGroup.displayName = import_cmdk.Command.Group.displayName;
|
|
2488
|
-
var CommandSeparator =
|
|
2639
|
+
var CommandSeparator = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2489
2640
|
import_cmdk.Command.Separator,
|
|
2490
2641
|
{
|
|
2491
2642
|
ref,
|
|
@@ -2494,7 +2645,7 @@ var CommandSeparator = React21.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
2494
2645
|
}
|
|
2495
2646
|
));
|
|
2496
2647
|
CommandSeparator.displayName = import_cmdk.Command.Separator.displayName;
|
|
2497
|
-
var CommandItem =
|
|
2648
|
+
var CommandItem = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2498
2649
|
import_cmdk.Command.Item,
|
|
2499
2650
|
{
|
|
2500
2651
|
ref,
|
|
@@ -2510,7 +2661,7 @@ var CommandShortcut = ({
|
|
|
2510
2661
|
className,
|
|
2511
2662
|
...props
|
|
2512
2663
|
}) => {
|
|
2513
|
-
return /* @__PURE__ */ (0,
|
|
2664
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2514
2665
|
"span",
|
|
2515
2666
|
{
|
|
2516
2667
|
className: cn(
|
|
@@ -2524,17 +2675,17 @@ var CommandShortcut = ({
|
|
|
2524
2675
|
CommandShortcut.displayName = "CommandShortcut";
|
|
2525
2676
|
|
|
2526
2677
|
// src/components/ui/context-menu.tsx
|
|
2527
|
-
var
|
|
2678
|
+
var React23 = __toESM(require("react"), 1);
|
|
2528
2679
|
var ContextMenuPrimitive = __toESM(require("@radix-ui/react-context-menu"), 1);
|
|
2529
2680
|
var import_lucide_react8 = require("lucide-react");
|
|
2530
|
-
var
|
|
2681
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
2531
2682
|
var ContextMenu = ContextMenuPrimitive.Root;
|
|
2532
2683
|
var ContextMenuTrigger = ContextMenuPrimitive.Trigger;
|
|
2533
2684
|
var ContextMenuGroup = ContextMenuPrimitive.Group;
|
|
2534
2685
|
var ContextMenuPortal = ContextMenuPrimitive.Portal;
|
|
2535
2686
|
var ContextMenuSub = ContextMenuPrimitive.Sub;
|
|
2536
2687
|
var ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;
|
|
2537
|
-
var ContextMenuSubTrigger =
|
|
2688
|
+
var ContextMenuSubTrigger = React23.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
2538
2689
|
ContextMenuPrimitive.SubTrigger,
|
|
2539
2690
|
{
|
|
2540
2691
|
ref,
|
|
@@ -2546,12 +2697,12 @@ var ContextMenuSubTrigger = React22.forwardRef(({ className, inset, children, ..
|
|
|
2546
2697
|
...props,
|
|
2547
2698
|
children: [
|
|
2548
2699
|
children,
|
|
2549
|
-
/* @__PURE__ */ (0,
|
|
2700
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react8.ChevronRight, { className: "ml-auto h-4 w-4" })
|
|
2550
2701
|
]
|
|
2551
2702
|
}
|
|
2552
2703
|
));
|
|
2553
2704
|
ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;
|
|
2554
|
-
var ContextMenuSubContent =
|
|
2705
|
+
var ContextMenuSubContent = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2555
2706
|
ContextMenuPrimitive.SubContent,
|
|
2556
2707
|
{
|
|
2557
2708
|
ref,
|
|
@@ -2563,7 +2714,7 @@ var ContextMenuSubContent = React22.forwardRef(({ className, ...props }, ref) =>
|
|
|
2563
2714
|
}
|
|
2564
2715
|
));
|
|
2565
2716
|
ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;
|
|
2566
|
-
var ContextMenuContent =
|
|
2717
|
+
var ContextMenuContent = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2567
2718
|
ContextMenuPrimitive.Content,
|
|
2568
2719
|
{
|
|
2569
2720
|
ref,
|
|
@@ -2575,7 +2726,7 @@ var ContextMenuContent = React22.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2575
2726
|
}
|
|
2576
2727
|
) }));
|
|
2577
2728
|
ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;
|
|
2578
|
-
var ContextMenuItem =
|
|
2729
|
+
var ContextMenuItem = React23.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2579
2730
|
ContextMenuPrimitive.Item,
|
|
2580
2731
|
{
|
|
2581
2732
|
ref,
|
|
@@ -2588,7 +2739,7 @@ var ContextMenuItem = React22.forwardRef(({ className, inset, ...props }, ref) =
|
|
|
2588
2739
|
}
|
|
2589
2740
|
));
|
|
2590
2741
|
ContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;
|
|
2591
|
-
var ContextMenuCheckboxItem =
|
|
2742
|
+
var ContextMenuCheckboxItem = React23.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
2592
2743
|
ContextMenuPrimitive.CheckboxItem,
|
|
2593
2744
|
{
|
|
2594
2745
|
ref,
|
|
@@ -2599,13 +2750,13 @@ var ContextMenuCheckboxItem = React22.forwardRef(({ className, children, checked
|
|
|
2599
2750
|
checked,
|
|
2600
2751
|
...props,
|
|
2601
2752
|
children: [
|
|
2602
|
-
/* @__PURE__ */ (0,
|
|
2753
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react8.Check, { className: "h-4 w-4" }) }) }),
|
|
2603
2754
|
children
|
|
2604
2755
|
]
|
|
2605
2756
|
}
|
|
2606
2757
|
));
|
|
2607
2758
|
ContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem.displayName;
|
|
2608
|
-
var ContextMenuRadioItem =
|
|
2759
|
+
var ContextMenuRadioItem = React23.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
2609
2760
|
ContextMenuPrimitive.RadioItem,
|
|
2610
2761
|
{
|
|
2611
2762
|
ref,
|
|
@@ -2615,13 +2766,13 @@ var ContextMenuRadioItem = React22.forwardRef(({ className, children, ...props }
|
|
|
2615
2766
|
),
|
|
2616
2767
|
...props,
|
|
2617
2768
|
children: [
|
|
2618
|
-
/* @__PURE__ */ (0,
|
|
2769
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react8.Circle, { className: "h-4 w-4 fill-current" }) }) }),
|
|
2619
2770
|
children
|
|
2620
2771
|
]
|
|
2621
2772
|
}
|
|
2622
2773
|
));
|
|
2623
2774
|
ContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;
|
|
2624
|
-
var ContextMenuLabel =
|
|
2775
|
+
var ContextMenuLabel = React23.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2625
2776
|
ContextMenuPrimitive.Label,
|
|
2626
2777
|
{
|
|
2627
2778
|
ref,
|
|
@@ -2634,7 +2785,7 @@ var ContextMenuLabel = React22.forwardRef(({ className, inset, ...props }, ref)
|
|
|
2634
2785
|
}
|
|
2635
2786
|
));
|
|
2636
2787
|
ContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;
|
|
2637
|
-
var ContextMenuSeparator =
|
|
2788
|
+
var ContextMenuSeparator = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2638
2789
|
ContextMenuPrimitive.Separator,
|
|
2639
2790
|
{
|
|
2640
2791
|
ref,
|
|
@@ -2647,7 +2798,7 @@ var ContextMenuShortcut = ({
|
|
|
2647
2798
|
className,
|
|
2648
2799
|
...props
|
|
2649
2800
|
}) => {
|
|
2650
|
-
return /* @__PURE__ */ (0,
|
|
2801
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2651
2802
|
"span",
|
|
2652
2803
|
{
|
|
2653
2804
|
className: cn(
|
|
@@ -2661,13 +2812,13 @@ var ContextMenuShortcut = ({
|
|
|
2661
2812
|
ContextMenuShortcut.displayName = "ContextMenuShortcut";
|
|
2662
2813
|
|
|
2663
2814
|
// src/components/ui/drawer.tsx
|
|
2664
|
-
var
|
|
2815
|
+
var React24 = __toESM(require("react"), 1);
|
|
2665
2816
|
var import_vaul = require("vaul");
|
|
2666
|
-
var
|
|
2817
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
2667
2818
|
var Drawer = ({
|
|
2668
2819
|
shouldScaleBackground = true,
|
|
2669
2820
|
...props
|
|
2670
|
-
}) => /* @__PURE__ */ (0,
|
|
2821
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
2671
2822
|
import_vaul.Drawer.Root,
|
|
2672
2823
|
{
|
|
2673
2824
|
shouldScaleBackground,
|
|
@@ -2678,7 +2829,7 @@ Drawer.displayName = "Drawer";
|
|
|
2678
2829
|
var DrawerTrigger = import_vaul.Drawer.Trigger;
|
|
2679
2830
|
var DrawerPortal = import_vaul.Drawer.Portal;
|
|
2680
2831
|
var DrawerClose = import_vaul.Drawer.Close;
|
|
2681
|
-
var DrawerOverlay =
|
|
2832
|
+
var DrawerOverlay = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
2682
2833
|
import_vaul.Drawer.Overlay,
|
|
2683
2834
|
{
|
|
2684
2835
|
ref,
|
|
@@ -2687,9 +2838,9 @@ var DrawerOverlay = React23.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
2687
2838
|
}
|
|
2688
2839
|
));
|
|
2689
2840
|
DrawerOverlay.displayName = import_vaul.Drawer.Overlay.displayName;
|
|
2690
|
-
var DrawerContent =
|
|
2691
|
-
/* @__PURE__ */ (0,
|
|
2692
|
-
/* @__PURE__ */ (0,
|
|
2841
|
+
var DrawerContent = React24.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(DrawerPortal, { children: [
|
|
2842
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(DrawerOverlay, {}),
|
|
2843
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
2693
2844
|
import_vaul.Drawer.Content,
|
|
2694
2845
|
{
|
|
2695
2846
|
ref,
|
|
@@ -2699,7 +2850,7 @@ var DrawerContent = React23.forwardRef(({ className, children, ...props }, ref)
|
|
|
2699
2850
|
),
|
|
2700
2851
|
...props,
|
|
2701
2852
|
children: [
|
|
2702
|
-
/* @__PURE__ */ (0,
|
|
2853
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
|
|
2703
2854
|
children
|
|
2704
2855
|
]
|
|
2705
2856
|
}
|
|
@@ -2709,7 +2860,7 @@ DrawerContent.displayName = "DrawerContent";
|
|
|
2709
2860
|
var DrawerHeader = ({
|
|
2710
2861
|
className,
|
|
2711
2862
|
...props
|
|
2712
|
-
}) => /* @__PURE__ */ (0,
|
|
2863
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
2713
2864
|
"div",
|
|
2714
2865
|
{
|
|
2715
2866
|
className: cn("grid gap-1.5 p-4 text-center sm:text-left", className),
|
|
@@ -2720,7 +2871,7 @@ DrawerHeader.displayName = "DrawerHeader";
|
|
|
2720
2871
|
var DrawerFooter = ({
|
|
2721
2872
|
className,
|
|
2722
2873
|
...props
|
|
2723
|
-
}) => /* @__PURE__ */ (0,
|
|
2874
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
2724
2875
|
"div",
|
|
2725
2876
|
{
|
|
2726
2877
|
className: cn("mt-auto flex flex-col gap-2 p-4", className),
|
|
@@ -2728,7 +2879,7 @@ var DrawerFooter = ({
|
|
|
2728
2879
|
}
|
|
2729
2880
|
);
|
|
2730
2881
|
DrawerFooter.displayName = "DrawerFooter";
|
|
2731
|
-
var DrawerTitle =
|
|
2882
|
+
var DrawerTitle = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
2732
2883
|
import_vaul.Drawer.Title,
|
|
2733
2884
|
{
|
|
2734
2885
|
ref,
|
|
@@ -2740,7 +2891,7 @@ var DrawerTitle = React23.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2740
2891
|
}
|
|
2741
2892
|
));
|
|
2742
2893
|
DrawerTitle.displayName = import_vaul.Drawer.Title.displayName;
|
|
2743
|
-
var DrawerDescription =
|
|
2894
|
+
var DrawerDescription = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
2744
2895
|
import_vaul.Drawer.Description,
|
|
2745
2896
|
{
|
|
2746
2897
|
ref,
|
|
@@ -2751,17 +2902,17 @@ var DrawerDescription = React23.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2751
2902
|
DrawerDescription.displayName = import_vaul.Drawer.Description.displayName;
|
|
2752
2903
|
|
|
2753
2904
|
// src/components/ui/dropdown-menu.tsx
|
|
2754
|
-
var
|
|
2905
|
+
var React25 = __toESM(require("react"), 1);
|
|
2755
2906
|
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"), 1);
|
|
2756
2907
|
var import_lucide_react9 = require("lucide-react");
|
|
2757
|
-
var
|
|
2908
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
2758
2909
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
2759
2910
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
2760
2911
|
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
2761
2912
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
2762
2913
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
2763
2914
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
2764
|
-
var DropdownMenuSubTrigger =
|
|
2915
|
+
var DropdownMenuSubTrigger = React25.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
2765
2916
|
DropdownMenuPrimitive.SubTrigger,
|
|
2766
2917
|
{
|
|
2767
2918
|
ref,
|
|
@@ -2773,12 +2924,12 @@ var DropdownMenuSubTrigger = React24.forwardRef(({ className, inset, children, .
|
|
|
2773
2924
|
...props,
|
|
2774
2925
|
children: [
|
|
2775
2926
|
children,
|
|
2776
|
-
/* @__PURE__ */ (0,
|
|
2927
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react9.ChevronRight, { className: "ml-auto" })
|
|
2777
2928
|
]
|
|
2778
2929
|
}
|
|
2779
2930
|
));
|
|
2780
2931
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
2781
|
-
var DropdownMenuSubContent =
|
|
2932
|
+
var DropdownMenuSubContent = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
2782
2933
|
DropdownMenuPrimitive.SubContent,
|
|
2783
2934
|
{
|
|
2784
2935
|
ref,
|
|
@@ -2790,7 +2941,7 @@ var DropdownMenuSubContent = React24.forwardRef(({ className, ...props }, ref) =
|
|
|
2790
2941
|
}
|
|
2791
2942
|
));
|
|
2792
2943
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
2793
|
-
var DropdownMenuContent =
|
|
2944
|
+
var DropdownMenuContent = React25.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
2794
2945
|
DropdownMenuPrimitive.Content,
|
|
2795
2946
|
{
|
|
2796
2947
|
ref,
|
|
@@ -2804,7 +2955,7 @@ var DropdownMenuContent = React24.forwardRef(({ className, sideOffset = 4, ...pr
|
|
|
2804
2955
|
}
|
|
2805
2956
|
) }));
|
|
2806
2957
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
2807
|
-
var DropdownMenuItem =
|
|
2958
|
+
var DropdownMenuItem = React25.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
2808
2959
|
DropdownMenuPrimitive.Item,
|
|
2809
2960
|
{
|
|
2810
2961
|
ref,
|
|
@@ -2817,7 +2968,7 @@ var DropdownMenuItem = React24.forwardRef(({ className, inset, ...props }, ref)
|
|
|
2817
2968
|
}
|
|
2818
2969
|
));
|
|
2819
2970
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
2820
|
-
var DropdownMenuCheckboxItem =
|
|
2971
|
+
var DropdownMenuCheckboxItem = React25.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
2821
2972
|
DropdownMenuPrimitive.CheckboxItem,
|
|
2822
2973
|
{
|
|
2823
2974
|
ref,
|
|
@@ -2828,13 +2979,13 @@ var DropdownMenuCheckboxItem = React24.forwardRef(({ className, children, checke
|
|
|
2828
2979
|
checked,
|
|
2829
2980
|
...props,
|
|
2830
2981
|
children: [
|
|
2831
|
-
/* @__PURE__ */ (0,
|
|
2982
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react9.Check, { className: "h-4 w-4" }) }) }),
|
|
2832
2983
|
children
|
|
2833
2984
|
]
|
|
2834
2985
|
}
|
|
2835
2986
|
));
|
|
2836
2987
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
2837
|
-
var DropdownMenuRadioItem =
|
|
2988
|
+
var DropdownMenuRadioItem = React25.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
2838
2989
|
DropdownMenuPrimitive.RadioItem,
|
|
2839
2990
|
{
|
|
2840
2991
|
ref,
|
|
@@ -2844,13 +2995,13 @@ var DropdownMenuRadioItem = React24.forwardRef(({ className, children, ...props
|
|
|
2844
2995
|
),
|
|
2845
2996
|
...props,
|
|
2846
2997
|
children: [
|
|
2847
|
-
/* @__PURE__ */ (0,
|
|
2998
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react9.Circle, { className: "h-2 w-2 fill-current" }) }) }),
|
|
2848
2999
|
children
|
|
2849
3000
|
]
|
|
2850
3001
|
}
|
|
2851
3002
|
));
|
|
2852
3003
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
2853
|
-
var DropdownMenuLabel =
|
|
3004
|
+
var DropdownMenuLabel = React25.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
2854
3005
|
DropdownMenuPrimitive.Label,
|
|
2855
3006
|
{
|
|
2856
3007
|
ref,
|
|
@@ -2863,7 +3014,7 @@ var DropdownMenuLabel = React24.forwardRef(({ className, inset, ...props }, ref)
|
|
|
2863
3014
|
}
|
|
2864
3015
|
));
|
|
2865
3016
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
2866
|
-
var DropdownMenuSeparator =
|
|
3017
|
+
var DropdownMenuSeparator = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
2867
3018
|
DropdownMenuPrimitive.Separator,
|
|
2868
3019
|
{
|
|
2869
3020
|
ref,
|
|
@@ -2876,7 +3027,7 @@ var DropdownMenuShortcut = ({
|
|
|
2876
3027
|
className,
|
|
2877
3028
|
...props
|
|
2878
3029
|
}) => {
|
|
2879
|
-
return /* @__PURE__ */ (0,
|
|
3030
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
2880
3031
|
"span",
|
|
2881
3032
|
{
|
|
2882
3033
|
className: cn("ml-auto text-xs tracking-widest opacity-60", className),
|
|
@@ -2887,19 +3038,19 @@ var DropdownMenuShortcut = ({
|
|
|
2887
3038
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
2888
3039
|
|
|
2889
3040
|
// src/components/ui/form.tsx
|
|
2890
|
-
var
|
|
3041
|
+
var React27 = __toESM(require("react"), 1);
|
|
2891
3042
|
var import_react_slot3 = require("@radix-ui/react-slot");
|
|
2892
3043
|
var import_react_hook_form = require("react-hook-form");
|
|
2893
3044
|
|
|
2894
3045
|
// src/components/ui/label.tsx
|
|
2895
|
-
var
|
|
3046
|
+
var React26 = __toESM(require("react"), 1);
|
|
2896
3047
|
var LabelPrimitive = __toESM(require("@radix-ui/react-label"), 1);
|
|
2897
|
-
var
|
|
2898
|
-
var
|
|
2899
|
-
var labelVariants = (0,
|
|
3048
|
+
var import_class_variance_authority10 = require("class-variance-authority");
|
|
3049
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
3050
|
+
var labelVariants = (0, import_class_variance_authority10.cva)(
|
|
2900
3051
|
"text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
2901
3052
|
);
|
|
2902
|
-
var Label3 =
|
|
3053
|
+
var Label3 = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
2903
3054
|
LabelPrimitive.Root,
|
|
2904
3055
|
{
|
|
2905
3056
|
ref,
|
|
@@ -2910,17 +3061,17 @@ var Label3 = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
2910
3061
|
Label3.displayName = LabelPrimitive.Root.displayName;
|
|
2911
3062
|
|
|
2912
3063
|
// src/components/ui/form.tsx
|
|
2913
|
-
var
|
|
3064
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
2914
3065
|
var Form = import_react_hook_form.FormProvider;
|
|
2915
|
-
var FormFieldContext =
|
|
3066
|
+
var FormFieldContext = React27.createContext(null);
|
|
2916
3067
|
var FormField = ({
|
|
2917
3068
|
...props
|
|
2918
3069
|
}) => {
|
|
2919
|
-
return /* @__PURE__ */ (0,
|
|
3070
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react_hook_form.Controller, { ...props }) });
|
|
2920
3071
|
};
|
|
2921
3072
|
var useFormField = () => {
|
|
2922
|
-
const fieldContext =
|
|
2923
|
-
const itemContext =
|
|
3073
|
+
const fieldContext = React27.useContext(FormFieldContext);
|
|
3074
|
+
const itemContext = React27.useContext(FormItemContext);
|
|
2924
3075
|
const { getFieldState, formState } = (0, import_react_hook_form.useFormContext)();
|
|
2925
3076
|
if (!fieldContext) {
|
|
2926
3077
|
throw new Error("useFormField should be used within <FormField>");
|
|
@@ -2939,15 +3090,15 @@ var useFormField = () => {
|
|
|
2939
3090
|
...fieldState
|
|
2940
3091
|
};
|
|
2941
3092
|
};
|
|
2942
|
-
var FormItemContext =
|
|
2943
|
-
var FormItem =
|
|
2944
|
-
const id =
|
|
2945
|
-
return /* @__PURE__ */ (0,
|
|
3093
|
+
var FormItemContext = React27.createContext(null);
|
|
3094
|
+
var FormItem = React27.forwardRef(({ className, ...props }, ref) => {
|
|
3095
|
+
const id = React27.useId();
|
|
3096
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { ref, className: cn("space-y-2", className), ...props }) });
|
|
2946
3097
|
});
|
|
2947
3098
|
FormItem.displayName = "FormItem";
|
|
2948
|
-
var FormLabel =
|
|
3099
|
+
var FormLabel = React27.forwardRef(({ className, ...props }, ref) => {
|
|
2949
3100
|
const { error, formItemId } = useFormField();
|
|
2950
|
-
return /* @__PURE__ */ (0,
|
|
3101
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2951
3102
|
Label3,
|
|
2952
3103
|
{
|
|
2953
3104
|
ref,
|
|
@@ -2958,9 +3109,9 @@ var FormLabel = React26.forwardRef(({ className, ...props }, ref) => {
|
|
|
2958
3109
|
);
|
|
2959
3110
|
});
|
|
2960
3111
|
FormLabel.displayName = "FormLabel";
|
|
2961
|
-
var FormControl =
|
|
3112
|
+
var FormControl = React27.forwardRef(({ ...props }, ref) => {
|
|
2962
3113
|
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
2963
|
-
return /* @__PURE__ */ (0,
|
|
3114
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2964
3115
|
import_react_slot3.Slot,
|
|
2965
3116
|
{
|
|
2966
3117
|
ref,
|
|
@@ -2972,9 +3123,9 @@ var FormControl = React26.forwardRef(({ ...props }, ref) => {
|
|
|
2972
3123
|
);
|
|
2973
3124
|
});
|
|
2974
3125
|
FormControl.displayName = "FormControl";
|
|
2975
|
-
var FormDescription =
|
|
3126
|
+
var FormDescription = React27.forwardRef(({ className, ...props }, ref) => {
|
|
2976
3127
|
const { formDescriptionId } = useFormField();
|
|
2977
|
-
return /* @__PURE__ */ (0,
|
|
3128
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2978
3129
|
"p",
|
|
2979
3130
|
{
|
|
2980
3131
|
ref,
|
|
@@ -2985,13 +3136,13 @@ var FormDescription = React26.forwardRef(({ className, ...props }, ref) => {
|
|
|
2985
3136
|
);
|
|
2986
3137
|
});
|
|
2987
3138
|
FormDescription.displayName = "FormDescription";
|
|
2988
|
-
var FormMessage =
|
|
3139
|
+
var FormMessage = React27.forwardRef(({ className, children, ...props }, ref) => {
|
|
2989
3140
|
const { error, formMessageId } = useFormField();
|
|
2990
3141
|
const body = error ? String(error?.message ?? "") : children;
|
|
2991
3142
|
if (!body) {
|
|
2992
3143
|
return null;
|
|
2993
3144
|
}
|
|
2994
|
-
return /* @__PURE__ */ (0,
|
|
3145
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2995
3146
|
"p",
|
|
2996
3147
|
{
|
|
2997
3148
|
ref,
|
|
@@ -3005,12 +3156,12 @@ var FormMessage = React26.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
3005
3156
|
FormMessage.displayName = "FormMessage";
|
|
3006
3157
|
|
|
3007
3158
|
// src/components/ui/hover-card.tsx
|
|
3008
|
-
var
|
|
3159
|
+
var React28 = __toESM(require("react"), 1);
|
|
3009
3160
|
var HoverCardPrimitive = __toESM(require("@radix-ui/react-hover-card"), 1);
|
|
3010
|
-
var
|
|
3161
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
3011
3162
|
var HoverCard = HoverCardPrimitive.Root;
|
|
3012
3163
|
var HoverCardTrigger = HoverCardPrimitive.Trigger;
|
|
3013
|
-
var HoverCardContent =
|
|
3164
|
+
var HoverCardContent = React28.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
3014
3165
|
HoverCardPrimitive.Content,
|
|
3015
3166
|
{
|
|
3016
3167
|
ref,
|
|
@@ -3026,11 +3177,11 @@ var HoverCardContent = React27.forwardRef(({ className, align = "center", sideOf
|
|
|
3026
3177
|
HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
|
|
3027
3178
|
|
|
3028
3179
|
// src/components/ui/input.tsx
|
|
3029
|
-
var
|
|
3030
|
-
var
|
|
3031
|
-
var Input =
|
|
3180
|
+
var React29 = __toESM(require("react"), 1);
|
|
3181
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
3182
|
+
var Input = React29.forwardRef(
|
|
3032
3183
|
({ className, type, ...props }, ref) => {
|
|
3033
|
-
return /* @__PURE__ */ (0,
|
|
3184
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
3034
3185
|
"input",
|
|
3035
3186
|
{
|
|
3036
3187
|
type,
|
|
@@ -3047,11 +3198,11 @@ var Input = React28.forwardRef(
|
|
|
3047
3198
|
Input.displayName = "Input";
|
|
3048
3199
|
|
|
3049
3200
|
// src/components/ui/input-otp.tsx
|
|
3050
|
-
var
|
|
3201
|
+
var React30 = __toESM(require("react"), 1);
|
|
3051
3202
|
var import_input_otp = require("input-otp");
|
|
3052
3203
|
var import_lucide_react10 = require("lucide-react");
|
|
3053
|
-
var
|
|
3054
|
-
var InputOTP =
|
|
3204
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
3205
|
+
var InputOTP = React30.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3055
3206
|
import_input_otp.OTPInput,
|
|
3056
3207
|
{
|
|
3057
3208
|
ref,
|
|
@@ -3064,12 +3215,12 @@ var InputOTP = React29.forwardRef(({ className, containerClassName, ...props },
|
|
|
3064
3215
|
}
|
|
3065
3216
|
));
|
|
3066
3217
|
InputOTP.displayName = "InputOTP";
|
|
3067
|
-
var InputOTPGroup =
|
|
3218
|
+
var InputOTPGroup = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { ref, className: cn("flex items-center", className), ...props }));
|
|
3068
3219
|
InputOTPGroup.displayName = "InputOTPGroup";
|
|
3069
|
-
var InputOTPSlot =
|
|
3070
|
-
const inputOTPContext =
|
|
3220
|
+
var InputOTPSlot = React30.forwardRef(({ index, className, ...props }, ref) => {
|
|
3221
|
+
const inputOTPContext = React30.useContext(import_input_otp.OTPInputContext);
|
|
3071
3222
|
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
|
|
3072
|
-
return /* @__PURE__ */ (0,
|
|
3223
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
3073
3224
|
"div",
|
|
3074
3225
|
{
|
|
3075
3226
|
ref,
|
|
@@ -3081,46 +3232,46 @@ var InputOTPSlot = React29.forwardRef(({ index, className, ...props }, ref) => {
|
|
|
3081
3232
|
...props,
|
|
3082
3233
|
children: [
|
|
3083
3234
|
char,
|
|
3084
|
-
hasFakeCaret && /* @__PURE__ */ (0,
|
|
3235
|
+
hasFakeCaret && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) })
|
|
3085
3236
|
]
|
|
3086
3237
|
}
|
|
3087
3238
|
);
|
|
3088
3239
|
});
|
|
3089
3240
|
InputOTPSlot.displayName = "InputOTPSlot";
|
|
3090
|
-
var InputOTPSeparator =
|
|
3241
|
+
var InputOTPSeparator = React30.forwardRef(({ ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { ref, role: "separator", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_lucide_react10.Minus, {}) }));
|
|
3091
3242
|
InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
3092
3243
|
|
|
3093
3244
|
// src/components/ui/menubar.tsx
|
|
3094
|
-
var
|
|
3245
|
+
var React31 = __toESM(require("react"), 1);
|
|
3095
3246
|
var MenubarPrimitive = __toESM(require("@radix-ui/react-menubar"), 1);
|
|
3096
3247
|
var import_lucide_react11 = require("lucide-react");
|
|
3097
|
-
var
|
|
3248
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
3098
3249
|
function MenubarMenu({
|
|
3099
3250
|
...props
|
|
3100
3251
|
}) {
|
|
3101
|
-
return /* @__PURE__ */ (0,
|
|
3252
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(MenubarPrimitive.Menu, { ...props });
|
|
3102
3253
|
}
|
|
3103
3254
|
function MenubarGroup({
|
|
3104
3255
|
...props
|
|
3105
3256
|
}) {
|
|
3106
|
-
return /* @__PURE__ */ (0,
|
|
3257
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(MenubarPrimitive.Group, { ...props });
|
|
3107
3258
|
}
|
|
3108
3259
|
function MenubarPortal({
|
|
3109
3260
|
...props
|
|
3110
3261
|
}) {
|
|
3111
|
-
return /* @__PURE__ */ (0,
|
|
3262
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(MenubarPrimitive.Portal, { ...props });
|
|
3112
3263
|
}
|
|
3113
3264
|
function MenubarRadioGroup({
|
|
3114
3265
|
...props
|
|
3115
3266
|
}) {
|
|
3116
|
-
return /* @__PURE__ */ (0,
|
|
3267
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(MenubarPrimitive.RadioGroup, { ...props });
|
|
3117
3268
|
}
|
|
3118
3269
|
function MenubarSub({
|
|
3119
3270
|
...props
|
|
3120
3271
|
}) {
|
|
3121
|
-
return /* @__PURE__ */ (0,
|
|
3272
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(MenubarPrimitive.Sub, { "data-slot": "menubar-sub", ...props });
|
|
3122
3273
|
}
|
|
3123
|
-
var Menubar =
|
|
3274
|
+
var Menubar = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3124
3275
|
MenubarPrimitive.Root,
|
|
3125
3276
|
{
|
|
3126
3277
|
ref,
|
|
@@ -3132,7 +3283,7 @@ var Menubar = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
3132
3283
|
}
|
|
3133
3284
|
));
|
|
3134
3285
|
Menubar.displayName = MenubarPrimitive.Root.displayName;
|
|
3135
|
-
var MenubarTrigger =
|
|
3286
|
+
var MenubarTrigger = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3136
3287
|
MenubarPrimitive.Trigger,
|
|
3137
3288
|
{
|
|
3138
3289
|
ref,
|
|
@@ -3144,7 +3295,7 @@ var MenubarTrigger = React30.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
3144
3295
|
}
|
|
3145
3296
|
));
|
|
3146
3297
|
MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
|
|
3147
|
-
var MenubarSubTrigger =
|
|
3298
|
+
var MenubarSubTrigger = React31.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
3148
3299
|
MenubarPrimitive.SubTrigger,
|
|
3149
3300
|
{
|
|
3150
3301
|
ref,
|
|
@@ -3156,12 +3307,12 @@ var MenubarSubTrigger = React30.forwardRef(({ className, inset, children, ...pro
|
|
|
3156
3307
|
...props,
|
|
3157
3308
|
children: [
|
|
3158
3309
|
children,
|
|
3159
|
-
/* @__PURE__ */ (0,
|
|
3310
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react11.ChevronRight, { className: "ml-auto h-4 w-4" })
|
|
3160
3311
|
]
|
|
3161
3312
|
}
|
|
3162
3313
|
));
|
|
3163
3314
|
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
|
3164
|
-
var MenubarSubContent =
|
|
3315
|
+
var MenubarSubContent = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3165
3316
|
MenubarPrimitive.SubContent,
|
|
3166
3317
|
{
|
|
3167
3318
|
ref,
|
|
@@ -3173,8 +3324,8 @@ var MenubarSubContent = React30.forwardRef(({ className, ...props }, ref) => /*
|
|
|
3173
3324
|
}
|
|
3174
3325
|
));
|
|
3175
3326
|
MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
|
|
3176
|
-
var MenubarContent =
|
|
3177
|
-
({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3327
|
+
var MenubarContent = React31.forwardRef(
|
|
3328
|
+
({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(MenubarPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3178
3329
|
MenubarPrimitive.Content,
|
|
3179
3330
|
{
|
|
3180
3331
|
ref,
|
|
@@ -3190,7 +3341,7 @@ var MenubarContent = React30.forwardRef(
|
|
|
3190
3341
|
) })
|
|
3191
3342
|
);
|
|
3192
3343
|
MenubarContent.displayName = MenubarPrimitive.Content.displayName;
|
|
3193
|
-
var MenubarItem =
|
|
3344
|
+
var MenubarItem = React31.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3194
3345
|
MenubarPrimitive.Item,
|
|
3195
3346
|
{
|
|
3196
3347
|
ref,
|
|
@@ -3203,7 +3354,7 @@ var MenubarItem = React30.forwardRef(({ className, inset, ...props }, ref) => /*
|
|
|
3203
3354
|
}
|
|
3204
3355
|
));
|
|
3205
3356
|
MenubarItem.displayName = MenubarPrimitive.Item.displayName;
|
|
3206
|
-
var MenubarCheckboxItem =
|
|
3357
|
+
var MenubarCheckboxItem = React31.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
3207
3358
|
MenubarPrimitive.CheckboxItem,
|
|
3208
3359
|
{
|
|
3209
3360
|
ref,
|
|
@@ -3214,13 +3365,13 @@ var MenubarCheckboxItem = React30.forwardRef(({ className, children, checked, ..
|
|
|
3214
3365
|
checked,
|
|
3215
3366
|
...props,
|
|
3216
3367
|
children: [
|
|
3217
|
-
/* @__PURE__ */ (0,
|
|
3368
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react11.Check, { className: "h-4 w-4" }) }) }),
|
|
3218
3369
|
children
|
|
3219
3370
|
]
|
|
3220
3371
|
}
|
|
3221
3372
|
));
|
|
3222
3373
|
MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
|
|
3223
|
-
var MenubarRadioItem =
|
|
3374
|
+
var MenubarRadioItem = React31.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
3224
3375
|
MenubarPrimitive.RadioItem,
|
|
3225
3376
|
{
|
|
3226
3377
|
ref,
|
|
@@ -3230,13 +3381,13 @@ var MenubarRadioItem = React30.forwardRef(({ className, children, ...props }, re
|
|
|
3230
3381
|
),
|
|
3231
3382
|
...props,
|
|
3232
3383
|
children: [
|
|
3233
|
-
/* @__PURE__ */ (0,
|
|
3384
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react11.Circle, { className: "h-4 w-4 fill-current" }) }) }),
|
|
3234
3385
|
children
|
|
3235
3386
|
]
|
|
3236
3387
|
}
|
|
3237
3388
|
));
|
|
3238
3389
|
MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
|
|
3239
|
-
var MenubarLabel =
|
|
3390
|
+
var MenubarLabel = React31.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3240
3391
|
MenubarPrimitive.Label,
|
|
3241
3392
|
{
|
|
3242
3393
|
ref,
|
|
@@ -3249,7 +3400,7 @@ var MenubarLabel = React30.forwardRef(({ className, inset, ...props }, ref) => /
|
|
|
3249
3400
|
}
|
|
3250
3401
|
));
|
|
3251
3402
|
MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
|
|
3252
|
-
var MenubarSeparator =
|
|
3403
|
+
var MenubarSeparator = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3253
3404
|
MenubarPrimitive.Separator,
|
|
3254
3405
|
{
|
|
3255
3406
|
ref,
|
|
@@ -3262,7 +3413,7 @@ var MenubarShortcut = ({
|
|
|
3262
3413
|
className,
|
|
3263
3414
|
...props
|
|
3264
3415
|
}) => {
|
|
3265
|
-
return /* @__PURE__ */ (0,
|
|
3416
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3266
3417
|
"span",
|
|
3267
3418
|
{
|
|
3268
3419
|
className: cn(
|
|
@@ -3276,12 +3427,12 @@ var MenubarShortcut = ({
|
|
|
3276
3427
|
MenubarShortcut.displayname = "MenubarShortcut";
|
|
3277
3428
|
|
|
3278
3429
|
// src/components/ui/navigation-menu.tsx
|
|
3279
|
-
var
|
|
3430
|
+
var React32 = __toESM(require("react"), 1);
|
|
3280
3431
|
var NavigationMenuPrimitive = __toESM(require("@radix-ui/react-navigation-menu"), 1);
|
|
3281
|
-
var
|
|
3432
|
+
var import_class_variance_authority11 = require("class-variance-authority");
|
|
3282
3433
|
var import_lucide_react12 = require("lucide-react");
|
|
3283
|
-
var
|
|
3284
|
-
var NavigationMenu =
|
|
3434
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
3435
|
+
var NavigationMenu = React32.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
3285
3436
|
NavigationMenuPrimitive.Root,
|
|
3286
3437
|
{
|
|
3287
3438
|
ref,
|
|
@@ -3292,12 +3443,12 @@ var NavigationMenu = React31.forwardRef(({ className, children, ...props }, ref)
|
|
|
3292
3443
|
...props,
|
|
3293
3444
|
children: [
|
|
3294
3445
|
children,
|
|
3295
|
-
/* @__PURE__ */ (0,
|
|
3446
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(NavigationMenuViewport, {})
|
|
3296
3447
|
]
|
|
3297
3448
|
}
|
|
3298
3449
|
));
|
|
3299
3450
|
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
3300
|
-
var NavigationMenuList =
|
|
3451
|
+
var NavigationMenuList = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3301
3452
|
NavigationMenuPrimitive.List,
|
|
3302
3453
|
{
|
|
3303
3454
|
ref,
|
|
@@ -3310,10 +3461,10 @@ var NavigationMenuList = React31.forwardRef(({ className, ...props }, ref) => /*
|
|
|
3310
3461
|
));
|
|
3311
3462
|
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
3312
3463
|
var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
3313
|
-
var navigationMenuTriggerStyle = (0,
|
|
3464
|
+
var navigationMenuTriggerStyle = (0, import_class_variance_authority11.cva)(
|
|
3314
3465
|
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent"
|
|
3315
3466
|
);
|
|
3316
|
-
var NavigationMenuTrigger =
|
|
3467
|
+
var NavigationMenuTrigger = React32.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
3317
3468
|
NavigationMenuPrimitive.Trigger,
|
|
3318
3469
|
{
|
|
3319
3470
|
ref,
|
|
@@ -3322,7 +3473,7 @@ var NavigationMenuTrigger = React31.forwardRef(({ className, children, ...props
|
|
|
3322
3473
|
children: [
|
|
3323
3474
|
children,
|
|
3324
3475
|
" ",
|
|
3325
|
-
/* @__PURE__ */ (0,
|
|
3476
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3326
3477
|
import_lucide_react12.ChevronDown,
|
|
3327
3478
|
{
|
|
3328
3479
|
className: "relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180",
|
|
@@ -3333,7 +3484,7 @@ var NavigationMenuTrigger = React31.forwardRef(({ className, children, ...props
|
|
|
3333
3484
|
}
|
|
3334
3485
|
));
|
|
3335
3486
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
3336
|
-
var NavigationMenuContent =
|
|
3487
|
+
var NavigationMenuContent = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3337
3488
|
NavigationMenuPrimitive.Content,
|
|
3338
3489
|
{
|
|
3339
3490
|
ref,
|
|
@@ -3346,7 +3497,7 @@ var NavigationMenuContent = React31.forwardRef(({ className, ...props }, ref) =>
|
|
|
3346
3497
|
));
|
|
3347
3498
|
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
3348
3499
|
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
3349
|
-
var NavigationMenuViewport =
|
|
3500
|
+
var NavigationMenuViewport = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3350
3501
|
NavigationMenuPrimitive.Viewport,
|
|
3351
3502
|
{
|
|
3352
3503
|
className: cn(
|
|
@@ -3358,7 +3509,7 @@ var NavigationMenuViewport = React31.forwardRef(({ className, ...props }, ref) =
|
|
|
3358
3509
|
}
|
|
3359
3510
|
) }));
|
|
3360
3511
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
3361
|
-
var NavigationMenuIndicator =
|
|
3512
|
+
var NavigationMenuIndicator = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3362
3513
|
NavigationMenuPrimitive.Indicator,
|
|
3363
3514
|
{
|
|
3364
3515
|
ref,
|
|
@@ -3367,16 +3518,16 @@ var NavigationMenuIndicator = React31.forwardRef(({ className, ...props }, ref)
|
|
|
3367
3518
|
className
|
|
3368
3519
|
),
|
|
3369
3520
|
...props,
|
|
3370
|
-
children: /* @__PURE__ */ (0,
|
|
3521
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
3371
3522
|
}
|
|
3372
3523
|
));
|
|
3373
3524
|
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
3374
3525
|
|
|
3375
3526
|
// src/components/ui/pagination.tsx
|
|
3376
|
-
var
|
|
3527
|
+
var React33 = __toESM(require("react"), 1);
|
|
3377
3528
|
var import_lucide_react13 = require("lucide-react");
|
|
3378
|
-
var
|
|
3379
|
-
var Pagination = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
3529
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
3530
|
+
var Pagination = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3380
3531
|
"nav",
|
|
3381
3532
|
{
|
|
3382
3533
|
role: "navigation",
|
|
@@ -3386,7 +3537,7 @@ var Pagination = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
3386
3537
|
}
|
|
3387
3538
|
);
|
|
3388
3539
|
Pagination.displayName = "Pagination";
|
|
3389
|
-
var PaginationContent =
|
|
3540
|
+
var PaginationContent = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3390
3541
|
"ul",
|
|
3391
3542
|
{
|
|
3392
3543
|
ref,
|
|
@@ -3395,14 +3546,14 @@ var PaginationContent = React32.forwardRef(({ className, ...props }, ref) => /*
|
|
|
3395
3546
|
}
|
|
3396
3547
|
));
|
|
3397
3548
|
PaginationContent.displayName = "PaginationContent";
|
|
3398
|
-
var PaginationItem =
|
|
3549
|
+
var PaginationItem = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("li", { ref, className: cn("", className), ...props }));
|
|
3399
3550
|
PaginationItem.displayName = "PaginationItem";
|
|
3400
3551
|
var PaginationLink = ({
|
|
3401
3552
|
className,
|
|
3402
3553
|
isActive,
|
|
3403
3554
|
size = "icon",
|
|
3404
3555
|
...props
|
|
3405
|
-
}) => /* @__PURE__ */ (0,
|
|
3556
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3406
3557
|
"a",
|
|
3407
3558
|
{
|
|
3408
3559
|
"aria-current": isActive ? "page" : void 0,
|
|
@@ -3420,7 +3571,7 @@ PaginationLink.displayName = "PaginationLink";
|
|
|
3420
3571
|
var PaginationPrevious = ({
|
|
3421
3572
|
className,
|
|
3422
3573
|
...props
|
|
3423
|
-
}) => /* @__PURE__ */ (0,
|
|
3574
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
3424
3575
|
PaginationLink,
|
|
3425
3576
|
{
|
|
3426
3577
|
"aria-label": "Go to previous page",
|
|
@@ -3428,8 +3579,8 @@ var PaginationPrevious = ({
|
|
|
3428
3579
|
className: cn("gap-1 pl-2.5", className),
|
|
3429
3580
|
...props,
|
|
3430
3581
|
children: [
|
|
3431
|
-
/* @__PURE__ */ (0,
|
|
3432
|
-
/* @__PURE__ */ (0,
|
|
3582
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react13.ChevronLeft, { className: "h-4 w-4" }),
|
|
3583
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { children: "Previous" })
|
|
3433
3584
|
]
|
|
3434
3585
|
}
|
|
3435
3586
|
);
|
|
@@ -3437,7 +3588,7 @@ PaginationPrevious.displayName = "PaginationPrevious";
|
|
|
3437
3588
|
var PaginationNext = ({
|
|
3438
3589
|
className,
|
|
3439
3590
|
...props
|
|
3440
|
-
}) => /* @__PURE__ */ (0,
|
|
3591
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
3441
3592
|
PaginationLink,
|
|
3442
3593
|
{
|
|
3443
3594
|
"aria-label": "Go to next page",
|
|
@@ -3445,8 +3596,8 @@ var PaginationNext = ({
|
|
|
3445
3596
|
className: cn("gap-1 pr-2.5", className),
|
|
3446
3597
|
...props,
|
|
3447
3598
|
children: [
|
|
3448
|
-
/* @__PURE__ */ (0,
|
|
3449
|
-
/* @__PURE__ */ (0,
|
|
3599
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { children: "Next" }),
|
|
3600
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react13.ChevronRight, { className: "h-4 w-4" })
|
|
3450
3601
|
]
|
|
3451
3602
|
}
|
|
3452
3603
|
);
|
|
@@ -3454,28 +3605,28 @@ PaginationNext.displayName = "PaginationNext";
|
|
|
3454
3605
|
var PaginationEllipsis = ({
|
|
3455
3606
|
className,
|
|
3456
3607
|
...props
|
|
3457
|
-
}) => /* @__PURE__ */ (0,
|
|
3608
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
3458
3609
|
"span",
|
|
3459
3610
|
{
|
|
3460
3611
|
"aria-hidden": true,
|
|
3461
3612
|
className: cn("flex h-9 w-9 items-center justify-center", className),
|
|
3462
3613
|
...props,
|
|
3463
3614
|
children: [
|
|
3464
|
-
/* @__PURE__ */ (0,
|
|
3465
|
-
/* @__PURE__ */ (0,
|
|
3615
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react13.MoreHorizontal, { className: "h-4 w-4" }),
|
|
3616
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "sr-only", children: "More pages" })
|
|
3466
3617
|
]
|
|
3467
3618
|
}
|
|
3468
3619
|
);
|
|
3469
3620
|
PaginationEllipsis.displayName = "PaginationEllipsis";
|
|
3470
3621
|
|
|
3471
3622
|
// src/components/ui/popover.tsx
|
|
3472
|
-
var
|
|
3623
|
+
var React34 = __toESM(require("react"), 1);
|
|
3473
3624
|
var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"), 1);
|
|
3474
|
-
var
|
|
3625
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
3475
3626
|
var Popover = PopoverPrimitive.Root;
|
|
3476
3627
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
3477
3628
|
var PopoverAnchor = PopoverPrimitive.Anchor;
|
|
3478
|
-
var PopoverContent =
|
|
3629
|
+
var PopoverContent = React34.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3479
3630
|
PopoverPrimitive.Content,
|
|
3480
3631
|
{
|
|
3481
3632
|
ref,
|
|
@@ -3491,10 +3642,10 @@ var PopoverContent = React33.forwardRef(({ className, align = "center", sideOffs
|
|
|
3491
3642
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
3492
3643
|
|
|
3493
3644
|
// src/components/ui/progress.tsx
|
|
3494
|
-
var
|
|
3645
|
+
var React35 = __toESM(require("react"), 1);
|
|
3495
3646
|
var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"), 1);
|
|
3496
|
-
var
|
|
3497
|
-
var Progress =
|
|
3647
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
3648
|
+
var Progress = React35.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3498
3649
|
ProgressPrimitive.Root,
|
|
3499
3650
|
{
|
|
3500
3651
|
ref,
|
|
@@ -3503,7 +3654,7 @@ var Progress = React34.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
|
3503
3654
|
className
|
|
3504
3655
|
),
|
|
3505
3656
|
...props,
|
|
3506
|
-
children: /* @__PURE__ */ (0,
|
|
3657
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3507
3658
|
ProgressPrimitive.Indicator,
|
|
3508
3659
|
{
|
|
3509
3660
|
className: "h-full w-full flex-1 bg-primary transition-all",
|
|
@@ -3515,12 +3666,12 @@ var Progress = React34.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
|
3515
3666
|
Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
3516
3667
|
|
|
3517
3668
|
// src/components/ui/radio-group.tsx
|
|
3518
|
-
var
|
|
3669
|
+
var React36 = __toESM(require("react"), 1);
|
|
3519
3670
|
var RadioGroupPrimitive = __toESM(require("@radix-ui/react-radio-group"), 1);
|
|
3520
3671
|
var import_lucide_react14 = require("lucide-react");
|
|
3521
|
-
var
|
|
3522
|
-
var RadioGroup4 =
|
|
3523
|
-
return /* @__PURE__ */ (0,
|
|
3672
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
3673
|
+
var RadioGroup4 = React36.forwardRef(({ className, ...props }, ref) => {
|
|
3674
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3524
3675
|
RadioGroupPrimitive.Root,
|
|
3525
3676
|
{
|
|
3526
3677
|
className: cn("grid gap-2", className),
|
|
@@ -3530,8 +3681,8 @@ var RadioGroup4 = React35.forwardRef(({ className, ...props }, ref) => {
|
|
|
3530
3681
|
);
|
|
3531
3682
|
});
|
|
3532
3683
|
RadioGroup4.displayName = RadioGroupPrimitive.Root.displayName;
|
|
3533
|
-
var RadioGroupItem =
|
|
3534
|
-
return /* @__PURE__ */ (0,
|
|
3684
|
+
var RadioGroupItem = React36.forwardRef(({ className, ...props }, ref) => {
|
|
3685
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3535
3686
|
RadioGroupPrimitive.Item,
|
|
3536
3687
|
{
|
|
3537
3688
|
ref,
|
|
@@ -3540,7 +3691,7 @@ var RadioGroupItem = React35.forwardRef(({ className, ...props }, ref) => {
|
|
|
3540
3691
|
className
|
|
3541
3692
|
),
|
|
3542
3693
|
...props,
|
|
3543
|
-
children: /* @__PURE__ */ (0,
|
|
3694
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_lucide_react14.Circle, { className: "h-3.5 w-3.5 fill-primary" }) })
|
|
3544
3695
|
}
|
|
3545
3696
|
);
|
|
3546
3697
|
});
|
|
@@ -3549,11 +3700,11 @@ RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
|
|
|
3549
3700
|
// src/components/ui/resizable.tsx
|
|
3550
3701
|
var import_lucide_react15 = require("lucide-react");
|
|
3551
3702
|
var import_react_resizable_panels = require("react-resizable-panels");
|
|
3552
|
-
var
|
|
3703
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
3553
3704
|
var ResizablePanelGroup = ({
|
|
3554
3705
|
className,
|
|
3555
3706
|
...props
|
|
3556
|
-
}) => /* @__PURE__ */ (0,
|
|
3707
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3557
3708
|
import_react_resizable_panels.Group,
|
|
3558
3709
|
{
|
|
3559
3710
|
className: cn(
|
|
@@ -3568,7 +3719,7 @@ var ResizableHandle = ({
|
|
|
3568
3719
|
withHandle,
|
|
3569
3720
|
className,
|
|
3570
3721
|
...props
|
|
3571
|
-
}) => /* @__PURE__ */ (0,
|
|
3722
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3572
3723
|
import_react_resizable_panels.Separator,
|
|
3573
3724
|
{
|
|
3574
3725
|
className: cn(
|
|
@@ -3576,29 +3727,29 @@ var ResizableHandle = ({
|
|
|
3576
3727
|
className
|
|
3577
3728
|
),
|
|
3578
3729
|
...props,
|
|
3579
|
-
children: withHandle && /* @__PURE__ */ (0,
|
|
3730
|
+
children: withHandle && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_lucide_react15.GripVertical, { className: "h-2.5 w-2.5" }) })
|
|
3580
3731
|
}
|
|
3581
3732
|
);
|
|
3582
3733
|
|
|
3583
3734
|
// src/components/ui/scroll-area.tsx
|
|
3584
|
-
var
|
|
3735
|
+
var React37 = __toESM(require("react"), 1);
|
|
3585
3736
|
var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"), 1);
|
|
3586
|
-
var
|
|
3587
|
-
var ScrollArea =
|
|
3737
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
3738
|
+
var ScrollArea = React37.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
3588
3739
|
ScrollAreaPrimitive.Root,
|
|
3589
3740
|
{
|
|
3590
3741
|
ref,
|
|
3591
3742
|
className: cn("relative overflow-hidden", className),
|
|
3592
3743
|
...props,
|
|
3593
3744
|
children: [
|
|
3594
|
-
/* @__PURE__ */ (0,
|
|
3595
|
-
/* @__PURE__ */ (0,
|
|
3596
|
-
/* @__PURE__ */ (0,
|
|
3745
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(ScrollAreaPrimitive.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
|
|
3746
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(ScrollBar, {}),
|
|
3747
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(ScrollAreaPrimitive.Corner, {})
|
|
3597
3748
|
]
|
|
3598
3749
|
}
|
|
3599
3750
|
));
|
|
3600
3751
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
3601
|
-
var ScrollBar =
|
|
3752
|
+
var ScrollBar = React37.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
3602
3753
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
3603
3754
|
{
|
|
3604
3755
|
ref,
|
|
@@ -3610,20 +3761,20 @@ var ScrollBar = React36.forwardRef(({ className, orientation = "vertical", ...pr
|
|
|
3610
3761
|
className
|
|
3611
3762
|
),
|
|
3612
3763
|
...props,
|
|
3613
|
-
children: /* @__PURE__ */ (0,
|
|
3764
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
3614
3765
|
}
|
|
3615
3766
|
));
|
|
3616
3767
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
3617
3768
|
|
|
3618
3769
|
// src/components/ui/select.tsx
|
|
3619
|
-
var
|
|
3770
|
+
var React38 = __toESM(require("react"), 1);
|
|
3620
3771
|
var SelectPrimitive = __toESM(require("@radix-ui/react-select"), 1);
|
|
3621
3772
|
var import_lucide_react16 = require("lucide-react");
|
|
3622
|
-
var
|
|
3773
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
3623
3774
|
var Select = SelectPrimitive.Root;
|
|
3624
3775
|
var SelectGroup = SelectPrimitive.Group;
|
|
3625
3776
|
var SelectValue = SelectPrimitive.Value;
|
|
3626
|
-
var SelectTrigger =
|
|
3777
|
+
var SelectTrigger = React38.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
|
|
3627
3778
|
SelectPrimitive.Trigger,
|
|
3628
3779
|
{
|
|
3629
3780
|
ref,
|
|
@@ -3634,12 +3785,12 @@ var SelectTrigger = React37.forwardRef(({ className, children, ...props }, ref)
|
|
|
3634
3785
|
...props,
|
|
3635
3786
|
children: [
|
|
3636
3787
|
children,
|
|
3637
|
-
/* @__PURE__ */ (0,
|
|
3788
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react16.ChevronDown, { className: "h-4 w-4 opacity-50" }) })
|
|
3638
3789
|
]
|
|
3639
3790
|
}
|
|
3640
3791
|
));
|
|
3641
3792
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
3642
|
-
var SelectScrollUpButton =
|
|
3793
|
+
var SelectScrollUpButton = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3643
3794
|
SelectPrimitive.ScrollUpButton,
|
|
3644
3795
|
{
|
|
3645
3796
|
ref,
|
|
@@ -3648,11 +3799,11 @@ var SelectScrollUpButton = React37.forwardRef(({ className, ...props }, ref) =>
|
|
|
3648
3799
|
className
|
|
3649
3800
|
),
|
|
3650
3801
|
...props,
|
|
3651
|
-
children: /* @__PURE__ */ (0,
|
|
3802
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react16.ChevronUp, { className: "h-4 w-4" })
|
|
3652
3803
|
}
|
|
3653
3804
|
));
|
|
3654
3805
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
3655
|
-
var SelectScrollDownButton =
|
|
3806
|
+
var SelectScrollDownButton = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3656
3807
|
SelectPrimitive.ScrollDownButton,
|
|
3657
3808
|
{
|
|
3658
3809
|
ref,
|
|
@@ -3661,11 +3812,11 @@ var SelectScrollDownButton = React37.forwardRef(({ className, ...props }, ref) =
|
|
|
3661
3812
|
className
|
|
3662
3813
|
),
|
|
3663
3814
|
...props,
|
|
3664
|
-
children: /* @__PURE__ */ (0,
|
|
3815
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react16.ChevronDown, { className: "h-4 w-4" })
|
|
3665
3816
|
}
|
|
3666
3817
|
));
|
|
3667
3818
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
3668
|
-
var SelectContent =
|
|
3819
|
+
var SelectContent = React38.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
|
|
3669
3820
|
SelectPrimitive.Content,
|
|
3670
3821
|
{
|
|
3671
3822
|
ref,
|
|
@@ -3677,8 +3828,8 @@ var SelectContent = React37.forwardRef(({ className, children, position = "poppe
|
|
|
3677
3828
|
position,
|
|
3678
3829
|
...props,
|
|
3679
3830
|
children: [
|
|
3680
|
-
/* @__PURE__ */ (0,
|
|
3681
|
-
/* @__PURE__ */ (0,
|
|
3831
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(SelectScrollUpButton, {}),
|
|
3832
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3682
3833
|
SelectPrimitive.Viewport,
|
|
3683
3834
|
{
|
|
3684
3835
|
className: cn(
|
|
@@ -3688,12 +3839,12 @@ var SelectContent = React37.forwardRef(({ className, children, position = "poppe
|
|
|
3688
3839
|
children
|
|
3689
3840
|
}
|
|
3690
3841
|
),
|
|
3691
|
-
/* @__PURE__ */ (0,
|
|
3842
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(SelectScrollDownButton, {})
|
|
3692
3843
|
]
|
|
3693
3844
|
}
|
|
3694
3845
|
) }));
|
|
3695
3846
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
3696
|
-
var SelectLabel =
|
|
3847
|
+
var SelectLabel = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3697
3848
|
SelectPrimitive.Label,
|
|
3698
3849
|
{
|
|
3699
3850
|
ref,
|
|
@@ -3702,7 +3853,7 @@ var SelectLabel = React37.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3702
3853
|
}
|
|
3703
3854
|
));
|
|
3704
3855
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
3705
|
-
var SelectItem =
|
|
3856
|
+
var SelectItem = React38.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
|
|
3706
3857
|
SelectPrimitive.Item,
|
|
3707
3858
|
{
|
|
3708
3859
|
ref,
|
|
@@ -3712,13 +3863,13 @@ var SelectItem = React37.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
3712
3863
|
),
|
|
3713
3864
|
...props,
|
|
3714
3865
|
children: [
|
|
3715
|
-
/* @__PURE__ */ (0,
|
|
3716
|
-
/* @__PURE__ */ (0,
|
|
3866
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react16.Check, { className: "h-4 w-4" }) }) }),
|
|
3867
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(SelectPrimitive.ItemText, { children })
|
|
3717
3868
|
]
|
|
3718
3869
|
}
|
|
3719
3870
|
));
|
|
3720
3871
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
3721
|
-
var SelectSeparator =
|
|
3872
|
+
var SelectSeparator = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3722
3873
|
SelectPrimitive.Separator,
|
|
3723
3874
|
{
|
|
3724
3875
|
ref,
|
|
@@ -3729,11 +3880,11 @@ var SelectSeparator = React37.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
3729
3880
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
3730
3881
|
|
|
3731
3882
|
// src/components/ui/separator.tsx
|
|
3732
|
-
var
|
|
3883
|
+
var React39 = __toESM(require("react"), 1);
|
|
3733
3884
|
var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"), 1);
|
|
3734
|
-
var
|
|
3735
|
-
var Separator6 =
|
|
3736
|
-
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3885
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
3886
|
+
var Separator6 = React39.forwardRef(
|
|
3887
|
+
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
3737
3888
|
SeparatorPrimitive.Root,
|
|
3738
3889
|
{
|
|
3739
3890
|
ref,
|
|
@@ -3751,16 +3902,16 @@ var Separator6 = React38.forwardRef(
|
|
|
3751
3902
|
Separator6.displayName = SeparatorPrimitive.Root.displayName;
|
|
3752
3903
|
|
|
3753
3904
|
// src/components/ui/sheet.tsx
|
|
3754
|
-
var
|
|
3905
|
+
var React40 = __toESM(require("react"), 1);
|
|
3755
3906
|
var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
3756
|
-
var
|
|
3907
|
+
var import_class_variance_authority12 = require("class-variance-authority");
|
|
3757
3908
|
var import_lucide_react17 = require("lucide-react");
|
|
3758
|
-
var
|
|
3909
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
3759
3910
|
var Sheet = SheetPrimitive.Root;
|
|
3760
3911
|
var SheetTrigger = SheetPrimitive.Trigger;
|
|
3761
3912
|
var SheetClose = SheetPrimitive.Close;
|
|
3762
3913
|
var SheetPortal = SheetPrimitive.Portal;
|
|
3763
|
-
var SheetOverlay =
|
|
3914
|
+
var SheetOverlay = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
3764
3915
|
SheetPrimitive.Overlay,
|
|
3765
3916
|
{
|
|
3766
3917
|
className: cn(
|
|
@@ -3772,7 +3923,7 @@ var SheetOverlay = React39.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
3772
3923
|
}
|
|
3773
3924
|
));
|
|
3774
3925
|
SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
|
|
3775
|
-
var sheetVariants = (0,
|
|
3926
|
+
var sheetVariants = (0, import_class_variance_authority12.cva)(
|
|
3776
3927
|
"fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
3777
3928
|
{
|
|
3778
3929
|
variants: {
|
|
@@ -3788,18 +3939,18 @@ var sheetVariants = (0, import_class_variance_authority11.cva)(
|
|
|
3788
3939
|
}
|
|
3789
3940
|
}
|
|
3790
3941
|
);
|
|
3791
|
-
var SheetContent =
|
|
3792
|
-
/* @__PURE__ */ (0,
|
|
3793
|
-
/* @__PURE__ */ (0,
|
|
3942
|
+
var SheetContent = React40.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(SheetPortal, { children: [
|
|
3943
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(SheetOverlay, {}),
|
|
3944
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
3794
3945
|
SheetPrimitive.Content,
|
|
3795
3946
|
{
|
|
3796
3947
|
ref,
|
|
3797
3948
|
className: cn(sheetVariants({ side }), className),
|
|
3798
3949
|
...props,
|
|
3799
3950
|
children: [
|
|
3800
|
-
/* @__PURE__ */ (0,
|
|
3801
|
-
/* @__PURE__ */ (0,
|
|
3802
|
-
/* @__PURE__ */ (0,
|
|
3951
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
|
|
3952
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_lucide_react17.X, { className: "h-4 w-4" }),
|
|
3953
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "sr-only", children: "Close" })
|
|
3803
3954
|
] }),
|
|
3804
3955
|
children
|
|
3805
3956
|
]
|
|
@@ -3810,7 +3961,7 @@ SheetContent.displayName = SheetPrimitive.Content.displayName;
|
|
|
3810
3961
|
var SheetHeader = ({
|
|
3811
3962
|
className,
|
|
3812
3963
|
...props
|
|
3813
|
-
}) => /* @__PURE__ */ (0,
|
|
3964
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
3814
3965
|
"div",
|
|
3815
3966
|
{
|
|
3816
3967
|
className: cn(
|
|
@@ -3824,7 +3975,7 @@ SheetHeader.displayName = "SheetHeader";
|
|
|
3824
3975
|
var SheetFooter = ({
|
|
3825
3976
|
className,
|
|
3826
3977
|
...props
|
|
3827
|
-
}) => /* @__PURE__ */ (0,
|
|
3978
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
3828
3979
|
"div",
|
|
3829
3980
|
{
|
|
3830
3981
|
className: cn(
|
|
@@ -3835,7 +3986,7 @@ var SheetFooter = ({
|
|
|
3835
3986
|
}
|
|
3836
3987
|
);
|
|
3837
3988
|
SheetFooter.displayName = "SheetFooter";
|
|
3838
|
-
var SheetTitle =
|
|
3989
|
+
var SheetTitle = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
3839
3990
|
SheetPrimitive.Title,
|
|
3840
3991
|
{
|
|
3841
3992
|
ref,
|
|
@@ -3844,7 +3995,7 @@ var SheetTitle = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
3844
3995
|
}
|
|
3845
3996
|
));
|
|
3846
3997
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
3847
|
-
var SheetDescription =
|
|
3998
|
+
var SheetDescription = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
3848
3999
|
SheetPrimitive.Description,
|
|
3849
4000
|
{
|
|
3850
4001
|
ref,
|
|
@@ -3855,18 +4006,18 @@ var SheetDescription = React39.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
3855
4006
|
SheetDescription.displayName = SheetPrimitive.Description.displayName;
|
|
3856
4007
|
|
|
3857
4008
|
// src/components/ui/sidebar.tsx
|
|
3858
|
-
var
|
|
4009
|
+
var React42 = __toESM(require("react"), 1);
|
|
3859
4010
|
var import_react_slot4 = require("@radix-ui/react-slot");
|
|
3860
|
-
var
|
|
4011
|
+
var import_class_variance_authority13 = require("class-variance-authority");
|
|
3861
4012
|
var import_lucide_react18 = require("lucide-react");
|
|
3862
4013
|
|
|
3863
4014
|
// src/components/ui/skeleton.tsx
|
|
3864
|
-
var
|
|
4015
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
3865
4016
|
function Skeleton({
|
|
3866
4017
|
className,
|
|
3867
4018
|
...props
|
|
3868
4019
|
}) {
|
|
3869
|
-
return /* @__PURE__ */ (0,
|
|
4020
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
3870
4021
|
"div",
|
|
3871
4022
|
{
|
|
3872
4023
|
className: cn("animate-pulse rounded-md bg-primary/10", className),
|
|
@@ -3876,13 +4027,13 @@ function Skeleton({
|
|
|
3876
4027
|
}
|
|
3877
4028
|
|
|
3878
4029
|
// src/components/ui/tooltip.tsx
|
|
3879
|
-
var
|
|
4030
|
+
var React41 = __toESM(require("react"), 1);
|
|
3880
4031
|
var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"), 1);
|
|
3881
|
-
var
|
|
4032
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
3882
4033
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
3883
4034
|
var Tooltip2 = TooltipPrimitive.Root;
|
|
3884
4035
|
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
3885
|
-
var TooltipContent =
|
|
4036
|
+
var TooltipContent = React41.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(TooltipPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3886
4037
|
TooltipPrimitive.Content,
|
|
3887
4038
|
{
|
|
3888
4039
|
ref,
|
|
@@ -3897,22 +4048,22 @@ var TooltipContent = React40.forwardRef(({ className, sideOffset = 4, ...props }
|
|
|
3897
4048
|
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
3898
4049
|
|
|
3899
4050
|
// src/components/ui/sidebar.tsx
|
|
3900
|
-
var
|
|
4051
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
3901
4052
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
3902
4053
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
3903
4054
|
var SIDEBAR_WIDTH = "16rem";
|
|
3904
4055
|
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
3905
4056
|
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
3906
4057
|
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
3907
|
-
var SidebarContext =
|
|
4058
|
+
var SidebarContext = React42.createContext(null);
|
|
3908
4059
|
function useSidebar() {
|
|
3909
|
-
const context =
|
|
4060
|
+
const context = React42.useContext(SidebarContext);
|
|
3910
4061
|
if (!context) {
|
|
3911
4062
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
3912
4063
|
}
|
|
3913
4064
|
return context;
|
|
3914
4065
|
}
|
|
3915
|
-
var SidebarProvider =
|
|
4066
|
+
var SidebarProvider = React42.forwardRef(
|
|
3916
4067
|
({
|
|
3917
4068
|
defaultOpen = true,
|
|
3918
4069
|
open: openProp,
|
|
@@ -3923,10 +4074,10 @@ var SidebarProvider = React41.forwardRef(
|
|
|
3923
4074
|
...props
|
|
3924
4075
|
}, ref) => {
|
|
3925
4076
|
const isMobile = useIsMobile();
|
|
3926
|
-
const [openMobile, setOpenMobile] =
|
|
3927
|
-
const [_open, _setOpen] =
|
|
4077
|
+
const [openMobile, setOpenMobile] = React42.useState(false);
|
|
4078
|
+
const [_open, _setOpen] = React42.useState(defaultOpen);
|
|
3928
4079
|
const open = openProp ?? _open;
|
|
3929
|
-
const setOpen =
|
|
4080
|
+
const setOpen = React42.useCallback(
|
|
3930
4081
|
(value) => {
|
|
3931
4082
|
const openState = typeof value === "function" ? value(open) : value;
|
|
3932
4083
|
if (setOpenProp) {
|
|
@@ -3938,10 +4089,10 @@ var SidebarProvider = React41.forwardRef(
|
|
|
3938
4089
|
},
|
|
3939
4090
|
[setOpenProp, open]
|
|
3940
4091
|
);
|
|
3941
|
-
const toggleSidebar =
|
|
4092
|
+
const toggleSidebar = React42.useCallback(() => {
|
|
3942
4093
|
return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
|
|
3943
4094
|
}, [isMobile, setOpen, setOpenMobile]);
|
|
3944
|
-
|
|
4095
|
+
React42.useEffect(() => {
|
|
3945
4096
|
const handleKeyDown = (event) => {
|
|
3946
4097
|
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
3947
4098
|
event.preventDefault();
|
|
@@ -3952,7 +4103,7 @@ var SidebarProvider = React41.forwardRef(
|
|
|
3952
4103
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
3953
4104
|
}, [toggleSidebar]);
|
|
3954
4105
|
const state = open ? "expanded" : "collapsed";
|
|
3955
|
-
const contextValue =
|
|
4106
|
+
const contextValue = React42.useMemo(
|
|
3956
4107
|
() => ({
|
|
3957
4108
|
state,
|
|
3958
4109
|
open,
|
|
@@ -3964,7 +4115,7 @@ var SidebarProvider = React41.forwardRef(
|
|
|
3964
4115
|
}),
|
|
3965
4116
|
[state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
|
|
3966
4117
|
);
|
|
3967
|
-
return /* @__PURE__ */ (0,
|
|
4118
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3968
4119
|
"div",
|
|
3969
4120
|
{
|
|
3970
4121
|
style: {
|
|
@@ -3984,7 +4135,7 @@ var SidebarProvider = React41.forwardRef(
|
|
|
3984
4135
|
}
|
|
3985
4136
|
);
|
|
3986
4137
|
SidebarProvider.displayName = "SidebarProvider";
|
|
3987
|
-
var Sidebar =
|
|
4138
|
+
var Sidebar = React42.forwardRef(
|
|
3988
4139
|
({
|
|
3989
4140
|
side = "left",
|
|
3990
4141
|
variant = "sidebar",
|
|
@@ -3995,7 +4146,7 @@ var Sidebar = React41.forwardRef(
|
|
|
3995
4146
|
}, ref) => {
|
|
3996
4147
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
3997
4148
|
if (collapsible === "none") {
|
|
3998
|
-
return /* @__PURE__ */ (0,
|
|
4149
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3999
4150
|
"div",
|
|
4000
4151
|
{
|
|
4001
4152
|
className: cn(
|
|
@@ -4009,7 +4160,7 @@ var Sidebar = React41.forwardRef(
|
|
|
4009
4160
|
);
|
|
4010
4161
|
}
|
|
4011
4162
|
if (isMobile) {
|
|
4012
|
-
return /* @__PURE__ */ (0,
|
|
4163
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
4013
4164
|
SheetContent,
|
|
4014
4165
|
{
|
|
4015
4166
|
"data-sidebar": "sidebar",
|
|
@@ -4020,16 +4171,16 @@ var Sidebar = React41.forwardRef(
|
|
|
4020
4171
|
},
|
|
4021
4172
|
side,
|
|
4022
4173
|
children: [
|
|
4023
|
-
/* @__PURE__ */ (0,
|
|
4024
|
-
/* @__PURE__ */ (0,
|
|
4025
|
-
/* @__PURE__ */ (0,
|
|
4174
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(SheetHeader, { className: "sr-only", children: [
|
|
4175
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(SheetTitle, { children: "Sidebar" }),
|
|
4176
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(SheetDescription, { children: "Displays the mobile sidebar." })
|
|
4026
4177
|
] }),
|
|
4027
|
-
/* @__PURE__ */ (0,
|
|
4178
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "flex h-full w-full flex-col", children })
|
|
4028
4179
|
]
|
|
4029
4180
|
}
|
|
4030
4181
|
) });
|
|
4031
4182
|
}
|
|
4032
|
-
return /* @__PURE__ */ (0,
|
|
4183
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
4033
4184
|
"div",
|
|
4034
4185
|
{
|
|
4035
4186
|
ref,
|
|
@@ -4039,7 +4190,7 @@ var Sidebar = React41.forwardRef(
|
|
|
4039
4190
|
"data-variant": variant,
|
|
4040
4191
|
"data-side": side,
|
|
4041
4192
|
children: [
|
|
4042
|
-
/* @__PURE__ */ (0,
|
|
4193
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4043
4194
|
"div",
|
|
4044
4195
|
{
|
|
4045
4196
|
className: cn(
|
|
@@ -4050,7 +4201,7 @@ var Sidebar = React41.forwardRef(
|
|
|
4050
4201
|
)
|
|
4051
4202
|
}
|
|
4052
4203
|
),
|
|
4053
|
-
/* @__PURE__ */ (0,
|
|
4204
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4054
4205
|
"div",
|
|
4055
4206
|
{
|
|
4056
4207
|
className: cn(
|
|
@@ -4061,7 +4212,7 @@ var Sidebar = React41.forwardRef(
|
|
|
4061
4212
|
className
|
|
4062
4213
|
),
|
|
4063
4214
|
...props,
|
|
4064
|
-
children: /* @__PURE__ */ (0,
|
|
4215
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4065
4216
|
"div",
|
|
4066
4217
|
{
|
|
4067
4218
|
"data-sidebar": "sidebar",
|
|
@@ -4077,9 +4228,9 @@ var Sidebar = React41.forwardRef(
|
|
|
4077
4228
|
}
|
|
4078
4229
|
);
|
|
4079
4230
|
Sidebar.displayName = "Sidebar";
|
|
4080
|
-
var SidebarTrigger =
|
|
4231
|
+
var SidebarTrigger = React42.forwardRef(({ className, onClick, ...props }, ref) => {
|
|
4081
4232
|
const { toggleSidebar } = useSidebar();
|
|
4082
|
-
return /* @__PURE__ */ (0,
|
|
4233
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
4083
4234
|
Button,
|
|
4084
4235
|
{
|
|
4085
4236
|
ref,
|
|
@@ -4093,16 +4244,16 @@ var SidebarTrigger = React41.forwardRef(({ className, onClick, ...props }, ref)
|
|
|
4093
4244
|
},
|
|
4094
4245
|
...props,
|
|
4095
4246
|
children: [
|
|
4096
|
-
/* @__PURE__ */ (0,
|
|
4097
|
-
/* @__PURE__ */ (0,
|
|
4247
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_lucide_react18.PanelLeft, {}),
|
|
4248
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
4098
4249
|
]
|
|
4099
4250
|
}
|
|
4100
4251
|
);
|
|
4101
4252
|
});
|
|
4102
4253
|
SidebarTrigger.displayName = "SidebarTrigger";
|
|
4103
|
-
var SidebarRail =
|
|
4254
|
+
var SidebarRail = React42.forwardRef(({ className, ...props }, ref) => {
|
|
4104
4255
|
const { toggleSidebar } = useSidebar();
|
|
4105
|
-
return /* @__PURE__ */ (0,
|
|
4256
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4106
4257
|
"button",
|
|
4107
4258
|
{
|
|
4108
4259
|
ref,
|
|
@@ -4125,8 +4276,8 @@ var SidebarRail = React41.forwardRef(({ className, ...props }, ref) => {
|
|
|
4125
4276
|
);
|
|
4126
4277
|
});
|
|
4127
4278
|
SidebarRail.displayName = "SidebarRail";
|
|
4128
|
-
var SidebarInset =
|
|
4129
|
-
return /* @__PURE__ */ (0,
|
|
4279
|
+
var SidebarInset = React42.forwardRef(({ className, ...props }, ref) => {
|
|
4280
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4130
4281
|
"main",
|
|
4131
4282
|
{
|
|
4132
4283
|
ref,
|
|
@@ -4140,8 +4291,8 @@ var SidebarInset = React41.forwardRef(({ className, ...props }, ref) => {
|
|
|
4140
4291
|
);
|
|
4141
4292
|
});
|
|
4142
4293
|
SidebarInset.displayName = "SidebarInset";
|
|
4143
|
-
var SidebarInput =
|
|
4144
|
-
return /* @__PURE__ */ (0,
|
|
4294
|
+
var SidebarInput = React42.forwardRef(({ className, ...props }, ref) => {
|
|
4295
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4145
4296
|
Input,
|
|
4146
4297
|
{
|
|
4147
4298
|
ref,
|
|
@@ -4155,8 +4306,8 @@ var SidebarInput = React41.forwardRef(({ className, ...props }, ref) => {
|
|
|
4155
4306
|
);
|
|
4156
4307
|
});
|
|
4157
4308
|
SidebarInput.displayName = "SidebarInput";
|
|
4158
|
-
var SidebarHeader =
|
|
4159
|
-
return /* @__PURE__ */ (0,
|
|
4309
|
+
var SidebarHeader = React42.forwardRef(({ className, ...props }, ref) => {
|
|
4310
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4160
4311
|
"div",
|
|
4161
4312
|
{
|
|
4162
4313
|
ref,
|
|
@@ -4167,8 +4318,8 @@ var SidebarHeader = React41.forwardRef(({ className, ...props }, ref) => {
|
|
|
4167
4318
|
);
|
|
4168
4319
|
});
|
|
4169
4320
|
SidebarHeader.displayName = "SidebarHeader";
|
|
4170
|
-
var SidebarFooter =
|
|
4171
|
-
return /* @__PURE__ */ (0,
|
|
4321
|
+
var SidebarFooter = React42.forwardRef(({ className, ...props }, ref) => {
|
|
4322
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4172
4323
|
"div",
|
|
4173
4324
|
{
|
|
4174
4325
|
ref,
|
|
@@ -4179,8 +4330,8 @@ var SidebarFooter = React41.forwardRef(({ className, ...props }, ref) => {
|
|
|
4179
4330
|
);
|
|
4180
4331
|
});
|
|
4181
4332
|
SidebarFooter.displayName = "SidebarFooter";
|
|
4182
|
-
var SidebarSeparator =
|
|
4183
|
-
return /* @__PURE__ */ (0,
|
|
4333
|
+
var SidebarSeparator = React42.forwardRef(({ className, ...props }, ref) => {
|
|
4334
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4184
4335
|
Separator6,
|
|
4185
4336
|
{
|
|
4186
4337
|
ref,
|
|
@@ -4191,8 +4342,8 @@ var SidebarSeparator = React41.forwardRef(({ className, ...props }, ref) => {
|
|
|
4191
4342
|
);
|
|
4192
4343
|
});
|
|
4193
4344
|
SidebarSeparator.displayName = "SidebarSeparator";
|
|
4194
|
-
var SidebarContent =
|
|
4195
|
-
return /* @__PURE__ */ (0,
|
|
4345
|
+
var SidebarContent = React42.forwardRef(({ className, ...props }, ref) => {
|
|
4346
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4196
4347
|
"div",
|
|
4197
4348
|
{
|
|
4198
4349
|
ref,
|
|
@@ -4206,8 +4357,8 @@ var SidebarContent = React41.forwardRef(({ className, ...props }, ref) => {
|
|
|
4206
4357
|
);
|
|
4207
4358
|
});
|
|
4208
4359
|
SidebarContent.displayName = "SidebarContent";
|
|
4209
|
-
var SidebarGroup =
|
|
4210
|
-
return /* @__PURE__ */ (0,
|
|
4360
|
+
var SidebarGroup = React42.forwardRef(({ className, ...props }, ref) => {
|
|
4361
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4211
4362
|
"div",
|
|
4212
4363
|
{
|
|
4213
4364
|
ref,
|
|
@@ -4218,9 +4369,9 @@ var SidebarGroup = React41.forwardRef(({ className, ...props }, ref) => {
|
|
|
4218
4369
|
);
|
|
4219
4370
|
});
|
|
4220
4371
|
SidebarGroup.displayName = "SidebarGroup";
|
|
4221
|
-
var SidebarGroupLabel =
|
|
4372
|
+
var SidebarGroupLabel = React42.forwardRef(({ className, asChild = false, ...props }, ref) => {
|
|
4222
4373
|
const Comp = asChild ? import_react_slot4.Slot : "div";
|
|
4223
|
-
return /* @__PURE__ */ (0,
|
|
4374
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4224
4375
|
Comp,
|
|
4225
4376
|
{
|
|
4226
4377
|
ref,
|
|
@@ -4235,9 +4386,9 @@ var SidebarGroupLabel = React41.forwardRef(({ className, asChild = false, ...pro
|
|
|
4235
4386
|
);
|
|
4236
4387
|
});
|
|
4237
4388
|
SidebarGroupLabel.displayName = "SidebarGroupLabel";
|
|
4238
|
-
var SidebarGroupAction =
|
|
4389
|
+
var SidebarGroupAction = React42.forwardRef(({ className, asChild = false, ...props }, ref) => {
|
|
4239
4390
|
const Comp = asChild ? import_react_slot4.Slot : "button";
|
|
4240
|
-
return /* @__PURE__ */ (0,
|
|
4391
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4241
4392
|
Comp,
|
|
4242
4393
|
{
|
|
4243
4394
|
ref,
|
|
@@ -4254,7 +4405,7 @@ var SidebarGroupAction = React41.forwardRef(({ className, asChild = false, ...pr
|
|
|
4254
4405
|
);
|
|
4255
4406
|
});
|
|
4256
4407
|
SidebarGroupAction.displayName = "SidebarGroupAction";
|
|
4257
|
-
var SidebarGroupContent =
|
|
4408
|
+
var SidebarGroupContent = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4258
4409
|
"div",
|
|
4259
4410
|
{
|
|
4260
4411
|
ref,
|
|
@@ -4264,7 +4415,7 @@ var SidebarGroupContent = React41.forwardRef(({ className, ...props }, ref) => /
|
|
|
4264
4415
|
}
|
|
4265
4416
|
));
|
|
4266
4417
|
SidebarGroupContent.displayName = "SidebarGroupContent";
|
|
4267
|
-
var SidebarMenu =
|
|
4418
|
+
var SidebarMenu = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4268
4419
|
"ul",
|
|
4269
4420
|
{
|
|
4270
4421
|
ref,
|
|
@@ -4274,7 +4425,7 @@ var SidebarMenu = React41.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
4274
4425
|
}
|
|
4275
4426
|
));
|
|
4276
4427
|
SidebarMenu.displayName = "SidebarMenu";
|
|
4277
|
-
var SidebarMenuItem =
|
|
4428
|
+
var SidebarMenuItem = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4278
4429
|
"li",
|
|
4279
4430
|
{
|
|
4280
4431
|
ref,
|
|
@@ -4284,7 +4435,7 @@ var SidebarMenuItem = React41.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
4284
4435
|
}
|
|
4285
4436
|
));
|
|
4286
4437
|
SidebarMenuItem.displayName = "SidebarMenuItem";
|
|
4287
|
-
var sidebarMenuButtonVariants = (0,
|
|
4438
|
+
var sidebarMenuButtonVariants = (0, import_class_variance_authority13.cva)(
|
|
4288
4439
|
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
|
|
4289
4440
|
{
|
|
4290
4441
|
variants: {
|
|
@@ -4304,7 +4455,7 @@ var sidebarMenuButtonVariants = (0, import_class_variance_authority12.cva)(
|
|
|
4304
4455
|
}
|
|
4305
4456
|
}
|
|
4306
4457
|
);
|
|
4307
|
-
var SidebarMenuButton =
|
|
4458
|
+
var SidebarMenuButton = React42.forwardRef(
|
|
4308
4459
|
({
|
|
4309
4460
|
asChild = false,
|
|
4310
4461
|
isActive = false,
|
|
@@ -4316,7 +4467,7 @@ var SidebarMenuButton = React41.forwardRef(
|
|
|
4316
4467
|
}, ref) => {
|
|
4317
4468
|
const Comp = asChild ? import_react_slot4.Slot : "button";
|
|
4318
4469
|
const { isMobile, state } = useSidebar();
|
|
4319
|
-
const button = /* @__PURE__ */ (0,
|
|
4470
|
+
const button = /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4320
4471
|
Comp,
|
|
4321
4472
|
{
|
|
4322
4473
|
ref,
|
|
@@ -4335,9 +4486,9 @@ var SidebarMenuButton = React41.forwardRef(
|
|
|
4335
4486
|
children: tooltip
|
|
4336
4487
|
};
|
|
4337
4488
|
}
|
|
4338
|
-
return /* @__PURE__ */ (0,
|
|
4339
|
-
/* @__PURE__ */ (0,
|
|
4340
|
-
/* @__PURE__ */ (0,
|
|
4489
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(Tooltip2, { children: [
|
|
4490
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(TooltipTrigger, { asChild: true, children: button }),
|
|
4491
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4341
4492
|
TooltipContent,
|
|
4342
4493
|
{
|
|
4343
4494
|
side: "right",
|
|
@@ -4350,9 +4501,9 @@ var SidebarMenuButton = React41.forwardRef(
|
|
|
4350
4501
|
}
|
|
4351
4502
|
);
|
|
4352
4503
|
SidebarMenuButton.displayName = "SidebarMenuButton";
|
|
4353
|
-
var SidebarMenuAction =
|
|
4504
|
+
var SidebarMenuAction = React42.forwardRef(({ className, asChild = false, showOnHover = false, ...props }, ref) => {
|
|
4354
4505
|
const Comp = asChild ? import_react_slot4.Slot : "button";
|
|
4355
|
-
return /* @__PURE__ */ (0,
|
|
4506
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4356
4507
|
Comp,
|
|
4357
4508
|
{
|
|
4358
4509
|
ref,
|
|
@@ -4373,7 +4524,7 @@ var SidebarMenuAction = React41.forwardRef(({ className, asChild = false, showOn
|
|
|
4373
4524
|
);
|
|
4374
4525
|
});
|
|
4375
4526
|
SidebarMenuAction.displayName = "SidebarMenuAction";
|
|
4376
|
-
var SidebarMenuBadge =
|
|
4527
|
+
var SidebarMenuBadge = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4377
4528
|
"div",
|
|
4378
4529
|
{
|
|
4379
4530
|
ref,
|
|
@@ -4391,11 +4542,11 @@ var SidebarMenuBadge = React41.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
4391
4542
|
}
|
|
4392
4543
|
));
|
|
4393
4544
|
SidebarMenuBadge.displayName = "SidebarMenuBadge";
|
|
4394
|
-
var SidebarMenuSkeleton =
|
|
4395
|
-
const width =
|
|
4545
|
+
var SidebarMenuSkeleton = React42.forwardRef(({ className, showIcon = false, ...props }, ref) => {
|
|
4546
|
+
const width = React42.useMemo(() => {
|
|
4396
4547
|
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
4397
4548
|
}, []);
|
|
4398
|
-
return /* @__PURE__ */ (0,
|
|
4549
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
4399
4550
|
"div",
|
|
4400
4551
|
{
|
|
4401
4552
|
ref,
|
|
@@ -4403,14 +4554,14 @@ var SidebarMenuSkeleton = React41.forwardRef(({ className, showIcon = false, ...
|
|
|
4403
4554
|
className: cn("flex h-8 items-center gap-2 rounded-md px-2", className),
|
|
4404
4555
|
...props,
|
|
4405
4556
|
children: [
|
|
4406
|
-
showIcon && /* @__PURE__ */ (0,
|
|
4557
|
+
showIcon && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4407
4558
|
Skeleton,
|
|
4408
4559
|
{
|
|
4409
4560
|
className: "size-4 rounded-md",
|
|
4410
4561
|
"data-sidebar": "menu-skeleton-icon"
|
|
4411
4562
|
}
|
|
4412
4563
|
),
|
|
4413
|
-
/* @__PURE__ */ (0,
|
|
4564
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4414
4565
|
Skeleton,
|
|
4415
4566
|
{
|
|
4416
4567
|
className: "h-4 max-w-[--skeleton-width] flex-1",
|
|
@@ -4425,7 +4576,7 @@ var SidebarMenuSkeleton = React41.forwardRef(({ className, showIcon = false, ...
|
|
|
4425
4576
|
);
|
|
4426
4577
|
});
|
|
4427
4578
|
SidebarMenuSkeleton.displayName = "SidebarMenuSkeleton";
|
|
4428
|
-
var SidebarMenuSub =
|
|
4579
|
+
var SidebarMenuSub = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4429
4580
|
"ul",
|
|
4430
4581
|
{
|
|
4431
4582
|
ref,
|
|
@@ -4439,11 +4590,11 @@ var SidebarMenuSub = React41.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
4439
4590
|
}
|
|
4440
4591
|
));
|
|
4441
4592
|
SidebarMenuSub.displayName = "SidebarMenuSub";
|
|
4442
|
-
var SidebarMenuSubItem =
|
|
4593
|
+
var SidebarMenuSubItem = React42.forwardRef(({ ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("li", { ref, ...props }));
|
|
4443
4594
|
SidebarMenuSubItem.displayName = "SidebarMenuSubItem";
|
|
4444
|
-
var SidebarMenuSubButton =
|
|
4595
|
+
var SidebarMenuSubButton = React42.forwardRef(({ asChild = false, size = "md", isActive, className, ...props }, ref) => {
|
|
4445
4596
|
const Comp = asChild ? import_react_slot4.Slot : "a";
|
|
4446
|
-
return /* @__PURE__ */ (0,
|
|
4597
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4447
4598
|
Comp,
|
|
4448
4599
|
{
|
|
4449
4600
|
ref,
|
|
@@ -4465,10 +4616,10 @@ var SidebarMenuSubButton = React41.forwardRef(({ asChild = false, size = "md", i
|
|
|
4465
4616
|
SidebarMenuSubButton.displayName = "SidebarMenuSubButton";
|
|
4466
4617
|
|
|
4467
4618
|
// src/components/ui/slider.tsx
|
|
4468
|
-
var
|
|
4619
|
+
var React43 = __toESM(require("react"), 1);
|
|
4469
4620
|
var SliderPrimitive = __toESM(require("@radix-ui/react-slider"), 1);
|
|
4470
|
-
var
|
|
4471
|
-
var Slider =
|
|
4621
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
4622
|
+
var Slider = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
4472
4623
|
SliderPrimitive.Root,
|
|
4473
4624
|
{
|
|
4474
4625
|
ref,
|
|
@@ -4478,8 +4629,8 @@ var Slider = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
4478
4629
|
),
|
|
4479
4630
|
...props,
|
|
4480
4631
|
children: [
|
|
4481
|
-
/* @__PURE__ */ (0,
|
|
4482
|
-
/* @__PURE__ */ (0,
|
|
4632
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SliderPrimitive.Track, { className: "relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SliderPrimitive.Range, { className: "absolute h-full bg-primary" }) }),
|
|
4633
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SliderPrimitive.Thumb, { className: "block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50" })
|
|
4483
4634
|
]
|
|
4484
4635
|
}
|
|
4485
4636
|
));
|
|
@@ -4488,10 +4639,10 @@ Slider.displayName = SliderPrimitive.Root.displayName;
|
|
|
4488
4639
|
// src/components/ui/sonner.tsx
|
|
4489
4640
|
var import_next_themes = require("next-themes");
|
|
4490
4641
|
var import_sonner = require("sonner");
|
|
4491
|
-
var
|
|
4642
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
4492
4643
|
var Toaster = ({ ...props }) => {
|
|
4493
4644
|
const { theme = "system" } = (0, import_next_themes.useTheme)();
|
|
4494
|
-
return /* @__PURE__ */ (0,
|
|
4645
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4495
4646
|
import_sonner.Toaster,
|
|
4496
4647
|
{
|
|
4497
4648
|
theme,
|
|
@@ -4510,10 +4661,10 @@ var Toaster = ({ ...props }) => {
|
|
|
4510
4661
|
};
|
|
4511
4662
|
|
|
4512
4663
|
// src/components/ui/switch.tsx
|
|
4513
|
-
var
|
|
4664
|
+
var React44 = __toESM(require("react"), 1);
|
|
4514
4665
|
var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"), 1);
|
|
4515
|
-
var
|
|
4516
|
-
var Switch =
|
|
4666
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
4667
|
+
var Switch = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4517
4668
|
SwitchPrimitives.Root,
|
|
4518
4669
|
{
|
|
4519
4670
|
className: cn(
|
|
@@ -4522,7 +4673,7 @@ var Switch = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
4522
4673
|
),
|
|
4523
4674
|
...props,
|
|
4524
4675
|
ref,
|
|
4525
|
-
children: /* @__PURE__ */ (0,
|
|
4676
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4526
4677
|
SwitchPrimitives.Thumb,
|
|
4527
4678
|
{
|
|
4528
4679
|
className: cn(
|
|
@@ -4535,9 +4686,9 @@ var Switch = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
4535
4686
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
4536
4687
|
|
|
4537
4688
|
// src/components/ui/table.tsx
|
|
4538
|
-
var
|
|
4539
|
-
var
|
|
4540
|
-
var Table =
|
|
4689
|
+
var React45 = __toESM(require("react"), 1);
|
|
4690
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
4691
|
+
var Table = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4541
4692
|
"table",
|
|
4542
4693
|
{
|
|
4543
4694
|
ref,
|
|
@@ -4546,9 +4697,9 @@ var Table = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
4546
4697
|
}
|
|
4547
4698
|
) }));
|
|
4548
4699
|
Table.displayName = "Table";
|
|
4549
|
-
var TableHeader =
|
|
4700
|
+
var TableHeader = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("thead", { ref, className: cn("[&_tr]:border-b [&_tr]:border-border", className), ...props }));
|
|
4550
4701
|
TableHeader.displayName = "TableHeader";
|
|
4551
|
-
var TableBody =
|
|
4702
|
+
var TableBody = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4552
4703
|
"tbody",
|
|
4553
4704
|
{
|
|
4554
4705
|
ref,
|
|
@@ -4557,7 +4708,7 @@ var TableBody = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
4557
4708
|
}
|
|
4558
4709
|
));
|
|
4559
4710
|
TableBody.displayName = "TableBody";
|
|
4560
|
-
var TableFooter =
|
|
4711
|
+
var TableFooter = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4561
4712
|
"tfoot",
|
|
4562
4713
|
{
|
|
4563
4714
|
ref,
|
|
@@ -4569,7 +4720,7 @@ var TableFooter = React44.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
4569
4720
|
}
|
|
4570
4721
|
));
|
|
4571
4722
|
TableFooter.displayName = "TableFooter";
|
|
4572
|
-
var TableRow =
|
|
4723
|
+
var TableRow = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4573
4724
|
"tr",
|
|
4574
4725
|
{
|
|
4575
4726
|
ref,
|
|
@@ -4581,7 +4732,7 @@ var TableRow = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
4581
4732
|
}
|
|
4582
4733
|
));
|
|
4583
4734
|
TableRow.displayName = "TableRow";
|
|
4584
|
-
var TableHead =
|
|
4735
|
+
var TableHead = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4585
4736
|
"th",
|
|
4586
4737
|
{
|
|
4587
4738
|
ref,
|
|
@@ -4593,7 +4744,7 @@ var TableHead = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
4593
4744
|
}
|
|
4594
4745
|
));
|
|
4595
4746
|
TableHead.displayName = "TableHead";
|
|
4596
|
-
var TableCell =
|
|
4747
|
+
var TableCell = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4597
4748
|
"td",
|
|
4598
4749
|
{
|
|
4599
4750
|
ref,
|
|
@@ -4605,7 +4756,7 @@ var TableCell = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
4605
4756
|
}
|
|
4606
4757
|
));
|
|
4607
4758
|
TableCell.displayName = "TableCell";
|
|
4608
|
-
var TableCaption =
|
|
4759
|
+
var TableCaption = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4609
4760
|
"caption",
|
|
4610
4761
|
{
|
|
4611
4762
|
ref,
|
|
@@ -4616,11 +4767,11 @@ var TableCaption = React44.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
4616
4767
|
TableCaption.displayName = "TableCaption";
|
|
4617
4768
|
|
|
4618
4769
|
// src/components/ui/tabs.tsx
|
|
4619
|
-
var
|
|
4770
|
+
var React46 = __toESM(require("react"), 1);
|
|
4620
4771
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"), 1);
|
|
4621
|
-
var
|
|
4772
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
4622
4773
|
var Tabs = TabsPrimitive.Root;
|
|
4623
|
-
var TabsList =
|
|
4774
|
+
var TabsList = React46.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
4624
4775
|
TabsPrimitive.List,
|
|
4625
4776
|
{
|
|
4626
4777
|
ref,
|
|
@@ -4632,7 +4783,7 @@ var TabsList = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
4632
4783
|
}
|
|
4633
4784
|
));
|
|
4634
4785
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
4635
|
-
var TabsTrigger =
|
|
4786
|
+
var TabsTrigger = React46.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
4636
4787
|
TabsPrimitive.Trigger,
|
|
4637
4788
|
{
|
|
4638
4789
|
ref,
|
|
@@ -4644,7 +4795,7 @@ var TabsTrigger = React45.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
4644
4795
|
}
|
|
4645
4796
|
));
|
|
4646
4797
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
4647
|
-
var TabsContent =
|
|
4798
|
+
var TabsContent = React46.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
4648
4799
|
TabsPrimitive.Content,
|
|
4649
4800
|
{
|
|
4650
4801
|
ref,
|
|
@@ -4658,10 +4809,10 @@ var TabsContent = React45.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
4658
4809
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
4659
4810
|
|
|
4660
4811
|
// src/components/ui/textarea.tsx
|
|
4661
|
-
var
|
|
4662
|
-
var
|
|
4663
|
-
var Textarea =
|
|
4664
|
-
return /* @__PURE__ */ (0,
|
|
4812
|
+
var React47 = __toESM(require("react"), 1);
|
|
4813
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
4814
|
+
var Textarea = React47.forwardRef(({ className, ...props }, ref) => {
|
|
4815
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
4665
4816
|
"textarea",
|
|
4666
4817
|
{
|
|
4667
4818
|
className: cn(
|
|
@@ -4676,13 +4827,13 @@ var Textarea = React46.forwardRef(({ className, ...props }, ref) => {
|
|
|
4676
4827
|
Textarea.displayName = "Textarea";
|
|
4677
4828
|
|
|
4678
4829
|
// src/components/ui/toast.tsx
|
|
4679
|
-
var
|
|
4830
|
+
var React48 = __toESM(require("react"), 1);
|
|
4680
4831
|
var ToastPrimitives = __toESM(require("@radix-ui/react-toast"), 1);
|
|
4681
|
-
var
|
|
4832
|
+
var import_class_variance_authority14 = require("class-variance-authority");
|
|
4682
4833
|
var import_lucide_react19 = require("lucide-react");
|
|
4683
|
-
var
|
|
4834
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
4684
4835
|
var ToastProvider = ToastPrimitives.Provider;
|
|
4685
|
-
var ToastViewport =
|
|
4836
|
+
var ToastViewport = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
4686
4837
|
ToastPrimitives.Viewport,
|
|
4687
4838
|
{
|
|
4688
4839
|
ref,
|
|
@@ -4694,7 +4845,7 @@ var ToastViewport = React47.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
4694
4845
|
}
|
|
4695
4846
|
));
|
|
4696
4847
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
4697
|
-
var toastVariants = (0,
|
|
4848
|
+
var toastVariants = (0, import_class_variance_authority14.cva)(
|
|
4698
4849
|
"group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",
|
|
4699
4850
|
{
|
|
4700
4851
|
variants: {
|
|
@@ -4708,8 +4859,8 @@ var toastVariants = (0, import_class_variance_authority13.cva)(
|
|
|
4708
4859
|
}
|
|
4709
4860
|
}
|
|
4710
4861
|
);
|
|
4711
|
-
var Toast =
|
|
4712
|
-
return /* @__PURE__ */ (0,
|
|
4862
|
+
var Toast = React48.forwardRef(({ className, variant, ...props }, ref) => {
|
|
4863
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
4713
4864
|
ToastPrimitives.Root,
|
|
4714
4865
|
{
|
|
4715
4866
|
ref,
|
|
@@ -4719,7 +4870,7 @@ var Toast = React47.forwardRef(({ className, variant, ...props }, ref) => {
|
|
|
4719
4870
|
);
|
|
4720
4871
|
});
|
|
4721
4872
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
4722
|
-
var ToastAction =
|
|
4873
|
+
var ToastAction = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
4723
4874
|
ToastPrimitives.Action,
|
|
4724
4875
|
{
|
|
4725
4876
|
ref,
|
|
@@ -4731,7 +4882,7 @@ var ToastAction = React47.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
4731
4882
|
}
|
|
4732
4883
|
));
|
|
4733
4884
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
4734
|
-
var ToastClose =
|
|
4885
|
+
var ToastClose = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
4735
4886
|
ToastPrimitives.Close,
|
|
4736
4887
|
{
|
|
4737
4888
|
ref,
|
|
@@ -4741,11 +4892,11 @@ var ToastClose = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
4741
4892
|
),
|
|
4742
4893
|
"toast-close": "",
|
|
4743
4894
|
...props,
|
|
4744
|
-
children: /* @__PURE__ */ (0,
|
|
4895
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_lucide_react19.X, { className: "h-4 w-4" })
|
|
4745
4896
|
}
|
|
4746
4897
|
));
|
|
4747
4898
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
4748
|
-
var ToastTitle =
|
|
4899
|
+
var ToastTitle = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
4749
4900
|
ToastPrimitives.Title,
|
|
4750
4901
|
{
|
|
4751
4902
|
ref,
|
|
@@ -4754,7 +4905,7 @@ var ToastTitle = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
4754
4905
|
}
|
|
4755
4906
|
));
|
|
4756
4907
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
4757
|
-
var ToastDescription =
|
|
4908
|
+
var ToastDescription = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
4758
4909
|
ToastPrimitives.Description,
|
|
4759
4910
|
{
|
|
4760
4911
|
ref,
|
|
@@ -4765,30 +4916,30 @@ var ToastDescription = React47.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
4765
4916
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
4766
4917
|
|
|
4767
4918
|
// src/components/ui/toaster.tsx
|
|
4768
|
-
var
|
|
4919
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
4769
4920
|
function Toaster2() {
|
|
4770
4921
|
const { toasts } = useToast();
|
|
4771
|
-
return /* @__PURE__ */ (0,
|
|
4922
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(ToastProvider, { children: [
|
|
4772
4923
|
toasts.map(function({ id, title, description, action, ...props }) {
|
|
4773
|
-
return /* @__PURE__ */ (0,
|
|
4774
|
-
/* @__PURE__ */ (0,
|
|
4775
|
-
title && /* @__PURE__ */ (0,
|
|
4776
|
-
description && /* @__PURE__ */ (0,
|
|
4924
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(Toast, { ...props, children: [
|
|
4925
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "grid gap-1", children: [
|
|
4926
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ToastTitle, { children: title }),
|
|
4927
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ToastDescription, { children: description })
|
|
4777
4928
|
] }),
|
|
4778
4929
|
action,
|
|
4779
|
-
/* @__PURE__ */ (0,
|
|
4930
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ToastClose, {})
|
|
4780
4931
|
] }, id);
|
|
4781
4932
|
}),
|
|
4782
|
-
/* @__PURE__ */ (0,
|
|
4933
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ToastViewport, {})
|
|
4783
4934
|
] });
|
|
4784
4935
|
}
|
|
4785
4936
|
|
|
4786
4937
|
// src/components/ui/toggle.tsx
|
|
4787
|
-
var
|
|
4938
|
+
var React49 = __toESM(require("react"), 1);
|
|
4788
4939
|
var TogglePrimitive = __toESM(require("@radix-ui/react-toggle"), 1);
|
|
4789
|
-
var
|
|
4790
|
-
var
|
|
4791
|
-
var toggleVariants = (0,
|
|
4940
|
+
var import_class_variance_authority15 = require("class-variance-authority");
|
|
4941
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
4942
|
+
var toggleVariants = (0, import_class_variance_authority15.cva)(
|
|
4792
4943
|
"inline-flex items-center justify-center gap-2 rounded-md text-sm transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
4793
4944
|
{
|
|
4794
4945
|
variants: {
|
|
@@ -4808,7 +4959,7 @@ var toggleVariants = (0, import_class_variance_authority14.cva)(
|
|
|
4808
4959
|
}
|
|
4809
4960
|
}
|
|
4810
4961
|
);
|
|
4811
|
-
var Toggle =
|
|
4962
|
+
var Toggle = React49.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
4812
4963
|
TogglePrimitive.Root,
|
|
4813
4964
|
{
|
|
4814
4965
|
ref,
|
|
@@ -4819,26 +4970,26 @@ var Toggle = React48.forwardRef(({ className, variant, size, ...props }, ref) =>
|
|
|
4819
4970
|
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
4820
4971
|
|
|
4821
4972
|
// src/components/ui/toggle-group.tsx
|
|
4822
|
-
var
|
|
4973
|
+
var React50 = __toESM(require("react"), 1);
|
|
4823
4974
|
var ToggleGroupPrimitive = __toESM(require("@radix-ui/react-toggle-group"), 1);
|
|
4824
|
-
var
|
|
4825
|
-
var ToggleGroupContext =
|
|
4975
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
4976
|
+
var ToggleGroupContext = React50.createContext({
|
|
4826
4977
|
size: "default",
|
|
4827
4978
|
variant: "default"
|
|
4828
4979
|
});
|
|
4829
|
-
var ToggleGroup =
|
|
4980
|
+
var ToggleGroup = React50.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
4830
4981
|
ToggleGroupPrimitive.Root,
|
|
4831
4982
|
{
|
|
4832
4983
|
ref,
|
|
4833
4984
|
className: cn("flex items-center justify-center gap-1", className),
|
|
4834
4985
|
...props,
|
|
4835
|
-
children: /* @__PURE__ */ (0,
|
|
4986
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(ToggleGroupContext.Provider, { value: { variant, size }, children })
|
|
4836
4987
|
}
|
|
4837
4988
|
));
|
|
4838
4989
|
ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
|
|
4839
|
-
var ToggleGroupItem =
|
|
4840
|
-
const context =
|
|
4841
|
-
return /* @__PURE__ */ (0,
|
|
4990
|
+
var ToggleGroupItem = React50.forwardRef(({ className, children, variant, size, ...props }, ref) => {
|
|
4991
|
+
const context = React50.useContext(ToggleGroupContext);
|
|
4992
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
4842
4993
|
ToggleGroupPrimitive.Item,
|
|
4843
4994
|
{
|
|
4844
4995
|
ref,
|
|
@@ -5034,6 +5185,7 @@ ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
|
|
|
5034
5185
|
ResizablePanelGroup,
|
|
5035
5186
|
ScrollArea,
|
|
5036
5187
|
ScrollBar,
|
|
5188
|
+
Section,
|
|
5037
5189
|
Select,
|
|
5038
5190
|
SelectContent,
|
|
5039
5191
|
SelectGroup,
|
|
@@ -5120,6 +5272,7 @@ ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
|
|
|
5120
5272
|
gridVariants,
|
|
5121
5273
|
headingVariants,
|
|
5122
5274
|
navigationMenuTriggerStyle,
|
|
5275
|
+
sectionVariants,
|
|
5123
5276
|
stackVariants,
|
|
5124
5277
|
textVariants,
|
|
5125
5278
|
toast,
|