@atxp/design-system 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1000 -92
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +340 -1
- package/dist/index.d.ts +340 -1
- package/dist/index.js +956 -93
- package/dist/index.js.map +1 -1
- package/package.json +13 -11
package/dist/index.js
CHANGED
|
@@ -1200,17 +1200,835 @@ var HeaderDescription = React14.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1200
1200
|
));
|
|
1201
1201
|
HeaderDescription.displayName = "HeaderDescription";
|
|
1202
1202
|
|
|
1203
|
-
// src/components/
|
|
1203
|
+
// src/components/HoverCard/HoverCard.tsx
|
|
1204
1204
|
import * as React15 from "react";
|
|
1205
|
-
import { jsx as jsx16
|
|
1206
|
-
var
|
|
1205
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
1206
|
+
var HoverCard = React15.forwardRef(
|
|
1207
|
+
({ className, ...props }, ref) => {
|
|
1208
|
+
return /* @__PURE__ */ jsx16(
|
|
1209
|
+
"div",
|
|
1210
|
+
{
|
|
1211
|
+
ref,
|
|
1212
|
+
className: cn(
|
|
1213
|
+
"flex w-64 flex-col gap-4 rounded-md border border-border bg-popover p-4 text-popover-foreground shadow-md",
|
|
1214
|
+
className
|
|
1215
|
+
),
|
|
1216
|
+
...props
|
|
1217
|
+
}
|
|
1218
|
+
);
|
|
1219
|
+
}
|
|
1220
|
+
);
|
|
1221
|
+
HoverCard.displayName = "HoverCard";
|
|
1222
|
+
var HoverCardHeader = React15.forwardRef(
|
|
1223
|
+
({ className, ...props }, ref) => {
|
|
1224
|
+
return /* @__PURE__ */ jsx16(
|
|
1225
|
+
"div",
|
|
1226
|
+
{
|
|
1227
|
+
ref,
|
|
1228
|
+
className: cn("flex flex-col gap-1", className),
|
|
1229
|
+
...props
|
|
1230
|
+
}
|
|
1231
|
+
);
|
|
1232
|
+
}
|
|
1233
|
+
);
|
|
1234
|
+
HoverCardHeader.displayName = "HoverCardHeader";
|
|
1235
|
+
var HoverCardTitle = React15.forwardRef(({ className, ...props }, ref) => {
|
|
1236
|
+
return /* @__PURE__ */ jsx16(
|
|
1237
|
+
"p",
|
|
1238
|
+
{
|
|
1239
|
+
ref,
|
|
1240
|
+
className: cn(
|
|
1241
|
+
"text-base font-medium leading-6 text-popover-foreground",
|
|
1242
|
+
className
|
|
1243
|
+
),
|
|
1244
|
+
...props
|
|
1245
|
+
}
|
|
1246
|
+
);
|
|
1247
|
+
});
|
|
1248
|
+
HoverCardTitle.displayName = "HoverCardTitle";
|
|
1249
|
+
var HoverCardDescription = React15.forwardRef(({ className, ...props }, ref) => {
|
|
1250
|
+
return /* @__PURE__ */ jsx16(
|
|
1251
|
+
"p",
|
|
1252
|
+
{
|
|
1253
|
+
ref,
|
|
1254
|
+
className: cn("text-sm font-normal leading-5 text-muted-foreground", className),
|
|
1255
|
+
...props
|
|
1256
|
+
}
|
|
1257
|
+
);
|
|
1258
|
+
});
|
|
1259
|
+
HoverCardDescription.displayName = "HoverCardDescription";
|
|
1260
|
+
|
|
1261
|
+
// src/components/Indicators/Indicators.tsx
|
|
1262
|
+
import * as React16 from "react";
|
|
1263
|
+
import { cva as cva4 } from "class-variance-authority";
|
|
1264
|
+
import { jsx as jsx17, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1265
|
+
var indicatorDotVariants = cva4("h-2.5 w-2.5 rounded-full", {
|
|
1266
|
+
variants: {
|
|
1267
|
+
status: {
|
|
1268
|
+
high: "bg-warning",
|
|
1269
|
+
medium: "bg-warning-alt",
|
|
1270
|
+
low: "bg-success",
|
|
1271
|
+
info: "bg-warning"
|
|
1272
|
+
}
|
|
1273
|
+
},
|
|
1274
|
+
defaultVariants: {
|
|
1275
|
+
status: "high"
|
|
1276
|
+
}
|
|
1277
|
+
});
|
|
1278
|
+
var IndicatorDot = React16.forwardRef(
|
|
1279
|
+
({ className, status, ...props }, ref) => {
|
|
1280
|
+
return /* @__PURE__ */ jsx17(
|
|
1281
|
+
"div",
|
|
1282
|
+
{
|
|
1283
|
+
ref,
|
|
1284
|
+
className: cn(indicatorDotVariants({ status }), className),
|
|
1285
|
+
...props
|
|
1286
|
+
}
|
|
1287
|
+
);
|
|
1288
|
+
}
|
|
1289
|
+
);
|
|
1290
|
+
IndicatorDot.displayName = "IndicatorDot";
|
|
1291
|
+
var indicatorCircleVariants = cva4("relative h-5 w-5", {
|
|
1292
|
+
variants: {
|
|
1293
|
+
status: {
|
|
1294
|
+
complete: "",
|
|
1295
|
+
partial: "",
|
|
1296
|
+
minimal: ""
|
|
1297
|
+
}
|
|
1298
|
+
},
|
|
1299
|
+
defaultVariants: {
|
|
1300
|
+
status: "complete"
|
|
1301
|
+
}
|
|
1302
|
+
});
|
|
1303
|
+
var IndicatorCircle = React16.forwardRef(
|
|
1304
|
+
({ className, status = "complete", ...props }, ref) => {
|
|
1305
|
+
const isComplete = status === "complete";
|
|
1306
|
+
const isPartial = status === "partial";
|
|
1307
|
+
return /* @__PURE__ */ jsxs7(
|
|
1308
|
+
"div",
|
|
1309
|
+
{
|
|
1310
|
+
ref,
|
|
1311
|
+
className: cn(indicatorCircleVariants({ status }), className),
|
|
1312
|
+
...props,
|
|
1313
|
+
children: [
|
|
1314
|
+
isComplete && /* @__PURE__ */ jsx17(
|
|
1315
|
+
Icon,
|
|
1316
|
+
{
|
|
1317
|
+
icon: Check,
|
|
1318
|
+
size: 20,
|
|
1319
|
+
className: "text-info",
|
|
1320
|
+
strokeWidth: 2
|
|
1321
|
+
}
|
|
1322
|
+
),
|
|
1323
|
+
isPartial && /* @__PURE__ */ jsxs7(
|
|
1324
|
+
"svg",
|
|
1325
|
+
{
|
|
1326
|
+
width: "20",
|
|
1327
|
+
height: "20",
|
|
1328
|
+
viewBox: "0 0 20 20",
|
|
1329
|
+
fill: "none",
|
|
1330
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1331
|
+
className: "absolute inset-0",
|
|
1332
|
+
children: [
|
|
1333
|
+
/* @__PURE__ */ jsx17(
|
|
1334
|
+
"circle",
|
|
1335
|
+
{
|
|
1336
|
+
cx: "10",
|
|
1337
|
+
cy: "10",
|
|
1338
|
+
r: "6.5",
|
|
1339
|
+
stroke: "var(--theme-muted-foreground)",
|
|
1340
|
+
strokeWidth: "1.5"
|
|
1341
|
+
}
|
|
1342
|
+
),
|
|
1343
|
+
/* @__PURE__ */ jsx17(
|
|
1344
|
+
"path",
|
|
1345
|
+
{
|
|
1346
|
+
d: "M 10,3.5 A 6.5,6.5 0 0,1 16.5,10",
|
|
1347
|
+
stroke: "var(--theme-info)",
|
|
1348
|
+
strokeWidth: "1.5",
|
|
1349
|
+
strokeLinecap: "round",
|
|
1350
|
+
fill: "none"
|
|
1351
|
+
}
|
|
1352
|
+
)
|
|
1353
|
+
]
|
|
1354
|
+
}
|
|
1355
|
+
),
|
|
1356
|
+
!isComplete && !isPartial && /* @__PURE__ */ jsx17(
|
|
1357
|
+
"svg",
|
|
1358
|
+
{
|
|
1359
|
+
width: "20",
|
|
1360
|
+
height: "20",
|
|
1361
|
+
viewBox: "0 0 20 20",
|
|
1362
|
+
fill: "none",
|
|
1363
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1364
|
+
className: "absolute inset-0",
|
|
1365
|
+
children: /* @__PURE__ */ jsx17(
|
|
1366
|
+
"circle",
|
|
1367
|
+
{
|
|
1368
|
+
cx: "10",
|
|
1369
|
+
cy: "10",
|
|
1370
|
+
r: "6.5",
|
|
1371
|
+
stroke: "var(--theme-muted-foreground)",
|
|
1372
|
+
strokeWidth: "1.5"
|
|
1373
|
+
}
|
|
1374
|
+
)
|
|
1375
|
+
}
|
|
1376
|
+
)
|
|
1377
|
+
]
|
|
1378
|
+
}
|
|
1379
|
+
);
|
|
1380
|
+
}
|
|
1381
|
+
);
|
|
1382
|
+
IndicatorCircle.displayName = "IndicatorCircle";
|
|
1383
|
+
|
|
1384
|
+
// src/components/Input/Input.tsx
|
|
1385
|
+
import * as React17 from "react";
|
|
1386
|
+
import { jsx as jsx18, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1387
|
+
var Input = React17.forwardRef(
|
|
1388
|
+
({ className, type, icon, ...props }, ref) => {
|
|
1389
|
+
const WrapperComponent = icon ? "div" : React17.Fragment;
|
|
1390
|
+
const wrapperProps = icon ? {
|
|
1391
|
+
className: cn(
|
|
1392
|
+
"flex h-10 w-full items-center gap-2 rounded-md border border-input bg-background px-3 py-2",
|
|
1393
|
+
"focus-within:outline-none focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2",
|
|
1394
|
+
className
|
|
1395
|
+
)
|
|
1396
|
+
} : {};
|
|
1397
|
+
const inputElement = /* @__PURE__ */ jsx18(
|
|
1398
|
+
"input",
|
|
1399
|
+
{
|
|
1400
|
+
type,
|
|
1401
|
+
className: cn(
|
|
1402
|
+
"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm leading-5 text-foreground",
|
|
1403
|
+
"file:border-0 file:bg-transparent file:text-sm file:font-medium",
|
|
1404
|
+
"placeholder:text-muted-foreground",
|
|
1405
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
1406
|
+
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
1407
|
+
icon && "flex-1 border-0 p-0 focus-visible:ring-0 focus-visible:ring-offset-0",
|
|
1408
|
+
!icon && className
|
|
1409
|
+
),
|
|
1410
|
+
ref,
|
|
1411
|
+
...props
|
|
1412
|
+
}
|
|
1413
|
+
);
|
|
1414
|
+
if (icon) {
|
|
1415
|
+
return /* @__PURE__ */ jsxs8(WrapperComponent, { ...wrapperProps, children: [
|
|
1416
|
+
inputElement,
|
|
1417
|
+
icon
|
|
1418
|
+
] });
|
|
1419
|
+
}
|
|
1420
|
+
return inputElement;
|
|
1421
|
+
}
|
|
1422
|
+
);
|
|
1423
|
+
Input.displayName = "Input";
|
|
1424
|
+
|
|
1425
|
+
// src/components/InputGroup/InputGroup.tsx
|
|
1426
|
+
import * as React18 from "react";
|
|
1427
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
1428
|
+
var InputGroup = React18.forwardRef(
|
|
1429
|
+
({ className, ...props }, ref) => {
|
|
1430
|
+
return /* @__PURE__ */ jsx19(
|
|
1431
|
+
"div",
|
|
1432
|
+
{
|
|
1433
|
+
ref,
|
|
1434
|
+
className: cn("flex flex-col gap-2", className),
|
|
1435
|
+
...props
|
|
1436
|
+
}
|
|
1437
|
+
);
|
|
1438
|
+
}
|
|
1439
|
+
);
|
|
1440
|
+
InputGroup.displayName = "InputGroup";
|
|
1441
|
+
var InputGroupLabel = React18.forwardRef(({ className, ...props }, ref) => {
|
|
1442
|
+
return /* @__PURE__ */ jsx19(
|
|
1443
|
+
"label",
|
|
1444
|
+
{
|
|
1445
|
+
ref,
|
|
1446
|
+
className: cn(
|
|
1447
|
+
"text-sm font-medium leading-5 text-foreground",
|
|
1448
|
+
className
|
|
1449
|
+
),
|
|
1450
|
+
...props
|
|
1451
|
+
}
|
|
1452
|
+
);
|
|
1453
|
+
});
|
|
1454
|
+
InputGroupLabel.displayName = "InputGroupLabel";
|
|
1455
|
+
var InputGroupHelpText = React18.forwardRef(({ className, ...props }, ref) => {
|
|
1456
|
+
return /* @__PURE__ */ jsx19(
|
|
1457
|
+
"p",
|
|
1458
|
+
{
|
|
1459
|
+
ref,
|
|
1460
|
+
className: cn(
|
|
1461
|
+
"text-sm font-normal leading-5 text-muted-foreground",
|
|
1462
|
+
className
|
|
1463
|
+
),
|
|
1464
|
+
...props
|
|
1465
|
+
}
|
|
1466
|
+
);
|
|
1467
|
+
});
|
|
1468
|
+
InputGroupHelpText.displayName = "InputGroupHelpText";
|
|
1469
|
+
|
|
1470
|
+
// src/components/Label/Label.tsx
|
|
1471
|
+
import * as React19 from "react";
|
|
1472
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
1473
|
+
var Label = React19.forwardRef(
|
|
1474
|
+
({ className, ...props }, ref) => {
|
|
1475
|
+
return /* @__PURE__ */ jsx20(
|
|
1476
|
+
"label",
|
|
1477
|
+
{
|
|
1478
|
+
ref,
|
|
1479
|
+
className: cn(
|
|
1480
|
+
"text-sm font-medium leading-5 text-foreground",
|
|
1481
|
+
"peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
|
|
1482
|
+
className
|
|
1483
|
+
),
|
|
1484
|
+
...props
|
|
1485
|
+
}
|
|
1486
|
+
);
|
|
1487
|
+
}
|
|
1488
|
+
);
|
|
1489
|
+
Label.displayName = "Label";
|
|
1490
|
+
|
|
1491
|
+
// src/components/Menubar/Menubar.tsx
|
|
1492
|
+
import * as React20 from "react";
|
|
1493
|
+
import { cva as cva5 } from "class-variance-authority";
|
|
1494
|
+
import { jsx as jsx21, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1495
|
+
var Menubar = React20.forwardRef(
|
|
1496
|
+
({ className, ...props }, ref) => {
|
|
1497
|
+
return /* @__PURE__ */ jsx21(
|
|
1498
|
+
"div",
|
|
1499
|
+
{
|
|
1500
|
+
ref,
|
|
1501
|
+
className: cn(
|
|
1502
|
+
"flex h-10 items-center gap-1 rounded-md border border-border bg-background p-1",
|
|
1503
|
+
className
|
|
1504
|
+
),
|
|
1505
|
+
...props
|
|
1506
|
+
}
|
|
1507
|
+
);
|
|
1508
|
+
}
|
|
1509
|
+
);
|
|
1510
|
+
Menubar.displayName = "Menubar";
|
|
1511
|
+
var menubarTriggerVariants = cva5(
|
|
1512
|
+
"inline-flex items-center justify-center rounded-md px-3 py-1.5 text-sm font-medium leading-5 transition-colors",
|
|
1513
|
+
{
|
|
1514
|
+
variants: {
|
|
1515
|
+
selected: {
|
|
1516
|
+
true: "bg-accent text-accent-foreground",
|
|
1517
|
+
false: "text-foreground hover:bg-accent hover:text-accent-foreground"
|
|
1518
|
+
}
|
|
1519
|
+
},
|
|
1520
|
+
defaultVariants: {
|
|
1521
|
+
selected: false
|
|
1522
|
+
}
|
|
1523
|
+
}
|
|
1524
|
+
);
|
|
1525
|
+
var MenubarTrigger = React20.forwardRef(
|
|
1526
|
+
({ className, selected, ...props }, ref) => {
|
|
1527
|
+
return /* @__PURE__ */ jsx21(
|
|
1528
|
+
"button",
|
|
1529
|
+
{
|
|
1530
|
+
ref,
|
|
1531
|
+
className: cn(menubarTriggerVariants({ selected }), className),
|
|
1532
|
+
...props
|
|
1533
|
+
}
|
|
1534
|
+
);
|
|
1535
|
+
}
|
|
1536
|
+
);
|
|
1537
|
+
MenubarTrigger.displayName = "MenubarTrigger";
|
|
1538
|
+
var MenubarDropdown = React20.forwardRef(
|
|
1539
|
+
({ className, ...props }, ref) => {
|
|
1540
|
+
return /* @__PURE__ */ jsx21(
|
|
1541
|
+
"div",
|
|
1542
|
+
{
|
|
1543
|
+
ref,
|
|
1544
|
+
className: cn(
|
|
1545
|
+
"flex w-56 flex-col gap-0 rounded-md border border-border bg-popover p-1 shadow-md",
|
|
1546
|
+
className
|
|
1547
|
+
),
|
|
1548
|
+
...props
|
|
1549
|
+
}
|
|
1550
|
+
);
|
|
1551
|
+
}
|
|
1552
|
+
);
|
|
1553
|
+
MenubarDropdown.displayName = "MenubarDropdown";
|
|
1554
|
+
var menubarItemVariants = cva5(
|
|
1555
|
+
"flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm font-normal leading-5 transition-colors",
|
|
1556
|
+
{
|
|
1557
|
+
variants: {
|
|
1558
|
+
disabled: {
|
|
1559
|
+
true: "cursor-not-allowed opacity-50",
|
|
1560
|
+
false: "cursor-pointer text-popover-foreground hover:bg-accent hover:text-accent-foreground"
|
|
1561
|
+
}
|
|
1562
|
+
},
|
|
1563
|
+
defaultVariants: {
|
|
1564
|
+
disabled: false
|
|
1565
|
+
}
|
|
1566
|
+
}
|
|
1567
|
+
);
|
|
1568
|
+
var MenubarItem = React20.forwardRef(
|
|
1569
|
+
({
|
|
1570
|
+
className,
|
|
1571
|
+
disabled = false,
|
|
1572
|
+
shortcut,
|
|
1573
|
+
checked,
|
|
1574
|
+
hasSubmenu,
|
|
1575
|
+
children,
|
|
1576
|
+
...props
|
|
1577
|
+
}, ref) => {
|
|
1578
|
+
const isDisabled = Boolean(disabled);
|
|
1579
|
+
return /* @__PURE__ */ jsxs9(
|
|
1580
|
+
"button",
|
|
1581
|
+
{
|
|
1582
|
+
ref,
|
|
1583
|
+
disabled: isDisabled,
|
|
1584
|
+
className: cn(menubarItemVariants({ disabled: isDisabled }), className),
|
|
1585
|
+
...props,
|
|
1586
|
+
children: [
|
|
1587
|
+
checked && /* @__PURE__ */ jsx21(Icon, { icon: Check, size: 16, className: "shrink-0" }),
|
|
1588
|
+
!checked && /* @__PURE__ */ jsx21("div", { className: "w-4 shrink-0" }),
|
|
1589
|
+
/* @__PURE__ */ jsx21("span", { className: "flex-1 text-left", children }),
|
|
1590
|
+
shortcut && /* @__PURE__ */ jsx21("span", { className: "ml-auto text-xs leading-4 opacity-60", children: shortcut }),
|
|
1591
|
+
hasSubmenu && /* @__PURE__ */ jsx21(Icon, { icon: ChevronRight, size: 10.67, className: "ml-auto opacity-60" })
|
|
1592
|
+
]
|
|
1593
|
+
}
|
|
1594
|
+
);
|
|
1595
|
+
}
|
|
1596
|
+
);
|
|
1597
|
+
MenubarItem.displayName = "MenubarItem";
|
|
1598
|
+
var MenubarSeparator = React20.forwardRef(
|
|
1599
|
+
({ className, ...props }, ref) => {
|
|
1600
|
+
return /* @__PURE__ */ jsx21(
|
|
1601
|
+
"div",
|
|
1602
|
+
{
|
|
1603
|
+
ref,
|
|
1604
|
+
className: cn("my-1 h-px w-full bg-border", className),
|
|
1605
|
+
...props
|
|
1606
|
+
}
|
|
1607
|
+
);
|
|
1608
|
+
}
|
|
1609
|
+
);
|
|
1610
|
+
MenubarSeparator.displayName = "MenubarSeparator";
|
|
1611
|
+
var MenubarLabel = React20.forwardRef(
|
|
1612
|
+
({ className, ...props }, ref) => {
|
|
1613
|
+
return /* @__PURE__ */ jsx21(
|
|
1614
|
+
"div",
|
|
1615
|
+
{
|
|
1616
|
+
ref,
|
|
1617
|
+
className: cn(
|
|
1618
|
+
"px-2 py-1.5 text-sm font-semibold leading-5 text-popover-foreground",
|
|
1619
|
+
className
|
|
1620
|
+
),
|
|
1621
|
+
...props
|
|
1622
|
+
}
|
|
1623
|
+
);
|
|
1624
|
+
}
|
|
1625
|
+
);
|
|
1626
|
+
MenubarLabel.displayName = "MenubarLabel";
|
|
1627
|
+
|
|
1628
|
+
// src/components/NavHeader/NavHeader.tsx
|
|
1629
|
+
import * as React21 from "react";
|
|
1630
|
+
import { cva as cva6 } from "class-variance-authority";
|
|
1631
|
+
import { jsx as jsx22, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1632
|
+
var NavHeader = React21.forwardRef(
|
|
1633
|
+
({ className, ...props }, ref) => {
|
|
1634
|
+
return /* @__PURE__ */ jsx22(
|
|
1635
|
+
"header",
|
|
1636
|
+
{
|
|
1637
|
+
ref,
|
|
1638
|
+
className: cn(
|
|
1639
|
+
"flex w-full items-center justify-between border-b border-slate-200 bg-background p-4",
|
|
1640
|
+
className
|
|
1641
|
+
),
|
|
1642
|
+
...props
|
|
1643
|
+
}
|
|
1644
|
+
);
|
|
1645
|
+
}
|
|
1646
|
+
);
|
|
1647
|
+
NavHeader.displayName = "NavHeader";
|
|
1648
|
+
var NavHeaderBrand = React21.forwardRef(
|
|
1649
|
+
({ className, ...props }, ref) => {
|
|
1650
|
+
return /* @__PURE__ */ jsx22(
|
|
1651
|
+
"div",
|
|
1652
|
+
{
|
|
1653
|
+
ref,
|
|
1654
|
+
className: cn("flex items-center", className),
|
|
1655
|
+
...props
|
|
1656
|
+
}
|
|
1657
|
+
);
|
|
1658
|
+
}
|
|
1659
|
+
);
|
|
1660
|
+
NavHeaderBrand.displayName = "NavHeaderBrand";
|
|
1661
|
+
var NavHeaderNav = React21.forwardRef(
|
|
1662
|
+
({ className, ...props }, ref) => {
|
|
1663
|
+
return /* @__PURE__ */ jsx22(
|
|
1664
|
+
"nav",
|
|
1665
|
+
{
|
|
1666
|
+
ref,
|
|
1667
|
+
className: cn("flex items-center gap-4", className),
|
|
1668
|
+
...props
|
|
1669
|
+
}
|
|
1670
|
+
);
|
|
1671
|
+
}
|
|
1672
|
+
);
|
|
1673
|
+
NavHeaderNav.displayName = "NavHeaderNav";
|
|
1674
|
+
var navHeaderItemVariants = cva6(
|
|
1675
|
+
"inline-flex h-9 items-center justify-center gap-1.5 rounded-lg px-4 py-2 text-sm font-medium leading-5 transition-colors",
|
|
1676
|
+
{
|
|
1677
|
+
variants: {
|
|
1678
|
+
variant: {
|
|
1679
|
+
default: "text-foreground hover:bg-muted",
|
|
1680
|
+
selected: "bg-accent text-secondary-foreground font-bold"
|
|
1681
|
+
}
|
|
1682
|
+
},
|
|
1683
|
+
defaultVariants: {
|
|
1684
|
+
variant: "default"
|
|
1685
|
+
}
|
|
1686
|
+
}
|
|
1687
|
+
);
|
|
1688
|
+
var NavHeaderItem = React21.forwardRef(
|
|
1689
|
+
({ className, variant, selected, icon, children, ...props }, ref) => {
|
|
1690
|
+
return /* @__PURE__ */ jsxs10(
|
|
1691
|
+
"button",
|
|
1692
|
+
{
|
|
1693
|
+
ref,
|
|
1694
|
+
className: cn(
|
|
1695
|
+
navHeaderItemVariants({
|
|
1696
|
+
variant: selected ? "selected" : variant
|
|
1697
|
+
}),
|
|
1698
|
+
className
|
|
1699
|
+
),
|
|
1700
|
+
...props,
|
|
1701
|
+
children: [
|
|
1702
|
+
icon,
|
|
1703
|
+
children
|
|
1704
|
+
]
|
|
1705
|
+
}
|
|
1706
|
+
);
|
|
1707
|
+
}
|
|
1708
|
+
);
|
|
1709
|
+
NavHeaderItem.displayName = "NavHeaderItem";
|
|
1710
|
+
var NavHeaderDivider = React21.forwardRef(({ className, ...props }, ref) => {
|
|
1711
|
+
return /* @__PURE__ */ jsx22(
|
|
1712
|
+
"div",
|
|
1713
|
+
{
|
|
1714
|
+
ref,
|
|
1715
|
+
className: cn("text-base font-normal leading-6 text-input", className),
|
|
1716
|
+
...props,
|
|
1717
|
+
children: "|"
|
|
1718
|
+
}
|
|
1719
|
+
);
|
|
1720
|
+
});
|
|
1721
|
+
NavHeaderDivider.displayName = "NavHeaderDivider";
|
|
1722
|
+
|
|
1723
|
+
// src/components/NavSidePanel/NavSidePanel.tsx
|
|
1724
|
+
import * as React22 from "react";
|
|
1725
|
+
import { cva as cva7 } from "class-variance-authority";
|
|
1726
|
+
import { jsx as jsx23, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1727
|
+
var NavSidePanel = React22.forwardRef(
|
|
1728
|
+
({ className, ...props }, ref) => {
|
|
1729
|
+
return /* @__PURE__ */ jsx23(
|
|
1730
|
+
"div",
|
|
1731
|
+
{
|
|
1732
|
+
ref,
|
|
1733
|
+
className: cn(
|
|
1734
|
+
"flex w-[180px] flex-col justify-between overflow-hidden bg-sidebar-background",
|
|
1735
|
+
className
|
|
1736
|
+
),
|
|
1737
|
+
...props
|
|
1738
|
+
}
|
|
1739
|
+
);
|
|
1740
|
+
}
|
|
1741
|
+
);
|
|
1742
|
+
NavSidePanel.displayName = "NavSidePanel";
|
|
1743
|
+
var NavSidePanelHeader = React22.forwardRef(({ className, ...props }, ref) => {
|
|
1744
|
+
return /* @__PURE__ */ jsx23(
|
|
1745
|
+
"div",
|
|
1746
|
+
{
|
|
1747
|
+
ref,
|
|
1748
|
+
className: cn("flex flex-col gap-3.5 px-4 pt-6", className),
|
|
1749
|
+
...props
|
|
1750
|
+
}
|
|
1751
|
+
);
|
|
1752
|
+
});
|
|
1753
|
+
NavSidePanelHeader.displayName = "NavSidePanelHeader";
|
|
1754
|
+
var NavSidePanelBrand = React22.forwardRef(({ className, ...props }, ref) => {
|
|
1755
|
+
return /* @__PURE__ */ jsx23(
|
|
1756
|
+
"div",
|
|
1757
|
+
{
|
|
1758
|
+
ref,
|
|
1759
|
+
className: cn(
|
|
1760
|
+
"flex justify-center text-xl font-extrabold leading-7 text-black",
|
|
1761
|
+
className
|
|
1762
|
+
),
|
|
1763
|
+
...props
|
|
1764
|
+
}
|
|
1765
|
+
);
|
|
1766
|
+
});
|
|
1767
|
+
NavSidePanelBrand.displayName = "NavSidePanelBrand";
|
|
1768
|
+
var NavSidePanelSeparator = React22.forwardRef(({ className, ...props }, ref) => {
|
|
1769
|
+
return /* @__PURE__ */ jsx23(
|
|
1770
|
+
"div",
|
|
1771
|
+
{
|
|
1772
|
+
ref,
|
|
1773
|
+
className: cn("h-px w-full bg-accent-muted", className),
|
|
1774
|
+
...props
|
|
1775
|
+
}
|
|
1776
|
+
);
|
|
1777
|
+
});
|
|
1778
|
+
NavSidePanelSeparator.displayName = "NavSidePanelSeparator";
|
|
1779
|
+
var NavSidePanelNav = React22.forwardRef(
|
|
1780
|
+
({ className, ...props }, ref) => {
|
|
1781
|
+
return /* @__PURE__ */ jsx23(
|
|
1782
|
+
"nav",
|
|
1783
|
+
{
|
|
1784
|
+
ref,
|
|
1785
|
+
className: cn("flex flex-1 flex-col gap-0 px-4", className),
|
|
1786
|
+
...props
|
|
1787
|
+
}
|
|
1788
|
+
);
|
|
1789
|
+
}
|
|
1790
|
+
);
|
|
1791
|
+
NavSidePanelNav.displayName = "NavSidePanelNav";
|
|
1792
|
+
var navSidePanelItemVariants = cva7(
|
|
1793
|
+
"flex h-10 w-full items-center gap-1.5 rounded-sm bg-secondary px-4 py-0 shadow-xs transition-colors",
|
|
1794
|
+
{
|
|
1795
|
+
variants: {
|
|
1796
|
+
selected: {
|
|
1797
|
+
true: "border-r-4 border-primary bg-accent",
|
|
1798
|
+
false: "hover:bg-accent"
|
|
1799
|
+
}
|
|
1800
|
+
},
|
|
1801
|
+
defaultVariants: {
|
|
1802
|
+
selected: false
|
|
1803
|
+
}
|
|
1804
|
+
}
|
|
1805
|
+
);
|
|
1806
|
+
var NavSidePanelItem = React22.forwardRef(({ className, selected, icon, children, ...props }, ref) => {
|
|
1807
|
+
return /* @__PURE__ */ jsxs11(
|
|
1808
|
+
"button",
|
|
1809
|
+
{
|
|
1810
|
+
ref,
|
|
1811
|
+
className: cn(navSidePanelItemVariants({ selected }), className),
|
|
1812
|
+
...props,
|
|
1813
|
+
children: [
|
|
1814
|
+
icon,
|
|
1815
|
+
/* @__PURE__ */ jsx23("span", { className: "text-sm font-medium leading-5 text-accent-foreground", children })
|
|
1816
|
+
]
|
|
1817
|
+
}
|
|
1818
|
+
);
|
|
1819
|
+
});
|
|
1820
|
+
NavSidePanelItem.displayName = "NavSidePanelItem";
|
|
1821
|
+
var NavSidePanelFooter = React22.forwardRef(({ className, ...props }, ref) => {
|
|
1822
|
+
return /* @__PURE__ */ jsx23(
|
|
1823
|
+
"div",
|
|
1824
|
+
{
|
|
1825
|
+
ref,
|
|
1826
|
+
className: cn("flex flex-col gap-0 px-4 pb-4", className),
|
|
1827
|
+
...props
|
|
1828
|
+
}
|
|
1829
|
+
);
|
|
1830
|
+
});
|
|
1831
|
+
NavSidePanelFooter.displayName = "NavSidePanelFooter";
|
|
1832
|
+
|
|
1833
|
+
// src/components/Pagination/Pagination.tsx
|
|
1834
|
+
import * as React23 from "react";
|
|
1835
|
+
import { cva as cva8 } from "class-variance-authority";
|
|
1836
|
+
import { jsx as jsx24, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1837
|
+
var Pagination = React23.forwardRef(
|
|
1838
|
+
({ className, ...props }, ref) => {
|
|
1839
|
+
return /* @__PURE__ */ jsx24(
|
|
1840
|
+
"nav",
|
|
1841
|
+
{
|
|
1842
|
+
ref,
|
|
1843
|
+
role: "navigation",
|
|
1844
|
+
"aria-label": "pagination",
|
|
1845
|
+
className: cn("flex items-center justify-center gap-2", className),
|
|
1846
|
+
...props
|
|
1847
|
+
}
|
|
1848
|
+
);
|
|
1849
|
+
}
|
|
1850
|
+
);
|
|
1851
|
+
Pagination.displayName = "Pagination";
|
|
1852
|
+
var paginationItemVariants = cva8(
|
|
1853
|
+
"inline-flex items-center justify-center rounded-md text-sm font-medium leading-5 transition-colors",
|
|
1854
|
+
{
|
|
1855
|
+
variants: {
|
|
1856
|
+
variant: {
|
|
1857
|
+
default: "hover:bg-muted",
|
|
1858
|
+
active: "border border-border bg-background hover:bg-muted"
|
|
1859
|
+
},
|
|
1860
|
+
size: {
|
|
1861
|
+
default: "h-10 w-10",
|
|
1862
|
+
sm: "h-9 w-9"
|
|
1863
|
+
}
|
|
1864
|
+
},
|
|
1865
|
+
defaultVariants: {
|
|
1866
|
+
variant: "default",
|
|
1867
|
+
size: "default"
|
|
1868
|
+
}
|
|
1869
|
+
}
|
|
1870
|
+
);
|
|
1871
|
+
var PaginationItem = React23.forwardRef(
|
|
1872
|
+
({ className, variant, size, isActive, ...props }, ref) => {
|
|
1873
|
+
return /* @__PURE__ */ jsx24(
|
|
1874
|
+
"button",
|
|
1875
|
+
{
|
|
1876
|
+
ref,
|
|
1877
|
+
className: cn(
|
|
1878
|
+
paginationItemVariants({
|
|
1879
|
+
variant: isActive ? "active" : variant,
|
|
1880
|
+
size
|
|
1881
|
+
}),
|
|
1882
|
+
className
|
|
1883
|
+
),
|
|
1884
|
+
"aria-current": isActive ? "page" : void 0,
|
|
1885
|
+
...props
|
|
1886
|
+
}
|
|
1887
|
+
);
|
|
1888
|
+
}
|
|
1889
|
+
);
|
|
1890
|
+
PaginationItem.displayName = "PaginationItem";
|
|
1891
|
+
var PaginationLink = React23.forwardRef(
|
|
1892
|
+
({ className, direction = "next", children, ...props }, ref) => {
|
|
1893
|
+
const isPrevious = direction === "previous";
|
|
1894
|
+
const isNext = direction === "next";
|
|
1895
|
+
return /* @__PURE__ */ jsxs12(
|
|
1896
|
+
"button",
|
|
1897
|
+
{
|
|
1898
|
+
ref,
|
|
1899
|
+
className: cn(
|
|
1900
|
+
"inline-flex h-10 items-center justify-center gap-1 rounded-md px-3 text-sm font-medium leading-5 transition-colors hover:bg-muted",
|
|
1901
|
+
className
|
|
1902
|
+
),
|
|
1903
|
+
...props,
|
|
1904
|
+
children: [
|
|
1905
|
+
isPrevious && /* @__PURE__ */ jsx24(Icon, { icon: ChevronLeft, size: 16 }),
|
|
1906
|
+
children || (isPrevious ? "Previous" : "Next"),
|
|
1907
|
+
isNext && /* @__PURE__ */ jsx24(Icon, { icon: ChevronRight, size: 16 })
|
|
1908
|
+
]
|
|
1909
|
+
}
|
|
1910
|
+
);
|
|
1911
|
+
}
|
|
1912
|
+
);
|
|
1913
|
+
PaginationLink.displayName = "PaginationLink";
|
|
1914
|
+
var PaginationEllipsis = React23.forwardRef(({ className, ...props }, ref) => {
|
|
1915
|
+
return /* @__PURE__ */ jsx24(
|
|
1916
|
+
"span",
|
|
1917
|
+
{
|
|
1918
|
+
ref,
|
|
1919
|
+
"aria-hidden": true,
|
|
1920
|
+
className: cn(
|
|
1921
|
+
"flex h-9 w-9 items-center justify-center",
|
|
1922
|
+
className
|
|
1923
|
+
),
|
|
1924
|
+
...props,
|
|
1925
|
+
children: /* @__PURE__ */ jsx24(Icon, { icon: MoreHorizontal2, size: 24 })
|
|
1926
|
+
}
|
|
1927
|
+
);
|
|
1928
|
+
});
|
|
1929
|
+
PaginationEllipsis.displayName = "PaginationEllipsis";
|
|
1930
|
+
|
|
1931
|
+
// src/components/Popover/Popover.tsx
|
|
1932
|
+
import * as React24 from "react";
|
|
1933
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
1934
|
+
var Popover = React24.forwardRef(
|
|
1935
|
+
({ className, ...props }, ref) => {
|
|
1936
|
+
return /* @__PURE__ */ jsx25(
|
|
1937
|
+
"div",
|
|
1938
|
+
{
|
|
1939
|
+
ref,
|
|
1940
|
+
className: cn(
|
|
1941
|
+
"w-72 flex flex-col gap-4 rounded-md border border-border bg-popover p-4 text-popover-foreground shadow-md",
|
|
1942
|
+
className
|
|
1943
|
+
),
|
|
1944
|
+
...props
|
|
1945
|
+
}
|
|
1946
|
+
);
|
|
1947
|
+
}
|
|
1948
|
+
);
|
|
1949
|
+
Popover.displayName = "Popover";
|
|
1950
|
+
var PopoverHeader = React24.forwardRef(
|
|
1951
|
+
({ className, ...props }, ref) => {
|
|
1952
|
+
return /* @__PURE__ */ jsx25(
|
|
1953
|
+
"div",
|
|
1954
|
+
{
|
|
1955
|
+
ref,
|
|
1956
|
+
className: cn("flex flex-col gap-1", className),
|
|
1957
|
+
...props
|
|
1958
|
+
}
|
|
1959
|
+
);
|
|
1960
|
+
}
|
|
1961
|
+
);
|
|
1962
|
+
PopoverHeader.displayName = "PopoverHeader";
|
|
1963
|
+
var PopoverTitle = React24.forwardRef(({ className, ...props }, ref) => {
|
|
1964
|
+
return /* @__PURE__ */ jsx25(
|
|
1965
|
+
"p",
|
|
1966
|
+
{
|
|
1967
|
+
ref,
|
|
1968
|
+
className: cn(
|
|
1969
|
+
"text-base font-medium leading-6 text-popover-foreground",
|
|
1970
|
+
className
|
|
1971
|
+
),
|
|
1972
|
+
...props
|
|
1973
|
+
}
|
|
1974
|
+
);
|
|
1975
|
+
});
|
|
1976
|
+
PopoverTitle.displayName = "PopoverTitle";
|
|
1977
|
+
var PopoverDescription = React24.forwardRef(({ className, ...props }, ref) => {
|
|
1978
|
+
return /* @__PURE__ */ jsx25(
|
|
1979
|
+
"p",
|
|
1980
|
+
{
|
|
1981
|
+
ref,
|
|
1982
|
+
className: cn("text-sm font-normal leading-5 text-muted-foreground", className),
|
|
1983
|
+
...props
|
|
1984
|
+
}
|
|
1985
|
+
);
|
|
1986
|
+
});
|
|
1987
|
+
PopoverDescription.displayName = "PopoverDescription";
|
|
1988
|
+
|
|
1989
|
+
// src/components/Progress/Progress.tsx
|
|
1990
|
+
import * as React25 from "react";
|
|
1991
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
1992
|
+
var Progress = React25.forwardRef(
|
|
1993
|
+
({ className, value = 0, max = 100, ...props }, ref) => {
|
|
1994
|
+
const percentage = Math.min(Math.max(value / max * 100, 0), 100);
|
|
1995
|
+
return /* @__PURE__ */ jsx26(
|
|
1996
|
+
"div",
|
|
1997
|
+
{
|
|
1998
|
+
ref,
|
|
1999
|
+
role: "progressbar",
|
|
2000
|
+
"aria-valuemin": 0,
|
|
2001
|
+
"aria-valuemax": max,
|
|
2002
|
+
"aria-valuenow": value,
|
|
2003
|
+
className: cn(
|
|
2004
|
+
"relative h-4 w-full overflow-hidden rounded-full bg-secondary",
|
|
2005
|
+
className
|
|
2006
|
+
),
|
|
2007
|
+
...props,
|
|
2008
|
+
children: /* @__PURE__ */ jsx26(
|
|
2009
|
+
"div",
|
|
2010
|
+
{
|
|
2011
|
+
className: "h-full bg-primary transition-all duration-300 ease-in-out",
|
|
2012
|
+
style: { width: `${percentage}%` }
|
|
2013
|
+
}
|
|
2014
|
+
)
|
|
2015
|
+
}
|
|
2016
|
+
);
|
|
2017
|
+
}
|
|
2018
|
+
);
|
|
2019
|
+
Progress.displayName = "Progress";
|
|
2020
|
+
|
|
2021
|
+
// src/components/Radio/Radio.tsx
|
|
2022
|
+
import * as React26 from "react";
|
|
2023
|
+
import { jsx as jsx27, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2024
|
+
var Radio = React26.forwardRef(
|
|
1207
2025
|
({ className, onCheckedChange, onChange, ...props }, ref) => {
|
|
1208
2026
|
const handleChange = (e) => {
|
|
1209
2027
|
onChange?.(e);
|
|
1210
2028
|
onCheckedChange?.(e.target.checked);
|
|
1211
2029
|
};
|
|
1212
|
-
return /* @__PURE__ */
|
|
1213
|
-
/* @__PURE__ */
|
|
2030
|
+
return /* @__PURE__ */ jsxs13("div", { className: "relative inline-flex items-center", children: [
|
|
2031
|
+
/* @__PURE__ */ jsx27(
|
|
1214
2032
|
"input",
|
|
1215
2033
|
{
|
|
1216
2034
|
type: "radio",
|
|
@@ -1220,7 +2038,7 @@ var Radio = React15.forwardRef(
|
|
|
1220
2038
|
...props
|
|
1221
2039
|
}
|
|
1222
2040
|
),
|
|
1223
|
-
/* @__PURE__ */
|
|
2041
|
+
/* @__PURE__ */ jsx27(
|
|
1224
2042
|
"div",
|
|
1225
2043
|
{
|
|
1226
2044
|
className: cn(
|
|
@@ -1240,14 +2058,14 @@ var Radio = React15.forwardRef(
|
|
|
1240
2058
|
Radio.displayName = "Radio";
|
|
1241
2059
|
|
|
1242
2060
|
// src/components/Select/Select.tsx
|
|
1243
|
-
import * as
|
|
2061
|
+
import * as React27 from "react";
|
|
1244
2062
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
1245
2063
|
import { Check as Check2, ChevronDown as ChevronDown3 } from "lucide-react";
|
|
1246
|
-
import { jsx as
|
|
2064
|
+
import { jsx as jsx28, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1247
2065
|
var Select = SelectPrimitive.Root;
|
|
1248
2066
|
var SelectGroup = SelectPrimitive.Group;
|
|
1249
2067
|
var SelectValue = SelectPrimitive.Value;
|
|
1250
|
-
var SelectTrigger =
|
|
2068
|
+
var SelectTrigger = React27.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs14(
|
|
1251
2069
|
SelectPrimitive.Trigger,
|
|
1252
2070
|
{
|
|
1253
2071
|
ref,
|
|
@@ -1262,12 +2080,12 @@ var SelectTrigger = React16.forwardRef(({ className, children, ...props }, ref)
|
|
|
1262
2080
|
...props,
|
|
1263
2081
|
children: [
|
|
1264
2082
|
children,
|
|
1265
|
-
/* @__PURE__ */
|
|
2083
|
+
/* @__PURE__ */ jsx28(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx28(ChevronDown3, { className: "h-3 w-3 opacity-50" }) })
|
|
1266
2084
|
]
|
|
1267
2085
|
}
|
|
1268
2086
|
));
|
|
1269
2087
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
1270
|
-
var SelectScrollUpButton =
|
|
2088
|
+
var SelectScrollUpButton = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx28(
|
|
1271
2089
|
SelectPrimitive.ScrollUpButton,
|
|
1272
2090
|
{
|
|
1273
2091
|
ref,
|
|
@@ -1276,11 +2094,11 @@ var SelectScrollUpButton = React16.forwardRef(({ className, ...props }, ref) =>
|
|
|
1276
2094
|
className
|
|
1277
2095
|
),
|
|
1278
2096
|
...props,
|
|
1279
|
-
children: /* @__PURE__ */
|
|
2097
|
+
children: /* @__PURE__ */ jsx28(ChevronDown3, { className: "h-4 w-4 rotate-180" })
|
|
1280
2098
|
}
|
|
1281
2099
|
));
|
|
1282
2100
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
1283
|
-
var SelectScrollDownButton =
|
|
2101
|
+
var SelectScrollDownButton = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx28(
|
|
1284
2102
|
SelectPrimitive.ScrollDownButton,
|
|
1285
2103
|
{
|
|
1286
2104
|
ref,
|
|
@@ -1289,11 +2107,11 @@ var SelectScrollDownButton = React16.forwardRef(({ className, ...props }, ref) =
|
|
|
1289
2107
|
className
|
|
1290
2108
|
),
|
|
1291
2109
|
...props,
|
|
1292
|
-
children: /* @__PURE__ */
|
|
2110
|
+
children: /* @__PURE__ */ jsx28(ChevronDown3, { className: "h-4 w-4" })
|
|
1293
2111
|
}
|
|
1294
2112
|
));
|
|
1295
2113
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
1296
|
-
var SelectContent =
|
|
2114
|
+
var SelectContent = React27.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx28(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs14(
|
|
1297
2115
|
SelectPrimitive.Content,
|
|
1298
2116
|
{
|
|
1299
2117
|
ref,
|
|
@@ -1308,8 +2126,8 @@ var SelectContent = React16.forwardRef(({ className, children, position = "poppe
|
|
|
1308
2126
|
collisionPadding: 8,
|
|
1309
2127
|
...props,
|
|
1310
2128
|
children: [
|
|
1311
|
-
/* @__PURE__ */
|
|
1312
|
-
/* @__PURE__ */
|
|
2129
|
+
/* @__PURE__ */ jsx28(SelectScrollUpButton, {}),
|
|
2130
|
+
/* @__PURE__ */ jsx28(
|
|
1313
2131
|
SelectPrimitive.Viewport,
|
|
1314
2132
|
{
|
|
1315
2133
|
className: cn(
|
|
@@ -1319,12 +2137,12 @@ var SelectContent = React16.forwardRef(({ className, children, position = "poppe
|
|
|
1319
2137
|
children
|
|
1320
2138
|
}
|
|
1321
2139
|
),
|
|
1322
|
-
/* @__PURE__ */
|
|
2140
|
+
/* @__PURE__ */ jsx28(SelectScrollDownButton, {})
|
|
1323
2141
|
]
|
|
1324
2142
|
}
|
|
1325
2143
|
) }));
|
|
1326
2144
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
1327
|
-
var SelectLabel =
|
|
2145
|
+
var SelectLabel = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx28(
|
|
1328
2146
|
SelectPrimitive.Label,
|
|
1329
2147
|
{
|
|
1330
2148
|
ref,
|
|
@@ -1336,7 +2154,7 @@ var SelectLabel = React16.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1336
2154
|
}
|
|
1337
2155
|
));
|
|
1338
2156
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
1339
|
-
var SelectItem =
|
|
2157
|
+
var SelectItem = React27.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs14(
|
|
1340
2158
|
SelectPrimitive.Item,
|
|
1341
2159
|
{
|
|
1342
2160
|
ref,
|
|
@@ -1348,13 +2166,13 @@ var SelectItem = React16.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
1348
2166
|
),
|
|
1349
2167
|
...props,
|
|
1350
2168
|
children: [
|
|
1351
|
-
/* @__PURE__ */
|
|
1352
|
-
/* @__PURE__ */
|
|
2169
|
+
/* @__PURE__ */ jsx28("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx28(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx28(Check2, { className: "h-4 w-4" }) }) }),
|
|
2170
|
+
/* @__PURE__ */ jsx28(SelectPrimitive.ItemText, { children })
|
|
1353
2171
|
]
|
|
1354
2172
|
}
|
|
1355
2173
|
));
|
|
1356
2174
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
1357
|
-
var SelectSeparator =
|
|
2175
|
+
var SelectSeparator = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx28(
|
|
1358
2176
|
SelectPrimitive.Separator,
|
|
1359
2177
|
{
|
|
1360
2178
|
ref,
|
|
@@ -1365,11 +2183,11 @@ var SelectSeparator = React16.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
1365
2183
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
1366
2184
|
|
|
1367
2185
|
// src/components/Separator/Separator.tsx
|
|
1368
|
-
import * as
|
|
2186
|
+
import * as React28 from "react";
|
|
1369
2187
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
1370
|
-
import { jsx as
|
|
1371
|
-
var Separator2 =
|
|
1372
|
-
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */
|
|
2188
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
2189
|
+
var Separator2 = React28.forwardRef(
|
|
2190
|
+
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx29(
|
|
1373
2191
|
SeparatorPrimitive.Root,
|
|
1374
2192
|
{
|
|
1375
2193
|
ref,
|
|
@@ -1387,10 +2205,10 @@ var Separator2 = React17.forwardRef(
|
|
|
1387
2205
|
Separator2.displayName = SeparatorPrimitive.Root.displayName;
|
|
1388
2206
|
|
|
1389
2207
|
// src/components/Sheet/Sheet.tsx
|
|
1390
|
-
import * as
|
|
1391
|
-
import { Fragment as
|
|
2208
|
+
import * as React29 from "react";
|
|
2209
|
+
import { Fragment as Fragment5, jsx as jsx30, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1392
2210
|
var Sheet = ({ open, onOpenChange, children }) => {
|
|
1393
|
-
|
|
2211
|
+
React29.useEffect(() => {
|
|
1394
2212
|
const handleEscape = (e) => {
|
|
1395
2213
|
if (e.key === "Escape" && open) {
|
|
1396
2214
|
onOpenChange?.(false);
|
|
@@ -1406,9 +2224,9 @@ var Sheet = ({ open, onOpenChange, children }) => {
|
|
|
1406
2224
|
};
|
|
1407
2225
|
}, [open, onOpenChange]);
|
|
1408
2226
|
if (!open) return null;
|
|
1409
|
-
return /* @__PURE__ */
|
|
1410
|
-
if (
|
|
1411
|
-
return
|
|
2227
|
+
return /* @__PURE__ */ jsx30(Fragment5, { children: React29.Children.map(children, (child) => {
|
|
2228
|
+
if (React29.isValidElement(child)) {
|
|
2229
|
+
return React29.cloneElement(child, { onOpenChange });
|
|
1412
2230
|
}
|
|
1413
2231
|
return child;
|
|
1414
2232
|
}) });
|
|
@@ -1420,15 +2238,15 @@ var sheetVariants = {
|
|
|
1420
2238
|
left: "inset-y-0 left-0 h-full w-[448px] border-r",
|
|
1421
2239
|
right: "inset-y-0 right-0 h-full w-[448px] border-l"
|
|
1422
2240
|
};
|
|
1423
|
-
var SheetContent =
|
|
1424
|
-
({ className, children, onOpenChange, side = "right", ...props }, ref) => /* @__PURE__ */
|
|
2241
|
+
var SheetContent = React29.forwardRef(
|
|
2242
|
+
({ className, children, onOpenChange, side = "right", ...props }, ref) => /* @__PURE__ */ jsxs15(
|
|
1425
2243
|
"div",
|
|
1426
2244
|
{
|
|
1427
2245
|
className: "fixed inset-0 z-50",
|
|
1428
2246
|
onClick: () => onOpenChange?.(false),
|
|
1429
2247
|
children: [
|
|
1430
|
-
/* @__PURE__ */
|
|
1431
|
-
/* @__PURE__ */
|
|
2248
|
+
/* @__PURE__ */ jsx30("div", { className: "fixed inset-0 bg-black/80", "aria-hidden": "true" }),
|
|
2249
|
+
/* @__PURE__ */ jsxs15(
|
|
1432
2250
|
"div",
|
|
1433
2251
|
{
|
|
1434
2252
|
ref,
|
|
@@ -1442,13 +2260,13 @@ var SheetContent = React18.forwardRef(
|
|
|
1442
2260
|
onClick: (e) => e.stopPropagation(),
|
|
1443
2261
|
...props,
|
|
1444
2262
|
children: [
|
|
1445
|
-
/* @__PURE__ */
|
|
2263
|
+
/* @__PURE__ */ jsx30(
|
|
1446
2264
|
"button",
|
|
1447
2265
|
{
|
|
1448
2266
|
onClick: () => onOpenChange?.(false),
|
|
1449
2267
|
className: "absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",
|
|
1450
2268
|
"aria-label": "Close",
|
|
1451
|
-
children: /* @__PURE__ */
|
|
2269
|
+
children: /* @__PURE__ */ jsx30(Icon, { icon: X, size: 16 })
|
|
1452
2270
|
}
|
|
1453
2271
|
),
|
|
1454
2272
|
children
|
|
@@ -1460,7 +2278,7 @@ var SheetContent = React18.forwardRef(
|
|
|
1460
2278
|
)
|
|
1461
2279
|
);
|
|
1462
2280
|
SheetContent.displayName = "SheetContent";
|
|
1463
|
-
var SheetHeader =
|
|
2281
|
+
var SheetHeader = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
1464
2282
|
"div",
|
|
1465
2283
|
{
|
|
1466
2284
|
ref,
|
|
@@ -1469,7 +2287,7 @@ var SheetHeader = React18.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1469
2287
|
}
|
|
1470
2288
|
));
|
|
1471
2289
|
SheetHeader.displayName = "SheetHeader";
|
|
1472
|
-
var SheetTitle =
|
|
2290
|
+
var SheetTitle = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
1473
2291
|
"h2",
|
|
1474
2292
|
{
|
|
1475
2293
|
ref,
|
|
@@ -1478,7 +2296,7 @@ var SheetTitle = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1478
2296
|
}
|
|
1479
2297
|
));
|
|
1480
2298
|
SheetTitle.displayName = "SheetTitle";
|
|
1481
|
-
var SheetDescription =
|
|
2299
|
+
var SheetDescription = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
1482
2300
|
"p",
|
|
1483
2301
|
{
|
|
1484
2302
|
ref,
|
|
@@ -1487,7 +2305,7 @@ var SheetDescription = React18.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1487
2305
|
}
|
|
1488
2306
|
));
|
|
1489
2307
|
SheetDescription.displayName = "SheetDescription";
|
|
1490
|
-
var SheetFooter =
|
|
2308
|
+
var SheetFooter = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
1491
2309
|
"div",
|
|
1492
2310
|
{
|
|
1493
2311
|
ref,
|
|
@@ -1496,7 +2314,7 @@ var SheetFooter = React18.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1496
2314
|
}
|
|
1497
2315
|
));
|
|
1498
2316
|
SheetFooter.displayName = "SheetFooter";
|
|
1499
|
-
var SheetClose =
|
|
2317
|
+
var SheetClose = React29.forwardRef(({ className, onOpenChange, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
1500
2318
|
"button",
|
|
1501
2319
|
{
|
|
1502
2320
|
ref,
|
|
@@ -1511,9 +2329,9 @@ var SheetClose = React18.forwardRef(({ className, onOpenChange, ...props }, ref)
|
|
|
1511
2329
|
SheetClose.displayName = "SheetClose";
|
|
1512
2330
|
|
|
1513
2331
|
// src/components/Skeleton/Skeleton.tsx
|
|
1514
|
-
import * as
|
|
1515
|
-
import { jsx as
|
|
1516
|
-
var Skeleton =
|
|
2332
|
+
import * as React30 from "react";
|
|
2333
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
2334
|
+
var Skeleton = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx31(
|
|
1517
2335
|
"div",
|
|
1518
2336
|
{
|
|
1519
2337
|
ref,
|
|
@@ -1527,10 +2345,10 @@ var Skeleton = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1527
2345
|
Skeleton.displayName = "Skeleton";
|
|
1528
2346
|
|
|
1529
2347
|
// src/components/Slider/Slider.tsx
|
|
1530
|
-
import * as
|
|
2348
|
+
import * as React31 from "react";
|
|
1531
2349
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
1532
|
-
import { jsx as
|
|
1533
|
-
var Slider =
|
|
2350
|
+
import { jsx as jsx32, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2351
|
+
var Slider = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs16(
|
|
1534
2352
|
SliderPrimitive.Root,
|
|
1535
2353
|
{
|
|
1536
2354
|
ref,
|
|
@@ -1540,18 +2358,18 @@ var Slider = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
1540
2358
|
),
|
|
1541
2359
|
...props,
|
|
1542
2360
|
children: [
|
|
1543
|
-
/* @__PURE__ */
|
|
1544
|
-
/* @__PURE__ */
|
|
2361
|
+
/* @__PURE__ */ jsx32(SliderPrimitive.Track, { className: "relative h-2 w-full grow overflow-hidden rounded-full bg-secondary", children: /* @__PURE__ */ jsx32(SliderPrimitive.Range, { className: "absolute h-full bg-primary" }) }),
|
|
2362
|
+
/* @__PURE__ */ jsx32(SliderPrimitive.Thumb, { className: "block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50" })
|
|
1545
2363
|
]
|
|
1546
2364
|
}
|
|
1547
2365
|
));
|
|
1548
2366
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
|
1549
2367
|
|
|
1550
2368
|
// src/components/Switch/Switch.tsx
|
|
1551
|
-
import * as
|
|
2369
|
+
import * as React32 from "react";
|
|
1552
2370
|
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
|
1553
|
-
import { jsx as
|
|
1554
|
-
var Switch =
|
|
2371
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
2372
|
+
var Switch = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx33(
|
|
1555
2373
|
SwitchPrimitives.Root,
|
|
1556
2374
|
{
|
|
1557
2375
|
className: cn(
|
|
@@ -1560,7 +2378,7 @@ var Switch = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
1560
2378
|
),
|
|
1561
2379
|
...props,
|
|
1562
2380
|
ref,
|
|
1563
|
-
children: /* @__PURE__ */
|
|
2381
|
+
children: /* @__PURE__ */ jsx33(
|
|
1564
2382
|
SwitchPrimitives.Thumb,
|
|
1565
2383
|
{
|
|
1566
2384
|
className: cn(
|
|
@@ -1573,9 +2391,9 @@ var Switch = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
1573
2391
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
1574
2392
|
|
|
1575
2393
|
// src/components/Table/Table.tsx
|
|
1576
|
-
import * as
|
|
1577
|
-
import { jsx as
|
|
1578
|
-
var Table =
|
|
2394
|
+
import * as React33 from "react";
|
|
2395
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
2396
|
+
var Table = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx34(
|
|
1579
2397
|
"table",
|
|
1580
2398
|
{
|
|
1581
2399
|
ref,
|
|
@@ -1584,9 +2402,9 @@ var Table = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
1584
2402
|
}
|
|
1585
2403
|
) }));
|
|
1586
2404
|
Table.displayName = "Table";
|
|
1587
|
-
var TableHeader =
|
|
2405
|
+
var TableHeader = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
|
|
1588
2406
|
TableHeader.displayName = "TableHeader";
|
|
1589
|
-
var TableBody =
|
|
2407
|
+
var TableBody = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34(
|
|
1590
2408
|
"tbody",
|
|
1591
2409
|
{
|
|
1592
2410
|
ref,
|
|
@@ -1595,7 +2413,7 @@ var TableBody = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
1595
2413
|
}
|
|
1596
2414
|
));
|
|
1597
2415
|
TableBody.displayName = "TableBody";
|
|
1598
|
-
var TableFooter =
|
|
2416
|
+
var TableFooter = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34(
|
|
1599
2417
|
"tfoot",
|
|
1600
2418
|
{
|
|
1601
2419
|
ref,
|
|
@@ -1607,7 +2425,7 @@ var TableFooter = React22.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1607
2425
|
}
|
|
1608
2426
|
));
|
|
1609
2427
|
TableFooter.displayName = "TableFooter";
|
|
1610
|
-
var TableRow =
|
|
2428
|
+
var TableRow = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34(
|
|
1611
2429
|
"tr",
|
|
1612
2430
|
{
|
|
1613
2431
|
ref,
|
|
@@ -1619,7 +2437,7 @@ var TableRow = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1619
2437
|
}
|
|
1620
2438
|
));
|
|
1621
2439
|
TableRow.displayName = "TableRow";
|
|
1622
|
-
var TableHead =
|
|
2440
|
+
var TableHead = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34(
|
|
1623
2441
|
"th",
|
|
1624
2442
|
{
|
|
1625
2443
|
ref,
|
|
@@ -1631,7 +2449,7 @@ var TableHead = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
1631
2449
|
}
|
|
1632
2450
|
));
|
|
1633
2451
|
TableHead.displayName = "TableHead";
|
|
1634
|
-
var TableCell =
|
|
2452
|
+
var TableCell = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34(
|
|
1635
2453
|
"td",
|
|
1636
2454
|
{
|
|
1637
2455
|
ref,
|
|
@@ -1643,7 +2461,7 @@ var TableCell = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
1643
2461
|
}
|
|
1644
2462
|
));
|
|
1645
2463
|
TableCell.displayName = "TableCell";
|
|
1646
|
-
var TableCaption =
|
|
2464
|
+
var TableCaption = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34(
|
|
1647
2465
|
"caption",
|
|
1648
2466
|
{
|
|
1649
2467
|
ref,
|
|
@@ -1654,11 +2472,11 @@ var TableCaption = React22.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1654
2472
|
TableCaption.displayName = "TableCaption";
|
|
1655
2473
|
|
|
1656
2474
|
// src/components/Tabs/Tabs.tsx
|
|
1657
|
-
import * as
|
|
2475
|
+
import * as React34 from "react";
|
|
1658
2476
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
1659
|
-
import { jsx as
|
|
2477
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
1660
2478
|
var Tabs = TabsPrimitive.Root;
|
|
1661
|
-
var TabsList =
|
|
2479
|
+
var TabsList = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx35(
|
|
1662
2480
|
TabsPrimitive.List,
|
|
1663
2481
|
{
|
|
1664
2482
|
ref,
|
|
@@ -1670,7 +2488,7 @@ var TabsList = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1670
2488
|
}
|
|
1671
2489
|
));
|
|
1672
2490
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
1673
|
-
var TabsTrigger =
|
|
2491
|
+
var TabsTrigger = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx35(
|
|
1674
2492
|
TabsPrimitive.Trigger,
|
|
1675
2493
|
{
|
|
1676
2494
|
ref,
|
|
@@ -1682,7 +2500,7 @@ var TabsTrigger = React23.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1682
2500
|
}
|
|
1683
2501
|
));
|
|
1684
2502
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
1685
|
-
var TabsContent =
|
|
2503
|
+
var TabsContent = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx35(
|
|
1686
2504
|
TabsPrimitive.Content,
|
|
1687
2505
|
{
|
|
1688
2506
|
ref,
|
|
@@ -1696,11 +2514,11 @@ var TabsContent = React23.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1696
2514
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
1697
2515
|
|
|
1698
2516
|
// src/components/Textarea/Textarea.tsx
|
|
1699
|
-
import * as
|
|
1700
|
-
import { jsx as
|
|
1701
|
-
var Textarea =
|
|
2517
|
+
import * as React35 from "react";
|
|
2518
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
2519
|
+
var Textarea = React35.forwardRef(
|
|
1702
2520
|
({ className, ...props }, ref) => {
|
|
1703
|
-
return /* @__PURE__ */
|
|
2521
|
+
return /* @__PURE__ */ jsx36(
|
|
1704
2522
|
"textarea",
|
|
1705
2523
|
{
|
|
1706
2524
|
className: cn(
|
|
@@ -1718,9 +2536,9 @@ Textarea.displayName = "Textarea";
|
|
|
1718
2536
|
// src/components/Toast/Toast.tsx
|
|
1719
2537
|
import { Toaster as Sonner } from "sonner";
|
|
1720
2538
|
import { Toaster, toast } from "sonner";
|
|
1721
|
-
import { jsx as
|
|
2539
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
1722
2540
|
var Toaster2 = ({ ...props }) => {
|
|
1723
|
-
return /* @__PURE__ */
|
|
2541
|
+
return /* @__PURE__ */ jsx37(
|
|
1724
2542
|
Sonner,
|
|
1725
2543
|
{
|
|
1726
2544
|
className: "toaster group",
|
|
@@ -1738,11 +2556,11 @@ var Toaster2 = ({ ...props }) => {
|
|
|
1738
2556
|
};
|
|
1739
2557
|
|
|
1740
2558
|
// src/components/Toggle/Toggle.tsx
|
|
1741
|
-
import * as
|
|
2559
|
+
import * as React36 from "react";
|
|
1742
2560
|
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
1743
|
-
import { cva as
|
|
1744
|
-
import { jsx as
|
|
1745
|
-
var toggleVariants =
|
|
2561
|
+
import { cva as cva9 } from "class-variance-authority";
|
|
2562
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
2563
|
+
var toggleVariants = cva9(
|
|
1746
2564
|
"inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-muted data-[state=on]:text-foreground",
|
|
1747
2565
|
{
|
|
1748
2566
|
variants: {
|
|
@@ -1762,7 +2580,7 @@ var toggleVariants = cva4(
|
|
|
1762
2580
|
}
|
|
1763
2581
|
}
|
|
1764
2582
|
);
|
|
1765
|
-
var Toggle =
|
|
2583
|
+
var Toggle = React36.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx38(
|
|
1766
2584
|
TogglePrimitive.Root,
|
|
1767
2585
|
{
|
|
1768
2586
|
ref,
|
|
@@ -1773,16 +2591,16 @@ var Toggle = React25.forwardRef(({ className, variant, size, ...props }, ref) =>
|
|
|
1773
2591
|
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
1774
2592
|
|
|
1775
2593
|
// src/lib/theme.tsx
|
|
1776
|
-
import * as
|
|
1777
|
-
import { jsx as
|
|
1778
|
-
var ThemeContext =
|
|
2594
|
+
import * as React37 from "react";
|
|
2595
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
2596
|
+
var ThemeContext = React37.createContext(void 0);
|
|
1779
2597
|
function ThemeProvider({
|
|
1780
2598
|
children,
|
|
1781
2599
|
defaultTheme = "auto",
|
|
1782
2600
|
storageKey = "cc-theme",
|
|
1783
2601
|
enablePersistence = true
|
|
1784
2602
|
}) {
|
|
1785
|
-
const [theme, setThemeState] =
|
|
2603
|
+
const [theme, setThemeState] = React37.useState(() => {
|
|
1786
2604
|
if (typeof window === "undefined") return defaultTheme;
|
|
1787
2605
|
if (enablePersistence) {
|
|
1788
2606
|
const stored = window.localStorage.getItem(storageKey);
|
|
@@ -1792,13 +2610,13 @@ function ThemeProvider({
|
|
|
1792
2610
|
}
|
|
1793
2611
|
return defaultTheme;
|
|
1794
2612
|
});
|
|
1795
|
-
const [actualTheme, setActualTheme] =
|
|
2613
|
+
const [actualTheme, setActualTheme] = React37.useState(() => {
|
|
1796
2614
|
if (theme === "auto") {
|
|
1797
2615
|
return typeof window !== "undefined" && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
1798
2616
|
}
|
|
1799
2617
|
return theme;
|
|
1800
2618
|
});
|
|
1801
|
-
|
|
2619
|
+
React37.useEffect(() => {
|
|
1802
2620
|
const root = window.document.documentElement;
|
|
1803
2621
|
if (theme === "auto") {
|
|
1804
2622
|
root.removeAttribute("data-theme");
|
|
@@ -1806,7 +2624,7 @@ function ThemeProvider({
|
|
|
1806
2624
|
root.setAttribute("data-theme", theme);
|
|
1807
2625
|
}
|
|
1808
2626
|
}, [theme]);
|
|
1809
|
-
|
|
2627
|
+
React37.useEffect(() => {
|
|
1810
2628
|
if (theme !== "auto") {
|
|
1811
2629
|
setActualTheme(theme);
|
|
1812
2630
|
return;
|
|
@@ -1821,7 +2639,7 @@ function ThemeProvider({
|
|
|
1821
2639
|
mediaQuery.removeEventListener("change", handleChange);
|
|
1822
2640
|
};
|
|
1823
2641
|
}, [theme]);
|
|
1824
|
-
const setTheme =
|
|
2642
|
+
const setTheme = React37.useCallback(
|
|
1825
2643
|
(newTheme) => {
|
|
1826
2644
|
setThemeState(newTheme);
|
|
1827
2645
|
if (enablePersistence && typeof window !== "undefined") {
|
|
@@ -1834,7 +2652,7 @@ function ThemeProvider({
|
|
|
1834
2652
|
},
|
|
1835
2653
|
[enablePersistence, storageKey]
|
|
1836
2654
|
);
|
|
1837
|
-
const value =
|
|
2655
|
+
const value = React37.useMemo(
|
|
1838
2656
|
() => ({
|
|
1839
2657
|
theme,
|
|
1840
2658
|
setTheme,
|
|
@@ -1842,10 +2660,10 @@ function ThemeProvider({
|
|
|
1842
2660
|
}),
|
|
1843
2661
|
[theme, setTheme, actualTheme]
|
|
1844
2662
|
);
|
|
1845
|
-
return /* @__PURE__ */
|
|
2663
|
+
return /* @__PURE__ */ jsx39(ThemeContext.Provider, { value, children });
|
|
1846
2664
|
}
|
|
1847
2665
|
function useTheme() {
|
|
1848
|
-
const context =
|
|
2666
|
+
const context = React37.useContext(ThemeContext);
|
|
1849
2667
|
if (context === void 0) {
|
|
1850
2668
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
1851
2669
|
}
|
|
@@ -2001,11 +2819,22 @@ export {
|
|
|
2001
2819
|
Heart,
|
|
2002
2820
|
HelpCircle,
|
|
2003
2821
|
Home,
|
|
2822
|
+
HoverCard,
|
|
2823
|
+
HoverCardDescription,
|
|
2824
|
+
HoverCardHeader,
|
|
2825
|
+
HoverCardTitle,
|
|
2004
2826
|
Icon,
|
|
2005
2827
|
Image,
|
|
2828
|
+
IndicatorCircle,
|
|
2829
|
+
IndicatorDot,
|
|
2006
2830
|
Info,
|
|
2831
|
+
Input,
|
|
2832
|
+
InputGroup,
|
|
2833
|
+
InputGroupHelpText,
|
|
2834
|
+
InputGroupLabel,
|
|
2007
2835
|
Instagram,
|
|
2008
2836
|
Key,
|
|
2837
|
+
Label,
|
|
2009
2838
|
Laptop,
|
|
2010
2839
|
Layout,
|
|
2011
2840
|
LayoutGrid,
|
|
@@ -2026,6 +2855,12 @@ export {
|
|
|
2026
2855
|
Maximize,
|
|
2027
2856
|
Maximize2,
|
|
2028
2857
|
Menu,
|
|
2858
|
+
Menubar,
|
|
2859
|
+
MenubarDropdown,
|
|
2860
|
+
MenubarItem,
|
|
2861
|
+
MenubarLabel,
|
|
2862
|
+
MenubarSeparator,
|
|
2863
|
+
MenubarTrigger,
|
|
2029
2864
|
MessageCircle,
|
|
2030
2865
|
MessageSquare,
|
|
2031
2866
|
Mic,
|
|
@@ -2038,9 +2873,25 @@ export {
|
|
|
2038
2873
|
MoreHorizontal,
|
|
2039
2874
|
MoreVertical,
|
|
2040
2875
|
Music,
|
|
2876
|
+
NavHeader,
|
|
2877
|
+
NavHeaderBrand,
|
|
2878
|
+
NavHeaderDivider,
|
|
2879
|
+
NavHeaderItem,
|
|
2880
|
+
NavHeaderNav,
|
|
2881
|
+
NavSidePanel,
|
|
2882
|
+
NavSidePanelBrand,
|
|
2883
|
+
NavSidePanelFooter,
|
|
2884
|
+
NavSidePanelHeader,
|
|
2885
|
+
NavSidePanelItem,
|
|
2886
|
+
NavSidePanelNav,
|
|
2887
|
+
NavSidePanelSeparator,
|
|
2041
2888
|
Navigation,
|
|
2042
2889
|
Navigation2,
|
|
2043
2890
|
Package,
|
|
2891
|
+
Pagination,
|
|
2892
|
+
PaginationEllipsis,
|
|
2893
|
+
PaginationItem,
|
|
2894
|
+
PaginationLink,
|
|
2044
2895
|
PanelLeft,
|
|
2045
2896
|
PanelRight,
|
|
2046
2897
|
Paperclip,
|
|
@@ -2052,6 +2903,11 @@ export {
|
|
|
2052
2903
|
PieChart,
|
|
2053
2904
|
Play,
|
|
2054
2905
|
Plus,
|
|
2906
|
+
Popover,
|
|
2907
|
+
PopoverDescription,
|
|
2908
|
+
PopoverHeader,
|
|
2909
|
+
PopoverTitle,
|
|
2910
|
+
Progress,
|
|
2055
2911
|
Radio,
|
|
2056
2912
|
RefreshCw,
|
|
2057
2913
|
RotateCcw,
|
|
@@ -2148,6 +3004,13 @@ export {
|
|
|
2148
3004
|
badgeVariants,
|
|
2149
3005
|
buttonVariants,
|
|
2150
3006
|
cn,
|
|
3007
|
+
indicatorCircleVariants,
|
|
3008
|
+
indicatorDotVariants,
|
|
3009
|
+
menubarItemVariants,
|
|
3010
|
+
menubarTriggerVariants,
|
|
3011
|
+
navHeaderItemVariants,
|
|
3012
|
+
navSidePanelItemVariants,
|
|
3013
|
+
paginationItemVariants,
|
|
2151
3014
|
toast,
|
|
2152
3015
|
toggleVariants,
|
|
2153
3016
|
useTheme
|