@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.js
CHANGED
|
@@ -1196,11 +1196,160 @@ var Text = React13.forwardRef(
|
|
|
1196
1196
|
);
|
|
1197
1197
|
Text.displayName = "Text";
|
|
1198
1198
|
|
|
1199
|
-
// src/components/ui/
|
|
1199
|
+
// src/components/ui/section.tsx
|
|
1200
1200
|
import * as React14 from "react";
|
|
1201
1201
|
import { cva as cva8 } from "class-variance-authority";
|
|
1202
|
-
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
1203
|
-
var
|
|
1202
|
+
import { jsx as jsx13, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1203
|
+
var paddingStartVariants = {
|
|
1204
|
+
none: "pt-0",
|
|
1205
|
+
condensed: "pt-6 md:pt-8",
|
|
1206
|
+
normal: "pt-12 md:pt-16 lg:pt-20",
|
|
1207
|
+
spacious: "pt-16 md:pt-24 lg:pt-32"
|
|
1208
|
+
};
|
|
1209
|
+
var paddingEndVariants = {
|
|
1210
|
+
none: "pb-0",
|
|
1211
|
+
condensed: "pb-6 md:pb-8",
|
|
1212
|
+
normal: "pb-12 md:pb-16 lg:pb-20",
|
|
1213
|
+
spacious: "pb-16 md:pb-24 lg:pb-32"
|
|
1214
|
+
};
|
|
1215
|
+
var backgroundColorVariants = {
|
|
1216
|
+
default: "bg-background",
|
|
1217
|
+
subtle: "bg-muted",
|
|
1218
|
+
inset: "bg-accent"
|
|
1219
|
+
};
|
|
1220
|
+
var sectionVariants = cva8("relative w-full", {
|
|
1221
|
+
variants: {
|
|
1222
|
+
rounded: {
|
|
1223
|
+
true: "rounded-xl overflow-hidden",
|
|
1224
|
+
false: ""
|
|
1225
|
+
}
|
|
1226
|
+
},
|
|
1227
|
+
defaultVariants: {
|
|
1228
|
+
rounded: false
|
|
1229
|
+
}
|
|
1230
|
+
});
|
|
1231
|
+
var responsivePrefixes4 = { narrow: "", regular: "md:", wide: "lg:" };
|
|
1232
|
+
function resolveResponsivePadding(prop, map, fallback) {
|
|
1233
|
+
if (!prop) return map[fallback] || "";
|
|
1234
|
+
if (typeof prop === "string") return map[prop] || "";
|
|
1235
|
+
const classes = [];
|
|
1236
|
+
for (const [bp, prefix] of Object.entries(responsivePrefixes4)) {
|
|
1237
|
+
const val = prop[bp];
|
|
1238
|
+
if (val && map[val]) {
|
|
1239
|
+
const base = map[val];
|
|
1240
|
+
if (prefix === "") {
|
|
1241
|
+
classes.push(base);
|
|
1242
|
+
} else {
|
|
1243
|
+
const parts = base.split(" ");
|
|
1244
|
+
for (const part of parts) {
|
|
1245
|
+
if (prefix === "md:" && part.startsWith("md:")) {
|
|
1246
|
+
classes.push(part);
|
|
1247
|
+
} else if (prefix === "lg:" && part.startsWith("lg:")) {
|
|
1248
|
+
classes.push(part);
|
|
1249
|
+
} else if (prefix === "" && !part.includes(":")) {
|
|
1250
|
+
classes.push(part);
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
return classes.join(" ");
|
|
1257
|
+
}
|
|
1258
|
+
var Section = React14.forwardRef(
|
|
1259
|
+
({
|
|
1260
|
+
as: Tag = "section",
|
|
1261
|
+
className,
|
|
1262
|
+
children,
|
|
1263
|
+
paddingBlockStart = "normal",
|
|
1264
|
+
paddingBlockEnd = "normal",
|
|
1265
|
+
backgroundColor,
|
|
1266
|
+
backgroundImageSrc,
|
|
1267
|
+
backgroundImageSize = "cover",
|
|
1268
|
+
backgroundImagePosition = "50%",
|
|
1269
|
+
rounded,
|
|
1270
|
+
fullWidth = false,
|
|
1271
|
+
sectionTitle,
|
|
1272
|
+
containerClassName,
|
|
1273
|
+
style,
|
|
1274
|
+
...props
|
|
1275
|
+
}, ref) => {
|
|
1276
|
+
const paddingStartClasses = resolveResponsivePadding(
|
|
1277
|
+
paddingBlockStart,
|
|
1278
|
+
paddingStartVariants,
|
|
1279
|
+
"normal"
|
|
1280
|
+
);
|
|
1281
|
+
const paddingEndClasses = resolveResponsivePadding(
|
|
1282
|
+
paddingBlockEnd,
|
|
1283
|
+
paddingEndVariants,
|
|
1284
|
+
"normal"
|
|
1285
|
+
);
|
|
1286
|
+
let bgColorClass = "";
|
|
1287
|
+
let bgColorStyle;
|
|
1288
|
+
if (backgroundColor) {
|
|
1289
|
+
if (typeof backgroundColor === "string") {
|
|
1290
|
+
const mapped = backgroundColorVariants[backgroundColor];
|
|
1291
|
+
if (mapped) {
|
|
1292
|
+
bgColorClass = mapped;
|
|
1293
|
+
} else {
|
|
1294
|
+
bgColorStyle = { backgroundColor };
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
let bgImageStyle;
|
|
1299
|
+
if (backgroundImageSrc) {
|
|
1300
|
+
const srcs = Array.isArray(backgroundImageSrc) ? backgroundImageSrc : [backgroundImageSrc];
|
|
1301
|
+
const bgImages = srcs.map((src) => `url(${src})`).join(", ");
|
|
1302
|
+
const bgSizes = Array.isArray(backgroundImageSrc) ? srcs.map(() => backgroundImageSize).join(", ") : backgroundImageSize;
|
|
1303
|
+
const bgPositions = Array.isArray(backgroundImageSrc) ? srcs.map(() => backgroundImagePosition).join(", ") : backgroundImagePosition;
|
|
1304
|
+
bgImageStyle = {
|
|
1305
|
+
backgroundImage: bgImages,
|
|
1306
|
+
backgroundSize: bgSizes,
|
|
1307
|
+
backgroundPosition: bgPositions,
|
|
1308
|
+
backgroundRepeat: "no-repeat"
|
|
1309
|
+
};
|
|
1310
|
+
}
|
|
1311
|
+
const combinedStyle = {
|
|
1312
|
+
...bgColorStyle,
|
|
1313
|
+
...bgImageStyle,
|
|
1314
|
+
...style
|
|
1315
|
+
};
|
|
1316
|
+
return /* @__PURE__ */ jsx13(
|
|
1317
|
+
Tag,
|
|
1318
|
+
{
|
|
1319
|
+
ref,
|
|
1320
|
+
className: cn(
|
|
1321
|
+
sectionVariants({ rounded }),
|
|
1322
|
+
paddingStartClasses,
|
|
1323
|
+
paddingEndClasses,
|
|
1324
|
+
bgColorClass,
|
|
1325
|
+
className
|
|
1326
|
+
),
|
|
1327
|
+
style: Object.keys(combinedStyle).length > 0 ? combinedStyle : void 0,
|
|
1328
|
+
...props,
|
|
1329
|
+
children: /* @__PURE__ */ jsxs4(
|
|
1330
|
+
"div",
|
|
1331
|
+
{
|
|
1332
|
+
className: cn(
|
|
1333
|
+
fullWidth ? "w-full" : "max-w-7xl mx-auto px-6",
|
|
1334
|
+
containerClassName
|
|
1335
|
+
),
|
|
1336
|
+
children: [
|
|
1337
|
+
sectionTitle && /* @__PURE__ */ jsx13("h2", { className: "text-2xl text-foreground border-b border-border pb-2 mb-4", children: sectionTitle }),
|
|
1338
|
+
children
|
|
1339
|
+
]
|
|
1340
|
+
}
|
|
1341
|
+
)
|
|
1342
|
+
}
|
|
1343
|
+
);
|
|
1344
|
+
}
|
|
1345
|
+
);
|
|
1346
|
+
Section.displayName = "Section";
|
|
1347
|
+
|
|
1348
|
+
// src/components/ui/stack.tsx
|
|
1349
|
+
import * as React15 from "react";
|
|
1350
|
+
import { cva as cva9 } from "class-variance-authority";
|
|
1351
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
1352
|
+
var stackVariants = cva9("flex", {
|
|
1204
1353
|
variants: {
|
|
1205
1354
|
direction: {
|
|
1206
1355
|
horizontal: "flex-row",
|
|
@@ -1286,7 +1435,7 @@ function resolveResponsive3(value, map) {
|
|
|
1286
1435
|
}
|
|
1287
1436
|
return classes;
|
|
1288
1437
|
}
|
|
1289
|
-
var Stack =
|
|
1438
|
+
var Stack = React15.forwardRef(
|
|
1290
1439
|
({
|
|
1291
1440
|
as: Comp = "div",
|
|
1292
1441
|
className,
|
|
@@ -1308,7 +1457,7 @@ var Stack = React14.forwardRef(
|
|
|
1308
1457
|
const isResponsiveGap = typeof gap === "object";
|
|
1309
1458
|
const isResponsiveAlign = typeof align === "object";
|
|
1310
1459
|
const isResponsiveJustify = typeof justify === "object";
|
|
1311
|
-
return /* @__PURE__ */
|
|
1460
|
+
return /* @__PURE__ */ jsx14(
|
|
1312
1461
|
Comp,
|
|
1313
1462
|
{
|
|
1314
1463
|
ref,
|
|
@@ -1335,14 +1484,14 @@ var Stack = React14.forwardRef(
|
|
|
1335
1484
|
Stack.displayName = "Stack";
|
|
1336
1485
|
|
|
1337
1486
|
// src/components/ui/calendar.tsx
|
|
1338
|
-
import * as
|
|
1487
|
+
import * as React16 from "react";
|
|
1339
1488
|
import {
|
|
1340
1489
|
ChevronDownIcon,
|
|
1341
1490
|
ChevronLeftIcon,
|
|
1342
1491
|
ChevronRightIcon
|
|
1343
1492
|
} from "lucide-react";
|
|
1344
1493
|
import { DayPicker, getDefaultClassNames } from "react-day-picker";
|
|
1345
|
-
import { jsx as
|
|
1494
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
1346
1495
|
function Calendar({
|
|
1347
1496
|
className,
|
|
1348
1497
|
classNames,
|
|
@@ -1354,7 +1503,7 @@ function Calendar({
|
|
|
1354
1503
|
...props
|
|
1355
1504
|
}) {
|
|
1356
1505
|
const defaultClassNames = getDefaultClassNames();
|
|
1357
|
-
return /* @__PURE__ */
|
|
1506
|
+
return /* @__PURE__ */ jsx15(
|
|
1358
1507
|
DayPicker,
|
|
1359
1508
|
{
|
|
1360
1509
|
showOutsideDays,
|
|
@@ -1453,7 +1602,7 @@ function Calendar({
|
|
|
1453
1602
|
},
|
|
1454
1603
|
components: {
|
|
1455
1604
|
Root: ({ className: className2, rootRef, ...props2 }) => {
|
|
1456
|
-
return /* @__PURE__ */
|
|
1605
|
+
return /* @__PURE__ */ jsx15(
|
|
1457
1606
|
"div",
|
|
1458
1607
|
{
|
|
1459
1608
|
"data-slot": "calendar",
|
|
@@ -1465,10 +1614,10 @@ function Calendar({
|
|
|
1465
1614
|
},
|
|
1466
1615
|
Chevron: ({ className: className2, orientation, ...props2 }) => {
|
|
1467
1616
|
if (orientation === "left") {
|
|
1468
|
-
return /* @__PURE__ */
|
|
1617
|
+
return /* @__PURE__ */ jsx15(ChevronLeftIcon, { className: cn("size-4", className2), ...props2 });
|
|
1469
1618
|
}
|
|
1470
1619
|
if (orientation === "right") {
|
|
1471
|
-
return /* @__PURE__ */
|
|
1620
|
+
return /* @__PURE__ */ jsx15(
|
|
1472
1621
|
ChevronRightIcon,
|
|
1473
1622
|
{
|
|
1474
1623
|
className: cn("size-4", className2),
|
|
@@ -1476,11 +1625,11 @@ function Calendar({
|
|
|
1476
1625
|
}
|
|
1477
1626
|
);
|
|
1478
1627
|
}
|
|
1479
|
-
return /* @__PURE__ */
|
|
1628
|
+
return /* @__PURE__ */ jsx15(ChevronDownIcon, { className: cn("size-4", className2), ...props2 });
|
|
1480
1629
|
},
|
|
1481
1630
|
DayButton: CalendarDayButton,
|
|
1482
1631
|
WeekNumber: ({ children, ...props2 }) => {
|
|
1483
|
-
return /* @__PURE__ */
|
|
1632
|
+
return /* @__PURE__ */ jsx15("td", { ...props2, children: /* @__PURE__ */ jsx15("div", { className: "flex size-[--cell-size] items-center justify-center text-center", children }) });
|
|
1484
1633
|
},
|
|
1485
1634
|
...components
|
|
1486
1635
|
},
|
|
@@ -1495,11 +1644,11 @@ function CalendarDayButton({
|
|
|
1495
1644
|
...props
|
|
1496
1645
|
}) {
|
|
1497
1646
|
const defaultClassNames = getDefaultClassNames();
|
|
1498
|
-
const ref =
|
|
1499
|
-
|
|
1647
|
+
const ref = React16.useRef(null);
|
|
1648
|
+
React16.useEffect(() => {
|
|
1500
1649
|
if (modifiers.focused) ref.current?.focus();
|
|
1501
1650
|
}, [modifiers.focused]);
|
|
1502
|
-
return /* @__PURE__ */
|
|
1651
|
+
return /* @__PURE__ */ jsx15(
|
|
1503
1652
|
Button,
|
|
1504
1653
|
{
|
|
1505
1654
|
ref,
|
|
@@ -1521,9 +1670,9 @@ function CalendarDayButton({
|
|
|
1521
1670
|
}
|
|
1522
1671
|
|
|
1523
1672
|
// src/components/ui/card.tsx
|
|
1524
|
-
import * as
|
|
1525
|
-
import { jsx as
|
|
1526
|
-
var Card =
|
|
1673
|
+
import * as React17 from "react";
|
|
1674
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
1675
|
+
var Card = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
1527
1676
|
"div",
|
|
1528
1677
|
{
|
|
1529
1678
|
ref,
|
|
@@ -1535,7 +1684,7 @@ var Card = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
1535
1684
|
}
|
|
1536
1685
|
));
|
|
1537
1686
|
Card.displayName = "Card";
|
|
1538
|
-
var CardHeader =
|
|
1687
|
+
var CardHeader = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
1539
1688
|
"div",
|
|
1540
1689
|
{
|
|
1541
1690
|
ref,
|
|
@@ -1544,7 +1693,7 @@ var CardHeader = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1544
1693
|
}
|
|
1545
1694
|
));
|
|
1546
1695
|
CardHeader.displayName = "CardHeader";
|
|
1547
|
-
var CardTitle =
|
|
1696
|
+
var CardTitle = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
1548
1697
|
"div",
|
|
1549
1698
|
{
|
|
1550
1699
|
ref,
|
|
@@ -1553,7 +1702,7 @@ var CardTitle = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
1553
1702
|
}
|
|
1554
1703
|
));
|
|
1555
1704
|
CardTitle.displayName = "CardTitle";
|
|
1556
|
-
var CardDescription =
|
|
1705
|
+
var CardDescription = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
1557
1706
|
"div",
|
|
1558
1707
|
{
|
|
1559
1708
|
ref,
|
|
@@ -1562,9 +1711,9 @@ var CardDescription = React16.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
1562
1711
|
}
|
|
1563
1712
|
));
|
|
1564
1713
|
CardDescription.displayName = "CardDescription";
|
|
1565
|
-
var CardContent =
|
|
1714
|
+
var CardContent = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16("div", { ref, className: cn("p-6 pt-0", className), ...props }));
|
|
1566
1715
|
CardContent.displayName = "CardContent";
|
|
1567
|
-
var CardFooter =
|
|
1716
|
+
var CardFooter = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
1568
1717
|
"div",
|
|
1569
1718
|
{
|
|
1570
1719
|
ref,
|
|
@@ -1575,19 +1724,19 @@ var CardFooter = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1575
1724
|
CardFooter.displayName = "CardFooter";
|
|
1576
1725
|
|
|
1577
1726
|
// src/components/ui/carousel.tsx
|
|
1578
|
-
import * as
|
|
1727
|
+
import * as React18 from "react";
|
|
1579
1728
|
import useEmblaCarousel from "embla-carousel-react";
|
|
1580
1729
|
import { ArrowLeft, ArrowRight } from "lucide-react";
|
|
1581
|
-
import { jsx as
|
|
1582
|
-
var CarouselContext =
|
|
1730
|
+
import { jsx as jsx17, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1731
|
+
var CarouselContext = React18.createContext(null);
|
|
1583
1732
|
function useCarousel() {
|
|
1584
|
-
const context =
|
|
1733
|
+
const context = React18.useContext(CarouselContext);
|
|
1585
1734
|
if (!context) {
|
|
1586
1735
|
throw new Error("useCarousel must be used within a <Carousel />");
|
|
1587
1736
|
}
|
|
1588
1737
|
return context;
|
|
1589
1738
|
}
|
|
1590
|
-
var Carousel =
|
|
1739
|
+
var Carousel = React18.forwardRef(
|
|
1591
1740
|
({
|
|
1592
1741
|
orientation = "horizontal",
|
|
1593
1742
|
opts,
|
|
@@ -1604,22 +1753,22 @@ var Carousel = React17.forwardRef(
|
|
|
1604
1753
|
},
|
|
1605
1754
|
plugins
|
|
1606
1755
|
);
|
|
1607
|
-
const [canScrollPrev, setCanScrollPrev] =
|
|
1608
|
-
const [canScrollNext, setCanScrollNext] =
|
|
1609
|
-
const onSelect =
|
|
1756
|
+
const [canScrollPrev, setCanScrollPrev] = React18.useState(false);
|
|
1757
|
+
const [canScrollNext, setCanScrollNext] = React18.useState(false);
|
|
1758
|
+
const onSelect = React18.useCallback((api2) => {
|
|
1610
1759
|
if (!api2) {
|
|
1611
1760
|
return;
|
|
1612
1761
|
}
|
|
1613
1762
|
setCanScrollPrev(api2.canScrollPrev());
|
|
1614
1763
|
setCanScrollNext(api2.canScrollNext());
|
|
1615
1764
|
}, []);
|
|
1616
|
-
const scrollPrev =
|
|
1765
|
+
const scrollPrev = React18.useCallback(() => {
|
|
1617
1766
|
api?.scrollPrev();
|
|
1618
1767
|
}, [api]);
|
|
1619
|
-
const scrollNext =
|
|
1768
|
+
const scrollNext = React18.useCallback(() => {
|
|
1620
1769
|
api?.scrollNext();
|
|
1621
1770
|
}, [api]);
|
|
1622
|
-
const handleKeyDown =
|
|
1771
|
+
const handleKeyDown = React18.useCallback(
|
|
1623
1772
|
(event) => {
|
|
1624
1773
|
if (event.key === "ArrowLeft") {
|
|
1625
1774
|
event.preventDefault();
|
|
@@ -1631,13 +1780,13 @@ var Carousel = React17.forwardRef(
|
|
|
1631
1780
|
},
|
|
1632
1781
|
[scrollPrev, scrollNext]
|
|
1633
1782
|
);
|
|
1634
|
-
|
|
1783
|
+
React18.useEffect(() => {
|
|
1635
1784
|
if (!api || !setApi) {
|
|
1636
1785
|
return;
|
|
1637
1786
|
}
|
|
1638
1787
|
setApi(api);
|
|
1639
1788
|
}, [api, setApi]);
|
|
1640
|
-
|
|
1789
|
+
React18.useEffect(() => {
|
|
1641
1790
|
if (!api) {
|
|
1642
1791
|
return;
|
|
1643
1792
|
}
|
|
@@ -1648,7 +1797,7 @@ var Carousel = React17.forwardRef(
|
|
|
1648
1797
|
api?.off("select", onSelect);
|
|
1649
1798
|
};
|
|
1650
1799
|
}, [api, onSelect]);
|
|
1651
|
-
return /* @__PURE__ */
|
|
1800
|
+
return /* @__PURE__ */ jsx17(
|
|
1652
1801
|
CarouselContext.Provider,
|
|
1653
1802
|
{
|
|
1654
1803
|
value: {
|
|
@@ -1661,7 +1810,7 @@ var Carousel = React17.forwardRef(
|
|
|
1661
1810
|
canScrollPrev,
|
|
1662
1811
|
canScrollNext
|
|
1663
1812
|
},
|
|
1664
|
-
children: /* @__PURE__ */
|
|
1813
|
+
children: /* @__PURE__ */ jsx17(
|
|
1665
1814
|
"div",
|
|
1666
1815
|
{
|
|
1667
1816
|
ref,
|
|
@@ -1678,9 +1827,9 @@ var Carousel = React17.forwardRef(
|
|
|
1678
1827
|
}
|
|
1679
1828
|
);
|
|
1680
1829
|
Carousel.displayName = "Carousel";
|
|
1681
|
-
var CarouselContent =
|
|
1830
|
+
var CarouselContent = React18.forwardRef(({ className, ...props }, ref) => {
|
|
1682
1831
|
const { carouselRef, orientation } = useCarousel();
|
|
1683
|
-
return /* @__PURE__ */
|
|
1832
|
+
return /* @__PURE__ */ jsx17("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ jsx17(
|
|
1684
1833
|
"div",
|
|
1685
1834
|
{
|
|
1686
1835
|
ref,
|
|
@@ -1694,9 +1843,9 @@ var CarouselContent = React17.forwardRef(({ className, ...props }, ref) => {
|
|
|
1694
1843
|
) });
|
|
1695
1844
|
});
|
|
1696
1845
|
CarouselContent.displayName = "CarouselContent";
|
|
1697
|
-
var CarouselItem =
|
|
1846
|
+
var CarouselItem = React18.forwardRef(({ className, ...props }, ref) => {
|
|
1698
1847
|
const { orientation } = useCarousel();
|
|
1699
|
-
return /* @__PURE__ */
|
|
1848
|
+
return /* @__PURE__ */ jsx17(
|
|
1700
1849
|
"div",
|
|
1701
1850
|
{
|
|
1702
1851
|
ref,
|
|
@@ -1712,9 +1861,9 @@ var CarouselItem = React17.forwardRef(({ className, ...props }, ref) => {
|
|
|
1712
1861
|
);
|
|
1713
1862
|
});
|
|
1714
1863
|
CarouselItem.displayName = "CarouselItem";
|
|
1715
|
-
var CarouselPrevious =
|
|
1864
|
+
var CarouselPrevious = React18.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
1716
1865
|
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
1717
|
-
return /* @__PURE__ */
|
|
1866
|
+
return /* @__PURE__ */ jsxs5(
|
|
1718
1867
|
Button,
|
|
1719
1868
|
{
|
|
1720
1869
|
ref,
|
|
@@ -1729,16 +1878,16 @@ var CarouselPrevious = React17.forwardRef(({ className, variant = "outline", siz
|
|
|
1729
1878
|
onClick: scrollPrev,
|
|
1730
1879
|
...props,
|
|
1731
1880
|
children: [
|
|
1732
|
-
/* @__PURE__ */
|
|
1733
|
-
/* @__PURE__ */
|
|
1881
|
+
/* @__PURE__ */ jsx17(ArrowLeft, { className: "h-4 w-4" }),
|
|
1882
|
+
/* @__PURE__ */ jsx17("span", { className: "sr-only", children: "Previous slide" })
|
|
1734
1883
|
]
|
|
1735
1884
|
}
|
|
1736
1885
|
);
|
|
1737
1886
|
});
|
|
1738
1887
|
CarouselPrevious.displayName = "CarouselPrevious";
|
|
1739
|
-
var CarouselNext =
|
|
1888
|
+
var CarouselNext = React18.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
1740
1889
|
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
1741
|
-
return /* @__PURE__ */
|
|
1890
|
+
return /* @__PURE__ */ jsxs5(
|
|
1742
1891
|
Button,
|
|
1743
1892
|
{
|
|
1744
1893
|
ref,
|
|
@@ -1753,8 +1902,8 @@ var CarouselNext = React17.forwardRef(({ className, variant = "outline", size =
|
|
|
1753
1902
|
onClick: scrollNext,
|
|
1754
1903
|
...props,
|
|
1755
1904
|
children: [
|
|
1756
|
-
/* @__PURE__ */
|
|
1757
|
-
/* @__PURE__ */
|
|
1905
|
+
/* @__PURE__ */ jsx17(ArrowRight, { className: "h-4 w-4" }),
|
|
1906
|
+
/* @__PURE__ */ jsx17("span", { className: "sr-only", children: "Next slide" })
|
|
1758
1907
|
]
|
|
1759
1908
|
}
|
|
1760
1909
|
);
|
|
@@ -1762,22 +1911,22 @@ var CarouselNext = React17.forwardRef(({ className, variant = "outline", size =
|
|
|
1762
1911
|
CarouselNext.displayName = "CarouselNext";
|
|
1763
1912
|
|
|
1764
1913
|
// src/components/ui/chart.tsx
|
|
1765
|
-
import * as
|
|
1914
|
+
import * as React19 from "react";
|
|
1766
1915
|
import * as RechartsPrimitive from "recharts";
|
|
1767
|
-
import { Fragment, jsx as
|
|
1916
|
+
import { Fragment, jsx as jsx18, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1768
1917
|
var THEMES = { light: "", dark: ".dark" };
|
|
1769
|
-
var ChartContext =
|
|
1918
|
+
var ChartContext = React19.createContext(null);
|
|
1770
1919
|
function useChart() {
|
|
1771
|
-
const context =
|
|
1920
|
+
const context = React19.useContext(ChartContext);
|
|
1772
1921
|
if (!context) {
|
|
1773
1922
|
throw new Error("useChart must be used within a <ChartContainer />");
|
|
1774
1923
|
}
|
|
1775
1924
|
return context;
|
|
1776
1925
|
}
|
|
1777
|
-
var ChartContainer =
|
|
1778
|
-
const uniqueId =
|
|
1926
|
+
var ChartContainer = React19.forwardRef(({ id, className, children, config, ...props }, ref) => {
|
|
1927
|
+
const uniqueId = React19.useId();
|
|
1779
1928
|
const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
|
|
1780
|
-
return /* @__PURE__ */
|
|
1929
|
+
return /* @__PURE__ */ jsx18(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ jsxs6(
|
|
1781
1930
|
"div",
|
|
1782
1931
|
{
|
|
1783
1932
|
"data-chart": chartId,
|
|
@@ -1788,8 +1937,8 @@ var ChartContainer = React18.forwardRef(({ id, className, children, config, ...p
|
|
|
1788
1937
|
),
|
|
1789
1938
|
...props,
|
|
1790
1939
|
children: [
|
|
1791
|
-
/* @__PURE__ */
|
|
1792
|
-
/* @__PURE__ */
|
|
1940
|
+
/* @__PURE__ */ jsx18(ChartStyle, { id: chartId, config }),
|
|
1941
|
+
/* @__PURE__ */ jsx18(RechartsPrimitive.ResponsiveContainer, { children })
|
|
1793
1942
|
]
|
|
1794
1943
|
}
|
|
1795
1944
|
) });
|
|
@@ -1802,7 +1951,7 @@ var ChartStyle = ({ id, config }) => {
|
|
|
1802
1951
|
if (!colorConfig.length) {
|
|
1803
1952
|
return null;
|
|
1804
1953
|
}
|
|
1805
|
-
return /* @__PURE__ */
|
|
1954
|
+
return /* @__PURE__ */ jsx18(
|
|
1806
1955
|
"style",
|
|
1807
1956
|
{
|
|
1808
1957
|
dangerouslySetInnerHTML: {
|
|
@@ -1821,7 +1970,7 @@ ${colorConfig.map(([key, itemConfig]) => {
|
|
|
1821
1970
|
);
|
|
1822
1971
|
};
|
|
1823
1972
|
var ChartTooltip = RechartsPrimitive.Tooltip;
|
|
1824
|
-
var ChartTooltipContent =
|
|
1973
|
+
var ChartTooltipContent = React19.forwardRef(
|
|
1825
1974
|
({
|
|
1826
1975
|
active,
|
|
1827
1976
|
payload,
|
|
@@ -1838,7 +1987,7 @@ var ChartTooltipContent = React18.forwardRef(
|
|
|
1838
1987
|
labelKey
|
|
1839
1988
|
}, ref) => {
|
|
1840
1989
|
const { config } = useChart();
|
|
1841
|
-
const tooltipLabel =
|
|
1990
|
+
const tooltipLabel = React19.useMemo(() => {
|
|
1842
1991
|
if (hideLabel || !payload?.length) {
|
|
1843
1992
|
return null;
|
|
1844
1993
|
}
|
|
@@ -1847,12 +1996,12 @@ var ChartTooltipContent = React18.forwardRef(
|
|
|
1847
1996
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1848
1997
|
const value = !labelKey && typeof label === "string" ? config[label]?.label || label : itemConfig?.label;
|
|
1849
1998
|
if (labelFormatter) {
|
|
1850
|
-
return /* @__PURE__ */
|
|
1999
|
+
return /* @__PURE__ */ jsx18("div", { className: cn(labelClassName), children: labelFormatter(value, payload) });
|
|
1851
2000
|
}
|
|
1852
2001
|
if (!value) {
|
|
1853
2002
|
return null;
|
|
1854
2003
|
}
|
|
1855
|
-
return /* @__PURE__ */
|
|
2004
|
+
return /* @__PURE__ */ jsx18("div", { className: cn(labelClassName), children: value });
|
|
1856
2005
|
}, [
|
|
1857
2006
|
label,
|
|
1858
2007
|
labelFormatter,
|
|
@@ -1866,7 +2015,7 @@ var ChartTooltipContent = React18.forwardRef(
|
|
|
1866
2015
|
return null;
|
|
1867
2016
|
}
|
|
1868
2017
|
const nestLabel = payload.length === 1 && indicator !== "dot";
|
|
1869
|
-
return /* @__PURE__ */
|
|
2018
|
+
return /* @__PURE__ */ jsxs6(
|
|
1870
2019
|
"div",
|
|
1871
2020
|
{
|
|
1872
2021
|
ref,
|
|
@@ -1876,19 +2025,19 @@ var ChartTooltipContent = React18.forwardRef(
|
|
|
1876
2025
|
),
|
|
1877
2026
|
children: [
|
|
1878
2027
|
!nestLabel ? tooltipLabel : null,
|
|
1879
|
-
/* @__PURE__ */
|
|
2028
|
+
/* @__PURE__ */ jsx18("div", { className: "grid gap-1.5", children: payload.filter((item) => item.type !== "none").map((item, index) => {
|
|
1880
2029
|
const key = `${nameKey || item.name || item.dataKey || "value"}`;
|
|
1881
2030
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1882
2031
|
const indicatorColor = color || item.payload.fill || item.color;
|
|
1883
|
-
return /* @__PURE__ */
|
|
2032
|
+
return /* @__PURE__ */ jsx18(
|
|
1884
2033
|
"div",
|
|
1885
2034
|
{
|
|
1886
2035
|
className: cn(
|
|
1887
2036
|
"flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",
|
|
1888
2037
|
indicator === "dot" && "items-center"
|
|
1889
2038
|
),
|
|
1890
|
-
children: formatter && item?.value !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */
|
|
1891
|
-
itemConfig?.icon ? /* @__PURE__ */
|
|
2039
|
+
children: formatter && item?.value !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ jsxs6(Fragment, { children: [
|
|
2040
|
+
itemConfig?.icon ? /* @__PURE__ */ jsx18(itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ jsx18(
|
|
1892
2041
|
"div",
|
|
1893
2042
|
{
|
|
1894
2043
|
className: cn(
|
|
@@ -1906,7 +2055,7 @@ var ChartTooltipContent = React18.forwardRef(
|
|
|
1906
2055
|
}
|
|
1907
2056
|
}
|
|
1908
2057
|
),
|
|
1909
|
-
/* @__PURE__ */
|
|
2058
|
+
/* @__PURE__ */ jsxs6(
|
|
1910
2059
|
"div",
|
|
1911
2060
|
{
|
|
1912
2061
|
className: cn(
|
|
@@ -1914,11 +2063,11 @@ var ChartTooltipContent = React18.forwardRef(
|
|
|
1914
2063
|
nestLabel ? "items-end" : "items-center"
|
|
1915
2064
|
),
|
|
1916
2065
|
children: [
|
|
1917
|
-
/* @__PURE__ */
|
|
2066
|
+
/* @__PURE__ */ jsxs6("div", { className: "grid gap-1.5", children: [
|
|
1918
2067
|
nestLabel ? tooltipLabel : null,
|
|
1919
|
-
/* @__PURE__ */
|
|
2068
|
+
/* @__PURE__ */ jsx18("span", { className: "text-muted-foreground", children: itemConfig?.label || item.name })
|
|
1920
2069
|
] }),
|
|
1921
|
-
item.value && /* @__PURE__ */
|
|
2070
|
+
item.value && /* @__PURE__ */ jsx18("span", { className: "font-mono tabular-nums text-foreground", children: item.value.toLocaleString() })
|
|
1922
2071
|
]
|
|
1923
2072
|
}
|
|
1924
2073
|
)
|
|
@@ -1934,13 +2083,13 @@ var ChartTooltipContent = React18.forwardRef(
|
|
|
1934
2083
|
);
|
|
1935
2084
|
ChartTooltipContent.displayName = "ChartTooltip";
|
|
1936
2085
|
var ChartLegend = RechartsPrimitive.Legend;
|
|
1937
|
-
var ChartLegendContent =
|
|
2086
|
+
var ChartLegendContent = React19.forwardRef(
|
|
1938
2087
|
({ className, hideIcon = false, payload, verticalAlign = "bottom", nameKey }, ref) => {
|
|
1939
2088
|
const { config } = useChart();
|
|
1940
2089
|
if (!payload?.length) {
|
|
1941
2090
|
return null;
|
|
1942
2091
|
}
|
|
1943
|
-
return /* @__PURE__ */
|
|
2092
|
+
return /* @__PURE__ */ jsx18(
|
|
1944
2093
|
"div",
|
|
1945
2094
|
{
|
|
1946
2095
|
ref,
|
|
@@ -1952,14 +2101,14 @@ var ChartLegendContent = React18.forwardRef(
|
|
|
1952
2101
|
children: payload.filter((item) => item.type !== "none").map((item) => {
|
|
1953
2102
|
const key = `${nameKey || item.dataKey || "value"}`;
|
|
1954
2103
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1955
|
-
return /* @__PURE__ */
|
|
2104
|
+
return /* @__PURE__ */ jsxs6(
|
|
1956
2105
|
"div",
|
|
1957
2106
|
{
|
|
1958
2107
|
className: cn(
|
|
1959
2108
|
"flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"
|
|
1960
2109
|
),
|
|
1961
2110
|
children: [
|
|
1962
|
-
itemConfig?.icon && !hideIcon ? /* @__PURE__ */
|
|
2111
|
+
itemConfig?.icon && !hideIcon ? /* @__PURE__ */ jsx18(itemConfig.icon, {}) : /* @__PURE__ */ jsx18(
|
|
1963
2112
|
"div",
|
|
1964
2113
|
{
|
|
1965
2114
|
className: "h-2 w-2 shrink-0 rounded-[2px]",
|
|
@@ -1994,11 +2143,11 @@ function getPayloadConfigFromPayload(config, payload, key) {
|
|
|
1994
2143
|
}
|
|
1995
2144
|
|
|
1996
2145
|
// src/components/ui/checkbox.tsx
|
|
1997
|
-
import * as
|
|
2146
|
+
import * as React20 from "react";
|
|
1998
2147
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
1999
2148
|
import { Check } from "lucide-react";
|
|
2000
|
-
import { jsx as
|
|
2001
|
-
var Checkbox =
|
|
2149
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
2150
|
+
var Checkbox = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
2002
2151
|
CheckboxPrimitive.Root,
|
|
2003
2152
|
{
|
|
2004
2153
|
ref,
|
|
@@ -2007,11 +2156,11 @@ var Checkbox = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
2007
2156
|
className
|
|
2008
2157
|
),
|
|
2009
2158
|
...props,
|
|
2010
|
-
children: /* @__PURE__ */
|
|
2159
|
+
children: /* @__PURE__ */ jsx19(
|
|
2011
2160
|
CheckboxPrimitive.Indicator,
|
|
2012
2161
|
{
|
|
2013
2162
|
className: cn("grid place-content-center text-current"),
|
|
2014
|
-
children: /* @__PURE__ */
|
|
2163
|
+
children: /* @__PURE__ */ jsx19(Check, { className: "h-4 w-4" })
|
|
2015
2164
|
}
|
|
2016
2165
|
)
|
|
2017
2166
|
}
|
|
@@ -2025,20 +2174,20 @@ var CollapsibleTrigger2 = CollapsiblePrimitive.CollapsibleTrigger;
|
|
|
2025
2174
|
var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
|
|
2026
2175
|
|
|
2027
2176
|
// src/components/ui/command.tsx
|
|
2028
|
-
import * as
|
|
2177
|
+
import * as React22 from "react";
|
|
2029
2178
|
import { Command as CommandPrimitive } from "cmdk";
|
|
2030
2179
|
import { Search } from "lucide-react";
|
|
2031
2180
|
|
|
2032
2181
|
// src/components/ui/dialog.tsx
|
|
2033
|
-
import * as
|
|
2182
|
+
import * as React21 from "react";
|
|
2034
2183
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
2035
2184
|
import { X } from "lucide-react";
|
|
2036
|
-
import { jsx as
|
|
2185
|
+
import { jsx as jsx20, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
2037
2186
|
var Dialog = DialogPrimitive.Root;
|
|
2038
2187
|
var DialogTrigger = DialogPrimitive.Trigger;
|
|
2039
2188
|
var DialogPortal = DialogPrimitive.Portal;
|
|
2040
2189
|
var DialogClose = DialogPrimitive.Close;
|
|
2041
|
-
var DialogOverlay =
|
|
2190
|
+
var DialogOverlay = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
|
|
2042
2191
|
DialogPrimitive.Overlay,
|
|
2043
2192
|
{
|
|
2044
2193
|
ref,
|
|
@@ -2050,9 +2199,9 @@ var DialogOverlay = React20.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
2050
2199
|
}
|
|
2051
2200
|
));
|
|
2052
2201
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
2053
|
-
var DialogContent =
|
|
2054
|
-
/* @__PURE__ */
|
|
2055
|
-
/* @__PURE__ */
|
|
2202
|
+
var DialogContent = React21.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs7(DialogPortal, { children: [
|
|
2203
|
+
/* @__PURE__ */ jsx20(DialogOverlay, {}),
|
|
2204
|
+
/* @__PURE__ */ jsxs7(
|
|
2056
2205
|
DialogPrimitive.Content,
|
|
2057
2206
|
{
|
|
2058
2207
|
ref,
|
|
@@ -2063,9 +2212,9 @@ var DialogContent = React20.forwardRef(({ className, children, ...props }, ref)
|
|
|
2063
2212
|
...props,
|
|
2064
2213
|
children: [
|
|
2065
2214
|
children,
|
|
2066
|
-
/* @__PURE__ */
|
|
2067
|
-
/* @__PURE__ */
|
|
2068
|
-
/* @__PURE__ */
|
|
2215
|
+
/* @__PURE__ */ jsxs7(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: [
|
|
2216
|
+
/* @__PURE__ */ jsx20(X, { className: "h-4 w-4" }),
|
|
2217
|
+
/* @__PURE__ */ jsx20("span", { className: "sr-only", children: "Close" })
|
|
2069
2218
|
] })
|
|
2070
2219
|
]
|
|
2071
2220
|
}
|
|
@@ -2075,7 +2224,7 @@ DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
|
2075
2224
|
var DialogHeader = ({
|
|
2076
2225
|
className,
|
|
2077
2226
|
...props
|
|
2078
|
-
}) => /* @__PURE__ */
|
|
2227
|
+
}) => /* @__PURE__ */ jsx20(
|
|
2079
2228
|
"div",
|
|
2080
2229
|
{
|
|
2081
2230
|
className: cn(
|
|
@@ -2089,7 +2238,7 @@ DialogHeader.displayName = "DialogHeader";
|
|
|
2089
2238
|
var DialogFooter = ({
|
|
2090
2239
|
className,
|
|
2091
2240
|
...props
|
|
2092
|
-
}) => /* @__PURE__ */
|
|
2241
|
+
}) => /* @__PURE__ */ jsx20(
|
|
2093
2242
|
"div",
|
|
2094
2243
|
{
|
|
2095
2244
|
className: cn(
|
|
@@ -2100,7 +2249,7 @@ var DialogFooter = ({
|
|
|
2100
2249
|
}
|
|
2101
2250
|
);
|
|
2102
2251
|
DialogFooter.displayName = "DialogFooter";
|
|
2103
|
-
var DialogTitle =
|
|
2252
|
+
var DialogTitle = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
|
|
2104
2253
|
DialogPrimitive.Title,
|
|
2105
2254
|
{
|
|
2106
2255
|
ref,
|
|
@@ -2112,7 +2261,7 @@ var DialogTitle = React20.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2112
2261
|
}
|
|
2113
2262
|
));
|
|
2114
2263
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
2115
|
-
var DialogDescription =
|
|
2264
|
+
var DialogDescription = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
|
|
2116
2265
|
DialogPrimitive.Description,
|
|
2117
2266
|
{
|
|
2118
2267
|
ref,
|
|
@@ -2123,8 +2272,8 @@ var DialogDescription = React20.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2123
2272
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
2124
2273
|
|
|
2125
2274
|
// src/components/ui/command.tsx
|
|
2126
|
-
import { jsx as
|
|
2127
|
-
var Command =
|
|
2275
|
+
import { jsx as jsx21, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
2276
|
+
var Command = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
2128
2277
|
CommandPrimitive,
|
|
2129
2278
|
{
|
|
2130
2279
|
ref,
|
|
@@ -2137,11 +2286,11 @@ var Command = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
2137
2286
|
));
|
|
2138
2287
|
Command.displayName = CommandPrimitive.displayName;
|
|
2139
2288
|
var CommandDialog = ({ children, ...props }) => {
|
|
2140
|
-
return /* @__PURE__ */
|
|
2289
|
+
return /* @__PURE__ */ jsx21(Dialog, { ...props, children: /* @__PURE__ */ jsx21(DialogContent, { className: "overflow-hidden p-0", children: /* @__PURE__ */ jsx21(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 }) }) });
|
|
2141
2290
|
};
|
|
2142
|
-
var CommandInput =
|
|
2143
|
-
/* @__PURE__ */
|
|
2144
|
-
/* @__PURE__ */
|
|
2291
|
+
var CommandInput = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs8("div", { className: "flex items-center border-b border-border px-3", "cmdk-input-wrapper": "", children: [
|
|
2292
|
+
/* @__PURE__ */ jsx21(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
2293
|
+
/* @__PURE__ */ jsx21(
|
|
2145
2294
|
CommandPrimitive.Input,
|
|
2146
2295
|
{
|
|
2147
2296
|
ref,
|
|
@@ -2154,7 +2303,7 @@ var CommandInput = React21.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2154
2303
|
)
|
|
2155
2304
|
] }));
|
|
2156
2305
|
CommandInput.displayName = CommandPrimitive.Input.displayName;
|
|
2157
|
-
var CommandList =
|
|
2306
|
+
var CommandList = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
2158
2307
|
CommandPrimitive.List,
|
|
2159
2308
|
{
|
|
2160
2309
|
ref,
|
|
@@ -2163,7 +2312,7 @@ var CommandList = React21.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2163
2312
|
}
|
|
2164
2313
|
));
|
|
2165
2314
|
CommandList.displayName = CommandPrimitive.List.displayName;
|
|
2166
|
-
var CommandEmpty =
|
|
2315
|
+
var CommandEmpty = React22.forwardRef((props, ref) => /* @__PURE__ */ jsx21(
|
|
2167
2316
|
CommandPrimitive.Empty,
|
|
2168
2317
|
{
|
|
2169
2318
|
ref,
|
|
@@ -2172,7 +2321,7 @@ var CommandEmpty = React21.forwardRef((props, ref) => /* @__PURE__ */ jsx20(
|
|
|
2172
2321
|
}
|
|
2173
2322
|
));
|
|
2174
2323
|
CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
|
|
2175
|
-
var CommandGroup =
|
|
2324
|
+
var CommandGroup = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
2176
2325
|
CommandPrimitive.Group,
|
|
2177
2326
|
{
|
|
2178
2327
|
ref,
|
|
@@ -2184,7 +2333,7 @@ var CommandGroup = React21.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2184
2333
|
}
|
|
2185
2334
|
));
|
|
2186
2335
|
CommandGroup.displayName = CommandPrimitive.Group.displayName;
|
|
2187
|
-
var CommandSeparator =
|
|
2336
|
+
var CommandSeparator = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
2188
2337
|
CommandPrimitive.Separator,
|
|
2189
2338
|
{
|
|
2190
2339
|
ref,
|
|
@@ -2193,7 +2342,7 @@ var CommandSeparator = React21.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
2193
2342
|
}
|
|
2194
2343
|
));
|
|
2195
2344
|
CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
|
|
2196
|
-
var CommandItem =
|
|
2345
|
+
var CommandItem = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
2197
2346
|
CommandPrimitive.Item,
|
|
2198
2347
|
{
|
|
2199
2348
|
ref,
|
|
@@ -2209,7 +2358,7 @@ var CommandShortcut = ({
|
|
|
2209
2358
|
className,
|
|
2210
2359
|
...props
|
|
2211
2360
|
}) => {
|
|
2212
|
-
return /* @__PURE__ */
|
|
2361
|
+
return /* @__PURE__ */ jsx21(
|
|
2213
2362
|
"span",
|
|
2214
2363
|
{
|
|
2215
2364
|
className: cn(
|
|
@@ -2223,17 +2372,17 @@ var CommandShortcut = ({
|
|
|
2223
2372
|
CommandShortcut.displayName = "CommandShortcut";
|
|
2224
2373
|
|
|
2225
2374
|
// src/components/ui/context-menu.tsx
|
|
2226
|
-
import * as
|
|
2375
|
+
import * as React23 from "react";
|
|
2227
2376
|
import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
|
|
2228
2377
|
import { Check as Check2, ChevronRight as ChevronRight2, Circle } from "lucide-react";
|
|
2229
|
-
import { jsx as
|
|
2378
|
+
import { jsx as jsx22, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
2230
2379
|
var ContextMenu = ContextMenuPrimitive.Root;
|
|
2231
2380
|
var ContextMenuTrigger = ContextMenuPrimitive.Trigger;
|
|
2232
2381
|
var ContextMenuGroup = ContextMenuPrimitive.Group;
|
|
2233
2382
|
var ContextMenuPortal = ContextMenuPrimitive.Portal;
|
|
2234
2383
|
var ContextMenuSub = ContextMenuPrimitive.Sub;
|
|
2235
2384
|
var ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;
|
|
2236
|
-
var ContextMenuSubTrigger =
|
|
2385
|
+
var ContextMenuSubTrigger = React23.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs9(
|
|
2237
2386
|
ContextMenuPrimitive.SubTrigger,
|
|
2238
2387
|
{
|
|
2239
2388
|
ref,
|
|
@@ -2245,12 +2394,12 @@ var ContextMenuSubTrigger = React22.forwardRef(({ className, inset, children, ..
|
|
|
2245
2394
|
...props,
|
|
2246
2395
|
children: [
|
|
2247
2396
|
children,
|
|
2248
|
-
/* @__PURE__ */
|
|
2397
|
+
/* @__PURE__ */ jsx22(ChevronRight2, { className: "ml-auto h-4 w-4" })
|
|
2249
2398
|
]
|
|
2250
2399
|
}
|
|
2251
2400
|
));
|
|
2252
2401
|
ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;
|
|
2253
|
-
var ContextMenuSubContent =
|
|
2402
|
+
var ContextMenuSubContent = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(
|
|
2254
2403
|
ContextMenuPrimitive.SubContent,
|
|
2255
2404
|
{
|
|
2256
2405
|
ref,
|
|
@@ -2262,7 +2411,7 @@ var ContextMenuSubContent = React22.forwardRef(({ className, ...props }, ref) =>
|
|
|
2262
2411
|
}
|
|
2263
2412
|
));
|
|
2264
2413
|
ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;
|
|
2265
|
-
var ContextMenuContent =
|
|
2414
|
+
var ContextMenuContent = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx22(
|
|
2266
2415
|
ContextMenuPrimitive.Content,
|
|
2267
2416
|
{
|
|
2268
2417
|
ref,
|
|
@@ -2274,7 +2423,7 @@ var ContextMenuContent = React22.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2274
2423
|
}
|
|
2275
2424
|
) }));
|
|
2276
2425
|
ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;
|
|
2277
|
-
var ContextMenuItem =
|
|
2426
|
+
var ContextMenuItem = React23.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx22(
|
|
2278
2427
|
ContextMenuPrimitive.Item,
|
|
2279
2428
|
{
|
|
2280
2429
|
ref,
|
|
@@ -2287,7 +2436,7 @@ var ContextMenuItem = React22.forwardRef(({ className, inset, ...props }, ref) =
|
|
|
2287
2436
|
}
|
|
2288
2437
|
));
|
|
2289
2438
|
ContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;
|
|
2290
|
-
var ContextMenuCheckboxItem =
|
|
2439
|
+
var ContextMenuCheckboxItem = React23.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs9(
|
|
2291
2440
|
ContextMenuPrimitive.CheckboxItem,
|
|
2292
2441
|
{
|
|
2293
2442
|
ref,
|
|
@@ -2298,13 +2447,13 @@ var ContextMenuCheckboxItem = React22.forwardRef(({ className, children, checked
|
|
|
2298
2447
|
checked,
|
|
2299
2448
|
...props,
|
|
2300
2449
|
children: [
|
|
2301
|
-
/* @__PURE__ */
|
|
2450
|
+
/* @__PURE__ */ jsx22("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx22(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx22(Check2, { className: "h-4 w-4" }) }) }),
|
|
2302
2451
|
children
|
|
2303
2452
|
]
|
|
2304
2453
|
}
|
|
2305
2454
|
));
|
|
2306
2455
|
ContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem.displayName;
|
|
2307
|
-
var ContextMenuRadioItem =
|
|
2456
|
+
var ContextMenuRadioItem = React23.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs9(
|
|
2308
2457
|
ContextMenuPrimitive.RadioItem,
|
|
2309
2458
|
{
|
|
2310
2459
|
ref,
|
|
@@ -2314,13 +2463,13 @@ var ContextMenuRadioItem = React22.forwardRef(({ className, children, ...props }
|
|
|
2314
2463
|
),
|
|
2315
2464
|
...props,
|
|
2316
2465
|
children: [
|
|
2317
|
-
/* @__PURE__ */
|
|
2466
|
+
/* @__PURE__ */ jsx22("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx22(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx22(Circle, { className: "h-4 w-4 fill-current" }) }) }),
|
|
2318
2467
|
children
|
|
2319
2468
|
]
|
|
2320
2469
|
}
|
|
2321
2470
|
));
|
|
2322
2471
|
ContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;
|
|
2323
|
-
var ContextMenuLabel =
|
|
2472
|
+
var ContextMenuLabel = React23.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx22(
|
|
2324
2473
|
ContextMenuPrimitive.Label,
|
|
2325
2474
|
{
|
|
2326
2475
|
ref,
|
|
@@ -2333,7 +2482,7 @@ var ContextMenuLabel = React22.forwardRef(({ className, inset, ...props }, ref)
|
|
|
2333
2482
|
}
|
|
2334
2483
|
));
|
|
2335
2484
|
ContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;
|
|
2336
|
-
var ContextMenuSeparator =
|
|
2485
|
+
var ContextMenuSeparator = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(
|
|
2337
2486
|
ContextMenuPrimitive.Separator,
|
|
2338
2487
|
{
|
|
2339
2488
|
ref,
|
|
@@ -2346,7 +2495,7 @@ var ContextMenuShortcut = ({
|
|
|
2346
2495
|
className,
|
|
2347
2496
|
...props
|
|
2348
2497
|
}) => {
|
|
2349
|
-
return /* @__PURE__ */
|
|
2498
|
+
return /* @__PURE__ */ jsx22(
|
|
2350
2499
|
"span",
|
|
2351
2500
|
{
|
|
2352
2501
|
className: cn(
|
|
@@ -2360,13 +2509,13 @@ var ContextMenuShortcut = ({
|
|
|
2360
2509
|
ContextMenuShortcut.displayName = "ContextMenuShortcut";
|
|
2361
2510
|
|
|
2362
2511
|
// src/components/ui/drawer.tsx
|
|
2363
|
-
import * as
|
|
2512
|
+
import * as React24 from "react";
|
|
2364
2513
|
import { Drawer as DrawerPrimitive } from "vaul";
|
|
2365
|
-
import { jsx as
|
|
2514
|
+
import { jsx as jsx23, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
2366
2515
|
var Drawer = ({
|
|
2367
2516
|
shouldScaleBackground = true,
|
|
2368
2517
|
...props
|
|
2369
|
-
}) => /* @__PURE__ */
|
|
2518
|
+
}) => /* @__PURE__ */ jsx23(
|
|
2370
2519
|
DrawerPrimitive.Root,
|
|
2371
2520
|
{
|
|
2372
2521
|
shouldScaleBackground,
|
|
@@ -2377,7 +2526,7 @@ Drawer.displayName = "Drawer";
|
|
|
2377
2526
|
var DrawerTrigger = DrawerPrimitive.Trigger;
|
|
2378
2527
|
var DrawerPortal = DrawerPrimitive.Portal;
|
|
2379
2528
|
var DrawerClose = DrawerPrimitive.Close;
|
|
2380
|
-
var DrawerOverlay =
|
|
2529
|
+
var DrawerOverlay = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
2381
2530
|
DrawerPrimitive.Overlay,
|
|
2382
2531
|
{
|
|
2383
2532
|
ref,
|
|
@@ -2386,9 +2535,9 @@ var DrawerOverlay = React23.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
2386
2535
|
}
|
|
2387
2536
|
));
|
|
2388
2537
|
DrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName;
|
|
2389
|
-
var DrawerContent =
|
|
2390
|
-
/* @__PURE__ */
|
|
2391
|
-
/* @__PURE__ */
|
|
2538
|
+
var DrawerContent = React24.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs10(DrawerPortal, { children: [
|
|
2539
|
+
/* @__PURE__ */ jsx23(DrawerOverlay, {}),
|
|
2540
|
+
/* @__PURE__ */ jsxs10(
|
|
2392
2541
|
DrawerPrimitive.Content,
|
|
2393
2542
|
{
|
|
2394
2543
|
ref,
|
|
@@ -2398,7 +2547,7 @@ var DrawerContent = React23.forwardRef(({ className, children, ...props }, ref)
|
|
|
2398
2547
|
),
|
|
2399
2548
|
...props,
|
|
2400
2549
|
children: [
|
|
2401
|
-
/* @__PURE__ */
|
|
2550
|
+
/* @__PURE__ */ jsx23("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
|
|
2402
2551
|
children
|
|
2403
2552
|
]
|
|
2404
2553
|
}
|
|
@@ -2408,7 +2557,7 @@ DrawerContent.displayName = "DrawerContent";
|
|
|
2408
2557
|
var DrawerHeader = ({
|
|
2409
2558
|
className,
|
|
2410
2559
|
...props
|
|
2411
|
-
}) => /* @__PURE__ */
|
|
2560
|
+
}) => /* @__PURE__ */ jsx23(
|
|
2412
2561
|
"div",
|
|
2413
2562
|
{
|
|
2414
2563
|
className: cn("grid gap-1.5 p-4 text-center sm:text-left", className),
|
|
@@ -2419,7 +2568,7 @@ DrawerHeader.displayName = "DrawerHeader";
|
|
|
2419
2568
|
var DrawerFooter = ({
|
|
2420
2569
|
className,
|
|
2421
2570
|
...props
|
|
2422
|
-
}) => /* @__PURE__ */
|
|
2571
|
+
}) => /* @__PURE__ */ jsx23(
|
|
2423
2572
|
"div",
|
|
2424
2573
|
{
|
|
2425
2574
|
className: cn("mt-auto flex flex-col gap-2 p-4", className),
|
|
@@ -2427,7 +2576,7 @@ var DrawerFooter = ({
|
|
|
2427
2576
|
}
|
|
2428
2577
|
);
|
|
2429
2578
|
DrawerFooter.displayName = "DrawerFooter";
|
|
2430
|
-
var DrawerTitle =
|
|
2579
|
+
var DrawerTitle = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
2431
2580
|
DrawerPrimitive.Title,
|
|
2432
2581
|
{
|
|
2433
2582
|
ref,
|
|
@@ -2439,7 +2588,7 @@ var DrawerTitle = React23.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2439
2588
|
}
|
|
2440
2589
|
));
|
|
2441
2590
|
DrawerTitle.displayName = DrawerPrimitive.Title.displayName;
|
|
2442
|
-
var DrawerDescription =
|
|
2591
|
+
var DrawerDescription = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
2443
2592
|
DrawerPrimitive.Description,
|
|
2444
2593
|
{
|
|
2445
2594
|
ref,
|
|
@@ -2450,17 +2599,17 @@ var DrawerDescription = React23.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2450
2599
|
DrawerDescription.displayName = DrawerPrimitive.Description.displayName;
|
|
2451
2600
|
|
|
2452
2601
|
// src/components/ui/dropdown-menu.tsx
|
|
2453
|
-
import * as
|
|
2602
|
+
import * as React25 from "react";
|
|
2454
2603
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
2455
2604
|
import { Check as Check3, ChevronRight as ChevronRight3, Circle as Circle2 } from "lucide-react";
|
|
2456
|
-
import { jsx as
|
|
2605
|
+
import { jsx as jsx24, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2457
2606
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
2458
2607
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
2459
2608
|
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
2460
2609
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
2461
2610
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
2462
2611
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
2463
|
-
var DropdownMenuSubTrigger =
|
|
2612
|
+
var DropdownMenuSubTrigger = React25.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs11(
|
|
2464
2613
|
DropdownMenuPrimitive.SubTrigger,
|
|
2465
2614
|
{
|
|
2466
2615
|
ref,
|
|
@@ -2472,12 +2621,12 @@ var DropdownMenuSubTrigger = React24.forwardRef(({ className, inset, children, .
|
|
|
2472
2621
|
...props,
|
|
2473
2622
|
children: [
|
|
2474
2623
|
children,
|
|
2475
|
-
/* @__PURE__ */
|
|
2624
|
+
/* @__PURE__ */ jsx24(ChevronRight3, { className: "ml-auto" })
|
|
2476
2625
|
]
|
|
2477
2626
|
}
|
|
2478
2627
|
));
|
|
2479
2628
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
2480
|
-
var DropdownMenuSubContent =
|
|
2629
|
+
var DropdownMenuSubContent = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx24(
|
|
2481
2630
|
DropdownMenuPrimitive.SubContent,
|
|
2482
2631
|
{
|
|
2483
2632
|
ref,
|
|
@@ -2489,7 +2638,7 @@ var DropdownMenuSubContent = React24.forwardRef(({ className, ...props }, ref) =
|
|
|
2489
2638
|
}
|
|
2490
2639
|
));
|
|
2491
2640
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
2492
|
-
var DropdownMenuContent =
|
|
2641
|
+
var DropdownMenuContent = React25.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx24(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx24(
|
|
2493
2642
|
DropdownMenuPrimitive.Content,
|
|
2494
2643
|
{
|
|
2495
2644
|
ref,
|
|
@@ -2503,7 +2652,7 @@ var DropdownMenuContent = React24.forwardRef(({ className, sideOffset = 4, ...pr
|
|
|
2503
2652
|
}
|
|
2504
2653
|
) }));
|
|
2505
2654
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
2506
|
-
var DropdownMenuItem =
|
|
2655
|
+
var DropdownMenuItem = React25.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx24(
|
|
2507
2656
|
DropdownMenuPrimitive.Item,
|
|
2508
2657
|
{
|
|
2509
2658
|
ref,
|
|
@@ -2516,7 +2665,7 @@ var DropdownMenuItem = React24.forwardRef(({ className, inset, ...props }, ref)
|
|
|
2516
2665
|
}
|
|
2517
2666
|
));
|
|
2518
2667
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
2519
|
-
var DropdownMenuCheckboxItem =
|
|
2668
|
+
var DropdownMenuCheckboxItem = React25.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs11(
|
|
2520
2669
|
DropdownMenuPrimitive.CheckboxItem,
|
|
2521
2670
|
{
|
|
2522
2671
|
ref,
|
|
@@ -2527,13 +2676,13 @@ var DropdownMenuCheckboxItem = React24.forwardRef(({ className, children, checke
|
|
|
2527
2676
|
checked,
|
|
2528
2677
|
...props,
|
|
2529
2678
|
children: [
|
|
2530
|
-
/* @__PURE__ */
|
|
2679
|
+
/* @__PURE__ */ jsx24("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx24(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx24(Check3, { className: "h-4 w-4" }) }) }),
|
|
2531
2680
|
children
|
|
2532
2681
|
]
|
|
2533
2682
|
}
|
|
2534
2683
|
));
|
|
2535
2684
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
2536
|
-
var DropdownMenuRadioItem =
|
|
2685
|
+
var DropdownMenuRadioItem = React25.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs11(
|
|
2537
2686
|
DropdownMenuPrimitive.RadioItem,
|
|
2538
2687
|
{
|
|
2539
2688
|
ref,
|
|
@@ -2543,13 +2692,13 @@ var DropdownMenuRadioItem = React24.forwardRef(({ className, children, ...props
|
|
|
2543
2692
|
),
|
|
2544
2693
|
...props,
|
|
2545
2694
|
children: [
|
|
2546
|
-
/* @__PURE__ */
|
|
2695
|
+
/* @__PURE__ */ jsx24("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx24(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx24(Circle2, { className: "h-2 w-2 fill-current" }) }) }),
|
|
2547
2696
|
children
|
|
2548
2697
|
]
|
|
2549
2698
|
}
|
|
2550
2699
|
));
|
|
2551
2700
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
2552
|
-
var DropdownMenuLabel =
|
|
2701
|
+
var DropdownMenuLabel = React25.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx24(
|
|
2553
2702
|
DropdownMenuPrimitive.Label,
|
|
2554
2703
|
{
|
|
2555
2704
|
ref,
|
|
@@ -2562,7 +2711,7 @@ var DropdownMenuLabel = React24.forwardRef(({ className, inset, ...props }, ref)
|
|
|
2562
2711
|
}
|
|
2563
2712
|
));
|
|
2564
2713
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
2565
|
-
var DropdownMenuSeparator =
|
|
2714
|
+
var DropdownMenuSeparator = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx24(
|
|
2566
2715
|
DropdownMenuPrimitive.Separator,
|
|
2567
2716
|
{
|
|
2568
2717
|
ref,
|
|
@@ -2575,7 +2724,7 @@ var DropdownMenuShortcut = ({
|
|
|
2575
2724
|
className,
|
|
2576
2725
|
...props
|
|
2577
2726
|
}) => {
|
|
2578
|
-
return /* @__PURE__ */
|
|
2727
|
+
return /* @__PURE__ */ jsx24(
|
|
2579
2728
|
"span",
|
|
2580
2729
|
{
|
|
2581
2730
|
className: cn("ml-auto text-xs tracking-widest opacity-60", className),
|
|
@@ -2586,7 +2735,7 @@ var DropdownMenuShortcut = ({
|
|
|
2586
2735
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
2587
2736
|
|
|
2588
2737
|
// src/components/ui/form.tsx
|
|
2589
|
-
import * as
|
|
2738
|
+
import * as React27 from "react";
|
|
2590
2739
|
import { Slot as Slot3 } from "@radix-ui/react-slot";
|
|
2591
2740
|
import {
|
|
2592
2741
|
Controller,
|
|
@@ -2595,14 +2744,14 @@ import {
|
|
|
2595
2744
|
} from "react-hook-form";
|
|
2596
2745
|
|
|
2597
2746
|
// src/components/ui/label.tsx
|
|
2598
|
-
import * as
|
|
2747
|
+
import * as React26 from "react";
|
|
2599
2748
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
2600
|
-
import { cva as
|
|
2601
|
-
import { jsx as
|
|
2602
|
-
var labelVariants =
|
|
2749
|
+
import { cva as cva10 } from "class-variance-authority";
|
|
2750
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
2751
|
+
var labelVariants = cva10(
|
|
2603
2752
|
"text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
2604
2753
|
);
|
|
2605
|
-
var Label3 =
|
|
2754
|
+
var Label3 = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25(
|
|
2606
2755
|
LabelPrimitive.Root,
|
|
2607
2756
|
{
|
|
2608
2757
|
ref,
|
|
@@ -2613,17 +2762,17 @@ var Label3 = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
2613
2762
|
Label3.displayName = LabelPrimitive.Root.displayName;
|
|
2614
2763
|
|
|
2615
2764
|
// src/components/ui/form.tsx
|
|
2616
|
-
import { jsx as
|
|
2765
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
2617
2766
|
var Form = FormProvider;
|
|
2618
|
-
var FormFieldContext =
|
|
2767
|
+
var FormFieldContext = React27.createContext(null);
|
|
2619
2768
|
var FormField = ({
|
|
2620
2769
|
...props
|
|
2621
2770
|
}) => {
|
|
2622
|
-
return /* @__PURE__ */
|
|
2771
|
+
return /* @__PURE__ */ jsx26(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx26(Controller, { ...props }) });
|
|
2623
2772
|
};
|
|
2624
2773
|
var useFormField = () => {
|
|
2625
|
-
const fieldContext =
|
|
2626
|
-
const itemContext =
|
|
2774
|
+
const fieldContext = React27.useContext(FormFieldContext);
|
|
2775
|
+
const itemContext = React27.useContext(FormItemContext);
|
|
2627
2776
|
const { getFieldState, formState } = useFormContext();
|
|
2628
2777
|
if (!fieldContext) {
|
|
2629
2778
|
throw new Error("useFormField should be used within <FormField>");
|
|
@@ -2642,15 +2791,15 @@ var useFormField = () => {
|
|
|
2642
2791
|
...fieldState
|
|
2643
2792
|
};
|
|
2644
2793
|
};
|
|
2645
|
-
var FormItemContext =
|
|
2646
|
-
var FormItem =
|
|
2647
|
-
const id =
|
|
2648
|
-
return /* @__PURE__ */
|
|
2794
|
+
var FormItemContext = React27.createContext(null);
|
|
2795
|
+
var FormItem = React27.forwardRef(({ className, ...props }, ref) => {
|
|
2796
|
+
const id = React27.useId();
|
|
2797
|
+
return /* @__PURE__ */ jsx26(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx26("div", { ref, className: cn("space-y-2", className), ...props }) });
|
|
2649
2798
|
});
|
|
2650
2799
|
FormItem.displayName = "FormItem";
|
|
2651
|
-
var FormLabel =
|
|
2800
|
+
var FormLabel = React27.forwardRef(({ className, ...props }, ref) => {
|
|
2652
2801
|
const { error, formItemId } = useFormField();
|
|
2653
|
-
return /* @__PURE__ */
|
|
2802
|
+
return /* @__PURE__ */ jsx26(
|
|
2654
2803
|
Label3,
|
|
2655
2804
|
{
|
|
2656
2805
|
ref,
|
|
@@ -2661,9 +2810,9 @@ var FormLabel = React26.forwardRef(({ className, ...props }, ref) => {
|
|
|
2661
2810
|
);
|
|
2662
2811
|
});
|
|
2663
2812
|
FormLabel.displayName = "FormLabel";
|
|
2664
|
-
var FormControl =
|
|
2813
|
+
var FormControl = React27.forwardRef(({ ...props }, ref) => {
|
|
2665
2814
|
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
2666
|
-
return /* @__PURE__ */
|
|
2815
|
+
return /* @__PURE__ */ jsx26(
|
|
2667
2816
|
Slot3,
|
|
2668
2817
|
{
|
|
2669
2818
|
ref,
|
|
@@ -2675,9 +2824,9 @@ var FormControl = React26.forwardRef(({ ...props }, ref) => {
|
|
|
2675
2824
|
);
|
|
2676
2825
|
});
|
|
2677
2826
|
FormControl.displayName = "FormControl";
|
|
2678
|
-
var FormDescription =
|
|
2827
|
+
var FormDescription = React27.forwardRef(({ className, ...props }, ref) => {
|
|
2679
2828
|
const { formDescriptionId } = useFormField();
|
|
2680
|
-
return /* @__PURE__ */
|
|
2829
|
+
return /* @__PURE__ */ jsx26(
|
|
2681
2830
|
"p",
|
|
2682
2831
|
{
|
|
2683
2832
|
ref,
|
|
@@ -2688,13 +2837,13 @@ var FormDescription = React26.forwardRef(({ className, ...props }, ref) => {
|
|
|
2688
2837
|
);
|
|
2689
2838
|
});
|
|
2690
2839
|
FormDescription.displayName = "FormDescription";
|
|
2691
|
-
var FormMessage =
|
|
2840
|
+
var FormMessage = React27.forwardRef(({ className, children, ...props }, ref) => {
|
|
2692
2841
|
const { error, formMessageId } = useFormField();
|
|
2693
2842
|
const body = error ? String(error?.message ?? "") : children;
|
|
2694
2843
|
if (!body) {
|
|
2695
2844
|
return null;
|
|
2696
2845
|
}
|
|
2697
|
-
return /* @__PURE__ */
|
|
2846
|
+
return /* @__PURE__ */ jsx26(
|
|
2698
2847
|
"p",
|
|
2699
2848
|
{
|
|
2700
2849
|
ref,
|
|
@@ -2708,12 +2857,12 @@ var FormMessage = React26.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
2708
2857
|
FormMessage.displayName = "FormMessage";
|
|
2709
2858
|
|
|
2710
2859
|
// src/components/ui/hover-card.tsx
|
|
2711
|
-
import * as
|
|
2860
|
+
import * as React28 from "react";
|
|
2712
2861
|
import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
|
|
2713
|
-
import { jsx as
|
|
2862
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
2714
2863
|
var HoverCard = HoverCardPrimitive.Root;
|
|
2715
2864
|
var HoverCardTrigger = HoverCardPrimitive.Trigger;
|
|
2716
|
-
var HoverCardContent =
|
|
2865
|
+
var HoverCardContent = React28.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx27(
|
|
2717
2866
|
HoverCardPrimitive.Content,
|
|
2718
2867
|
{
|
|
2719
2868
|
ref,
|
|
@@ -2729,11 +2878,11 @@ var HoverCardContent = React27.forwardRef(({ className, align = "center", sideOf
|
|
|
2729
2878
|
HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
|
|
2730
2879
|
|
|
2731
2880
|
// src/components/ui/input.tsx
|
|
2732
|
-
import * as
|
|
2733
|
-
import { jsx as
|
|
2734
|
-
var Input =
|
|
2881
|
+
import * as React29 from "react";
|
|
2882
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
2883
|
+
var Input = React29.forwardRef(
|
|
2735
2884
|
({ className, type, ...props }, ref) => {
|
|
2736
|
-
return /* @__PURE__ */
|
|
2885
|
+
return /* @__PURE__ */ jsx28(
|
|
2737
2886
|
"input",
|
|
2738
2887
|
{
|
|
2739
2888
|
type,
|
|
@@ -2750,11 +2899,11 @@ var Input = React28.forwardRef(
|
|
|
2750
2899
|
Input.displayName = "Input";
|
|
2751
2900
|
|
|
2752
2901
|
// src/components/ui/input-otp.tsx
|
|
2753
|
-
import * as
|
|
2902
|
+
import * as React30 from "react";
|
|
2754
2903
|
import { OTPInput, OTPInputContext } from "input-otp";
|
|
2755
2904
|
import { Minus } from "lucide-react";
|
|
2756
|
-
import { jsx as
|
|
2757
|
-
var InputOTP =
|
|
2905
|
+
import { jsx as jsx29, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2906
|
+
var InputOTP = React30.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx29(
|
|
2758
2907
|
OTPInput,
|
|
2759
2908
|
{
|
|
2760
2909
|
ref,
|
|
@@ -2767,12 +2916,12 @@ var InputOTP = React29.forwardRef(({ className, containerClassName, ...props },
|
|
|
2767
2916
|
}
|
|
2768
2917
|
));
|
|
2769
2918
|
InputOTP.displayName = "InputOTP";
|
|
2770
|
-
var InputOTPGroup =
|
|
2919
|
+
var InputOTPGroup = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx29("div", { ref, className: cn("flex items-center", className), ...props }));
|
|
2771
2920
|
InputOTPGroup.displayName = "InputOTPGroup";
|
|
2772
|
-
var InputOTPSlot =
|
|
2773
|
-
const inputOTPContext =
|
|
2921
|
+
var InputOTPSlot = React30.forwardRef(({ index, className, ...props }, ref) => {
|
|
2922
|
+
const inputOTPContext = React30.useContext(OTPInputContext);
|
|
2774
2923
|
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
|
|
2775
|
-
return /* @__PURE__ */
|
|
2924
|
+
return /* @__PURE__ */ jsxs12(
|
|
2776
2925
|
"div",
|
|
2777
2926
|
{
|
|
2778
2927
|
ref,
|
|
@@ -2784,46 +2933,46 @@ var InputOTPSlot = React29.forwardRef(({ index, className, ...props }, ref) => {
|
|
|
2784
2933
|
...props,
|
|
2785
2934
|
children: [
|
|
2786
2935
|
char,
|
|
2787
|
-
hasFakeCaret && /* @__PURE__ */
|
|
2936
|
+
hasFakeCaret && /* @__PURE__ */ jsx29("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx29("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) })
|
|
2788
2937
|
]
|
|
2789
2938
|
}
|
|
2790
2939
|
);
|
|
2791
2940
|
});
|
|
2792
2941
|
InputOTPSlot.displayName = "InputOTPSlot";
|
|
2793
|
-
var InputOTPSeparator =
|
|
2942
|
+
var InputOTPSeparator = React30.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx29("div", { ref, role: "separator", ...props, children: /* @__PURE__ */ jsx29(Minus, {}) }));
|
|
2794
2943
|
InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
2795
2944
|
|
|
2796
2945
|
// src/components/ui/menubar.tsx
|
|
2797
|
-
import * as
|
|
2946
|
+
import * as React31 from "react";
|
|
2798
2947
|
import * as MenubarPrimitive from "@radix-ui/react-menubar";
|
|
2799
2948
|
import { Check as Check4, ChevronRight as ChevronRight4, Circle as Circle3 } from "lucide-react";
|
|
2800
|
-
import { jsx as
|
|
2949
|
+
import { jsx as jsx30, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2801
2950
|
function MenubarMenu({
|
|
2802
2951
|
...props
|
|
2803
2952
|
}) {
|
|
2804
|
-
return /* @__PURE__ */
|
|
2953
|
+
return /* @__PURE__ */ jsx30(MenubarPrimitive.Menu, { ...props });
|
|
2805
2954
|
}
|
|
2806
2955
|
function MenubarGroup({
|
|
2807
2956
|
...props
|
|
2808
2957
|
}) {
|
|
2809
|
-
return /* @__PURE__ */
|
|
2958
|
+
return /* @__PURE__ */ jsx30(MenubarPrimitive.Group, { ...props });
|
|
2810
2959
|
}
|
|
2811
2960
|
function MenubarPortal({
|
|
2812
2961
|
...props
|
|
2813
2962
|
}) {
|
|
2814
|
-
return /* @__PURE__ */
|
|
2963
|
+
return /* @__PURE__ */ jsx30(MenubarPrimitive.Portal, { ...props });
|
|
2815
2964
|
}
|
|
2816
2965
|
function MenubarRadioGroup({
|
|
2817
2966
|
...props
|
|
2818
2967
|
}) {
|
|
2819
|
-
return /* @__PURE__ */
|
|
2968
|
+
return /* @__PURE__ */ jsx30(MenubarPrimitive.RadioGroup, { ...props });
|
|
2820
2969
|
}
|
|
2821
2970
|
function MenubarSub({
|
|
2822
2971
|
...props
|
|
2823
2972
|
}) {
|
|
2824
|
-
return /* @__PURE__ */
|
|
2973
|
+
return /* @__PURE__ */ jsx30(MenubarPrimitive.Sub, { "data-slot": "menubar-sub", ...props });
|
|
2825
2974
|
}
|
|
2826
|
-
var Menubar =
|
|
2975
|
+
var Menubar = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
2827
2976
|
MenubarPrimitive.Root,
|
|
2828
2977
|
{
|
|
2829
2978
|
ref,
|
|
@@ -2835,7 +2984,7 @@ var Menubar = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
2835
2984
|
}
|
|
2836
2985
|
));
|
|
2837
2986
|
Menubar.displayName = MenubarPrimitive.Root.displayName;
|
|
2838
|
-
var MenubarTrigger =
|
|
2987
|
+
var MenubarTrigger = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
2839
2988
|
MenubarPrimitive.Trigger,
|
|
2840
2989
|
{
|
|
2841
2990
|
ref,
|
|
@@ -2847,7 +2996,7 @@ var MenubarTrigger = React30.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
2847
2996
|
}
|
|
2848
2997
|
));
|
|
2849
2998
|
MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
|
|
2850
|
-
var MenubarSubTrigger =
|
|
2999
|
+
var MenubarSubTrigger = React31.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs13(
|
|
2851
3000
|
MenubarPrimitive.SubTrigger,
|
|
2852
3001
|
{
|
|
2853
3002
|
ref,
|
|
@@ -2859,12 +3008,12 @@ var MenubarSubTrigger = React30.forwardRef(({ className, inset, children, ...pro
|
|
|
2859
3008
|
...props,
|
|
2860
3009
|
children: [
|
|
2861
3010
|
children,
|
|
2862
|
-
/* @__PURE__ */
|
|
3011
|
+
/* @__PURE__ */ jsx30(ChevronRight4, { className: "ml-auto h-4 w-4" })
|
|
2863
3012
|
]
|
|
2864
3013
|
}
|
|
2865
3014
|
));
|
|
2866
3015
|
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
|
2867
|
-
var MenubarSubContent =
|
|
3016
|
+
var MenubarSubContent = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
2868
3017
|
MenubarPrimitive.SubContent,
|
|
2869
3018
|
{
|
|
2870
3019
|
ref,
|
|
@@ -2876,8 +3025,8 @@ var MenubarSubContent = React30.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2876
3025
|
}
|
|
2877
3026
|
));
|
|
2878
3027
|
MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
|
|
2879
|
-
var MenubarContent =
|
|
2880
|
-
({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */
|
|
3028
|
+
var MenubarContent = React31.forwardRef(
|
|
3029
|
+
({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ jsx30(MenubarPrimitive.Portal, { children: /* @__PURE__ */ jsx30(
|
|
2881
3030
|
MenubarPrimitive.Content,
|
|
2882
3031
|
{
|
|
2883
3032
|
ref,
|
|
@@ -2893,7 +3042,7 @@ var MenubarContent = React30.forwardRef(
|
|
|
2893
3042
|
) })
|
|
2894
3043
|
);
|
|
2895
3044
|
MenubarContent.displayName = MenubarPrimitive.Content.displayName;
|
|
2896
|
-
var MenubarItem =
|
|
3045
|
+
var MenubarItem = React31.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
2897
3046
|
MenubarPrimitive.Item,
|
|
2898
3047
|
{
|
|
2899
3048
|
ref,
|
|
@@ -2906,7 +3055,7 @@ var MenubarItem = React30.forwardRef(({ className, inset, ...props }, ref) => /*
|
|
|
2906
3055
|
}
|
|
2907
3056
|
));
|
|
2908
3057
|
MenubarItem.displayName = MenubarPrimitive.Item.displayName;
|
|
2909
|
-
var MenubarCheckboxItem =
|
|
3058
|
+
var MenubarCheckboxItem = React31.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs13(
|
|
2910
3059
|
MenubarPrimitive.CheckboxItem,
|
|
2911
3060
|
{
|
|
2912
3061
|
ref,
|
|
@@ -2917,13 +3066,13 @@ var MenubarCheckboxItem = React30.forwardRef(({ className, children, checked, ..
|
|
|
2917
3066
|
checked,
|
|
2918
3067
|
...props,
|
|
2919
3068
|
children: [
|
|
2920
|
-
/* @__PURE__ */
|
|
3069
|
+
/* @__PURE__ */ jsx30("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx30(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx30(Check4, { className: "h-4 w-4" }) }) }),
|
|
2921
3070
|
children
|
|
2922
3071
|
]
|
|
2923
3072
|
}
|
|
2924
3073
|
));
|
|
2925
3074
|
MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
|
|
2926
|
-
var MenubarRadioItem =
|
|
3075
|
+
var MenubarRadioItem = React31.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs13(
|
|
2927
3076
|
MenubarPrimitive.RadioItem,
|
|
2928
3077
|
{
|
|
2929
3078
|
ref,
|
|
@@ -2933,13 +3082,13 @@ var MenubarRadioItem = React30.forwardRef(({ className, children, ...props }, re
|
|
|
2933
3082
|
),
|
|
2934
3083
|
...props,
|
|
2935
3084
|
children: [
|
|
2936
|
-
/* @__PURE__ */
|
|
3085
|
+
/* @__PURE__ */ jsx30("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx30(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx30(Circle3, { className: "h-4 w-4 fill-current" }) }) }),
|
|
2937
3086
|
children
|
|
2938
3087
|
]
|
|
2939
3088
|
}
|
|
2940
3089
|
));
|
|
2941
3090
|
MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
|
|
2942
|
-
var MenubarLabel =
|
|
3091
|
+
var MenubarLabel = React31.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
2943
3092
|
MenubarPrimitive.Label,
|
|
2944
3093
|
{
|
|
2945
3094
|
ref,
|
|
@@ -2952,7 +3101,7 @@ var MenubarLabel = React30.forwardRef(({ className, inset, ...props }, ref) => /
|
|
|
2952
3101
|
}
|
|
2953
3102
|
));
|
|
2954
3103
|
MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
|
|
2955
|
-
var MenubarSeparator =
|
|
3104
|
+
var MenubarSeparator = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
2956
3105
|
MenubarPrimitive.Separator,
|
|
2957
3106
|
{
|
|
2958
3107
|
ref,
|
|
@@ -2965,7 +3114,7 @@ var MenubarShortcut = ({
|
|
|
2965
3114
|
className,
|
|
2966
3115
|
...props
|
|
2967
3116
|
}) => {
|
|
2968
|
-
return /* @__PURE__ */
|
|
3117
|
+
return /* @__PURE__ */ jsx30(
|
|
2969
3118
|
"span",
|
|
2970
3119
|
{
|
|
2971
3120
|
className: cn(
|
|
@@ -2979,12 +3128,12 @@ var MenubarShortcut = ({
|
|
|
2979
3128
|
MenubarShortcut.displayname = "MenubarShortcut";
|
|
2980
3129
|
|
|
2981
3130
|
// src/components/ui/navigation-menu.tsx
|
|
2982
|
-
import * as
|
|
3131
|
+
import * as React32 from "react";
|
|
2983
3132
|
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
|
2984
|
-
import { cva as
|
|
3133
|
+
import { cva as cva11 } from "class-variance-authority";
|
|
2985
3134
|
import { ChevronDown as ChevronDown2 } from "lucide-react";
|
|
2986
|
-
import { jsx as
|
|
2987
|
-
var NavigationMenu =
|
|
3135
|
+
import { jsx as jsx31, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
3136
|
+
var NavigationMenu = React32.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs14(
|
|
2988
3137
|
NavigationMenuPrimitive.Root,
|
|
2989
3138
|
{
|
|
2990
3139
|
ref,
|
|
@@ -2995,12 +3144,12 @@ var NavigationMenu = React31.forwardRef(({ className, children, ...props }, ref)
|
|
|
2995
3144
|
...props,
|
|
2996
3145
|
children: [
|
|
2997
3146
|
children,
|
|
2998
|
-
/* @__PURE__ */
|
|
3147
|
+
/* @__PURE__ */ jsx31(NavigationMenuViewport, {})
|
|
2999
3148
|
]
|
|
3000
3149
|
}
|
|
3001
3150
|
));
|
|
3002
3151
|
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
3003
|
-
var NavigationMenuList =
|
|
3152
|
+
var NavigationMenuList = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx31(
|
|
3004
3153
|
NavigationMenuPrimitive.List,
|
|
3005
3154
|
{
|
|
3006
3155
|
ref,
|
|
@@ -3013,10 +3162,10 @@ var NavigationMenuList = React31.forwardRef(({ className, ...props }, ref) => /*
|
|
|
3013
3162
|
));
|
|
3014
3163
|
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
3015
3164
|
var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
3016
|
-
var navigationMenuTriggerStyle =
|
|
3165
|
+
var navigationMenuTriggerStyle = cva11(
|
|
3017
3166
|
"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"
|
|
3018
3167
|
);
|
|
3019
|
-
var NavigationMenuTrigger =
|
|
3168
|
+
var NavigationMenuTrigger = React32.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs14(
|
|
3020
3169
|
NavigationMenuPrimitive.Trigger,
|
|
3021
3170
|
{
|
|
3022
3171
|
ref,
|
|
@@ -3025,7 +3174,7 @@ var NavigationMenuTrigger = React31.forwardRef(({ className, children, ...props
|
|
|
3025
3174
|
children: [
|
|
3026
3175
|
children,
|
|
3027
3176
|
" ",
|
|
3028
|
-
/* @__PURE__ */
|
|
3177
|
+
/* @__PURE__ */ jsx31(
|
|
3029
3178
|
ChevronDown2,
|
|
3030
3179
|
{
|
|
3031
3180
|
className: "relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180",
|
|
@@ -3036,7 +3185,7 @@ var NavigationMenuTrigger = React31.forwardRef(({ className, children, ...props
|
|
|
3036
3185
|
}
|
|
3037
3186
|
));
|
|
3038
3187
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
3039
|
-
var NavigationMenuContent =
|
|
3188
|
+
var NavigationMenuContent = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx31(
|
|
3040
3189
|
NavigationMenuPrimitive.Content,
|
|
3041
3190
|
{
|
|
3042
3191
|
ref,
|
|
@@ -3049,7 +3198,7 @@ var NavigationMenuContent = React31.forwardRef(({ className, ...props }, ref) =>
|
|
|
3049
3198
|
));
|
|
3050
3199
|
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
3051
3200
|
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
3052
|
-
var NavigationMenuViewport =
|
|
3201
|
+
var NavigationMenuViewport = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx31("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsx31(
|
|
3053
3202
|
NavigationMenuPrimitive.Viewport,
|
|
3054
3203
|
{
|
|
3055
3204
|
className: cn(
|
|
@@ -3061,7 +3210,7 @@ var NavigationMenuViewport = React31.forwardRef(({ className, ...props }, ref) =
|
|
|
3061
3210
|
}
|
|
3062
3211
|
) }));
|
|
3063
3212
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
3064
|
-
var NavigationMenuIndicator =
|
|
3213
|
+
var NavigationMenuIndicator = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx31(
|
|
3065
3214
|
NavigationMenuPrimitive.Indicator,
|
|
3066
3215
|
{
|
|
3067
3216
|
ref,
|
|
@@ -3070,16 +3219,16 @@ var NavigationMenuIndicator = React31.forwardRef(({ className, ...props }, ref)
|
|
|
3070
3219
|
className
|
|
3071
3220
|
),
|
|
3072
3221
|
...props,
|
|
3073
|
-
children: /* @__PURE__ */
|
|
3222
|
+
children: /* @__PURE__ */ jsx31("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
3074
3223
|
}
|
|
3075
3224
|
));
|
|
3076
3225
|
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
3077
3226
|
|
|
3078
3227
|
// src/components/ui/pagination.tsx
|
|
3079
|
-
import * as
|
|
3228
|
+
import * as React33 from "react";
|
|
3080
3229
|
import { ChevronLeft, ChevronRight as ChevronRight5, MoreHorizontal as MoreHorizontal2 } from "lucide-react";
|
|
3081
|
-
import { jsx as
|
|
3082
|
-
var Pagination = ({ className, ...props }) => /* @__PURE__ */
|
|
3230
|
+
import { jsx as jsx32, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
3231
|
+
var Pagination = ({ className, ...props }) => /* @__PURE__ */ jsx32(
|
|
3083
3232
|
"nav",
|
|
3084
3233
|
{
|
|
3085
3234
|
role: "navigation",
|
|
@@ -3089,7 +3238,7 @@ var Pagination = ({ className, ...props }) => /* @__PURE__ */ jsx31(
|
|
|
3089
3238
|
}
|
|
3090
3239
|
);
|
|
3091
3240
|
Pagination.displayName = "Pagination";
|
|
3092
|
-
var PaginationContent =
|
|
3241
|
+
var PaginationContent = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx32(
|
|
3093
3242
|
"ul",
|
|
3094
3243
|
{
|
|
3095
3244
|
ref,
|
|
@@ -3098,14 +3247,14 @@ var PaginationContent = React32.forwardRef(({ className, ...props }, ref) => /*
|
|
|
3098
3247
|
}
|
|
3099
3248
|
));
|
|
3100
3249
|
PaginationContent.displayName = "PaginationContent";
|
|
3101
|
-
var PaginationItem =
|
|
3250
|
+
var PaginationItem = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx32("li", { ref, className: cn("", className), ...props }));
|
|
3102
3251
|
PaginationItem.displayName = "PaginationItem";
|
|
3103
3252
|
var PaginationLink = ({
|
|
3104
3253
|
className,
|
|
3105
3254
|
isActive,
|
|
3106
3255
|
size = "icon",
|
|
3107
3256
|
...props
|
|
3108
|
-
}) => /* @__PURE__ */
|
|
3257
|
+
}) => /* @__PURE__ */ jsx32(
|
|
3109
3258
|
"a",
|
|
3110
3259
|
{
|
|
3111
3260
|
"aria-current": isActive ? "page" : void 0,
|
|
@@ -3123,7 +3272,7 @@ PaginationLink.displayName = "PaginationLink";
|
|
|
3123
3272
|
var PaginationPrevious = ({
|
|
3124
3273
|
className,
|
|
3125
3274
|
...props
|
|
3126
|
-
}) => /* @__PURE__ */
|
|
3275
|
+
}) => /* @__PURE__ */ jsxs15(
|
|
3127
3276
|
PaginationLink,
|
|
3128
3277
|
{
|
|
3129
3278
|
"aria-label": "Go to previous page",
|
|
@@ -3131,8 +3280,8 @@ var PaginationPrevious = ({
|
|
|
3131
3280
|
className: cn("gap-1 pl-2.5", className),
|
|
3132
3281
|
...props,
|
|
3133
3282
|
children: [
|
|
3134
|
-
/* @__PURE__ */
|
|
3135
|
-
/* @__PURE__ */
|
|
3283
|
+
/* @__PURE__ */ jsx32(ChevronLeft, { className: "h-4 w-4" }),
|
|
3284
|
+
/* @__PURE__ */ jsx32("span", { children: "Previous" })
|
|
3136
3285
|
]
|
|
3137
3286
|
}
|
|
3138
3287
|
);
|
|
@@ -3140,7 +3289,7 @@ PaginationPrevious.displayName = "PaginationPrevious";
|
|
|
3140
3289
|
var PaginationNext = ({
|
|
3141
3290
|
className,
|
|
3142
3291
|
...props
|
|
3143
|
-
}) => /* @__PURE__ */
|
|
3292
|
+
}) => /* @__PURE__ */ jsxs15(
|
|
3144
3293
|
PaginationLink,
|
|
3145
3294
|
{
|
|
3146
3295
|
"aria-label": "Go to next page",
|
|
@@ -3148,8 +3297,8 @@ var PaginationNext = ({
|
|
|
3148
3297
|
className: cn("gap-1 pr-2.5", className),
|
|
3149
3298
|
...props,
|
|
3150
3299
|
children: [
|
|
3151
|
-
/* @__PURE__ */
|
|
3152
|
-
/* @__PURE__ */
|
|
3300
|
+
/* @__PURE__ */ jsx32("span", { children: "Next" }),
|
|
3301
|
+
/* @__PURE__ */ jsx32(ChevronRight5, { className: "h-4 w-4" })
|
|
3153
3302
|
]
|
|
3154
3303
|
}
|
|
3155
3304
|
);
|
|
@@ -3157,28 +3306,28 @@ PaginationNext.displayName = "PaginationNext";
|
|
|
3157
3306
|
var PaginationEllipsis = ({
|
|
3158
3307
|
className,
|
|
3159
3308
|
...props
|
|
3160
|
-
}) => /* @__PURE__ */
|
|
3309
|
+
}) => /* @__PURE__ */ jsxs15(
|
|
3161
3310
|
"span",
|
|
3162
3311
|
{
|
|
3163
3312
|
"aria-hidden": true,
|
|
3164
3313
|
className: cn("flex h-9 w-9 items-center justify-center", className),
|
|
3165
3314
|
...props,
|
|
3166
3315
|
children: [
|
|
3167
|
-
/* @__PURE__ */
|
|
3168
|
-
/* @__PURE__ */
|
|
3316
|
+
/* @__PURE__ */ jsx32(MoreHorizontal2, { className: "h-4 w-4" }),
|
|
3317
|
+
/* @__PURE__ */ jsx32("span", { className: "sr-only", children: "More pages" })
|
|
3169
3318
|
]
|
|
3170
3319
|
}
|
|
3171
3320
|
);
|
|
3172
3321
|
PaginationEllipsis.displayName = "PaginationEllipsis";
|
|
3173
3322
|
|
|
3174
3323
|
// src/components/ui/popover.tsx
|
|
3175
|
-
import * as
|
|
3324
|
+
import * as React34 from "react";
|
|
3176
3325
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
3177
|
-
import { jsx as
|
|
3326
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
3178
3327
|
var Popover = PopoverPrimitive.Root;
|
|
3179
3328
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
3180
3329
|
var PopoverAnchor = PopoverPrimitive.Anchor;
|
|
3181
|
-
var PopoverContent =
|
|
3330
|
+
var PopoverContent = React34.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx33(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx33(
|
|
3182
3331
|
PopoverPrimitive.Content,
|
|
3183
3332
|
{
|
|
3184
3333
|
ref,
|
|
@@ -3194,10 +3343,10 @@ var PopoverContent = React33.forwardRef(({ className, align = "center", sideOffs
|
|
|
3194
3343
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
3195
3344
|
|
|
3196
3345
|
// src/components/ui/progress.tsx
|
|
3197
|
-
import * as
|
|
3346
|
+
import * as React35 from "react";
|
|
3198
3347
|
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
3199
|
-
import { jsx as
|
|
3200
|
-
var Progress =
|
|
3348
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
3349
|
+
var Progress = React35.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ jsx34(
|
|
3201
3350
|
ProgressPrimitive.Root,
|
|
3202
3351
|
{
|
|
3203
3352
|
ref,
|
|
@@ -3206,7 +3355,7 @@ var Progress = React34.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
|
3206
3355
|
className
|
|
3207
3356
|
),
|
|
3208
3357
|
...props,
|
|
3209
|
-
children: /* @__PURE__ */
|
|
3358
|
+
children: /* @__PURE__ */ jsx34(
|
|
3210
3359
|
ProgressPrimitive.Indicator,
|
|
3211
3360
|
{
|
|
3212
3361
|
className: "h-full w-full flex-1 bg-primary transition-all",
|
|
@@ -3218,12 +3367,12 @@ var Progress = React34.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
|
3218
3367
|
Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
3219
3368
|
|
|
3220
3369
|
// src/components/ui/radio-group.tsx
|
|
3221
|
-
import * as
|
|
3370
|
+
import * as React36 from "react";
|
|
3222
3371
|
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
3223
3372
|
import { Circle as Circle4 } from "lucide-react";
|
|
3224
|
-
import { jsx as
|
|
3225
|
-
var RadioGroup4 =
|
|
3226
|
-
return /* @__PURE__ */
|
|
3373
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
3374
|
+
var RadioGroup4 = React36.forwardRef(({ className, ...props }, ref) => {
|
|
3375
|
+
return /* @__PURE__ */ jsx35(
|
|
3227
3376
|
RadioGroupPrimitive.Root,
|
|
3228
3377
|
{
|
|
3229
3378
|
className: cn("grid gap-2", className),
|
|
@@ -3233,8 +3382,8 @@ var RadioGroup4 = React35.forwardRef(({ className, ...props }, ref) => {
|
|
|
3233
3382
|
);
|
|
3234
3383
|
});
|
|
3235
3384
|
RadioGroup4.displayName = RadioGroupPrimitive.Root.displayName;
|
|
3236
|
-
var RadioGroupItem =
|
|
3237
|
-
return /* @__PURE__ */
|
|
3385
|
+
var RadioGroupItem = React36.forwardRef(({ className, ...props }, ref) => {
|
|
3386
|
+
return /* @__PURE__ */ jsx35(
|
|
3238
3387
|
RadioGroupPrimitive.Item,
|
|
3239
3388
|
{
|
|
3240
3389
|
ref,
|
|
@@ -3243,7 +3392,7 @@ var RadioGroupItem = React35.forwardRef(({ className, ...props }, ref) => {
|
|
|
3243
3392
|
className
|
|
3244
3393
|
),
|
|
3245
3394
|
...props,
|
|
3246
|
-
children: /* @__PURE__ */
|
|
3395
|
+
children: /* @__PURE__ */ jsx35(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx35(Circle4, { className: "h-3.5 w-3.5 fill-primary" }) })
|
|
3247
3396
|
}
|
|
3248
3397
|
);
|
|
3249
3398
|
});
|
|
@@ -3256,11 +3405,11 @@ import {
|
|
|
3256
3405
|
Panel,
|
|
3257
3406
|
Separator as Separator4
|
|
3258
3407
|
} from "react-resizable-panels";
|
|
3259
|
-
import { jsx as
|
|
3408
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
3260
3409
|
var ResizablePanelGroup = ({
|
|
3261
3410
|
className,
|
|
3262
3411
|
...props
|
|
3263
|
-
}) => /* @__PURE__ */
|
|
3412
|
+
}) => /* @__PURE__ */ jsx36(
|
|
3264
3413
|
Group4,
|
|
3265
3414
|
{
|
|
3266
3415
|
className: cn(
|
|
@@ -3275,7 +3424,7 @@ var ResizableHandle = ({
|
|
|
3275
3424
|
withHandle,
|
|
3276
3425
|
className,
|
|
3277
3426
|
...props
|
|
3278
|
-
}) => /* @__PURE__ */
|
|
3427
|
+
}) => /* @__PURE__ */ jsx36(
|
|
3279
3428
|
Separator4,
|
|
3280
3429
|
{
|
|
3281
3430
|
className: cn(
|
|
@@ -3283,29 +3432,29 @@ var ResizableHandle = ({
|
|
|
3283
3432
|
className
|
|
3284
3433
|
),
|
|
3285
3434
|
...props,
|
|
3286
|
-
children: withHandle && /* @__PURE__ */
|
|
3435
|
+
children: withHandle && /* @__PURE__ */ jsx36("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ jsx36(GripVertical, { className: "h-2.5 w-2.5" }) })
|
|
3287
3436
|
}
|
|
3288
3437
|
);
|
|
3289
3438
|
|
|
3290
3439
|
// src/components/ui/scroll-area.tsx
|
|
3291
|
-
import * as
|
|
3440
|
+
import * as React37 from "react";
|
|
3292
3441
|
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
3293
|
-
import { jsx as
|
|
3294
|
-
var ScrollArea =
|
|
3442
|
+
import { jsx as jsx37, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
3443
|
+
var ScrollArea = React37.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs16(
|
|
3295
3444
|
ScrollAreaPrimitive.Root,
|
|
3296
3445
|
{
|
|
3297
3446
|
ref,
|
|
3298
3447
|
className: cn("relative overflow-hidden", className),
|
|
3299
3448
|
...props,
|
|
3300
3449
|
children: [
|
|
3301
|
-
/* @__PURE__ */
|
|
3302
|
-
/* @__PURE__ */
|
|
3303
|
-
/* @__PURE__ */
|
|
3450
|
+
/* @__PURE__ */ jsx37(ScrollAreaPrimitive.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
|
|
3451
|
+
/* @__PURE__ */ jsx37(ScrollBar, {}),
|
|
3452
|
+
/* @__PURE__ */ jsx37(ScrollAreaPrimitive.Corner, {})
|
|
3304
3453
|
]
|
|
3305
3454
|
}
|
|
3306
3455
|
));
|
|
3307
3456
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
3308
|
-
var ScrollBar =
|
|
3457
|
+
var ScrollBar = React37.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx37(
|
|
3309
3458
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
3310
3459
|
{
|
|
3311
3460
|
ref,
|
|
@@ -3317,20 +3466,20 @@ var ScrollBar = React36.forwardRef(({ className, orientation = "vertical", ...pr
|
|
|
3317
3466
|
className
|
|
3318
3467
|
),
|
|
3319
3468
|
...props,
|
|
3320
|
-
children: /* @__PURE__ */
|
|
3469
|
+
children: /* @__PURE__ */ jsx37(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
3321
3470
|
}
|
|
3322
3471
|
));
|
|
3323
3472
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
3324
3473
|
|
|
3325
3474
|
// src/components/ui/select.tsx
|
|
3326
|
-
import * as
|
|
3475
|
+
import * as React38 from "react";
|
|
3327
3476
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
3328
3477
|
import { Check as Check5, ChevronDown as ChevronDown3, ChevronUp } from "lucide-react";
|
|
3329
|
-
import { jsx as
|
|
3478
|
+
import { jsx as jsx38, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
3330
3479
|
var Select = SelectPrimitive.Root;
|
|
3331
3480
|
var SelectGroup = SelectPrimitive.Group;
|
|
3332
3481
|
var SelectValue = SelectPrimitive.Value;
|
|
3333
|
-
var SelectTrigger =
|
|
3482
|
+
var SelectTrigger = React38.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs17(
|
|
3334
3483
|
SelectPrimitive.Trigger,
|
|
3335
3484
|
{
|
|
3336
3485
|
ref,
|
|
@@ -3341,12 +3490,12 @@ var SelectTrigger = React37.forwardRef(({ className, children, ...props }, ref)
|
|
|
3341
3490
|
...props,
|
|
3342
3491
|
children: [
|
|
3343
3492
|
children,
|
|
3344
|
-
/* @__PURE__ */
|
|
3493
|
+
/* @__PURE__ */ jsx38(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx38(ChevronDown3, { className: "h-4 w-4 opacity-50" }) })
|
|
3345
3494
|
]
|
|
3346
3495
|
}
|
|
3347
3496
|
));
|
|
3348
3497
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
3349
|
-
var SelectScrollUpButton =
|
|
3498
|
+
var SelectScrollUpButton = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx38(
|
|
3350
3499
|
SelectPrimitive.ScrollUpButton,
|
|
3351
3500
|
{
|
|
3352
3501
|
ref,
|
|
@@ -3355,11 +3504,11 @@ var SelectScrollUpButton = React37.forwardRef(({ className, ...props }, ref) =>
|
|
|
3355
3504
|
className
|
|
3356
3505
|
),
|
|
3357
3506
|
...props,
|
|
3358
|
-
children: /* @__PURE__ */
|
|
3507
|
+
children: /* @__PURE__ */ jsx38(ChevronUp, { className: "h-4 w-4" })
|
|
3359
3508
|
}
|
|
3360
3509
|
));
|
|
3361
3510
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
3362
|
-
var SelectScrollDownButton =
|
|
3511
|
+
var SelectScrollDownButton = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx38(
|
|
3363
3512
|
SelectPrimitive.ScrollDownButton,
|
|
3364
3513
|
{
|
|
3365
3514
|
ref,
|
|
@@ -3368,11 +3517,11 @@ var SelectScrollDownButton = React37.forwardRef(({ className, ...props }, ref) =
|
|
|
3368
3517
|
className
|
|
3369
3518
|
),
|
|
3370
3519
|
...props,
|
|
3371
|
-
children: /* @__PURE__ */
|
|
3520
|
+
children: /* @__PURE__ */ jsx38(ChevronDown3, { className: "h-4 w-4" })
|
|
3372
3521
|
}
|
|
3373
3522
|
));
|
|
3374
3523
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
3375
|
-
var SelectContent =
|
|
3524
|
+
var SelectContent = React38.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx38(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs17(
|
|
3376
3525
|
SelectPrimitive.Content,
|
|
3377
3526
|
{
|
|
3378
3527
|
ref,
|
|
@@ -3384,8 +3533,8 @@ var SelectContent = React37.forwardRef(({ className, children, position = "poppe
|
|
|
3384
3533
|
position,
|
|
3385
3534
|
...props,
|
|
3386
3535
|
children: [
|
|
3387
|
-
/* @__PURE__ */
|
|
3388
|
-
/* @__PURE__ */
|
|
3536
|
+
/* @__PURE__ */ jsx38(SelectScrollUpButton, {}),
|
|
3537
|
+
/* @__PURE__ */ jsx38(
|
|
3389
3538
|
SelectPrimitive.Viewport,
|
|
3390
3539
|
{
|
|
3391
3540
|
className: cn(
|
|
@@ -3395,12 +3544,12 @@ var SelectContent = React37.forwardRef(({ className, children, position = "poppe
|
|
|
3395
3544
|
children
|
|
3396
3545
|
}
|
|
3397
3546
|
),
|
|
3398
|
-
/* @__PURE__ */
|
|
3547
|
+
/* @__PURE__ */ jsx38(SelectScrollDownButton, {})
|
|
3399
3548
|
]
|
|
3400
3549
|
}
|
|
3401
3550
|
) }));
|
|
3402
3551
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
3403
|
-
var SelectLabel =
|
|
3552
|
+
var SelectLabel = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx38(
|
|
3404
3553
|
SelectPrimitive.Label,
|
|
3405
3554
|
{
|
|
3406
3555
|
ref,
|
|
@@ -3409,7 +3558,7 @@ var SelectLabel = React37.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3409
3558
|
}
|
|
3410
3559
|
));
|
|
3411
3560
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
3412
|
-
var SelectItem =
|
|
3561
|
+
var SelectItem = React38.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs17(
|
|
3413
3562
|
SelectPrimitive.Item,
|
|
3414
3563
|
{
|
|
3415
3564
|
ref,
|
|
@@ -3419,13 +3568,13 @@ var SelectItem = React37.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
3419
3568
|
),
|
|
3420
3569
|
...props,
|
|
3421
3570
|
children: [
|
|
3422
|
-
/* @__PURE__ */
|
|
3423
|
-
/* @__PURE__ */
|
|
3571
|
+
/* @__PURE__ */ jsx38("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx38(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx38(Check5, { className: "h-4 w-4" }) }) }),
|
|
3572
|
+
/* @__PURE__ */ jsx38(SelectPrimitive.ItemText, { children })
|
|
3424
3573
|
]
|
|
3425
3574
|
}
|
|
3426
3575
|
));
|
|
3427
3576
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
3428
|
-
var SelectSeparator =
|
|
3577
|
+
var SelectSeparator = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx38(
|
|
3429
3578
|
SelectPrimitive.Separator,
|
|
3430
3579
|
{
|
|
3431
3580
|
ref,
|
|
@@ -3436,11 +3585,11 @@ var SelectSeparator = React37.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
3436
3585
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
3437
3586
|
|
|
3438
3587
|
// src/components/ui/separator.tsx
|
|
3439
|
-
import * as
|
|
3588
|
+
import * as React39 from "react";
|
|
3440
3589
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
3441
|
-
import { jsx as
|
|
3442
|
-
var Separator6 =
|
|
3443
|
-
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */
|
|
3590
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
3591
|
+
var Separator6 = React39.forwardRef(
|
|
3592
|
+
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx39(
|
|
3444
3593
|
SeparatorPrimitive.Root,
|
|
3445
3594
|
{
|
|
3446
3595
|
ref,
|
|
@@ -3458,16 +3607,16 @@ var Separator6 = React38.forwardRef(
|
|
|
3458
3607
|
Separator6.displayName = SeparatorPrimitive.Root.displayName;
|
|
3459
3608
|
|
|
3460
3609
|
// src/components/ui/sheet.tsx
|
|
3461
|
-
import * as
|
|
3610
|
+
import * as React40 from "react";
|
|
3462
3611
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
3463
|
-
import { cva as
|
|
3612
|
+
import { cva as cva12 } from "class-variance-authority";
|
|
3464
3613
|
import { X as X2 } from "lucide-react";
|
|
3465
|
-
import { jsx as
|
|
3614
|
+
import { jsx as jsx40, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
3466
3615
|
var Sheet = SheetPrimitive.Root;
|
|
3467
3616
|
var SheetTrigger = SheetPrimitive.Trigger;
|
|
3468
3617
|
var SheetClose = SheetPrimitive.Close;
|
|
3469
3618
|
var SheetPortal = SheetPrimitive.Portal;
|
|
3470
|
-
var SheetOverlay =
|
|
3619
|
+
var SheetOverlay = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx40(
|
|
3471
3620
|
SheetPrimitive.Overlay,
|
|
3472
3621
|
{
|
|
3473
3622
|
className: cn(
|
|
@@ -3479,7 +3628,7 @@ var SheetOverlay = React39.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
3479
3628
|
}
|
|
3480
3629
|
));
|
|
3481
3630
|
SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
|
|
3482
|
-
var sheetVariants =
|
|
3631
|
+
var sheetVariants = cva12(
|
|
3483
3632
|
"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",
|
|
3484
3633
|
{
|
|
3485
3634
|
variants: {
|
|
@@ -3495,18 +3644,18 @@ var sheetVariants = cva11(
|
|
|
3495
3644
|
}
|
|
3496
3645
|
}
|
|
3497
3646
|
);
|
|
3498
|
-
var SheetContent =
|
|
3499
|
-
/* @__PURE__ */
|
|
3500
|
-
/* @__PURE__ */
|
|
3647
|
+
var SheetContent = React40.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxs18(SheetPortal, { children: [
|
|
3648
|
+
/* @__PURE__ */ jsx40(SheetOverlay, {}),
|
|
3649
|
+
/* @__PURE__ */ jsxs18(
|
|
3501
3650
|
SheetPrimitive.Content,
|
|
3502
3651
|
{
|
|
3503
3652
|
ref,
|
|
3504
3653
|
className: cn(sheetVariants({ side }), className),
|
|
3505
3654
|
...props,
|
|
3506
3655
|
children: [
|
|
3507
|
-
/* @__PURE__ */
|
|
3508
|
-
/* @__PURE__ */
|
|
3509
|
-
/* @__PURE__ */
|
|
3656
|
+
/* @__PURE__ */ jsxs18(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: [
|
|
3657
|
+
/* @__PURE__ */ jsx40(X2, { className: "h-4 w-4" }),
|
|
3658
|
+
/* @__PURE__ */ jsx40("span", { className: "sr-only", children: "Close" })
|
|
3510
3659
|
] }),
|
|
3511
3660
|
children
|
|
3512
3661
|
]
|
|
@@ -3517,7 +3666,7 @@ SheetContent.displayName = SheetPrimitive.Content.displayName;
|
|
|
3517
3666
|
var SheetHeader = ({
|
|
3518
3667
|
className,
|
|
3519
3668
|
...props
|
|
3520
|
-
}) => /* @__PURE__ */
|
|
3669
|
+
}) => /* @__PURE__ */ jsx40(
|
|
3521
3670
|
"div",
|
|
3522
3671
|
{
|
|
3523
3672
|
className: cn(
|
|
@@ -3531,7 +3680,7 @@ SheetHeader.displayName = "SheetHeader";
|
|
|
3531
3680
|
var SheetFooter = ({
|
|
3532
3681
|
className,
|
|
3533
3682
|
...props
|
|
3534
|
-
}) => /* @__PURE__ */
|
|
3683
|
+
}) => /* @__PURE__ */ jsx40(
|
|
3535
3684
|
"div",
|
|
3536
3685
|
{
|
|
3537
3686
|
className: cn(
|
|
@@ -3542,7 +3691,7 @@ var SheetFooter = ({
|
|
|
3542
3691
|
}
|
|
3543
3692
|
);
|
|
3544
3693
|
SheetFooter.displayName = "SheetFooter";
|
|
3545
|
-
var SheetTitle =
|
|
3694
|
+
var SheetTitle = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx40(
|
|
3546
3695
|
SheetPrimitive.Title,
|
|
3547
3696
|
{
|
|
3548
3697
|
ref,
|
|
@@ -3551,7 +3700,7 @@ var SheetTitle = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
3551
3700
|
}
|
|
3552
3701
|
));
|
|
3553
3702
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
3554
|
-
var SheetDescription =
|
|
3703
|
+
var SheetDescription = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx40(
|
|
3555
3704
|
SheetPrimitive.Description,
|
|
3556
3705
|
{
|
|
3557
3706
|
ref,
|
|
@@ -3562,18 +3711,18 @@ var SheetDescription = React39.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
3562
3711
|
SheetDescription.displayName = SheetPrimitive.Description.displayName;
|
|
3563
3712
|
|
|
3564
3713
|
// src/components/ui/sidebar.tsx
|
|
3565
|
-
import * as
|
|
3714
|
+
import * as React42 from "react";
|
|
3566
3715
|
import { Slot as Slot4 } from "@radix-ui/react-slot";
|
|
3567
|
-
import { cva as
|
|
3716
|
+
import { cva as cva13 } from "class-variance-authority";
|
|
3568
3717
|
import { PanelLeft } from "lucide-react";
|
|
3569
3718
|
|
|
3570
3719
|
// src/components/ui/skeleton.tsx
|
|
3571
|
-
import { jsx as
|
|
3720
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
3572
3721
|
function Skeleton({
|
|
3573
3722
|
className,
|
|
3574
3723
|
...props
|
|
3575
3724
|
}) {
|
|
3576
|
-
return /* @__PURE__ */
|
|
3725
|
+
return /* @__PURE__ */ jsx41(
|
|
3577
3726
|
"div",
|
|
3578
3727
|
{
|
|
3579
3728
|
className: cn("animate-pulse rounded-md bg-primary/10", className),
|
|
@@ -3583,13 +3732,13 @@ function Skeleton({
|
|
|
3583
3732
|
}
|
|
3584
3733
|
|
|
3585
3734
|
// src/components/ui/tooltip.tsx
|
|
3586
|
-
import * as
|
|
3735
|
+
import * as React41 from "react";
|
|
3587
3736
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
3588
|
-
import { jsx as
|
|
3737
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
3589
3738
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
3590
3739
|
var Tooltip2 = TooltipPrimitive.Root;
|
|
3591
3740
|
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
3592
|
-
var TooltipContent =
|
|
3741
|
+
var TooltipContent = React41.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx42(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsx42(
|
|
3593
3742
|
TooltipPrimitive.Content,
|
|
3594
3743
|
{
|
|
3595
3744
|
ref,
|
|
@@ -3604,22 +3753,22 @@ var TooltipContent = React40.forwardRef(({ className, sideOffset = 4, ...props }
|
|
|
3604
3753
|
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
3605
3754
|
|
|
3606
3755
|
// src/components/ui/sidebar.tsx
|
|
3607
|
-
import { jsx as
|
|
3756
|
+
import { jsx as jsx43, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
3608
3757
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
3609
3758
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
3610
3759
|
var SIDEBAR_WIDTH = "16rem";
|
|
3611
3760
|
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
3612
3761
|
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
3613
3762
|
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
3614
|
-
var SidebarContext =
|
|
3763
|
+
var SidebarContext = React42.createContext(null);
|
|
3615
3764
|
function useSidebar() {
|
|
3616
|
-
const context =
|
|
3765
|
+
const context = React42.useContext(SidebarContext);
|
|
3617
3766
|
if (!context) {
|
|
3618
3767
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
3619
3768
|
}
|
|
3620
3769
|
return context;
|
|
3621
3770
|
}
|
|
3622
|
-
var SidebarProvider =
|
|
3771
|
+
var SidebarProvider = React42.forwardRef(
|
|
3623
3772
|
({
|
|
3624
3773
|
defaultOpen = true,
|
|
3625
3774
|
open: openProp,
|
|
@@ -3630,10 +3779,10 @@ var SidebarProvider = React41.forwardRef(
|
|
|
3630
3779
|
...props
|
|
3631
3780
|
}, ref) => {
|
|
3632
3781
|
const isMobile = useIsMobile();
|
|
3633
|
-
const [openMobile, setOpenMobile] =
|
|
3634
|
-
const [_open, _setOpen] =
|
|
3782
|
+
const [openMobile, setOpenMobile] = React42.useState(false);
|
|
3783
|
+
const [_open, _setOpen] = React42.useState(defaultOpen);
|
|
3635
3784
|
const open = openProp ?? _open;
|
|
3636
|
-
const setOpen =
|
|
3785
|
+
const setOpen = React42.useCallback(
|
|
3637
3786
|
(value) => {
|
|
3638
3787
|
const openState = typeof value === "function" ? value(open) : value;
|
|
3639
3788
|
if (setOpenProp) {
|
|
@@ -3645,10 +3794,10 @@ var SidebarProvider = React41.forwardRef(
|
|
|
3645
3794
|
},
|
|
3646
3795
|
[setOpenProp, open]
|
|
3647
3796
|
);
|
|
3648
|
-
const toggleSidebar =
|
|
3797
|
+
const toggleSidebar = React42.useCallback(() => {
|
|
3649
3798
|
return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
|
|
3650
3799
|
}, [isMobile, setOpen, setOpenMobile]);
|
|
3651
|
-
|
|
3800
|
+
React42.useEffect(() => {
|
|
3652
3801
|
const handleKeyDown = (event) => {
|
|
3653
3802
|
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
3654
3803
|
event.preventDefault();
|
|
@@ -3659,7 +3808,7 @@ var SidebarProvider = React41.forwardRef(
|
|
|
3659
3808
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
3660
3809
|
}, [toggleSidebar]);
|
|
3661
3810
|
const state = open ? "expanded" : "collapsed";
|
|
3662
|
-
const contextValue =
|
|
3811
|
+
const contextValue = React42.useMemo(
|
|
3663
3812
|
() => ({
|
|
3664
3813
|
state,
|
|
3665
3814
|
open,
|
|
@@ -3671,7 +3820,7 @@ var SidebarProvider = React41.forwardRef(
|
|
|
3671
3820
|
}),
|
|
3672
3821
|
[state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
|
|
3673
3822
|
);
|
|
3674
|
-
return /* @__PURE__ */
|
|
3823
|
+
return /* @__PURE__ */ jsx43(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx43(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ jsx43(
|
|
3675
3824
|
"div",
|
|
3676
3825
|
{
|
|
3677
3826
|
style: {
|
|
@@ -3691,7 +3840,7 @@ var SidebarProvider = React41.forwardRef(
|
|
|
3691
3840
|
}
|
|
3692
3841
|
);
|
|
3693
3842
|
SidebarProvider.displayName = "SidebarProvider";
|
|
3694
|
-
var Sidebar =
|
|
3843
|
+
var Sidebar = React42.forwardRef(
|
|
3695
3844
|
({
|
|
3696
3845
|
side = "left",
|
|
3697
3846
|
variant = "sidebar",
|
|
@@ -3702,7 +3851,7 @@ var Sidebar = React41.forwardRef(
|
|
|
3702
3851
|
}, ref) => {
|
|
3703
3852
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
3704
3853
|
if (collapsible === "none") {
|
|
3705
|
-
return /* @__PURE__ */
|
|
3854
|
+
return /* @__PURE__ */ jsx43(
|
|
3706
3855
|
"div",
|
|
3707
3856
|
{
|
|
3708
3857
|
className: cn(
|
|
@@ -3716,7 +3865,7 @@ var Sidebar = React41.forwardRef(
|
|
|
3716
3865
|
);
|
|
3717
3866
|
}
|
|
3718
3867
|
if (isMobile) {
|
|
3719
|
-
return /* @__PURE__ */
|
|
3868
|
+
return /* @__PURE__ */ jsx43(Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ jsxs19(
|
|
3720
3869
|
SheetContent,
|
|
3721
3870
|
{
|
|
3722
3871
|
"data-sidebar": "sidebar",
|
|
@@ -3727,16 +3876,16 @@ var Sidebar = React41.forwardRef(
|
|
|
3727
3876
|
},
|
|
3728
3877
|
side,
|
|
3729
3878
|
children: [
|
|
3730
|
-
/* @__PURE__ */
|
|
3731
|
-
/* @__PURE__ */
|
|
3732
|
-
/* @__PURE__ */
|
|
3879
|
+
/* @__PURE__ */ jsxs19(SheetHeader, { className: "sr-only", children: [
|
|
3880
|
+
/* @__PURE__ */ jsx43(SheetTitle, { children: "Sidebar" }),
|
|
3881
|
+
/* @__PURE__ */ jsx43(SheetDescription, { children: "Displays the mobile sidebar." })
|
|
3733
3882
|
] }),
|
|
3734
|
-
/* @__PURE__ */
|
|
3883
|
+
/* @__PURE__ */ jsx43("div", { className: "flex h-full w-full flex-col", children })
|
|
3735
3884
|
]
|
|
3736
3885
|
}
|
|
3737
3886
|
) });
|
|
3738
3887
|
}
|
|
3739
|
-
return /* @__PURE__ */
|
|
3888
|
+
return /* @__PURE__ */ jsxs19(
|
|
3740
3889
|
"div",
|
|
3741
3890
|
{
|
|
3742
3891
|
ref,
|
|
@@ -3746,7 +3895,7 @@ var Sidebar = React41.forwardRef(
|
|
|
3746
3895
|
"data-variant": variant,
|
|
3747
3896
|
"data-side": side,
|
|
3748
3897
|
children: [
|
|
3749
|
-
/* @__PURE__ */
|
|
3898
|
+
/* @__PURE__ */ jsx43(
|
|
3750
3899
|
"div",
|
|
3751
3900
|
{
|
|
3752
3901
|
className: cn(
|
|
@@ -3757,7 +3906,7 @@ var Sidebar = React41.forwardRef(
|
|
|
3757
3906
|
)
|
|
3758
3907
|
}
|
|
3759
3908
|
),
|
|
3760
|
-
/* @__PURE__ */
|
|
3909
|
+
/* @__PURE__ */ jsx43(
|
|
3761
3910
|
"div",
|
|
3762
3911
|
{
|
|
3763
3912
|
className: cn(
|
|
@@ -3768,7 +3917,7 @@ var Sidebar = React41.forwardRef(
|
|
|
3768
3917
|
className
|
|
3769
3918
|
),
|
|
3770
3919
|
...props,
|
|
3771
|
-
children: /* @__PURE__ */
|
|
3920
|
+
children: /* @__PURE__ */ jsx43(
|
|
3772
3921
|
"div",
|
|
3773
3922
|
{
|
|
3774
3923
|
"data-sidebar": "sidebar",
|
|
@@ -3784,9 +3933,9 @@ var Sidebar = React41.forwardRef(
|
|
|
3784
3933
|
}
|
|
3785
3934
|
);
|
|
3786
3935
|
Sidebar.displayName = "Sidebar";
|
|
3787
|
-
var SidebarTrigger =
|
|
3936
|
+
var SidebarTrigger = React42.forwardRef(({ className, onClick, ...props }, ref) => {
|
|
3788
3937
|
const { toggleSidebar } = useSidebar();
|
|
3789
|
-
return /* @__PURE__ */
|
|
3938
|
+
return /* @__PURE__ */ jsxs19(
|
|
3790
3939
|
Button,
|
|
3791
3940
|
{
|
|
3792
3941
|
ref,
|
|
@@ -3800,16 +3949,16 @@ var SidebarTrigger = React41.forwardRef(({ className, onClick, ...props }, ref)
|
|
|
3800
3949
|
},
|
|
3801
3950
|
...props,
|
|
3802
3951
|
children: [
|
|
3803
|
-
/* @__PURE__ */
|
|
3804
|
-
/* @__PURE__ */
|
|
3952
|
+
/* @__PURE__ */ jsx43(PanelLeft, {}),
|
|
3953
|
+
/* @__PURE__ */ jsx43("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
3805
3954
|
]
|
|
3806
3955
|
}
|
|
3807
3956
|
);
|
|
3808
3957
|
});
|
|
3809
3958
|
SidebarTrigger.displayName = "SidebarTrigger";
|
|
3810
|
-
var SidebarRail =
|
|
3959
|
+
var SidebarRail = React42.forwardRef(({ className, ...props }, ref) => {
|
|
3811
3960
|
const { toggleSidebar } = useSidebar();
|
|
3812
|
-
return /* @__PURE__ */
|
|
3961
|
+
return /* @__PURE__ */ jsx43(
|
|
3813
3962
|
"button",
|
|
3814
3963
|
{
|
|
3815
3964
|
ref,
|
|
@@ -3832,8 +3981,8 @@ var SidebarRail = React41.forwardRef(({ className, ...props }, ref) => {
|
|
|
3832
3981
|
);
|
|
3833
3982
|
});
|
|
3834
3983
|
SidebarRail.displayName = "SidebarRail";
|
|
3835
|
-
var SidebarInset =
|
|
3836
|
-
return /* @__PURE__ */
|
|
3984
|
+
var SidebarInset = React42.forwardRef(({ className, ...props }, ref) => {
|
|
3985
|
+
return /* @__PURE__ */ jsx43(
|
|
3837
3986
|
"main",
|
|
3838
3987
|
{
|
|
3839
3988
|
ref,
|
|
@@ -3847,8 +3996,8 @@ var SidebarInset = React41.forwardRef(({ className, ...props }, ref) => {
|
|
|
3847
3996
|
);
|
|
3848
3997
|
});
|
|
3849
3998
|
SidebarInset.displayName = "SidebarInset";
|
|
3850
|
-
var SidebarInput =
|
|
3851
|
-
return /* @__PURE__ */
|
|
3999
|
+
var SidebarInput = React42.forwardRef(({ className, ...props }, ref) => {
|
|
4000
|
+
return /* @__PURE__ */ jsx43(
|
|
3852
4001
|
Input,
|
|
3853
4002
|
{
|
|
3854
4003
|
ref,
|
|
@@ -3862,8 +4011,8 @@ var SidebarInput = React41.forwardRef(({ className, ...props }, ref) => {
|
|
|
3862
4011
|
);
|
|
3863
4012
|
});
|
|
3864
4013
|
SidebarInput.displayName = "SidebarInput";
|
|
3865
|
-
var SidebarHeader =
|
|
3866
|
-
return /* @__PURE__ */
|
|
4014
|
+
var SidebarHeader = React42.forwardRef(({ className, ...props }, ref) => {
|
|
4015
|
+
return /* @__PURE__ */ jsx43(
|
|
3867
4016
|
"div",
|
|
3868
4017
|
{
|
|
3869
4018
|
ref,
|
|
@@ -3874,8 +4023,8 @@ var SidebarHeader = React41.forwardRef(({ className, ...props }, ref) => {
|
|
|
3874
4023
|
);
|
|
3875
4024
|
});
|
|
3876
4025
|
SidebarHeader.displayName = "SidebarHeader";
|
|
3877
|
-
var SidebarFooter =
|
|
3878
|
-
return /* @__PURE__ */
|
|
4026
|
+
var SidebarFooter = React42.forwardRef(({ className, ...props }, ref) => {
|
|
4027
|
+
return /* @__PURE__ */ jsx43(
|
|
3879
4028
|
"div",
|
|
3880
4029
|
{
|
|
3881
4030
|
ref,
|
|
@@ -3886,8 +4035,8 @@ var SidebarFooter = React41.forwardRef(({ className, ...props }, ref) => {
|
|
|
3886
4035
|
);
|
|
3887
4036
|
});
|
|
3888
4037
|
SidebarFooter.displayName = "SidebarFooter";
|
|
3889
|
-
var SidebarSeparator =
|
|
3890
|
-
return /* @__PURE__ */
|
|
4038
|
+
var SidebarSeparator = React42.forwardRef(({ className, ...props }, ref) => {
|
|
4039
|
+
return /* @__PURE__ */ jsx43(
|
|
3891
4040
|
Separator6,
|
|
3892
4041
|
{
|
|
3893
4042
|
ref,
|
|
@@ -3898,8 +4047,8 @@ var SidebarSeparator = React41.forwardRef(({ className, ...props }, ref) => {
|
|
|
3898
4047
|
);
|
|
3899
4048
|
});
|
|
3900
4049
|
SidebarSeparator.displayName = "SidebarSeparator";
|
|
3901
|
-
var SidebarContent =
|
|
3902
|
-
return /* @__PURE__ */
|
|
4050
|
+
var SidebarContent = React42.forwardRef(({ className, ...props }, ref) => {
|
|
4051
|
+
return /* @__PURE__ */ jsx43(
|
|
3903
4052
|
"div",
|
|
3904
4053
|
{
|
|
3905
4054
|
ref,
|
|
@@ -3913,8 +4062,8 @@ var SidebarContent = React41.forwardRef(({ className, ...props }, ref) => {
|
|
|
3913
4062
|
);
|
|
3914
4063
|
});
|
|
3915
4064
|
SidebarContent.displayName = "SidebarContent";
|
|
3916
|
-
var SidebarGroup =
|
|
3917
|
-
return /* @__PURE__ */
|
|
4065
|
+
var SidebarGroup = React42.forwardRef(({ className, ...props }, ref) => {
|
|
4066
|
+
return /* @__PURE__ */ jsx43(
|
|
3918
4067
|
"div",
|
|
3919
4068
|
{
|
|
3920
4069
|
ref,
|
|
@@ -3925,9 +4074,9 @@ var SidebarGroup = React41.forwardRef(({ className, ...props }, ref) => {
|
|
|
3925
4074
|
);
|
|
3926
4075
|
});
|
|
3927
4076
|
SidebarGroup.displayName = "SidebarGroup";
|
|
3928
|
-
var SidebarGroupLabel =
|
|
4077
|
+
var SidebarGroupLabel = React42.forwardRef(({ className, asChild = false, ...props }, ref) => {
|
|
3929
4078
|
const Comp = asChild ? Slot4 : "div";
|
|
3930
|
-
return /* @__PURE__ */
|
|
4079
|
+
return /* @__PURE__ */ jsx43(
|
|
3931
4080
|
Comp,
|
|
3932
4081
|
{
|
|
3933
4082
|
ref,
|
|
@@ -3942,9 +4091,9 @@ var SidebarGroupLabel = React41.forwardRef(({ className, asChild = false, ...pro
|
|
|
3942
4091
|
);
|
|
3943
4092
|
});
|
|
3944
4093
|
SidebarGroupLabel.displayName = "SidebarGroupLabel";
|
|
3945
|
-
var SidebarGroupAction =
|
|
4094
|
+
var SidebarGroupAction = React42.forwardRef(({ className, asChild = false, ...props }, ref) => {
|
|
3946
4095
|
const Comp = asChild ? Slot4 : "button";
|
|
3947
|
-
return /* @__PURE__ */
|
|
4096
|
+
return /* @__PURE__ */ jsx43(
|
|
3948
4097
|
Comp,
|
|
3949
4098
|
{
|
|
3950
4099
|
ref,
|
|
@@ -3961,7 +4110,7 @@ var SidebarGroupAction = React41.forwardRef(({ className, asChild = false, ...pr
|
|
|
3961
4110
|
);
|
|
3962
4111
|
});
|
|
3963
4112
|
SidebarGroupAction.displayName = "SidebarGroupAction";
|
|
3964
|
-
var SidebarGroupContent =
|
|
4113
|
+
var SidebarGroupContent = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx43(
|
|
3965
4114
|
"div",
|
|
3966
4115
|
{
|
|
3967
4116
|
ref,
|
|
@@ -3971,7 +4120,7 @@ var SidebarGroupContent = React41.forwardRef(({ className, ...props }, ref) => /
|
|
|
3971
4120
|
}
|
|
3972
4121
|
));
|
|
3973
4122
|
SidebarGroupContent.displayName = "SidebarGroupContent";
|
|
3974
|
-
var SidebarMenu =
|
|
4123
|
+
var SidebarMenu = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx43(
|
|
3975
4124
|
"ul",
|
|
3976
4125
|
{
|
|
3977
4126
|
ref,
|
|
@@ -3981,7 +4130,7 @@ var SidebarMenu = React41.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3981
4130
|
}
|
|
3982
4131
|
));
|
|
3983
4132
|
SidebarMenu.displayName = "SidebarMenu";
|
|
3984
|
-
var SidebarMenuItem =
|
|
4133
|
+
var SidebarMenuItem = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx43(
|
|
3985
4134
|
"li",
|
|
3986
4135
|
{
|
|
3987
4136
|
ref,
|
|
@@ -3991,7 +4140,7 @@ var SidebarMenuItem = React41.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
3991
4140
|
}
|
|
3992
4141
|
));
|
|
3993
4142
|
SidebarMenuItem.displayName = "SidebarMenuItem";
|
|
3994
|
-
var sidebarMenuButtonVariants =
|
|
4143
|
+
var sidebarMenuButtonVariants = cva13(
|
|
3995
4144
|
"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",
|
|
3996
4145
|
{
|
|
3997
4146
|
variants: {
|
|
@@ -4011,7 +4160,7 @@ var sidebarMenuButtonVariants = cva12(
|
|
|
4011
4160
|
}
|
|
4012
4161
|
}
|
|
4013
4162
|
);
|
|
4014
|
-
var SidebarMenuButton =
|
|
4163
|
+
var SidebarMenuButton = React42.forwardRef(
|
|
4015
4164
|
({
|
|
4016
4165
|
asChild = false,
|
|
4017
4166
|
isActive = false,
|
|
@@ -4023,7 +4172,7 @@ var SidebarMenuButton = React41.forwardRef(
|
|
|
4023
4172
|
}, ref) => {
|
|
4024
4173
|
const Comp = asChild ? Slot4 : "button";
|
|
4025
4174
|
const { isMobile, state } = useSidebar();
|
|
4026
|
-
const button = /* @__PURE__ */
|
|
4175
|
+
const button = /* @__PURE__ */ jsx43(
|
|
4027
4176
|
Comp,
|
|
4028
4177
|
{
|
|
4029
4178
|
ref,
|
|
@@ -4042,9 +4191,9 @@ var SidebarMenuButton = React41.forwardRef(
|
|
|
4042
4191
|
children: tooltip
|
|
4043
4192
|
};
|
|
4044
4193
|
}
|
|
4045
|
-
return /* @__PURE__ */
|
|
4046
|
-
/* @__PURE__ */
|
|
4047
|
-
/* @__PURE__ */
|
|
4194
|
+
return /* @__PURE__ */ jsxs19(Tooltip2, { children: [
|
|
4195
|
+
/* @__PURE__ */ jsx43(TooltipTrigger, { asChild: true, children: button }),
|
|
4196
|
+
/* @__PURE__ */ jsx43(
|
|
4048
4197
|
TooltipContent,
|
|
4049
4198
|
{
|
|
4050
4199
|
side: "right",
|
|
@@ -4057,9 +4206,9 @@ var SidebarMenuButton = React41.forwardRef(
|
|
|
4057
4206
|
}
|
|
4058
4207
|
);
|
|
4059
4208
|
SidebarMenuButton.displayName = "SidebarMenuButton";
|
|
4060
|
-
var SidebarMenuAction =
|
|
4209
|
+
var SidebarMenuAction = React42.forwardRef(({ className, asChild = false, showOnHover = false, ...props }, ref) => {
|
|
4061
4210
|
const Comp = asChild ? Slot4 : "button";
|
|
4062
|
-
return /* @__PURE__ */
|
|
4211
|
+
return /* @__PURE__ */ jsx43(
|
|
4063
4212
|
Comp,
|
|
4064
4213
|
{
|
|
4065
4214
|
ref,
|
|
@@ -4080,7 +4229,7 @@ var SidebarMenuAction = React41.forwardRef(({ className, asChild = false, showOn
|
|
|
4080
4229
|
);
|
|
4081
4230
|
});
|
|
4082
4231
|
SidebarMenuAction.displayName = "SidebarMenuAction";
|
|
4083
|
-
var SidebarMenuBadge =
|
|
4232
|
+
var SidebarMenuBadge = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx43(
|
|
4084
4233
|
"div",
|
|
4085
4234
|
{
|
|
4086
4235
|
ref,
|
|
@@ -4098,11 +4247,11 @@ var SidebarMenuBadge = React41.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
4098
4247
|
}
|
|
4099
4248
|
));
|
|
4100
4249
|
SidebarMenuBadge.displayName = "SidebarMenuBadge";
|
|
4101
|
-
var SidebarMenuSkeleton =
|
|
4102
|
-
const width =
|
|
4250
|
+
var SidebarMenuSkeleton = React42.forwardRef(({ className, showIcon = false, ...props }, ref) => {
|
|
4251
|
+
const width = React42.useMemo(() => {
|
|
4103
4252
|
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
4104
4253
|
}, []);
|
|
4105
|
-
return /* @__PURE__ */
|
|
4254
|
+
return /* @__PURE__ */ jsxs19(
|
|
4106
4255
|
"div",
|
|
4107
4256
|
{
|
|
4108
4257
|
ref,
|
|
@@ -4110,14 +4259,14 @@ var SidebarMenuSkeleton = React41.forwardRef(({ className, showIcon = false, ...
|
|
|
4110
4259
|
className: cn("flex h-8 items-center gap-2 rounded-md px-2", className),
|
|
4111
4260
|
...props,
|
|
4112
4261
|
children: [
|
|
4113
|
-
showIcon && /* @__PURE__ */
|
|
4262
|
+
showIcon && /* @__PURE__ */ jsx43(
|
|
4114
4263
|
Skeleton,
|
|
4115
4264
|
{
|
|
4116
4265
|
className: "size-4 rounded-md",
|
|
4117
4266
|
"data-sidebar": "menu-skeleton-icon"
|
|
4118
4267
|
}
|
|
4119
4268
|
),
|
|
4120
|
-
/* @__PURE__ */
|
|
4269
|
+
/* @__PURE__ */ jsx43(
|
|
4121
4270
|
Skeleton,
|
|
4122
4271
|
{
|
|
4123
4272
|
className: "h-4 max-w-[--skeleton-width] flex-1",
|
|
@@ -4132,7 +4281,7 @@ var SidebarMenuSkeleton = React41.forwardRef(({ className, showIcon = false, ...
|
|
|
4132
4281
|
);
|
|
4133
4282
|
});
|
|
4134
4283
|
SidebarMenuSkeleton.displayName = "SidebarMenuSkeleton";
|
|
4135
|
-
var SidebarMenuSub =
|
|
4284
|
+
var SidebarMenuSub = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx43(
|
|
4136
4285
|
"ul",
|
|
4137
4286
|
{
|
|
4138
4287
|
ref,
|
|
@@ -4146,11 +4295,11 @@ var SidebarMenuSub = React41.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
4146
4295
|
}
|
|
4147
4296
|
));
|
|
4148
4297
|
SidebarMenuSub.displayName = "SidebarMenuSub";
|
|
4149
|
-
var SidebarMenuSubItem =
|
|
4298
|
+
var SidebarMenuSubItem = React42.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx43("li", { ref, ...props }));
|
|
4150
4299
|
SidebarMenuSubItem.displayName = "SidebarMenuSubItem";
|
|
4151
|
-
var SidebarMenuSubButton =
|
|
4300
|
+
var SidebarMenuSubButton = React42.forwardRef(({ asChild = false, size = "md", isActive, className, ...props }, ref) => {
|
|
4152
4301
|
const Comp = asChild ? Slot4 : "a";
|
|
4153
|
-
return /* @__PURE__ */
|
|
4302
|
+
return /* @__PURE__ */ jsx43(
|
|
4154
4303
|
Comp,
|
|
4155
4304
|
{
|
|
4156
4305
|
ref,
|
|
@@ -4172,10 +4321,10 @@ var SidebarMenuSubButton = React41.forwardRef(({ asChild = false, size = "md", i
|
|
|
4172
4321
|
SidebarMenuSubButton.displayName = "SidebarMenuSubButton";
|
|
4173
4322
|
|
|
4174
4323
|
// src/components/ui/slider.tsx
|
|
4175
|
-
import * as
|
|
4324
|
+
import * as React43 from "react";
|
|
4176
4325
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
4177
|
-
import { jsx as
|
|
4178
|
-
var Slider =
|
|
4326
|
+
import { jsx as jsx44, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
4327
|
+
var Slider = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs20(
|
|
4179
4328
|
SliderPrimitive.Root,
|
|
4180
4329
|
{
|
|
4181
4330
|
ref,
|
|
@@ -4185,8 +4334,8 @@ var Slider = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
4185
4334
|
),
|
|
4186
4335
|
...props,
|
|
4187
4336
|
children: [
|
|
4188
|
-
/* @__PURE__ */
|
|
4189
|
-
/* @__PURE__ */
|
|
4337
|
+
/* @__PURE__ */ jsx44(SliderPrimitive.Track, { className: "relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20", children: /* @__PURE__ */ jsx44(SliderPrimitive.Range, { className: "absolute h-full bg-primary" }) }),
|
|
4338
|
+
/* @__PURE__ */ jsx44(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" })
|
|
4190
4339
|
]
|
|
4191
4340
|
}
|
|
4192
4341
|
));
|
|
@@ -4195,10 +4344,10 @@ Slider.displayName = SliderPrimitive.Root.displayName;
|
|
|
4195
4344
|
// src/components/ui/sonner.tsx
|
|
4196
4345
|
import { useTheme } from "next-themes";
|
|
4197
4346
|
import { Toaster as Sonner } from "sonner";
|
|
4198
|
-
import { jsx as
|
|
4347
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
4199
4348
|
var Toaster = ({ ...props }) => {
|
|
4200
4349
|
const { theme = "system" } = useTheme();
|
|
4201
|
-
return /* @__PURE__ */
|
|
4350
|
+
return /* @__PURE__ */ jsx45(
|
|
4202
4351
|
Sonner,
|
|
4203
4352
|
{
|
|
4204
4353
|
theme,
|
|
@@ -4217,10 +4366,10 @@ var Toaster = ({ ...props }) => {
|
|
|
4217
4366
|
};
|
|
4218
4367
|
|
|
4219
4368
|
// src/components/ui/switch.tsx
|
|
4220
|
-
import * as
|
|
4369
|
+
import * as React44 from "react";
|
|
4221
4370
|
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
|
4222
|
-
import { jsx as
|
|
4223
|
-
var Switch =
|
|
4371
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
4372
|
+
var Switch = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx46(
|
|
4224
4373
|
SwitchPrimitives.Root,
|
|
4225
4374
|
{
|
|
4226
4375
|
className: cn(
|
|
@@ -4229,7 +4378,7 @@ var Switch = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
4229
4378
|
),
|
|
4230
4379
|
...props,
|
|
4231
4380
|
ref,
|
|
4232
|
-
children: /* @__PURE__ */
|
|
4381
|
+
children: /* @__PURE__ */ jsx46(
|
|
4233
4382
|
SwitchPrimitives.Thumb,
|
|
4234
4383
|
{
|
|
4235
4384
|
className: cn(
|
|
@@ -4242,9 +4391,9 @@ var Switch = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
4242
4391
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
4243
4392
|
|
|
4244
4393
|
// src/components/ui/table.tsx
|
|
4245
|
-
import * as
|
|
4246
|
-
import { jsx as
|
|
4247
|
-
var Table =
|
|
4394
|
+
import * as React45 from "react";
|
|
4395
|
+
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
4396
|
+
var Table = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx47("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx47(
|
|
4248
4397
|
"table",
|
|
4249
4398
|
{
|
|
4250
4399
|
ref,
|
|
@@ -4253,9 +4402,9 @@ var Table = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
4253
4402
|
}
|
|
4254
4403
|
) }));
|
|
4255
4404
|
Table.displayName = "Table";
|
|
4256
|
-
var TableHeader =
|
|
4405
|
+
var TableHeader = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx47("thead", { ref, className: cn("[&_tr]:border-b [&_tr]:border-border", className), ...props }));
|
|
4257
4406
|
TableHeader.displayName = "TableHeader";
|
|
4258
|
-
var TableBody =
|
|
4407
|
+
var TableBody = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx47(
|
|
4259
4408
|
"tbody",
|
|
4260
4409
|
{
|
|
4261
4410
|
ref,
|
|
@@ -4264,7 +4413,7 @@ var TableBody = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
4264
4413
|
}
|
|
4265
4414
|
));
|
|
4266
4415
|
TableBody.displayName = "TableBody";
|
|
4267
|
-
var TableFooter =
|
|
4416
|
+
var TableFooter = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx47(
|
|
4268
4417
|
"tfoot",
|
|
4269
4418
|
{
|
|
4270
4419
|
ref,
|
|
@@ -4276,7 +4425,7 @@ var TableFooter = React44.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
4276
4425
|
}
|
|
4277
4426
|
));
|
|
4278
4427
|
TableFooter.displayName = "TableFooter";
|
|
4279
|
-
var TableRow =
|
|
4428
|
+
var TableRow = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx47(
|
|
4280
4429
|
"tr",
|
|
4281
4430
|
{
|
|
4282
4431
|
ref,
|
|
@@ -4288,7 +4437,7 @@ var TableRow = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
4288
4437
|
}
|
|
4289
4438
|
));
|
|
4290
4439
|
TableRow.displayName = "TableRow";
|
|
4291
|
-
var TableHead =
|
|
4440
|
+
var TableHead = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx47(
|
|
4292
4441
|
"th",
|
|
4293
4442
|
{
|
|
4294
4443
|
ref,
|
|
@@ -4300,7 +4449,7 @@ var TableHead = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
4300
4449
|
}
|
|
4301
4450
|
));
|
|
4302
4451
|
TableHead.displayName = "TableHead";
|
|
4303
|
-
var TableCell =
|
|
4452
|
+
var TableCell = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx47(
|
|
4304
4453
|
"td",
|
|
4305
4454
|
{
|
|
4306
4455
|
ref,
|
|
@@ -4312,7 +4461,7 @@ var TableCell = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
4312
4461
|
}
|
|
4313
4462
|
));
|
|
4314
4463
|
TableCell.displayName = "TableCell";
|
|
4315
|
-
var TableCaption =
|
|
4464
|
+
var TableCaption = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx47(
|
|
4316
4465
|
"caption",
|
|
4317
4466
|
{
|
|
4318
4467
|
ref,
|
|
@@ -4323,11 +4472,11 @@ var TableCaption = React44.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
4323
4472
|
TableCaption.displayName = "TableCaption";
|
|
4324
4473
|
|
|
4325
4474
|
// src/components/ui/tabs.tsx
|
|
4326
|
-
import * as
|
|
4475
|
+
import * as React46 from "react";
|
|
4327
4476
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
4328
|
-
import { jsx as
|
|
4477
|
+
import { jsx as jsx48 } from "react/jsx-runtime";
|
|
4329
4478
|
var Tabs = TabsPrimitive.Root;
|
|
4330
|
-
var TabsList =
|
|
4479
|
+
var TabsList = React46.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx48(
|
|
4331
4480
|
TabsPrimitive.List,
|
|
4332
4481
|
{
|
|
4333
4482
|
ref,
|
|
@@ -4339,7 +4488,7 @@ var TabsList = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
4339
4488
|
}
|
|
4340
4489
|
));
|
|
4341
4490
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
4342
|
-
var TabsTrigger =
|
|
4491
|
+
var TabsTrigger = React46.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx48(
|
|
4343
4492
|
TabsPrimitive.Trigger,
|
|
4344
4493
|
{
|
|
4345
4494
|
ref,
|
|
@@ -4351,7 +4500,7 @@ var TabsTrigger = React45.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
4351
4500
|
}
|
|
4352
4501
|
));
|
|
4353
4502
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
4354
|
-
var TabsContent =
|
|
4503
|
+
var TabsContent = React46.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx48(
|
|
4355
4504
|
TabsPrimitive.Content,
|
|
4356
4505
|
{
|
|
4357
4506
|
ref,
|
|
@@ -4365,10 +4514,10 @@ var TabsContent = React45.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
4365
4514
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
4366
4515
|
|
|
4367
4516
|
// src/components/ui/textarea.tsx
|
|
4368
|
-
import * as
|
|
4369
|
-
import { jsx as
|
|
4370
|
-
var Textarea =
|
|
4371
|
-
return /* @__PURE__ */
|
|
4517
|
+
import * as React47 from "react";
|
|
4518
|
+
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
4519
|
+
var Textarea = React47.forwardRef(({ className, ...props }, ref) => {
|
|
4520
|
+
return /* @__PURE__ */ jsx49(
|
|
4372
4521
|
"textarea",
|
|
4373
4522
|
{
|
|
4374
4523
|
className: cn(
|
|
@@ -4383,13 +4532,13 @@ var Textarea = React46.forwardRef(({ className, ...props }, ref) => {
|
|
|
4383
4532
|
Textarea.displayName = "Textarea";
|
|
4384
4533
|
|
|
4385
4534
|
// src/components/ui/toast.tsx
|
|
4386
|
-
import * as
|
|
4535
|
+
import * as React48 from "react";
|
|
4387
4536
|
import * as ToastPrimitives from "@radix-ui/react-toast";
|
|
4388
|
-
import { cva as
|
|
4537
|
+
import { cva as cva14 } from "class-variance-authority";
|
|
4389
4538
|
import { X as X3 } from "lucide-react";
|
|
4390
|
-
import { jsx as
|
|
4539
|
+
import { jsx as jsx50 } from "react/jsx-runtime";
|
|
4391
4540
|
var ToastProvider = ToastPrimitives.Provider;
|
|
4392
|
-
var ToastViewport =
|
|
4541
|
+
var ToastViewport = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx50(
|
|
4393
4542
|
ToastPrimitives.Viewport,
|
|
4394
4543
|
{
|
|
4395
4544
|
ref,
|
|
@@ -4401,7 +4550,7 @@ var ToastViewport = React47.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
4401
4550
|
}
|
|
4402
4551
|
));
|
|
4403
4552
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
4404
|
-
var toastVariants =
|
|
4553
|
+
var toastVariants = cva14(
|
|
4405
4554
|
"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",
|
|
4406
4555
|
{
|
|
4407
4556
|
variants: {
|
|
@@ -4415,8 +4564,8 @@ var toastVariants = cva13(
|
|
|
4415
4564
|
}
|
|
4416
4565
|
}
|
|
4417
4566
|
);
|
|
4418
|
-
var Toast =
|
|
4419
|
-
return /* @__PURE__ */
|
|
4567
|
+
var Toast = React48.forwardRef(({ className, variant, ...props }, ref) => {
|
|
4568
|
+
return /* @__PURE__ */ jsx50(
|
|
4420
4569
|
ToastPrimitives.Root,
|
|
4421
4570
|
{
|
|
4422
4571
|
ref,
|
|
@@ -4426,7 +4575,7 @@ var Toast = React47.forwardRef(({ className, variant, ...props }, ref) => {
|
|
|
4426
4575
|
);
|
|
4427
4576
|
});
|
|
4428
4577
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
4429
|
-
var ToastAction =
|
|
4578
|
+
var ToastAction = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx50(
|
|
4430
4579
|
ToastPrimitives.Action,
|
|
4431
4580
|
{
|
|
4432
4581
|
ref,
|
|
@@ -4438,7 +4587,7 @@ var ToastAction = React47.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
4438
4587
|
}
|
|
4439
4588
|
));
|
|
4440
4589
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
4441
|
-
var ToastClose =
|
|
4590
|
+
var ToastClose = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx50(
|
|
4442
4591
|
ToastPrimitives.Close,
|
|
4443
4592
|
{
|
|
4444
4593
|
ref,
|
|
@@ -4448,11 +4597,11 @@ var ToastClose = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
4448
4597
|
),
|
|
4449
4598
|
"toast-close": "",
|
|
4450
4599
|
...props,
|
|
4451
|
-
children: /* @__PURE__ */
|
|
4600
|
+
children: /* @__PURE__ */ jsx50(X3, { className: "h-4 w-4" })
|
|
4452
4601
|
}
|
|
4453
4602
|
));
|
|
4454
4603
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
4455
|
-
var ToastTitle =
|
|
4604
|
+
var ToastTitle = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx50(
|
|
4456
4605
|
ToastPrimitives.Title,
|
|
4457
4606
|
{
|
|
4458
4607
|
ref,
|
|
@@ -4461,7 +4610,7 @@ var ToastTitle = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
4461
4610
|
}
|
|
4462
4611
|
));
|
|
4463
4612
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
4464
|
-
var ToastDescription =
|
|
4613
|
+
var ToastDescription = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx50(
|
|
4465
4614
|
ToastPrimitives.Description,
|
|
4466
4615
|
{
|
|
4467
4616
|
ref,
|
|
@@ -4472,30 +4621,30 @@ var ToastDescription = React47.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
4472
4621
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
4473
4622
|
|
|
4474
4623
|
// src/components/ui/toaster.tsx
|
|
4475
|
-
import { jsx as
|
|
4624
|
+
import { jsx as jsx51, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
4476
4625
|
function Toaster2() {
|
|
4477
4626
|
const { toasts } = useToast();
|
|
4478
|
-
return /* @__PURE__ */
|
|
4627
|
+
return /* @__PURE__ */ jsxs21(ToastProvider, { children: [
|
|
4479
4628
|
toasts.map(function({ id, title, description, action, ...props }) {
|
|
4480
|
-
return /* @__PURE__ */
|
|
4481
|
-
/* @__PURE__ */
|
|
4482
|
-
title && /* @__PURE__ */
|
|
4483
|
-
description && /* @__PURE__ */
|
|
4629
|
+
return /* @__PURE__ */ jsxs21(Toast, { ...props, children: [
|
|
4630
|
+
/* @__PURE__ */ jsxs21("div", { className: "grid gap-1", children: [
|
|
4631
|
+
title && /* @__PURE__ */ jsx51(ToastTitle, { children: title }),
|
|
4632
|
+
description && /* @__PURE__ */ jsx51(ToastDescription, { children: description })
|
|
4484
4633
|
] }),
|
|
4485
4634
|
action,
|
|
4486
|
-
/* @__PURE__ */
|
|
4635
|
+
/* @__PURE__ */ jsx51(ToastClose, {})
|
|
4487
4636
|
] }, id);
|
|
4488
4637
|
}),
|
|
4489
|
-
/* @__PURE__ */
|
|
4638
|
+
/* @__PURE__ */ jsx51(ToastViewport, {})
|
|
4490
4639
|
] });
|
|
4491
4640
|
}
|
|
4492
4641
|
|
|
4493
4642
|
// src/components/ui/toggle.tsx
|
|
4494
|
-
import * as
|
|
4643
|
+
import * as React49 from "react";
|
|
4495
4644
|
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
4496
|
-
import { cva as
|
|
4497
|
-
import { jsx as
|
|
4498
|
-
var toggleVariants =
|
|
4645
|
+
import { cva as cva15 } from "class-variance-authority";
|
|
4646
|
+
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
4647
|
+
var toggleVariants = cva15(
|
|
4499
4648
|
"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",
|
|
4500
4649
|
{
|
|
4501
4650
|
variants: {
|
|
@@ -4515,7 +4664,7 @@ var toggleVariants = cva14(
|
|
|
4515
4664
|
}
|
|
4516
4665
|
}
|
|
4517
4666
|
);
|
|
4518
|
-
var Toggle =
|
|
4667
|
+
var Toggle = React49.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx52(
|
|
4519
4668
|
TogglePrimitive.Root,
|
|
4520
4669
|
{
|
|
4521
4670
|
ref,
|
|
@@ -4526,26 +4675,26 @@ var Toggle = React48.forwardRef(({ className, variant, size, ...props }, ref) =>
|
|
|
4526
4675
|
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
4527
4676
|
|
|
4528
4677
|
// src/components/ui/toggle-group.tsx
|
|
4529
|
-
import * as
|
|
4678
|
+
import * as React50 from "react";
|
|
4530
4679
|
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
4531
|
-
import { jsx as
|
|
4532
|
-
var ToggleGroupContext =
|
|
4680
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
4681
|
+
var ToggleGroupContext = React50.createContext({
|
|
4533
4682
|
size: "default",
|
|
4534
4683
|
variant: "default"
|
|
4535
4684
|
});
|
|
4536
|
-
var ToggleGroup =
|
|
4685
|
+
var ToggleGroup = React50.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsx53(
|
|
4537
4686
|
ToggleGroupPrimitive.Root,
|
|
4538
4687
|
{
|
|
4539
4688
|
ref,
|
|
4540
4689
|
className: cn("flex items-center justify-center gap-1", className),
|
|
4541
4690
|
...props,
|
|
4542
|
-
children: /* @__PURE__ */
|
|
4691
|
+
children: /* @__PURE__ */ jsx53(ToggleGroupContext.Provider, { value: { variant, size }, children })
|
|
4543
4692
|
}
|
|
4544
4693
|
));
|
|
4545
4694
|
ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
|
|
4546
|
-
var ToggleGroupItem =
|
|
4547
|
-
const context =
|
|
4548
|
-
return /* @__PURE__ */
|
|
4695
|
+
var ToggleGroupItem = React50.forwardRef(({ className, children, variant, size, ...props }, ref) => {
|
|
4696
|
+
const context = React50.useContext(ToggleGroupContext);
|
|
4697
|
+
return /* @__PURE__ */ jsx53(
|
|
4549
4698
|
ToggleGroupPrimitive.Item,
|
|
4550
4699
|
{
|
|
4551
4700
|
ref,
|
|
@@ -4740,6 +4889,7 @@ export {
|
|
|
4740
4889
|
ResizablePanelGroup,
|
|
4741
4890
|
ScrollArea,
|
|
4742
4891
|
ScrollBar,
|
|
4892
|
+
Section,
|
|
4743
4893
|
Select,
|
|
4744
4894
|
SelectContent,
|
|
4745
4895
|
SelectGroup,
|
|
@@ -4826,6 +4976,7 @@ export {
|
|
|
4826
4976
|
gridVariants,
|
|
4827
4977
|
headingVariants,
|
|
4828
4978
|
navigationMenuTriggerStyle,
|
|
4979
|
+
sectionVariants,
|
|
4829
4980
|
stackVariants,
|
|
4830
4981
|
textVariants,
|
|
4831
4982
|
toast,
|