@bergetai/ui 0.13.6 → 0.14.0
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 +482 -470
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +440 -429
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -170,6 +170,7 @@ __export(src_exports, {
|
|
|
170
170
|
SidebarRail: () => SidebarRail,
|
|
171
171
|
SidebarSeparator: () => SidebarSeparator,
|
|
172
172
|
SidebarTrigger: () => SidebarTrigger,
|
|
173
|
+
Skeleton: () => Skeleton2,
|
|
173
174
|
Switch: () => Switch,
|
|
174
175
|
Table: () => Table2,
|
|
175
176
|
TableBody: () => TableBody2,
|
|
@@ -1299,19 +1300,43 @@ var Alert2 = React10.forwardRef(
|
|
|
1299
1300
|
);
|
|
1300
1301
|
Alert2.displayName = "Alert";
|
|
1301
1302
|
|
|
1302
|
-
// src/components/
|
|
1303
|
+
// src/components/skeleton/Skeleton.tsx
|
|
1303
1304
|
var React11 = __toESM(require("react"), 1);
|
|
1305
|
+
|
|
1306
|
+
// src/primitives/skeleton.tsx
|
|
1307
|
+
var import_cn4 = require("cn");
|
|
1308
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
1309
|
+
function Skeleton({ className, ...props }) {
|
|
1310
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1311
|
+
"div",
|
|
1312
|
+
{
|
|
1313
|
+
"data-slot": "skeleton",
|
|
1314
|
+
className: (0, import_cn4.cn)("animate-pulse rounded-md bg-muted", className),
|
|
1315
|
+
...props
|
|
1316
|
+
}
|
|
1317
|
+
);
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
// src/components/skeleton/Skeleton.tsx
|
|
1321
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
1322
|
+
var Skeleton2 = React11.forwardRef(({ className, ...props }, ref) => {
|
|
1323
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Skeleton, { ref, className: cn("bg-berget-surface-02", className), ...props });
|
|
1324
|
+
});
|
|
1325
|
+
Skeleton2.displayName = "Skeleton";
|
|
1326
|
+
|
|
1327
|
+
// src/components/dialog/Dialog.tsx
|
|
1328
|
+
var React12 = __toESM(require("react"), 1);
|
|
1304
1329
|
var import_dialog = require("@base-ui/react/dialog");
|
|
1305
1330
|
var import_lucide_react2 = require("lucide-react");
|
|
1306
|
-
var
|
|
1331
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
1307
1332
|
var Dialog = import_dialog.Dialog.Root;
|
|
1308
|
-
var DialogTrigger =
|
|
1309
|
-
({ asChild, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1333
|
+
var DialogTrigger = React12.forwardRef(
|
|
1334
|
+
({ asChild, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_dialog.Dialog.Trigger, { ref, render: asChildRender(asChild, children), ...props, children: asChild ? void 0 : children })
|
|
1310
1335
|
);
|
|
1311
1336
|
DialogTrigger.displayName = "DialogTrigger";
|
|
1312
1337
|
var DialogPortal = import_dialog.Dialog.Portal;
|
|
1313
1338
|
var DialogClose = import_dialog.Dialog.Close;
|
|
1314
|
-
var DialogOverlay =
|
|
1339
|
+
var DialogOverlay = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1315
1340
|
import_dialog.Dialog.Backdrop,
|
|
1316
1341
|
{
|
|
1317
1342
|
ref,
|
|
@@ -1323,9 +1348,9 @@ var DialogOverlay = React11.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1323
1348
|
}
|
|
1324
1349
|
));
|
|
1325
1350
|
DialogOverlay.displayName = "DialogOverlay";
|
|
1326
|
-
var DialogContent =
|
|
1327
|
-
/* @__PURE__ */ (0,
|
|
1328
|
-
/* @__PURE__ */ (0,
|
|
1351
|
+
var DialogContent = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(DialogPortal, { children: [
|
|
1352
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DialogOverlay, {}),
|
|
1353
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
1329
1354
|
import_dialog.Dialog.Popup,
|
|
1330
1355
|
{
|
|
1331
1356
|
ref,
|
|
@@ -1336,18 +1361,18 @@ var DialogContent = React11.forwardRef(({ className, children, ...props }, ref)
|
|
|
1336
1361
|
...props,
|
|
1337
1362
|
children: [
|
|
1338
1363
|
children,
|
|
1339
|
-
/* @__PURE__ */ (0,
|
|
1340
|
-
/* @__PURE__ */ (0,
|
|
1341
|
-
/* @__PURE__ */ (0,
|
|
1364
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.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: [
|
|
1365
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_lucide_react2.X, { className: "size-4" }),
|
|
1366
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "sr-only", children: "Close" })
|
|
1342
1367
|
] })
|
|
1343
1368
|
]
|
|
1344
1369
|
}
|
|
1345
1370
|
)
|
|
1346
1371
|
] }));
|
|
1347
1372
|
DialogContent.displayName = "DialogContent";
|
|
1348
|
-
var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
1373
|
+
var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: cn("flex flex-col gap-1.5 text-center sm:text-left", className), ...props });
|
|
1349
1374
|
DialogHeader.displayName = "DialogHeader";
|
|
1350
|
-
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
1375
|
+
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1351
1376
|
"div",
|
|
1352
1377
|
{
|
|
1353
1378
|
className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
@@ -1355,21 +1380,21 @@ var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_r
|
|
|
1355
1380
|
}
|
|
1356
1381
|
);
|
|
1357
1382
|
DialogFooter.displayName = "DialogFooter";
|
|
1358
|
-
var DialogTitle =
|
|
1383
|
+
var DialogTitle = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1359
1384
|
import_dialog.Dialog.Title,
|
|
1360
1385
|
{
|
|
1361
1386
|
ref,
|
|
1362
|
-
render: /* @__PURE__ */ (0,
|
|
1387
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Typography, { variant: "h5", color: "default", as: "h2", className }),
|
|
1363
1388
|
...props,
|
|
1364
1389
|
children
|
|
1365
1390
|
}
|
|
1366
1391
|
));
|
|
1367
1392
|
DialogTitle.displayName = "DialogTitle";
|
|
1368
|
-
var DialogDescription =
|
|
1393
|
+
var DialogDescription = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1369
1394
|
import_dialog.Dialog.Description,
|
|
1370
1395
|
{
|
|
1371
1396
|
ref,
|
|
1372
|
-
render: /* @__PURE__ */ (0,
|
|
1397
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Typography, { variant: "small", color: "muted", className }),
|
|
1373
1398
|
...props,
|
|
1374
1399
|
children
|
|
1375
1400
|
}
|
|
@@ -1377,16 +1402,16 @@ var DialogDescription = React11.forwardRef(({ className, children, ...props }, r
|
|
|
1377
1402
|
DialogDescription.displayName = "DialogDescription";
|
|
1378
1403
|
|
|
1379
1404
|
// src/components/alert-dialog/AlertDialog.tsx
|
|
1380
|
-
var
|
|
1405
|
+
var React13 = __toESM(require("react"), 1);
|
|
1381
1406
|
var import_alert_dialog = require("@base-ui/react/alert-dialog");
|
|
1382
|
-
var
|
|
1407
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
1383
1408
|
var AlertDialog = import_alert_dialog.AlertDialog.Root;
|
|
1384
|
-
var AlertDialogTrigger =
|
|
1385
|
-
({ asChild, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1409
|
+
var AlertDialogTrigger = React13.forwardRef(
|
|
1410
|
+
({ asChild, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_alert_dialog.AlertDialog.Trigger, { ref, render: asChildRender(asChild, children), ...props, children: asChild ? void 0 : children })
|
|
1386
1411
|
);
|
|
1387
1412
|
AlertDialogTrigger.displayName = "AlertDialogTrigger";
|
|
1388
1413
|
var AlertDialogPortal = import_alert_dialog.AlertDialog.Portal;
|
|
1389
|
-
var AlertDialogOverlay =
|
|
1414
|
+
var AlertDialogOverlay = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1390
1415
|
import_alert_dialog.AlertDialog.Backdrop,
|
|
1391
1416
|
{
|
|
1392
1417
|
ref,
|
|
@@ -1398,9 +1423,9 @@ var AlertDialogOverlay = React12.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1398
1423
|
}
|
|
1399
1424
|
));
|
|
1400
1425
|
AlertDialogOverlay.displayName = "AlertDialogOverlay";
|
|
1401
|
-
var AlertDialogContent =
|
|
1402
|
-
/* @__PURE__ */ (0,
|
|
1403
|
-
/* @__PURE__ */ (0,
|
|
1426
|
+
var AlertDialogContent = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(AlertDialogPortal, { children: [
|
|
1427
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(AlertDialogOverlay, {}),
|
|
1428
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1404
1429
|
import_alert_dialog.AlertDialog.Popup,
|
|
1405
1430
|
{
|
|
1406
1431
|
ref,
|
|
@@ -1413,9 +1438,9 @@ var AlertDialogContent = React12.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1413
1438
|
)
|
|
1414
1439
|
] }));
|
|
1415
1440
|
AlertDialogContent.displayName = "AlertDialogContent";
|
|
1416
|
-
var AlertDialogHeader = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
1441
|
+
var AlertDialogHeader = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: cn("flex flex-col gap-1.5 text-center sm:text-left", className), ...props });
|
|
1417
1442
|
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
1418
|
-
var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
1443
|
+
var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1419
1444
|
"div",
|
|
1420
1445
|
{
|
|
1421
1446
|
className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
@@ -1423,27 +1448,27 @@ var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_
|
|
|
1423
1448
|
}
|
|
1424
1449
|
);
|
|
1425
1450
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
1426
|
-
var AlertDialogTitle =
|
|
1451
|
+
var AlertDialogTitle = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1427
1452
|
import_alert_dialog.AlertDialog.Title,
|
|
1428
1453
|
{
|
|
1429
1454
|
ref,
|
|
1430
|
-
render: /* @__PURE__ */ (0,
|
|
1455
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Typography, { variant: "h5", color: "default", as: "h2", className }),
|
|
1431
1456
|
...props,
|
|
1432
1457
|
children
|
|
1433
1458
|
}
|
|
1434
1459
|
));
|
|
1435
1460
|
AlertDialogTitle.displayName = "AlertDialogTitle";
|
|
1436
|
-
var AlertDialogDescription =
|
|
1461
|
+
var AlertDialogDescription = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1437
1462
|
import_alert_dialog.AlertDialog.Description,
|
|
1438
1463
|
{
|
|
1439
1464
|
ref,
|
|
1440
|
-
render: /* @__PURE__ */ (0,
|
|
1465
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Typography, { variant: "small", color: "muted", className }),
|
|
1441
1466
|
...props,
|
|
1442
1467
|
children
|
|
1443
1468
|
}
|
|
1444
1469
|
));
|
|
1445
1470
|
AlertDialogDescription.displayName = "AlertDialogDescription";
|
|
1446
|
-
var AlertDialogAction =
|
|
1471
|
+
var AlertDialogAction = React13.forwardRef(({ className, asChild, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1447
1472
|
import_alert_dialog.AlertDialog.Close,
|
|
1448
1473
|
{
|
|
1449
1474
|
ref,
|
|
@@ -1454,7 +1479,7 @@ var AlertDialogAction = React12.forwardRef(({ className, asChild, children, ...p
|
|
|
1454
1479
|
}
|
|
1455
1480
|
));
|
|
1456
1481
|
AlertDialogAction.displayName = "AlertDialogAction";
|
|
1457
|
-
var AlertDialogCancel =
|
|
1482
|
+
var AlertDialogCancel = React13.forwardRef(({ className, asChild, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1458
1483
|
import_alert_dialog.AlertDialog.Close,
|
|
1459
1484
|
{
|
|
1460
1485
|
ref,
|
|
@@ -1467,21 +1492,21 @@ var AlertDialogCancel = React12.forwardRef(({ className, asChild, children, ...p
|
|
|
1467
1492
|
AlertDialogCancel.displayName = "AlertDialogCancel";
|
|
1468
1493
|
|
|
1469
1494
|
// src/components/dropdown-menu/DropdownMenu.tsx
|
|
1470
|
-
var
|
|
1495
|
+
var React14 = __toESM(require("react"), 1);
|
|
1471
1496
|
|
|
1472
1497
|
// src/primitives/dropdown-menu.tsx
|
|
1473
1498
|
var import_menu = require("@base-ui/react/menu");
|
|
1474
|
-
var
|
|
1499
|
+
var import_cn5 = require("cn");
|
|
1475
1500
|
var import_lucide_react3 = require("lucide-react");
|
|
1476
|
-
var
|
|
1501
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
1477
1502
|
function DropdownMenu({ ...props }) {
|
|
1478
|
-
return /* @__PURE__ */ (0,
|
|
1503
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_menu.Menu.Root, { "data-slot": "dropdown-menu", ...props });
|
|
1479
1504
|
}
|
|
1480
1505
|
function DropdownMenuPortal({ ...props }) {
|
|
1481
|
-
return /* @__PURE__ */ (0,
|
|
1506
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_menu.Menu.Portal, { "data-slot": "dropdown-menu-portal", ...props });
|
|
1482
1507
|
}
|
|
1483
1508
|
function DropdownMenuTrigger({ ...props }) {
|
|
1484
|
-
return /* @__PURE__ */ (0,
|
|
1509
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_menu.Menu.Trigger, { "data-slot": "dropdown-menu-trigger", ...props });
|
|
1485
1510
|
}
|
|
1486
1511
|
function DropdownMenuContent({
|
|
1487
1512
|
align = "start",
|
|
@@ -1491,7 +1516,7 @@ function DropdownMenuContent({
|
|
|
1491
1516
|
className,
|
|
1492
1517
|
...props
|
|
1493
1518
|
}) {
|
|
1494
|
-
return /* @__PURE__ */ (0,
|
|
1519
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_menu.Menu.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1495
1520
|
import_menu.Menu.Positioner,
|
|
1496
1521
|
{
|
|
1497
1522
|
className: "isolate z-50 outline-none",
|
|
@@ -1499,11 +1524,11 @@ function DropdownMenuContent({
|
|
|
1499
1524
|
alignOffset,
|
|
1500
1525
|
side,
|
|
1501
1526
|
sideOffset,
|
|
1502
|
-
children: /* @__PURE__ */ (0,
|
|
1527
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1503
1528
|
import_menu.Menu.Popup,
|
|
1504
1529
|
{
|
|
1505
1530
|
"data-slot": "dropdown-menu-content",
|
|
1506
|
-
className: (0,
|
|
1531
|
+
className: (0, import_cn5.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
1532
|
...props
|
|
1508
1533
|
}
|
|
1509
1534
|
)
|
|
@@ -1511,19 +1536,19 @@ function DropdownMenuContent({
|
|
|
1511
1536
|
) });
|
|
1512
1537
|
}
|
|
1513
1538
|
function DropdownMenuGroup({ ...props }) {
|
|
1514
|
-
return /* @__PURE__ */ (0,
|
|
1539
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_menu.Menu.Group, { "data-slot": "dropdown-menu-group", ...props });
|
|
1515
1540
|
}
|
|
1516
1541
|
function DropdownMenuLabel({
|
|
1517
1542
|
className,
|
|
1518
1543
|
inset,
|
|
1519
1544
|
...props
|
|
1520
1545
|
}) {
|
|
1521
|
-
return /* @__PURE__ */ (0,
|
|
1546
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1522
1547
|
import_menu.Menu.GroupLabel,
|
|
1523
1548
|
{
|
|
1524
1549
|
"data-slot": "dropdown-menu-label",
|
|
1525
1550
|
"data-inset": inset,
|
|
1526
|
-
className: (0,
|
|
1551
|
+
className: (0, import_cn5.cn)(
|
|
1527
1552
|
"px-1.5 py-1 text-xs font-medium text-muted-foreground data-inset:pl-7",
|
|
1528
1553
|
className
|
|
1529
1554
|
),
|
|
@@ -1537,13 +1562,13 @@ function DropdownMenuItem({
|
|
|
1537
1562
|
variant = "default",
|
|
1538
1563
|
...props
|
|
1539
1564
|
}) {
|
|
1540
|
-
return /* @__PURE__ */ (0,
|
|
1565
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1541
1566
|
import_menu.Menu.Item,
|
|
1542
1567
|
{
|
|
1543
1568
|
"data-slot": "dropdown-menu-item",
|
|
1544
1569
|
"data-inset": inset,
|
|
1545
1570
|
"data-variant": variant,
|
|
1546
|
-
className: (0,
|
|
1571
|
+
className: (0, import_cn5.cn)(
|
|
1547
1572
|
"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
1573
|
className
|
|
1549
1574
|
),
|
|
@@ -1552,7 +1577,7 @@ function DropdownMenuItem({
|
|
|
1552
1577
|
);
|
|
1553
1578
|
}
|
|
1554
1579
|
function DropdownMenuSub({ ...props }) {
|
|
1555
|
-
return /* @__PURE__ */ (0,
|
|
1580
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_menu.Menu.SubmenuRoot, { "data-slot": "dropdown-menu-sub", ...props });
|
|
1556
1581
|
}
|
|
1557
1582
|
function DropdownMenuSubTrigger({
|
|
1558
1583
|
className,
|
|
@@ -1560,19 +1585,19 @@ function DropdownMenuSubTrigger({
|
|
|
1560
1585
|
children,
|
|
1561
1586
|
...props
|
|
1562
1587
|
}) {
|
|
1563
|
-
return /* @__PURE__ */ (0,
|
|
1588
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
1564
1589
|
import_menu.Menu.SubmenuTrigger,
|
|
1565
1590
|
{
|
|
1566
1591
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
1567
1592
|
"data-inset": inset,
|
|
1568
|
-
className: (0,
|
|
1593
|
+
className: (0, import_cn5.cn)(
|
|
1569
1594
|
"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
1595
|
className
|
|
1571
1596
|
),
|
|
1572
1597
|
...props,
|
|
1573
1598
|
children: [
|
|
1574
1599
|
children,
|
|
1575
|
-
/* @__PURE__ */ (0,
|
|
1600
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react3.ChevronRightIcon, { className: "ml-auto" })
|
|
1576
1601
|
]
|
|
1577
1602
|
}
|
|
1578
1603
|
);
|
|
@@ -1585,11 +1610,11 @@ function DropdownMenuSubContent({
|
|
|
1585
1610
|
className,
|
|
1586
1611
|
...props
|
|
1587
1612
|
}) {
|
|
1588
|
-
return /* @__PURE__ */ (0,
|
|
1613
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1589
1614
|
DropdownMenuContent,
|
|
1590
1615
|
{
|
|
1591
1616
|
"data-slot": "dropdown-menu-sub-content",
|
|
1592
|
-
className: (0,
|
|
1617
|
+
className: (0, import_cn5.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
1618
|
align,
|
|
1594
1619
|
alignOffset,
|
|
1595
1620
|
side,
|
|
@@ -1605,24 +1630,24 @@ function DropdownMenuCheckboxItem({
|
|
|
1605
1630
|
inset,
|
|
1606
1631
|
...props
|
|
1607
1632
|
}) {
|
|
1608
|
-
return /* @__PURE__ */ (0,
|
|
1633
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
1609
1634
|
import_menu.Menu.CheckboxItem,
|
|
1610
1635
|
{
|
|
1611
1636
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
1612
1637
|
"data-inset": inset,
|
|
1613
|
-
className: (0,
|
|
1638
|
+
className: (0, import_cn5.cn)(
|
|
1614
1639
|
"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
1640
|
className
|
|
1616
1641
|
),
|
|
1617
1642
|
checked,
|
|
1618
1643
|
...props,
|
|
1619
1644
|
children: [
|
|
1620
|
-
/* @__PURE__ */ (0,
|
|
1645
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1621
1646
|
"span",
|
|
1622
1647
|
{
|
|
1623
1648
|
className: "pointer-events-none absolute right-2 flex items-center justify-center",
|
|
1624
1649
|
"data-slot": "dropdown-menu-checkbox-item-indicator",
|
|
1625
|
-
children: /* @__PURE__ */ (0,
|
|
1650
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_menu.Menu.CheckboxItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1626
1651
|
import_lucide_react3.CheckIcon,
|
|
1627
1652
|
{}
|
|
1628
1653
|
) })
|
|
@@ -1634,7 +1659,7 @@ function DropdownMenuCheckboxItem({
|
|
|
1634
1659
|
);
|
|
1635
1660
|
}
|
|
1636
1661
|
function DropdownMenuRadioGroup({ ...props }) {
|
|
1637
|
-
return /* @__PURE__ */ (0,
|
|
1662
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1638
1663
|
import_menu.Menu.RadioGroup,
|
|
1639
1664
|
{
|
|
1640
1665
|
"data-slot": "dropdown-menu-radio-group",
|
|
@@ -1648,23 +1673,23 @@ function DropdownMenuRadioItem({
|
|
|
1648
1673
|
inset,
|
|
1649
1674
|
...props
|
|
1650
1675
|
}) {
|
|
1651
|
-
return /* @__PURE__ */ (0,
|
|
1676
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
1652
1677
|
import_menu.Menu.RadioItem,
|
|
1653
1678
|
{
|
|
1654
1679
|
"data-slot": "dropdown-menu-radio-item",
|
|
1655
1680
|
"data-inset": inset,
|
|
1656
|
-
className: (0,
|
|
1681
|
+
className: (0, import_cn5.cn)(
|
|
1657
1682
|
"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
1683
|
className
|
|
1659
1684
|
),
|
|
1660
1685
|
...props,
|
|
1661
1686
|
children: [
|
|
1662
|
-
/* @__PURE__ */ (0,
|
|
1687
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1663
1688
|
"span",
|
|
1664
1689
|
{
|
|
1665
1690
|
className: "pointer-events-none absolute right-2 flex items-center justify-center",
|
|
1666
1691
|
"data-slot": "dropdown-menu-radio-item-indicator",
|
|
1667
|
-
children: /* @__PURE__ */ (0,
|
|
1692
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_menu.Menu.RadioItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1668
1693
|
import_lucide_react3.CheckIcon,
|
|
1669
1694
|
{}
|
|
1670
1695
|
) })
|
|
@@ -1679,11 +1704,11 @@ function DropdownMenuSeparator({
|
|
|
1679
1704
|
className,
|
|
1680
1705
|
...props
|
|
1681
1706
|
}) {
|
|
1682
|
-
return /* @__PURE__ */ (0,
|
|
1707
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1683
1708
|
import_menu.Menu.Separator,
|
|
1684
1709
|
{
|
|
1685
1710
|
"data-slot": "dropdown-menu-separator",
|
|
1686
|
-
className: (0,
|
|
1711
|
+
className: (0, import_cn5.cn)("-mx-1 my-1 h-px bg-border", className),
|
|
1687
1712
|
...props
|
|
1688
1713
|
}
|
|
1689
1714
|
);
|
|
@@ -1692,11 +1717,11 @@ function DropdownMenuShortcut({
|
|
|
1692
1717
|
className,
|
|
1693
1718
|
...props
|
|
1694
1719
|
}) {
|
|
1695
|
-
return /* @__PURE__ */ (0,
|
|
1720
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1696
1721
|
"span",
|
|
1697
1722
|
{
|
|
1698
1723
|
"data-slot": "dropdown-menu-shortcut",
|
|
1699
|
-
className: (0,
|
|
1724
|
+
className: (0, import_cn5.cn)(
|
|
1700
1725
|
"ml-auto text-xs tracking-widest text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground",
|
|
1701
1726
|
className
|
|
1702
1727
|
),
|
|
@@ -1706,13 +1731,13 @@ function DropdownMenuShortcut({
|
|
|
1706
1731
|
}
|
|
1707
1732
|
|
|
1708
1733
|
// src/components/dropdown-menu/DropdownMenu.tsx
|
|
1709
|
-
var
|
|
1710
|
-
var DropdownMenuTrigger2 =
|
|
1711
|
-
({ asChild, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1734
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
1735
|
+
var DropdownMenuTrigger2 = React14.forwardRef(
|
|
1736
|
+
({ asChild, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(DropdownMenuTrigger, { ref, render: asChildRender(asChild, children), ...props, children: asChild ? void 0 : children })
|
|
1712
1737
|
);
|
|
1713
1738
|
DropdownMenuTrigger2.displayName = "DropdownMenuTrigger";
|
|
1714
|
-
var DropdownMenuSubTrigger2 =
|
|
1715
|
-
({ className, inset, asChild, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1739
|
+
var DropdownMenuSubTrigger2 = React14.forwardRef(
|
|
1740
|
+
({ className, inset, asChild, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1716
1741
|
DropdownMenuSubTrigger,
|
|
1717
1742
|
{
|
|
1718
1743
|
ref,
|
|
@@ -1729,8 +1754,8 @@ var DropdownMenuSubTrigger2 = React13.forwardRef(
|
|
|
1729
1754
|
)
|
|
1730
1755
|
);
|
|
1731
1756
|
DropdownMenuSubTrigger2.displayName = "DropdownMenuSubTrigger";
|
|
1732
|
-
var DropdownMenuSubContent2 =
|
|
1733
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1757
|
+
var DropdownMenuSubContent2 = React14.forwardRef(
|
|
1758
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1734
1759
|
DropdownMenuSubContent,
|
|
1735
1760
|
{
|
|
1736
1761
|
ref,
|
|
@@ -1743,8 +1768,8 @@ var DropdownMenuSubContent2 = React13.forwardRef(
|
|
|
1743
1768
|
)
|
|
1744
1769
|
);
|
|
1745
1770
|
DropdownMenuSubContent2.displayName = "DropdownMenuSubContent";
|
|
1746
|
-
var DropdownMenuContent2 =
|
|
1747
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1771
|
+
var DropdownMenuContent2 = React14.forwardRef(
|
|
1772
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1748
1773
|
DropdownMenuContent,
|
|
1749
1774
|
{
|
|
1750
1775
|
ref,
|
|
@@ -1757,8 +1782,8 @@ var DropdownMenuContent2 = React13.forwardRef(
|
|
|
1757
1782
|
)
|
|
1758
1783
|
);
|
|
1759
1784
|
DropdownMenuContent2.displayName = "DropdownMenuContent";
|
|
1760
|
-
var DropdownMenuItem2 =
|
|
1761
|
-
({ className, inset, asChild, children, textValue, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1785
|
+
var DropdownMenuItem2 = React14.forwardRef(
|
|
1786
|
+
({ className, inset, asChild, children, textValue, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1762
1787
|
DropdownMenuItem,
|
|
1763
1788
|
{
|
|
1764
1789
|
ref,
|
|
@@ -1776,8 +1801,8 @@ var DropdownMenuItem2 = React13.forwardRef(
|
|
|
1776
1801
|
)
|
|
1777
1802
|
);
|
|
1778
1803
|
DropdownMenuItem2.displayName = "DropdownMenuItem";
|
|
1779
|
-
var DropdownMenuCheckboxItem2 =
|
|
1780
|
-
({ className, children, asChild, textValue, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1804
|
+
var DropdownMenuCheckboxItem2 = React14.forwardRef(
|
|
1805
|
+
({ className, children, asChild, textValue, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1781
1806
|
DropdownMenuCheckboxItem,
|
|
1782
1807
|
{
|
|
1783
1808
|
ref,
|
|
@@ -1790,8 +1815,8 @@ var DropdownMenuCheckboxItem2 = React13.forwardRef(
|
|
|
1790
1815
|
)
|
|
1791
1816
|
);
|
|
1792
1817
|
DropdownMenuCheckboxItem2.displayName = "DropdownMenuCheckboxItem";
|
|
1793
|
-
var DropdownMenuRadioItem2 =
|
|
1794
|
-
({ className, children, asChild, textValue, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1818
|
+
var DropdownMenuRadioItem2 = React14.forwardRef(
|
|
1819
|
+
({ className, children, asChild, textValue, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1795
1820
|
DropdownMenuRadioItem,
|
|
1796
1821
|
{
|
|
1797
1822
|
ref,
|
|
@@ -1804,8 +1829,8 @@ var DropdownMenuRadioItem2 = React13.forwardRef(
|
|
|
1804
1829
|
)
|
|
1805
1830
|
);
|
|
1806
1831
|
DropdownMenuRadioItem2.displayName = "DropdownMenuRadioItem";
|
|
1807
|
-
var DropdownMenuLabel2 =
|
|
1808
|
-
({ className, inset, asChild, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1832
|
+
var DropdownMenuLabel2 = React14.forwardRef(
|
|
1833
|
+
({ className, inset, asChild, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1809
1834
|
DropdownMenuLabel,
|
|
1810
1835
|
{
|
|
1811
1836
|
ref,
|
|
@@ -1821,8 +1846,8 @@ var DropdownMenuLabel2 = React13.forwardRef(
|
|
|
1821
1846
|
)
|
|
1822
1847
|
);
|
|
1823
1848
|
DropdownMenuLabel2.displayName = "DropdownMenuLabel";
|
|
1824
|
-
var DropdownMenuSeparator2 =
|
|
1825
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1849
|
+
var DropdownMenuSeparator2 = React14.forwardRef(
|
|
1850
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1826
1851
|
DropdownMenuSeparator,
|
|
1827
1852
|
{
|
|
1828
1853
|
ref,
|
|
@@ -1833,7 +1858,7 @@ var DropdownMenuSeparator2 = React13.forwardRef(
|
|
|
1833
1858
|
);
|
|
1834
1859
|
DropdownMenuSeparator2.displayName = "DropdownMenuSeparator";
|
|
1835
1860
|
var DropdownMenuShortcut2 = ({ className, ...props }) => {
|
|
1836
|
-
return /* @__PURE__ */ (0,
|
|
1861
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1837
1862
|
DropdownMenuShortcut,
|
|
1838
1863
|
{
|
|
1839
1864
|
className: cn("text-berget-muted-foreground", className),
|
|
@@ -1844,17 +1869,17 @@ var DropdownMenuShortcut2 = ({ className, ...props }) => {
|
|
|
1844
1869
|
DropdownMenuShortcut2.displayName = "DropdownMenuShortcut";
|
|
1845
1870
|
|
|
1846
1871
|
// src/components/tooltip/Tooltip.tsx
|
|
1847
|
-
var
|
|
1872
|
+
var React15 = __toESM(require("react"), 1);
|
|
1848
1873
|
|
|
1849
1874
|
// src/primitives/tooltip.tsx
|
|
1850
1875
|
var import_tooltip = require("@base-ui/react/tooltip");
|
|
1851
|
-
var
|
|
1852
|
-
var
|
|
1876
|
+
var import_cn6 = require("cn");
|
|
1877
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
1853
1878
|
function TooltipProvider({
|
|
1854
1879
|
delay = 0,
|
|
1855
1880
|
...props
|
|
1856
1881
|
}) {
|
|
1857
|
-
return /* @__PURE__ */ (0,
|
|
1882
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1858
1883
|
import_tooltip.Tooltip.Provider,
|
|
1859
1884
|
{
|
|
1860
1885
|
"data-slot": "tooltip-provider",
|
|
@@ -1864,10 +1889,10 @@ function TooltipProvider({
|
|
|
1864
1889
|
);
|
|
1865
1890
|
}
|
|
1866
1891
|
function Tooltip({ ...props }) {
|
|
1867
|
-
return /* @__PURE__ */ (0,
|
|
1892
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_tooltip.Tooltip.Root, { "data-slot": "tooltip", ...props });
|
|
1868
1893
|
}
|
|
1869
1894
|
function TooltipTrigger({ ...props }) {
|
|
1870
|
-
return /* @__PURE__ */ (0,
|
|
1895
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_tooltip.Tooltip.Trigger, { "data-slot": "tooltip-trigger", ...props });
|
|
1871
1896
|
}
|
|
1872
1897
|
function TooltipContent({
|
|
1873
1898
|
className,
|
|
@@ -1878,7 +1903,7 @@ function TooltipContent({
|
|
|
1878
1903
|
children,
|
|
1879
1904
|
...props
|
|
1880
1905
|
}) {
|
|
1881
|
-
return /* @__PURE__ */ (0,
|
|
1906
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_tooltip.Tooltip.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1882
1907
|
import_tooltip.Tooltip.Positioner,
|
|
1883
1908
|
{
|
|
1884
1909
|
align,
|
|
@@ -1886,18 +1911,18 @@ function TooltipContent({
|
|
|
1886
1911
|
side,
|
|
1887
1912
|
sideOffset,
|
|
1888
1913
|
className: "isolate z-50",
|
|
1889
|
-
children: /* @__PURE__ */ (0,
|
|
1914
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
1890
1915
|
import_tooltip.Tooltip.Popup,
|
|
1891
1916
|
{
|
|
1892
1917
|
"data-slot": "tooltip-content",
|
|
1893
|
-
className: (0,
|
|
1918
|
+
className: (0, import_cn6.cn)(
|
|
1894
1919
|
"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
1920
|
className
|
|
1896
1921
|
),
|
|
1897
1922
|
...props,
|
|
1898
1923
|
children: [
|
|
1899
1924
|
children,
|
|
1900
|
-
/* @__PURE__ */ (0,
|
|
1925
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.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
1926
|
]
|
|
1902
1927
|
}
|
|
1903
1928
|
)
|
|
@@ -1906,13 +1931,13 @@ function TooltipContent({
|
|
|
1906
1931
|
}
|
|
1907
1932
|
|
|
1908
1933
|
// src/components/tooltip/Tooltip.tsx
|
|
1909
|
-
var
|
|
1910
|
-
var TooltipTrigger2 =
|
|
1911
|
-
({ asChild, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1934
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
1935
|
+
var TooltipTrigger2 = React15.forwardRef(
|
|
1936
|
+
({ asChild, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(TooltipTrigger, { ref, render: asChildRender(asChild, children), ...props, children: asChild ? void 0 : children })
|
|
1912
1937
|
);
|
|
1913
1938
|
TooltipTrigger2.displayName = "TooltipTrigger";
|
|
1914
|
-
var TooltipContent2 =
|
|
1915
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1939
|
+
var TooltipContent2 = React15.forwardRef(
|
|
1940
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1916
1941
|
TooltipContent,
|
|
1917
1942
|
{
|
|
1918
1943
|
ref,
|
|
@@ -1931,18 +1956,18 @@ var import_lucide_react5 = require("lucide-react");
|
|
|
1931
1956
|
// src/primitives/navigation-menu.tsx
|
|
1932
1957
|
var import_navigation_menu = require("@base-ui/react/navigation-menu");
|
|
1933
1958
|
var import_class_variance_authority7 = require("class-variance-authority");
|
|
1934
|
-
var
|
|
1959
|
+
var import_cn7 = require("cn");
|
|
1935
1960
|
var import_lucide_react4 = require("lucide-react");
|
|
1936
|
-
var
|
|
1961
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1937
1962
|
function NavigationMenuList({
|
|
1938
1963
|
className,
|
|
1939
1964
|
...props
|
|
1940
1965
|
}) {
|
|
1941
|
-
return /* @__PURE__ */ (0,
|
|
1966
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1942
1967
|
import_navigation_menu.NavigationMenu.List,
|
|
1943
1968
|
{
|
|
1944
1969
|
"data-slot": "navigation-menu-list",
|
|
1945
|
-
className: (0,
|
|
1970
|
+
className: (0, import_cn7.cn)(
|
|
1946
1971
|
"group flex flex-1 list-none items-center justify-center gap-0",
|
|
1947
1972
|
className
|
|
1948
1973
|
),
|
|
@@ -1954,11 +1979,11 @@ function NavigationMenuItem({
|
|
|
1954
1979
|
className,
|
|
1955
1980
|
...props
|
|
1956
1981
|
}) {
|
|
1957
|
-
return /* @__PURE__ */ (0,
|
|
1982
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1958
1983
|
import_navigation_menu.NavigationMenu.Item,
|
|
1959
1984
|
{
|
|
1960
1985
|
"data-slot": "navigation-menu-item",
|
|
1961
|
-
className: (0,
|
|
1986
|
+
className: (0, import_cn7.cn)("relative", className),
|
|
1962
1987
|
...props
|
|
1963
1988
|
}
|
|
1964
1989
|
);
|
|
@@ -1970,11 +1995,11 @@ function NavigationMenuContent({
|
|
|
1970
1995
|
className,
|
|
1971
1996
|
...props
|
|
1972
1997
|
}) {
|
|
1973
|
-
return /* @__PURE__ */ (0,
|
|
1998
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1974
1999
|
import_navigation_menu.NavigationMenu.Content,
|
|
1975
2000
|
{
|
|
1976
2001
|
"data-slot": "navigation-menu-content",
|
|
1977
|
-
className: (0,
|
|
2002
|
+
className: (0, import_cn7.cn)(
|
|
1978
2003
|
"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
2004
|
className
|
|
1980
2005
|
),
|
|
@@ -1986,29 +2011,29 @@ function NavigationMenuIndicator({
|
|
|
1986
2011
|
className,
|
|
1987
2012
|
...props
|
|
1988
2013
|
}) {
|
|
1989
|
-
return /* @__PURE__ */ (0,
|
|
2014
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1990
2015
|
import_navigation_menu.NavigationMenu.Icon,
|
|
1991
2016
|
{
|
|
1992
2017
|
"data-slot": "navigation-menu-indicator",
|
|
1993
|
-
className: (0,
|
|
2018
|
+
className: (0, import_cn7.cn)(
|
|
1994
2019
|
"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
2020
|
className
|
|
1996
2021
|
),
|
|
1997
2022
|
...props,
|
|
1998
|
-
children: /* @__PURE__ */ (0,
|
|
2023
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
1999
2024
|
}
|
|
2000
2025
|
);
|
|
2001
2026
|
}
|
|
2002
2027
|
|
|
2003
2028
|
// src/components/navigation-menu/NavigationMenu.tsx
|
|
2004
|
-
var
|
|
2029
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
2005
2030
|
function NavigationMenu({
|
|
2006
2031
|
align = "start",
|
|
2007
2032
|
className,
|
|
2008
2033
|
children,
|
|
2009
2034
|
...props
|
|
2010
2035
|
}) {
|
|
2011
|
-
return /* @__PURE__ */ (0,
|
|
2036
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
2012
2037
|
import_navigation_menu2.NavigationMenu.Root,
|
|
2013
2038
|
{
|
|
2014
2039
|
"data-slot": "navigation-menu",
|
|
@@ -2019,7 +2044,7 @@ function NavigationMenu({
|
|
|
2019
2044
|
...props,
|
|
2020
2045
|
children: [
|
|
2021
2046
|
children,
|
|
2022
|
-
/* @__PURE__ */ (0,
|
|
2047
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(NavigationMenuPositioner, { align })
|
|
2023
2048
|
]
|
|
2024
2049
|
}
|
|
2025
2050
|
);
|
|
@@ -2032,7 +2057,7 @@ function NavigationMenuTrigger({
|
|
|
2032
2057
|
children,
|
|
2033
2058
|
...props
|
|
2034
2059
|
}) {
|
|
2035
|
-
return /* @__PURE__ */ (0,
|
|
2060
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
2036
2061
|
import_navigation_menu2.NavigationMenu.Trigger,
|
|
2037
2062
|
{
|
|
2038
2063
|
"data-slot": "navigation-menu-trigger",
|
|
@@ -2041,7 +2066,7 @@ function NavigationMenuTrigger({
|
|
|
2041
2066
|
children: [
|
|
2042
2067
|
children,
|
|
2043
2068
|
" ",
|
|
2044
|
-
/* @__PURE__ */ (0,
|
|
2069
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
2045
2070
|
import_lucide_react5.ChevronDown,
|
|
2046
2071
|
{
|
|
2047
2072
|
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 +2078,7 @@ function NavigationMenuTrigger({
|
|
|
2053
2078
|
);
|
|
2054
2079
|
}
|
|
2055
2080
|
function NavigationMenuLink({ className, ...props }) {
|
|
2056
|
-
return /* @__PURE__ */ (0,
|
|
2081
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
2057
2082
|
import_navigation_menu2.NavigationMenu.Link,
|
|
2058
2083
|
{
|
|
2059
2084
|
"data-slot": "navigation-menu-link",
|
|
@@ -2073,7 +2098,7 @@ function NavigationMenuPositioner({
|
|
|
2073
2098
|
alignOffset = 0,
|
|
2074
2099
|
...props
|
|
2075
2100
|
}) {
|
|
2076
|
-
return /* @__PURE__ */ (0,
|
|
2101
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_navigation_menu2.NavigationMenu.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
2077
2102
|
import_navigation_menu2.NavigationMenu.Positioner,
|
|
2078
2103
|
{
|
|
2079
2104
|
side,
|
|
@@ -2085,24 +2110,24 @@ function NavigationMenuPositioner({
|
|
|
2085
2110
|
className
|
|
2086
2111
|
),
|
|
2087
2112
|
...props,
|
|
2088
|
-
children: /* @__PURE__ */ (0,
|
|
2113
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.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_runtime23.jsx)(import_navigation_menu2.NavigationMenu.Viewport, { className: "relative size-full overflow-hidden" }) })
|
|
2089
2114
|
}
|
|
2090
2115
|
) });
|
|
2091
2116
|
}
|
|
2092
2117
|
|
|
2093
2118
|
// src/primitives/sidebar.tsx
|
|
2094
|
-
var
|
|
2119
|
+
var React17 = __toESM(require("react"), 1);
|
|
2095
2120
|
var import_merge_props = require("@base-ui/react/merge-props");
|
|
2096
2121
|
var import_use_render = require("@base-ui/react/use-render");
|
|
2097
2122
|
var import_class_variance_authority9 = require("class-variance-authority");
|
|
2098
2123
|
var import_cn11 = require("cn");
|
|
2099
2124
|
|
|
2100
2125
|
// src/hooks/use-mobile.tsx
|
|
2101
|
-
var
|
|
2126
|
+
var React16 = __toESM(require("react"), 1);
|
|
2102
2127
|
var MOBILE_BREAKPOINT = 768;
|
|
2103
2128
|
function useIsMobile() {
|
|
2104
|
-
const [isMobile, setIsMobile] =
|
|
2105
|
-
|
|
2129
|
+
const [isMobile, setIsMobile] = React16.useState(void 0);
|
|
2130
|
+
React16.useEffect(() => {
|
|
2106
2131
|
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
2107
2132
|
const onChange = () => {
|
|
2108
2133
|
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
@@ -2116,15 +2141,15 @@ function useIsMobile() {
|
|
|
2116
2141
|
|
|
2117
2142
|
// src/primitives/input.tsx
|
|
2118
2143
|
var import_input = require("@base-ui/react/input");
|
|
2119
|
-
var
|
|
2120
|
-
var
|
|
2144
|
+
var import_cn8 = require("cn");
|
|
2145
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
2121
2146
|
function Input({ className, type, ...props }) {
|
|
2122
|
-
return /* @__PURE__ */ (0,
|
|
2147
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
2123
2148
|
import_input.Input,
|
|
2124
2149
|
{
|
|
2125
2150
|
type,
|
|
2126
2151
|
"data-slot": "input",
|
|
2127
|
-
className: (0,
|
|
2152
|
+
className: (0, import_cn8.cn)(
|
|
2128
2153
|
"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
2154
|
className
|
|
2130
2155
|
),
|
|
@@ -2135,19 +2160,19 @@ function Input({ className, type, ...props }) {
|
|
|
2135
2160
|
|
|
2136
2161
|
// src/primitives/separator.tsx
|
|
2137
2162
|
var import_separator = require("@base-ui/react/separator");
|
|
2138
|
-
var
|
|
2139
|
-
var
|
|
2163
|
+
var import_cn9 = require("cn");
|
|
2164
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
2140
2165
|
function Separator({
|
|
2141
2166
|
className,
|
|
2142
2167
|
orientation = "horizontal",
|
|
2143
2168
|
...props
|
|
2144
2169
|
}) {
|
|
2145
|
-
return /* @__PURE__ */ (0,
|
|
2170
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
2146
2171
|
import_separator.Separator,
|
|
2147
2172
|
{
|
|
2148
2173
|
"data-slot": "separator",
|
|
2149
2174
|
orientation,
|
|
2150
|
-
className: (0,
|
|
2175
|
+
className: (0, import_cn9.cn)(
|
|
2151
2176
|
"shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch",
|
|
2152
2177
|
className
|
|
2153
2178
|
),
|
|
@@ -2158,21 +2183,21 @@ function Separator({
|
|
|
2158
2183
|
|
|
2159
2184
|
// src/primitives/sheet.tsx
|
|
2160
2185
|
var import_dialog2 = require("@base-ui/react/dialog");
|
|
2161
|
-
var
|
|
2186
|
+
var import_cn10 = require("cn");
|
|
2162
2187
|
var import_lucide_react6 = require("lucide-react");
|
|
2163
|
-
var
|
|
2188
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
2164
2189
|
function Sheet({ ...props }) {
|
|
2165
|
-
return /* @__PURE__ */ (0,
|
|
2190
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dialog2.Dialog.Root, { "data-slot": "sheet", ...props });
|
|
2166
2191
|
}
|
|
2167
2192
|
function SheetPortal({ ...props }) {
|
|
2168
|
-
return /* @__PURE__ */ (0,
|
|
2193
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dialog2.Dialog.Portal, { "data-slot": "sheet-portal", ...props });
|
|
2169
2194
|
}
|
|
2170
2195
|
function SheetOverlay({ className, ...props }) {
|
|
2171
|
-
return /* @__PURE__ */ (0,
|
|
2196
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2172
2197
|
import_dialog2.Dialog.Backdrop,
|
|
2173
2198
|
{
|
|
2174
2199
|
"data-slot": "sheet-overlay",
|
|
2175
|
-
className: (0,
|
|
2200
|
+
className: (0, import_cn10.cn)(
|
|
2176
2201
|
"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
2202
|
className
|
|
2178
2203
|
),
|
|
@@ -2187,25 +2212,25 @@ function SheetContent({
|
|
|
2187
2212
|
showCloseButton = true,
|
|
2188
2213
|
...props
|
|
2189
2214
|
}) {
|
|
2190
|
-
return /* @__PURE__ */ (0,
|
|
2191
|
-
/* @__PURE__ */ (0,
|
|
2192
|
-
/* @__PURE__ */ (0,
|
|
2215
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(SheetPortal, { children: [
|
|
2216
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(SheetOverlay, {}),
|
|
2217
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
2193
2218
|
import_dialog2.Dialog.Popup,
|
|
2194
2219
|
{
|
|
2195
2220
|
"data-slot": "sheet-content",
|
|
2196
2221
|
"data-side": side,
|
|
2197
|
-
className: (0,
|
|
2222
|
+
className: (0, import_cn10.cn)(
|
|
2198
2223
|
"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
2224
|
className
|
|
2200
2225
|
),
|
|
2201
2226
|
...props,
|
|
2202
2227
|
children: [
|
|
2203
2228
|
children,
|
|
2204
|
-
showCloseButton && /* @__PURE__ */ (0,
|
|
2229
|
+
showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
2205
2230
|
import_dialog2.Dialog.Close,
|
|
2206
2231
|
{
|
|
2207
2232
|
"data-slot": "sheet-close",
|
|
2208
|
-
render: /* @__PURE__ */ (0,
|
|
2233
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2209
2234
|
Button,
|
|
2210
2235
|
{
|
|
2211
2236
|
variant: "ghost",
|
|
@@ -2214,11 +2239,11 @@ function SheetContent({
|
|
|
2214
2239
|
}
|
|
2215
2240
|
),
|
|
2216
2241
|
children: [
|
|
2217
|
-
/* @__PURE__ */ (0,
|
|
2242
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2218
2243
|
import_lucide_react6.XIcon,
|
|
2219
2244
|
{}
|
|
2220
2245
|
),
|
|
2221
|
-
/* @__PURE__ */ (0,
|
|
2246
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "sr-only", children: "Close" })
|
|
2222
2247
|
]
|
|
2223
2248
|
}
|
|
2224
2249
|
)
|
|
@@ -2228,21 +2253,21 @@ function SheetContent({
|
|
|
2228
2253
|
] });
|
|
2229
2254
|
}
|
|
2230
2255
|
function SheetHeader({ className, ...props }) {
|
|
2231
|
-
return /* @__PURE__ */ (0,
|
|
2256
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2232
2257
|
"div",
|
|
2233
2258
|
{
|
|
2234
2259
|
"data-slot": "sheet-header",
|
|
2235
|
-
className: (0,
|
|
2260
|
+
className: (0, import_cn10.cn)("flex flex-col gap-0.5 p-4", className),
|
|
2236
2261
|
...props
|
|
2237
2262
|
}
|
|
2238
2263
|
);
|
|
2239
2264
|
}
|
|
2240
2265
|
function SheetTitle({ className, ...props }) {
|
|
2241
|
-
return /* @__PURE__ */ (0,
|
|
2266
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2242
2267
|
import_dialog2.Dialog.Title,
|
|
2243
2268
|
{
|
|
2244
2269
|
"data-slot": "sheet-title",
|
|
2245
|
-
className: (0,
|
|
2270
|
+
className: (0, import_cn10.cn)(
|
|
2246
2271
|
"text-base font-medium text-foreground",
|
|
2247
2272
|
className
|
|
2248
2273
|
),
|
|
@@ -2254,25 +2279,11 @@ function SheetDescription({
|
|
|
2254
2279
|
className,
|
|
2255
2280
|
...props
|
|
2256
2281
|
}) {
|
|
2257
|
-
return /* @__PURE__ */ (0,
|
|
2282
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2258
2283
|
import_dialog2.Dialog.Description,
|
|
2259
2284
|
{
|
|
2260
2285
|
"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),
|
|
2286
|
+
className: (0, import_cn10.cn)("text-sm text-muted-foreground", className),
|
|
2276
2287
|
...props
|
|
2277
2288
|
}
|
|
2278
2289
|
);
|
|
@@ -2280,16 +2291,16 @@ function Skeleton({ className, ...props }) {
|
|
|
2280
2291
|
|
|
2281
2292
|
// src/primitives/sidebar.tsx
|
|
2282
2293
|
var import_lucide_react7 = require("lucide-react");
|
|
2283
|
-
var
|
|
2294
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
2284
2295
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
2285
2296
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
2286
2297
|
var SIDEBAR_WIDTH = "16rem";
|
|
2287
2298
|
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
2288
2299
|
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
2289
2300
|
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
2290
|
-
var SidebarContext =
|
|
2301
|
+
var SidebarContext = React17.createContext(null);
|
|
2291
2302
|
function useSidebar() {
|
|
2292
|
-
const context =
|
|
2303
|
+
const context = React17.useContext(SidebarContext);
|
|
2293
2304
|
if (!context) {
|
|
2294
2305
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
2295
2306
|
}
|
|
@@ -2305,10 +2316,10 @@ function SidebarProvider({
|
|
|
2305
2316
|
...props
|
|
2306
2317
|
}) {
|
|
2307
2318
|
const isMobile = useIsMobile();
|
|
2308
|
-
const [openMobile, setOpenMobile] =
|
|
2309
|
-
const [_open, _setOpen] =
|
|
2319
|
+
const [openMobile, setOpenMobile] = React17.useState(false);
|
|
2320
|
+
const [_open, _setOpen] = React17.useState(defaultOpen);
|
|
2310
2321
|
const open = openProp ?? _open;
|
|
2311
|
-
const setOpen =
|
|
2322
|
+
const setOpen = React17.useCallback(
|
|
2312
2323
|
(value) => {
|
|
2313
2324
|
const openState = typeof value === "function" ? value(open) : value;
|
|
2314
2325
|
if (setOpenProp) {
|
|
@@ -2320,10 +2331,10 @@ function SidebarProvider({
|
|
|
2320
2331
|
},
|
|
2321
2332
|
[setOpenProp, open]
|
|
2322
2333
|
);
|
|
2323
|
-
const toggleSidebar =
|
|
2334
|
+
const toggleSidebar = React17.useCallback(() => {
|
|
2324
2335
|
return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
|
|
2325
2336
|
}, [isMobile, setOpen, setOpenMobile]);
|
|
2326
|
-
|
|
2337
|
+
React17.useEffect(() => {
|
|
2327
2338
|
const handleKeyDown = (event) => {
|
|
2328
2339
|
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
2329
2340
|
event.preventDefault();
|
|
@@ -2334,7 +2345,7 @@ function SidebarProvider({
|
|
|
2334
2345
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
2335
2346
|
}, [toggleSidebar]);
|
|
2336
2347
|
const state = open ? "expanded" : "collapsed";
|
|
2337
|
-
const contextValue =
|
|
2348
|
+
const contextValue = React17.useMemo(
|
|
2338
2349
|
() => ({
|
|
2339
2350
|
state,
|
|
2340
2351
|
open,
|
|
@@ -2346,7 +2357,7 @@ function SidebarProvider({
|
|
|
2346
2357
|
}),
|
|
2347
2358
|
[state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
|
|
2348
2359
|
);
|
|
2349
|
-
return /* @__PURE__ */ (0,
|
|
2360
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2350
2361
|
"div",
|
|
2351
2362
|
{
|
|
2352
2363
|
"data-slot": "sidebar-wrapper",
|
|
@@ -2375,7 +2386,7 @@ function Sidebar({
|
|
|
2375
2386
|
}) {
|
|
2376
2387
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
2377
2388
|
if (collapsible === "none") {
|
|
2378
|
-
return /* @__PURE__ */ (0,
|
|
2389
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2379
2390
|
"div",
|
|
2380
2391
|
{
|
|
2381
2392
|
"data-slot": "sidebar",
|
|
@@ -2389,7 +2400,7 @@ function Sidebar({
|
|
|
2389
2400
|
);
|
|
2390
2401
|
}
|
|
2391
2402
|
if (isMobile) {
|
|
2392
|
-
return /* @__PURE__ */ (0,
|
|
2403
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
2393
2404
|
SheetContent,
|
|
2394
2405
|
{
|
|
2395
2406
|
dir,
|
|
@@ -2402,16 +2413,16 @@ function Sidebar({
|
|
|
2402
2413
|
},
|
|
2403
2414
|
side,
|
|
2404
2415
|
children: [
|
|
2405
|
-
/* @__PURE__ */ (0,
|
|
2406
|
-
/* @__PURE__ */ (0,
|
|
2407
|
-
/* @__PURE__ */ (0,
|
|
2416
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(SheetHeader, { className: "sr-only", children: [
|
|
2417
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(SheetTitle, { children: "Sidebar" }),
|
|
2418
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(SheetDescription, { children: "Displays the mobile sidebar." })
|
|
2408
2419
|
] }),
|
|
2409
|
-
/* @__PURE__ */ (0,
|
|
2420
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "flex h-full w-full flex-col", children })
|
|
2410
2421
|
]
|
|
2411
2422
|
}
|
|
2412
2423
|
) });
|
|
2413
2424
|
}
|
|
2414
|
-
return /* @__PURE__ */ (0,
|
|
2425
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
2415
2426
|
"div",
|
|
2416
2427
|
{
|
|
2417
2428
|
className: "group peer hidden text-sidebar-foreground md:block",
|
|
@@ -2421,7 +2432,7 @@ function Sidebar({
|
|
|
2421
2432
|
"data-side": side,
|
|
2422
2433
|
"data-slot": "sidebar",
|
|
2423
2434
|
children: [
|
|
2424
|
-
/* @__PURE__ */ (0,
|
|
2435
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2425
2436
|
"div",
|
|
2426
2437
|
{
|
|
2427
2438
|
"data-slot": "sidebar-gap",
|
|
@@ -2433,7 +2444,7 @@ function Sidebar({
|
|
|
2433
2444
|
)
|
|
2434
2445
|
}
|
|
2435
2446
|
),
|
|
2436
|
-
/* @__PURE__ */ (0,
|
|
2447
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2437
2448
|
"div",
|
|
2438
2449
|
{
|
|
2439
2450
|
"data-slot": "sidebar-container",
|
|
@@ -2445,7 +2456,7 @@ function Sidebar({
|
|
|
2445
2456
|
className
|
|
2446
2457
|
),
|
|
2447
2458
|
...props,
|
|
2448
|
-
children: /* @__PURE__ */ (0,
|
|
2459
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2449
2460
|
"div",
|
|
2450
2461
|
{
|
|
2451
2462
|
"data-sidebar": "sidebar",
|
|
@@ -2466,7 +2477,7 @@ function SidebarTrigger({
|
|
|
2466
2477
|
...props
|
|
2467
2478
|
}) {
|
|
2468
2479
|
const { toggleSidebar } = useSidebar();
|
|
2469
|
-
return /* @__PURE__ */ (0,
|
|
2480
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
2470
2481
|
Button,
|
|
2471
2482
|
{
|
|
2472
2483
|
"data-sidebar": "trigger",
|
|
@@ -2480,15 +2491,15 @@ function SidebarTrigger({
|
|
|
2480
2491
|
},
|
|
2481
2492
|
...props,
|
|
2482
2493
|
children: [
|
|
2483
|
-
/* @__PURE__ */ (0,
|
|
2484
|
-
/* @__PURE__ */ (0,
|
|
2494
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_lucide_react7.PanelLeftIcon, {}),
|
|
2495
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
2485
2496
|
]
|
|
2486
2497
|
}
|
|
2487
2498
|
);
|
|
2488
2499
|
}
|
|
2489
2500
|
function SidebarRail({ className, ...props }) {
|
|
2490
2501
|
const { toggleSidebar } = useSidebar();
|
|
2491
|
-
return /* @__PURE__ */ (0,
|
|
2502
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2492
2503
|
"button",
|
|
2493
2504
|
{
|
|
2494
2505
|
"data-sidebar": "rail",
|
|
@@ -2511,7 +2522,7 @@ function SidebarRail({ className, ...props }) {
|
|
|
2511
2522
|
);
|
|
2512
2523
|
}
|
|
2513
2524
|
function SidebarInset({ className, ...props }) {
|
|
2514
|
-
return /* @__PURE__ */ (0,
|
|
2525
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2515
2526
|
"main",
|
|
2516
2527
|
{
|
|
2517
2528
|
"data-slot": "sidebar-inset",
|
|
@@ -2527,7 +2538,7 @@ function SidebarInput({
|
|
|
2527
2538
|
className,
|
|
2528
2539
|
...props
|
|
2529
2540
|
}) {
|
|
2530
|
-
return /* @__PURE__ */ (0,
|
|
2541
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2531
2542
|
Input,
|
|
2532
2543
|
{
|
|
2533
2544
|
"data-slot": "sidebar-input",
|
|
@@ -2538,7 +2549,7 @@ function SidebarInput({
|
|
|
2538
2549
|
);
|
|
2539
2550
|
}
|
|
2540
2551
|
function SidebarHeader({ className, ...props }) {
|
|
2541
|
-
return /* @__PURE__ */ (0,
|
|
2552
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2542
2553
|
"div",
|
|
2543
2554
|
{
|
|
2544
2555
|
"data-slot": "sidebar-header",
|
|
@@ -2549,7 +2560,7 @@ function SidebarHeader({ className, ...props }) {
|
|
|
2549
2560
|
);
|
|
2550
2561
|
}
|
|
2551
2562
|
function SidebarFooter({ className, ...props }) {
|
|
2552
|
-
return /* @__PURE__ */ (0,
|
|
2563
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2553
2564
|
"div",
|
|
2554
2565
|
{
|
|
2555
2566
|
"data-slot": "sidebar-footer",
|
|
@@ -2563,7 +2574,7 @@ function SidebarSeparator({
|
|
|
2563
2574
|
className,
|
|
2564
2575
|
...props
|
|
2565
2576
|
}) {
|
|
2566
|
-
return /* @__PURE__ */ (0,
|
|
2577
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2567
2578
|
Separator,
|
|
2568
2579
|
{
|
|
2569
2580
|
"data-slot": "sidebar-separator",
|
|
@@ -2574,7 +2585,7 @@ function SidebarSeparator({
|
|
|
2574
2585
|
);
|
|
2575
2586
|
}
|
|
2576
2587
|
function SidebarContent({ className, ...props }) {
|
|
2577
|
-
return /* @__PURE__ */ (0,
|
|
2588
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2578
2589
|
"div",
|
|
2579
2590
|
{
|
|
2580
2591
|
"data-slot": "sidebar-content",
|
|
@@ -2588,7 +2599,7 @@ function SidebarContent({ className, ...props }) {
|
|
|
2588
2599
|
);
|
|
2589
2600
|
}
|
|
2590
2601
|
function SidebarGroup({ className, ...props }) {
|
|
2591
|
-
return /* @__PURE__ */ (0,
|
|
2602
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2592
2603
|
"div",
|
|
2593
2604
|
{
|
|
2594
2605
|
"data-slot": "sidebar-group",
|
|
@@ -2648,7 +2659,7 @@ function SidebarGroupContent({
|
|
|
2648
2659
|
className,
|
|
2649
2660
|
...props
|
|
2650
2661
|
}) {
|
|
2651
|
-
return /* @__PURE__ */ (0,
|
|
2662
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2652
2663
|
"div",
|
|
2653
2664
|
{
|
|
2654
2665
|
"data-slot": "sidebar-group-content",
|
|
@@ -2659,7 +2670,7 @@ function SidebarGroupContent({
|
|
|
2659
2670
|
);
|
|
2660
2671
|
}
|
|
2661
2672
|
function SidebarMenu({ className, ...props }) {
|
|
2662
|
-
return /* @__PURE__ */ (0,
|
|
2673
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2663
2674
|
"ul",
|
|
2664
2675
|
{
|
|
2665
2676
|
"data-slot": "sidebar-menu",
|
|
@@ -2670,7 +2681,7 @@ function SidebarMenu({ className, ...props }) {
|
|
|
2670
2681
|
);
|
|
2671
2682
|
}
|
|
2672
2683
|
function SidebarMenuItem({ className, ...props }) {
|
|
2673
|
-
return /* @__PURE__ */ (0,
|
|
2684
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2674
2685
|
"li",
|
|
2675
2686
|
{
|
|
2676
2687
|
"data-slot": "sidebar-menu-item",
|
|
@@ -2718,7 +2729,7 @@ function SidebarMenuButton({
|
|
|
2718
2729
|
},
|
|
2719
2730
|
props
|
|
2720
2731
|
),
|
|
2721
|
-
render: !tooltip ? render : /* @__PURE__ */ (0,
|
|
2732
|
+
render: !tooltip ? render : /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(TooltipTrigger, { render }),
|
|
2722
2733
|
state: {
|
|
2723
2734
|
slot: "sidebar-menu-button",
|
|
2724
2735
|
sidebar: "menu-button",
|
|
@@ -2734,9 +2745,9 @@ function SidebarMenuButton({
|
|
|
2734
2745
|
children: tooltip
|
|
2735
2746
|
};
|
|
2736
2747
|
}
|
|
2737
|
-
return /* @__PURE__ */ (0,
|
|
2748
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(Tooltip, { children: [
|
|
2738
2749
|
comp,
|
|
2739
|
-
/* @__PURE__ */ (0,
|
|
2750
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2740
2751
|
TooltipContent,
|
|
2741
2752
|
{
|
|
2742
2753
|
side: "right",
|
|
@@ -2776,7 +2787,7 @@ function SidebarMenuBadge({
|
|
|
2776
2787
|
className,
|
|
2777
2788
|
...props
|
|
2778
2789
|
}) {
|
|
2779
|
-
return /* @__PURE__ */ (0,
|
|
2790
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2780
2791
|
"div",
|
|
2781
2792
|
{
|
|
2782
2793
|
"data-slot": "sidebar-menu-badge",
|
|
@@ -2794,10 +2805,10 @@ function SidebarMenuSkeleton({
|
|
|
2794
2805
|
showIcon = false,
|
|
2795
2806
|
...props
|
|
2796
2807
|
}) {
|
|
2797
|
-
const [width] =
|
|
2808
|
+
const [width] = React17.useState(() => {
|
|
2798
2809
|
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
2799
2810
|
});
|
|
2800
|
-
return /* @__PURE__ */ (0,
|
|
2811
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
2801
2812
|
"div",
|
|
2802
2813
|
{
|
|
2803
2814
|
"data-slot": "sidebar-menu-skeleton",
|
|
@@ -2805,14 +2816,14 @@ function SidebarMenuSkeleton({
|
|
|
2805
2816
|
className: (0, import_cn11.cn)("flex h-8 items-center gap-2 rounded-md px-2", className),
|
|
2806
2817
|
...props,
|
|
2807
2818
|
children: [
|
|
2808
|
-
showIcon && /* @__PURE__ */ (0,
|
|
2819
|
+
showIcon && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2809
2820
|
Skeleton,
|
|
2810
2821
|
{
|
|
2811
2822
|
className: "size-4 rounded-md",
|
|
2812
2823
|
"data-sidebar": "menu-skeleton-icon"
|
|
2813
2824
|
}
|
|
2814
2825
|
),
|
|
2815
|
-
/* @__PURE__ */ (0,
|
|
2826
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2816
2827
|
Skeleton,
|
|
2817
2828
|
{
|
|
2818
2829
|
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
@@ -2827,7 +2838,7 @@ function SidebarMenuSkeleton({
|
|
|
2827
2838
|
);
|
|
2828
2839
|
}
|
|
2829
2840
|
function SidebarMenuSub({ className, ...props }) {
|
|
2830
|
-
return /* @__PURE__ */ (0,
|
|
2841
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2831
2842
|
"ul",
|
|
2832
2843
|
{
|
|
2833
2844
|
"data-slot": "sidebar-menu-sub",
|
|
@@ -2844,7 +2855,7 @@ function SidebarMenuSubItem({
|
|
|
2844
2855
|
className,
|
|
2845
2856
|
...props
|
|
2846
2857
|
}) {
|
|
2847
|
-
return /* @__PURE__ */ (0,
|
|
2858
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2848
2859
|
"li",
|
|
2849
2860
|
{
|
|
2850
2861
|
"data-slot": "sidebar-menu-sub-item",
|
|
@@ -2883,7 +2894,7 @@ function SidebarMenuSubButton({
|
|
|
2883
2894
|
}
|
|
2884
2895
|
|
|
2885
2896
|
// src/components/sidebar/Sidebar.tsx
|
|
2886
|
-
var
|
|
2897
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
2887
2898
|
var iconModeButtonClasses = "group-data-[collapsible=icon]:w-10! group-data-[collapsible=icon]:h-10! group-data-[collapsible=icon]:px-3!";
|
|
2888
2899
|
var sizingMenuButtonClasses = "text-base px-3 py-2 h-auto";
|
|
2889
2900
|
var sizingSubButtonClasses = "data-[size=md]:text-base data-[size=sm]:text-base px-3 py-2 h-auto";
|
|
@@ -2891,7 +2902,7 @@ function SidebarGroupLabel2({
|
|
|
2891
2902
|
className,
|
|
2892
2903
|
...props
|
|
2893
2904
|
}) {
|
|
2894
|
-
return /* @__PURE__ */ (0,
|
|
2905
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2895
2906
|
SidebarGroupLabel,
|
|
2896
2907
|
{
|
|
2897
2908
|
className: cn("px-3 uppercase tracking-caption", className),
|
|
@@ -2904,7 +2915,7 @@ function SidebarProvider2({
|
|
|
2904
2915
|
style,
|
|
2905
2916
|
...props
|
|
2906
2917
|
}) {
|
|
2907
|
-
return /* @__PURE__ */ (0,
|
|
2918
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2908
2919
|
SidebarProvider,
|
|
2909
2920
|
{
|
|
2910
2921
|
className,
|
|
@@ -2917,10 +2928,10 @@ function SidebarProvider2({
|
|
|
2917
2928
|
);
|
|
2918
2929
|
}
|
|
2919
2930
|
function SidebarInset2({ className, ...props }) {
|
|
2920
|
-
return /* @__PURE__ */ (0,
|
|
2931
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(SidebarInset, { className: cn("min-w-0", className), ...props });
|
|
2921
2932
|
}
|
|
2922
2933
|
function SidebarGroup2({ className, ...props }) {
|
|
2923
|
-
return /* @__PURE__ */ (0,
|
|
2934
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2924
2935
|
SidebarGroup,
|
|
2925
2936
|
{
|
|
2926
2937
|
className: cn("group-data-[collapsible=icon]:px-2.5", className),
|
|
@@ -2932,7 +2943,7 @@ function SidebarFooter2({
|
|
|
2932
2943
|
className,
|
|
2933
2944
|
...props
|
|
2934
2945
|
}) {
|
|
2935
|
-
return /* @__PURE__ */ (0,
|
|
2946
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2936
2947
|
SidebarFooter,
|
|
2937
2948
|
{
|
|
2938
2949
|
className: cn(
|
|
@@ -2947,7 +2958,7 @@ function SidebarHeader2({
|
|
|
2947
2958
|
className,
|
|
2948
2959
|
...props
|
|
2949
2960
|
}) {
|
|
2950
|
-
return /* @__PURE__ */ (0,
|
|
2961
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2951
2962
|
SidebarHeader,
|
|
2952
2963
|
{
|
|
2953
2964
|
className: cn(
|
|
@@ -2959,8 +2970,8 @@ function SidebarHeader2({
|
|
|
2959
2970
|
);
|
|
2960
2971
|
}
|
|
2961
2972
|
function SidebarLogo() {
|
|
2962
|
-
return /* @__PURE__ */ (0,
|
|
2963
|
-
/* @__PURE__ */ (0,
|
|
2973
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(SidebarHeader, { className: "px-0", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "relative flex h-15 items-center overflow-hidden px-5", children: [
|
|
2974
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2964
2975
|
BergetLogo,
|
|
2965
2976
|
{
|
|
2966
2977
|
variant: "logotype",
|
|
@@ -2968,11 +2979,11 @@ function SidebarLogo() {
|
|
|
2968
2979
|
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
2980
|
}
|
|
2970
2981
|
),
|
|
2971
|
-
/* @__PURE__ */ (0,
|
|
2982
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.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_runtime28.jsx)(BergetLogo, { variant: "symbol", size: 32 }) })
|
|
2972
2983
|
] }) });
|
|
2973
2984
|
}
|
|
2974
2985
|
function SidebarPageHeader({ className, ...props }) {
|
|
2975
|
-
return /* @__PURE__ */ (0,
|
|
2986
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2976
2987
|
"header",
|
|
2977
2988
|
{
|
|
2978
2989
|
className: cn(
|
|
@@ -2984,7 +2995,7 @@ function SidebarPageHeader({ className, ...props }) {
|
|
|
2984
2995
|
);
|
|
2985
2996
|
}
|
|
2986
2997
|
function SidebarMenuButton2({ className, ...props }) {
|
|
2987
|
-
return /* @__PURE__ */ (0,
|
|
2998
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2988
2999
|
SidebarMenuButton,
|
|
2989
3000
|
{
|
|
2990
3001
|
className: cn(sizingMenuButtonClasses, iconModeButtonClasses, className),
|
|
@@ -2993,7 +3004,7 @@ function SidebarMenuButton2({ className, ...props }) {
|
|
|
2993
3004
|
);
|
|
2994
3005
|
}
|
|
2995
3006
|
function SidebarMenuSubButton2({ className, ...props }) {
|
|
2996
|
-
return /* @__PURE__ */ (0,
|
|
3007
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2997
3008
|
SidebarMenuSubButton,
|
|
2998
3009
|
{
|
|
2999
3010
|
className: cn(sizingSubButtonClasses, "[&>svg]:text-inherit", className),
|
|
@@ -3003,18 +3014,18 @@ function SidebarMenuSubButton2({ className, ...props }) {
|
|
|
3003
3014
|
}
|
|
3004
3015
|
|
|
3005
3016
|
// src/components/table/Table.tsx
|
|
3006
|
-
var
|
|
3017
|
+
var React18 = __toESM(require("react"), 1);
|
|
3007
3018
|
|
|
3008
3019
|
// src/primitives/table.tsx
|
|
3009
3020
|
var import_cn12 = require("cn");
|
|
3010
|
-
var
|
|
3021
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
3011
3022
|
function Table({ className, ...props }) {
|
|
3012
|
-
return /* @__PURE__ */ (0,
|
|
3023
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3013
3024
|
"div",
|
|
3014
3025
|
{
|
|
3015
3026
|
"data-slot": "table-container",
|
|
3016
3027
|
className: "relative w-full overflow-x-auto",
|
|
3017
|
-
children: /* @__PURE__ */ (0,
|
|
3028
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3018
3029
|
"table",
|
|
3019
3030
|
{
|
|
3020
3031
|
"data-slot": "table",
|
|
@@ -3026,7 +3037,7 @@ function Table({ className, ...props }) {
|
|
|
3026
3037
|
);
|
|
3027
3038
|
}
|
|
3028
3039
|
function TableHeader({ className, ...props }) {
|
|
3029
|
-
return /* @__PURE__ */ (0,
|
|
3040
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3030
3041
|
"thead",
|
|
3031
3042
|
{
|
|
3032
3043
|
"data-slot": "table-header",
|
|
@@ -3036,7 +3047,7 @@ function TableHeader({ className, ...props }) {
|
|
|
3036
3047
|
);
|
|
3037
3048
|
}
|
|
3038
3049
|
function TableBody({ className, ...props }) {
|
|
3039
|
-
return /* @__PURE__ */ (0,
|
|
3050
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3040
3051
|
"tbody",
|
|
3041
3052
|
{
|
|
3042
3053
|
"data-slot": "table-body",
|
|
@@ -3046,7 +3057,7 @@ function TableBody({ className, ...props }) {
|
|
|
3046
3057
|
);
|
|
3047
3058
|
}
|
|
3048
3059
|
function TableFooter({ className, ...props }) {
|
|
3049
|
-
return /* @__PURE__ */ (0,
|
|
3060
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3050
3061
|
"tfoot",
|
|
3051
3062
|
{
|
|
3052
3063
|
"data-slot": "table-footer",
|
|
@@ -3059,7 +3070,7 @@ function TableFooter({ className, ...props }) {
|
|
|
3059
3070
|
);
|
|
3060
3071
|
}
|
|
3061
3072
|
function TableRow({ className, ...props }) {
|
|
3062
|
-
return /* @__PURE__ */ (0,
|
|
3073
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3063
3074
|
"tr",
|
|
3064
3075
|
{
|
|
3065
3076
|
"data-slot": "table-row",
|
|
@@ -3072,7 +3083,7 @@ function TableRow({ className, ...props }) {
|
|
|
3072
3083
|
);
|
|
3073
3084
|
}
|
|
3074
3085
|
function TableHead({ className, ...props }) {
|
|
3075
|
-
return /* @__PURE__ */ (0,
|
|
3086
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3076
3087
|
"th",
|
|
3077
3088
|
{
|
|
3078
3089
|
"data-slot": "table-head",
|
|
@@ -3085,7 +3096,7 @@ function TableHead({ className, ...props }) {
|
|
|
3085
3096
|
);
|
|
3086
3097
|
}
|
|
3087
3098
|
function TableCell({ className, ...props }) {
|
|
3088
|
-
return /* @__PURE__ */ (0,
|
|
3099
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3089
3100
|
"td",
|
|
3090
3101
|
{
|
|
3091
3102
|
"data-slot": "table-cell",
|
|
@@ -3101,7 +3112,7 @@ function TableCaption({
|
|
|
3101
3112
|
className,
|
|
3102
3113
|
...props
|
|
3103
3114
|
}) {
|
|
3104
|
-
return /* @__PURE__ */ (0,
|
|
3115
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3105
3116
|
"caption",
|
|
3106
3117
|
{
|
|
3107
3118
|
"data-slot": "table-caption",
|
|
@@ -3112,12 +3123,12 @@ function TableCaption({
|
|
|
3112
3123
|
}
|
|
3113
3124
|
|
|
3114
3125
|
// src/components/table/Table.tsx
|
|
3115
|
-
var
|
|
3116
|
-
var Table2 =
|
|
3117
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3126
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
3127
|
+
var Table2 = React18.forwardRef(
|
|
3128
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Table, { ref, className, ...props })
|
|
3118
3129
|
);
|
|
3119
3130
|
Table2.displayName = "Table";
|
|
3120
|
-
var TableHeader2 =
|
|
3131
|
+
var TableHeader2 = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3121
3132
|
TableHeader,
|
|
3122
3133
|
{
|
|
3123
3134
|
ref,
|
|
@@ -3126,7 +3137,7 @@ var TableHeader2 = React17.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
3126
3137
|
}
|
|
3127
3138
|
));
|
|
3128
3139
|
TableHeader2.displayName = "TableHeader";
|
|
3129
|
-
var TableBody2 =
|
|
3140
|
+
var TableBody2 = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3130
3141
|
TableBody,
|
|
3131
3142
|
{
|
|
3132
3143
|
ref,
|
|
@@ -3135,7 +3146,7 @@ var TableBody2 = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
3135
3146
|
}
|
|
3136
3147
|
));
|
|
3137
3148
|
TableBody2.displayName = "TableBody";
|
|
3138
|
-
var TableFooter2 =
|
|
3149
|
+
var TableFooter2 = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3139
3150
|
TableFooter,
|
|
3140
3151
|
{
|
|
3141
3152
|
ref,
|
|
@@ -3147,8 +3158,8 @@ var TableFooter2 = React17.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
3147
3158
|
}
|
|
3148
3159
|
));
|
|
3149
3160
|
TableFooter2.displayName = "TableFooter";
|
|
3150
|
-
var TableRow2 =
|
|
3151
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3161
|
+
var TableRow2 = React18.forwardRef(
|
|
3162
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3152
3163
|
TableRow,
|
|
3153
3164
|
{
|
|
3154
3165
|
ref,
|
|
@@ -3161,7 +3172,7 @@ var TableRow2 = React17.forwardRef(
|
|
|
3161
3172
|
)
|
|
3162
3173
|
);
|
|
3163
3174
|
TableRow2.displayName = "TableRow";
|
|
3164
|
-
var TableHead2 =
|
|
3175
|
+
var TableHead2 = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3165
3176
|
TableHead,
|
|
3166
3177
|
{
|
|
3167
3178
|
ref,
|
|
@@ -3173,7 +3184,7 @@ var TableHead2 = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
3173
3184
|
}
|
|
3174
3185
|
));
|
|
3175
3186
|
TableHead2.displayName = "TableHead";
|
|
3176
|
-
var TableCell2 =
|
|
3187
|
+
var TableCell2 = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3177
3188
|
TableCell,
|
|
3178
3189
|
{
|
|
3179
3190
|
ref,
|
|
@@ -3182,7 +3193,7 @@ var TableCell2 = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
3182
3193
|
}
|
|
3183
3194
|
));
|
|
3184
3195
|
TableCell2.displayName = "TableCell";
|
|
3185
|
-
var TableCaption2 =
|
|
3196
|
+
var TableCaption2 = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3186
3197
|
TableCaption,
|
|
3187
3198
|
{
|
|
3188
3199
|
ref,
|
|
@@ -3193,16 +3204,16 @@ var TableCaption2 = React17.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
3193
3204
|
TableCaption2.displayName = "TableCaption";
|
|
3194
3205
|
|
|
3195
3206
|
// src/components/item/Item.tsx
|
|
3196
|
-
var
|
|
3207
|
+
var React19 = __toESM(require("react"), 1);
|
|
3197
3208
|
|
|
3198
3209
|
// src/primitives/item.tsx
|
|
3199
3210
|
var import_merge_props2 = require("@base-ui/react/merge-props");
|
|
3200
3211
|
var import_use_render2 = require("@base-ui/react/use-render");
|
|
3201
3212
|
var import_class_variance_authority10 = require("class-variance-authority");
|
|
3202
3213
|
var import_cn13 = require("cn");
|
|
3203
|
-
var
|
|
3214
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
3204
3215
|
function ItemGroup({ className, ...props }) {
|
|
3205
|
-
return /* @__PURE__ */ (0,
|
|
3216
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3206
3217
|
"div",
|
|
3207
3218
|
{
|
|
3208
3219
|
role: "list",
|
|
@@ -3219,7 +3230,7 @@ function ItemSeparator({
|
|
|
3219
3230
|
className,
|
|
3220
3231
|
...props
|
|
3221
3232
|
}) {
|
|
3222
|
-
return /* @__PURE__ */ (0,
|
|
3233
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3223
3234
|
Separator,
|
|
3224
3235
|
{
|
|
3225
3236
|
"data-slot": "item-separator",
|
|
@@ -3293,7 +3304,7 @@ function ItemMedia({
|
|
|
3293
3304
|
variant = "default",
|
|
3294
3305
|
...props
|
|
3295
3306
|
}) {
|
|
3296
|
-
return /* @__PURE__ */ (0,
|
|
3307
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3297
3308
|
"div",
|
|
3298
3309
|
{
|
|
3299
3310
|
"data-slot": "item-media",
|
|
@@ -3304,7 +3315,7 @@ function ItemMedia({
|
|
|
3304
3315
|
);
|
|
3305
3316
|
}
|
|
3306
3317
|
function ItemContent({ className, ...props }) {
|
|
3307
|
-
return /* @__PURE__ */ (0,
|
|
3318
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3308
3319
|
"div",
|
|
3309
3320
|
{
|
|
3310
3321
|
"data-slot": "item-content",
|
|
@@ -3317,7 +3328,7 @@ function ItemContent({ className, ...props }) {
|
|
|
3317
3328
|
);
|
|
3318
3329
|
}
|
|
3319
3330
|
function ItemTitle({ className, ...props }) {
|
|
3320
|
-
return /* @__PURE__ */ (0,
|
|
3331
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3321
3332
|
"div",
|
|
3322
3333
|
{
|
|
3323
3334
|
"data-slot": "item-title",
|
|
@@ -3330,7 +3341,7 @@ function ItemTitle({ className, ...props }) {
|
|
|
3330
3341
|
);
|
|
3331
3342
|
}
|
|
3332
3343
|
function ItemDescription({ className, ...props }) {
|
|
3333
|
-
return /* @__PURE__ */ (0,
|
|
3344
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3334
3345
|
"p",
|
|
3335
3346
|
{
|
|
3336
3347
|
"data-slot": "item-description",
|
|
@@ -3343,7 +3354,7 @@ function ItemDescription({ className, ...props }) {
|
|
|
3343
3354
|
);
|
|
3344
3355
|
}
|
|
3345
3356
|
function ItemActions({ className, ...props }) {
|
|
3346
|
-
return /* @__PURE__ */ (0,
|
|
3357
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3347
3358
|
"div",
|
|
3348
3359
|
{
|
|
3349
3360
|
"data-slot": "item-actions",
|
|
@@ -3353,7 +3364,7 @@ function ItemActions({ className, ...props }) {
|
|
|
3353
3364
|
);
|
|
3354
3365
|
}
|
|
3355
3366
|
function ItemHeader({ className, ...props }) {
|
|
3356
|
-
return /* @__PURE__ */ (0,
|
|
3367
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3357
3368
|
"div",
|
|
3358
3369
|
{
|
|
3359
3370
|
"data-slot": "item-header",
|
|
@@ -3366,7 +3377,7 @@ function ItemHeader({ className, ...props }) {
|
|
|
3366
3377
|
);
|
|
3367
3378
|
}
|
|
3368
3379
|
function ItemFooter({ className, ...props }) {
|
|
3369
|
-
return /* @__PURE__ */ (0,
|
|
3380
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3370
3381
|
"div",
|
|
3371
3382
|
{
|
|
3372
3383
|
"data-slot": "item-footer",
|
|
@@ -3380,9 +3391,9 @@ function ItemFooter({ className, ...props }) {
|
|
|
3380
3391
|
}
|
|
3381
3392
|
|
|
3382
3393
|
// src/components/item/Item.tsx
|
|
3383
|
-
var
|
|
3394
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
3384
3395
|
function Item2({ className, asChild, children, ...props }) {
|
|
3385
|
-
return /* @__PURE__ */ (0,
|
|
3396
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3386
3397
|
Item,
|
|
3387
3398
|
{
|
|
3388
3399
|
render: asChild ? children : void 0,
|
|
@@ -3401,8 +3412,8 @@ function Item2({ className, asChild, children, ...props }) {
|
|
|
3401
3412
|
}
|
|
3402
3413
|
);
|
|
3403
3414
|
}
|
|
3404
|
-
var ItemMedia2 =
|
|
3405
|
-
return /* @__PURE__ */ (0,
|
|
3415
|
+
var ItemMedia2 = React19.forwardRef(({ className, ...props }, ref) => {
|
|
3416
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3406
3417
|
ItemMedia,
|
|
3407
3418
|
{
|
|
3408
3419
|
ref,
|
|
@@ -3412,8 +3423,8 @@ var ItemMedia2 = React18.forwardRef(({ className, ...props }, ref) => {
|
|
|
3412
3423
|
);
|
|
3413
3424
|
});
|
|
3414
3425
|
ItemMedia2.displayName = "ItemMedia";
|
|
3415
|
-
var ItemTitle2 =
|
|
3416
|
-
return /* @__PURE__ */ (0,
|
|
3426
|
+
var ItemTitle2 = React19.forwardRef(({ className, ...props }, ref) => {
|
|
3427
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3417
3428
|
ItemTitle,
|
|
3418
3429
|
{
|
|
3419
3430
|
ref,
|
|
@@ -3423,8 +3434,8 @@ var ItemTitle2 = React18.forwardRef(({ className, ...props }, ref) => {
|
|
|
3423
3434
|
);
|
|
3424
3435
|
});
|
|
3425
3436
|
ItemTitle2.displayName = "ItemTitle";
|
|
3426
|
-
var ItemDescription2 =
|
|
3427
|
-
return /* @__PURE__ */ (0,
|
|
3437
|
+
var ItemDescription2 = React19.forwardRef(({ className, ...props }, ref) => {
|
|
3438
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3428
3439
|
ItemDescription,
|
|
3429
3440
|
{
|
|
3430
3441
|
ref,
|
|
@@ -3434,8 +3445,8 @@ var ItemDescription2 = React18.forwardRef(({ className, ...props }, ref) => {
|
|
|
3434
3445
|
);
|
|
3435
3446
|
});
|
|
3436
3447
|
ItemDescription2.displayName = "ItemDescription";
|
|
3437
|
-
var ItemSeparator2 =
|
|
3438
|
-
return /* @__PURE__ */ (0,
|
|
3448
|
+
var ItemSeparator2 = React19.forwardRef(({ className, ...props }, ref) => {
|
|
3449
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3439
3450
|
ItemSeparator,
|
|
3440
3451
|
{
|
|
3441
3452
|
ref,
|
|
@@ -3447,14 +3458,14 @@ var ItemSeparator2 = React18.forwardRef(({ className, ...props }, ref) => {
|
|
|
3447
3458
|
ItemSeparator2.displayName = "ItemSeparator";
|
|
3448
3459
|
|
|
3449
3460
|
// src/components/empty/Empty.tsx
|
|
3450
|
-
var
|
|
3461
|
+
var React20 = __toESM(require("react"), 1);
|
|
3451
3462
|
|
|
3452
3463
|
// src/primitives/empty.tsx
|
|
3453
3464
|
var import_class_variance_authority11 = require("class-variance-authority");
|
|
3454
3465
|
var import_cn14 = require("cn");
|
|
3455
|
-
var
|
|
3466
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
3456
3467
|
function Empty({ className, ...props }) {
|
|
3457
|
-
return /* @__PURE__ */ (0,
|
|
3468
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3458
3469
|
"div",
|
|
3459
3470
|
{
|
|
3460
3471
|
"data-slot": "empty",
|
|
@@ -3467,7 +3478,7 @@ function Empty({ className, ...props }) {
|
|
|
3467
3478
|
);
|
|
3468
3479
|
}
|
|
3469
3480
|
function EmptyHeader({ className, ...props }) {
|
|
3470
|
-
return /* @__PURE__ */ (0,
|
|
3481
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3471
3482
|
"div",
|
|
3472
3483
|
{
|
|
3473
3484
|
"data-slot": "empty-header",
|
|
@@ -3495,7 +3506,7 @@ function EmptyMedia({
|
|
|
3495
3506
|
variant = "default",
|
|
3496
3507
|
...props
|
|
3497
3508
|
}) {
|
|
3498
|
-
return /* @__PURE__ */ (0,
|
|
3509
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3499
3510
|
"div",
|
|
3500
3511
|
{
|
|
3501
3512
|
"data-slot": "empty-icon",
|
|
@@ -3506,7 +3517,7 @@ function EmptyMedia({
|
|
|
3506
3517
|
);
|
|
3507
3518
|
}
|
|
3508
3519
|
function EmptyTitle({ className, ...props }) {
|
|
3509
|
-
return /* @__PURE__ */ (0,
|
|
3520
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3510
3521
|
"div",
|
|
3511
3522
|
{
|
|
3512
3523
|
"data-slot": "empty-title",
|
|
@@ -3519,7 +3530,7 @@ function EmptyTitle({ className, ...props }) {
|
|
|
3519
3530
|
);
|
|
3520
3531
|
}
|
|
3521
3532
|
function EmptyDescription({ className, ...props }) {
|
|
3522
|
-
return /* @__PURE__ */ (0,
|
|
3533
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3523
3534
|
"div",
|
|
3524
3535
|
{
|
|
3525
3536
|
"data-slot": "empty-description",
|
|
@@ -3532,7 +3543,7 @@ function EmptyDescription({ className, ...props }) {
|
|
|
3532
3543
|
);
|
|
3533
3544
|
}
|
|
3534
3545
|
function EmptyContent({ className, ...props }) {
|
|
3535
|
-
return /* @__PURE__ */ (0,
|
|
3546
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3536
3547
|
"div",
|
|
3537
3548
|
{
|
|
3538
3549
|
"data-slot": "empty-content",
|
|
@@ -3546,12 +3557,12 @@ function EmptyContent({ className, ...props }) {
|
|
|
3546
3557
|
}
|
|
3547
3558
|
|
|
3548
3559
|
// src/components/empty/Empty.tsx
|
|
3549
|
-
var
|
|
3560
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
3550
3561
|
function Empty2({ className, ...props }) {
|
|
3551
|
-
return /* @__PURE__ */ (0,
|
|
3562
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Empty, { className, ...props });
|
|
3552
3563
|
}
|
|
3553
|
-
var EmptyMedia2 =
|
|
3554
|
-
return /* @__PURE__ */ (0,
|
|
3564
|
+
var EmptyMedia2 = React20.forwardRef(({ className, ...props }, ref) => {
|
|
3565
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3555
3566
|
EmptyMedia,
|
|
3556
3567
|
{
|
|
3557
3568
|
ref,
|
|
@@ -3564,8 +3575,8 @@ var EmptyMedia2 = React19.forwardRef(({ className, ...props }, ref) => {
|
|
|
3564
3575
|
);
|
|
3565
3576
|
});
|
|
3566
3577
|
EmptyMedia2.displayName = "EmptyMedia";
|
|
3567
|
-
var EmptyTitle2 =
|
|
3568
|
-
return /* @__PURE__ */ (0,
|
|
3578
|
+
var EmptyTitle2 = React20.forwardRef(({ className, ...props }, ref) => {
|
|
3579
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3569
3580
|
EmptyTitle,
|
|
3570
3581
|
{
|
|
3571
3582
|
ref,
|
|
@@ -3575,8 +3586,8 @@ var EmptyTitle2 = React19.forwardRef(({ className, ...props }, ref) => {
|
|
|
3575
3586
|
);
|
|
3576
3587
|
});
|
|
3577
3588
|
EmptyTitle2.displayName = "EmptyTitle";
|
|
3578
|
-
var EmptyDescription2 =
|
|
3579
|
-
return /* @__PURE__ */ (0,
|
|
3589
|
+
var EmptyDescription2 = React20.forwardRef(({ className, ...props }, ref) => {
|
|
3590
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3580
3591
|
EmptyDescription,
|
|
3581
3592
|
{
|
|
3582
3593
|
ref,
|
|
@@ -3589,22 +3600,22 @@ EmptyDescription2.displayName = "EmptyDescription";
|
|
|
3589
3600
|
|
|
3590
3601
|
// src/components/search-input/SearchInput.tsx
|
|
3591
3602
|
var import_lucide_react8 = require("lucide-react");
|
|
3592
|
-
var
|
|
3603
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
3593
3604
|
var SearchInput = ({
|
|
3594
3605
|
type = "search",
|
|
3595
3606
|
placeholder = "Search...",
|
|
3596
3607
|
className,
|
|
3597
3608
|
ref,
|
|
3598
3609
|
...props
|
|
3599
|
-
}) => /* @__PURE__ */ (0,
|
|
3600
|
-
/* @__PURE__ */ (0,
|
|
3610
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "relative flex w-full items-center", "data-slot": "search-input", children: [
|
|
3611
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3601
3612
|
import_lucide_react8.Search,
|
|
3602
3613
|
{
|
|
3603
3614
|
"aria-hidden": "true",
|
|
3604
3615
|
className: "pointer-events-none absolute left-2.5 size-4 text-berget-muted-foreground"
|
|
3605
3616
|
}
|
|
3606
3617
|
),
|
|
3607
|
-
/* @__PURE__ */ (0,
|
|
3618
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3608
3619
|
Input,
|
|
3609
3620
|
{
|
|
3610
3621
|
ref,
|
|
@@ -3618,7 +3629,7 @@ var SearchInput = ({
|
|
|
3618
3629
|
SearchInput.displayName = "SearchInput";
|
|
3619
3630
|
|
|
3620
3631
|
// src/components/checkbox/Checkbox.tsx
|
|
3621
|
-
var
|
|
3632
|
+
var React21 = __toESM(require("react"), 1);
|
|
3622
3633
|
var import_checkbox2 = require("@base-ui/react/checkbox");
|
|
3623
3634
|
var import_lucide_react10 = require("lucide-react");
|
|
3624
3635
|
var import_class_variance_authority12 = require("class-variance-authority");
|
|
@@ -3627,9 +3638,9 @@ var import_class_variance_authority12 = require("class-variance-authority");
|
|
|
3627
3638
|
var import_checkbox = require("@base-ui/react/checkbox");
|
|
3628
3639
|
var import_cn15 = require("cn");
|
|
3629
3640
|
var import_lucide_react9 = require("lucide-react");
|
|
3630
|
-
var
|
|
3641
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
3631
3642
|
function Checkbox({ className, ...props }) {
|
|
3632
|
-
return /* @__PURE__ */ (0,
|
|
3643
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3633
3644
|
import_checkbox.Checkbox.Root,
|
|
3634
3645
|
{
|
|
3635
3646
|
"data-slot": "checkbox",
|
|
@@ -3638,12 +3649,12 @@ function Checkbox({ className, ...props }) {
|
|
|
3638
3649
|
className
|
|
3639
3650
|
),
|
|
3640
3651
|
...props,
|
|
3641
|
-
children: /* @__PURE__ */ (0,
|
|
3652
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3642
3653
|
import_checkbox.Checkbox.Indicator,
|
|
3643
3654
|
{
|
|
3644
3655
|
"data-slot": "checkbox-indicator",
|
|
3645
3656
|
className: "grid place-content-center text-current transition-none [&>svg]:size-3.5",
|
|
3646
|
-
children: /* @__PURE__ */ (0,
|
|
3657
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3647
3658
|
import_lucide_react9.CheckIcon,
|
|
3648
3659
|
{}
|
|
3649
3660
|
)
|
|
@@ -3654,7 +3665,7 @@ function Checkbox({ className, ...props }) {
|
|
|
3654
3665
|
}
|
|
3655
3666
|
|
|
3656
3667
|
// src/components/checkbox/Checkbox.tsx
|
|
3657
|
-
var
|
|
3668
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
3658
3669
|
var checkboxVariants = (0, import_class_variance_authority12.cva)(
|
|
3659
3670
|
"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
3671
|
{
|
|
@@ -3676,7 +3687,7 @@ var checkboxVariants = (0, import_class_variance_authority12.cva)(
|
|
|
3676
3687
|
}
|
|
3677
3688
|
}
|
|
3678
3689
|
);
|
|
3679
|
-
var Checkbox2 =
|
|
3690
|
+
var Checkbox2 = React21.forwardRef(
|
|
3680
3691
|
({
|
|
3681
3692
|
"aria-label": ariaLabel,
|
|
3682
3693
|
className,
|
|
@@ -3689,11 +3700,11 @@ var Checkbox2 = React20.forwardRef(
|
|
|
3689
3700
|
disabled,
|
|
3690
3701
|
...props
|
|
3691
3702
|
}, ref) => {
|
|
3692
|
-
const generatedId =
|
|
3703
|
+
const generatedId = React21.useId();
|
|
3693
3704
|
const checkboxId = id || generatedId;
|
|
3694
3705
|
const errorId = `${checkboxId}-error`;
|
|
3695
|
-
return /* @__PURE__ */ (0,
|
|
3696
|
-
/* @__PURE__ */ (0,
|
|
3706
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex items-start gap-3", children: [
|
|
3707
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "relative flex items-start pt-0.5", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
3697
3708
|
Checkbox,
|
|
3698
3709
|
{
|
|
3699
3710
|
ref,
|
|
@@ -3709,7 +3720,7 @@ var Checkbox2 = React20.forwardRef(
|
|
|
3709
3720
|
className
|
|
3710
3721
|
),
|
|
3711
3722
|
...props,
|
|
3712
|
-
children: /* @__PURE__ */ (0,
|
|
3723
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_checkbox2.Checkbox.Indicator, { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
3713
3724
|
import_lucide_react10.Check,
|
|
3714
3725
|
{
|
|
3715
3726
|
className: "h-4 w-4 text-current stroke-current",
|
|
@@ -3718,8 +3729,8 @@ var Checkbox2 = React20.forwardRef(
|
|
|
3718
3729
|
) })
|
|
3719
3730
|
}
|
|
3720
3731
|
) }),
|
|
3721
|
-
(label || description || error) && /* @__PURE__ */ (0,
|
|
3722
|
-
label && /* @__PURE__ */ (0,
|
|
3732
|
+
(label || description || error) && /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex flex-col gap-1", children: [
|
|
3733
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
3723
3734
|
"label",
|
|
3724
3735
|
{
|
|
3725
3736
|
htmlFor: checkboxId,
|
|
@@ -3731,8 +3742,8 @@ var Checkbox2 = React20.forwardRef(
|
|
|
3731
3742
|
children: label
|
|
3732
3743
|
}
|
|
3733
3744
|
),
|
|
3734
|
-
description && /* @__PURE__ */ (0,
|
|
3735
|
-
error && /* @__PURE__ */ (0,
|
|
3745
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Typography, { variant: "xs", color: "muted", children: description }),
|
|
3746
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
3736
3747
|
] })
|
|
3737
3748
|
] });
|
|
3738
3749
|
}
|
|
@@ -3740,10 +3751,10 @@ var Checkbox2 = React20.forwardRef(
|
|
|
3740
3751
|
Checkbox2.displayName = "Checkbox";
|
|
3741
3752
|
|
|
3742
3753
|
// src/components/switch/Switch.tsx
|
|
3743
|
-
var
|
|
3754
|
+
var React22 = __toESM(require("react"), 1);
|
|
3744
3755
|
var import_switch = require("@base-ui/react/switch");
|
|
3745
3756
|
var import_class_variance_authority13 = require("class-variance-authority");
|
|
3746
|
-
var
|
|
3757
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
3747
3758
|
var switchRootVariants = (0, import_class_variance_authority13.cva)(
|
|
3748
3759
|
"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
3760
|
{
|
|
@@ -3780,7 +3791,7 @@ var switchThumbVariants = (0, import_class_variance_authority13.cva)(
|
|
|
3780
3791
|
}
|
|
3781
3792
|
}
|
|
3782
3793
|
);
|
|
3783
|
-
var Switch =
|
|
3794
|
+
var Switch = React22.forwardRef(
|
|
3784
3795
|
({
|
|
3785
3796
|
"aria-label": ariaLabel,
|
|
3786
3797
|
className,
|
|
@@ -3793,11 +3804,11 @@ var Switch = React21.forwardRef(
|
|
|
3793
3804
|
disabled,
|
|
3794
3805
|
...props
|
|
3795
3806
|
}, ref) => {
|
|
3796
|
-
const generatedId =
|
|
3807
|
+
const generatedId = React22.useId();
|
|
3797
3808
|
const switchId = id || generatedId;
|
|
3798
3809
|
const errorId = `${switchId}-error`;
|
|
3799
|
-
return /* @__PURE__ */ (0,
|
|
3800
|
-
/* @__PURE__ */ (0,
|
|
3810
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex items-center gap-3", children: [
|
|
3811
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3801
3812
|
import_switch.Switch.Root,
|
|
3802
3813
|
{
|
|
3803
3814
|
ref,
|
|
@@ -3812,11 +3823,11 @@ var Switch = React21.forwardRef(
|
|
|
3812
3823
|
className
|
|
3813
3824
|
),
|
|
3814
3825
|
...props,
|
|
3815
|
-
children: /* @__PURE__ */ (0,
|
|
3826
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_switch.Switch.Thumb, { className: cn(switchThumbVariants({ size })) })
|
|
3816
3827
|
}
|
|
3817
3828
|
),
|
|
3818
|
-
(label || description || error) && /* @__PURE__ */ (0,
|
|
3819
|
-
label && /* @__PURE__ */ (0,
|
|
3829
|
+
(label || description || error) && /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex flex-col gap-1", children: [
|
|
3830
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3820
3831
|
"label",
|
|
3821
3832
|
{
|
|
3822
3833
|
htmlFor: switchId,
|
|
@@ -3827,8 +3838,8 @@ var Switch = React21.forwardRef(
|
|
|
3827
3838
|
children: label
|
|
3828
3839
|
}
|
|
3829
3840
|
),
|
|
3830
|
-
description && /* @__PURE__ */ (0,
|
|
3831
|
-
error && /* @__PURE__ */ (0,
|
|
3841
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Typography, { variant: "xs", color: "muted", children: description }),
|
|
3842
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
3832
3843
|
] })
|
|
3833
3844
|
] });
|
|
3834
3845
|
}
|
|
@@ -3839,10 +3850,10 @@ Switch.displayName = "Switch";
|
|
|
3839
3850
|
var import_select = require("@base-ui/react/select");
|
|
3840
3851
|
var import_cn16 = require("cn");
|
|
3841
3852
|
var import_lucide_react11 = require("lucide-react");
|
|
3842
|
-
var
|
|
3853
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
3843
3854
|
var Select = import_select.Select.Root;
|
|
3844
3855
|
function SelectGroup({ className, ...props }) {
|
|
3845
|
-
return /* @__PURE__ */ (0,
|
|
3856
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
3846
3857
|
import_select.Select.Group,
|
|
3847
3858
|
{
|
|
3848
3859
|
"data-slot": "select-group",
|
|
@@ -3852,7 +3863,7 @@ function SelectGroup({ className, ...props }) {
|
|
|
3852
3863
|
);
|
|
3853
3864
|
}
|
|
3854
3865
|
function SelectValue({ className, ...props }) {
|
|
3855
|
-
return /* @__PURE__ */ (0,
|
|
3866
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
3856
3867
|
import_select.Select.Value,
|
|
3857
3868
|
{
|
|
3858
3869
|
"data-slot": "select-value",
|
|
@@ -3867,7 +3878,7 @@ function SelectTrigger({
|
|
|
3867
3878
|
children,
|
|
3868
3879
|
...props
|
|
3869
3880
|
}) {
|
|
3870
|
-
return /* @__PURE__ */ (0,
|
|
3881
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
3871
3882
|
import_select.Select.Trigger,
|
|
3872
3883
|
{
|
|
3873
3884
|
"data-slot": "select-trigger",
|
|
@@ -3879,10 +3890,10 @@ function SelectTrigger({
|
|
|
3879
3890
|
...props,
|
|
3880
3891
|
children: [
|
|
3881
3892
|
children,
|
|
3882
|
-
/* @__PURE__ */ (0,
|
|
3893
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
3883
3894
|
import_select.Select.Icon,
|
|
3884
3895
|
{
|
|
3885
|
-
render: /* @__PURE__ */ (0,
|
|
3896
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_lucide_react11.ChevronDownIcon, { className: "pointer-events-none size-4 text-muted-foreground" })
|
|
3886
3897
|
}
|
|
3887
3898
|
)
|
|
3888
3899
|
]
|
|
@@ -3899,7 +3910,7 @@ function SelectContent({
|
|
|
3899
3910
|
alignItemWithTrigger = true,
|
|
3900
3911
|
...props
|
|
3901
3912
|
}) {
|
|
3902
|
-
return /* @__PURE__ */ (0,
|
|
3913
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_select.Select.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
3903
3914
|
import_select.Select.Positioner,
|
|
3904
3915
|
{
|
|
3905
3916
|
side,
|
|
@@ -3908,7 +3919,7 @@ function SelectContent({
|
|
|
3908
3919
|
alignOffset,
|
|
3909
3920
|
alignItemWithTrigger,
|
|
3910
3921
|
className: "isolate z-50",
|
|
3911
|
-
children: /* @__PURE__ */ (0,
|
|
3922
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
3912
3923
|
import_select.Select.Popup,
|
|
3913
3924
|
{
|
|
3914
3925
|
"data-slot": "select-content",
|
|
@@ -3916,9 +3927,9 @@ function SelectContent({
|
|
|
3916
3927
|
className: (0, import_cn16.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
3928
|
...props,
|
|
3918
3929
|
children: [
|
|
3919
|
-
/* @__PURE__ */ (0,
|
|
3920
|
-
/* @__PURE__ */ (0,
|
|
3921
|
-
/* @__PURE__ */ (0,
|
|
3930
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(SelectScrollUpButton, {}),
|
|
3931
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_select.Select.List, { children }),
|
|
3932
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(SelectScrollDownButton, {})
|
|
3922
3933
|
]
|
|
3923
3934
|
}
|
|
3924
3935
|
)
|
|
@@ -3929,7 +3940,7 @@ function SelectLabel({
|
|
|
3929
3940
|
className,
|
|
3930
3941
|
...props
|
|
3931
3942
|
}) {
|
|
3932
|
-
return /* @__PURE__ */ (0,
|
|
3943
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
3933
3944
|
import_select.Select.GroupLabel,
|
|
3934
3945
|
{
|
|
3935
3946
|
"data-slot": "select-label",
|
|
@@ -3943,7 +3954,7 @@ function SelectItem({
|
|
|
3943
3954
|
children,
|
|
3944
3955
|
...props
|
|
3945
3956
|
}) {
|
|
3946
|
-
return /* @__PURE__ */ (0,
|
|
3957
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
3947
3958
|
import_select.Select.Item,
|
|
3948
3959
|
{
|
|
3949
3960
|
"data-slot": "select-item",
|
|
@@ -3953,12 +3964,12 @@ function SelectItem({
|
|
|
3953
3964
|
),
|
|
3954
3965
|
...props,
|
|
3955
3966
|
children: [
|
|
3956
|
-
/* @__PURE__ */ (0,
|
|
3957
|
-
/* @__PURE__ */ (0,
|
|
3967
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_select.Select.ItemText, { className: "flex flex-1 shrink-0 gap-2 whitespace-nowrap", children }),
|
|
3968
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
3958
3969
|
import_select.Select.ItemIndicator,
|
|
3959
3970
|
{
|
|
3960
|
-
render: /* @__PURE__ */ (0,
|
|
3961
|
-
children: /* @__PURE__ */ (0,
|
|
3971
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center" }),
|
|
3972
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_lucide_react11.CheckIcon, { className: "pointer-events-none" })
|
|
3962
3973
|
}
|
|
3963
3974
|
)
|
|
3964
3975
|
]
|
|
@@ -3969,7 +3980,7 @@ function SelectSeparator({
|
|
|
3969
3980
|
className,
|
|
3970
3981
|
...props
|
|
3971
3982
|
}) {
|
|
3972
|
-
return /* @__PURE__ */ (0,
|
|
3983
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
3973
3984
|
import_select.Select.Separator,
|
|
3974
3985
|
{
|
|
3975
3986
|
"data-slot": "select-separator",
|
|
@@ -3982,7 +3993,7 @@ function SelectScrollUpButton({
|
|
|
3982
3993
|
className,
|
|
3983
3994
|
...props
|
|
3984
3995
|
}) {
|
|
3985
|
-
return /* @__PURE__ */ (0,
|
|
3996
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
3986
3997
|
import_select.Select.ScrollUpArrow,
|
|
3987
3998
|
{
|
|
3988
3999
|
"data-slot": "select-scroll-up-button",
|
|
@@ -3991,7 +4002,7 @@ function SelectScrollUpButton({
|
|
|
3991
4002
|
className
|
|
3992
4003
|
),
|
|
3993
4004
|
...props,
|
|
3994
|
-
children: /* @__PURE__ */ (0,
|
|
4005
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
3995
4006
|
import_lucide_react11.ChevronUpIcon,
|
|
3996
4007
|
{}
|
|
3997
4008
|
)
|
|
@@ -4002,7 +4013,7 @@ function SelectScrollDownButton({
|
|
|
4002
4013
|
className,
|
|
4003
4014
|
...props
|
|
4004
4015
|
}) {
|
|
4005
|
-
return /* @__PURE__ */ (0,
|
|
4016
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
4006
4017
|
import_select.Select.ScrollDownArrow,
|
|
4007
4018
|
{
|
|
4008
4019
|
"data-slot": "select-scroll-down-button",
|
|
@@ -4011,7 +4022,7 @@ function SelectScrollDownButton({
|
|
|
4011
4022
|
className
|
|
4012
4023
|
),
|
|
4013
4024
|
...props,
|
|
4014
|
-
children: /* @__PURE__ */ (0,
|
|
4025
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
4015
4026
|
import_lucide_react11.ChevronDownIcon,
|
|
4016
4027
|
{}
|
|
4017
4028
|
)
|
|
@@ -4020,19 +4031,19 @@ function SelectScrollDownButton({
|
|
|
4020
4031
|
}
|
|
4021
4032
|
|
|
4022
4033
|
// src/components/country-select/CountrySelect.tsx
|
|
4023
|
-
var
|
|
4034
|
+
var React24 = __toESM(require("react"), 1);
|
|
4024
4035
|
var import_lucide_react14 = require("lucide-react");
|
|
4025
4036
|
|
|
4026
4037
|
// src/components/icon/Icon.tsx
|
|
4027
|
-
var
|
|
4028
|
-
var
|
|
4038
|
+
var React23 = __toESM(require("react"), 1);
|
|
4039
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
4029
4040
|
var iconStrokeMap = {
|
|
4030
4041
|
12: 1.4,
|
|
4031
4042
|
16: 1.4,
|
|
4032
4043
|
24: 1.6,
|
|
4033
4044
|
32: 1.8
|
|
4034
4045
|
};
|
|
4035
|
-
var Icon =
|
|
4046
|
+
var Icon = React23.forwardRef(
|
|
4036
4047
|
({
|
|
4037
4048
|
icon: IconComponent,
|
|
4038
4049
|
size,
|
|
@@ -4044,7 +4055,7 @@ var Icon = React22.forwardRef(
|
|
|
4044
4055
|
const strokeWidth = iconStrokeMap[size];
|
|
4045
4056
|
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
4057
|
const ariaAttributes = ariaLabel ? { "aria-label": ariaLabel } : { "aria-hidden": ariaHidden };
|
|
4047
|
-
return /* @__PURE__ */ (0,
|
|
4058
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4048
4059
|
IconComponent,
|
|
4049
4060
|
{
|
|
4050
4061
|
ref,
|
|
@@ -4061,12 +4072,12 @@ Icon.displayName = "Icon";
|
|
|
4061
4072
|
// src/primitives/popover.tsx
|
|
4062
4073
|
var import_popover = require("@base-ui/react/popover");
|
|
4063
4074
|
var import_cn17 = require("cn");
|
|
4064
|
-
var
|
|
4075
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
4065
4076
|
function Popover({ ...props }) {
|
|
4066
|
-
return /* @__PURE__ */ (0,
|
|
4077
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_popover.Popover.Root, { "data-slot": "popover", ...props });
|
|
4067
4078
|
}
|
|
4068
4079
|
function PopoverTrigger({ ...props }) {
|
|
4069
|
-
return /* @__PURE__ */ (0,
|
|
4080
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_popover.Popover.Trigger, { "data-slot": "popover-trigger", ...props });
|
|
4070
4081
|
}
|
|
4071
4082
|
function PopoverContent({
|
|
4072
4083
|
className,
|
|
@@ -4076,7 +4087,7 @@ function PopoverContent({
|
|
|
4076
4087
|
sideOffset = 4,
|
|
4077
4088
|
...props
|
|
4078
4089
|
}) {
|
|
4079
|
-
return /* @__PURE__ */ (0,
|
|
4090
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_popover.Popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4080
4091
|
import_popover.Popover.Positioner,
|
|
4081
4092
|
{
|
|
4082
4093
|
align,
|
|
@@ -4084,7 +4095,7 @@ function PopoverContent({
|
|
|
4084
4095
|
side,
|
|
4085
4096
|
sideOffset,
|
|
4086
4097
|
className: "isolate z-50",
|
|
4087
|
-
children: /* @__PURE__ */ (0,
|
|
4098
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4088
4099
|
import_popover.Popover.Popup,
|
|
4089
4100
|
{
|
|
4090
4101
|
"data-slot": "popover-content",
|
|
@@ -4107,7 +4118,7 @@ var import_cn21 = require("cn");
|
|
|
4107
4118
|
var import_dialog3 = require("@base-ui/react/dialog");
|
|
4108
4119
|
var import_cn18 = require("cn");
|
|
4109
4120
|
var import_lucide_react12 = require("lucide-react");
|
|
4110
|
-
var
|
|
4121
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
4111
4122
|
|
|
4112
4123
|
// src/primitives/input-group.tsx
|
|
4113
4124
|
var import_class_variance_authority14 = require("class-variance-authority");
|
|
@@ -4115,9 +4126,9 @@ var import_cn20 = require("cn");
|
|
|
4115
4126
|
|
|
4116
4127
|
// src/primitives/textarea.tsx
|
|
4117
4128
|
var import_cn19 = require("cn");
|
|
4118
|
-
var
|
|
4129
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
4119
4130
|
function Textarea({ className, ...props }) {
|
|
4120
|
-
return /* @__PURE__ */ (0,
|
|
4131
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4121
4132
|
"textarea",
|
|
4122
4133
|
{
|
|
4123
4134
|
"data-slot": "textarea",
|
|
@@ -4131,9 +4142,9 @@ function Textarea({ className, ...props }) {
|
|
|
4131
4142
|
}
|
|
4132
4143
|
|
|
4133
4144
|
// src/primitives/input-group.tsx
|
|
4134
|
-
var
|
|
4145
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
4135
4146
|
function InputGroup({ className, ...props }) {
|
|
4136
|
-
return /* @__PURE__ */ (0,
|
|
4147
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
4137
4148
|
"div",
|
|
4138
4149
|
{
|
|
4139
4150
|
"data-slot": "input-group",
|
|
@@ -4167,7 +4178,7 @@ function InputGroupAddon({
|
|
|
4167
4178
|
align = "inline-start",
|
|
4168
4179
|
...props
|
|
4169
4180
|
}) {
|
|
4170
|
-
return /* @__PURE__ */ (0,
|
|
4181
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
4171
4182
|
"div",
|
|
4172
4183
|
{
|
|
4173
4184
|
role: "group",
|
|
@@ -4203,12 +4214,12 @@ var inputGroupButtonVariants = (0, import_class_variance_authority14.cva)(
|
|
|
4203
4214
|
|
|
4204
4215
|
// src/primitives/command.tsx
|
|
4205
4216
|
var import_lucide_react13 = require("lucide-react");
|
|
4206
|
-
var
|
|
4217
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
4207
4218
|
function Command({
|
|
4208
4219
|
className,
|
|
4209
4220
|
...props
|
|
4210
4221
|
}) {
|
|
4211
|
-
return /* @__PURE__ */ (0,
|
|
4222
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4212
4223
|
import_cmdk.Command,
|
|
4213
4224
|
{
|
|
4214
4225
|
"data-slot": "command",
|
|
@@ -4224,8 +4235,8 @@ function CommandInput({
|
|
|
4224
4235
|
className,
|
|
4225
4236
|
...props
|
|
4226
4237
|
}) {
|
|
4227
|
-
return /* @__PURE__ */ (0,
|
|
4228
|
-
/* @__PURE__ */ (0,
|
|
4238
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { "data-slot": "command-input-wrapper", className: "p-1 pb-0", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(InputGroup, { className: "h-8! rounded-lg! border-input/30 bg-input/30 shadow-none! *:data-[slot=input-group-addon]:pl-2!", children: [
|
|
4239
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4229
4240
|
import_cmdk.Command.Input,
|
|
4230
4241
|
{
|
|
4231
4242
|
"data-slot": "command-input",
|
|
@@ -4236,14 +4247,14 @@ function CommandInput({
|
|
|
4236
4247
|
...props
|
|
4237
4248
|
}
|
|
4238
4249
|
),
|
|
4239
|
-
/* @__PURE__ */ (0,
|
|
4250
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(InputGroupAddon, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react13.SearchIcon, { className: "size-4 shrink-0 opacity-50" }) })
|
|
4240
4251
|
] }) });
|
|
4241
4252
|
}
|
|
4242
4253
|
function CommandList({
|
|
4243
4254
|
className,
|
|
4244
4255
|
...props
|
|
4245
4256
|
}) {
|
|
4246
|
-
return /* @__PURE__ */ (0,
|
|
4257
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4247
4258
|
import_cmdk.Command.List,
|
|
4248
4259
|
{
|
|
4249
4260
|
"data-slot": "command-list",
|
|
@@ -4259,7 +4270,7 @@ function CommandEmpty({
|
|
|
4259
4270
|
className,
|
|
4260
4271
|
...props
|
|
4261
4272
|
}) {
|
|
4262
|
-
return /* @__PURE__ */ (0,
|
|
4273
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4263
4274
|
import_cmdk.Command.Empty,
|
|
4264
4275
|
{
|
|
4265
4276
|
"data-slot": "command-empty",
|
|
@@ -4272,7 +4283,7 @@ function CommandGroup({
|
|
|
4272
4283
|
className,
|
|
4273
4284
|
...props
|
|
4274
4285
|
}) {
|
|
4275
|
-
return /* @__PURE__ */ (0,
|
|
4286
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4276
4287
|
import_cmdk.Command.Group,
|
|
4277
4288
|
{
|
|
4278
4289
|
"data-slot": "command-group",
|
|
@@ -4289,7 +4300,7 @@ function CommandItem({
|
|
|
4289
4300
|
children,
|
|
4290
4301
|
...props
|
|
4291
4302
|
}) {
|
|
4292
|
-
return /* @__PURE__ */ (0,
|
|
4303
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
4293
4304
|
import_cmdk.Command.Item,
|
|
4294
4305
|
{
|
|
4295
4306
|
"data-slot": "command-item",
|
|
@@ -4300,7 +4311,7 @@ function CommandItem({
|
|
|
4300
4311
|
...props,
|
|
4301
4312
|
children: [
|
|
4302
4313
|
children,
|
|
4303
|
-
/* @__PURE__ */ (0,
|
|
4314
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.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
4315
|
]
|
|
4305
4316
|
}
|
|
4306
4317
|
);
|
|
@@ -4448,8 +4459,8 @@ var isEUCountry = (countryCode) => {
|
|
|
4448
4459
|
};
|
|
4449
4460
|
|
|
4450
4461
|
// src/components/country-select/CountrySelect.tsx
|
|
4451
|
-
var
|
|
4452
|
-
var CountrySelect =
|
|
4462
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
4463
|
+
var CountrySelect = React24.forwardRef(
|
|
4453
4464
|
({
|
|
4454
4465
|
value,
|
|
4455
4466
|
onValueChange,
|
|
@@ -4459,14 +4470,14 @@ var CountrySelect = React23.forwardRef(
|
|
|
4459
4470
|
align = "center",
|
|
4460
4471
|
sideOffset = 4
|
|
4461
4472
|
}, ref) => {
|
|
4462
|
-
const [open, setOpen] =
|
|
4463
|
-
const selectedCountry =
|
|
4464
|
-
return /* @__PURE__ */ (0,
|
|
4465
|
-
/* @__PURE__ */ (0,
|
|
4473
|
+
const [open, setOpen] = React24.useState(false);
|
|
4474
|
+
const selectedCountry = React24.useMemo(() => COUNTRIES.find((c) => c.code === value), [value]);
|
|
4475
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(Popover, { open, onOpenChange: setOpen, children: [
|
|
4476
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
4466
4477
|
PopoverTrigger,
|
|
4467
4478
|
{
|
|
4468
4479
|
ref,
|
|
4469
|
-
render: /* @__PURE__ */ (0,
|
|
4480
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4470
4481
|
"button",
|
|
4471
4482
|
{
|
|
4472
4483
|
type: "button",
|
|
@@ -4488,16 +4499,16 @@ var CountrySelect = React23.forwardRef(
|
|
|
4488
4499
|
}
|
|
4489
4500
|
),
|
|
4490
4501
|
children: [
|
|
4491
|
-
/* @__PURE__ */ (0,
|
|
4492
|
-
/* @__PURE__ */ (0,
|
|
4493
|
-
/* @__PURE__ */ (0,
|
|
4494
|
-
/* @__PURE__ */ (0,
|
|
4502
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "flex items-center gap-2 min-w-0 flex-1", children: selectedCountry ? /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_jsx_runtime46.Fragment, { children: [
|
|
4503
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "text-xl flex-shrink-0", children: selectedCountry.flag }),
|
|
4504
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "truncate", children: selectedCountry.name }),
|
|
4505
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("span", { className: "text-berget-muted-foreground text-xs flex-shrink-0", children: [
|
|
4495
4506
|
"(",
|
|
4496
4507
|
selectedCountry.code,
|
|
4497
4508
|
")"
|
|
4498
4509
|
] })
|
|
4499
|
-
] }) : /* @__PURE__ */ (0,
|
|
4500
|
-
/* @__PURE__ */ (0,
|
|
4510
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_jsx_runtime46.Fragment, { children: [
|
|
4511
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4501
4512
|
Icon,
|
|
4502
4513
|
{
|
|
4503
4514
|
icon: import_lucide_react14.Globe,
|
|
@@ -4505,9 +4516,9 @@ var CountrySelect = React23.forwardRef(
|
|
|
4505
4516
|
className: "flex-shrink-0 text-berget-muted-foreground"
|
|
4506
4517
|
}
|
|
4507
4518
|
),
|
|
4508
|
-
/* @__PURE__ */ (0,
|
|
4519
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "text-berget-muted-foreground truncate", children: placeholder })
|
|
4509
4520
|
] }) }),
|
|
4510
|
-
/* @__PURE__ */ (0,
|
|
4521
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4511
4522
|
Icon,
|
|
4512
4523
|
{
|
|
4513
4524
|
icon: import_lucide_react14.ChevronDown,
|
|
@@ -4522,17 +4533,17 @@ var CountrySelect = React23.forwardRef(
|
|
|
4522
4533
|
]
|
|
4523
4534
|
}
|
|
4524
4535
|
),
|
|
4525
|
-
/* @__PURE__ */ (0,
|
|
4536
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4526
4537
|
PopoverContent,
|
|
4527
4538
|
{
|
|
4528
4539
|
align,
|
|
4529
4540
|
sideOffset,
|
|
4530
4541
|
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,
|
|
4542
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(Command, { children: [
|
|
4543
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(CommandInput, { placeholder: "Search country..." }),
|
|
4544
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(CommandList, { children: [
|
|
4545
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(CommandEmpty, { children: "No countries found." }),
|
|
4546
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(CommandGroup, { children: COUNTRIES.map((country) => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
4536
4547
|
CommandItem,
|
|
4537
4548
|
{
|
|
4538
4549
|
value: `${country.name} ${country.code}`,
|
|
@@ -4546,12 +4557,12 @@ var CountrySelect = React23.forwardRef(
|
|
|
4546
4557
|
value === country.code && "bg-berget-brand-granite-800/40"
|
|
4547
4558
|
),
|
|
4548
4559
|
children: [
|
|
4549
|
-
/* @__PURE__ */ (0,
|
|
4550
|
-
/* @__PURE__ */ (0,
|
|
4551
|
-
/* @__PURE__ */ (0,
|
|
4552
|
-
/* @__PURE__ */ (0,
|
|
4560
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "text-xl flex-shrink-0", children: country.flag }),
|
|
4561
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex-1 min-w-0", children: [
|
|
4562
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "text-sm truncate", children: country.name }),
|
|
4563
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "text-xs text-berget-muted-foreground", children: country.code })
|
|
4553
4564
|
] }),
|
|
4554
|
-
value === country.code && /* @__PURE__ */ (0,
|
|
4565
|
+
value === country.code && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "w-2 h-2 rounded-full bg-berget-brand-granite-400 flex-shrink-0" })
|
|
4555
4566
|
]
|
|
4556
4567
|
},
|
|
4557
4568
|
country.code
|
|
@@ -4567,9 +4578,9 @@ CountrySelect.displayName = "CountrySelect";
|
|
|
4567
4578
|
|
|
4568
4579
|
// src/primitives/label.tsx
|
|
4569
4580
|
var import_cn22 = require("cn");
|
|
4570
|
-
var
|
|
4581
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
4571
4582
|
function Label({ className, ...props }) {
|
|
4572
|
-
return /* @__PURE__ */ (0,
|
|
4583
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4573
4584
|
"label",
|
|
4574
4585
|
{
|
|
4575
4586
|
"data-slot": "label",
|
|
@@ -4586,9 +4597,9 @@ function Label({ className, ...props }) {
|
|
|
4586
4597
|
var import_react = require("react");
|
|
4587
4598
|
var import_class_variance_authority15 = require("class-variance-authority");
|
|
4588
4599
|
var import_cn23 = require("cn");
|
|
4589
|
-
var
|
|
4600
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
4590
4601
|
function FieldSet({ className, ...props }) {
|
|
4591
|
-
return /* @__PURE__ */ (0,
|
|
4602
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
4592
4603
|
"fieldset",
|
|
4593
4604
|
{
|
|
4594
4605
|
"data-slot": "field-set",
|
|
@@ -4605,7 +4616,7 @@ function FieldLegend({
|
|
|
4605
4616
|
variant = "legend",
|
|
4606
4617
|
...props
|
|
4607
4618
|
}) {
|
|
4608
|
-
return /* @__PURE__ */ (0,
|
|
4619
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
4609
4620
|
"legend",
|
|
4610
4621
|
{
|
|
4611
4622
|
"data-slot": "field-legend",
|
|
@@ -4619,7 +4630,7 @@ function FieldLegend({
|
|
|
4619
4630
|
);
|
|
4620
4631
|
}
|
|
4621
4632
|
function FieldGroup({ className, ...props }) {
|
|
4622
|
-
return /* @__PURE__ */ (0,
|
|
4633
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
4623
4634
|
"div",
|
|
4624
4635
|
{
|
|
4625
4636
|
"data-slot": "field-group",
|
|
@@ -4651,7 +4662,7 @@ function Field({
|
|
|
4651
4662
|
orientation = "vertical",
|
|
4652
4663
|
...props
|
|
4653
4664
|
}) {
|
|
4654
|
-
return /* @__PURE__ */ (0,
|
|
4665
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
4655
4666
|
"div",
|
|
4656
4667
|
{
|
|
4657
4668
|
role: "group",
|
|
@@ -4663,7 +4674,7 @@ function Field({
|
|
|
4663
4674
|
);
|
|
4664
4675
|
}
|
|
4665
4676
|
function FieldContent({ className, ...props }) {
|
|
4666
|
-
return /* @__PURE__ */ (0,
|
|
4677
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
4667
4678
|
"div",
|
|
4668
4679
|
{
|
|
4669
4680
|
"data-slot": "field-content",
|
|
@@ -4679,7 +4690,7 @@ function FieldLabel({
|
|
|
4679
4690
|
className,
|
|
4680
4691
|
...props
|
|
4681
4692
|
}) {
|
|
4682
|
-
return /* @__PURE__ */ (0,
|
|
4693
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
4683
4694
|
Label,
|
|
4684
4695
|
{
|
|
4685
4696
|
"data-slot": "field-label",
|
|
@@ -4693,7 +4704,7 @@ function FieldLabel({
|
|
|
4693
4704
|
);
|
|
4694
4705
|
}
|
|
4695
4706
|
function FieldTitle({ className, ...props }) {
|
|
4696
|
-
return /* @__PURE__ */ (0,
|
|
4707
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
4697
4708
|
"div",
|
|
4698
4709
|
{
|
|
4699
4710
|
"data-slot": "field-label",
|
|
@@ -4706,7 +4717,7 @@ function FieldTitle({ className, ...props }) {
|
|
|
4706
4717
|
);
|
|
4707
4718
|
}
|
|
4708
4719
|
function FieldDescription({ className, ...props }) {
|
|
4709
|
-
return /* @__PURE__ */ (0,
|
|
4720
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
4710
4721
|
"p",
|
|
4711
4722
|
{
|
|
4712
4723
|
"data-slot": "field-description",
|
|
@@ -4725,7 +4736,7 @@ function FieldSeparator({
|
|
|
4725
4736
|
className,
|
|
4726
4737
|
...props
|
|
4727
4738
|
}) {
|
|
4728
|
-
return /* @__PURE__ */ (0,
|
|
4739
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
4729
4740
|
"div",
|
|
4730
4741
|
{
|
|
4731
4742
|
"data-slot": "field-separator",
|
|
@@ -4736,8 +4747,8 @@ function FieldSeparator({
|
|
|
4736
4747
|
),
|
|
4737
4748
|
...props,
|
|
4738
4749
|
children: [
|
|
4739
|
-
/* @__PURE__ */ (0,
|
|
4740
|
-
children && /* @__PURE__ */ (0,
|
|
4750
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Separator, { className: "absolute inset-0 top-1/2" }),
|
|
4751
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
4741
4752
|
"span",
|
|
4742
4753
|
{
|
|
4743
4754
|
className: "relative mx-auto block w-fit bg-background px-2 text-muted-foreground",
|
|
@@ -4768,14 +4779,14 @@ function FieldError({
|
|
|
4768
4779
|
if (uniqueErrors?.length == 1) {
|
|
4769
4780
|
return uniqueErrors[0]?.message;
|
|
4770
4781
|
}
|
|
4771
|
-
return /* @__PURE__ */ (0,
|
|
4772
|
-
(error, index) => error?.message && /* @__PURE__ */ (0,
|
|
4782
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: uniqueErrors.map(
|
|
4783
|
+
(error, index) => error?.message && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("li", { children: error.message }, index)
|
|
4773
4784
|
) });
|
|
4774
4785
|
}, [children, errors]);
|
|
4775
4786
|
if (!content) {
|
|
4776
4787
|
return null;
|
|
4777
4788
|
}
|
|
4778
|
-
return /* @__PURE__ */ (0,
|
|
4789
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
4779
4790
|
"div",
|
|
4780
4791
|
{
|
|
4781
4792
|
role: "alert",
|
|
@@ -4788,10 +4799,10 @@ function FieldError({
|
|
|
4788
4799
|
}
|
|
4789
4800
|
|
|
4790
4801
|
// src/components/link/Link.tsx
|
|
4791
|
-
var
|
|
4802
|
+
var React25 = __toESM(require("react"), 1);
|
|
4792
4803
|
var import_class_variance_authority16 = require("class-variance-authority");
|
|
4793
4804
|
var import_lucide_react15 = require("lucide-react");
|
|
4794
|
-
var
|
|
4805
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
4795
4806
|
var linkVariants = (0, import_class_variance_authority16.cva)(
|
|
4796
4807
|
"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
4808
|
{
|
|
@@ -4816,7 +4827,7 @@ var linkVariants = (0, import_class_variance_authority16.cva)(
|
|
|
4816
4827
|
}
|
|
4817
4828
|
}
|
|
4818
4829
|
);
|
|
4819
|
-
var Link =
|
|
4830
|
+
var Link = React25.forwardRef(
|
|
4820
4831
|
({
|
|
4821
4832
|
className,
|
|
4822
4833
|
variant,
|
|
@@ -4829,7 +4840,7 @@ var Link = React24.forwardRef(
|
|
|
4829
4840
|
...props
|
|
4830
4841
|
}, ref) => {
|
|
4831
4842
|
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,
|
|
4843
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
4833
4844
|
"a",
|
|
4834
4845
|
{
|
|
4835
4846
|
ref,
|
|
@@ -4845,8 +4856,8 @@ var Link = React24.forwardRef(
|
|
|
4845
4856
|
},
|
|
4846
4857
|
children: [
|
|
4847
4858
|
children,
|
|
4848
|
-
icon && /* @__PURE__ */ (0,
|
|
4849
|
-
showExternalIcon && isExternal && !disabled && /* @__PURE__ */ (0,
|
|
4859
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { className: "inline-flex items-center", children: icon }),
|
|
4860
|
+
showExternalIcon && isExternal && !disabled && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { className: "inline-flex items-center ml-1 opacity-60", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icon, { icon: import_lucide_react15.ExternalLink, size: 16 }) })
|
|
4850
4861
|
]
|
|
4851
4862
|
}
|
|
4852
4863
|
);
|
|
@@ -4855,7 +4866,7 @@ var Link = React24.forwardRef(
|
|
|
4855
4866
|
Link.displayName = "Link";
|
|
4856
4867
|
|
|
4857
4868
|
// src/components/container/Container.tsx
|
|
4858
|
-
var
|
|
4869
|
+
var React26 = __toESM(require("react"), 1);
|
|
4859
4870
|
var import_merge_props3 = require("@base-ui/react/merge-props");
|
|
4860
4871
|
var import_use_render3 = require("@base-ui/react/use-render");
|
|
4861
4872
|
var import_class_variance_authority17 = require("class-variance-authority");
|
|
@@ -4880,7 +4891,7 @@ var containerVariants = (0, import_class_variance_authority17.cva)("w-full mx-au
|
|
|
4880
4891
|
padding: "md"
|
|
4881
4892
|
}
|
|
4882
4893
|
});
|
|
4883
|
-
var Container =
|
|
4894
|
+
var Container = React26.forwardRef(
|
|
4884
4895
|
({ className, size, padding, asChild = false, children, ...props }, ref) => {
|
|
4885
4896
|
return (0, import_use_render3.useRender)({
|
|
4886
4897
|
ref,
|
|
@@ -4899,7 +4910,7 @@ var Container = React25.forwardRef(
|
|
|
4899
4910
|
Container.displayName = "Container";
|
|
4900
4911
|
|
|
4901
4912
|
// src/components/grid/Grid.tsx
|
|
4902
|
-
var
|
|
4913
|
+
var React27 = __toESM(require("react"), 1);
|
|
4903
4914
|
var import_class_variance_authority18 = require("class-variance-authority");
|
|
4904
4915
|
var import_merge_props4 = require("@base-ui/react/merge-props");
|
|
4905
4916
|
var import_use_render4 = require("@base-ui/react/use-render");
|
|
@@ -4925,7 +4936,7 @@ var gridVariants = (0, import_class_variance_authority18.cva)("grid", {
|
|
|
4925
4936
|
justify: "start"
|
|
4926
4937
|
}
|
|
4927
4938
|
});
|
|
4928
|
-
var Grid =
|
|
4939
|
+
var Grid = React27.forwardRef(
|
|
4929
4940
|
({ className, align, justify, cols, rows, gap, gapX, gapY, asChild = false, children, ...props }, ref) => {
|
|
4930
4941
|
return (0, import_use_render4.useRender)({
|
|
4931
4942
|
ref,
|
|
@@ -4952,7 +4963,7 @@ var Grid = React26.forwardRef(
|
|
|
4952
4963
|
Grid.displayName = "Grid";
|
|
4953
4964
|
|
|
4954
4965
|
// src/components/box/Box.tsx
|
|
4955
|
-
var
|
|
4966
|
+
var React28 = __toESM(require("react"), 1);
|
|
4956
4967
|
var import_class_variance_authority19 = require("class-variance-authority");
|
|
4957
4968
|
var import_merge_props5 = require("@base-ui/react/merge-props");
|
|
4958
4969
|
var import_use_render5 = require("@base-ui/react/use-render");
|
|
@@ -4992,7 +5003,7 @@ var boxVariants = (0, import_class_variance_authority19.cva)("flex", {
|
|
|
4992
5003
|
wrap: "nowrap"
|
|
4993
5004
|
}
|
|
4994
5005
|
});
|
|
4995
|
-
var Box =
|
|
5006
|
+
var Box = React28.forwardRef(
|
|
4996
5007
|
({ className, direction, align, justify, wrap, gap, asChild = false, children, ...props }, ref) => {
|
|
4997
5008
|
return (0, import_use_render5.useRender)({
|
|
4998
5009
|
ref,
|
|
@@ -5015,22 +5026,22 @@ var Box = React27.forwardRef(
|
|
|
5015
5026
|
Box.displayName = "Box";
|
|
5016
5027
|
|
|
5017
5028
|
// src/components/language-select/LanguageSelect.tsx
|
|
5018
|
-
var
|
|
5029
|
+
var React29 = __toESM(require("react"), 1);
|
|
5019
5030
|
var import_lucide_react16 = require("lucide-react");
|
|
5020
|
-
var
|
|
5021
|
-
var LanguageSelect =
|
|
5031
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
5032
|
+
var LanguageSelect = React29.forwardRef(
|
|
5022
5033
|
({ className, options, value, onValueChange }, ref) => {
|
|
5023
|
-
return /* @__PURE__ */ (0,
|
|
5024
|
-
/* @__PURE__ */ (0,
|
|
5025
|
-
/* @__PURE__ */ (0,
|
|
5026
|
-
/* @__PURE__ */ (0,
|
|
5034
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(DropdownMenu, { children: [
|
|
5035
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DropdownMenuTrigger2, { ref, asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(Button2, { variant: "outline", size: "icon", className, "aria-label": "Select language", children: [
|
|
5036
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "sr-only", children: "Select language" }),
|
|
5037
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Icon, { icon: import_lucide_react16.Globe, size: 16, "aria-hidden": true })
|
|
5027
5038
|
] }) }),
|
|
5028
|
-
/* @__PURE__ */ (0,
|
|
5039
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DropdownMenuContent2, { align: "start", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
5029
5040
|
DropdownMenuRadioGroup,
|
|
5030
5041
|
{
|
|
5031
5042
|
value,
|
|
5032
5043
|
onValueChange: onValueChange ? (v) => onValueChange(v) : void 0,
|
|
5033
|
-
children: options.map((option) => /* @__PURE__ */ (0,
|
|
5044
|
+
children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
5034
5045
|
DropdownMenuRadioItem2,
|
|
5035
5046
|
{
|
|
5036
5047
|
value: option.value,
|
|
@@ -5048,12 +5059,12 @@ var LanguageSelect = React28.forwardRef(
|
|
|
5048
5059
|
LanguageSelect.displayName = "LanguageSelect";
|
|
5049
5060
|
|
|
5050
5061
|
// src/components/list/List.tsx
|
|
5051
|
-
var
|
|
5062
|
+
var React31 = __toESM(require("react"), 1);
|
|
5052
5063
|
|
|
5053
5064
|
// src/components/divider/Divider.tsx
|
|
5054
|
-
var
|
|
5065
|
+
var React30 = __toESM(require("react"), 1);
|
|
5055
5066
|
var import_class_variance_authority20 = require("class-variance-authority");
|
|
5056
|
-
var
|
|
5067
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
5057
5068
|
var dividerVariants = (0, import_class_variance_authority20.cva)("", {
|
|
5058
5069
|
variants: {
|
|
5059
5070
|
variant: {
|
|
@@ -5074,7 +5085,7 @@ var dividerVariants = (0, import_class_variance_authority20.cva)("", {
|
|
|
5074
5085
|
size: "thin"
|
|
5075
5086
|
}
|
|
5076
5087
|
});
|
|
5077
|
-
var Divider =
|
|
5088
|
+
var Divider = React30.forwardRef(
|
|
5078
5089
|
({
|
|
5079
5090
|
className,
|
|
5080
5091
|
orientation = "horizontal",
|
|
@@ -5085,16 +5096,16 @@ var Divider = React29.forwardRef(
|
|
|
5085
5096
|
...props
|
|
5086
5097
|
}, ref) => {
|
|
5087
5098
|
if (label) {
|
|
5088
|
-
return /* @__PURE__ */ (0,
|
|
5089
|
-
labelPosition !== "right" && /* @__PURE__ */ (0,
|
|
5099
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { ref, className: cn("flex items-center w-full", className), ...props, children: [
|
|
5100
|
+
labelPosition !== "right" && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5090
5101
|
Separator,
|
|
5091
5102
|
{
|
|
5092
5103
|
orientation: "horizontal",
|
|
5093
5104
|
className: cn(dividerVariants({ variant, size }), "flex-1")
|
|
5094
5105
|
}
|
|
5095
5106
|
),
|
|
5096
|
-
/* @__PURE__ */ (0,
|
|
5097
|
-
labelPosition !== "left" && /* @__PURE__ */ (0,
|
|
5107
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Typography, { variant: "small", color: "muted", className: "px-4 whitespace-nowrap", children: label }),
|
|
5108
|
+
labelPosition !== "left" && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5098
5109
|
Separator,
|
|
5099
5110
|
{
|
|
5100
5111
|
orientation: "horizontal",
|
|
@@ -5103,7 +5114,7 @@ var Divider = React29.forwardRef(
|
|
|
5103
5114
|
)
|
|
5104
5115
|
] });
|
|
5105
5116
|
}
|
|
5106
|
-
return /* @__PURE__ */ (0,
|
|
5117
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5107
5118
|
Separator,
|
|
5108
5119
|
{
|
|
5109
5120
|
ref,
|
|
@@ -5121,19 +5132,19 @@ Divider.displayName = "Divider";
|
|
|
5121
5132
|
|
|
5122
5133
|
// src/components/list/List.tsx
|
|
5123
5134
|
var import_lucide_react17 = require("lucide-react");
|
|
5124
|
-
var
|
|
5125
|
-
var List =
|
|
5135
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
5136
|
+
var List = React31.forwardRef(
|
|
5126
5137
|
({ className, children, ...props }, ref) => {
|
|
5127
|
-
const childrenArray =
|
|
5128
|
-
return /* @__PURE__ */ (0,
|
|
5138
|
+
const childrenArray = React31.Children.toArray(children);
|
|
5139
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { ref, className: cn("flex flex-col", className), ...props, children: childrenArray.map((child, index) => /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(React31.Fragment, { children: [
|
|
5129
5140
|
child,
|
|
5130
|
-
index < childrenArray.length - 1 && /* @__PURE__ */ (0,
|
|
5141
|
+
index < childrenArray.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Divider, { variant: "subtle" })
|
|
5131
5142
|
] }, index)) });
|
|
5132
5143
|
}
|
|
5133
5144
|
);
|
|
5134
5145
|
List.displayName = "List";
|
|
5135
|
-
var ListItem =
|
|
5136
|
-
({ className, icon, children, interactive = true, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5146
|
+
var ListItem = React31.forwardRef(
|
|
5147
|
+
({ className, icon, children, interactive = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
5137
5148
|
"div",
|
|
5138
5149
|
{
|
|
5139
5150
|
ref,
|
|
@@ -5144,15 +5155,15 @@ var ListItem = React30.forwardRef(
|
|
|
5144
5155
|
),
|
|
5145
5156
|
...props,
|
|
5146
5157
|
children: [
|
|
5147
|
-
icon && /* @__PURE__ */ (0,
|
|
5148
|
-
/* @__PURE__ */ (0,
|
|
5158
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "flex-shrink-0 flex items-center justify-center", children: icon }),
|
|
5159
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "flex-1 min-w-0", children })
|
|
5149
5160
|
]
|
|
5150
5161
|
}
|
|
5151
5162
|
)
|
|
5152
5163
|
);
|
|
5153
5164
|
ListItem.displayName = "ListItem";
|
|
5154
|
-
var ListHeader =
|
|
5155
|
-
({ className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5165
|
+
var ListHeader = React31.forwardRef(
|
|
5166
|
+
({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
5156
5167
|
"div",
|
|
5157
5168
|
{
|
|
5158
5169
|
ref,
|
|
@@ -5163,11 +5174,11 @@ var ListHeader = React30.forwardRef(
|
|
|
5163
5174
|
)
|
|
5164
5175
|
);
|
|
5165
5176
|
ListHeader.displayName = "ListHeader";
|
|
5166
|
-
var FeatureList =
|
|
5177
|
+
var FeatureList = React31.forwardRef(
|
|
5167
5178
|
({ items, variant = "bullet", className, ...props }, ref) => {
|
|
5168
|
-
return /* @__PURE__ */ (0,
|
|
5169
|
-
variant === "bullet" ? /* @__PURE__ */ (0,
|
|
5170
|
-
/* @__PURE__ */ (0,
|
|
5179
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("ul", { ref, className: cn("flex flex-col gap-fluid-md", className), ...props, children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("li", { className: "flex items-start gap-fluid-md", children: [
|
|
5180
|
+
variant === "bullet" ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: "w-1.5 h-1.5 rounded-full bg-berget-icon-muted flex-shrink-0 mt-2" }) : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "flex-shrink-0 mt-0.5", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Icon, { icon: import_lucide_react17.Check, size: 24, className: "text-berget-logo-light" }) }),
|
|
5181
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Typography, { variant: "body", color: "muted", children: item })
|
|
5171
5182
|
] }, index)) });
|
|
5172
5183
|
}
|
|
5173
5184
|
);
|
|
@@ -5216,7 +5227,7 @@ function getHighlighter() {
|
|
|
5216
5227
|
}
|
|
5217
5228
|
|
|
5218
5229
|
// src/components/code-block/CodeBlock.tsx
|
|
5219
|
-
var
|
|
5230
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
5220
5231
|
function CodeBlock({ code, language = "text", title, className }) {
|
|
5221
5232
|
const [html, setHtml] = (0, import_react2.useState)(null);
|
|
5222
5233
|
const [copied, setCopied] = (0, import_react2.useState)(false);
|
|
@@ -5232,16 +5243,16 @@ function CodeBlock({ code, language = "text", title, className }) {
|
|
|
5232
5243
|
setCopied(true);
|
|
5233
5244
|
setTimeout(() => setCopied(false), 2e3);
|
|
5234
5245
|
}, [code]);
|
|
5235
|
-
const copyButton = /* @__PURE__ */ (0,
|
|
5246
|
+
const copyButton = /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5236
5247
|
"button",
|
|
5237
5248
|
{
|
|
5238
5249
|
onClick: handleCopy,
|
|
5239
5250
|
className: "flex items-center justify-center w-6 h-6 text-berget-muted-foreground hover:text-berget-foreground transition-colors",
|
|
5240
5251
|
"aria-label": "Copy code",
|
|
5241
|
-
children: copied ? /* @__PURE__ */ (0,
|
|
5252
|
+
children: copied ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_lucide_react18.Check, { className: "w-3.5 h-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_lucide_react18.Copy, { className: "w-3.5 h-3.5" })
|
|
5242
5253
|
}
|
|
5243
5254
|
);
|
|
5244
|
-
return /* @__PURE__ */ (0,
|
|
5255
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
5245
5256
|
"div",
|
|
5246
5257
|
{
|
|
5247
5258
|
className: cn(
|
|
@@ -5249,25 +5260,25 @@ function CodeBlock({ code, language = "text", title, className }) {
|
|
|
5249
5260
|
className
|
|
5250
5261
|
),
|
|
5251
5262
|
children: [
|
|
5252
|
-
title && /* @__PURE__ */ (0,
|
|
5253
|
-
/* @__PURE__ */ (0,
|
|
5254
|
-
html ? /* @__PURE__ */ (0,
|
|
5263
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime53.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_runtime53.jsx)("span", { className: "text-berget-muted-foreground", children: title }) }),
|
|
5264
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "absolute right-2 top-2 z-10", children: copyButton }),
|
|
5265
|
+
html ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5255
5266
|
"div",
|
|
5256
5267
|
{
|
|
5257
5268
|
className: "[&_.shiki]:!p-4 [&_.shiki]:!m-0 [&_.shiki]:overflow-x-auto [&_.shiki]:!text-sm [&_.shiki]:!leading-relaxed [&_.shiki]:bg-transparent",
|
|
5258
5269
|
dangerouslySetInnerHTML: { __html: html }
|
|
5259
5270
|
}
|
|
5260
|
-
) : /* @__PURE__ */ (0,
|
|
5271
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("pre", { className: "!p-4 !m-0 overflow-x-auto !text-sm !leading-relaxed text-berget-muted-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("code", { children: code }) })
|
|
5261
5272
|
]
|
|
5262
5273
|
}
|
|
5263
5274
|
);
|
|
5264
5275
|
}
|
|
5265
5276
|
|
|
5266
5277
|
// src/components/window-frame/WindowFrame.tsx
|
|
5267
|
-
var
|
|
5278
|
+
var React32 = __toESM(require("react"), 1);
|
|
5268
5279
|
var import_react3 = require("react");
|
|
5269
|
-
var
|
|
5270
|
-
var WindowFrame =
|
|
5280
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
5281
|
+
var WindowFrame = React32.forwardRef(
|
|
5271
5282
|
({ title = "window", tabs, activeTab, onTabChange, children, className, ...props }, ref) => {
|
|
5272
5283
|
const [internalActive, setInternalActive] = (0, import_react3.useState)(tabs?.[0]?.id ?? "");
|
|
5273
5284
|
const currentTab = activeTab ?? internalActive;
|
|
@@ -5278,7 +5289,7 @@ var WindowFrame = React31.forwardRef(
|
|
|
5278
5289
|
setInternalActive(id);
|
|
5279
5290
|
}
|
|
5280
5291
|
};
|
|
5281
|
-
return /* @__PURE__ */ (0,
|
|
5292
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
5282
5293
|
"div",
|
|
5283
5294
|
{
|
|
5284
5295
|
ref,
|
|
@@ -5288,13 +5299,13 @@ var WindowFrame = React31.forwardRef(
|
|
|
5288
5299
|
),
|
|
5289
5300
|
...props,
|
|
5290
5301
|
children: [
|
|
5291
|
-
/* @__PURE__ */ (0,
|
|
5292
|
-
/* @__PURE__ */ (0,
|
|
5293
|
-
/* @__PURE__ */ (0,
|
|
5294
|
-
/* @__PURE__ */ (0,
|
|
5295
|
-
/* @__PURE__ */ (0,
|
|
5302
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.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: [
|
|
5303
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "flex items-center gap-2 flex-shrink-0", children: [
|
|
5304
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "w-3 h-3 rounded-full bg-berget-brand-muscaria-400" }),
|
|
5305
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "w-3 h-3 rounded-full bg-berget-brand-chanterelle-200" }),
|
|
5306
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "w-3 h-3 rounded-full bg-berget-brand-moss-400" })
|
|
5296
5307
|
] }),
|
|
5297
|
-
tabs && tabs.length > 0 ? /* @__PURE__ */ (0,
|
|
5308
|
+
tabs && tabs.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "ml-4 flex items-center gap-1", children: tabs.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
5298
5309
|
"button",
|
|
5299
5310
|
{
|
|
5300
5311
|
type: "button",
|
|
@@ -5306,9 +5317,9 @@ var WindowFrame = React31.forwardRef(
|
|
|
5306
5317
|
children: tab.label
|
|
5307
5318
|
},
|
|
5308
5319
|
tab.id
|
|
5309
|
-
)) }) : /* @__PURE__ */ (0,
|
|
5320
|
+
)) }) : /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "ml-4 text-sm font-mono text-berget-brand-moss-400", children: title })
|
|
5310
5321
|
] }),
|
|
5311
|
-
/* @__PURE__ */ (0,
|
|
5322
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { children })
|
|
5312
5323
|
]
|
|
5313
5324
|
}
|
|
5314
5325
|
);
|
|
@@ -5318,7 +5329,7 @@ WindowFrame.displayName = "WindowFrame";
|
|
|
5318
5329
|
|
|
5319
5330
|
// src/components/fog-illustration/FogIllustration.tsx
|
|
5320
5331
|
var import_react4 = require("react");
|
|
5321
|
-
var
|
|
5332
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
5322
5333
|
var FOG_BRAND_PALETTE = {
|
|
5323
5334
|
ink: "#171a1a",
|
|
5324
5335
|
milk: "#f7f5ed",
|
|
@@ -5631,7 +5642,7 @@ var FogIllustration = ({ palette, speed = 1, className }) => {
|
|
|
5631
5642
|
gl.deleteFramebuffer(fbo);
|
|
5632
5643
|
};
|
|
5633
5644
|
}, []);
|
|
5634
|
-
return /* @__PURE__ */ (0,
|
|
5645
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("canvas", { ref, "aria-hidden": "true", className: cn("size-full", className) });
|
|
5635
5646
|
};
|
|
5636
5647
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5637
5648
|
0 && (module.exports = {
|
|
@@ -5775,6 +5786,7 @@ var FogIllustration = ({ palette, speed = 1, className }) => {
|
|
|
5775
5786
|
SidebarRail,
|
|
5776
5787
|
SidebarSeparator,
|
|
5777
5788
|
SidebarTrigger,
|
|
5789
|
+
Skeleton,
|
|
5778
5790
|
Switch,
|
|
5779
5791
|
Table,
|
|
5780
5792
|
TableBody,
|