@bergetai/ui 0.13.6 → 0.14.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 +683 -563
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -1
- package/dist/index.d.ts +14 -1
- package/dist/index.js +677 -563
- package/dist/index.js.map +1 -1
- package/dist/styles/index.css +15 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -134,6 +134,11 @@ __export(src_exports, {
|
|
|
134
134
|
NavigationMenuList: () => NavigationMenuList,
|
|
135
135
|
NavigationMenuPositioner: () => NavigationMenuPositioner,
|
|
136
136
|
NavigationMenuTrigger: () => NavigationMenuTrigger,
|
|
137
|
+
Progress: () => Progress2,
|
|
138
|
+
ProgressIndicator: () => ProgressIndicator,
|
|
139
|
+
ProgressLabel: () => ProgressLabel,
|
|
140
|
+
ProgressTrack: () => ProgressTrack,
|
|
141
|
+
ProgressValue: () => ProgressValue,
|
|
137
142
|
SearchInput: () => SearchInput,
|
|
138
143
|
Select: () => Select,
|
|
139
144
|
SelectContent: () => SelectContent,
|
|
@@ -170,6 +175,7 @@ __export(src_exports, {
|
|
|
170
175
|
SidebarRail: () => SidebarRail,
|
|
171
176
|
SidebarSeparator: () => SidebarSeparator,
|
|
172
177
|
SidebarTrigger: () => SidebarTrigger,
|
|
178
|
+
Skeleton: () => Skeleton2,
|
|
173
179
|
Switch: () => Switch,
|
|
174
180
|
Table: () => Table2,
|
|
175
181
|
TableBody: () => TableBody2,
|
|
@@ -1299,19 +1305,141 @@ var Alert2 = React10.forwardRef(
|
|
|
1299
1305
|
);
|
|
1300
1306
|
Alert2.displayName = "Alert";
|
|
1301
1307
|
|
|
1302
|
-
// src/components/
|
|
1308
|
+
// src/components/skeleton/Skeleton.tsx
|
|
1303
1309
|
var React11 = __toESM(require("react"), 1);
|
|
1310
|
+
|
|
1311
|
+
// src/primitives/skeleton.tsx
|
|
1312
|
+
var import_cn4 = require("cn");
|
|
1313
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
1314
|
+
function Skeleton({ className, ...props }) {
|
|
1315
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1316
|
+
"div",
|
|
1317
|
+
{
|
|
1318
|
+
"data-slot": "skeleton",
|
|
1319
|
+
className: (0, import_cn4.cn)("animate-pulse rounded-md bg-muted", className),
|
|
1320
|
+
...props
|
|
1321
|
+
}
|
|
1322
|
+
);
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
// src/components/skeleton/Skeleton.tsx
|
|
1326
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
1327
|
+
var Skeleton2 = React11.forwardRef(({ className, ...props }, ref) => {
|
|
1328
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Skeleton, { ref, className: cn("bg-berget-surface-02", className), ...props });
|
|
1329
|
+
});
|
|
1330
|
+
Skeleton2.displayName = "Skeleton";
|
|
1331
|
+
|
|
1332
|
+
// src/components/progress/Progress.tsx
|
|
1333
|
+
var React12 = __toESM(require("react"), 1);
|
|
1334
|
+
|
|
1335
|
+
// src/primitives/progress.tsx
|
|
1336
|
+
var import_progress = require("@base-ui/react/progress");
|
|
1337
|
+
var import_cn5 = require("cn");
|
|
1338
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
1339
|
+
function Progress({
|
|
1340
|
+
className,
|
|
1341
|
+
children,
|
|
1342
|
+
value,
|
|
1343
|
+
...props
|
|
1344
|
+
}) {
|
|
1345
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
1346
|
+
import_progress.Progress.Root,
|
|
1347
|
+
{
|
|
1348
|
+
value,
|
|
1349
|
+
"data-slot": "progress",
|
|
1350
|
+
className: (0, import_cn5.cn)("flex flex-wrap gap-3", className),
|
|
1351
|
+
...props,
|
|
1352
|
+
children: [
|
|
1353
|
+
children,
|
|
1354
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ProgressTrack, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ProgressIndicator, {}) })
|
|
1355
|
+
]
|
|
1356
|
+
}
|
|
1357
|
+
);
|
|
1358
|
+
}
|
|
1359
|
+
function ProgressTrack({ className, ...props }) {
|
|
1360
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1361
|
+
import_progress.Progress.Track,
|
|
1362
|
+
{
|
|
1363
|
+
className: (0, import_cn5.cn)(
|
|
1364
|
+
"relative flex h-1 w-full items-center overflow-x-hidden rounded-full bg-muted",
|
|
1365
|
+
className
|
|
1366
|
+
),
|
|
1367
|
+
"data-slot": "progress-track",
|
|
1368
|
+
...props
|
|
1369
|
+
}
|
|
1370
|
+
);
|
|
1371
|
+
}
|
|
1372
|
+
function ProgressIndicator({
|
|
1373
|
+
className,
|
|
1374
|
+
...props
|
|
1375
|
+
}) {
|
|
1376
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1377
|
+
import_progress.Progress.Indicator,
|
|
1378
|
+
{
|
|
1379
|
+
"data-slot": "progress-indicator",
|
|
1380
|
+
className: (0, import_cn5.cn)("h-full bg-primary transition-all", className),
|
|
1381
|
+
...props
|
|
1382
|
+
}
|
|
1383
|
+
);
|
|
1384
|
+
}
|
|
1385
|
+
function ProgressLabel({ className, ...props }) {
|
|
1386
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1387
|
+
import_progress.Progress.Label,
|
|
1388
|
+
{
|
|
1389
|
+
className: (0, import_cn5.cn)("text-sm font-medium", className),
|
|
1390
|
+
"data-slot": "progress-label",
|
|
1391
|
+
...props
|
|
1392
|
+
}
|
|
1393
|
+
);
|
|
1394
|
+
}
|
|
1395
|
+
function ProgressValue({ className, ...props }) {
|
|
1396
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1397
|
+
import_progress.Progress.Value,
|
|
1398
|
+
{
|
|
1399
|
+
className: (0, import_cn5.cn)(
|
|
1400
|
+
"ml-auto text-sm text-muted-foreground tabular-nums",
|
|
1401
|
+
className
|
|
1402
|
+
),
|
|
1403
|
+
"data-slot": "progress-value",
|
|
1404
|
+
...props
|
|
1405
|
+
}
|
|
1406
|
+
);
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1409
|
+
// src/components/progress/Progress.tsx
|
|
1410
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
1411
|
+
var Progress2 = React12.forwardRef(
|
|
1412
|
+
({ className, value, ...props }, ref) => {
|
|
1413
|
+
const indeterminate = value == null;
|
|
1414
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1415
|
+
Progress,
|
|
1416
|
+
{
|
|
1417
|
+
ref,
|
|
1418
|
+
value,
|
|
1419
|
+
className: cn(
|
|
1420
|
+
indeterminate && "[&_[data-slot=progress-indicator]]:w-1/3 [&_[data-slot=progress-indicator]]:animate-progress-indeterminate",
|
|
1421
|
+
className
|
|
1422
|
+
),
|
|
1423
|
+
...props
|
|
1424
|
+
}
|
|
1425
|
+
);
|
|
1426
|
+
}
|
|
1427
|
+
);
|
|
1428
|
+
Progress2.displayName = "Progress";
|
|
1429
|
+
|
|
1430
|
+
// src/components/dialog/Dialog.tsx
|
|
1431
|
+
var React13 = __toESM(require("react"), 1);
|
|
1304
1432
|
var import_dialog = require("@base-ui/react/dialog");
|
|
1305
1433
|
var import_lucide_react2 = require("lucide-react");
|
|
1306
|
-
var
|
|
1434
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
1307
1435
|
var Dialog = import_dialog.Dialog.Root;
|
|
1308
|
-
var DialogTrigger =
|
|
1309
|
-
({ asChild, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1436
|
+
var DialogTrigger = React13.forwardRef(
|
|
1437
|
+
({ asChild, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_dialog.Dialog.Trigger, { ref, render: asChildRender(asChild, children), ...props, children: asChild ? void 0 : children })
|
|
1310
1438
|
);
|
|
1311
1439
|
DialogTrigger.displayName = "DialogTrigger";
|
|
1312
1440
|
var DialogPortal = import_dialog.Dialog.Portal;
|
|
1313
1441
|
var DialogClose = import_dialog.Dialog.Close;
|
|
1314
|
-
var DialogOverlay =
|
|
1442
|
+
var DialogOverlay = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1315
1443
|
import_dialog.Dialog.Backdrop,
|
|
1316
1444
|
{
|
|
1317
1445
|
ref,
|
|
@@ -1323,9 +1451,9 @@ var DialogOverlay = React11.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1323
1451
|
}
|
|
1324
1452
|
));
|
|
1325
1453
|
DialogOverlay.displayName = "DialogOverlay";
|
|
1326
|
-
var DialogContent =
|
|
1327
|
-
/* @__PURE__ */ (0,
|
|
1328
|
-
/* @__PURE__ */ (0,
|
|
1454
|
+
var DialogContent = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(DialogPortal, { children: [
|
|
1455
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DialogOverlay, {}),
|
|
1456
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
1329
1457
|
import_dialog.Dialog.Popup,
|
|
1330
1458
|
{
|
|
1331
1459
|
ref,
|
|
@@ -1336,18 +1464,18 @@ var DialogContent = React11.forwardRef(({ className, children, ...props }, ref)
|
|
|
1336
1464
|
...props,
|
|
1337
1465
|
children: [
|
|
1338
1466
|
children,
|
|
1339
|
-
/* @__PURE__ */ (0,
|
|
1340
|
-
/* @__PURE__ */ (0,
|
|
1341
|
-
/* @__PURE__ */ (0,
|
|
1467
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_dialog.Dialog.Close, { className: "absolute right-4 top-4 rounded-berget-xs opacity-70 ring-offset-berget-dialog-bg transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-berget-focus-ring focus:ring-offset-2 disabled:pointer-events-none data-open:bg-berget-muted data-open:text-berget-muted-foreground", children: [
|
|
1468
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react2.X, { className: "size-4" }),
|
|
1469
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "sr-only", children: "Close" })
|
|
1342
1470
|
] })
|
|
1343
1471
|
]
|
|
1344
1472
|
}
|
|
1345
1473
|
)
|
|
1346
1474
|
] }));
|
|
1347
1475
|
DialogContent.displayName = "DialogContent";
|
|
1348
|
-
var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
1476
|
+
var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: cn("flex flex-col gap-1.5 text-center sm:text-left", className), ...props });
|
|
1349
1477
|
DialogHeader.displayName = "DialogHeader";
|
|
1350
|
-
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
1478
|
+
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1351
1479
|
"div",
|
|
1352
1480
|
{
|
|
1353
1481
|
className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
@@ -1355,21 +1483,21 @@ var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_r
|
|
|
1355
1483
|
}
|
|
1356
1484
|
);
|
|
1357
1485
|
DialogFooter.displayName = "DialogFooter";
|
|
1358
|
-
var DialogTitle =
|
|
1486
|
+
var DialogTitle = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1359
1487
|
import_dialog.Dialog.Title,
|
|
1360
1488
|
{
|
|
1361
1489
|
ref,
|
|
1362
|
-
render: /* @__PURE__ */ (0,
|
|
1490
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Typography, { variant: "h5", color: "default", as: "h2", className }),
|
|
1363
1491
|
...props,
|
|
1364
1492
|
children
|
|
1365
1493
|
}
|
|
1366
1494
|
));
|
|
1367
1495
|
DialogTitle.displayName = "DialogTitle";
|
|
1368
|
-
var DialogDescription =
|
|
1496
|
+
var DialogDescription = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1369
1497
|
import_dialog.Dialog.Description,
|
|
1370
1498
|
{
|
|
1371
1499
|
ref,
|
|
1372
|
-
render: /* @__PURE__ */ (0,
|
|
1500
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Typography, { variant: "small", color: "muted", className }),
|
|
1373
1501
|
...props,
|
|
1374
1502
|
children
|
|
1375
1503
|
}
|
|
@@ -1377,16 +1505,16 @@ var DialogDescription = React11.forwardRef(({ className, children, ...props }, r
|
|
|
1377
1505
|
DialogDescription.displayName = "DialogDescription";
|
|
1378
1506
|
|
|
1379
1507
|
// src/components/alert-dialog/AlertDialog.tsx
|
|
1380
|
-
var
|
|
1508
|
+
var React14 = __toESM(require("react"), 1);
|
|
1381
1509
|
var import_alert_dialog = require("@base-ui/react/alert-dialog");
|
|
1382
|
-
var
|
|
1510
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
1383
1511
|
var AlertDialog = import_alert_dialog.AlertDialog.Root;
|
|
1384
|
-
var AlertDialogTrigger =
|
|
1385
|
-
({ asChild, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1512
|
+
var AlertDialogTrigger = React14.forwardRef(
|
|
1513
|
+
({ asChild, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_alert_dialog.AlertDialog.Trigger, { ref, render: asChildRender(asChild, children), ...props, children: asChild ? void 0 : children })
|
|
1386
1514
|
);
|
|
1387
1515
|
AlertDialogTrigger.displayName = "AlertDialogTrigger";
|
|
1388
1516
|
var AlertDialogPortal = import_alert_dialog.AlertDialog.Portal;
|
|
1389
|
-
var AlertDialogOverlay =
|
|
1517
|
+
var AlertDialogOverlay = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1390
1518
|
import_alert_dialog.AlertDialog.Backdrop,
|
|
1391
1519
|
{
|
|
1392
1520
|
ref,
|
|
@@ -1398,9 +1526,9 @@ var AlertDialogOverlay = React12.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1398
1526
|
}
|
|
1399
1527
|
));
|
|
1400
1528
|
AlertDialogOverlay.displayName = "AlertDialogOverlay";
|
|
1401
|
-
var AlertDialogContent =
|
|
1402
|
-
/* @__PURE__ */ (0,
|
|
1403
|
-
/* @__PURE__ */ (0,
|
|
1529
|
+
var AlertDialogContent = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(AlertDialogPortal, { children: [
|
|
1530
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(AlertDialogOverlay, {}),
|
|
1531
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1404
1532
|
import_alert_dialog.AlertDialog.Popup,
|
|
1405
1533
|
{
|
|
1406
1534
|
ref,
|
|
@@ -1413,9 +1541,9 @@ var AlertDialogContent = React12.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1413
1541
|
)
|
|
1414
1542
|
] }));
|
|
1415
1543
|
AlertDialogContent.displayName = "AlertDialogContent";
|
|
1416
|
-
var AlertDialogHeader = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
1544
|
+
var AlertDialogHeader = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: cn("flex flex-col gap-1.5 text-center sm:text-left", className), ...props });
|
|
1417
1545
|
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
1418
|
-
var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
1546
|
+
var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1419
1547
|
"div",
|
|
1420
1548
|
{
|
|
1421
1549
|
className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
@@ -1423,27 +1551,27 @@ var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_
|
|
|
1423
1551
|
}
|
|
1424
1552
|
);
|
|
1425
1553
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
1426
|
-
var AlertDialogTitle =
|
|
1554
|
+
var AlertDialogTitle = React14.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1427
1555
|
import_alert_dialog.AlertDialog.Title,
|
|
1428
1556
|
{
|
|
1429
1557
|
ref,
|
|
1430
|
-
render: /* @__PURE__ */ (0,
|
|
1558
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Typography, { variant: "h5", color: "default", as: "h2", className }),
|
|
1431
1559
|
...props,
|
|
1432
1560
|
children
|
|
1433
1561
|
}
|
|
1434
1562
|
));
|
|
1435
1563
|
AlertDialogTitle.displayName = "AlertDialogTitle";
|
|
1436
|
-
var AlertDialogDescription =
|
|
1564
|
+
var AlertDialogDescription = React14.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1437
1565
|
import_alert_dialog.AlertDialog.Description,
|
|
1438
1566
|
{
|
|
1439
1567
|
ref,
|
|
1440
|
-
render: /* @__PURE__ */ (0,
|
|
1568
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Typography, { variant: "small", color: "muted", className }),
|
|
1441
1569
|
...props,
|
|
1442
1570
|
children
|
|
1443
1571
|
}
|
|
1444
1572
|
));
|
|
1445
1573
|
AlertDialogDescription.displayName = "AlertDialogDescription";
|
|
1446
|
-
var AlertDialogAction =
|
|
1574
|
+
var AlertDialogAction = React14.forwardRef(({ className, asChild, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1447
1575
|
import_alert_dialog.AlertDialog.Close,
|
|
1448
1576
|
{
|
|
1449
1577
|
ref,
|
|
@@ -1454,7 +1582,7 @@ var AlertDialogAction = React12.forwardRef(({ className, asChild, children, ...p
|
|
|
1454
1582
|
}
|
|
1455
1583
|
));
|
|
1456
1584
|
AlertDialogAction.displayName = "AlertDialogAction";
|
|
1457
|
-
var AlertDialogCancel =
|
|
1585
|
+
var AlertDialogCancel = React14.forwardRef(({ className, asChild, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1458
1586
|
import_alert_dialog.AlertDialog.Close,
|
|
1459
1587
|
{
|
|
1460
1588
|
ref,
|
|
@@ -1467,21 +1595,21 @@ var AlertDialogCancel = React12.forwardRef(({ className, asChild, children, ...p
|
|
|
1467
1595
|
AlertDialogCancel.displayName = "AlertDialogCancel";
|
|
1468
1596
|
|
|
1469
1597
|
// src/components/dropdown-menu/DropdownMenu.tsx
|
|
1470
|
-
var
|
|
1598
|
+
var React15 = __toESM(require("react"), 1);
|
|
1471
1599
|
|
|
1472
1600
|
// src/primitives/dropdown-menu.tsx
|
|
1473
1601
|
var import_menu = require("@base-ui/react/menu");
|
|
1474
|
-
var
|
|
1602
|
+
var import_cn6 = require("cn");
|
|
1475
1603
|
var import_lucide_react3 = require("lucide-react");
|
|
1476
|
-
var
|
|
1604
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
1477
1605
|
function DropdownMenu({ ...props }) {
|
|
1478
|
-
return /* @__PURE__ */ (0,
|
|
1606
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_menu.Menu.Root, { "data-slot": "dropdown-menu", ...props });
|
|
1479
1607
|
}
|
|
1480
1608
|
function DropdownMenuPortal({ ...props }) {
|
|
1481
|
-
return /* @__PURE__ */ (0,
|
|
1609
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_menu.Menu.Portal, { "data-slot": "dropdown-menu-portal", ...props });
|
|
1482
1610
|
}
|
|
1483
1611
|
function DropdownMenuTrigger({ ...props }) {
|
|
1484
|
-
return /* @__PURE__ */ (0,
|
|
1612
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_menu.Menu.Trigger, { "data-slot": "dropdown-menu-trigger", ...props });
|
|
1485
1613
|
}
|
|
1486
1614
|
function DropdownMenuContent({
|
|
1487
1615
|
align = "start",
|
|
@@ -1491,7 +1619,7 @@ function DropdownMenuContent({
|
|
|
1491
1619
|
className,
|
|
1492
1620
|
...props
|
|
1493
1621
|
}) {
|
|
1494
|
-
return /* @__PURE__ */ (0,
|
|
1622
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_menu.Menu.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1495
1623
|
import_menu.Menu.Positioner,
|
|
1496
1624
|
{
|
|
1497
1625
|
className: "isolate z-50 outline-none",
|
|
@@ -1499,11 +1627,11 @@ function DropdownMenuContent({
|
|
|
1499
1627
|
alignOffset,
|
|
1500
1628
|
side,
|
|
1501
1629
|
sideOffset,
|
|
1502
|
-
children: /* @__PURE__ */ (0,
|
|
1630
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1503
1631
|
import_menu.Menu.Popup,
|
|
1504
1632
|
{
|
|
1505
1633
|
"data-slot": "dropdown-menu-content",
|
|
1506
|
-
className: (0,
|
|
1634
|
+
className: (0, import_cn6.cn)("z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:overflow-hidden data-closed:fade-out-0 data-closed:zoom-out-95", className),
|
|
1507
1635
|
...props
|
|
1508
1636
|
}
|
|
1509
1637
|
)
|
|
@@ -1511,19 +1639,19 @@ function DropdownMenuContent({
|
|
|
1511
1639
|
) });
|
|
1512
1640
|
}
|
|
1513
1641
|
function DropdownMenuGroup({ ...props }) {
|
|
1514
|
-
return /* @__PURE__ */ (0,
|
|
1642
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_menu.Menu.Group, { "data-slot": "dropdown-menu-group", ...props });
|
|
1515
1643
|
}
|
|
1516
1644
|
function DropdownMenuLabel({
|
|
1517
1645
|
className,
|
|
1518
1646
|
inset,
|
|
1519
1647
|
...props
|
|
1520
1648
|
}) {
|
|
1521
|
-
return /* @__PURE__ */ (0,
|
|
1649
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1522
1650
|
import_menu.Menu.GroupLabel,
|
|
1523
1651
|
{
|
|
1524
1652
|
"data-slot": "dropdown-menu-label",
|
|
1525
1653
|
"data-inset": inset,
|
|
1526
|
-
className: (0,
|
|
1654
|
+
className: (0, import_cn6.cn)(
|
|
1527
1655
|
"px-1.5 py-1 text-xs font-medium text-muted-foreground data-inset:pl-7",
|
|
1528
1656
|
className
|
|
1529
1657
|
),
|
|
@@ -1537,13 +1665,13 @@ function DropdownMenuItem({
|
|
|
1537
1665
|
variant = "default",
|
|
1538
1666
|
...props
|
|
1539
1667
|
}) {
|
|
1540
|
-
return /* @__PURE__ */ (0,
|
|
1668
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1541
1669
|
import_menu.Menu.Item,
|
|
1542
1670
|
{
|
|
1543
1671
|
"data-slot": "dropdown-menu-item",
|
|
1544
1672
|
"data-inset": inset,
|
|
1545
1673
|
"data-variant": variant,
|
|
1546
|
-
className: (0,
|
|
1674
|
+
className: (0, import_cn6.cn)(
|
|
1547
1675
|
"group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive",
|
|
1548
1676
|
className
|
|
1549
1677
|
),
|
|
@@ -1552,7 +1680,7 @@ function DropdownMenuItem({
|
|
|
1552
1680
|
);
|
|
1553
1681
|
}
|
|
1554
1682
|
function DropdownMenuSub({ ...props }) {
|
|
1555
|
-
return /* @__PURE__ */ (0,
|
|
1683
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_menu.Menu.SubmenuRoot, { "data-slot": "dropdown-menu-sub", ...props });
|
|
1556
1684
|
}
|
|
1557
1685
|
function DropdownMenuSubTrigger({
|
|
1558
1686
|
className,
|
|
@@ -1560,19 +1688,19 @@ function DropdownMenuSubTrigger({
|
|
|
1560
1688
|
children,
|
|
1561
1689
|
...props
|
|
1562
1690
|
}) {
|
|
1563
|
-
return /* @__PURE__ */ (0,
|
|
1691
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
1564
1692
|
import_menu.Menu.SubmenuTrigger,
|
|
1565
1693
|
{
|
|
1566
1694
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
1567
1695
|
"data-inset": inset,
|
|
1568
|
-
className: (0,
|
|
1696
|
+
className: (0, import_cn6.cn)(
|
|
1569
1697
|
"flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-popup-open:bg-accent data-popup-open:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
1570
1698
|
className
|
|
1571
1699
|
),
|
|
1572
1700
|
...props,
|
|
1573
1701
|
children: [
|
|
1574
1702
|
children,
|
|
1575
|
-
/* @__PURE__ */ (0,
|
|
1703
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react3.ChevronRightIcon, { className: "ml-auto" })
|
|
1576
1704
|
]
|
|
1577
1705
|
}
|
|
1578
1706
|
);
|
|
@@ -1585,11 +1713,11 @@ function DropdownMenuSubContent({
|
|
|
1585
1713
|
className,
|
|
1586
1714
|
...props
|
|
1587
1715
|
}) {
|
|
1588
|
-
return /* @__PURE__ */ (0,
|
|
1716
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1589
1717
|
DropdownMenuContent,
|
|
1590
1718
|
{
|
|
1591
1719
|
"data-slot": "dropdown-menu-sub-content",
|
|
1592
|
-
className: (0,
|
|
1720
|
+
className: (0, import_cn6.cn)("w-auto min-w-[96px] rounded-lg bg-popover p-1 text-popover-foreground shadow-lg ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", className),
|
|
1593
1721
|
align,
|
|
1594
1722
|
alignOffset,
|
|
1595
1723
|
side,
|
|
@@ -1605,24 +1733,24 @@ function DropdownMenuCheckboxItem({
|
|
|
1605
1733
|
inset,
|
|
1606
1734
|
...props
|
|
1607
1735
|
}) {
|
|
1608
|
-
return /* @__PURE__ */ (0,
|
|
1736
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
1609
1737
|
import_menu.Menu.CheckboxItem,
|
|
1610
1738
|
{
|
|
1611
1739
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
1612
1740
|
"data-inset": inset,
|
|
1613
|
-
className: (0,
|
|
1741
|
+
className: (0, import_cn6.cn)(
|
|
1614
1742
|
"relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
1615
1743
|
className
|
|
1616
1744
|
),
|
|
1617
1745
|
checked,
|
|
1618
1746
|
...props,
|
|
1619
1747
|
children: [
|
|
1620
|
-
/* @__PURE__ */ (0,
|
|
1748
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1621
1749
|
"span",
|
|
1622
1750
|
{
|
|
1623
1751
|
className: "pointer-events-none absolute right-2 flex items-center justify-center",
|
|
1624
1752
|
"data-slot": "dropdown-menu-checkbox-item-indicator",
|
|
1625
|
-
children: /* @__PURE__ */ (0,
|
|
1753
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_menu.Menu.CheckboxItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1626
1754
|
import_lucide_react3.CheckIcon,
|
|
1627
1755
|
{}
|
|
1628
1756
|
) })
|
|
@@ -1634,7 +1762,7 @@ function DropdownMenuCheckboxItem({
|
|
|
1634
1762
|
);
|
|
1635
1763
|
}
|
|
1636
1764
|
function DropdownMenuRadioGroup({ ...props }) {
|
|
1637
|
-
return /* @__PURE__ */ (0,
|
|
1765
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1638
1766
|
import_menu.Menu.RadioGroup,
|
|
1639
1767
|
{
|
|
1640
1768
|
"data-slot": "dropdown-menu-radio-group",
|
|
@@ -1648,23 +1776,23 @@ function DropdownMenuRadioItem({
|
|
|
1648
1776
|
inset,
|
|
1649
1777
|
...props
|
|
1650
1778
|
}) {
|
|
1651
|
-
return /* @__PURE__ */ (0,
|
|
1779
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
1652
1780
|
import_menu.Menu.RadioItem,
|
|
1653
1781
|
{
|
|
1654
1782
|
"data-slot": "dropdown-menu-radio-item",
|
|
1655
1783
|
"data-inset": inset,
|
|
1656
|
-
className: (0,
|
|
1784
|
+
className: (0, import_cn6.cn)(
|
|
1657
1785
|
"relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
1658
1786
|
className
|
|
1659
1787
|
),
|
|
1660
1788
|
...props,
|
|
1661
1789
|
children: [
|
|
1662
|
-
/* @__PURE__ */ (0,
|
|
1790
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1663
1791
|
"span",
|
|
1664
1792
|
{
|
|
1665
1793
|
className: "pointer-events-none absolute right-2 flex items-center justify-center",
|
|
1666
1794
|
"data-slot": "dropdown-menu-radio-item-indicator",
|
|
1667
|
-
children: /* @__PURE__ */ (0,
|
|
1795
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_menu.Menu.RadioItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1668
1796
|
import_lucide_react3.CheckIcon,
|
|
1669
1797
|
{}
|
|
1670
1798
|
) })
|
|
@@ -1679,11 +1807,11 @@ function DropdownMenuSeparator({
|
|
|
1679
1807
|
className,
|
|
1680
1808
|
...props
|
|
1681
1809
|
}) {
|
|
1682
|
-
return /* @__PURE__ */ (0,
|
|
1810
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1683
1811
|
import_menu.Menu.Separator,
|
|
1684
1812
|
{
|
|
1685
1813
|
"data-slot": "dropdown-menu-separator",
|
|
1686
|
-
className: (0,
|
|
1814
|
+
className: (0, import_cn6.cn)("-mx-1 my-1 h-px bg-border", className),
|
|
1687
1815
|
...props
|
|
1688
1816
|
}
|
|
1689
1817
|
);
|
|
@@ -1692,11 +1820,11 @@ function DropdownMenuShortcut({
|
|
|
1692
1820
|
className,
|
|
1693
1821
|
...props
|
|
1694
1822
|
}) {
|
|
1695
|
-
return /* @__PURE__ */ (0,
|
|
1823
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1696
1824
|
"span",
|
|
1697
1825
|
{
|
|
1698
1826
|
"data-slot": "dropdown-menu-shortcut",
|
|
1699
|
-
className: (0,
|
|
1827
|
+
className: (0, import_cn6.cn)(
|
|
1700
1828
|
"ml-auto text-xs tracking-widest text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground",
|
|
1701
1829
|
className
|
|
1702
1830
|
),
|
|
@@ -1706,13 +1834,13 @@ function DropdownMenuShortcut({
|
|
|
1706
1834
|
}
|
|
1707
1835
|
|
|
1708
1836
|
// src/components/dropdown-menu/DropdownMenu.tsx
|
|
1709
|
-
var
|
|
1710
|
-
var DropdownMenuTrigger2 =
|
|
1711
|
-
({ asChild, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1837
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
1838
|
+
var DropdownMenuTrigger2 = React15.forwardRef(
|
|
1839
|
+
({ asChild, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(DropdownMenuTrigger, { ref, render: asChildRender(asChild, children), ...props, children: asChild ? void 0 : children })
|
|
1712
1840
|
);
|
|
1713
1841
|
DropdownMenuTrigger2.displayName = "DropdownMenuTrigger";
|
|
1714
|
-
var DropdownMenuSubTrigger2 =
|
|
1715
|
-
({ className, inset, asChild, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1842
|
+
var DropdownMenuSubTrigger2 = React15.forwardRef(
|
|
1843
|
+
({ className, inset, asChild, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1716
1844
|
DropdownMenuSubTrigger,
|
|
1717
1845
|
{
|
|
1718
1846
|
ref,
|
|
@@ -1729,8 +1857,8 @@ var DropdownMenuSubTrigger2 = React13.forwardRef(
|
|
|
1729
1857
|
)
|
|
1730
1858
|
);
|
|
1731
1859
|
DropdownMenuSubTrigger2.displayName = "DropdownMenuSubTrigger";
|
|
1732
|
-
var DropdownMenuSubContent2 =
|
|
1733
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1860
|
+
var DropdownMenuSubContent2 = React15.forwardRef(
|
|
1861
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1734
1862
|
DropdownMenuSubContent,
|
|
1735
1863
|
{
|
|
1736
1864
|
ref,
|
|
@@ -1743,8 +1871,8 @@ var DropdownMenuSubContent2 = React13.forwardRef(
|
|
|
1743
1871
|
)
|
|
1744
1872
|
);
|
|
1745
1873
|
DropdownMenuSubContent2.displayName = "DropdownMenuSubContent";
|
|
1746
|
-
var DropdownMenuContent2 =
|
|
1747
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1874
|
+
var DropdownMenuContent2 = React15.forwardRef(
|
|
1875
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1748
1876
|
DropdownMenuContent,
|
|
1749
1877
|
{
|
|
1750
1878
|
ref,
|
|
@@ -1757,8 +1885,8 @@ var DropdownMenuContent2 = React13.forwardRef(
|
|
|
1757
1885
|
)
|
|
1758
1886
|
);
|
|
1759
1887
|
DropdownMenuContent2.displayName = "DropdownMenuContent";
|
|
1760
|
-
var DropdownMenuItem2 =
|
|
1761
|
-
({ className, inset, asChild, children, textValue, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1888
|
+
var DropdownMenuItem2 = React15.forwardRef(
|
|
1889
|
+
({ className, inset, asChild, children, textValue, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1762
1890
|
DropdownMenuItem,
|
|
1763
1891
|
{
|
|
1764
1892
|
ref,
|
|
@@ -1776,8 +1904,8 @@ var DropdownMenuItem2 = React13.forwardRef(
|
|
|
1776
1904
|
)
|
|
1777
1905
|
);
|
|
1778
1906
|
DropdownMenuItem2.displayName = "DropdownMenuItem";
|
|
1779
|
-
var DropdownMenuCheckboxItem2 =
|
|
1780
|
-
({ className, children, asChild, textValue, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1907
|
+
var DropdownMenuCheckboxItem2 = React15.forwardRef(
|
|
1908
|
+
({ className, children, asChild, textValue, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1781
1909
|
DropdownMenuCheckboxItem,
|
|
1782
1910
|
{
|
|
1783
1911
|
ref,
|
|
@@ -1790,8 +1918,8 @@ var DropdownMenuCheckboxItem2 = React13.forwardRef(
|
|
|
1790
1918
|
)
|
|
1791
1919
|
);
|
|
1792
1920
|
DropdownMenuCheckboxItem2.displayName = "DropdownMenuCheckboxItem";
|
|
1793
|
-
var DropdownMenuRadioItem2 =
|
|
1794
|
-
({ className, children, asChild, textValue, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1921
|
+
var DropdownMenuRadioItem2 = React15.forwardRef(
|
|
1922
|
+
({ className, children, asChild, textValue, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1795
1923
|
DropdownMenuRadioItem,
|
|
1796
1924
|
{
|
|
1797
1925
|
ref,
|
|
@@ -1804,8 +1932,8 @@ var DropdownMenuRadioItem2 = React13.forwardRef(
|
|
|
1804
1932
|
)
|
|
1805
1933
|
);
|
|
1806
1934
|
DropdownMenuRadioItem2.displayName = "DropdownMenuRadioItem";
|
|
1807
|
-
var DropdownMenuLabel2 =
|
|
1808
|
-
({ className, inset, asChild, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1935
|
+
var DropdownMenuLabel2 = React15.forwardRef(
|
|
1936
|
+
({ className, inset, asChild, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1809
1937
|
DropdownMenuLabel,
|
|
1810
1938
|
{
|
|
1811
1939
|
ref,
|
|
@@ -1821,8 +1949,8 @@ var DropdownMenuLabel2 = React13.forwardRef(
|
|
|
1821
1949
|
)
|
|
1822
1950
|
);
|
|
1823
1951
|
DropdownMenuLabel2.displayName = "DropdownMenuLabel";
|
|
1824
|
-
var DropdownMenuSeparator2 =
|
|
1825
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1952
|
+
var DropdownMenuSeparator2 = React15.forwardRef(
|
|
1953
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1826
1954
|
DropdownMenuSeparator,
|
|
1827
1955
|
{
|
|
1828
1956
|
ref,
|
|
@@ -1833,7 +1961,7 @@ var DropdownMenuSeparator2 = React13.forwardRef(
|
|
|
1833
1961
|
);
|
|
1834
1962
|
DropdownMenuSeparator2.displayName = "DropdownMenuSeparator";
|
|
1835
1963
|
var DropdownMenuShortcut2 = ({ className, ...props }) => {
|
|
1836
|
-
return /* @__PURE__ */ (0,
|
|
1964
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1837
1965
|
DropdownMenuShortcut,
|
|
1838
1966
|
{
|
|
1839
1967
|
className: cn("text-berget-muted-foreground", className),
|
|
@@ -1844,17 +1972,17 @@ var DropdownMenuShortcut2 = ({ className, ...props }) => {
|
|
|
1844
1972
|
DropdownMenuShortcut2.displayName = "DropdownMenuShortcut";
|
|
1845
1973
|
|
|
1846
1974
|
// src/components/tooltip/Tooltip.tsx
|
|
1847
|
-
var
|
|
1975
|
+
var React16 = __toESM(require("react"), 1);
|
|
1848
1976
|
|
|
1849
1977
|
// src/primitives/tooltip.tsx
|
|
1850
1978
|
var import_tooltip = require("@base-ui/react/tooltip");
|
|
1851
|
-
var
|
|
1852
|
-
var
|
|
1979
|
+
var import_cn7 = require("cn");
|
|
1980
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1853
1981
|
function TooltipProvider({
|
|
1854
1982
|
delay = 0,
|
|
1855
1983
|
...props
|
|
1856
1984
|
}) {
|
|
1857
|
-
return /* @__PURE__ */ (0,
|
|
1985
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1858
1986
|
import_tooltip.Tooltip.Provider,
|
|
1859
1987
|
{
|
|
1860
1988
|
"data-slot": "tooltip-provider",
|
|
@@ -1864,10 +1992,10 @@ function TooltipProvider({
|
|
|
1864
1992
|
);
|
|
1865
1993
|
}
|
|
1866
1994
|
function Tooltip({ ...props }) {
|
|
1867
|
-
return /* @__PURE__ */ (0,
|
|
1995
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_tooltip.Tooltip.Root, { "data-slot": "tooltip", ...props });
|
|
1868
1996
|
}
|
|
1869
1997
|
function TooltipTrigger({ ...props }) {
|
|
1870
|
-
return /* @__PURE__ */ (0,
|
|
1998
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_tooltip.Tooltip.Trigger, { "data-slot": "tooltip-trigger", ...props });
|
|
1871
1999
|
}
|
|
1872
2000
|
function TooltipContent({
|
|
1873
2001
|
className,
|
|
@@ -1878,7 +2006,7 @@ function TooltipContent({
|
|
|
1878
2006
|
children,
|
|
1879
2007
|
...props
|
|
1880
2008
|
}) {
|
|
1881
|
-
return /* @__PURE__ */ (0,
|
|
2009
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_tooltip.Tooltip.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1882
2010
|
import_tooltip.Tooltip.Positioner,
|
|
1883
2011
|
{
|
|
1884
2012
|
align,
|
|
@@ -1886,18 +2014,18 @@ function TooltipContent({
|
|
|
1886
2014
|
side,
|
|
1887
2015
|
sideOffset,
|
|
1888
2016
|
className: "isolate z-50",
|
|
1889
|
-
children: /* @__PURE__ */ (0,
|
|
2017
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
1890
2018
|
import_tooltip.Tooltip.Popup,
|
|
1891
2019
|
{
|
|
1892
2020
|
"data-slot": "tooltip-content",
|
|
1893
|
-
className: (0,
|
|
2021
|
+
className: (0, import_cn7.cn)(
|
|
1894
2022
|
"z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
|
|
1895
2023
|
className
|
|
1896
2024
|
),
|
|
1897
2025
|
...props,
|
|
1898
2026
|
children: [
|
|
1899
2027
|
children,
|
|
1900
|
-
/* @__PURE__ */ (0,
|
|
2028
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_tooltip.Tooltip.Arrow, { className: "z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5" })
|
|
1901
2029
|
]
|
|
1902
2030
|
}
|
|
1903
2031
|
)
|
|
@@ -1906,13 +2034,13 @@ function TooltipContent({
|
|
|
1906
2034
|
}
|
|
1907
2035
|
|
|
1908
2036
|
// src/components/tooltip/Tooltip.tsx
|
|
1909
|
-
var
|
|
1910
|
-
var TooltipTrigger2 =
|
|
1911
|
-
({ asChild, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2037
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
2038
|
+
var TooltipTrigger2 = React16.forwardRef(
|
|
2039
|
+
({ asChild, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TooltipTrigger, { ref, render: asChildRender(asChild, children), ...props, children: asChild ? void 0 : children })
|
|
1912
2040
|
);
|
|
1913
2041
|
TooltipTrigger2.displayName = "TooltipTrigger";
|
|
1914
|
-
var TooltipContent2 =
|
|
1915
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
2042
|
+
var TooltipContent2 = React16.forwardRef(
|
|
2043
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1916
2044
|
TooltipContent,
|
|
1917
2045
|
{
|
|
1918
2046
|
ref,
|
|
@@ -1931,18 +2059,18 @@ var import_lucide_react5 = require("lucide-react");
|
|
|
1931
2059
|
// src/primitives/navigation-menu.tsx
|
|
1932
2060
|
var import_navigation_menu = require("@base-ui/react/navigation-menu");
|
|
1933
2061
|
var import_class_variance_authority7 = require("class-variance-authority");
|
|
1934
|
-
var
|
|
2062
|
+
var import_cn8 = require("cn");
|
|
1935
2063
|
var import_lucide_react4 = require("lucide-react");
|
|
1936
|
-
var
|
|
2064
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1937
2065
|
function NavigationMenuList({
|
|
1938
2066
|
className,
|
|
1939
2067
|
...props
|
|
1940
2068
|
}) {
|
|
1941
|
-
return /* @__PURE__ */ (0,
|
|
2069
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1942
2070
|
import_navigation_menu.NavigationMenu.List,
|
|
1943
2071
|
{
|
|
1944
2072
|
"data-slot": "navigation-menu-list",
|
|
1945
|
-
className: (0,
|
|
2073
|
+
className: (0, import_cn8.cn)(
|
|
1946
2074
|
"group flex flex-1 list-none items-center justify-center gap-0",
|
|
1947
2075
|
className
|
|
1948
2076
|
),
|
|
@@ -1954,11 +2082,11 @@ function NavigationMenuItem({
|
|
|
1954
2082
|
className,
|
|
1955
2083
|
...props
|
|
1956
2084
|
}) {
|
|
1957
|
-
return /* @__PURE__ */ (0,
|
|
2085
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1958
2086
|
import_navigation_menu.NavigationMenu.Item,
|
|
1959
2087
|
{
|
|
1960
2088
|
"data-slot": "navigation-menu-item",
|
|
1961
|
-
className: (0,
|
|
2089
|
+
className: (0, import_cn8.cn)("relative", className),
|
|
1962
2090
|
...props
|
|
1963
2091
|
}
|
|
1964
2092
|
);
|
|
@@ -1970,11 +2098,11 @@ function NavigationMenuContent({
|
|
|
1970
2098
|
className,
|
|
1971
2099
|
...props
|
|
1972
2100
|
}) {
|
|
1973
|
-
return /* @__PURE__ */ (0,
|
|
2101
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1974
2102
|
import_navigation_menu.NavigationMenu.Content,
|
|
1975
2103
|
{
|
|
1976
2104
|
"data-slot": "navigation-menu-content",
|
|
1977
|
-
className: (0,
|
|
2105
|
+
className: (0, import_cn8.cn)(
|
|
1978
2106
|
"data-ending-style:data-activation-direction=left:translate-x-[50%] data-ending-style:data-activation-direction=right:translate-x-[-50%] data-starting-style:data-activation-direction=left:translate-x-[-50%] data-starting-style:data-activation-direction=right:translate-x-[50%] h-full w-auto p-1 transition-[opacity,transform,translate] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:rounded-lg group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:ring-foreground/10 group-data-[viewport=false]/navigation-menu:duration-300 data-ending-style:opacity-0 data-starting-style:opacity-0 data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95",
|
|
1979
2107
|
className
|
|
1980
2108
|
),
|
|
@@ -1986,29 +2114,29 @@ function NavigationMenuIndicator({
|
|
|
1986
2114
|
className,
|
|
1987
2115
|
...props
|
|
1988
2116
|
}) {
|
|
1989
|
-
return /* @__PURE__ */ (0,
|
|
2117
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1990
2118
|
import_navigation_menu.NavigationMenu.Icon,
|
|
1991
2119
|
{
|
|
1992
2120
|
"data-slot": "navigation-menu-indicator",
|
|
1993
|
-
className: (0,
|
|
2121
|
+
className: (0, import_cn8.cn)(
|
|
1994
2122
|
"top-full z-1 flex h-1.5 items-end justify-center overflow-hidden data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:animate-in data-[state=visible]:fade-in",
|
|
1995
2123
|
className
|
|
1996
2124
|
),
|
|
1997
2125
|
...props,
|
|
1998
|
-
children: /* @__PURE__ */ (0,
|
|
2126
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
1999
2127
|
}
|
|
2000
2128
|
);
|
|
2001
2129
|
}
|
|
2002
2130
|
|
|
2003
2131
|
// src/components/navigation-menu/NavigationMenu.tsx
|
|
2004
|
-
var
|
|
2132
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
2005
2133
|
function NavigationMenu({
|
|
2006
2134
|
align = "start",
|
|
2007
2135
|
className,
|
|
2008
2136
|
children,
|
|
2009
2137
|
...props
|
|
2010
2138
|
}) {
|
|
2011
|
-
return /* @__PURE__ */ (0,
|
|
2139
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
2012
2140
|
import_navigation_menu2.NavigationMenu.Root,
|
|
2013
2141
|
{
|
|
2014
2142
|
"data-slot": "navigation-menu",
|
|
@@ -2019,7 +2147,7 @@ function NavigationMenu({
|
|
|
2019
2147
|
...props,
|
|
2020
2148
|
children: [
|
|
2021
2149
|
children,
|
|
2022
|
-
/* @__PURE__ */ (0,
|
|
2150
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(NavigationMenuPositioner, { align })
|
|
2023
2151
|
]
|
|
2024
2152
|
}
|
|
2025
2153
|
);
|
|
@@ -2032,7 +2160,7 @@ function NavigationMenuTrigger({
|
|
|
2032
2160
|
children,
|
|
2033
2161
|
...props
|
|
2034
2162
|
}) {
|
|
2035
|
-
return /* @__PURE__ */ (0,
|
|
2163
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
2036
2164
|
import_navigation_menu2.NavigationMenu.Trigger,
|
|
2037
2165
|
{
|
|
2038
2166
|
"data-slot": "navigation-menu-trigger",
|
|
@@ -2041,7 +2169,7 @@ function NavigationMenuTrigger({
|
|
|
2041
2169
|
children: [
|
|
2042
2170
|
children,
|
|
2043
2171
|
" ",
|
|
2044
|
-
/* @__PURE__ */ (0,
|
|
2172
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
2045
2173
|
import_lucide_react5.ChevronDown,
|
|
2046
2174
|
{
|
|
2047
2175
|
className: "relative top-px ml-1 size-3 transition duration-300 group-data-popup-open/navigation-menu-trigger:rotate-180 group-data-open/navigation-menu-trigger:rotate-180",
|
|
@@ -2053,7 +2181,7 @@ function NavigationMenuTrigger({
|
|
|
2053
2181
|
);
|
|
2054
2182
|
}
|
|
2055
2183
|
function NavigationMenuLink({ className, ...props }) {
|
|
2056
|
-
return /* @__PURE__ */ (0,
|
|
2184
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
2057
2185
|
import_navigation_menu2.NavigationMenu.Link,
|
|
2058
2186
|
{
|
|
2059
2187
|
"data-slot": "navigation-menu-link",
|
|
@@ -2073,7 +2201,7 @@ function NavigationMenuPositioner({
|
|
|
2073
2201
|
alignOffset = 0,
|
|
2074
2202
|
...props
|
|
2075
2203
|
}) {
|
|
2076
|
-
return /* @__PURE__ */ (0,
|
|
2204
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_navigation_menu2.NavigationMenu.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
2077
2205
|
import_navigation_menu2.NavigationMenu.Positioner,
|
|
2078
2206
|
{
|
|
2079
2207
|
side,
|
|
@@ -2085,24 +2213,24 @@ function NavigationMenuPositioner({
|
|
|
2085
2213
|
className
|
|
2086
2214
|
),
|
|
2087
2215
|
...props,
|
|
2088
|
-
children: /* @__PURE__ */ (0,
|
|
2216
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_navigation_menu2.NavigationMenu.Popup, { className: "data-[ending-style]:easing-[ease] xs:w-(--popup-width) relative h-(--popup-height) w-(--popup-width) origin-(--transform-origin) rounded-berget-xs bg-berget-popover text-berget-popover-foreground shadow-berget-lg ring-1 ring-berget-border transition-[opacity,transform,width,height,scale,translate] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] outline-none data-ending-style:scale-90 data-ending-style:opacity-0 data-ending-style:duration-150 data-starting-style:scale-90 data-starting-style:opacity-0", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_navigation_menu2.NavigationMenu.Viewport, { className: "relative size-full overflow-hidden" }) })
|
|
2089
2217
|
}
|
|
2090
2218
|
) });
|
|
2091
2219
|
}
|
|
2092
2220
|
|
|
2093
2221
|
// src/primitives/sidebar.tsx
|
|
2094
|
-
var
|
|
2222
|
+
var React18 = __toESM(require("react"), 1);
|
|
2095
2223
|
var import_merge_props = require("@base-ui/react/merge-props");
|
|
2096
2224
|
var import_use_render = require("@base-ui/react/use-render");
|
|
2097
2225
|
var import_class_variance_authority9 = require("class-variance-authority");
|
|
2098
|
-
var
|
|
2226
|
+
var import_cn12 = require("cn");
|
|
2099
2227
|
|
|
2100
2228
|
// src/hooks/use-mobile.tsx
|
|
2101
|
-
var
|
|
2229
|
+
var React17 = __toESM(require("react"), 1);
|
|
2102
2230
|
var MOBILE_BREAKPOINT = 768;
|
|
2103
2231
|
function useIsMobile() {
|
|
2104
|
-
const [isMobile, setIsMobile] =
|
|
2105
|
-
|
|
2232
|
+
const [isMobile, setIsMobile] = React17.useState(void 0);
|
|
2233
|
+
React17.useEffect(() => {
|
|
2106
2234
|
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
2107
2235
|
const onChange = () => {
|
|
2108
2236
|
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
@@ -2116,15 +2244,15 @@ function useIsMobile() {
|
|
|
2116
2244
|
|
|
2117
2245
|
// src/primitives/input.tsx
|
|
2118
2246
|
var import_input = require("@base-ui/react/input");
|
|
2119
|
-
var
|
|
2120
|
-
var
|
|
2247
|
+
var import_cn9 = require("cn");
|
|
2248
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
2121
2249
|
function Input({ className, type, ...props }) {
|
|
2122
|
-
return /* @__PURE__ */ (0,
|
|
2250
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2123
2251
|
import_input.Input,
|
|
2124
2252
|
{
|
|
2125
2253
|
type,
|
|
2126
2254
|
"data-slot": "input",
|
|
2127
|
-
className: (0,
|
|
2255
|
+
className: (0, import_cn9.cn)(
|
|
2128
2256
|
"h-8 w-full min-w-0 rounded-lg border border-input bg-input/30 px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",
|
|
2129
2257
|
className
|
|
2130
2258
|
),
|
|
@@ -2135,19 +2263,19 @@ function Input({ className, type, ...props }) {
|
|
|
2135
2263
|
|
|
2136
2264
|
// src/primitives/separator.tsx
|
|
2137
2265
|
var import_separator = require("@base-ui/react/separator");
|
|
2138
|
-
var
|
|
2139
|
-
var
|
|
2266
|
+
var import_cn10 = require("cn");
|
|
2267
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
2140
2268
|
function Separator({
|
|
2141
2269
|
className,
|
|
2142
2270
|
orientation = "horizontal",
|
|
2143
2271
|
...props
|
|
2144
2272
|
}) {
|
|
2145
|
-
return /* @__PURE__ */ (0,
|
|
2273
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2146
2274
|
import_separator.Separator,
|
|
2147
2275
|
{
|
|
2148
2276
|
"data-slot": "separator",
|
|
2149
2277
|
orientation,
|
|
2150
|
-
className: (0,
|
|
2278
|
+
className: (0, import_cn10.cn)(
|
|
2151
2279
|
"shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch",
|
|
2152
2280
|
className
|
|
2153
2281
|
),
|
|
@@ -2158,21 +2286,21 @@ function Separator({
|
|
|
2158
2286
|
|
|
2159
2287
|
// src/primitives/sheet.tsx
|
|
2160
2288
|
var import_dialog2 = require("@base-ui/react/dialog");
|
|
2161
|
-
var
|
|
2289
|
+
var import_cn11 = require("cn");
|
|
2162
2290
|
var import_lucide_react6 = require("lucide-react");
|
|
2163
|
-
var
|
|
2291
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
2164
2292
|
function Sheet({ ...props }) {
|
|
2165
|
-
return /* @__PURE__ */ (0,
|
|
2293
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_dialog2.Dialog.Root, { "data-slot": "sheet", ...props });
|
|
2166
2294
|
}
|
|
2167
2295
|
function SheetPortal({ ...props }) {
|
|
2168
|
-
return /* @__PURE__ */ (0,
|
|
2296
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_dialog2.Dialog.Portal, { "data-slot": "sheet-portal", ...props });
|
|
2169
2297
|
}
|
|
2170
2298
|
function SheetOverlay({ className, ...props }) {
|
|
2171
|
-
return /* @__PURE__ */ (0,
|
|
2299
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2172
2300
|
import_dialog2.Dialog.Backdrop,
|
|
2173
2301
|
{
|
|
2174
2302
|
"data-slot": "sheet-overlay",
|
|
2175
|
-
className: (0,
|
|
2303
|
+
className: (0, import_cn11.cn)(
|
|
2176
2304
|
"fixed inset-0 z-50 bg-black/10 transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs",
|
|
2177
2305
|
className
|
|
2178
2306
|
),
|
|
@@ -2187,25 +2315,25 @@ function SheetContent({
|
|
|
2187
2315
|
showCloseButton = true,
|
|
2188
2316
|
...props
|
|
2189
2317
|
}) {
|
|
2190
|
-
return /* @__PURE__ */ (0,
|
|
2191
|
-
/* @__PURE__ */ (0,
|
|
2192
|
-
/* @__PURE__ */ (0,
|
|
2318
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(SheetPortal, { children: [
|
|
2319
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(SheetOverlay, {}),
|
|
2320
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
2193
2321
|
import_dialog2.Dialog.Popup,
|
|
2194
2322
|
{
|
|
2195
2323
|
"data-slot": "sheet-content",
|
|
2196
2324
|
"data-side": side,
|
|
2197
|
-
className: (0,
|
|
2325
|
+
className: (0, import_cn11.cn)(
|
|
2198
2326
|
"fixed z-50 flex flex-col gap-4 bg-popover bg-clip-padding text-sm text-popover-foreground shadow-lg transition duration-200 ease-in-out data-ending-style:opacity-0 data-starting-style:opacity-0 data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=bottom]:data-ending-style:translate-y-[2.5rem] data-[side=bottom]:data-starting-style:translate-y-[2.5rem] data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=left]:data-ending-style:translate-x-[-2.5rem] data-[side=left]:data-starting-style:translate-x-[-2.5rem] data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=right]:data-ending-style:translate-x-[2.5rem] data-[side=right]:data-starting-style:translate-x-[2.5rem] data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=top]:data-ending-style:translate-y-[-2.5rem] data-[side=top]:data-starting-style:translate-y-[-2.5rem] data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",
|
|
2199
2327
|
className
|
|
2200
2328
|
),
|
|
2201
2329
|
...props,
|
|
2202
2330
|
children: [
|
|
2203
2331
|
children,
|
|
2204
|
-
showCloseButton && /* @__PURE__ */ (0,
|
|
2332
|
+
showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
2205
2333
|
import_dialog2.Dialog.Close,
|
|
2206
2334
|
{
|
|
2207
2335
|
"data-slot": "sheet-close",
|
|
2208
|
-
render: /* @__PURE__ */ (0,
|
|
2336
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2209
2337
|
Button,
|
|
2210
2338
|
{
|
|
2211
2339
|
variant: "ghost",
|
|
@@ -2214,11 +2342,11 @@ function SheetContent({
|
|
|
2214
2342
|
}
|
|
2215
2343
|
),
|
|
2216
2344
|
children: [
|
|
2217
|
-
/* @__PURE__ */ (0,
|
|
2345
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2218
2346
|
import_lucide_react6.XIcon,
|
|
2219
2347
|
{}
|
|
2220
2348
|
),
|
|
2221
|
-
/* @__PURE__ */ (0,
|
|
2349
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "sr-only", children: "Close" })
|
|
2222
2350
|
]
|
|
2223
2351
|
}
|
|
2224
2352
|
)
|
|
@@ -2228,21 +2356,21 @@ function SheetContent({
|
|
|
2228
2356
|
] });
|
|
2229
2357
|
}
|
|
2230
2358
|
function SheetHeader({ className, ...props }) {
|
|
2231
|
-
return /* @__PURE__ */ (0,
|
|
2359
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2232
2360
|
"div",
|
|
2233
2361
|
{
|
|
2234
2362
|
"data-slot": "sheet-header",
|
|
2235
|
-
className: (0,
|
|
2363
|
+
className: (0, import_cn11.cn)("flex flex-col gap-0.5 p-4", className),
|
|
2236
2364
|
...props
|
|
2237
2365
|
}
|
|
2238
2366
|
);
|
|
2239
2367
|
}
|
|
2240
2368
|
function SheetTitle({ className, ...props }) {
|
|
2241
|
-
return /* @__PURE__ */ (0,
|
|
2369
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2242
2370
|
import_dialog2.Dialog.Title,
|
|
2243
2371
|
{
|
|
2244
2372
|
"data-slot": "sheet-title",
|
|
2245
|
-
className: (0,
|
|
2373
|
+
className: (0, import_cn11.cn)(
|
|
2246
2374
|
"text-base font-medium text-foreground",
|
|
2247
2375
|
className
|
|
2248
2376
|
),
|
|
@@ -2254,25 +2382,11 @@ function SheetDescription({
|
|
|
2254
2382
|
className,
|
|
2255
2383
|
...props
|
|
2256
2384
|
}) {
|
|
2257
|
-
return /* @__PURE__ */ (0,
|
|
2385
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2258
2386
|
import_dialog2.Dialog.Description,
|
|
2259
2387
|
{
|
|
2260
2388
|
"data-slot": "sheet-description",
|
|
2261
|
-
className: (0,
|
|
2262
|
-
...props
|
|
2263
|
-
}
|
|
2264
|
-
);
|
|
2265
|
-
}
|
|
2266
|
-
|
|
2267
|
-
// src/primitives/skeleton.tsx
|
|
2268
|
-
var import_cn10 = require("cn");
|
|
2269
|
-
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
2270
|
-
function Skeleton({ className, ...props }) {
|
|
2271
|
-
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
2272
|
-
"div",
|
|
2273
|
-
{
|
|
2274
|
-
"data-slot": "skeleton",
|
|
2275
|
-
className: (0, import_cn10.cn)("animate-pulse rounded-md bg-muted", className),
|
|
2389
|
+
className: (0, import_cn11.cn)("text-sm text-muted-foreground", className),
|
|
2276
2390
|
...props
|
|
2277
2391
|
}
|
|
2278
2392
|
);
|
|
@@ -2280,16 +2394,16 @@ function Skeleton({ className, ...props }) {
|
|
|
2280
2394
|
|
|
2281
2395
|
// src/primitives/sidebar.tsx
|
|
2282
2396
|
var import_lucide_react7 = require("lucide-react");
|
|
2283
|
-
var
|
|
2397
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
2284
2398
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
2285
2399
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
2286
2400
|
var SIDEBAR_WIDTH = "16rem";
|
|
2287
2401
|
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
2288
2402
|
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
2289
2403
|
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
2290
|
-
var SidebarContext =
|
|
2404
|
+
var SidebarContext = React18.createContext(null);
|
|
2291
2405
|
function useSidebar() {
|
|
2292
|
-
const context =
|
|
2406
|
+
const context = React18.useContext(SidebarContext);
|
|
2293
2407
|
if (!context) {
|
|
2294
2408
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
2295
2409
|
}
|
|
@@ -2305,10 +2419,10 @@ function SidebarProvider({
|
|
|
2305
2419
|
...props
|
|
2306
2420
|
}) {
|
|
2307
2421
|
const isMobile = useIsMobile();
|
|
2308
|
-
const [openMobile, setOpenMobile] =
|
|
2309
|
-
const [_open, _setOpen] =
|
|
2422
|
+
const [openMobile, setOpenMobile] = React18.useState(false);
|
|
2423
|
+
const [_open, _setOpen] = React18.useState(defaultOpen);
|
|
2310
2424
|
const open = openProp ?? _open;
|
|
2311
|
-
const setOpen =
|
|
2425
|
+
const setOpen = React18.useCallback(
|
|
2312
2426
|
(value) => {
|
|
2313
2427
|
const openState = typeof value === "function" ? value(open) : value;
|
|
2314
2428
|
if (setOpenProp) {
|
|
@@ -2320,10 +2434,10 @@ function SidebarProvider({
|
|
|
2320
2434
|
},
|
|
2321
2435
|
[setOpenProp, open]
|
|
2322
2436
|
);
|
|
2323
|
-
const toggleSidebar =
|
|
2437
|
+
const toggleSidebar = React18.useCallback(() => {
|
|
2324
2438
|
return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
|
|
2325
2439
|
}, [isMobile, setOpen, setOpenMobile]);
|
|
2326
|
-
|
|
2440
|
+
React18.useEffect(() => {
|
|
2327
2441
|
const handleKeyDown = (event) => {
|
|
2328
2442
|
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
2329
2443
|
event.preventDefault();
|
|
@@ -2334,7 +2448,7 @@ function SidebarProvider({
|
|
|
2334
2448
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
2335
2449
|
}, [toggleSidebar]);
|
|
2336
2450
|
const state = open ? "expanded" : "collapsed";
|
|
2337
|
-
const contextValue =
|
|
2451
|
+
const contextValue = React18.useMemo(
|
|
2338
2452
|
() => ({
|
|
2339
2453
|
state,
|
|
2340
2454
|
open,
|
|
@@ -2346,7 +2460,7 @@ function SidebarProvider({
|
|
|
2346
2460
|
}),
|
|
2347
2461
|
[state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
|
|
2348
2462
|
);
|
|
2349
|
-
return /* @__PURE__ */ (0,
|
|
2463
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2350
2464
|
"div",
|
|
2351
2465
|
{
|
|
2352
2466
|
"data-slot": "sidebar-wrapper",
|
|
@@ -2355,7 +2469,7 @@ function SidebarProvider({
|
|
|
2355
2469
|
"--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
|
|
2356
2470
|
...style
|
|
2357
2471
|
},
|
|
2358
|
-
className: (0,
|
|
2472
|
+
className: (0, import_cn12.cn)(
|
|
2359
2473
|
"group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",
|
|
2360
2474
|
className
|
|
2361
2475
|
),
|
|
@@ -2375,11 +2489,11 @@ function Sidebar({
|
|
|
2375
2489
|
}) {
|
|
2376
2490
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
2377
2491
|
if (collapsible === "none") {
|
|
2378
|
-
return /* @__PURE__ */ (0,
|
|
2492
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2379
2493
|
"div",
|
|
2380
2494
|
{
|
|
2381
2495
|
"data-slot": "sidebar",
|
|
2382
|
-
className: (0,
|
|
2496
|
+
className: (0, import_cn12.cn)(
|
|
2383
2497
|
"flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",
|
|
2384
2498
|
className
|
|
2385
2499
|
),
|
|
@@ -2389,7 +2503,7 @@ function Sidebar({
|
|
|
2389
2503
|
);
|
|
2390
2504
|
}
|
|
2391
2505
|
if (isMobile) {
|
|
2392
|
-
return /* @__PURE__ */ (0,
|
|
2506
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
2393
2507
|
SheetContent,
|
|
2394
2508
|
{
|
|
2395
2509
|
dir,
|
|
@@ -2402,16 +2516,16 @@ function Sidebar({
|
|
|
2402
2516
|
},
|
|
2403
2517
|
side,
|
|
2404
2518
|
children: [
|
|
2405
|
-
/* @__PURE__ */ (0,
|
|
2406
|
-
/* @__PURE__ */ (0,
|
|
2407
|
-
/* @__PURE__ */ (0,
|
|
2519
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(SheetHeader, { className: "sr-only", children: [
|
|
2520
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(SheetTitle, { children: "Sidebar" }),
|
|
2521
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(SheetDescription, { children: "Displays the mobile sidebar." })
|
|
2408
2522
|
] }),
|
|
2409
|
-
/* @__PURE__ */ (0,
|
|
2523
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "flex h-full w-full flex-col", children })
|
|
2410
2524
|
]
|
|
2411
2525
|
}
|
|
2412
2526
|
) });
|
|
2413
2527
|
}
|
|
2414
|
-
return /* @__PURE__ */ (0,
|
|
2528
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
2415
2529
|
"div",
|
|
2416
2530
|
{
|
|
2417
2531
|
className: "group peer hidden text-sidebar-foreground md:block",
|
|
@@ -2421,11 +2535,11 @@ function Sidebar({
|
|
|
2421
2535
|
"data-side": side,
|
|
2422
2536
|
"data-slot": "sidebar",
|
|
2423
2537
|
children: [
|
|
2424
|
-
/* @__PURE__ */ (0,
|
|
2538
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2425
2539
|
"div",
|
|
2426
2540
|
{
|
|
2427
2541
|
"data-slot": "sidebar-gap",
|
|
2428
|
-
className: (0,
|
|
2542
|
+
className: (0, import_cn12.cn)(
|
|
2429
2543
|
"relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear",
|
|
2430
2544
|
"group-data-[collapsible=offcanvas]:w-0",
|
|
2431
2545
|
"group-data-[side=right]:rotate-180",
|
|
@@ -2433,19 +2547,19 @@ function Sidebar({
|
|
|
2433
2547
|
)
|
|
2434
2548
|
}
|
|
2435
2549
|
),
|
|
2436
|
-
/* @__PURE__ */ (0,
|
|
2550
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2437
2551
|
"div",
|
|
2438
2552
|
{
|
|
2439
2553
|
"data-slot": "sidebar-container",
|
|
2440
2554
|
"data-side": side,
|
|
2441
|
-
className: (0,
|
|
2555
|
+
className: (0, import_cn12.cn)(
|
|
2442
2556
|
"fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex",
|
|
2443
2557
|
// Adjust the padding for floating and inset variants.
|
|
2444
2558
|
variant === "floating" || variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",
|
|
2445
2559
|
className
|
|
2446
2560
|
),
|
|
2447
2561
|
...props,
|
|
2448
|
-
children: /* @__PURE__ */ (0,
|
|
2562
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2449
2563
|
"div",
|
|
2450
2564
|
{
|
|
2451
2565
|
"data-sidebar": "sidebar",
|
|
@@ -2466,29 +2580,29 @@ function SidebarTrigger({
|
|
|
2466
2580
|
...props
|
|
2467
2581
|
}) {
|
|
2468
2582
|
const { toggleSidebar } = useSidebar();
|
|
2469
|
-
return /* @__PURE__ */ (0,
|
|
2583
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
2470
2584
|
Button,
|
|
2471
2585
|
{
|
|
2472
2586
|
"data-sidebar": "trigger",
|
|
2473
2587
|
"data-slot": "sidebar-trigger",
|
|
2474
2588
|
variant: "ghost",
|
|
2475
2589
|
size: "icon-sm",
|
|
2476
|
-
className: (0,
|
|
2590
|
+
className: (0, import_cn12.cn)(className),
|
|
2477
2591
|
onClick: (event) => {
|
|
2478
2592
|
onClick?.(event);
|
|
2479
2593
|
toggleSidebar();
|
|
2480
2594
|
},
|
|
2481
2595
|
...props,
|
|
2482
2596
|
children: [
|
|
2483
|
-
/* @__PURE__ */ (0,
|
|
2484
|
-
/* @__PURE__ */ (0,
|
|
2597
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_lucide_react7.PanelLeftIcon, {}),
|
|
2598
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
2485
2599
|
]
|
|
2486
2600
|
}
|
|
2487
2601
|
);
|
|
2488
2602
|
}
|
|
2489
2603
|
function SidebarRail({ className, ...props }) {
|
|
2490
2604
|
const { toggleSidebar } = useSidebar();
|
|
2491
|
-
return /* @__PURE__ */ (0,
|
|
2605
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2492
2606
|
"button",
|
|
2493
2607
|
{
|
|
2494
2608
|
"data-sidebar": "rail",
|
|
@@ -2497,7 +2611,7 @@ function SidebarRail({ className, ...props }) {
|
|
|
2497
2611
|
tabIndex: -1,
|
|
2498
2612
|
onClick: toggleSidebar,
|
|
2499
2613
|
title: "Toggle Sidebar",
|
|
2500
|
-
className: (0,
|
|
2614
|
+
className: (0, import_cn12.cn)(
|
|
2501
2615
|
"absolute inset-y-0 z-20 hidden w-4 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:start-1/2 after:w-[2px] hover:after:bg-sidebar-border sm:flex ltr:-translate-x-1/2 rtl:-translate-x-1/2",
|
|
2502
2616
|
"in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",
|
|
2503
2617
|
"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
|
|
@@ -2511,11 +2625,11 @@ function SidebarRail({ className, ...props }) {
|
|
|
2511
2625
|
);
|
|
2512
2626
|
}
|
|
2513
2627
|
function SidebarInset({ className, ...props }) {
|
|
2514
|
-
return /* @__PURE__ */ (0,
|
|
2628
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2515
2629
|
"main",
|
|
2516
2630
|
{
|
|
2517
2631
|
"data-slot": "sidebar-inset",
|
|
2518
|
-
className: (0,
|
|
2632
|
+
className: (0, import_cn12.cn)(
|
|
2519
2633
|
"relative flex w-full flex-1 flex-col bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",
|
|
2520
2634
|
className
|
|
2521
2635
|
),
|
|
@@ -2527,34 +2641,34 @@ function SidebarInput({
|
|
|
2527
2641
|
className,
|
|
2528
2642
|
...props
|
|
2529
2643
|
}) {
|
|
2530
|
-
return /* @__PURE__ */ (0,
|
|
2644
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2531
2645
|
Input,
|
|
2532
2646
|
{
|
|
2533
2647
|
"data-slot": "sidebar-input",
|
|
2534
2648
|
"data-sidebar": "input",
|
|
2535
|
-
className: (0,
|
|
2649
|
+
className: (0, import_cn12.cn)("h-8 w-full bg-background shadow-none", className),
|
|
2536
2650
|
...props
|
|
2537
2651
|
}
|
|
2538
2652
|
);
|
|
2539
2653
|
}
|
|
2540
2654
|
function SidebarHeader({ className, ...props }) {
|
|
2541
|
-
return /* @__PURE__ */ (0,
|
|
2655
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2542
2656
|
"div",
|
|
2543
2657
|
{
|
|
2544
2658
|
"data-slot": "sidebar-header",
|
|
2545
2659
|
"data-sidebar": "header",
|
|
2546
|
-
className: (0,
|
|
2660
|
+
className: (0, import_cn12.cn)("flex flex-col gap-2 p-2", className),
|
|
2547
2661
|
...props
|
|
2548
2662
|
}
|
|
2549
2663
|
);
|
|
2550
2664
|
}
|
|
2551
2665
|
function SidebarFooter({ className, ...props }) {
|
|
2552
|
-
return /* @__PURE__ */ (0,
|
|
2666
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2553
2667
|
"div",
|
|
2554
2668
|
{
|
|
2555
2669
|
"data-slot": "sidebar-footer",
|
|
2556
2670
|
"data-sidebar": "footer",
|
|
2557
|
-
className: (0,
|
|
2671
|
+
className: (0, import_cn12.cn)("flex flex-col gap-2 p-2", className),
|
|
2558
2672
|
...props
|
|
2559
2673
|
}
|
|
2560
2674
|
);
|
|
@@ -2563,23 +2677,23 @@ function SidebarSeparator({
|
|
|
2563
2677
|
className,
|
|
2564
2678
|
...props
|
|
2565
2679
|
}) {
|
|
2566
|
-
return /* @__PURE__ */ (0,
|
|
2680
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2567
2681
|
Separator,
|
|
2568
2682
|
{
|
|
2569
2683
|
"data-slot": "sidebar-separator",
|
|
2570
2684
|
"data-sidebar": "separator",
|
|
2571
|
-
className: (0,
|
|
2685
|
+
className: (0, import_cn12.cn)("mx-2 w-auto bg-sidebar-border", className),
|
|
2572
2686
|
...props
|
|
2573
2687
|
}
|
|
2574
2688
|
);
|
|
2575
2689
|
}
|
|
2576
2690
|
function SidebarContent({ className, ...props }) {
|
|
2577
|
-
return /* @__PURE__ */ (0,
|
|
2691
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2578
2692
|
"div",
|
|
2579
2693
|
{
|
|
2580
2694
|
"data-slot": "sidebar-content",
|
|
2581
2695
|
"data-sidebar": "content",
|
|
2582
|
-
className: (0,
|
|
2696
|
+
className: (0, import_cn12.cn)(
|
|
2583
2697
|
"no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden",
|
|
2584
2698
|
className
|
|
2585
2699
|
),
|
|
@@ -2588,12 +2702,12 @@ function SidebarContent({ className, ...props }) {
|
|
|
2588
2702
|
);
|
|
2589
2703
|
}
|
|
2590
2704
|
function SidebarGroup({ className, ...props }) {
|
|
2591
|
-
return /* @__PURE__ */ (0,
|
|
2705
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2592
2706
|
"div",
|
|
2593
2707
|
{
|
|
2594
2708
|
"data-slot": "sidebar-group",
|
|
2595
2709
|
"data-sidebar": "group",
|
|
2596
|
-
className: (0,
|
|
2710
|
+
className: (0, import_cn12.cn)("relative flex w-full min-w-0 flex-col p-2", className),
|
|
2597
2711
|
...props
|
|
2598
2712
|
}
|
|
2599
2713
|
);
|
|
@@ -2607,7 +2721,7 @@ function SidebarGroupLabel({
|
|
|
2607
2721
|
defaultTagName: "div",
|
|
2608
2722
|
props: (0, import_merge_props.mergeProps)(
|
|
2609
2723
|
{
|
|
2610
|
-
className: (0,
|
|
2724
|
+
className: (0, import_cn12.cn)(
|
|
2611
2725
|
"flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
2612
2726
|
className
|
|
2613
2727
|
)
|
|
@@ -2630,7 +2744,7 @@ function SidebarGroupAction({
|
|
|
2630
2744
|
defaultTagName: "button",
|
|
2631
2745
|
props: (0, import_merge_props.mergeProps)(
|
|
2632
2746
|
{
|
|
2633
|
-
className: (0,
|
|
2747
|
+
className: (0, import_cn12.cn)(
|
|
2634
2748
|
"absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform group-data-[collapsible=icon]:hidden after:absolute after:-inset-2 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 md:after:hidden [&>svg]:size-4 [&>svg]:shrink-0",
|
|
2635
2749
|
className
|
|
2636
2750
|
)
|
|
@@ -2648,34 +2762,34 @@ function SidebarGroupContent({
|
|
|
2648
2762
|
className,
|
|
2649
2763
|
...props
|
|
2650
2764
|
}) {
|
|
2651
|
-
return /* @__PURE__ */ (0,
|
|
2765
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2652
2766
|
"div",
|
|
2653
2767
|
{
|
|
2654
2768
|
"data-slot": "sidebar-group-content",
|
|
2655
2769
|
"data-sidebar": "group-content",
|
|
2656
|
-
className: (0,
|
|
2770
|
+
className: (0, import_cn12.cn)("w-full text-sm", className),
|
|
2657
2771
|
...props
|
|
2658
2772
|
}
|
|
2659
2773
|
);
|
|
2660
2774
|
}
|
|
2661
2775
|
function SidebarMenu({ className, ...props }) {
|
|
2662
|
-
return /* @__PURE__ */ (0,
|
|
2776
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2663
2777
|
"ul",
|
|
2664
2778
|
{
|
|
2665
2779
|
"data-slot": "sidebar-menu",
|
|
2666
2780
|
"data-sidebar": "menu",
|
|
2667
|
-
className: (0,
|
|
2781
|
+
className: (0, import_cn12.cn)("flex w-full min-w-0 flex-col gap-0", className),
|
|
2668
2782
|
...props
|
|
2669
2783
|
}
|
|
2670
2784
|
);
|
|
2671
2785
|
}
|
|
2672
2786
|
function SidebarMenuItem({ className, ...props }) {
|
|
2673
|
-
return /* @__PURE__ */ (0,
|
|
2787
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2674
2788
|
"li",
|
|
2675
2789
|
{
|
|
2676
2790
|
"data-slot": "sidebar-menu-item",
|
|
2677
2791
|
"data-sidebar": "menu-item",
|
|
2678
|
-
className: (0,
|
|
2792
|
+
className: (0, import_cn12.cn)("group/menu-item relative", className),
|
|
2679
2793
|
...props
|
|
2680
2794
|
}
|
|
2681
2795
|
);
|
|
@@ -2714,11 +2828,11 @@ function SidebarMenuButton({
|
|
|
2714
2828
|
defaultTagName: "button",
|
|
2715
2829
|
props: (0, import_merge_props.mergeProps)(
|
|
2716
2830
|
{
|
|
2717
|
-
className: (0,
|
|
2831
|
+
className: (0, import_cn12.cn)(sidebarMenuButtonVariants({ variant, size }), className)
|
|
2718
2832
|
},
|
|
2719
2833
|
props
|
|
2720
2834
|
),
|
|
2721
|
-
render: !tooltip ? render : /* @__PURE__ */ (0,
|
|
2835
|
+
render: !tooltip ? render : /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(TooltipTrigger, { render }),
|
|
2722
2836
|
state: {
|
|
2723
2837
|
slot: "sidebar-menu-button",
|
|
2724
2838
|
sidebar: "menu-button",
|
|
@@ -2734,9 +2848,9 @@ function SidebarMenuButton({
|
|
|
2734
2848
|
children: tooltip
|
|
2735
2849
|
};
|
|
2736
2850
|
}
|
|
2737
|
-
return /* @__PURE__ */ (0,
|
|
2851
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(Tooltip, { children: [
|
|
2738
2852
|
comp,
|
|
2739
|
-
/* @__PURE__ */ (0,
|
|
2853
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2740
2854
|
TooltipContent,
|
|
2741
2855
|
{
|
|
2742
2856
|
side: "right",
|
|
@@ -2757,7 +2871,7 @@ function SidebarMenuAction({
|
|
|
2757
2871
|
defaultTagName: "button",
|
|
2758
2872
|
props: (0, import_merge_props.mergeProps)(
|
|
2759
2873
|
{
|
|
2760
|
-
className: (0,
|
|
2874
|
+
className: (0, import_cn12.cn)(
|
|
2761
2875
|
"absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform group-data-[collapsible=icon]:hidden peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 after:absolute after:-inset-2 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 md:after:hidden [&>svg]:size-4 [&>svg]:shrink-0",
|
|
2762
2876
|
showOnHover && "group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 peer-data-active/menu-button:text-sidebar-accent-foreground aria-expanded:opacity-100 md:opacity-0",
|
|
2763
2877
|
className
|
|
@@ -2776,12 +2890,12 @@ function SidebarMenuBadge({
|
|
|
2776
2890
|
className,
|
|
2777
2891
|
...props
|
|
2778
2892
|
}) {
|
|
2779
|
-
return /* @__PURE__ */ (0,
|
|
2893
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2780
2894
|
"div",
|
|
2781
2895
|
{
|
|
2782
2896
|
"data-slot": "sidebar-menu-badge",
|
|
2783
2897
|
"data-sidebar": "menu-badge",
|
|
2784
|
-
className: (0,
|
|
2898
|
+
className: (0, import_cn12.cn)(
|
|
2785
2899
|
"pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium text-sidebar-foreground tabular-nums select-none group-data-[collapsible=icon]:hidden peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 peer-data-active/menu-button:text-sidebar-accent-foreground",
|
|
2786
2900
|
className
|
|
2787
2901
|
),
|
|
@@ -2794,25 +2908,25 @@ function SidebarMenuSkeleton({
|
|
|
2794
2908
|
showIcon = false,
|
|
2795
2909
|
...props
|
|
2796
2910
|
}) {
|
|
2797
|
-
const [width] =
|
|
2911
|
+
const [width] = React18.useState(() => {
|
|
2798
2912
|
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
2799
2913
|
});
|
|
2800
|
-
return /* @__PURE__ */ (0,
|
|
2914
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
2801
2915
|
"div",
|
|
2802
2916
|
{
|
|
2803
2917
|
"data-slot": "sidebar-menu-skeleton",
|
|
2804
2918
|
"data-sidebar": "menu-skeleton",
|
|
2805
|
-
className: (0,
|
|
2919
|
+
className: (0, import_cn12.cn)("flex h-8 items-center gap-2 rounded-md px-2", className),
|
|
2806
2920
|
...props,
|
|
2807
2921
|
children: [
|
|
2808
|
-
showIcon && /* @__PURE__ */ (0,
|
|
2922
|
+
showIcon && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2809
2923
|
Skeleton,
|
|
2810
2924
|
{
|
|
2811
2925
|
className: "size-4 rounded-md",
|
|
2812
2926
|
"data-sidebar": "menu-skeleton-icon"
|
|
2813
2927
|
}
|
|
2814
2928
|
),
|
|
2815
|
-
/* @__PURE__ */ (0,
|
|
2929
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2816
2930
|
Skeleton,
|
|
2817
2931
|
{
|
|
2818
2932
|
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
@@ -2827,12 +2941,12 @@ function SidebarMenuSkeleton({
|
|
|
2827
2941
|
);
|
|
2828
2942
|
}
|
|
2829
2943
|
function SidebarMenuSub({ className, ...props }) {
|
|
2830
|
-
return /* @__PURE__ */ (0,
|
|
2944
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2831
2945
|
"ul",
|
|
2832
2946
|
{
|
|
2833
2947
|
"data-slot": "sidebar-menu-sub",
|
|
2834
2948
|
"data-sidebar": "menu-sub",
|
|
2835
|
-
className: (0,
|
|
2949
|
+
className: (0, import_cn12.cn)(
|
|
2836
2950
|
"mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5 group-data-[collapsible=icon]:hidden",
|
|
2837
2951
|
className
|
|
2838
2952
|
),
|
|
@@ -2844,12 +2958,12 @@ function SidebarMenuSubItem({
|
|
|
2844
2958
|
className,
|
|
2845
2959
|
...props
|
|
2846
2960
|
}) {
|
|
2847
|
-
return /* @__PURE__ */ (0,
|
|
2961
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2848
2962
|
"li",
|
|
2849
2963
|
{
|
|
2850
2964
|
"data-slot": "sidebar-menu-sub-item",
|
|
2851
2965
|
"data-sidebar": "menu-sub-item",
|
|
2852
|
-
className: (0,
|
|
2966
|
+
className: (0, import_cn12.cn)("group/menu-sub-item relative", className),
|
|
2853
2967
|
...props
|
|
2854
2968
|
}
|
|
2855
2969
|
);
|
|
@@ -2865,7 +2979,7 @@ function SidebarMenuSubButton({
|
|
|
2865
2979
|
defaultTagName: "a",
|
|
2866
2980
|
props: (0, import_merge_props.mergeProps)(
|
|
2867
2981
|
{
|
|
2868
|
-
className: (0,
|
|
2982
|
+
className: (0, import_cn12.cn)(
|
|
2869
2983
|
"flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground ring-sidebar-ring outline-hidden group-data-[collapsible=icon]:hidden 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 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[size=md]:text-sm data-[size=sm]:text-xs data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground",
|
|
2870
2984
|
className
|
|
2871
2985
|
)
|
|
@@ -2883,7 +2997,7 @@ function SidebarMenuSubButton({
|
|
|
2883
2997
|
}
|
|
2884
2998
|
|
|
2885
2999
|
// src/components/sidebar/Sidebar.tsx
|
|
2886
|
-
var
|
|
3000
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
2887
3001
|
var iconModeButtonClasses = "group-data-[collapsible=icon]:w-10! group-data-[collapsible=icon]:h-10! group-data-[collapsible=icon]:px-3!";
|
|
2888
3002
|
var sizingMenuButtonClasses = "text-base px-3 py-2 h-auto";
|
|
2889
3003
|
var sizingSubButtonClasses = "data-[size=md]:text-base data-[size=sm]:text-base px-3 py-2 h-auto";
|
|
@@ -2891,7 +3005,7 @@ function SidebarGroupLabel2({
|
|
|
2891
3005
|
className,
|
|
2892
3006
|
...props
|
|
2893
3007
|
}) {
|
|
2894
|
-
return /* @__PURE__ */ (0,
|
|
3008
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2895
3009
|
SidebarGroupLabel,
|
|
2896
3010
|
{
|
|
2897
3011
|
className: cn("px-3 uppercase tracking-caption", className),
|
|
@@ -2904,7 +3018,7 @@ function SidebarProvider2({
|
|
|
2904
3018
|
style,
|
|
2905
3019
|
...props
|
|
2906
3020
|
}) {
|
|
2907
|
-
return /* @__PURE__ */ (0,
|
|
3021
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2908
3022
|
SidebarProvider,
|
|
2909
3023
|
{
|
|
2910
3024
|
className,
|
|
@@ -2917,10 +3031,10 @@ function SidebarProvider2({
|
|
|
2917
3031
|
);
|
|
2918
3032
|
}
|
|
2919
3033
|
function SidebarInset2({ className, ...props }) {
|
|
2920
|
-
return /* @__PURE__ */ (0,
|
|
3034
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(SidebarInset, { className: cn("min-w-0", className), ...props });
|
|
2921
3035
|
}
|
|
2922
3036
|
function SidebarGroup2({ className, ...props }) {
|
|
2923
|
-
return /* @__PURE__ */ (0,
|
|
3037
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2924
3038
|
SidebarGroup,
|
|
2925
3039
|
{
|
|
2926
3040
|
className: cn("group-data-[collapsible=icon]:px-2.5", className),
|
|
@@ -2932,7 +3046,7 @@ function SidebarFooter2({
|
|
|
2932
3046
|
className,
|
|
2933
3047
|
...props
|
|
2934
3048
|
}) {
|
|
2935
|
-
return /* @__PURE__ */ (0,
|
|
3049
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2936
3050
|
SidebarFooter,
|
|
2937
3051
|
{
|
|
2938
3052
|
className: cn(
|
|
@@ -2947,7 +3061,7 @@ function SidebarHeader2({
|
|
|
2947
3061
|
className,
|
|
2948
3062
|
...props
|
|
2949
3063
|
}) {
|
|
2950
|
-
return /* @__PURE__ */ (0,
|
|
3064
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2951
3065
|
SidebarHeader,
|
|
2952
3066
|
{
|
|
2953
3067
|
className: cn(
|
|
@@ -2959,8 +3073,8 @@ function SidebarHeader2({
|
|
|
2959
3073
|
);
|
|
2960
3074
|
}
|
|
2961
3075
|
function SidebarLogo() {
|
|
2962
|
-
return /* @__PURE__ */ (0,
|
|
2963
|
-
/* @__PURE__ */ (0,
|
|
3076
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(SidebarHeader, { className: "px-0", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "relative flex h-15 items-center overflow-hidden px-5", children: [
|
|
3077
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2964
3078
|
BergetLogo,
|
|
2965
3079
|
{
|
|
2966
3080
|
variant: "logotype",
|
|
@@ -2968,11 +3082,11 @@ function SidebarLogo() {
|
|
|
2968
3082
|
className: "shrink-0 transition-[opacity,visibility] duration-150 group-data-[collapsible=icon]:pointer-events-none group-data-[collapsible=icon]:invisible group-data-[collapsible=icon]:opacity-0"
|
|
2969
3083
|
}
|
|
2970
3084
|
),
|
|
2971
|
-
/* @__PURE__ */ (0,
|
|
3085
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "pointer-events-none invisible absolute inset-y-0 left-0 flex w-15 items-center pl-5 opacity-0 transition-[padding-left,opacity,visibility] duration-200 ease-linear group-data-[collapsible=icon]:visible group-data-[collapsible=icon]:pl-3 group-data-[collapsible=icon]:opacity-100", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(BergetLogo, { variant: "symbol", size: 32 }) })
|
|
2972
3086
|
] }) });
|
|
2973
3087
|
}
|
|
2974
3088
|
function SidebarPageHeader({ className, ...props }) {
|
|
2975
|
-
return /* @__PURE__ */ (0,
|
|
3089
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2976
3090
|
"header",
|
|
2977
3091
|
{
|
|
2978
3092
|
className: cn(
|
|
@@ -2984,7 +3098,7 @@ function SidebarPageHeader({ className, ...props }) {
|
|
|
2984
3098
|
);
|
|
2985
3099
|
}
|
|
2986
3100
|
function SidebarMenuButton2({ className, ...props }) {
|
|
2987
|
-
return /* @__PURE__ */ (0,
|
|
3101
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2988
3102
|
SidebarMenuButton,
|
|
2989
3103
|
{
|
|
2990
3104
|
className: cn(sizingMenuButtonClasses, iconModeButtonClasses, className),
|
|
@@ -2993,7 +3107,7 @@ function SidebarMenuButton2({ className, ...props }) {
|
|
|
2993
3107
|
);
|
|
2994
3108
|
}
|
|
2995
3109
|
function SidebarMenuSubButton2({ className, ...props }) {
|
|
2996
|
-
return /* @__PURE__ */ (0,
|
|
3110
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2997
3111
|
SidebarMenuSubButton,
|
|
2998
3112
|
{
|
|
2999
3113
|
className: cn(sizingSubButtonClasses, "[&>svg]:text-inherit", className),
|
|
@@ -3003,22 +3117,22 @@ function SidebarMenuSubButton2({ className, ...props }) {
|
|
|
3003
3117
|
}
|
|
3004
3118
|
|
|
3005
3119
|
// src/components/table/Table.tsx
|
|
3006
|
-
var
|
|
3120
|
+
var React19 = __toESM(require("react"), 1);
|
|
3007
3121
|
|
|
3008
3122
|
// src/primitives/table.tsx
|
|
3009
|
-
var
|
|
3010
|
-
var
|
|
3123
|
+
var import_cn13 = require("cn");
|
|
3124
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
3011
3125
|
function Table({ className, ...props }) {
|
|
3012
|
-
return /* @__PURE__ */ (0,
|
|
3126
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3013
3127
|
"div",
|
|
3014
3128
|
{
|
|
3015
3129
|
"data-slot": "table-container",
|
|
3016
3130
|
className: "relative w-full overflow-x-auto",
|
|
3017
|
-
children: /* @__PURE__ */ (0,
|
|
3131
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3018
3132
|
"table",
|
|
3019
3133
|
{
|
|
3020
3134
|
"data-slot": "table",
|
|
3021
|
-
className: (0,
|
|
3135
|
+
className: (0, import_cn13.cn)("w-full caption-bottom text-sm", className),
|
|
3022
3136
|
...props
|
|
3023
3137
|
}
|
|
3024
3138
|
)
|
|
@@ -3026,31 +3140,31 @@ function Table({ className, ...props }) {
|
|
|
3026
3140
|
);
|
|
3027
3141
|
}
|
|
3028
3142
|
function TableHeader({ className, ...props }) {
|
|
3029
|
-
return /* @__PURE__ */ (0,
|
|
3143
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3030
3144
|
"thead",
|
|
3031
3145
|
{
|
|
3032
3146
|
"data-slot": "table-header",
|
|
3033
|
-
className: (0,
|
|
3147
|
+
className: (0, import_cn13.cn)("[&_tr]:border-b", className),
|
|
3034
3148
|
...props
|
|
3035
3149
|
}
|
|
3036
3150
|
);
|
|
3037
3151
|
}
|
|
3038
3152
|
function TableBody({ className, ...props }) {
|
|
3039
|
-
return /* @__PURE__ */ (0,
|
|
3153
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3040
3154
|
"tbody",
|
|
3041
3155
|
{
|
|
3042
3156
|
"data-slot": "table-body",
|
|
3043
|
-
className: (0,
|
|
3157
|
+
className: (0, import_cn13.cn)("[&_tr:last-child]:border-0", className),
|
|
3044
3158
|
...props
|
|
3045
3159
|
}
|
|
3046
3160
|
);
|
|
3047
3161
|
}
|
|
3048
3162
|
function TableFooter({ className, ...props }) {
|
|
3049
|
-
return /* @__PURE__ */ (0,
|
|
3163
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3050
3164
|
"tfoot",
|
|
3051
3165
|
{
|
|
3052
3166
|
"data-slot": "table-footer",
|
|
3053
|
-
className: (0,
|
|
3167
|
+
className: (0, import_cn13.cn)(
|
|
3054
3168
|
"border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",
|
|
3055
3169
|
className
|
|
3056
3170
|
),
|
|
@@ -3059,11 +3173,11 @@ function TableFooter({ className, ...props }) {
|
|
|
3059
3173
|
);
|
|
3060
3174
|
}
|
|
3061
3175
|
function TableRow({ className, ...props }) {
|
|
3062
|
-
return /* @__PURE__ */ (0,
|
|
3176
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3063
3177
|
"tr",
|
|
3064
3178
|
{
|
|
3065
3179
|
"data-slot": "table-row",
|
|
3066
|
-
className: (0,
|
|
3180
|
+
className: (0, import_cn13.cn)(
|
|
3067
3181
|
"border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",
|
|
3068
3182
|
className
|
|
3069
3183
|
),
|
|
@@ -3072,11 +3186,11 @@ function TableRow({ className, ...props }) {
|
|
|
3072
3186
|
);
|
|
3073
3187
|
}
|
|
3074
3188
|
function TableHead({ className, ...props }) {
|
|
3075
|
-
return /* @__PURE__ */ (0,
|
|
3189
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3076
3190
|
"th",
|
|
3077
3191
|
{
|
|
3078
3192
|
"data-slot": "table-head",
|
|
3079
|
-
className: (0,
|
|
3193
|
+
className: (0, import_cn13.cn)(
|
|
3080
3194
|
"h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",
|
|
3081
3195
|
className
|
|
3082
3196
|
),
|
|
@@ -3085,11 +3199,11 @@ function TableHead({ className, ...props }) {
|
|
|
3085
3199
|
);
|
|
3086
3200
|
}
|
|
3087
3201
|
function TableCell({ className, ...props }) {
|
|
3088
|
-
return /* @__PURE__ */ (0,
|
|
3202
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3089
3203
|
"td",
|
|
3090
3204
|
{
|
|
3091
3205
|
"data-slot": "table-cell",
|
|
3092
|
-
className: (0,
|
|
3206
|
+
className: (0, import_cn13.cn)(
|
|
3093
3207
|
"p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",
|
|
3094
3208
|
className
|
|
3095
3209
|
),
|
|
@@ -3101,23 +3215,23 @@ function TableCaption({
|
|
|
3101
3215
|
className,
|
|
3102
3216
|
...props
|
|
3103
3217
|
}) {
|
|
3104
|
-
return /* @__PURE__ */ (0,
|
|
3218
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3105
3219
|
"caption",
|
|
3106
3220
|
{
|
|
3107
3221
|
"data-slot": "table-caption",
|
|
3108
|
-
className: (0,
|
|
3222
|
+
className: (0, import_cn13.cn)("mt-4 text-sm text-muted-foreground", className),
|
|
3109
3223
|
...props
|
|
3110
3224
|
}
|
|
3111
3225
|
);
|
|
3112
3226
|
}
|
|
3113
3227
|
|
|
3114
3228
|
// src/components/table/Table.tsx
|
|
3115
|
-
var
|
|
3116
|
-
var Table2 =
|
|
3117
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3229
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
3230
|
+
var Table2 = React19.forwardRef(
|
|
3231
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Table, { ref, className, ...props })
|
|
3118
3232
|
);
|
|
3119
3233
|
Table2.displayName = "Table";
|
|
3120
|
-
var TableHeader2 =
|
|
3234
|
+
var TableHeader2 = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3121
3235
|
TableHeader,
|
|
3122
3236
|
{
|
|
3123
3237
|
ref,
|
|
@@ -3126,7 +3240,7 @@ var TableHeader2 = React17.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
3126
3240
|
}
|
|
3127
3241
|
));
|
|
3128
3242
|
TableHeader2.displayName = "TableHeader";
|
|
3129
|
-
var TableBody2 =
|
|
3243
|
+
var TableBody2 = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3130
3244
|
TableBody,
|
|
3131
3245
|
{
|
|
3132
3246
|
ref,
|
|
@@ -3135,7 +3249,7 @@ var TableBody2 = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
3135
3249
|
}
|
|
3136
3250
|
));
|
|
3137
3251
|
TableBody2.displayName = "TableBody";
|
|
3138
|
-
var TableFooter2 =
|
|
3252
|
+
var TableFooter2 = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3139
3253
|
TableFooter,
|
|
3140
3254
|
{
|
|
3141
3255
|
ref,
|
|
@@ -3147,8 +3261,8 @@ var TableFooter2 = React17.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
3147
3261
|
}
|
|
3148
3262
|
));
|
|
3149
3263
|
TableFooter2.displayName = "TableFooter";
|
|
3150
|
-
var TableRow2 =
|
|
3151
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3264
|
+
var TableRow2 = React19.forwardRef(
|
|
3265
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3152
3266
|
TableRow,
|
|
3153
3267
|
{
|
|
3154
3268
|
ref,
|
|
@@ -3161,7 +3275,7 @@ var TableRow2 = React17.forwardRef(
|
|
|
3161
3275
|
)
|
|
3162
3276
|
);
|
|
3163
3277
|
TableRow2.displayName = "TableRow";
|
|
3164
|
-
var TableHead2 =
|
|
3278
|
+
var TableHead2 = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3165
3279
|
TableHead,
|
|
3166
3280
|
{
|
|
3167
3281
|
ref,
|
|
@@ -3173,7 +3287,7 @@ var TableHead2 = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
3173
3287
|
}
|
|
3174
3288
|
));
|
|
3175
3289
|
TableHead2.displayName = "TableHead";
|
|
3176
|
-
var TableCell2 =
|
|
3290
|
+
var TableCell2 = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3177
3291
|
TableCell,
|
|
3178
3292
|
{
|
|
3179
3293
|
ref,
|
|
@@ -3182,7 +3296,7 @@ var TableCell2 = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
3182
3296
|
}
|
|
3183
3297
|
));
|
|
3184
3298
|
TableCell2.displayName = "TableCell";
|
|
3185
|
-
var TableCaption2 =
|
|
3299
|
+
var TableCaption2 = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3186
3300
|
TableCaption,
|
|
3187
3301
|
{
|
|
3188
3302
|
ref,
|
|
@@ -3193,21 +3307,21 @@ var TableCaption2 = React17.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
3193
3307
|
TableCaption2.displayName = "TableCaption";
|
|
3194
3308
|
|
|
3195
3309
|
// src/components/item/Item.tsx
|
|
3196
|
-
var
|
|
3310
|
+
var React20 = __toESM(require("react"), 1);
|
|
3197
3311
|
|
|
3198
3312
|
// src/primitives/item.tsx
|
|
3199
3313
|
var import_merge_props2 = require("@base-ui/react/merge-props");
|
|
3200
3314
|
var import_use_render2 = require("@base-ui/react/use-render");
|
|
3201
3315
|
var import_class_variance_authority10 = require("class-variance-authority");
|
|
3202
|
-
var
|
|
3203
|
-
var
|
|
3316
|
+
var import_cn14 = require("cn");
|
|
3317
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
3204
3318
|
function ItemGroup({ className, ...props }) {
|
|
3205
|
-
return /* @__PURE__ */ (0,
|
|
3319
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3206
3320
|
"div",
|
|
3207
3321
|
{
|
|
3208
3322
|
role: "list",
|
|
3209
3323
|
"data-slot": "item-group",
|
|
3210
|
-
className: (0,
|
|
3324
|
+
className: (0, import_cn14.cn)(
|
|
3211
3325
|
"group/item-group flex w-full flex-col gap-4 has-data-[size=sm]:gap-2.5 has-data-[size=xs]:gap-2",
|
|
3212
3326
|
className
|
|
3213
3327
|
),
|
|
@@ -3219,12 +3333,12 @@ function ItemSeparator({
|
|
|
3219
3333
|
className,
|
|
3220
3334
|
...props
|
|
3221
3335
|
}) {
|
|
3222
|
-
return /* @__PURE__ */ (0,
|
|
3336
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3223
3337
|
Separator,
|
|
3224
3338
|
{
|
|
3225
3339
|
"data-slot": "item-separator",
|
|
3226
3340
|
orientation: "horizontal",
|
|
3227
|
-
className: (0,
|
|
3341
|
+
className: (0, import_cn14.cn)("my-2", className),
|
|
3228
3342
|
...props
|
|
3229
3343
|
}
|
|
3230
3344
|
);
|
|
@@ -3261,7 +3375,7 @@ function Item({
|
|
|
3261
3375
|
defaultTagName: "div",
|
|
3262
3376
|
props: (0, import_merge_props2.mergeProps)(
|
|
3263
3377
|
{
|
|
3264
|
-
className: (0,
|
|
3378
|
+
className: (0, import_cn14.cn)(itemVariants({ variant, size, className }))
|
|
3265
3379
|
},
|
|
3266
3380
|
props
|
|
3267
3381
|
),
|
|
@@ -3293,22 +3407,22 @@ function ItemMedia({
|
|
|
3293
3407
|
variant = "default",
|
|
3294
3408
|
...props
|
|
3295
3409
|
}) {
|
|
3296
|
-
return /* @__PURE__ */ (0,
|
|
3410
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3297
3411
|
"div",
|
|
3298
3412
|
{
|
|
3299
3413
|
"data-slot": "item-media",
|
|
3300
3414
|
"data-variant": variant,
|
|
3301
|
-
className: (0,
|
|
3415
|
+
className: (0, import_cn14.cn)(itemMediaVariants({ variant, className })),
|
|
3302
3416
|
...props
|
|
3303
3417
|
}
|
|
3304
3418
|
);
|
|
3305
3419
|
}
|
|
3306
3420
|
function ItemContent({ className, ...props }) {
|
|
3307
|
-
return /* @__PURE__ */ (0,
|
|
3421
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3308
3422
|
"div",
|
|
3309
3423
|
{
|
|
3310
3424
|
"data-slot": "item-content",
|
|
3311
|
-
className: (0,
|
|
3425
|
+
className: (0, import_cn14.cn)(
|
|
3312
3426
|
"flex flex-1 flex-col gap-1 group-data-[size=xs]/item:gap-0 [&+[data-slot=item-content]]:flex-none",
|
|
3313
3427
|
className
|
|
3314
3428
|
),
|
|
@@ -3317,11 +3431,11 @@ function ItemContent({ className, ...props }) {
|
|
|
3317
3431
|
);
|
|
3318
3432
|
}
|
|
3319
3433
|
function ItemTitle({ className, ...props }) {
|
|
3320
|
-
return /* @__PURE__ */ (0,
|
|
3434
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3321
3435
|
"div",
|
|
3322
3436
|
{
|
|
3323
3437
|
"data-slot": "item-title",
|
|
3324
|
-
className: (0,
|
|
3438
|
+
className: (0, import_cn14.cn)(
|
|
3325
3439
|
"line-clamp-1 flex w-fit items-center gap-2 text-sm leading-snug font-medium underline-offset-4",
|
|
3326
3440
|
className
|
|
3327
3441
|
),
|
|
@@ -3330,11 +3444,11 @@ function ItemTitle({ className, ...props }) {
|
|
|
3330
3444
|
);
|
|
3331
3445
|
}
|
|
3332
3446
|
function ItemDescription({ className, ...props }) {
|
|
3333
|
-
return /* @__PURE__ */ (0,
|
|
3447
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3334
3448
|
"p",
|
|
3335
3449
|
{
|
|
3336
3450
|
"data-slot": "item-description",
|
|
3337
|
-
className: (0,
|
|
3451
|
+
className: (0, import_cn14.cn)(
|
|
3338
3452
|
"line-clamp-2 text-left text-sm leading-normal font-normal text-muted-foreground group-data-[size=xs]/item:text-xs [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",
|
|
3339
3453
|
className
|
|
3340
3454
|
),
|
|
@@ -3343,21 +3457,21 @@ function ItemDescription({ className, ...props }) {
|
|
|
3343
3457
|
);
|
|
3344
3458
|
}
|
|
3345
3459
|
function ItemActions({ className, ...props }) {
|
|
3346
|
-
return /* @__PURE__ */ (0,
|
|
3460
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3347
3461
|
"div",
|
|
3348
3462
|
{
|
|
3349
3463
|
"data-slot": "item-actions",
|
|
3350
|
-
className: (0,
|
|
3464
|
+
className: (0, import_cn14.cn)("flex items-center gap-2", className),
|
|
3351
3465
|
...props
|
|
3352
3466
|
}
|
|
3353
3467
|
);
|
|
3354
3468
|
}
|
|
3355
3469
|
function ItemHeader({ className, ...props }) {
|
|
3356
|
-
return /* @__PURE__ */ (0,
|
|
3470
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3357
3471
|
"div",
|
|
3358
3472
|
{
|
|
3359
3473
|
"data-slot": "item-header",
|
|
3360
|
-
className: (0,
|
|
3474
|
+
className: (0, import_cn14.cn)(
|
|
3361
3475
|
"flex basis-full items-center justify-between gap-2",
|
|
3362
3476
|
className
|
|
3363
3477
|
),
|
|
@@ -3366,11 +3480,11 @@ function ItemHeader({ className, ...props }) {
|
|
|
3366
3480
|
);
|
|
3367
3481
|
}
|
|
3368
3482
|
function ItemFooter({ className, ...props }) {
|
|
3369
|
-
return /* @__PURE__ */ (0,
|
|
3483
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3370
3484
|
"div",
|
|
3371
3485
|
{
|
|
3372
3486
|
"data-slot": "item-footer",
|
|
3373
|
-
className: (0,
|
|
3487
|
+
className: (0, import_cn14.cn)(
|
|
3374
3488
|
"flex basis-full items-center justify-between gap-2",
|
|
3375
3489
|
className
|
|
3376
3490
|
),
|
|
@@ -3380,9 +3494,9 @@ function ItemFooter({ className, ...props }) {
|
|
|
3380
3494
|
}
|
|
3381
3495
|
|
|
3382
3496
|
// src/components/item/Item.tsx
|
|
3383
|
-
var
|
|
3497
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
3384
3498
|
function Item2({ className, asChild, children, ...props }) {
|
|
3385
|
-
return /* @__PURE__ */ (0,
|
|
3499
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3386
3500
|
Item,
|
|
3387
3501
|
{
|
|
3388
3502
|
render: asChild ? children : void 0,
|
|
@@ -3401,8 +3515,8 @@ function Item2({ className, asChild, children, ...props }) {
|
|
|
3401
3515
|
}
|
|
3402
3516
|
);
|
|
3403
3517
|
}
|
|
3404
|
-
var ItemMedia2 =
|
|
3405
|
-
return /* @__PURE__ */ (0,
|
|
3518
|
+
var ItemMedia2 = React20.forwardRef(({ className, ...props }, ref) => {
|
|
3519
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3406
3520
|
ItemMedia,
|
|
3407
3521
|
{
|
|
3408
3522
|
ref,
|
|
@@ -3412,8 +3526,8 @@ var ItemMedia2 = React18.forwardRef(({ className, ...props }, ref) => {
|
|
|
3412
3526
|
);
|
|
3413
3527
|
});
|
|
3414
3528
|
ItemMedia2.displayName = "ItemMedia";
|
|
3415
|
-
var ItemTitle2 =
|
|
3416
|
-
return /* @__PURE__ */ (0,
|
|
3529
|
+
var ItemTitle2 = React20.forwardRef(({ className, ...props }, ref) => {
|
|
3530
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3417
3531
|
ItemTitle,
|
|
3418
3532
|
{
|
|
3419
3533
|
ref,
|
|
@@ -3423,8 +3537,8 @@ var ItemTitle2 = React18.forwardRef(({ className, ...props }, ref) => {
|
|
|
3423
3537
|
);
|
|
3424
3538
|
});
|
|
3425
3539
|
ItemTitle2.displayName = "ItemTitle";
|
|
3426
|
-
var ItemDescription2 =
|
|
3427
|
-
return /* @__PURE__ */ (0,
|
|
3540
|
+
var ItemDescription2 = React20.forwardRef(({ className, ...props }, ref) => {
|
|
3541
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3428
3542
|
ItemDescription,
|
|
3429
3543
|
{
|
|
3430
3544
|
ref,
|
|
@@ -3434,8 +3548,8 @@ var ItemDescription2 = React18.forwardRef(({ className, ...props }, ref) => {
|
|
|
3434
3548
|
);
|
|
3435
3549
|
});
|
|
3436
3550
|
ItemDescription2.displayName = "ItemDescription";
|
|
3437
|
-
var ItemSeparator2 =
|
|
3438
|
-
return /* @__PURE__ */ (0,
|
|
3551
|
+
var ItemSeparator2 = React20.forwardRef(({ className, ...props }, ref) => {
|
|
3552
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3439
3553
|
ItemSeparator,
|
|
3440
3554
|
{
|
|
3441
3555
|
ref,
|
|
@@ -3447,18 +3561,18 @@ var ItemSeparator2 = React18.forwardRef(({ className, ...props }, ref) => {
|
|
|
3447
3561
|
ItemSeparator2.displayName = "ItemSeparator";
|
|
3448
3562
|
|
|
3449
3563
|
// src/components/empty/Empty.tsx
|
|
3450
|
-
var
|
|
3564
|
+
var React21 = __toESM(require("react"), 1);
|
|
3451
3565
|
|
|
3452
3566
|
// src/primitives/empty.tsx
|
|
3453
3567
|
var import_class_variance_authority11 = require("class-variance-authority");
|
|
3454
|
-
var
|
|
3455
|
-
var
|
|
3568
|
+
var import_cn15 = require("cn");
|
|
3569
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
3456
3570
|
function Empty({ className, ...props }) {
|
|
3457
|
-
return /* @__PURE__ */ (0,
|
|
3571
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3458
3572
|
"div",
|
|
3459
3573
|
{
|
|
3460
3574
|
"data-slot": "empty",
|
|
3461
|
-
className: (0,
|
|
3575
|
+
className: (0, import_cn15.cn)(
|
|
3462
3576
|
"flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border-dashed p-6 text-center text-balance",
|
|
3463
3577
|
className
|
|
3464
3578
|
),
|
|
@@ -3467,11 +3581,11 @@ function Empty({ className, ...props }) {
|
|
|
3467
3581
|
);
|
|
3468
3582
|
}
|
|
3469
3583
|
function EmptyHeader({ className, ...props }) {
|
|
3470
|
-
return /* @__PURE__ */ (0,
|
|
3584
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3471
3585
|
"div",
|
|
3472
3586
|
{
|
|
3473
3587
|
"data-slot": "empty-header",
|
|
3474
|
-
className: (0,
|
|
3588
|
+
className: (0, import_cn15.cn)("flex max-w-sm flex-col items-center gap-2", className),
|
|
3475
3589
|
...props
|
|
3476
3590
|
}
|
|
3477
3591
|
);
|
|
@@ -3495,22 +3609,22 @@ function EmptyMedia({
|
|
|
3495
3609
|
variant = "default",
|
|
3496
3610
|
...props
|
|
3497
3611
|
}) {
|
|
3498
|
-
return /* @__PURE__ */ (0,
|
|
3612
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3499
3613
|
"div",
|
|
3500
3614
|
{
|
|
3501
3615
|
"data-slot": "empty-icon",
|
|
3502
3616
|
"data-variant": variant,
|
|
3503
|
-
className: (0,
|
|
3617
|
+
className: (0, import_cn15.cn)(emptyMediaVariants({ variant, className })),
|
|
3504
3618
|
...props
|
|
3505
3619
|
}
|
|
3506
3620
|
);
|
|
3507
3621
|
}
|
|
3508
3622
|
function EmptyTitle({ className, ...props }) {
|
|
3509
|
-
return /* @__PURE__ */ (0,
|
|
3623
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3510
3624
|
"div",
|
|
3511
3625
|
{
|
|
3512
3626
|
"data-slot": "empty-title",
|
|
3513
|
-
className: (0,
|
|
3627
|
+
className: (0, import_cn15.cn)(
|
|
3514
3628
|
"text-sm font-medium tracking-tight",
|
|
3515
3629
|
className
|
|
3516
3630
|
),
|
|
@@ -3519,11 +3633,11 @@ function EmptyTitle({ className, ...props }) {
|
|
|
3519
3633
|
);
|
|
3520
3634
|
}
|
|
3521
3635
|
function EmptyDescription({ className, ...props }) {
|
|
3522
|
-
return /* @__PURE__ */ (0,
|
|
3636
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3523
3637
|
"div",
|
|
3524
3638
|
{
|
|
3525
3639
|
"data-slot": "empty-description",
|
|
3526
|
-
className: (0,
|
|
3640
|
+
className: (0, import_cn15.cn)(
|
|
3527
3641
|
"text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",
|
|
3528
3642
|
className
|
|
3529
3643
|
),
|
|
@@ -3532,11 +3646,11 @@ function EmptyDescription({ className, ...props }) {
|
|
|
3532
3646
|
);
|
|
3533
3647
|
}
|
|
3534
3648
|
function EmptyContent({ className, ...props }) {
|
|
3535
|
-
return /* @__PURE__ */ (0,
|
|
3649
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3536
3650
|
"div",
|
|
3537
3651
|
{
|
|
3538
3652
|
"data-slot": "empty-content",
|
|
3539
|
-
className: (0,
|
|
3653
|
+
className: (0, import_cn15.cn)(
|
|
3540
3654
|
"flex w-full max-w-sm min-w-0 flex-col items-center gap-2.5 text-sm text-balance",
|
|
3541
3655
|
className
|
|
3542
3656
|
),
|
|
@@ -3546,12 +3660,12 @@ function EmptyContent({ className, ...props }) {
|
|
|
3546
3660
|
}
|
|
3547
3661
|
|
|
3548
3662
|
// src/components/empty/Empty.tsx
|
|
3549
|
-
var
|
|
3663
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
3550
3664
|
function Empty2({ className, ...props }) {
|
|
3551
|
-
return /* @__PURE__ */ (0,
|
|
3665
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Empty, { className, ...props });
|
|
3552
3666
|
}
|
|
3553
|
-
var EmptyMedia2 =
|
|
3554
|
-
return /* @__PURE__ */ (0,
|
|
3667
|
+
var EmptyMedia2 = React21.forwardRef(({ className, ...props }, ref) => {
|
|
3668
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3555
3669
|
EmptyMedia,
|
|
3556
3670
|
{
|
|
3557
3671
|
ref,
|
|
@@ -3564,8 +3678,8 @@ var EmptyMedia2 = React19.forwardRef(({ className, ...props }, ref) => {
|
|
|
3564
3678
|
);
|
|
3565
3679
|
});
|
|
3566
3680
|
EmptyMedia2.displayName = "EmptyMedia";
|
|
3567
|
-
var EmptyTitle2 =
|
|
3568
|
-
return /* @__PURE__ */ (0,
|
|
3681
|
+
var EmptyTitle2 = React21.forwardRef(({ className, ...props }, ref) => {
|
|
3682
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3569
3683
|
EmptyTitle,
|
|
3570
3684
|
{
|
|
3571
3685
|
ref,
|
|
@@ -3575,8 +3689,8 @@ var EmptyTitle2 = React19.forwardRef(({ className, ...props }, ref) => {
|
|
|
3575
3689
|
);
|
|
3576
3690
|
});
|
|
3577
3691
|
EmptyTitle2.displayName = "EmptyTitle";
|
|
3578
|
-
var EmptyDescription2 =
|
|
3579
|
-
return /* @__PURE__ */ (0,
|
|
3692
|
+
var EmptyDescription2 = React21.forwardRef(({ className, ...props }, ref) => {
|
|
3693
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3580
3694
|
EmptyDescription,
|
|
3581
3695
|
{
|
|
3582
3696
|
ref,
|
|
@@ -3589,22 +3703,22 @@ EmptyDescription2.displayName = "EmptyDescription";
|
|
|
3589
3703
|
|
|
3590
3704
|
// src/components/search-input/SearchInput.tsx
|
|
3591
3705
|
var import_lucide_react8 = require("lucide-react");
|
|
3592
|
-
var
|
|
3706
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
3593
3707
|
var SearchInput = ({
|
|
3594
3708
|
type = "search",
|
|
3595
3709
|
placeholder = "Search...",
|
|
3596
3710
|
className,
|
|
3597
3711
|
ref,
|
|
3598
3712
|
...props
|
|
3599
|
-
}) => /* @__PURE__ */ (0,
|
|
3600
|
-
/* @__PURE__ */ (0,
|
|
3713
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "relative flex w-full items-center", "data-slot": "search-input", children: [
|
|
3714
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
3601
3715
|
import_lucide_react8.Search,
|
|
3602
3716
|
{
|
|
3603
3717
|
"aria-hidden": "true",
|
|
3604
3718
|
className: "pointer-events-none absolute left-2.5 size-4 text-berget-muted-foreground"
|
|
3605
3719
|
}
|
|
3606
3720
|
),
|
|
3607
|
-
/* @__PURE__ */ (0,
|
|
3721
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
3608
3722
|
Input,
|
|
3609
3723
|
{
|
|
3610
3724
|
ref,
|
|
@@ -3618,32 +3732,32 @@ var SearchInput = ({
|
|
|
3618
3732
|
SearchInput.displayName = "SearchInput";
|
|
3619
3733
|
|
|
3620
3734
|
// src/components/checkbox/Checkbox.tsx
|
|
3621
|
-
var
|
|
3735
|
+
var React22 = __toESM(require("react"), 1);
|
|
3622
3736
|
var import_checkbox2 = require("@base-ui/react/checkbox");
|
|
3623
3737
|
var import_lucide_react10 = require("lucide-react");
|
|
3624
3738
|
var import_class_variance_authority12 = require("class-variance-authority");
|
|
3625
3739
|
|
|
3626
3740
|
// src/primitives/checkbox.tsx
|
|
3627
3741
|
var import_checkbox = require("@base-ui/react/checkbox");
|
|
3628
|
-
var
|
|
3742
|
+
var import_cn16 = require("cn");
|
|
3629
3743
|
var import_lucide_react9 = require("lucide-react");
|
|
3630
|
-
var
|
|
3744
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
3631
3745
|
function Checkbox({ className, ...props }) {
|
|
3632
|
-
return /* @__PURE__ */ (0,
|
|
3746
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3633
3747
|
import_checkbox.Checkbox.Root,
|
|
3634
3748
|
{
|
|
3635
3749
|
"data-slot": "checkbox",
|
|
3636
|
-
className: (0,
|
|
3750
|
+
className: (0, import_cn16.cn)(
|
|
3637
3751
|
"peer relative flex size-4 shrink-0 cursor-pointer items-center justify-center rounded-[4px] border border-input transition-colors outline-none group-has-disabled/field:opacity-50 group-has-[:focus-visible]/field-label:ring-0 group-has-[:focus-visible]/field-label:not-data-checked:border-input after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground group-has-[:focus-visible]/field-label:data-checked:border-primary dark:data-checked:bg-primary",
|
|
3638
3752
|
className
|
|
3639
3753
|
),
|
|
3640
3754
|
...props,
|
|
3641
|
-
children: /* @__PURE__ */ (0,
|
|
3755
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3642
3756
|
import_checkbox.Checkbox.Indicator,
|
|
3643
3757
|
{
|
|
3644
3758
|
"data-slot": "checkbox-indicator",
|
|
3645
3759
|
className: "grid place-content-center text-current transition-none [&>svg]:size-3.5",
|
|
3646
|
-
children: /* @__PURE__ */ (0,
|
|
3760
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3647
3761
|
import_lucide_react9.CheckIcon,
|
|
3648
3762
|
{}
|
|
3649
3763
|
)
|
|
@@ -3654,7 +3768,7 @@ function Checkbox({ className, ...props }) {
|
|
|
3654
3768
|
}
|
|
3655
3769
|
|
|
3656
3770
|
// src/components/checkbox/Checkbox.tsx
|
|
3657
|
-
var
|
|
3771
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
3658
3772
|
var checkboxVariants = (0, import_class_variance_authority12.cva)(
|
|
3659
3773
|
"inline-flex items-center justify-center rounded-berget-xs transition-all duration-200 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
3660
3774
|
{
|
|
@@ -3676,7 +3790,7 @@ var checkboxVariants = (0, import_class_variance_authority12.cva)(
|
|
|
3676
3790
|
}
|
|
3677
3791
|
}
|
|
3678
3792
|
);
|
|
3679
|
-
var Checkbox2 =
|
|
3793
|
+
var Checkbox2 = React22.forwardRef(
|
|
3680
3794
|
({
|
|
3681
3795
|
"aria-label": ariaLabel,
|
|
3682
3796
|
className,
|
|
@@ -3689,11 +3803,11 @@ var Checkbox2 = React20.forwardRef(
|
|
|
3689
3803
|
disabled,
|
|
3690
3804
|
...props
|
|
3691
3805
|
}, ref) => {
|
|
3692
|
-
const generatedId =
|
|
3806
|
+
const generatedId = React22.useId();
|
|
3693
3807
|
const checkboxId = id || generatedId;
|
|
3694
3808
|
const errorId = `${checkboxId}-error`;
|
|
3695
|
-
return /* @__PURE__ */ (0,
|
|
3696
|
-
/* @__PURE__ */ (0,
|
|
3809
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "flex items-start gap-3", children: [
|
|
3810
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "relative flex items-start pt-0.5", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
3697
3811
|
Checkbox,
|
|
3698
3812
|
{
|
|
3699
3813
|
ref,
|
|
@@ -3709,7 +3823,7 @@ var Checkbox2 = React20.forwardRef(
|
|
|
3709
3823
|
className
|
|
3710
3824
|
),
|
|
3711
3825
|
...props,
|
|
3712
|
-
children: /* @__PURE__ */ (0,
|
|
3826
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_checkbox2.Checkbox.Indicator, { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
3713
3827
|
import_lucide_react10.Check,
|
|
3714
3828
|
{
|
|
3715
3829
|
className: "h-4 w-4 text-current stroke-current",
|
|
@@ -3718,8 +3832,8 @@ var Checkbox2 = React20.forwardRef(
|
|
|
3718
3832
|
) })
|
|
3719
3833
|
}
|
|
3720
3834
|
) }),
|
|
3721
|
-
(label || description || error) && /* @__PURE__ */ (0,
|
|
3722
|
-
label && /* @__PURE__ */ (0,
|
|
3835
|
+
(label || description || error) && /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "flex flex-col gap-1", children: [
|
|
3836
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
3723
3837
|
"label",
|
|
3724
3838
|
{
|
|
3725
3839
|
htmlFor: checkboxId,
|
|
@@ -3731,8 +3845,8 @@ var Checkbox2 = React20.forwardRef(
|
|
|
3731
3845
|
children: label
|
|
3732
3846
|
}
|
|
3733
3847
|
),
|
|
3734
|
-
description && /* @__PURE__ */ (0,
|
|
3735
|
-
error && /* @__PURE__ */ (0,
|
|
3848
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Typography, { variant: "xs", color: "muted", children: description }),
|
|
3849
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
3736
3850
|
] })
|
|
3737
3851
|
] });
|
|
3738
3852
|
}
|
|
@@ -3740,10 +3854,10 @@ var Checkbox2 = React20.forwardRef(
|
|
|
3740
3854
|
Checkbox2.displayName = "Checkbox";
|
|
3741
3855
|
|
|
3742
3856
|
// src/components/switch/Switch.tsx
|
|
3743
|
-
var
|
|
3857
|
+
var React23 = __toESM(require("react"), 1);
|
|
3744
3858
|
var import_switch = require("@base-ui/react/switch");
|
|
3745
3859
|
var import_class_variance_authority13 = require("class-variance-authority");
|
|
3746
|
-
var
|
|
3860
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
3747
3861
|
var switchRootVariants = (0, import_class_variance_authority13.cva)(
|
|
3748
3862
|
"peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-berget-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",
|
|
3749
3863
|
{
|
|
@@ -3780,7 +3894,7 @@ var switchThumbVariants = (0, import_class_variance_authority13.cva)(
|
|
|
3780
3894
|
}
|
|
3781
3895
|
}
|
|
3782
3896
|
);
|
|
3783
|
-
var Switch =
|
|
3897
|
+
var Switch = React23.forwardRef(
|
|
3784
3898
|
({
|
|
3785
3899
|
"aria-label": ariaLabel,
|
|
3786
3900
|
className,
|
|
@@ -3793,11 +3907,11 @@ var Switch = React21.forwardRef(
|
|
|
3793
3907
|
disabled,
|
|
3794
3908
|
...props
|
|
3795
3909
|
}, ref) => {
|
|
3796
|
-
const generatedId =
|
|
3910
|
+
const generatedId = React23.useId();
|
|
3797
3911
|
const switchId = id || generatedId;
|
|
3798
3912
|
const errorId = `${switchId}-error`;
|
|
3799
|
-
return /* @__PURE__ */ (0,
|
|
3800
|
-
/* @__PURE__ */ (0,
|
|
3913
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "flex items-center gap-3", children: [
|
|
3914
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
3801
3915
|
import_switch.Switch.Root,
|
|
3802
3916
|
{
|
|
3803
3917
|
ref,
|
|
@@ -3812,11 +3926,11 @@ var Switch = React21.forwardRef(
|
|
|
3812
3926
|
className
|
|
3813
3927
|
),
|
|
3814
3928
|
...props,
|
|
3815
|
-
children: /* @__PURE__ */ (0,
|
|
3929
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_switch.Switch.Thumb, { className: cn(switchThumbVariants({ size })) })
|
|
3816
3930
|
}
|
|
3817
3931
|
),
|
|
3818
|
-
(label || description || error) && /* @__PURE__ */ (0,
|
|
3819
|
-
label && /* @__PURE__ */ (0,
|
|
3932
|
+
(label || description || error) && /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "flex flex-col gap-1", children: [
|
|
3933
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
3820
3934
|
"label",
|
|
3821
3935
|
{
|
|
3822
3936
|
htmlFor: switchId,
|
|
@@ -3827,8 +3941,8 @@ var Switch = React21.forwardRef(
|
|
|
3827
3941
|
children: label
|
|
3828
3942
|
}
|
|
3829
3943
|
),
|
|
3830
|
-
description && /* @__PURE__ */ (0,
|
|
3831
|
-
error && /* @__PURE__ */ (0,
|
|
3944
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Typography, { variant: "xs", color: "muted", children: description }),
|
|
3945
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
3832
3946
|
] })
|
|
3833
3947
|
] });
|
|
3834
3948
|
}
|
|
@@ -3837,26 +3951,26 @@ Switch.displayName = "Switch";
|
|
|
3837
3951
|
|
|
3838
3952
|
// src/primitives/select.tsx
|
|
3839
3953
|
var import_select = require("@base-ui/react/select");
|
|
3840
|
-
var
|
|
3954
|
+
var import_cn17 = require("cn");
|
|
3841
3955
|
var import_lucide_react11 = require("lucide-react");
|
|
3842
|
-
var
|
|
3956
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
3843
3957
|
var Select = import_select.Select.Root;
|
|
3844
3958
|
function SelectGroup({ className, ...props }) {
|
|
3845
|
-
return /* @__PURE__ */ (0,
|
|
3959
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
3846
3960
|
import_select.Select.Group,
|
|
3847
3961
|
{
|
|
3848
3962
|
"data-slot": "select-group",
|
|
3849
|
-
className: (0,
|
|
3963
|
+
className: (0, import_cn17.cn)("scroll-my-1 p-1", className),
|
|
3850
3964
|
...props
|
|
3851
3965
|
}
|
|
3852
3966
|
);
|
|
3853
3967
|
}
|
|
3854
3968
|
function SelectValue({ className, ...props }) {
|
|
3855
|
-
return /* @__PURE__ */ (0,
|
|
3969
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
3856
3970
|
import_select.Select.Value,
|
|
3857
3971
|
{
|
|
3858
3972
|
"data-slot": "select-value",
|
|
3859
|
-
className: (0,
|
|
3973
|
+
className: (0, import_cn17.cn)("flex flex-1 text-left", className),
|
|
3860
3974
|
...props
|
|
3861
3975
|
}
|
|
3862
3976
|
);
|
|
@@ -3867,22 +3981,22 @@ function SelectTrigger({
|
|
|
3867
3981
|
children,
|
|
3868
3982
|
...props
|
|
3869
3983
|
}) {
|
|
3870
|
-
return /* @__PURE__ */ (0,
|
|
3984
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
3871
3985
|
import_select.Select.Trigger,
|
|
3872
3986
|
{
|
|
3873
3987
|
"data-slot": "select-trigger",
|
|
3874
3988
|
"data-size": size,
|
|
3875
|
-
className: (0,
|
|
3989
|
+
className: (0, import_cn17.cn)(
|
|
3876
3990
|
"flex w-fit cursor-pointer items-center justify-between gap-1.5 rounded-lg border border-input bg-input/30 py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
3877
3991
|
className
|
|
3878
3992
|
),
|
|
3879
3993
|
...props,
|
|
3880
3994
|
children: [
|
|
3881
3995
|
children,
|
|
3882
|
-
/* @__PURE__ */ (0,
|
|
3996
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
3883
3997
|
import_select.Select.Icon,
|
|
3884
3998
|
{
|
|
3885
|
-
render: /* @__PURE__ */ (0,
|
|
3999
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_lucide_react11.ChevronDownIcon, { className: "pointer-events-none size-4 text-muted-foreground" })
|
|
3886
4000
|
}
|
|
3887
4001
|
)
|
|
3888
4002
|
]
|
|
@@ -3899,7 +4013,7 @@ function SelectContent({
|
|
|
3899
4013
|
alignItemWithTrigger = true,
|
|
3900
4014
|
...props
|
|
3901
4015
|
}) {
|
|
3902
|
-
return /* @__PURE__ */ (0,
|
|
4016
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_select.Select.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
3903
4017
|
import_select.Select.Positioner,
|
|
3904
4018
|
{
|
|
3905
4019
|
side,
|
|
@@ -3908,17 +4022,17 @@ function SelectContent({
|
|
|
3908
4022
|
alignOffset,
|
|
3909
4023
|
alignItemWithTrigger,
|
|
3910
4024
|
className: "isolate z-50",
|
|
3911
|
-
children: /* @__PURE__ */ (0,
|
|
4025
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
3912
4026
|
import_select.Select.Popup,
|
|
3913
4027
|
{
|
|
3914
4028
|
"data-slot": "select-content",
|
|
3915
4029
|
"data-align-trigger": alignItemWithTrigger,
|
|
3916
|
-
className: (0,
|
|
4030
|
+
className: (0, import_cn17.cn)("relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", className),
|
|
3917
4031
|
...props,
|
|
3918
4032
|
children: [
|
|
3919
|
-
/* @__PURE__ */ (0,
|
|
3920
|
-
/* @__PURE__ */ (0,
|
|
3921
|
-
/* @__PURE__ */ (0,
|
|
4033
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(SelectScrollUpButton, {}),
|
|
4034
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_select.Select.List, { children }),
|
|
4035
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(SelectScrollDownButton, {})
|
|
3922
4036
|
]
|
|
3923
4037
|
}
|
|
3924
4038
|
)
|
|
@@ -3929,11 +4043,11 @@ function SelectLabel({
|
|
|
3929
4043
|
className,
|
|
3930
4044
|
...props
|
|
3931
4045
|
}) {
|
|
3932
|
-
return /* @__PURE__ */ (0,
|
|
4046
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
3933
4047
|
import_select.Select.GroupLabel,
|
|
3934
4048
|
{
|
|
3935
4049
|
"data-slot": "select-label",
|
|
3936
|
-
className: (0,
|
|
4050
|
+
className: (0, import_cn17.cn)("px-1.5 py-1 text-xs text-muted-foreground", className),
|
|
3937
4051
|
...props
|
|
3938
4052
|
}
|
|
3939
4053
|
);
|
|
@@ -3943,22 +4057,22 @@ function SelectItem({
|
|
|
3943
4057
|
children,
|
|
3944
4058
|
...props
|
|
3945
4059
|
}) {
|
|
3946
|
-
return /* @__PURE__ */ (0,
|
|
4060
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
3947
4061
|
import_select.Select.Item,
|
|
3948
4062
|
{
|
|
3949
4063
|
"data-slot": "select-item",
|
|
3950
|
-
className: (0,
|
|
4064
|
+
className: (0, import_cn17.cn)(
|
|
3951
4065
|
"relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
|
|
3952
4066
|
className
|
|
3953
4067
|
),
|
|
3954
4068
|
...props,
|
|
3955
4069
|
children: [
|
|
3956
|
-
/* @__PURE__ */ (0,
|
|
3957
|
-
/* @__PURE__ */ (0,
|
|
4070
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_select.Select.ItemText, { className: "flex flex-1 shrink-0 gap-2 whitespace-nowrap", children }),
|
|
4071
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
3958
4072
|
import_select.Select.ItemIndicator,
|
|
3959
4073
|
{
|
|
3960
|
-
render: /* @__PURE__ */ (0,
|
|
3961
|
-
children: /* @__PURE__ */ (0,
|
|
4074
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center" }),
|
|
4075
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_lucide_react11.CheckIcon, { className: "pointer-events-none" })
|
|
3962
4076
|
}
|
|
3963
4077
|
)
|
|
3964
4078
|
]
|
|
@@ -3969,11 +4083,11 @@ function SelectSeparator({
|
|
|
3969
4083
|
className,
|
|
3970
4084
|
...props
|
|
3971
4085
|
}) {
|
|
3972
|
-
return /* @__PURE__ */ (0,
|
|
4086
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
3973
4087
|
import_select.Select.Separator,
|
|
3974
4088
|
{
|
|
3975
4089
|
"data-slot": "select-separator",
|
|
3976
|
-
className: (0,
|
|
4090
|
+
className: (0, import_cn17.cn)("pointer-events-none -mx-1 my-1 h-px bg-border", className),
|
|
3977
4091
|
...props
|
|
3978
4092
|
}
|
|
3979
4093
|
);
|
|
@@ -3982,16 +4096,16 @@ function SelectScrollUpButton({
|
|
|
3982
4096
|
className,
|
|
3983
4097
|
...props
|
|
3984
4098
|
}) {
|
|
3985
|
-
return /* @__PURE__ */ (0,
|
|
4099
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
3986
4100
|
import_select.Select.ScrollUpArrow,
|
|
3987
4101
|
{
|
|
3988
4102
|
"data-slot": "select-scroll-up-button",
|
|
3989
|
-
className: (0,
|
|
4103
|
+
className: (0, import_cn17.cn)(
|
|
3990
4104
|
"top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",
|
|
3991
4105
|
className
|
|
3992
4106
|
),
|
|
3993
4107
|
...props,
|
|
3994
|
-
children: /* @__PURE__ */ (0,
|
|
4108
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
3995
4109
|
import_lucide_react11.ChevronUpIcon,
|
|
3996
4110
|
{}
|
|
3997
4111
|
)
|
|
@@ -4002,16 +4116,16 @@ function SelectScrollDownButton({
|
|
|
4002
4116
|
className,
|
|
4003
4117
|
...props
|
|
4004
4118
|
}) {
|
|
4005
|
-
return /* @__PURE__ */ (0,
|
|
4119
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4006
4120
|
import_select.Select.ScrollDownArrow,
|
|
4007
4121
|
{
|
|
4008
4122
|
"data-slot": "select-scroll-down-button",
|
|
4009
|
-
className: (0,
|
|
4123
|
+
className: (0, import_cn17.cn)(
|
|
4010
4124
|
"bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",
|
|
4011
4125
|
className
|
|
4012
4126
|
),
|
|
4013
4127
|
...props,
|
|
4014
|
-
children: /* @__PURE__ */ (0,
|
|
4128
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4015
4129
|
import_lucide_react11.ChevronDownIcon,
|
|
4016
4130
|
{}
|
|
4017
4131
|
)
|
|
@@ -4020,19 +4134,19 @@ function SelectScrollDownButton({
|
|
|
4020
4134
|
}
|
|
4021
4135
|
|
|
4022
4136
|
// src/components/country-select/CountrySelect.tsx
|
|
4023
|
-
var
|
|
4137
|
+
var React25 = __toESM(require("react"), 1);
|
|
4024
4138
|
var import_lucide_react14 = require("lucide-react");
|
|
4025
4139
|
|
|
4026
4140
|
// src/components/icon/Icon.tsx
|
|
4027
|
-
var
|
|
4028
|
-
var
|
|
4141
|
+
var React24 = __toESM(require("react"), 1);
|
|
4142
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
4029
4143
|
var iconStrokeMap = {
|
|
4030
4144
|
12: 1.4,
|
|
4031
4145
|
16: 1.4,
|
|
4032
4146
|
24: 1.6,
|
|
4033
4147
|
32: 1.8
|
|
4034
4148
|
};
|
|
4035
|
-
var Icon =
|
|
4149
|
+
var Icon = React24.forwardRef(
|
|
4036
4150
|
({
|
|
4037
4151
|
icon: IconComponent,
|
|
4038
4152
|
size,
|
|
@@ -4044,7 +4158,7 @@ var Icon = React22.forwardRef(
|
|
|
4044
4158
|
const strokeWidth = iconStrokeMap[size];
|
|
4045
4159
|
const sizeClass = size === 12 ? "w-3 h-3" : size === 16 ? "w-4 h-4" : size === 24 ? "w-6 h-6" : "w-8 h-8";
|
|
4046
4160
|
const ariaAttributes = ariaLabel ? { "aria-label": ariaLabel } : { "aria-hidden": ariaHidden };
|
|
4047
|
-
return /* @__PURE__ */ (0,
|
|
4161
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
4048
4162
|
IconComponent,
|
|
4049
4163
|
{
|
|
4050
4164
|
ref,
|
|
@@ -4060,13 +4174,13 @@ Icon.displayName = "Icon";
|
|
|
4060
4174
|
|
|
4061
4175
|
// src/primitives/popover.tsx
|
|
4062
4176
|
var import_popover = require("@base-ui/react/popover");
|
|
4063
|
-
var
|
|
4064
|
-
var
|
|
4177
|
+
var import_cn18 = require("cn");
|
|
4178
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
4065
4179
|
function Popover({ ...props }) {
|
|
4066
|
-
return /* @__PURE__ */ (0,
|
|
4180
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_popover.Popover.Root, { "data-slot": "popover", ...props });
|
|
4067
4181
|
}
|
|
4068
4182
|
function PopoverTrigger({ ...props }) {
|
|
4069
|
-
return /* @__PURE__ */ (0,
|
|
4183
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_popover.Popover.Trigger, { "data-slot": "popover-trigger", ...props });
|
|
4070
4184
|
}
|
|
4071
4185
|
function PopoverContent({
|
|
4072
4186
|
className,
|
|
@@ -4076,7 +4190,7 @@ function PopoverContent({
|
|
|
4076
4190
|
sideOffset = 4,
|
|
4077
4191
|
...props
|
|
4078
4192
|
}) {
|
|
4079
|
-
return /* @__PURE__ */ (0,
|
|
4193
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_popover.Popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4080
4194
|
import_popover.Popover.Positioner,
|
|
4081
4195
|
{
|
|
4082
4196
|
align,
|
|
@@ -4084,11 +4198,11 @@ function PopoverContent({
|
|
|
4084
4198
|
side,
|
|
4085
4199
|
sideOffset,
|
|
4086
4200
|
className: "isolate z-50",
|
|
4087
|
-
children: /* @__PURE__ */ (0,
|
|
4201
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4088
4202
|
import_popover.Popover.Popup,
|
|
4089
4203
|
{
|
|
4090
4204
|
"data-slot": "popover-content",
|
|
4091
|
-
className: (0,
|
|
4205
|
+
className: (0, import_cn18.cn)(
|
|
4092
4206
|
"z-50 flex w-72 origin-(--transform-origin) flex-col gap-2.5 rounded-lg bg-popover p-2.5 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
|
|
4093
4207
|
className
|
|
4094
4208
|
),
|
|
@@ -4101,27 +4215,27 @@ function PopoverContent({
|
|
|
4101
4215
|
|
|
4102
4216
|
// src/primitives/command.tsx
|
|
4103
4217
|
var import_cmdk = require("cmdk");
|
|
4104
|
-
var
|
|
4218
|
+
var import_cn22 = require("cn");
|
|
4105
4219
|
|
|
4106
4220
|
// src/primitives/dialog.tsx
|
|
4107
4221
|
var import_dialog3 = require("@base-ui/react/dialog");
|
|
4108
|
-
var
|
|
4222
|
+
var import_cn19 = require("cn");
|
|
4109
4223
|
var import_lucide_react12 = require("lucide-react");
|
|
4110
|
-
var
|
|
4224
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
4111
4225
|
|
|
4112
4226
|
// src/primitives/input-group.tsx
|
|
4113
4227
|
var import_class_variance_authority14 = require("class-variance-authority");
|
|
4114
|
-
var
|
|
4228
|
+
var import_cn21 = require("cn");
|
|
4115
4229
|
|
|
4116
4230
|
// src/primitives/textarea.tsx
|
|
4117
|
-
var
|
|
4118
|
-
var
|
|
4231
|
+
var import_cn20 = require("cn");
|
|
4232
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
4119
4233
|
function Textarea({ className, ...props }) {
|
|
4120
|
-
return /* @__PURE__ */ (0,
|
|
4234
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4121
4235
|
"textarea",
|
|
4122
4236
|
{
|
|
4123
4237
|
"data-slot": "textarea",
|
|
4124
|
-
className: (0,
|
|
4238
|
+
className: (0, import_cn20.cn)(
|
|
4125
4239
|
"flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-input/30 px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",
|
|
4126
4240
|
className
|
|
4127
4241
|
),
|
|
@@ -4131,14 +4245,14 @@ function Textarea({ className, ...props }) {
|
|
|
4131
4245
|
}
|
|
4132
4246
|
|
|
4133
4247
|
// src/primitives/input-group.tsx
|
|
4134
|
-
var
|
|
4248
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
4135
4249
|
function InputGroup({ className, ...props }) {
|
|
4136
|
-
return /* @__PURE__ */ (0,
|
|
4250
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4137
4251
|
"div",
|
|
4138
4252
|
{
|
|
4139
4253
|
"data-slot": "input-group",
|
|
4140
4254
|
role: "group",
|
|
4141
|
-
className: (0,
|
|
4255
|
+
className: (0, import_cn21.cn)(
|
|
4142
4256
|
"group/input-group relative flex h-8 w-full min-w-0 items-center rounded-lg border border-input transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5",
|
|
4143
4257
|
className
|
|
4144
4258
|
),
|
|
@@ -4167,13 +4281,13 @@ function InputGroupAddon({
|
|
|
4167
4281
|
align = "inline-start",
|
|
4168
4282
|
...props
|
|
4169
4283
|
}) {
|
|
4170
|
-
return /* @__PURE__ */ (0,
|
|
4284
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4171
4285
|
"div",
|
|
4172
4286
|
{
|
|
4173
4287
|
role: "group",
|
|
4174
4288
|
"data-slot": "input-group-addon",
|
|
4175
4289
|
"data-align": align,
|
|
4176
|
-
className: (0,
|
|
4290
|
+
className: (0, import_cn21.cn)(inputGroupAddonVariants({ align }), className),
|
|
4177
4291
|
onClick: (e) => {
|
|
4178
4292
|
if (e.target.closest("button")) {
|
|
4179
4293
|
return;
|
|
@@ -4203,16 +4317,16 @@ var inputGroupButtonVariants = (0, import_class_variance_authority14.cva)(
|
|
|
4203
4317
|
|
|
4204
4318
|
// src/primitives/command.tsx
|
|
4205
4319
|
var import_lucide_react13 = require("lucide-react");
|
|
4206
|
-
var
|
|
4320
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
4207
4321
|
function Command({
|
|
4208
4322
|
className,
|
|
4209
4323
|
...props
|
|
4210
4324
|
}) {
|
|
4211
|
-
return /* @__PURE__ */ (0,
|
|
4325
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4212
4326
|
import_cmdk.Command,
|
|
4213
4327
|
{
|
|
4214
4328
|
"data-slot": "command",
|
|
4215
|
-
className: (0,
|
|
4329
|
+
className: (0, import_cn22.cn)(
|
|
4216
4330
|
"flex size-full flex-col overflow-hidden rounded-xl! bg-popover p-1 text-popover-foreground",
|
|
4217
4331
|
className
|
|
4218
4332
|
),
|
|
@@ -4224,30 +4338,30 @@ function CommandInput({
|
|
|
4224
4338
|
className,
|
|
4225
4339
|
...props
|
|
4226
4340
|
}) {
|
|
4227
|
-
return /* @__PURE__ */ (0,
|
|
4228
|
-
/* @__PURE__ */ (0,
|
|
4341
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { "data-slot": "command-input-wrapper", className: "p-1 pb-0", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(InputGroup, { className: "h-8! rounded-lg! border-input/30 bg-input/30 shadow-none! *:data-[slot=input-group-addon]:pl-2!", children: [
|
|
4342
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4229
4343
|
import_cmdk.Command.Input,
|
|
4230
4344
|
{
|
|
4231
4345
|
"data-slot": "command-input",
|
|
4232
|
-
className: (0,
|
|
4346
|
+
className: (0, import_cn22.cn)(
|
|
4233
4347
|
"w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
|
|
4234
4348
|
className
|
|
4235
4349
|
),
|
|
4236
4350
|
...props
|
|
4237
4351
|
}
|
|
4238
4352
|
),
|
|
4239
|
-
/* @__PURE__ */ (0,
|
|
4353
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(InputGroupAddon, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react13.SearchIcon, { className: "size-4 shrink-0 opacity-50" }) })
|
|
4240
4354
|
] }) });
|
|
4241
4355
|
}
|
|
4242
4356
|
function CommandList({
|
|
4243
4357
|
className,
|
|
4244
4358
|
...props
|
|
4245
4359
|
}) {
|
|
4246
|
-
return /* @__PURE__ */ (0,
|
|
4360
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4247
4361
|
import_cmdk.Command.List,
|
|
4248
4362
|
{
|
|
4249
4363
|
"data-slot": "command-list",
|
|
4250
|
-
className: (0,
|
|
4364
|
+
className: (0, import_cn22.cn)(
|
|
4251
4365
|
"no-scrollbar max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none",
|
|
4252
4366
|
className
|
|
4253
4367
|
),
|
|
@@ -4259,11 +4373,11 @@ function CommandEmpty({
|
|
|
4259
4373
|
className,
|
|
4260
4374
|
...props
|
|
4261
4375
|
}) {
|
|
4262
|
-
return /* @__PURE__ */ (0,
|
|
4376
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4263
4377
|
import_cmdk.Command.Empty,
|
|
4264
4378
|
{
|
|
4265
4379
|
"data-slot": "command-empty",
|
|
4266
|
-
className: (0,
|
|
4380
|
+
className: (0, import_cn22.cn)("py-6 text-center text-sm", className),
|
|
4267
4381
|
...props
|
|
4268
4382
|
}
|
|
4269
4383
|
);
|
|
@@ -4272,11 +4386,11 @@ function CommandGroup({
|
|
|
4272
4386
|
className,
|
|
4273
4387
|
...props
|
|
4274
4388
|
}) {
|
|
4275
|
-
return /* @__PURE__ */ (0,
|
|
4389
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4276
4390
|
import_cmdk.Command.Group,
|
|
4277
4391
|
{
|
|
4278
4392
|
"data-slot": "command-group",
|
|
4279
|
-
className: (0,
|
|
4393
|
+
className: (0, import_cn22.cn)(
|
|
4280
4394
|
"overflow-hidden p-1 text-foreground **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground",
|
|
4281
4395
|
className
|
|
4282
4396
|
),
|
|
@@ -4289,18 +4403,18 @@ function CommandItem({
|
|
|
4289
4403
|
children,
|
|
4290
4404
|
...props
|
|
4291
4405
|
}) {
|
|
4292
|
-
return /* @__PURE__ */ (0,
|
|
4406
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
4293
4407
|
import_cmdk.Command.Item,
|
|
4294
4408
|
{
|
|
4295
4409
|
"data-slot": "command-item",
|
|
4296
|
-
className: (0,
|
|
4410
|
+
className: (0, import_cn22.cn)(
|
|
4297
4411
|
"group/command-item relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-lg! data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-selected:bg-muted data-selected:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-selected:*:[svg]:text-foreground",
|
|
4298
4412
|
className
|
|
4299
4413
|
),
|
|
4300
4414
|
...props,
|
|
4301
4415
|
children: [
|
|
4302
4416
|
children,
|
|
4303
|
-
/* @__PURE__ */ (0,
|
|
4417
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react13.CheckIcon, { className: "ml-auto opacity-0 group-has-data-[slot=command-shortcut]/command-item:hidden group-data-[checked=true]/command-item:opacity-100" })
|
|
4304
4418
|
]
|
|
4305
4419
|
}
|
|
4306
4420
|
);
|
|
@@ -4448,8 +4562,8 @@ var isEUCountry = (countryCode) => {
|
|
|
4448
4562
|
};
|
|
4449
4563
|
|
|
4450
4564
|
// src/components/country-select/CountrySelect.tsx
|
|
4451
|
-
var
|
|
4452
|
-
var CountrySelect =
|
|
4565
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
4566
|
+
var CountrySelect = React25.forwardRef(
|
|
4453
4567
|
({
|
|
4454
4568
|
value,
|
|
4455
4569
|
onValueChange,
|
|
@@ -4459,14 +4573,14 @@ var CountrySelect = React23.forwardRef(
|
|
|
4459
4573
|
align = "center",
|
|
4460
4574
|
sideOffset = 4
|
|
4461
4575
|
}, ref) => {
|
|
4462
|
-
const [open, setOpen] =
|
|
4463
|
-
const selectedCountry =
|
|
4464
|
-
return /* @__PURE__ */ (0,
|
|
4465
|
-
/* @__PURE__ */ (0,
|
|
4576
|
+
const [open, setOpen] = React25.useState(false);
|
|
4577
|
+
const selectedCountry = React25.useMemo(() => COUNTRIES.find((c) => c.code === value), [value]);
|
|
4578
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(Popover, { open, onOpenChange: setOpen, children: [
|
|
4579
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
4466
4580
|
PopoverTrigger,
|
|
4467
4581
|
{
|
|
4468
4582
|
ref,
|
|
4469
|
-
render: /* @__PURE__ */ (0,
|
|
4583
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
4470
4584
|
"button",
|
|
4471
4585
|
{
|
|
4472
4586
|
type: "button",
|
|
@@ -4488,16 +4602,16 @@ var CountrySelect = React23.forwardRef(
|
|
|
4488
4602
|
}
|
|
4489
4603
|
),
|
|
4490
4604
|
children: [
|
|
4491
|
-
/* @__PURE__ */ (0,
|
|
4492
|
-
/* @__PURE__ */ (0,
|
|
4493
|
-
/* @__PURE__ */ (0,
|
|
4494
|
-
/* @__PURE__ */ (0,
|
|
4605
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "flex items-center gap-2 min-w-0 flex-1", children: selectedCountry ? /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_jsx_runtime48.Fragment, { children: [
|
|
4606
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: "text-xl flex-shrink-0", children: selectedCountry.flag }),
|
|
4607
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: "truncate", children: selectedCountry.name }),
|
|
4608
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("span", { className: "text-berget-muted-foreground text-xs flex-shrink-0", children: [
|
|
4495
4609
|
"(",
|
|
4496
4610
|
selectedCountry.code,
|
|
4497
4611
|
")"
|
|
4498
4612
|
] })
|
|
4499
|
-
] }) : /* @__PURE__ */ (0,
|
|
4500
|
-
/* @__PURE__ */ (0,
|
|
4613
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_jsx_runtime48.Fragment, { children: [
|
|
4614
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
4501
4615
|
Icon,
|
|
4502
4616
|
{
|
|
4503
4617
|
icon: import_lucide_react14.Globe,
|
|
@@ -4505,9 +4619,9 @@ var CountrySelect = React23.forwardRef(
|
|
|
4505
4619
|
className: "flex-shrink-0 text-berget-muted-foreground"
|
|
4506
4620
|
}
|
|
4507
4621
|
),
|
|
4508
|
-
/* @__PURE__ */ (0,
|
|
4622
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: "text-berget-muted-foreground truncate", children: placeholder })
|
|
4509
4623
|
] }) }),
|
|
4510
|
-
/* @__PURE__ */ (0,
|
|
4624
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
4511
4625
|
Icon,
|
|
4512
4626
|
{
|
|
4513
4627
|
icon: import_lucide_react14.ChevronDown,
|
|
@@ -4522,17 +4636,17 @@ var CountrySelect = React23.forwardRef(
|
|
|
4522
4636
|
]
|
|
4523
4637
|
}
|
|
4524
4638
|
),
|
|
4525
|
-
/* @__PURE__ */ (0,
|
|
4639
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
4526
4640
|
PopoverContent,
|
|
4527
4641
|
{
|
|
4528
4642
|
align,
|
|
4529
4643
|
sideOffset,
|
|
4530
4644
|
className: "w-[var(--radix-popover-trigger-width)] p-0",
|
|
4531
|
-
children: /* @__PURE__ */ (0,
|
|
4532
|
-
/* @__PURE__ */ (0,
|
|
4533
|
-
/* @__PURE__ */ (0,
|
|
4534
|
-
/* @__PURE__ */ (0,
|
|
4535
|
-
/* @__PURE__ */ (0,
|
|
4645
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(Command, { children: [
|
|
4646
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(CommandInput, { placeholder: "Search country..." }),
|
|
4647
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(CommandList, { children: [
|
|
4648
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(CommandEmpty, { children: "No countries found." }),
|
|
4649
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(CommandGroup, { children: COUNTRIES.map((country) => /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
4536
4650
|
CommandItem,
|
|
4537
4651
|
{
|
|
4538
4652
|
value: `${country.name} ${country.code}`,
|
|
@@ -4546,12 +4660,12 @@ var CountrySelect = React23.forwardRef(
|
|
|
4546
4660
|
value === country.code && "bg-berget-brand-granite-800/40"
|
|
4547
4661
|
),
|
|
4548
4662
|
children: [
|
|
4549
|
-
/* @__PURE__ */ (0,
|
|
4550
|
-
/* @__PURE__ */ (0,
|
|
4551
|
-
/* @__PURE__ */ (0,
|
|
4552
|
-
/* @__PURE__ */ (0,
|
|
4663
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: "text-xl flex-shrink-0", children: country.flag }),
|
|
4664
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex-1 min-w-0", children: [
|
|
4665
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "text-sm truncate", children: country.name }),
|
|
4666
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "text-xs text-berget-muted-foreground", children: country.code })
|
|
4553
4667
|
] }),
|
|
4554
|
-
value === country.code && /* @__PURE__ */ (0,
|
|
4668
|
+
value === country.code && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "w-2 h-2 rounded-full bg-berget-brand-granite-400 flex-shrink-0" })
|
|
4555
4669
|
]
|
|
4556
4670
|
},
|
|
4557
4671
|
country.code
|
|
@@ -4566,14 +4680,14 @@ var CountrySelect = React23.forwardRef(
|
|
|
4566
4680
|
CountrySelect.displayName = "CountrySelect";
|
|
4567
4681
|
|
|
4568
4682
|
// src/primitives/label.tsx
|
|
4569
|
-
var
|
|
4570
|
-
var
|
|
4683
|
+
var import_cn23 = require("cn");
|
|
4684
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
4571
4685
|
function Label({ className, ...props }) {
|
|
4572
|
-
return /* @__PURE__ */ (0,
|
|
4686
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
4573
4687
|
"label",
|
|
4574
4688
|
{
|
|
4575
4689
|
"data-slot": "label",
|
|
4576
|
-
className: (0,
|
|
4690
|
+
className: (0, import_cn23.cn)(
|
|
4577
4691
|
"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
|
|
4578
4692
|
className
|
|
4579
4693
|
),
|
|
@@ -4585,14 +4699,14 @@ function Label({ className, ...props }) {
|
|
|
4585
4699
|
// src/primitives/field.tsx
|
|
4586
4700
|
var import_react = require("react");
|
|
4587
4701
|
var import_class_variance_authority15 = require("class-variance-authority");
|
|
4588
|
-
var
|
|
4589
|
-
var
|
|
4702
|
+
var import_cn24 = require("cn");
|
|
4703
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
4590
4704
|
function FieldSet({ className, ...props }) {
|
|
4591
|
-
return /* @__PURE__ */ (0,
|
|
4705
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
4592
4706
|
"fieldset",
|
|
4593
4707
|
{
|
|
4594
4708
|
"data-slot": "field-set",
|
|
4595
|
-
className: (0,
|
|
4709
|
+
className: (0, import_cn24.cn)(
|
|
4596
4710
|
"flex flex-col gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3",
|
|
4597
4711
|
className
|
|
4598
4712
|
),
|
|
@@ -4605,12 +4719,12 @@ function FieldLegend({
|
|
|
4605
4719
|
variant = "legend",
|
|
4606
4720
|
...props
|
|
4607
4721
|
}) {
|
|
4608
|
-
return /* @__PURE__ */ (0,
|
|
4722
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
4609
4723
|
"legend",
|
|
4610
4724
|
{
|
|
4611
4725
|
"data-slot": "field-legend",
|
|
4612
4726
|
"data-variant": variant,
|
|
4613
|
-
className: (0,
|
|
4727
|
+
className: (0, import_cn24.cn)(
|
|
4614
4728
|
"mb-1.5 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base",
|
|
4615
4729
|
className
|
|
4616
4730
|
),
|
|
@@ -4619,11 +4733,11 @@ function FieldLegend({
|
|
|
4619
4733
|
);
|
|
4620
4734
|
}
|
|
4621
4735
|
function FieldGroup({ className, ...props }) {
|
|
4622
|
-
return /* @__PURE__ */ (0,
|
|
4736
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
4623
4737
|
"div",
|
|
4624
4738
|
{
|
|
4625
4739
|
"data-slot": "field-group",
|
|
4626
|
-
className: (0,
|
|
4740
|
+
className: (0, import_cn24.cn)(
|
|
4627
4741
|
"group/field-group @container/field-group flex w-full flex-col gap-5 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4",
|
|
4628
4742
|
className
|
|
4629
4743
|
),
|
|
@@ -4651,23 +4765,23 @@ function Field({
|
|
|
4651
4765
|
orientation = "vertical",
|
|
4652
4766
|
...props
|
|
4653
4767
|
}) {
|
|
4654
|
-
return /* @__PURE__ */ (0,
|
|
4768
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
4655
4769
|
"div",
|
|
4656
4770
|
{
|
|
4657
4771
|
role: "group",
|
|
4658
4772
|
"data-slot": "field",
|
|
4659
4773
|
"data-orientation": orientation,
|
|
4660
|
-
className: (0,
|
|
4774
|
+
className: (0, import_cn24.cn)(fieldVariants({ orientation }), className),
|
|
4661
4775
|
...props
|
|
4662
4776
|
}
|
|
4663
4777
|
);
|
|
4664
4778
|
}
|
|
4665
4779
|
function FieldContent({ className, ...props }) {
|
|
4666
|
-
return /* @__PURE__ */ (0,
|
|
4780
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
4667
4781
|
"div",
|
|
4668
4782
|
{
|
|
4669
4783
|
"data-slot": "field-content",
|
|
4670
|
-
className: (0,
|
|
4784
|
+
className: (0, import_cn24.cn)(
|
|
4671
4785
|
"group/field-content flex flex-1 flex-col gap-0.5 leading-snug",
|
|
4672
4786
|
className
|
|
4673
4787
|
),
|
|
@@ -4679,11 +4793,11 @@ function FieldLabel({
|
|
|
4679
4793
|
className,
|
|
4680
4794
|
...props
|
|
4681
4795
|
}) {
|
|
4682
|
-
return /* @__PURE__ */ (0,
|
|
4796
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
4683
4797
|
Label,
|
|
4684
4798
|
{
|
|
4685
4799
|
"data-slot": "field-label",
|
|
4686
|
-
className: (0,
|
|
4800
|
+
className: (0, import_cn24.cn)(
|
|
4687
4801
|
"group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border has-[>[data-slot=field]]:not-has-[:disabled,[data-disabled]]:hover:bg-muted/50 has-[>[data-slot=field]]:has-[:focus-visible]:border-ring has-[>[data-slot=field]]:has-[:focus-visible]:ring-3 has-[>[data-slot=field]]:has-[:focus-visible]:ring-ring/50 *:data-[slot=field]:p-2.5 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10",
|
|
4688
4802
|
"has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col",
|
|
4689
4803
|
className
|
|
@@ -4693,11 +4807,11 @@ function FieldLabel({
|
|
|
4693
4807
|
);
|
|
4694
4808
|
}
|
|
4695
4809
|
function FieldTitle({ className, ...props }) {
|
|
4696
|
-
return /* @__PURE__ */ (0,
|
|
4810
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
4697
4811
|
"div",
|
|
4698
4812
|
{
|
|
4699
4813
|
"data-slot": "field-label",
|
|
4700
|
-
className: (0,
|
|
4814
|
+
className: (0, import_cn24.cn)(
|
|
4701
4815
|
"flex w-fit items-center gap-2 text-sm font-medium group-data-[disabled=true]/field:opacity-50",
|
|
4702
4816
|
className
|
|
4703
4817
|
),
|
|
@@ -4706,11 +4820,11 @@ function FieldTitle({ className, ...props }) {
|
|
|
4706
4820
|
);
|
|
4707
4821
|
}
|
|
4708
4822
|
function FieldDescription({ className, ...props }) {
|
|
4709
|
-
return /* @__PURE__ */ (0,
|
|
4823
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
4710
4824
|
"p",
|
|
4711
4825
|
{
|
|
4712
4826
|
"data-slot": "field-description",
|
|
4713
|
-
className: (0,
|
|
4827
|
+
className: (0, import_cn24.cn)(
|
|
4714
4828
|
"text-left text-sm leading-normal font-normal text-muted-foreground group-has-data-horizontal/field:text-balance [[data-variant=legend]+&]:-mt-1.5",
|
|
4715
4829
|
"last:mt-0 nth-last-2:-mt-1",
|
|
4716
4830
|
"[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",
|
|
@@ -4725,19 +4839,19 @@ function FieldSeparator({
|
|
|
4725
4839
|
className,
|
|
4726
4840
|
...props
|
|
4727
4841
|
}) {
|
|
4728
|
-
return /* @__PURE__ */ (0,
|
|
4842
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
|
|
4729
4843
|
"div",
|
|
4730
4844
|
{
|
|
4731
4845
|
"data-slot": "field-separator",
|
|
4732
4846
|
"data-content": !!children,
|
|
4733
|
-
className: (0,
|
|
4847
|
+
className: (0, import_cn24.cn)(
|
|
4734
4848
|
"relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2",
|
|
4735
4849
|
className
|
|
4736
4850
|
),
|
|
4737
4851
|
...props,
|
|
4738
4852
|
children: [
|
|
4739
|
-
/* @__PURE__ */ (0,
|
|
4740
|
-
children && /* @__PURE__ */ (0,
|
|
4853
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Separator, { className: "absolute inset-0 top-1/2" }),
|
|
4854
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
4741
4855
|
"span",
|
|
4742
4856
|
{
|
|
4743
4857
|
className: "relative mx-auto block w-fit bg-background px-2 text-muted-foreground",
|
|
@@ -4768,19 +4882,19 @@ function FieldError({
|
|
|
4768
4882
|
if (uniqueErrors?.length == 1) {
|
|
4769
4883
|
return uniqueErrors[0]?.message;
|
|
4770
4884
|
}
|
|
4771
|
-
return /* @__PURE__ */ (0,
|
|
4772
|
-
(error, index) => error?.message && /* @__PURE__ */ (0,
|
|
4885
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: uniqueErrors.map(
|
|
4886
|
+
(error, index) => error?.message && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("li", { children: error.message }, index)
|
|
4773
4887
|
) });
|
|
4774
4888
|
}, [children, errors]);
|
|
4775
4889
|
if (!content) {
|
|
4776
4890
|
return null;
|
|
4777
4891
|
}
|
|
4778
|
-
return /* @__PURE__ */ (0,
|
|
4892
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
4779
4893
|
"div",
|
|
4780
4894
|
{
|
|
4781
4895
|
role: "alert",
|
|
4782
4896
|
"data-slot": "field-error",
|
|
4783
|
-
className: (0,
|
|
4897
|
+
className: (0, import_cn24.cn)("text-sm font-normal text-destructive", className),
|
|
4784
4898
|
...props,
|
|
4785
4899
|
children: content
|
|
4786
4900
|
}
|
|
@@ -4788,10 +4902,10 @@ function FieldError({
|
|
|
4788
4902
|
}
|
|
4789
4903
|
|
|
4790
4904
|
// src/components/link/Link.tsx
|
|
4791
|
-
var
|
|
4905
|
+
var React26 = __toESM(require("react"), 1);
|
|
4792
4906
|
var import_class_variance_authority16 = require("class-variance-authority");
|
|
4793
4907
|
var import_lucide_react15 = require("lucide-react");
|
|
4794
|
-
var
|
|
4908
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
4795
4909
|
var linkVariants = (0, import_class_variance_authority16.cva)(
|
|
4796
4910
|
"inline-flex cursor-pointer items-center gap-2 transition-all duration-200 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50",
|
|
4797
4911
|
{
|
|
@@ -4816,7 +4930,7 @@ var linkVariants = (0, import_class_variance_authority16.cva)(
|
|
|
4816
4930
|
}
|
|
4817
4931
|
}
|
|
4818
4932
|
);
|
|
4819
|
-
var Link =
|
|
4933
|
+
var Link = React26.forwardRef(
|
|
4820
4934
|
({
|
|
4821
4935
|
className,
|
|
4822
4936
|
variant,
|
|
@@ -4829,7 +4943,7 @@ var Link = React24.forwardRef(
|
|
|
4829
4943
|
...props
|
|
4830
4944
|
}, ref) => {
|
|
4831
4945
|
const isExternal = external || typeof props.href === "string" && (props.href.startsWith("http://") || props.href.startsWith("https://") || props.href.startsWith("mailto:") || props.href.startsWith("tel:"));
|
|
4832
|
-
return /* @__PURE__ */ (0,
|
|
4946
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
4833
4947
|
"a",
|
|
4834
4948
|
{
|
|
4835
4949
|
ref,
|
|
@@ -4845,8 +4959,8 @@ var Link = React24.forwardRef(
|
|
|
4845
4959
|
},
|
|
4846
4960
|
children: [
|
|
4847
4961
|
children,
|
|
4848
|
-
icon && /* @__PURE__ */ (0,
|
|
4849
|
-
showExternalIcon && isExternal && !disabled && /* @__PURE__ */ (0,
|
|
4962
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "inline-flex items-center", children: icon }),
|
|
4963
|
+
showExternalIcon && isExternal && !disabled && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "inline-flex items-center ml-1 opacity-60", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Icon, { icon: import_lucide_react15.ExternalLink, size: 16 }) })
|
|
4850
4964
|
]
|
|
4851
4965
|
}
|
|
4852
4966
|
);
|
|
@@ -4855,7 +4969,7 @@ var Link = React24.forwardRef(
|
|
|
4855
4969
|
Link.displayName = "Link";
|
|
4856
4970
|
|
|
4857
4971
|
// src/components/container/Container.tsx
|
|
4858
|
-
var
|
|
4972
|
+
var React27 = __toESM(require("react"), 1);
|
|
4859
4973
|
var import_merge_props3 = require("@base-ui/react/merge-props");
|
|
4860
4974
|
var import_use_render3 = require("@base-ui/react/use-render");
|
|
4861
4975
|
var import_class_variance_authority17 = require("class-variance-authority");
|
|
@@ -4880,7 +4994,7 @@ var containerVariants = (0, import_class_variance_authority17.cva)("w-full mx-au
|
|
|
4880
4994
|
padding: "md"
|
|
4881
4995
|
}
|
|
4882
4996
|
});
|
|
4883
|
-
var Container =
|
|
4997
|
+
var Container = React27.forwardRef(
|
|
4884
4998
|
({ className, size, padding, asChild = false, children, ...props }, ref) => {
|
|
4885
4999
|
return (0, import_use_render3.useRender)({
|
|
4886
5000
|
ref,
|
|
@@ -4899,7 +5013,7 @@ var Container = React25.forwardRef(
|
|
|
4899
5013
|
Container.displayName = "Container";
|
|
4900
5014
|
|
|
4901
5015
|
// src/components/grid/Grid.tsx
|
|
4902
|
-
var
|
|
5016
|
+
var React28 = __toESM(require("react"), 1);
|
|
4903
5017
|
var import_class_variance_authority18 = require("class-variance-authority");
|
|
4904
5018
|
var import_merge_props4 = require("@base-ui/react/merge-props");
|
|
4905
5019
|
var import_use_render4 = require("@base-ui/react/use-render");
|
|
@@ -4925,7 +5039,7 @@ var gridVariants = (0, import_class_variance_authority18.cva)("grid", {
|
|
|
4925
5039
|
justify: "start"
|
|
4926
5040
|
}
|
|
4927
5041
|
});
|
|
4928
|
-
var Grid =
|
|
5042
|
+
var Grid = React28.forwardRef(
|
|
4929
5043
|
({ className, align, justify, cols, rows, gap, gapX, gapY, asChild = false, children, ...props }, ref) => {
|
|
4930
5044
|
return (0, import_use_render4.useRender)({
|
|
4931
5045
|
ref,
|
|
@@ -4952,7 +5066,7 @@ var Grid = React26.forwardRef(
|
|
|
4952
5066
|
Grid.displayName = "Grid";
|
|
4953
5067
|
|
|
4954
5068
|
// src/components/box/Box.tsx
|
|
4955
|
-
var
|
|
5069
|
+
var React29 = __toESM(require("react"), 1);
|
|
4956
5070
|
var import_class_variance_authority19 = require("class-variance-authority");
|
|
4957
5071
|
var import_merge_props5 = require("@base-ui/react/merge-props");
|
|
4958
5072
|
var import_use_render5 = require("@base-ui/react/use-render");
|
|
@@ -4992,7 +5106,7 @@ var boxVariants = (0, import_class_variance_authority19.cva)("flex", {
|
|
|
4992
5106
|
wrap: "nowrap"
|
|
4993
5107
|
}
|
|
4994
5108
|
});
|
|
4995
|
-
var Box =
|
|
5109
|
+
var Box = React29.forwardRef(
|
|
4996
5110
|
({ className, direction, align, justify, wrap, gap, asChild = false, children, ...props }, ref) => {
|
|
4997
5111
|
return (0, import_use_render5.useRender)({
|
|
4998
5112
|
ref,
|
|
@@ -5015,22 +5129,22 @@ var Box = React27.forwardRef(
|
|
|
5015
5129
|
Box.displayName = "Box";
|
|
5016
5130
|
|
|
5017
5131
|
// src/components/language-select/LanguageSelect.tsx
|
|
5018
|
-
var
|
|
5132
|
+
var React30 = __toESM(require("react"), 1);
|
|
5019
5133
|
var import_lucide_react16 = require("lucide-react");
|
|
5020
|
-
var
|
|
5021
|
-
var LanguageSelect =
|
|
5134
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
5135
|
+
var LanguageSelect = React30.forwardRef(
|
|
5022
5136
|
({ className, options, value, onValueChange }, ref) => {
|
|
5023
|
-
return /* @__PURE__ */ (0,
|
|
5024
|
-
/* @__PURE__ */ (0,
|
|
5025
|
-
/* @__PURE__ */ (0,
|
|
5026
|
-
/* @__PURE__ */ (0,
|
|
5137
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(DropdownMenu, { children: [
|
|
5138
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(DropdownMenuTrigger2, { ref, asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(Button2, { variant: "outline", size: "icon", className, "aria-label": "Select language", children: [
|
|
5139
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: "sr-only", children: "Select language" }),
|
|
5140
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Icon, { icon: import_lucide_react16.Globe, size: 16, "aria-hidden": true })
|
|
5027
5141
|
] }) }),
|
|
5028
|
-
/* @__PURE__ */ (0,
|
|
5142
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(DropdownMenuContent2, { align: "start", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
5029
5143
|
DropdownMenuRadioGroup,
|
|
5030
5144
|
{
|
|
5031
5145
|
value,
|
|
5032
5146
|
onValueChange: onValueChange ? (v) => onValueChange(v) : void 0,
|
|
5033
|
-
children: options.map((option) => /* @__PURE__ */ (0,
|
|
5147
|
+
children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
5034
5148
|
DropdownMenuRadioItem2,
|
|
5035
5149
|
{
|
|
5036
5150
|
value: option.value,
|
|
@@ -5048,12 +5162,12 @@ var LanguageSelect = React28.forwardRef(
|
|
|
5048
5162
|
LanguageSelect.displayName = "LanguageSelect";
|
|
5049
5163
|
|
|
5050
5164
|
// src/components/list/List.tsx
|
|
5051
|
-
var
|
|
5165
|
+
var React32 = __toESM(require("react"), 1);
|
|
5052
5166
|
|
|
5053
5167
|
// src/components/divider/Divider.tsx
|
|
5054
|
-
var
|
|
5168
|
+
var React31 = __toESM(require("react"), 1);
|
|
5055
5169
|
var import_class_variance_authority20 = require("class-variance-authority");
|
|
5056
|
-
var
|
|
5170
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
5057
5171
|
var dividerVariants = (0, import_class_variance_authority20.cva)("", {
|
|
5058
5172
|
variants: {
|
|
5059
5173
|
variant: {
|
|
@@ -5074,7 +5188,7 @@ var dividerVariants = (0, import_class_variance_authority20.cva)("", {
|
|
|
5074
5188
|
size: "thin"
|
|
5075
5189
|
}
|
|
5076
5190
|
});
|
|
5077
|
-
var Divider =
|
|
5191
|
+
var Divider = React31.forwardRef(
|
|
5078
5192
|
({
|
|
5079
5193
|
className,
|
|
5080
5194
|
orientation = "horizontal",
|
|
@@ -5085,16 +5199,16 @@ var Divider = React29.forwardRef(
|
|
|
5085
5199
|
...props
|
|
5086
5200
|
}, ref) => {
|
|
5087
5201
|
if (label) {
|
|
5088
|
-
return /* @__PURE__ */ (0,
|
|
5089
|
-
labelPosition !== "right" && /* @__PURE__ */ (0,
|
|
5202
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { ref, className: cn("flex items-center w-full", className), ...props, children: [
|
|
5203
|
+
labelPosition !== "right" && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5090
5204
|
Separator,
|
|
5091
5205
|
{
|
|
5092
5206
|
orientation: "horizontal",
|
|
5093
5207
|
className: cn(dividerVariants({ variant, size }), "flex-1")
|
|
5094
5208
|
}
|
|
5095
5209
|
),
|
|
5096
|
-
/* @__PURE__ */ (0,
|
|
5097
|
-
labelPosition !== "left" && /* @__PURE__ */ (0,
|
|
5210
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Typography, { variant: "small", color: "muted", className: "px-4 whitespace-nowrap", children: label }),
|
|
5211
|
+
labelPosition !== "left" && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5098
5212
|
Separator,
|
|
5099
5213
|
{
|
|
5100
5214
|
orientation: "horizontal",
|
|
@@ -5103,7 +5217,7 @@ var Divider = React29.forwardRef(
|
|
|
5103
5217
|
)
|
|
5104
5218
|
] });
|
|
5105
5219
|
}
|
|
5106
|
-
return /* @__PURE__ */ (0,
|
|
5220
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5107
5221
|
Separator,
|
|
5108
5222
|
{
|
|
5109
5223
|
ref,
|
|
@@ -5121,19 +5235,19 @@ Divider.displayName = "Divider";
|
|
|
5121
5235
|
|
|
5122
5236
|
// src/components/list/List.tsx
|
|
5123
5237
|
var import_lucide_react17 = require("lucide-react");
|
|
5124
|
-
var
|
|
5125
|
-
var List =
|
|
5238
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
5239
|
+
var List = React32.forwardRef(
|
|
5126
5240
|
({ className, children, ...props }, ref) => {
|
|
5127
|
-
const childrenArray =
|
|
5128
|
-
return /* @__PURE__ */ (0,
|
|
5241
|
+
const childrenArray = React32.Children.toArray(children);
|
|
5242
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { ref, className: cn("flex flex-col", className), ...props, children: childrenArray.map((child, index) => /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(React32.Fragment, { children: [
|
|
5129
5243
|
child,
|
|
5130
|
-
index < childrenArray.length - 1 && /* @__PURE__ */ (0,
|
|
5244
|
+
index < childrenArray.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Divider, { variant: "subtle" })
|
|
5131
5245
|
] }, index)) });
|
|
5132
5246
|
}
|
|
5133
5247
|
);
|
|
5134
5248
|
List.displayName = "List";
|
|
5135
|
-
var ListItem =
|
|
5136
|
-
({ className, icon, children, interactive = true, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5249
|
+
var ListItem = React32.forwardRef(
|
|
5250
|
+
({ className, icon, children, interactive = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
5137
5251
|
"div",
|
|
5138
5252
|
{
|
|
5139
5253
|
ref,
|
|
@@ -5144,15 +5258,15 @@ var ListItem = React30.forwardRef(
|
|
|
5144
5258
|
),
|
|
5145
5259
|
...props,
|
|
5146
5260
|
children: [
|
|
5147
|
-
icon && /* @__PURE__ */ (0,
|
|
5148
|
-
/* @__PURE__ */ (0,
|
|
5261
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "flex-shrink-0 flex items-center justify-center", children: icon }),
|
|
5262
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "flex-1 min-w-0", children })
|
|
5149
5263
|
]
|
|
5150
5264
|
}
|
|
5151
5265
|
)
|
|
5152
5266
|
);
|
|
5153
5267
|
ListItem.displayName = "ListItem";
|
|
5154
|
-
var ListHeader =
|
|
5155
|
-
({ className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5268
|
+
var ListHeader = React32.forwardRef(
|
|
5269
|
+
({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
5156
5270
|
"div",
|
|
5157
5271
|
{
|
|
5158
5272
|
ref,
|
|
@@ -5163,11 +5277,11 @@ var ListHeader = React30.forwardRef(
|
|
|
5163
5277
|
)
|
|
5164
5278
|
);
|
|
5165
5279
|
ListHeader.displayName = "ListHeader";
|
|
5166
|
-
var FeatureList =
|
|
5280
|
+
var FeatureList = React32.forwardRef(
|
|
5167
5281
|
({ items, variant = "bullet", className, ...props }, ref) => {
|
|
5168
|
-
return /* @__PURE__ */ (0,
|
|
5169
|
-
variant === "bullet" ? /* @__PURE__ */ (0,
|
|
5170
|
-
/* @__PURE__ */ (0,
|
|
5282
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("ul", { ref, className: cn("flex flex-col gap-fluid-md", className), ...props, children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("li", { className: "flex items-start gap-fluid-md", children: [
|
|
5283
|
+
variant === "bullet" ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "w-1.5 h-1.5 rounded-full bg-berget-icon-muted flex-shrink-0 mt-2" }) : /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "flex-shrink-0 mt-0.5", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icon, { icon: import_lucide_react17.Check, size: 24, className: "text-berget-logo-light" }) }),
|
|
5284
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Typography, { variant: "body", color: "muted", children: item })
|
|
5171
5285
|
] }, index)) });
|
|
5172
5286
|
}
|
|
5173
5287
|
);
|
|
@@ -5216,7 +5330,7 @@ function getHighlighter() {
|
|
|
5216
5330
|
}
|
|
5217
5331
|
|
|
5218
5332
|
// src/components/code-block/CodeBlock.tsx
|
|
5219
|
-
var
|
|
5333
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
5220
5334
|
function CodeBlock({ code, language = "text", title, className }) {
|
|
5221
5335
|
const [html, setHtml] = (0, import_react2.useState)(null);
|
|
5222
5336
|
const [copied, setCopied] = (0, import_react2.useState)(false);
|
|
@@ -5232,16 +5346,16 @@ function CodeBlock({ code, language = "text", title, className }) {
|
|
|
5232
5346
|
setCopied(true);
|
|
5233
5347
|
setTimeout(() => setCopied(false), 2e3);
|
|
5234
5348
|
}, [code]);
|
|
5235
|
-
const copyButton = /* @__PURE__ */ (0,
|
|
5349
|
+
const copyButton = /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
5236
5350
|
"button",
|
|
5237
5351
|
{
|
|
5238
5352
|
onClick: handleCopy,
|
|
5239
5353
|
className: "flex items-center justify-center w-6 h-6 text-berget-muted-foreground hover:text-berget-foreground transition-colors",
|
|
5240
5354
|
"aria-label": "Copy code",
|
|
5241
|
-
children: copied ? /* @__PURE__ */ (0,
|
|
5355
|
+
children: copied ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_lucide_react18.Check, { className: "w-3.5 h-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_lucide_react18.Copy, { className: "w-3.5 h-3.5" })
|
|
5242
5356
|
}
|
|
5243
5357
|
);
|
|
5244
|
-
return /* @__PURE__ */ (0,
|
|
5358
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
5245
5359
|
"div",
|
|
5246
5360
|
{
|
|
5247
5361
|
className: cn(
|
|
@@ -5249,25 +5363,25 @@ function CodeBlock({ code, language = "text", title, className }) {
|
|
|
5249
5363
|
className
|
|
5250
5364
|
),
|
|
5251
5365
|
children: [
|
|
5252
|
-
title && /* @__PURE__ */ (0,
|
|
5253
|
-
/* @__PURE__ */ (0,
|
|
5254
|
-
html ? /* @__PURE__ */ (0,
|
|
5366
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "!h-10 flex items-center !px-4 !text-xs !leading-normal border-b border-berget-border bg-berget-codeblock-header-bg", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "text-berget-muted-foreground", children: title }) }),
|
|
5367
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "absolute right-2 top-2 z-10", children: copyButton }),
|
|
5368
|
+
html ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
5255
5369
|
"div",
|
|
5256
5370
|
{
|
|
5257
5371
|
className: "[&_.shiki]:!p-4 [&_.shiki]:!m-0 [&_.shiki]:overflow-x-auto [&_.shiki]:!text-sm [&_.shiki]:!leading-relaxed [&_.shiki]:bg-transparent",
|
|
5258
5372
|
dangerouslySetInnerHTML: { __html: html }
|
|
5259
5373
|
}
|
|
5260
|
-
) : /* @__PURE__ */ (0,
|
|
5374
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("pre", { className: "!p-4 !m-0 overflow-x-auto !text-sm !leading-relaxed text-berget-muted-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("code", { children: code }) })
|
|
5261
5375
|
]
|
|
5262
5376
|
}
|
|
5263
5377
|
);
|
|
5264
5378
|
}
|
|
5265
5379
|
|
|
5266
5380
|
// src/components/window-frame/WindowFrame.tsx
|
|
5267
|
-
var
|
|
5381
|
+
var React33 = __toESM(require("react"), 1);
|
|
5268
5382
|
var import_react3 = require("react");
|
|
5269
|
-
var
|
|
5270
|
-
var WindowFrame =
|
|
5383
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
5384
|
+
var WindowFrame = React33.forwardRef(
|
|
5271
5385
|
({ title = "window", tabs, activeTab, onTabChange, children, className, ...props }, ref) => {
|
|
5272
5386
|
const [internalActive, setInternalActive] = (0, import_react3.useState)(tabs?.[0]?.id ?? "");
|
|
5273
5387
|
const currentTab = activeTab ?? internalActive;
|
|
@@ -5278,7 +5392,7 @@ var WindowFrame = React31.forwardRef(
|
|
|
5278
5392
|
setInternalActive(id);
|
|
5279
5393
|
}
|
|
5280
5394
|
};
|
|
5281
|
-
return /* @__PURE__ */ (0,
|
|
5395
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
5282
5396
|
"div",
|
|
5283
5397
|
{
|
|
5284
5398
|
ref,
|
|
@@ -5288,13 +5402,13 @@ var WindowFrame = React31.forwardRef(
|
|
|
5288
5402
|
),
|
|
5289
5403
|
...props,
|
|
5290
5404
|
children: [
|
|
5291
|
-
/* @__PURE__ */ (0,
|
|
5292
|
-
/* @__PURE__ */ (0,
|
|
5293
|
-
/* @__PURE__ */ (0,
|
|
5294
|
-
/* @__PURE__ */ (0,
|
|
5295
|
-
/* @__PURE__ */ (0,
|
|
5405
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex items-center gap-2 px-4 py-3 border-b border-berget-brand-granite-700 bg-berget-brand-granite-900", children: [
|
|
5406
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex items-center gap-2 flex-shrink-0", children: [
|
|
5407
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "w-3 h-3 rounded-full bg-berget-brand-muscaria-400" }),
|
|
5408
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "w-3 h-3 rounded-full bg-berget-brand-chanterelle-200" }),
|
|
5409
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "w-3 h-3 rounded-full bg-berget-brand-moss-400" })
|
|
5296
5410
|
] }),
|
|
5297
|
-
tabs && tabs.length > 0 ? /* @__PURE__ */ (0,
|
|
5411
|
+
tabs && tabs.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "ml-4 flex items-center gap-1", children: tabs.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
5298
5412
|
"button",
|
|
5299
5413
|
{
|
|
5300
5414
|
type: "button",
|
|
@@ -5306,9 +5420,9 @@ var WindowFrame = React31.forwardRef(
|
|
|
5306
5420
|
children: tab.label
|
|
5307
5421
|
},
|
|
5308
5422
|
tab.id
|
|
5309
|
-
)) }) : /* @__PURE__ */ (0,
|
|
5423
|
+
)) }) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "ml-4 text-sm font-mono text-berget-brand-moss-400", children: title })
|
|
5310
5424
|
] }),
|
|
5311
|
-
/* @__PURE__ */ (0,
|
|
5425
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { children })
|
|
5312
5426
|
]
|
|
5313
5427
|
}
|
|
5314
5428
|
);
|
|
@@ -5318,7 +5432,7 @@ WindowFrame.displayName = "WindowFrame";
|
|
|
5318
5432
|
|
|
5319
5433
|
// src/components/fog-illustration/FogIllustration.tsx
|
|
5320
5434
|
var import_react4 = require("react");
|
|
5321
|
-
var
|
|
5435
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
5322
5436
|
var FOG_BRAND_PALETTE = {
|
|
5323
5437
|
ink: "#171a1a",
|
|
5324
5438
|
milk: "#f7f5ed",
|
|
@@ -5631,7 +5745,7 @@ var FogIllustration = ({ palette, speed = 1, className }) => {
|
|
|
5631
5745
|
gl.deleteFramebuffer(fbo);
|
|
5632
5746
|
};
|
|
5633
5747
|
}, []);
|
|
5634
|
-
return /* @__PURE__ */ (0,
|
|
5748
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("canvas", { ref, "aria-hidden": "true", className: cn("size-full", className) });
|
|
5635
5749
|
};
|
|
5636
5750
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5637
5751
|
0 && (module.exports = {
|
|
@@ -5739,6 +5853,11 @@ var FogIllustration = ({ palette, speed = 1, className }) => {
|
|
|
5739
5853
|
NavigationMenuList,
|
|
5740
5854
|
NavigationMenuPositioner,
|
|
5741
5855
|
NavigationMenuTrigger,
|
|
5856
|
+
Progress,
|
|
5857
|
+
ProgressIndicator,
|
|
5858
|
+
ProgressLabel,
|
|
5859
|
+
ProgressTrack,
|
|
5860
|
+
ProgressValue,
|
|
5742
5861
|
SearchInput,
|
|
5743
5862
|
Select,
|
|
5744
5863
|
SelectContent,
|
|
@@ -5775,6 +5894,7 @@ var FogIllustration = ({ palette, speed = 1, className }) => {
|
|
|
5775
5894
|
SidebarRail,
|
|
5776
5895
|
SidebarSeparator,
|
|
5777
5896
|
SidebarTrigger,
|
|
5897
|
+
Skeleton,
|
|
5778
5898
|
Switch,
|
|
5779
5899
|
Table,
|
|
5780
5900
|
TableBody,
|