@bergetai/ui 0.13.5 → 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 +679 -514
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +22 -1
- package/dist/index.d.ts +22 -1
- package/dist/index.js +631 -473
- package/dist/index.js.map +1 -1
- package/dist/styles/index.css +12 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -86,6 +86,12 @@ __export(src_exports, {
|
|
|
86
86
|
DropdownMenuSubTrigger: () => DropdownMenuSubTrigger2,
|
|
87
87
|
DropdownMenuTrigger: () => DropdownMenuTrigger2,
|
|
88
88
|
EU_COUNTRY_CODES: () => EU_COUNTRY_CODES,
|
|
89
|
+
Empty: () => Empty2,
|
|
90
|
+
EmptyContent: () => EmptyContent,
|
|
91
|
+
EmptyDescription: () => EmptyDescription2,
|
|
92
|
+
EmptyHeader: () => EmptyHeader,
|
|
93
|
+
EmptyMedia: () => EmptyMedia2,
|
|
94
|
+
EmptyTitle: () => EmptyTitle2,
|
|
89
95
|
FOG_BRAND_PALETTE: () => FOG_BRAND_PALETTE,
|
|
90
96
|
FeatureList: () => FeatureList,
|
|
91
97
|
Field: () => Field,
|
|
@@ -164,6 +170,7 @@ __export(src_exports, {
|
|
|
164
170
|
SidebarRail: () => SidebarRail,
|
|
165
171
|
SidebarSeparator: () => SidebarSeparator,
|
|
166
172
|
SidebarTrigger: () => SidebarTrigger,
|
|
173
|
+
Skeleton: () => Skeleton2,
|
|
167
174
|
Switch: () => Switch,
|
|
168
175
|
Table: () => Table2,
|
|
169
176
|
TableBody: () => TableBody2,
|
|
@@ -1293,19 +1300,43 @@ var Alert2 = React10.forwardRef(
|
|
|
1293
1300
|
);
|
|
1294
1301
|
Alert2.displayName = "Alert";
|
|
1295
1302
|
|
|
1296
|
-
// src/components/
|
|
1303
|
+
// src/components/skeleton/Skeleton.tsx
|
|
1297
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);
|
|
1298
1329
|
var import_dialog = require("@base-ui/react/dialog");
|
|
1299
1330
|
var import_lucide_react2 = require("lucide-react");
|
|
1300
|
-
var
|
|
1331
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
1301
1332
|
var Dialog = import_dialog.Dialog.Root;
|
|
1302
|
-
var DialogTrigger =
|
|
1303
|
-
({ 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 })
|
|
1304
1335
|
);
|
|
1305
1336
|
DialogTrigger.displayName = "DialogTrigger";
|
|
1306
1337
|
var DialogPortal = import_dialog.Dialog.Portal;
|
|
1307
1338
|
var DialogClose = import_dialog.Dialog.Close;
|
|
1308
|
-
var DialogOverlay =
|
|
1339
|
+
var DialogOverlay = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1309
1340
|
import_dialog.Dialog.Backdrop,
|
|
1310
1341
|
{
|
|
1311
1342
|
ref,
|
|
@@ -1317,9 +1348,9 @@ var DialogOverlay = React11.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1317
1348
|
}
|
|
1318
1349
|
));
|
|
1319
1350
|
DialogOverlay.displayName = "DialogOverlay";
|
|
1320
|
-
var DialogContent =
|
|
1321
|
-
/* @__PURE__ */ (0,
|
|
1322
|
-
/* @__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)(
|
|
1323
1354
|
import_dialog.Dialog.Popup,
|
|
1324
1355
|
{
|
|
1325
1356
|
ref,
|
|
@@ -1330,18 +1361,18 @@ var DialogContent = React11.forwardRef(({ className, children, ...props }, ref)
|
|
|
1330
1361
|
...props,
|
|
1331
1362
|
children: [
|
|
1332
1363
|
children,
|
|
1333
|
-
/* @__PURE__ */ (0,
|
|
1334
|
-
/* @__PURE__ */ (0,
|
|
1335
|
-
/* @__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" })
|
|
1336
1367
|
] })
|
|
1337
1368
|
]
|
|
1338
1369
|
}
|
|
1339
1370
|
)
|
|
1340
1371
|
] }));
|
|
1341
1372
|
DialogContent.displayName = "DialogContent";
|
|
1342
|
-
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 });
|
|
1343
1374
|
DialogHeader.displayName = "DialogHeader";
|
|
1344
|
-
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
1375
|
+
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1345
1376
|
"div",
|
|
1346
1377
|
{
|
|
1347
1378
|
className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
@@ -1349,21 +1380,21 @@ var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_r
|
|
|
1349
1380
|
}
|
|
1350
1381
|
);
|
|
1351
1382
|
DialogFooter.displayName = "DialogFooter";
|
|
1352
|
-
var DialogTitle =
|
|
1383
|
+
var DialogTitle = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1353
1384
|
import_dialog.Dialog.Title,
|
|
1354
1385
|
{
|
|
1355
1386
|
ref,
|
|
1356
|
-
render: /* @__PURE__ */ (0,
|
|
1387
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Typography, { variant: "h5", color: "default", as: "h2", className }),
|
|
1357
1388
|
...props,
|
|
1358
1389
|
children
|
|
1359
1390
|
}
|
|
1360
1391
|
));
|
|
1361
1392
|
DialogTitle.displayName = "DialogTitle";
|
|
1362
|
-
var DialogDescription =
|
|
1393
|
+
var DialogDescription = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1363
1394
|
import_dialog.Dialog.Description,
|
|
1364
1395
|
{
|
|
1365
1396
|
ref,
|
|
1366
|
-
render: /* @__PURE__ */ (0,
|
|
1397
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Typography, { variant: "small", color: "muted", className }),
|
|
1367
1398
|
...props,
|
|
1368
1399
|
children
|
|
1369
1400
|
}
|
|
@@ -1371,16 +1402,16 @@ var DialogDescription = React11.forwardRef(({ className, children, ...props }, r
|
|
|
1371
1402
|
DialogDescription.displayName = "DialogDescription";
|
|
1372
1403
|
|
|
1373
1404
|
// src/components/alert-dialog/AlertDialog.tsx
|
|
1374
|
-
var
|
|
1405
|
+
var React13 = __toESM(require("react"), 1);
|
|
1375
1406
|
var import_alert_dialog = require("@base-ui/react/alert-dialog");
|
|
1376
|
-
var
|
|
1407
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
1377
1408
|
var AlertDialog = import_alert_dialog.AlertDialog.Root;
|
|
1378
|
-
var AlertDialogTrigger =
|
|
1379
|
-
({ 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 })
|
|
1380
1411
|
);
|
|
1381
1412
|
AlertDialogTrigger.displayName = "AlertDialogTrigger";
|
|
1382
1413
|
var AlertDialogPortal = import_alert_dialog.AlertDialog.Portal;
|
|
1383
|
-
var AlertDialogOverlay =
|
|
1414
|
+
var AlertDialogOverlay = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1384
1415
|
import_alert_dialog.AlertDialog.Backdrop,
|
|
1385
1416
|
{
|
|
1386
1417
|
ref,
|
|
@@ -1392,9 +1423,9 @@ var AlertDialogOverlay = React12.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1392
1423
|
}
|
|
1393
1424
|
));
|
|
1394
1425
|
AlertDialogOverlay.displayName = "AlertDialogOverlay";
|
|
1395
|
-
var AlertDialogContent =
|
|
1396
|
-
/* @__PURE__ */ (0,
|
|
1397
|
-
/* @__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)(
|
|
1398
1429
|
import_alert_dialog.AlertDialog.Popup,
|
|
1399
1430
|
{
|
|
1400
1431
|
ref,
|
|
@@ -1407,9 +1438,9 @@ var AlertDialogContent = React12.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1407
1438
|
)
|
|
1408
1439
|
] }));
|
|
1409
1440
|
AlertDialogContent.displayName = "AlertDialogContent";
|
|
1410
|
-
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 });
|
|
1411
1442
|
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
1412
|
-
var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
1443
|
+
var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1413
1444
|
"div",
|
|
1414
1445
|
{
|
|
1415
1446
|
className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
@@ -1417,27 +1448,27 @@ var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_
|
|
|
1417
1448
|
}
|
|
1418
1449
|
);
|
|
1419
1450
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
1420
|
-
var AlertDialogTitle =
|
|
1451
|
+
var AlertDialogTitle = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1421
1452
|
import_alert_dialog.AlertDialog.Title,
|
|
1422
1453
|
{
|
|
1423
1454
|
ref,
|
|
1424
|
-
render: /* @__PURE__ */ (0,
|
|
1455
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Typography, { variant: "h5", color: "default", as: "h2", className }),
|
|
1425
1456
|
...props,
|
|
1426
1457
|
children
|
|
1427
1458
|
}
|
|
1428
1459
|
));
|
|
1429
1460
|
AlertDialogTitle.displayName = "AlertDialogTitle";
|
|
1430
|
-
var AlertDialogDescription =
|
|
1461
|
+
var AlertDialogDescription = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1431
1462
|
import_alert_dialog.AlertDialog.Description,
|
|
1432
1463
|
{
|
|
1433
1464
|
ref,
|
|
1434
|
-
render: /* @__PURE__ */ (0,
|
|
1465
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Typography, { variant: "small", color: "muted", className }),
|
|
1435
1466
|
...props,
|
|
1436
1467
|
children
|
|
1437
1468
|
}
|
|
1438
1469
|
));
|
|
1439
1470
|
AlertDialogDescription.displayName = "AlertDialogDescription";
|
|
1440
|
-
var AlertDialogAction =
|
|
1471
|
+
var AlertDialogAction = React13.forwardRef(({ className, asChild, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1441
1472
|
import_alert_dialog.AlertDialog.Close,
|
|
1442
1473
|
{
|
|
1443
1474
|
ref,
|
|
@@ -1448,7 +1479,7 @@ var AlertDialogAction = React12.forwardRef(({ className, asChild, children, ...p
|
|
|
1448
1479
|
}
|
|
1449
1480
|
));
|
|
1450
1481
|
AlertDialogAction.displayName = "AlertDialogAction";
|
|
1451
|
-
var AlertDialogCancel =
|
|
1482
|
+
var AlertDialogCancel = React13.forwardRef(({ className, asChild, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1452
1483
|
import_alert_dialog.AlertDialog.Close,
|
|
1453
1484
|
{
|
|
1454
1485
|
ref,
|
|
@@ -1461,21 +1492,21 @@ var AlertDialogCancel = React12.forwardRef(({ className, asChild, children, ...p
|
|
|
1461
1492
|
AlertDialogCancel.displayName = "AlertDialogCancel";
|
|
1462
1493
|
|
|
1463
1494
|
// src/components/dropdown-menu/DropdownMenu.tsx
|
|
1464
|
-
var
|
|
1495
|
+
var React14 = __toESM(require("react"), 1);
|
|
1465
1496
|
|
|
1466
1497
|
// src/primitives/dropdown-menu.tsx
|
|
1467
1498
|
var import_menu = require("@base-ui/react/menu");
|
|
1468
|
-
var
|
|
1499
|
+
var import_cn5 = require("cn");
|
|
1469
1500
|
var import_lucide_react3 = require("lucide-react");
|
|
1470
|
-
var
|
|
1501
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
1471
1502
|
function DropdownMenu({ ...props }) {
|
|
1472
|
-
return /* @__PURE__ */ (0,
|
|
1503
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_menu.Menu.Root, { "data-slot": "dropdown-menu", ...props });
|
|
1473
1504
|
}
|
|
1474
1505
|
function DropdownMenuPortal({ ...props }) {
|
|
1475
|
-
return /* @__PURE__ */ (0,
|
|
1506
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_menu.Menu.Portal, { "data-slot": "dropdown-menu-portal", ...props });
|
|
1476
1507
|
}
|
|
1477
1508
|
function DropdownMenuTrigger({ ...props }) {
|
|
1478
|
-
return /* @__PURE__ */ (0,
|
|
1509
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_menu.Menu.Trigger, { "data-slot": "dropdown-menu-trigger", ...props });
|
|
1479
1510
|
}
|
|
1480
1511
|
function DropdownMenuContent({
|
|
1481
1512
|
align = "start",
|
|
@@ -1485,7 +1516,7 @@ function DropdownMenuContent({
|
|
|
1485
1516
|
className,
|
|
1486
1517
|
...props
|
|
1487
1518
|
}) {
|
|
1488
|
-
return /* @__PURE__ */ (0,
|
|
1519
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_menu.Menu.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1489
1520
|
import_menu.Menu.Positioner,
|
|
1490
1521
|
{
|
|
1491
1522
|
className: "isolate z-50 outline-none",
|
|
@@ -1493,11 +1524,11 @@ function DropdownMenuContent({
|
|
|
1493
1524
|
alignOffset,
|
|
1494
1525
|
side,
|
|
1495
1526
|
sideOffset,
|
|
1496
|
-
children: /* @__PURE__ */ (0,
|
|
1527
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1497
1528
|
import_menu.Menu.Popup,
|
|
1498
1529
|
{
|
|
1499
1530
|
"data-slot": "dropdown-menu-content",
|
|
1500
|
-
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),
|
|
1501
1532
|
...props
|
|
1502
1533
|
}
|
|
1503
1534
|
)
|
|
@@ -1505,19 +1536,19 @@ function DropdownMenuContent({
|
|
|
1505
1536
|
) });
|
|
1506
1537
|
}
|
|
1507
1538
|
function DropdownMenuGroup({ ...props }) {
|
|
1508
|
-
return /* @__PURE__ */ (0,
|
|
1539
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_menu.Menu.Group, { "data-slot": "dropdown-menu-group", ...props });
|
|
1509
1540
|
}
|
|
1510
1541
|
function DropdownMenuLabel({
|
|
1511
1542
|
className,
|
|
1512
1543
|
inset,
|
|
1513
1544
|
...props
|
|
1514
1545
|
}) {
|
|
1515
|
-
return /* @__PURE__ */ (0,
|
|
1546
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1516
1547
|
import_menu.Menu.GroupLabel,
|
|
1517
1548
|
{
|
|
1518
1549
|
"data-slot": "dropdown-menu-label",
|
|
1519
1550
|
"data-inset": inset,
|
|
1520
|
-
className: (0,
|
|
1551
|
+
className: (0, import_cn5.cn)(
|
|
1521
1552
|
"px-1.5 py-1 text-xs font-medium text-muted-foreground data-inset:pl-7",
|
|
1522
1553
|
className
|
|
1523
1554
|
),
|
|
@@ -1531,13 +1562,13 @@ function DropdownMenuItem({
|
|
|
1531
1562
|
variant = "default",
|
|
1532
1563
|
...props
|
|
1533
1564
|
}) {
|
|
1534
|
-
return /* @__PURE__ */ (0,
|
|
1565
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1535
1566
|
import_menu.Menu.Item,
|
|
1536
1567
|
{
|
|
1537
1568
|
"data-slot": "dropdown-menu-item",
|
|
1538
1569
|
"data-inset": inset,
|
|
1539
1570
|
"data-variant": variant,
|
|
1540
|
-
className: (0,
|
|
1571
|
+
className: (0, import_cn5.cn)(
|
|
1541
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",
|
|
1542
1573
|
className
|
|
1543
1574
|
),
|
|
@@ -1546,7 +1577,7 @@ function DropdownMenuItem({
|
|
|
1546
1577
|
);
|
|
1547
1578
|
}
|
|
1548
1579
|
function DropdownMenuSub({ ...props }) {
|
|
1549
|
-
return /* @__PURE__ */ (0,
|
|
1580
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_menu.Menu.SubmenuRoot, { "data-slot": "dropdown-menu-sub", ...props });
|
|
1550
1581
|
}
|
|
1551
1582
|
function DropdownMenuSubTrigger({
|
|
1552
1583
|
className,
|
|
@@ -1554,19 +1585,19 @@ function DropdownMenuSubTrigger({
|
|
|
1554
1585
|
children,
|
|
1555
1586
|
...props
|
|
1556
1587
|
}) {
|
|
1557
|
-
return /* @__PURE__ */ (0,
|
|
1588
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
1558
1589
|
import_menu.Menu.SubmenuTrigger,
|
|
1559
1590
|
{
|
|
1560
1591
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
1561
1592
|
"data-inset": inset,
|
|
1562
|
-
className: (0,
|
|
1593
|
+
className: (0, import_cn5.cn)(
|
|
1563
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",
|
|
1564
1595
|
className
|
|
1565
1596
|
),
|
|
1566
1597
|
...props,
|
|
1567
1598
|
children: [
|
|
1568
1599
|
children,
|
|
1569
|
-
/* @__PURE__ */ (0,
|
|
1600
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react3.ChevronRightIcon, { className: "ml-auto" })
|
|
1570
1601
|
]
|
|
1571
1602
|
}
|
|
1572
1603
|
);
|
|
@@ -1579,11 +1610,11 @@ function DropdownMenuSubContent({
|
|
|
1579
1610
|
className,
|
|
1580
1611
|
...props
|
|
1581
1612
|
}) {
|
|
1582
|
-
return /* @__PURE__ */ (0,
|
|
1613
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1583
1614
|
DropdownMenuContent,
|
|
1584
1615
|
{
|
|
1585
1616
|
"data-slot": "dropdown-menu-sub-content",
|
|
1586
|
-
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),
|
|
1587
1618
|
align,
|
|
1588
1619
|
alignOffset,
|
|
1589
1620
|
side,
|
|
@@ -1599,24 +1630,24 @@ function DropdownMenuCheckboxItem({
|
|
|
1599
1630
|
inset,
|
|
1600
1631
|
...props
|
|
1601
1632
|
}) {
|
|
1602
|
-
return /* @__PURE__ */ (0,
|
|
1633
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
1603
1634
|
import_menu.Menu.CheckboxItem,
|
|
1604
1635
|
{
|
|
1605
1636
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
1606
1637
|
"data-inset": inset,
|
|
1607
|
-
className: (0,
|
|
1638
|
+
className: (0, import_cn5.cn)(
|
|
1608
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",
|
|
1609
1640
|
className
|
|
1610
1641
|
),
|
|
1611
1642
|
checked,
|
|
1612
1643
|
...props,
|
|
1613
1644
|
children: [
|
|
1614
|
-
/* @__PURE__ */ (0,
|
|
1645
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1615
1646
|
"span",
|
|
1616
1647
|
{
|
|
1617
1648
|
className: "pointer-events-none absolute right-2 flex items-center justify-center",
|
|
1618
1649
|
"data-slot": "dropdown-menu-checkbox-item-indicator",
|
|
1619
|
-
children: /* @__PURE__ */ (0,
|
|
1650
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_menu.Menu.CheckboxItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1620
1651
|
import_lucide_react3.CheckIcon,
|
|
1621
1652
|
{}
|
|
1622
1653
|
) })
|
|
@@ -1628,7 +1659,7 @@ function DropdownMenuCheckboxItem({
|
|
|
1628
1659
|
);
|
|
1629
1660
|
}
|
|
1630
1661
|
function DropdownMenuRadioGroup({ ...props }) {
|
|
1631
|
-
return /* @__PURE__ */ (0,
|
|
1662
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1632
1663
|
import_menu.Menu.RadioGroup,
|
|
1633
1664
|
{
|
|
1634
1665
|
"data-slot": "dropdown-menu-radio-group",
|
|
@@ -1642,23 +1673,23 @@ function DropdownMenuRadioItem({
|
|
|
1642
1673
|
inset,
|
|
1643
1674
|
...props
|
|
1644
1675
|
}) {
|
|
1645
|
-
return /* @__PURE__ */ (0,
|
|
1676
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
1646
1677
|
import_menu.Menu.RadioItem,
|
|
1647
1678
|
{
|
|
1648
1679
|
"data-slot": "dropdown-menu-radio-item",
|
|
1649
1680
|
"data-inset": inset,
|
|
1650
|
-
className: (0,
|
|
1681
|
+
className: (0, import_cn5.cn)(
|
|
1651
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",
|
|
1652
1683
|
className
|
|
1653
1684
|
),
|
|
1654
1685
|
...props,
|
|
1655
1686
|
children: [
|
|
1656
|
-
/* @__PURE__ */ (0,
|
|
1687
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1657
1688
|
"span",
|
|
1658
1689
|
{
|
|
1659
1690
|
className: "pointer-events-none absolute right-2 flex items-center justify-center",
|
|
1660
1691
|
"data-slot": "dropdown-menu-radio-item-indicator",
|
|
1661
|
-
children: /* @__PURE__ */ (0,
|
|
1692
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_menu.Menu.RadioItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1662
1693
|
import_lucide_react3.CheckIcon,
|
|
1663
1694
|
{}
|
|
1664
1695
|
) })
|
|
@@ -1673,11 +1704,11 @@ function DropdownMenuSeparator({
|
|
|
1673
1704
|
className,
|
|
1674
1705
|
...props
|
|
1675
1706
|
}) {
|
|
1676
|
-
return /* @__PURE__ */ (0,
|
|
1707
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1677
1708
|
import_menu.Menu.Separator,
|
|
1678
1709
|
{
|
|
1679
1710
|
"data-slot": "dropdown-menu-separator",
|
|
1680
|
-
className: (0,
|
|
1711
|
+
className: (0, import_cn5.cn)("-mx-1 my-1 h-px bg-border", className),
|
|
1681
1712
|
...props
|
|
1682
1713
|
}
|
|
1683
1714
|
);
|
|
@@ -1686,11 +1717,11 @@ function DropdownMenuShortcut({
|
|
|
1686
1717
|
className,
|
|
1687
1718
|
...props
|
|
1688
1719
|
}) {
|
|
1689
|
-
return /* @__PURE__ */ (0,
|
|
1720
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1690
1721
|
"span",
|
|
1691
1722
|
{
|
|
1692
1723
|
"data-slot": "dropdown-menu-shortcut",
|
|
1693
|
-
className: (0,
|
|
1724
|
+
className: (0, import_cn5.cn)(
|
|
1694
1725
|
"ml-auto text-xs tracking-widest text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground",
|
|
1695
1726
|
className
|
|
1696
1727
|
),
|
|
@@ -1700,13 +1731,13 @@ function DropdownMenuShortcut({
|
|
|
1700
1731
|
}
|
|
1701
1732
|
|
|
1702
1733
|
// src/components/dropdown-menu/DropdownMenu.tsx
|
|
1703
|
-
var
|
|
1704
|
-
var DropdownMenuTrigger2 =
|
|
1705
|
-
({ 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 })
|
|
1706
1737
|
);
|
|
1707
1738
|
DropdownMenuTrigger2.displayName = "DropdownMenuTrigger";
|
|
1708
|
-
var DropdownMenuSubTrigger2 =
|
|
1709
|
-
({ 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)(
|
|
1710
1741
|
DropdownMenuSubTrigger,
|
|
1711
1742
|
{
|
|
1712
1743
|
ref,
|
|
@@ -1723,8 +1754,8 @@ var DropdownMenuSubTrigger2 = React13.forwardRef(
|
|
|
1723
1754
|
)
|
|
1724
1755
|
);
|
|
1725
1756
|
DropdownMenuSubTrigger2.displayName = "DropdownMenuSubTrigger";
|
|
1726
|
-
var DropdownMenuSubContent2 =
|
|
1727
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1757
|
+
var DropdownMenuSubContent2 = React14.forwardRef(
|
|
1758
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1728
1759
|
DropdownMenuSubContent,
|
|
1729
1760
|
{
|
|
1730
1761
|
ref,
|
|
@@ -1737,8 +1768,8 @@ var DropdownMenuSubContent2 = React13.forwardRef(
|
|
|
1737
1768
|
)
|
|
1738
1769
|
);
|
|
1739
1770
|
DropdownMenuSubContent2.displayName = "DropdownMenuSubContent";
|
|
1740
|
-
var DropdownMenuContent2 =
|
|
1741
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1771
|
+
var DropdownMenuContent2 = React14.forwardRef(
|
|
1772
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1742
1773
|
DropdownMenuContent,
|
|
1743
1774
|
{
|
|
1744
1775
|
ref,
|
|
@@ -1751,8 +1782,8 @@ var DropdownMenuContent2 = React13.forwardRef(
|
|
|
1751
1782
|
)
|
|
1752
1783
|
);
|
|
1753
1784
|
DropdownMenuContent2.displayName = "DropdownMenuContent";
|
|
1754
|
-
var DropdownMenuItem2 =
|
|
1755
|
-
({ 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)(
|
|
1756
1787
|
DropdownMenuItem,
|
|
1757
1788
|
{
|
|
1758
1789
|
ref,
|
|
@@ -1770,8 +1801,8 @@ var DropdownMenuItem2 = React13.forwardRef(
|
|
|
1770
1801
|
)
|
|
1771
1802
|
);
|
|
1772
1803
|
DropdownMenuItem2.displayName = "DropdownMenuItem";
|
|
1773
|
-
var DropdownMenuCheckboxItem2 =
|
|
1774
|
-
({ 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)(
|
|
1775
1806
|
DropdownMenuCheckboxItem,
|
|
1776
1807
|
{
|
|
1777
1808
|
ref,
|
|
@@ -1784,8 +1815,8 @@ var DropdownMenuCheckboxItem2 = React13.forwardRef(
|
|
|
1784
1815
|
)
|
|
1785
1816
|
);
|
|
1786
1817
|
DropdownMenuCheckboxItem2.displayName = "DropdownMenuCheckboxItem";
|
|
1787
|
-
var DropdownMenuRadioItem2 =
|
|
1788
|
-
({ 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)(
|
|
1789
1820
|
DropdownMenuRadioItem,
|
|
1790
1821
|
{
|
|
1791
1822
|
ref,
|
|
@@ -1798,8 +1829,8 @@ var DropdownMenuRadioItem2 = React13.forwardRef(
|
|
|
1798
1829
|
)
|
|
1799
1830
|
);
|
|
1800
1831
|
DropdownMenuRadioItem2.displayName = "DropdownMenuRadioItem";
|
|
1801
|
-
var DropdownMenuLabel2 =
|
|
1802
|
-
({ 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)(
|
|
1803
1834
|
DropdownMenuLabel,
|
|
1804
1835
|
{
|
|
1805
1836
|
ref,
|
|
@@ -1815,8 +1846,8 @@ var DropdownMenuLabel2 = React13.forwardRef(
|
|
|
1815
1846
|
)
|
|
1816
1847
|
);
|
|
1817
1848
|
DropdownMenuLabel2.displayName = "DropdownMenuLabel";
|
|
1818
|
-
var DropdownMenuSeparator2 =
|
|
1819
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1849
|
+
var DropdownMenuSeparator2 = React14.forwardRef(
|
|
1850
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1820
1851
|
DropdownMenuSeparator,
|
|
1821
1852
|
{
|
|
1822
1853
|
ref,
|
|
@@ -1827,7 +1858,7 @@ var DropdownMenuSeparator2 = React13.forwardRef(
|
|
|
1827
1858
|
);
|
|
1828
1859
|
DropdownMenuSeparator2.displayName = "DropdownMenuSeparator";
|
|
1829
1860
|
var DropdownMenuShortcut2 = ({ className, ...props }) => {
|
|
1830
|
-
return /* @__PURE__ */ (0,
|
|
1861
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1831
1862
|
DropdownMenuShortcut,
|
|
1832
1863
|
{
|
|
1833
1864
|
className: cn("text-berget-muted-foreground", className),
|
|
@@ -1838,17 +1869,17 @@ var DropdownMenuShortcut2 = ({ className, ...props }) => {
|
|
|
1838
1869
|
DropdownMenuShortcut2.displayName = "DropdownMenuShortcut";
|
|
1839
1870
|
|
|
1840
1871
|
// src/components/tooltip/Tooltip.tsx
|
|
1841
|
-
var
|
|
1872
|
+
var React15 = __toESM(require("react"), 1);
|
|
1842
1873
|
|
|
1843
1874
|
// src/primitives/tooltip.tsx
|
|
1844
1875
|
var import_tooltip = require("@base-ui/react/tooltip");
|
|
1845
|
-
var
|
|
1846
|
-
var
|
|
1876
|
+
var import_cn6 = require("cn");
|
|
1877
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
1847
1878
|
function TooltipProvider({
|
|
1848
1879
|
delay = 0,
|
|
1849
1880
|
...props
|
|
1850
1881
|
}) {
|
|
1851
|
-
return /* @__PURE__ */ (0,
|
|
1882
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1852
1883
|
import_tooltip.Tooltip.Provider,
|
|
1853
1884
|
{
|
|
1854
1885
|
"data-slot": "tooltip-provider",
|
|
@@ -1858,10 +1889,10 @@ function TooltipProvider({
|
|
|
1858
1889
|
);
|
|
1859
1890
|
}
|
|
1860
1891
|
function Tooltip({ ...props }) {
|
|
1861
|
-
return /* @__PURE__ */ (0,
|
|
1892
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_tooltip.Tooltip.Root, { "data-slot": "tooltip", ...props });
|
|
1862
1893
|
}
|
|
1863
1894
|
function TooltipTrigger({ ...props }) {
|
|
1864
|
-
return /* @__PURE__ */ (0,
|
|
1895
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_tooltip.Tooltip.Trigger, { "data-slot": "tooltip-trigger", ...props });
|
|
1865
1896
|
}
|
|
1866
1897
|
function TooltipContent({
|
|
1867
1898
|
className,
|
|
@@ -1872,7 +1903,7 @@ function TooltipContent({
|
|
|
1872
1903
|
children,
|
|
1873
1904
|
...props
|
|
1874
1905
|
}) {
|
|
1875
|
-
return /* @__PURE__ */ (0,
|
|
1906
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_tooltip.Tooltip.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1876
1907
|
import_tooltip.Tooltip.Positioner,
|
|
1877
1908
|
{
|
|
1878
1909
|
align,
|
|
@@ -1880,18 +1911,18 @@ function TooltipContent({
|
|
|
1880
1911
|
side,
|
|
1881
1912
|
sideOffset,
|
|
1882
1913
|
className: "isolate z-50",
|
|
1883
|
-
children: /* @__PURE__ */ (0,
|
|
1914
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
1884
1915
|
import_tooltip.Tooltip.Popup,
|
|
1885
1916
|
{
|
|
1886
1917
|
"data-slot": "tooltip-content",
|
|
1887
|
-
className: (0,
|
|
1918
|
+
className: (0, import_cn6.cn)(
|
|
1888
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",
|
|
1889
1920
|
className
|
|
1890
1921
|
),
|
|
1891
1922
|
...props,
|
|
1892
1923
|
children: [
|
|
1893
1924
|
children,
|
|
1894
|
-
/* @__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" })
|
|
1895
1926
|
]
|
|
1896
1927
|
}
|
|
1897
1928
|
)
|
|
@@ -1900,13 +1931,13 @@ function TooltipContent({
|
|
|
1900
1931
|
}
|
|
1901
1932
|
|
|
1902
1933
|
// src/components/tooltip/Tooltip.tsx
|
|
1903
|
-
var
|
|
1904
|
-
var TooltipTrigger2 =
|
|
1905
|
-
({ 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 })
|
|
1906
1937
|
);
|
|
1907
1938
|
TooltipTrigger2.displayName = "TooltipTrigger";
|
|
1908
|
-
var TooltipContent2 =
|
|
1909
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1939
|
+
var TooltipContent2 = React15.forwardRef(
|
|
1940
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1910
1941
|
TooltipContent,
|
|
1911
1942
|
{
|
|
1912
1943
|
ref,
|
|
@@ -1925,18 +1956,18 @@ var import_lucide_react5 = require("lucide-react");
|
|
|
1925
1956
|
// src/primitives/navigation-menu.tsx
|
|
1926
1957
|
var import_navigation_menu = require("@base-ui/react/navigation-menu");
|
|
1927
1958
|
var import_class_variance_authority7 = require("class-variance-authority");
|
|
1928
|
-
var
|
|
1959
|
+
var import_cn7 = require("cn");
|
|
1929
1960
|
var import_lucide_react4 = require("lucide-react");
|
|
1930
|
-
var
|
|
1961
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1931
1962
|
function NavigationMenuList({
|
|
1932
1963
|
className,
|
|
1933
1964
|
...props
|
|
1934
1965
|
}) {
|
|
1935
|
-
return /* @__PURE__ */ (0,
|
|
1966
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1936
1967
|
import_navigation_menu.NavigationMenu.List,
|
|
1937
1968
|
{
|
|
1938
1969
|
"data-slot": "navigation-menu-list",
|
|
1939
|
-
className: (0,
|
|
1970
|
+
className: (0, import_cn7.cn)(
|
|
1940
1971
|
"group flex flex-1 list-none items-center justify-center gap-0",
|
|
1941
1972
|
className
|
|
1942
1973
|
),
|
|
@@ -1948,11 +1979,11 @@ function NavigationMenuItem({
|
|
|
1948
1979
|
className,
|
|
1949
1980
|
...props
|
|
1950
1981
|
}) {
|
|
1951
|
-
return /* @__PURE__ */ (0,
|
|
1982
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1952
1983
|
import_navigation_menu.NavigationMenu.Item,
|
|
1953
1984
|
{
|
|
1954
1985
|
"data-slot": "navigation-menu-item",
|
|
1955
|
-
className: (0,
|
|
1986
|
+
className: (0, import_cn7.cn)("relative", className),
|
|
1956
1987
|
...props
|
|
1957
1988
|
}
|
|
1958
1989
|
);
|
|
@@ -1964,11 +1995,11 @@ function NavigationMenuContent({
|
|
|
1964
1995
|
className,
|
|
1965
1996
|
...props
|
|
1966
1997
|
}) {
|
|
1967
|
-
return /* @__PURE__ */ (0,
|
|
1998
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1968
1999
|
import_navigation_menu.NavigationMenu.Content,
|
|
1969
2000
|
{
|
|
1970
2001
|
"data-slot": "navigation-menu-content",
|
|
1971
|
-
className: (0,
|
|
2002
|
+
className: (0, import_cn7.cn)(
|
|
1972
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",
|
|
1973
2004
|
className
|
|
1974
2005
|
),
|
|
@@ -1980,29 +2011,29 @@ function NavigationMenuIndicator({
|
|
|
1980
2011
|
className,
|
|
1981
2012
|
...props
|
|
1982
2013
|
}) {
|
|
1983
|
-
return /* @__PURE__ */ (0,
|
|
2014
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1984
2015
|
import_navigation_menu.NavigationMenu.Icon,
|
|
1985
2016
|
{
|
|
1986
2017
|
"data-slot": "navigation-menu-indicator",
|
|
1987
|
-
className: (0,
|
|
2018
|
+
className: (0, import_cn7.cn)(
|
|
1988
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",
|
|
1989
2020
|
className
|
|
1990
2021
|
),
|
|
1991
2022
|
...props,
|
|
1992
|
-
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" })
|
|
1993
2024
|
}
|
|
1994
2025
|
);
|
|
1995
2026
|
}
|
|
1996
2027
|
|
|
1997
2028
|
// src/components/navigation-menu/NavigationMenu.tsx
|
|
1998
|
-
var
|
|
2029
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
1999
2030
|
function NavigationMenu({
|
|
2000
2031
|
align = "start",
|
|
2001
2032
|
className,
|
|
2002
2033
|
children,
|
|
2003
2034
|
...props
|
|
2004
2035
|
}) {
|
|
2005
|
-
return /* @__PURE__ */ (0,
|
|
2036
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
2006
2037
|
import_navigation_menu2.NavigationMenu.Root,
|
|
2007
2038
|
{
|
|
2008
2039
|
"data-slot": "navigation-menu",
|
|
@@ -2013,7 +2044,7 @@ function NavigationMenu({
|
|
|
2013
2044
|
...props,
|
|
2014
2045
|
children: [
|
|
2015
2046
|
children,
|
|
2016
|
-
/* @__PURE__ */ (0,
|
|
2047
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(NavigationMenuPositioner, { align })
|
|
2017
2048
|
]
|
|
2018
2049
|
}
|
|
2019
2050
|
);
|
|
@@ -2026,7 +2057,7 @@ function NavigationMenuTrigger({
|
|
|
2026
2057
|
children,
|
|
2027
2058
|
...props
|
|
2028
2059
|
}) {
|
|
2029
|
-
return /* @__PURE__ */ (0,
|
|
2060
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
2030
2061
|
import_navigation_menu2.NavigationMenu.Trigger,
|
|
2031
2062
|
{
|
|
2032
2063
|
"data-slot": "navigation-menu-trigger",
|
|
@@ -2035,7 +2066,7 @@ function NavigationMenuTrigger({
|
|
|
2035
2066
|
children: [
|
|
2036
2067
|
children,
|
|
2037
2068
|
" ",
|
|
2038
|
-
/* @__PURE__ */ (0,
|
|
2069
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
2039
2070
|
import_lucide_react5.ChevronDown,
|
|
2040
2071
|
{
|
|
2041
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",
|
|
@@ -2047,7 +2078,7 @@ function NavigationMenuTrigger({
|
|
|
2047
2078
|
);
|
|
2048
2079
|
}
|
|
2049
2080
|
function NavigationMenuLink({ className, ...props }) {
|
|
2050
|
-
return /* @__PURE__ */ (0,
|
|
2081
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
2051
2082
|
import_navigation_menu2.NavigationMenu.Link,
|
|
2052
2083
|
{
|
|
2053
2084
|
"data-slot": "navigation-menu-link",
|
|
@@ -2067,7 +2098,7 @@ function NavigationMenuPositioner({
|
|
|
2067
2098
|
alignOffset = 0,
|
|
2068
2099
|
...props
|
|
2069
2100
|
}) {
|
|
2070
|
-
return /* @__PURE__ */ (0,
|
|
2101
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_navigation_menu2.NavigationMenu.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
2071
2102
|
import_navigation_menu2.NavigationMenu.Positioner,
|
|
2072
2103
|
{
|
|
2073
2104
|
side,
|
|
@@ -2079,24 +2110,24 @@ function NavigationMenuPositioner({
|
|
|
2079
2110
|
className
|
|
2080
2111
|
),
|
|
2081
2112
|
...props,
|
|
2082
|
-
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" }) })
|
|
2083
2114
|
}
|
|
2084
2115
|
) });
|
|
2085
2116
|
}
|
|
2086
2117
|
|
|
2087
2118
|
// src/primitives/sidebar.tsx
|
|
2088
|
-
var
|
|
2119
|
+
var React17 = __toESM(require("react"), 1);
|
|
2089
2120
|
var import_merge_props = require("@base-ui/react/merge-props");
|
|
2090
2121
|
var import_use_render = require("@base-ui/react/use-render");
|
|
2091
2122
|
var import_class_variance_authority9 = require("class-variance-authority");
|
|
2092
2123
|
var import_cn11 = require("cn");
|
|
2093
2124
|
|
|
2094
2125
|
// src/hooks/use-mobile.tsx
|
|
2095
|
-
var
|
|
2126
|
+
var React16 = __toESM(require("react"), 1);
|
|
2096
2127
|
var MOBILE_BREAKPOINT = 768;
|
|
2097
2128
|
function useIsMobile() {
|
|
2098
|
-
const [isMobile, setIsMobile] =
|
|
2099
|
-
|
|
2129
|
+
const [isMobile, setIsMobile] = React16.useState(void 0);
|
|
2130
|
+
React16.useEffect(() => {
|
|
2100
2131
|
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
2101
2132
|
const onChange = () => {
|
|
2102
2133
|
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
@@ -2110,15 +2141,15 @@ function useIsMobile() {
|
|
|
2110
2141
|
|
|
2111
2142
|
// src/primitives/input.tsx
|
|
2112
2143
|
var import_input = require("@base-ui/react/input");
|
|
2113
|
-
var
|
|
2114
|
-
var
|
|
2144
|
+
var import_cn8 = require("cn");
|
|
2145
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
2115
2146
|
function Input({ className, type, ...props }) {
|
|
2116
|
-
return /* @__PURE__ */ (0,
|
|
2147
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
2117
2148
|
import_input.Input,
|
|
2118
2149
|
{
|
|
2119
2150
|
type,
|
|
2120
2151
|
"data-slot": "input",
|
|
2121
|
-
className: (0,
|
|
2152
|
+
className: (0, import_cn8.cn)(
|
|
2122
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",
|
|
2123
2154
|
className
|
|
2124
2155
|
),
|
|
@@ -2129,19 +2160,19 @@ function Input({ className, type, ...props }) {
|
|
|
2129
2160
|
|
|
2130
2161
|
// src/primitives/separator.tsx
|
|
2131
2162
|
var import_separator = require("@base-ui/react/separator");
|
|
2132
|
-
var
|
|
2133
|
-
var
|
|
2163
|
+
var import_cn9 = require("cn");
|
|
2164
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
2134
2165
|
function Separator({
|
|
2135
2166
|
className,
|
|
2136
2167
|
orientation = "horizontal",
|
|
2137
2168
|
...props
|
|
2138
2169
|
}) {
|
|
2139
|
-
return /* @__PURE__ */ (0,
|
|
2170
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
2140
2171
|
import_separator.Separator,
|
|
2141
2172
|
{
|
|
2142
2173
|
"data-slot": "separator",
|
|
2143
2174
|
orientation,
|
|
2144
|
-
className: (0,
|
|
2175
|
+
className: (0, import_cn9.cn)(
|
|
2145
2176
|
"shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch",
|
|
2146
2177
|
className
|
|
2147
2178
|
),
|
|
@@ -2152,21 +2183,21 @@ function Separator({
|
|
|
2152
2183
|
|
|
2153
2184
|
// src/primitives/sheet.tsx
|
|
2154
2185
|
var import_dialog2 = require("@base-ui/react/dialog");
|
|
2155
|
-
var
|
|
2186
|
+
var import_cn10 = require("cn");
|
|
2156
2187
|
var import_lucide_react6 = require("lucide-react");
|
|
2157
|
-
var
|
|
2188
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
2158
2189
|
function Sheet({ ...props }) {
|
|
2159
|
-
return /* @__PURE__ */ (0,
|
|
2190
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dialog2.Dialog.Root, { "data-slot": "sheet", ...props });
|
|
2160
2191
|
}
|
|
2161
2192
|
function SheetPortal({ ...props }) {
|
|
2162
|
-
return /* @__PURE__ */ (0,
|
|
2193
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_dialog2.Dialog.Portal, { "data-slot": "sheet-portal", ...props });
|
|
2163
2194
|
}
|
|
2164
2195
|
function SheetOverlay({ className, ...props }) {
|
|
2165
|
-
return /* @__PURE__ */ (0,
|
|
2196
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2166
2197
|
import_dialog2.Dialog.Backdrop,
|
|
2167
2198
|
{
|
|
2168
2199
|
"data-slot": "sheet-overlay",
|
|
2169
|
-
className: (0,
|
|
2200
|
+
className: (0, import_cn10.cn)(
|
|
2170
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",
|
|
2171
2202
|
className
|
|
2172
2203
|
),
|
|
@@ -2181,25 +2212,25 @@ function SheetContent({
|
|
|
2181
2212
|
showCloseButton = true,
|
|
2182
2213
|
...props
|
|
2183
2214
|
}) {
|
|
2184
|
-
return /* @__PURE__ */ (0,
|
|
2185
|
-
/* @__PURE__ */ (0,
|
|
2186
|
-
/* @__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)(
|
|
2187
2218
|
import_dialog2.Dialog.Popup,
|
|
2188
2219
|
{
|
|
2189
2220
|
"data-slot": "sheet-content",
|
|
2190
2221
|
"data-side": side,
|
|
2191
|
-
className: (0,
|
|
2222
|
+
className: (0, import_cn10.cn)(
|
|
2192
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",
|
|
2193
2224
|
className
|
|
2194
2225
|
),
|
|
2195
2226
|
...props,
|
|
2196
2227
|
children: [
|
|
2197
2228
|
children,
|
|
2198
|
-
showCloseButton && /* @__PURE__ */ (0,
|
|
2229
|
+
showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
2199
2230
|
import_dialog2.Dialog.Close,
|
|
2200
2231
|
{
|
|
2201
2232
|
"data-slot": "sheet-close",
|
|
2202
|
-
render: /* @__PURE__ */ (0,
|
|
2233
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2203
2234
|
Button,
|
|
2204
2235
|
{
|
|
2205
2236
|
variant: "ghost",
|
|
@@ -2208,11 +2239,11 @@ function SheetContent({
|
|
|
2208
2239
|
}
|
|
2209
2240
|
),
|
|
2210
2241
|
children: [
|
|
2211
|
-
/* @__PURE__ */ (0,
|
|
2242
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2212
2243
|
import_lucide_react6.XIcon,
|
|
2213
2244
|
{}
|
|
2214
2245
|
),
|
|
2215
|
-
/* @__PURE__ */ (0,
|
|
2246
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "sr-only", children: "Close" })
|
|
2216
2247
|
]
|
|
2217
2248
|
}
|
|
2218
2249
|
)
|
|
@@ -2222,21 +2253,21 @@ function SheetContent({
|
|
|
2222
2253
|
] });
|
|
2223
2254
|
}
|
|
2224
2255
|
function SheetHeader({ className, ...props }) {
|
|
2225
|
-
return /* @__PURE__ */ (0,
|
|
2256
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2226
2257
|
"div",
|
|
2227
2258
|
{
|
|
2228
2259
|
"data-slot": "sheet-header",
|
|
2229
|
-
className: (0,
|
|
2260
|
+
className: (0, import_cn10.cn)("flex flex-col gap-0.5 p-4", className),
|
|
2230
2261
|
...props
|
|
2231
2262
|
}
|
|
2232
2263
|
);
|
|
2233
2264
|
}
|
|
2234
2265
|
function SheetTitle({ className, ...props }) {
|
|
2235
|
-
return /* @__PURE__ */ (0,
|
|
2266
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2236
2267
|
import_dialog2.Dialog.Title,
|
|
2237
2268
|
{
|
|
2238
2269
|
"data-slot": "sheet-title",
|
|
2239
|
-
className: (0,
|
|
2270
|
+
className: (0, import_cn10.cn)(
|
|
2240
2271
|
"text-base font-medium text-foreground",
|
|
2241
2272
|
className
|
|
2242
2273
|
),
|
|
@@ -2248,25 +2279,11 @@ function SheetDescription({
|
|
|
2248
2279
|
className,
|
|
2249
2280
|
...props
|
|
2250
2281
|
}) {
|
|
2251
|
-
return /* @__PURE__ */ (0,
|
|
2282
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2252
2283
|
import_dialog2.Dialog.Description,
|
|
2253
2284
|
{
|
|
2254
2285
|
"data-slot": "sheet-description",
|
|
2255
|
-
className: (0,
|
|
2256
|
-
...props
|
|
2257
|
-
}
|
|
2258
|
-
);
|
|
2259
|
-
}
|
|
2260
|
-
|
|
2261
|
-
// src/primitives/skeleton.tsx
|
|
2262
|
-
var import_cn10 = require("cn");
|
|
2263
|
-
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
2264
|
-
function Skeleton({ className, ...props }) {
|
|
2265
|
-
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
2266
|
-
"div",
|
|
2267
|
-
{
|
|
2268
|
-
"data-slot": "skeleton",
|
|
2269
|
-
className: (0, import_cn10.cn)("animate-pulse rounded-md bg-muted", className),
|
|
2286
|
+
className: (0, import_cn10.cn)("text-sm text-muted-foreground", className),
|
|
2270
2287
|
...props
|
|
2271
2288
|
}
|
|
2272
2289
|
);
|
|
@@ -2274,16 +2291,16 @@ function Skeleton({ className, ...props }) {
|
|
|
2274
2291
|
|
|
2275
2292
|
// src/primitives/sidebar.tsx
|
|
2276
2293
|
var import_lucide_react7 = require("lucide-react");
|
|
2277
|
-
var
|
|
2294
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
2278
2295
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
2279
2296
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
2280
2297
|
var SIDEBAR_WIDTH = "16rem";
|
|
2281
2298
|
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
2282
2299
|
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
2283
2300
|
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
2284
|
-
var SidebarContext =
|
|
2301
|
+
var SidebarContext = React17.createContext(null);
|
|
2285
2302
|
function useSidebar() {
|
|
2286
|
-
const context =
|
|
2303
|
+
const context = React17.useContext(SidebarContext);
|
|
2287
2304
|
if (!context) {
|
|
2288
2305
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
2289
2306
|
}
|
|
@@ -2299,10 +2316,10 @@ function SidebarProvider({
|
|
|
2299
2316
|
...props
|
|
2300
2317
|
}) {
|
|
2301
2318
|
const isMobile = useIsMobile();
|
|
2302
|
-
const [openMobile, setOpenMobile] =
|
|
2303
|
-
const [_open, _setOpen] =
|
|
2319
|
+
const [openMobile, setOpenMobile] = React17.useState(false);
|
|
2320
|
+
const [_open, _setOpen] = React17.useState(defaultOpen);
|
|
2304
2321
|
const open = openProp ?? _open;
|
|
2305
|
-
const setOpen =
|
|
2322
|
+
const setOpen = React17.useCallback(
|
|
2306
2323
|
(value) => {
|
|
2307
2324
|
const openState = typeof value === "function" ? value(open) : value;
|
|
2308
2325
|
if (setOpenProp) {
|
|
@@ -2314,10 +2331,10 @@ function SidebarProvider({
|
|
|
2314
2331
|
},
|
|
2315
2332
|
[setOpenProp, open]
|
|
2316
2333
|
);
|
|
2317
|
-
const toggleSidebar =
|
|
2334
|
+
const toggleSidebar = React17.useCallback(() => {
|
|
2318
2335
|
return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
|
|
2319
2336
|
}, [isMobile, setOpen, setOpenMobile]);
|
|
2320
|
-
|
|
2337
|
+
React17.useEffect(() => {
|
|
2321
2338
|
const handleKeyDown = (event) => {
|
|
2322
2339
|
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
2323
2340
|
event.preventDefault();
|
|
@@ -2328,7 +2345,7 @@ function SidebarProvider({
|
|
|
2328
2345
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
2329
2346
|
}, [toggleSidebar]);
|
|
2330
2347
|
const state = open ? "expanded" : "collapsed";
|
|
2331
|
-
const contextValue =
|
|
2348
|
+
const contextValue = React17.useMemo(
|
|
2332
2349
|
() => ({
|
|
2333
2350
|
state,
|
|
2334
2351
|
open,
|
|
@@ -2340,7 +2357,7 @@ function SidebarProvider({
|
|
|
2340
2357
|
}),
|
|
2341
2358
|
[state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
|
|
2342
2359
|
);
|
|
2343
|
-
return /* @__PURE__ */ (0,
|
|
2360
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2344
2361
|
"div",
|
|
2345
2362
|
{
|
|
2346
2363
|
"data-slot": "sidebar-wrapper",
|
|
@@ -2369,7 +2386,7 @@ function Sidebar({
|
|
|
2369
2386
|
}) {
|
|
2370
2387
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
2371
2388
|
if (collapsible === "none") {
|
|
2372
|
-
return /* @__PURE__ */ (0,
|
|
2389
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2373
2390
|
"div",
|
|
2374
2391
|
{
|
|
2375
2392
|
"data-slot": "sidebar",
|
|
@@ -2383,7 +2400,7 @@ function Sidebar({
|
|
|
2383
2400
|
);
|
|
2384
2401
|
}
|
|
2385
2402
|
if (isMobile) {
|
|
2386
|
-
return /* @__PURE__ */ (0,
|
|
2403
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
2387
2404
|
SheetContent,
|
|
2388
2405
|
{
|
|
2389
2406
|
dir,
|
|
@@ -2396,16 +2413,16 @@ function Sidebar({
|
|
|
2396
2413
|
},
|
|
2397
2414
|
side,
|
|
2398
2415
|
children: [
|
|
2399
|
-
/* @__PURE__ */ (0,
|
|
2400
|
-
/* @__PURE__ */ (0,
|
|
2401
|
-
/* @__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." })
|
|
2402
2419
|
] }),
|
|
2403
|
-
/* @__PURE__ */ (0,
|
|
2420
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "flex h-full w-full flex-col", children })
|
|
2404
2421
|
]
|
|
2405
2422
|
}
|
|
2406
2423
|
) });
|
|
2407
2424
|
}
|
|
2408
|
-
return /* @__PURE__ */ (0,
|
|
2425
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
2409
2426
|
"div",
|
|
2410
2427
|
{
|
|
2411
2428
|
className: "group peer hidden text-sidebar-foreground md:block",
|
|
@@ -2415,7 +2432,7 @@ function Sidebar({
|
|
|
2415
2432
|
"data-side": side,
|
|
2416
2433
|
"data-slot": "sidebar",
|
|
2417
2434
|
children: [
|
|
2418
|
-
/* @__PURE__ */ (0,
|
|
2435
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2419
2436
|
"div",
|
|
2420
2437
|
{
|
|
2421
2438
|
"data-slot": "sidebar-gap",
|
|
@@ -2427,7 +2444,7 @@ function Sidebar({
|
|
|
2427
2444
|
)
|
|
2428
2445
|
}
|
|
2429
2446
|
),
|
|
2430
|
-
/* @__PURE__ */ (0,
|
|
2447
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2431
2448
|
"div",
|
|
2432
2449
|
{
|
|
2433
2450
|
"data-slot": "sidebar-container",
|
|
@@ -2439,7 +2456,7 @@ function Sidebar({
|
|
|
2439
2456
|
className
|
|
2440
2457
|
),
|
|
2441
2458
|
...props,
|
|
2442
|
-
children: /* @__PURE__ */ (0,
|
|
2459
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2443
2460
|
"div",
|
|
2444
2461
|
{
|
|
2445
2462
|
"data-sidebar": "sidebar",
|
|
@@ -2460,7 +2477,7 @@ function SidebarTrigger({
|
|
|
2460
2477
|
...props
|
|
2461
2478
|
}) {
|
|
2462
2479
|
const { toggleSidebar } = useSidebar();
|
|
2463
|
-
return /* @__PURE__ */ (0,
|
|
2480
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
2464
2481
|
Button,
|
|
2465
2482
|
{
|
|
2466
2483
|
"data-sidebar": "trigger",
|
|
@@ -2474,15 +2491,15 @@ function SidebarTrigger({
|
|
|
2474
2491
|
},
|
|
2475
2492
|
...props,
|
|
2476
2493
|
children: [
|
|
2477
|
-
/* @__PURE__ */ (0,
|
|
2478
|
-
/* @__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" })
|
|
2479
2496
|
]
|
|
2480
2497
|
}
|
|
2481
2498
|
);
|
|
2482
2499
|
}
|
|
2483
2500
|
function SidebarRail({ className, ...props }) {
|
|
2484
2501
|
const { toggleSidebar } = useSidebar();
|
|
2485
|
-
return /* @__PURE__ */ (0,
|
|
2502
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2486
2503
|
"button",
|
|
2487
2504
|
{
|
|
2488
2505
|
"data-sidebar": "rail",
|
|
@@ -2505,7 +2522,7 @@ function SidebarRail({ className, ...props }) {
|
|
|
2505
2522
|
);
|
|
2506
2523
|
}
|
|
2507
2524
|
function SidebarInset({ className, ...props }) {
|
|
2508
|
-
return /* @__PURE__ */ (0,
|
|
2525
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2509
2526
|
"main",
|
|
2510
2527
|
{
|
|
2511
2528
|
"data-slot": "sidebar-inset",
|
|
@@ -2521,7 +2538,7 @@ function SidebarInput({
|
|
|
2521
2538
|
className,
|
|
2522
2539
|
...props
|
|
2523
2540
|
}) {
|
|
2524
|
-
return /* @__PURE__ */ (0,
|
|
2541
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2525
2542
|
Input,
|
|
2526
2543
|
{
|
|
2527
2544
|
"data-slot": "sidebar-input",
|
|
@@ -2532,7 +2549,7 @@ function SidebarInput({
|
|
|
2532
2549
|
);
|
|
2533
2550
|
}
|
|
2534
2551
|
function SidebarHeader({ className, ...props }) {
|
|
2535
|
-
return /* @__PURE__ */ (0,
|
|
2552
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2536
2553
|
"div",
|
|
2537
2554
|
{
|
|
2538
2555
|
"data-slot": "sidebar-header",
|
|
@@ -2543,7 +2560,7 @@ function SidebarHeader({ className, ...props }) {
|
|
|
2543
2560
|
);
|
|
2544
2561
|
}
|
|
2545
2562
|
function SidebarFooter({ className, ...props }) {
|
|
2546
|
-
return /* @__PURE__ */ (0,
|
|
2563
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2547
2564
|
"div",
|
|
2548
2565
|
{
|
|
2549
2566
|
"data-slot": "sidebar-footer",
|
|
@@ -2557,7 +2574,7 @@ function SidebarSeparator({
|
|
|
2557
2574
|
className,
|
|
2558
2575
|
...props
|
|
2559
2576
|
}) {
|
|
2560
|
-
return /* @__PURE__ */ (0,
|
|
2577
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2561
2578
|
Separator,
|
|
2562
2579
|
{
|
|
2563
2580
|
"data-slot": "sidebar-separator",
|
|
@@ -2568,7 +2585,7 @@ function SidebarSeparator({
|
|
|
2568
2585
|
);
|
|
2569
2586
|
}
|
|
2570
2587
|
function SidebarContent({ className, ...props }) {
|
|
2571
|
-
return /* @__PURE__ */ (0,
|
|
2588
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2572
2589
|
"div",
|
|
2573
2590
|
{
|
|
2574
2591
|
"data-slot": "sidebar-content",
|
|
@@ -2582,7 +2599,7 @@ function SidebarContent({ className, ...props }) {
|
|
|
2582
2599
|
);
|
|
2583
2600
|
}
|
|
2584
2601
|
function SidebarGroup({ className, ...props }) {
|
|
2585
|
-
return /* @__PURE__ */ (0,
|
|
2602
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2586
2603
|
"div",
|
|
2587
2604
|
{
|
|
2588
2605
|
"data-slot": "sidebar-group",
|
|
@@ -2642,7 +2659,7 @@ function SidebarGroupContent({
|
|
|
2642
2659
|
className,
|
|
2643
2660
|
...props
|
|
2644
2661
|
}) {
|
|
2645
|
-
return /* @__PURE__ */ (0,
|
|
2662
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2646
2663
|
"div",
|
|
2647
2664
|
{
|
|
2648
2665
|
"data-slot": "sidebar-group-content",
|
|
@@ -2653,7 +2670,7 @@ function SidebarGroupContent({
|
|
|
2653
2670
|
);
|
|
2654
2671
|
}
|
|
2655
2672
|
function SidebarMenu({ className, ...props }) {
|
|
2656
|
-
return /* @__PURE__ */ (0,
|
|
2673
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2657
2674
|
"ul",
|
|
2658
2675
|
{
|
|
2659
2676
|
"data-slot": "sidebar-menu",
|
|
@@ -2664,7 +2681,7 @@ function SidebarMenu({ className, ...props }) {
|
|
|
2664
2681
|
);
|
|
2665
2682
|
}
|
|
2666
2683
|
function SidebarMenuItem({ className, ...props }) {
|
|
2667
|
-
return /* @__PURE__ */ (0,
|
|
2684
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2668
2685
|
"li",
|
|
2669
2686
|
{
|
|
2670
2687
|
"data-slot": "sidebar-menu-item",
|
|
@@ -2712,7 +2729,7 @@ function SidebarMenuButton({
|
|
|
2712
2729
|
},
|
|
2713
2730
|
props
|
|
2714
2731
|
),
|
|
2715
|
-
render: !tooltip ? render : /* @__PURE__ */ (0,
|
|
2732
|
+
render: !tooltip ? render : /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(TooltipTrigger, { render }),
|
|
2716
2733
|
state: {
|
|
2717
2734
|
slot: "sidebar-menu-button",
|
|
2718
2735
|
sidebar: "menu-button",
|
|
@@ -2728,9 +2745,9 @@ function SidebarMenuButton({
|
|
|
2728
2745
|
children: tooltip
|
|
2729
2746
|
};
|
|
2730
2747
|
}
|
|
2731
|
-
return /* @__PURE__ */ (0,
|
|
2748
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(Tooltip, { children: [
|
|
2732
2749
|
comp,
|
|
2733
|
-
/* @__PURE__ */ (0,
|
|
2750
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2734
2751
|
TooltipContent,
|
|
2735
2752
|
{
|
|
2736
2753
|
side: "right",
|
|
@@ -2770,7 +2787,7 @@ function SidebarMenuBadge({
|
|
|
2770
2787
|
className,
|
|
2771
2788
|
...props
|
|
2772
2789
|
}) {
|
|
2773
|
-
return /* @__PURE__ */ (0,
|
|
2790
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2774
2791
|
"div",
|
|
2775
2792
|
{
|
|
2776
2793
|
"data-slot": "sidebar-menu-badge",
|
|
@@ -2788,10 +2805,10 @@ function SidebarMenuSkeleton({
|
|
|
2788
2805
|
showIcon = false,
|
|
2789
2806
|
...props
|
|
2790
2807
|
}) {
|
|
2791
|
-
const [width] =
|
|
2808
|
+
const [width] = React17.useState(() => {
|
|
2792
2809
|
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
2793
2810
|
});
|
|
2794
|
-
return /* @__PURE__ */ (0,
|
|
2811
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
2795
2812
|
"div",
|
|
2796
2813
|
{
|
|
2797
2814
|
"data-slot": "sidebar-menu-skeleton",
|
|
@@ -2799,14 +2816,14 @@ function SidebarMenuSkeleton({
|
|
|
2799
2816
|
className: (0, import_cn11.cn)("flex h-8 items-center gap-2 rounded-md px-2", className),
|
|
2800
2817
|
...props,
|
|
2801
2818
|
children: [
|
|
2802
|
-
showIcon && /* @__PURE__ */ (0,
|
|
2819
|
+
showIcon && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2803
2820
|
Skeleton,
|
|
2804
2821
|
{
|
|
2805
2822
|
className: "size-4 rounded-md",
|
|
2806
2823
|
"data-sidebar": "menu-skeleton-icon"
|
|
2807
2824
|
}
|
|
2808
2825
|
),
|
|
2809
|
-
/* @__PURE__ */ (0,
|
|
2826
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2810
2827
|
Skeleton,
|
|
2811
2828
|
{
|
|
2812
2829
|
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
@@ -2821,7 +2838,7 @@ function SidebarMenuSkeleton({
|
|
|
2821
2838
|
);
|
|
2822
2839
|
}
|
|
2823
2840
|
function SidebarMenuSub({ className, ...props }) {
|
|
2824
|
-
return /* @__PURE__ */ (0,
|
|
2841
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2825
2842
|
"ul",
|
|
2826
2843
|
{
|
|
2827
2844
|
"data-slot": "sidebar-menu-sub",
|
|
@@ -2838,7 +2855,7 @@ function SidebarMenuSubItem({
|
|
|
2838
2855
|
className,
|
|
2839
2856
|
...props
|
|
2840
2857
|
}) {
|
|
2841
|
-
return /* @__PURE__ */ (0,
|
|
2858
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2842
2859
|
"li",
|
|
2843
2860
|
{
|
|
2844
2861
|
"data-slot": "sidebar-menu-sub-item",
|
|
@@ -2877,7 +2894,7 @@ function SidebarMenuSubButton({
|
|
|
2877
2894
|
}
|
|
2878
2895
|
|
|
2879
2896
|
// src/components/sidebar/Sidebar.tsx
|
|
2880
|
-
var
|
|
2897
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
2881
2898
|
var iconModeButtonClasses = "group-data-[collapsible=icon]:w-10! group-data-[collapsible=icon]:h-10! group-data-[collapsible=icon]:px-3!";
|
|
2882
2899
|
var sizingMenuButtonClasses = "text-base px-3 py-2 h-auto";
|
|
2883
2900
|
var sizingSubButtonClasses = "data-[size=md]:text-base data-[size=sm]:text-base px-3 py-2 h-auto";
|
|
@@ -2885,7 +2902,7 @@ function SidebarGroupLabel2({
|
|
|
2885
2902
|
className,
|
|
2886
2903
|
...props
|
|
2887
2904
|
}) {
|
|
2888
|
-
return /* @__PURE__ */ (0,
|
|
2905
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2889
2906
|
SidebarGroupLabel,
|
|
2890
2907
|
{
|
|
2891
2908
|
className: cn("px-3 uppercase tracking-caption", className),
|
|
@@ -2898,7 +2915,7 @@ function SidebarProvider2({
|
|
|
2898
2915
|
style,
|
|
2899
2916
|
...props
|
|
2900
2917
|
}) {
|
|
2901
|
-
return /* @__PURE__ */ (0,
|
|
2918
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2902
2919
|
SidebarProvider,
|
|
2903
2920
|
{
|
|
2904
2921
|
className,
|
|
@@ -2911,10 +2928,10 @@ function SidebarProvider2({
|
|
|
2911
2928
|
);
|
|
2912
2929
|
}
|
|
2913
2930
|
function SidebarInset2({ className, ...props }) {
|
|
2914
|
-
return /* @__PURE__ */ (0,
|
|
2931
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(SidebarInset, { className: cn("min-w-0", className), ...props });
|
|
2915
2932
|
}
|
|
2916
2933
|
function SidebarGroup2({ className, ...props }) {
|
|
2917
|
-
return /* @__PURE__ */ (0,
|
|
2934
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2918
2935
|
SidebarGroup,
|
|
2919
2936
|
{
|
|
2920
2937
|
className: cn("group-data-[collapsible=icon]:px-2.5", className),
|
|
@@ -2926,7 +2943,7 @@ function SidebarFooter2({
|
|
|
2926
2943
|
className,
|
|
2927
2944
|
...props
|
|
2928
2945
|
}) {
|
|
2929
|
-
return /* @__PURE__ */ (0,
|
|
2946
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2930
2947
|
SidebarFooter,
|
|
2931
2948
|
{
|
|
2932
2949
|
className: cn(
|
|
@@ -2941,7 +2958,7 @@ function SidebarHeader2({
|
|
|
2941
2958
|
className,
|
|
2942
2959
|
...props
|
|
2943
2960
|
}) {
|
|
2944
|
-
return /* @__PURE__ */ (0,
|
|
2961
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2945
2962
|
SidebarHeader,
|
|
2946
2963
|
{
|
|
2947
2964
|
className: cn(
|
|
@@ -2953,8 +2970,8 @@ function SidebarHeader2({
|
|
|
2953
2970
|
);
|
|
2954
2971
|
}
|
|
2955
2972
|
function SidebarLogo() {
|
|
2956
|
-
return /* @__PURE__ */ (0,
|
|
2957
|
-
/* @__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)(
|
|
2958
2975
|
BergetLogo,
|
|
2959
2976
|
{
|
|
2960
2977
|
variant: "logotype",
|
|
@@ -2962,11 +2979,11 @@ function SidebarLogo() {
|
|
|
2962
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"
|
|
2963
2980
|
}
|
|
2964
2981
|
),
|
|
2965
|
-
/* @__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 }) })
|
|
2966
2983
|
] }) });
|
|
2967
2984
|
}
|
|
2968
2985
|
function SidebarPageHeader({ className, ...props }) {
|
|
2969
|
-
return /* @__PURE__ */ (0,
|
|
2986
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2970
2987
|
"header",
|
|
2971
2988
|
{
|
|
2972
2989
|
className: cn(
|
|
@@ -2978,7 +2995,7 @@ function SidebarPageHeader({ className, ...props }) {
|
|
|
2978
2995
|
);
|
|
2979
2996
|
}
|
|
2980
2997
|
function SidebarMenuButton2({ className, ...props }) {
|
|
2981
|
-
return /* @__PURE__ */ (0,
|
|
2998
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2982
2999
|
SidebarMenuButton,
|
|
2983
3000
|
{
|
|
2984
3001
|
className: cn(sizingMenuButtonClasses, iconModeButtonClasses, className),
|
|
@@ -2987,7 +3004,7 @@ function SidebarMenuButton2({ className, ...props }) {
|
|
|
2987
3004
|
);
|
|
2988
3005
|
}
|
|
2989
3006
|
function SidebarMenuSubButton2({ className, ...props }) {
|
|
2990
|
-
return /* @__PURE__ */ (0,
|
|
3007
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2991
3008
|
SidebarMenuSubButton,
|
|
2992
3009
|
{
|
|
2993
3010
|
className: cn(sizingSubButtonClasses, "[&>svg]:text-inherit", className),
|
|
@@ -2997,18 +3014,18 @@ function SidebarMenuSubButton2({ className, ...props }) {
|
|
|
2997
3014
|
}
|
|
2998
3015
|
|
|
2999
3016
|
// src/components/table/Table.tsx
|
|
3000
|
-
var
|
|
3017
|
+
var React18 = __toESM(require("react"), 1);
|
|
3001
3018
|
|
|
3002
3019
|
// src/primitives/table.tsx
|
|
3003
3020
|
var import_cn12 = require("cn");
|
|
3004
|
-
var
|
|
3021
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
3005
3022
|
function Table({ className, ...props }) {
|
|
3006
|
-
return /* @__PURE__ */ (0,
|
|
3023
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3007
3024
|
"div",
|
|
3008
3025
|
{
|
|
3009
3026
|
"data-slot": "table-container",
|
|
3010
3027
|
className: "relative w-full overflow-x-auto",
|
|
3011
|
-
children: /* @__PURE__ */ (0,
|
|
3028
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3012
3029
|
"table",
|
|
3013
3030
|
{
|
|
3014
3031
|
"data-slot": "table",
|
|
@@ -3020,7 +3037,7 @@ function Table({ className, ...props }) {
|
|
|
3020
3037
|
);
|
|
3021
3038
|
}
|
|
3022
3039
|
function TableHeader({ className, ...props }) {
|
|
3023
|
-
return /* @__PURE__ */ (0,
|
|
3040
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3024
3041
|
"thead",
|
|
3025
3042
|
{
|
|
3026
3043
|
"data-slot": "table-header",
|
|
@@ -3030,7 +3047,7 @@ function TableHeader({ className, ...props }) {
|
|
|
3030
3047
|
);
|
|
3031
3048
|
}
|
|
3032
3049
|
function TableBody({ className, ...props }) {
|
|
3033
|
-
return /* @__PURE__ */ (0,
|
|
3050
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3034
3051
|
"tbody",
|
|
3035
3052
|
{
|
|
3036
3053
|
"data-slot": "table-body",
|
|
@@ -3040,7 +3057,7 @@ function TableBody({ className, ...props }) {
|
|
|
3040
3057
|
);
|
|
3041
3058
|
}
|
|
3042
3059
|
function TableFooter({ className, ...props }) {
|
|
3043
|
-
return /* @__PURE__ */ (0,
|
|
3060
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3044
3061
|
"tfoot",
|
|
3045
3062
|
{
|
|
3046
3063
|
"data-slot": "table-footer",
|
|
@@ -3053,7 +3070,7 @@ function TableFooter({ className, ...props }) {
|
|
|
3053
3070
|
);
|
|
3054
3071
|
}
|
|
3055
3072
|
function TableRow({ className, ...props }) {
|
|
3056
|
-
return /* @__PURE__ */ (0,
|
|
3073
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3057
3074
|
"tr",
|
|
3058
3075
|
{
|
|
3059
3076
|
"data-slot": "table-row",
|
|
@@ -3066,7 +3083,7 @@ function TableRow({ className, ...props }) {
|
|
|
3066
3083
|
);
|
|
3067
3084
|
}
|
|
3068
3085
|
function TableHead({ className, ...props }) {
|
|
3069
|
-
return /* @__PURE__ */ (0,
|
|
3086
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3070
3087
|
"th",
|
|
3071
3088
|
{
|
|
3072
3089
|
"data-slot": "table-head",
|
|
@@ -3079,7 +3096,7 @@ function TableHead({ className, ...props }) {
|
|
|
3079
3096
|
);
|
|
3080
3097
|
}
|
|
3081
3098
|
function TableCell({ className, ...props }) {
|
|
3082
|
-
return /* @__PURE__ */ (0,
|
|
3099
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3083
3100
|
"td",
|
|
3084
3101
|
{
|
|
3085
3102
|
"data-slot": "table-cell",
|
|
@@ -3095,7 +3112,7 @@ function TableCaption({
|
|
|
3095
3112
|
className,
|
|
3096
3113
|
...props
|
|
3097
3114
|
}) {
|
|
3098
|
-
return /* @__PURE__ */ (0,
|
|
3115
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3099
3116
|
"caption",
|
|
3100
3117
|
{
|
|
3101
3118
|
"data-slot": "table-caption",
|
|
@@ -3106,12 +3123,12 @@ function TableCaption({
|
|
|
3106
3123
|
}
|
|
3107
3124
|
|
|
3108
3125
|
// src/components/table/Table.tsx
|
|
3109
|
-
var
|
|
3110
|
-
var Table2 =
|
|
3111
|
-
({ 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 })
|
|
3112
3129
|
);
|
|
3113
3130
|
Table2.displayName = "Table";
|
|
3114
|
-
var TableHeader2 =
|
|
3131
|
+
var TableHeader2 = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3115
3132
|
TableHeader,
|
|
3116
3133
|
{
|
|
3117
3134
|
ref,
|
|
@@ -3120,7 +3137,7 @@ var TableHeader2 = React17.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
3120
3137
|
}
|
|
3121
3138
|
));
|
|
3122
3139
|
TableHeader2.displayName = "TableHeader";
|
|
3123
|
-
var TableBody2 =
|
|
3140
|
+
var TableBody2 = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3124
3141
|
TableBody,
|
|
3125
3142
|
{
|
|
3126
3143
|
ref,
|
|
@@ -3129,7 +3146,7 @@ var TableBody2 = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
3129
3146
|
}
|
|
3130
3147
|
));
|
|
3131
3148
|
TableBody2.displayName = "TableBody";
|
|
3132
|
-
var TableFooter2 =
|
|
3149
|
+
var TableFooter2 = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3133
3150
|
TableFooter,
|
|
3134
3151
|
{
|
|
3135
3152
|
ref,
|
|
@@ -3141,8 +3158,8 @@ var TableFooter2 = React17.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
3141
3158
|
}
|
|
3142
3159
|
));
|
|
3143
3160
|
TableFooter2.displayName = "TableFooter";
|
|
3144
|
-
var TableRow2 =
|
|
3145
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3161
|
+
var TableRow2 = React18.forwardRef(
|
|
3162
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3146
3163
|
TableRow,
|
|
3147
3164
|
{
|
|
3148
3165
|
ref,
|
|
@@ -3155,7 +3172,7 @@ var TableRow2 = React17.forwardRef(
|
|
|
3155
3172
|
)
|
|
3156
3173
|
);
|
|
3157
3174
|
TableRow2.displayName = "TableRow";
|
|
3158
|
-
var TableHead2 =
|
|
3175
|
+
var TableHead2 = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3159
3176
|
TableHead,
|
|
3160
3177
|
{
|
|
3161
3178
|
ref,
|
|
@@ -3167,7 +3184,7 @@ var TableHead2 = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
3167
3184
|
}
|
|
3168
3185
|
));
|
|
3169
3186
|
TableHead2.displayName = "TableHead";
|
|
3170
|
-
var TableCell2 =
|
|
3187
|
+
var TableCell2 = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3171
3188
|
TableCell,
|
|
3172
3189
|
{
|
|
3173
3190
|
ref,
|
|
@@ -3176,7 +3193,7 @@ var TableCell2 = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
3176
3193
|
}
|
|
3177
3194
|
));
|
|
3178
3195
|
TableCell2.displayName = "TableCell";
|
|
3179
|
-
var TableCaption2 =
|
|
3196
|
+
var TableCaption2 = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3180
3197
|
TableCaption,
|
|
3181
3198
|
{
|
|
3182
3199
|
ref,
|
|
@@ -3187,16 +3204,16 @@ var TableCaption2 = React17.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
3187
3204
|
TableCaption2.displayName = "TableCaption";
|
|
3188
3205
|
|
|
3189
3206
|
// src/components/item/Item.tsx
|
|
3190
|
-
var
|
|
3207
|
+
var React19 = __toESM(require("react"), 1);
|
|
3191
3208
|
|
|
3192
3209
|
// src/primitives/item.tsx
|
|
3193
3210
|
var import_merge_props2 = require("@base-ui/react/merge-props");
|
|
3194
3211
|
var import_use_render2 = require("@base-ui/react/use-render");
|
|
3195
3212
|
var import_class_variance_authority10 = require("class-variance-authority");
|
|
3196
3213
|
var import_cn13 = require("cn");
|
|
3197
|
-
var
|
|
3214
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
3198
3215
|
function ItemGroup({ className, ...props }) {
|
|
3199
|
-
return /* @__PURE__ */ (0,
|
|
3216
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3200
3217
|
"div",
|
|
3201
3218
|
{
|
|
3202
3219
|
role: "list",
|
|
@@ -3213,7 +3230,7 @@ function ItemSeparator({
|
|
|
3213
3230
|
className,
|
|
3214
3231
|
...props
|
|
3215
3232
|
}) {
|
|
3216
|
-
return /* @__PURE__ */ (0,
|
|
3233
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3217
3234
|
Separator,
|
|
3218
3235
|
{
|
|
3219
3236
|
"data-slot": "item-separator",
|
|
@@ -3287,7 +3304,7 @@ function ItemMedia({
|
|
|
3287
3304
|
variant = "default",
|
|
3288
3305
|
...props
|
|
3289
3306
|
}) {
|
|
3290
|
-
return /* @__PURE__ */ (0,
|
|
3307
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3291
3308
|
"div",
|
|
3292
3309
|
{
|
|
3293
3310
|
"data-slot": "item-media",
|
|
@@ -3298,7 +3315,7 @@ function ItemMedia({
|
|
|
3298
3315
|
);
|
|
3299
3316
|
}
|
|
3300
3317
|
function ItemContent({ className, ...props }) {
|
|
3301
|
-
return /* @__PURE__ */ (0,
|
|
3318
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3302
3319
|
"div",
|
|
3303
3320
|
{
|
|
3304
3321
|
"data-slot": "item-content",
|
|
@@ -3311,7 +3328,7 @@ function ItemContent({ className, ...props }) {
|
|
|
3311
3328
|
);
|
|
3312
3329
|
}
|
|
3313
3330
|
function ItemTitle({ className, ...props }) {
|
|
3314
|
-
return /* @__PURE__ */ (0,
|
|
3331
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3315
3332
|
"div",
|
|
3316
3333
|
{
|
|
3317
3334
|
"data-slot": "item-title",
|
|
@@ -3324,7 +3341,7 @@ function ItemTitle({ className, ...props }) {
|
|
|
3324
3341
|
);
|
|
3325
3342
|
}
|
|
3326
3343
|
function ItemDescription({ className, ...props }) {
|
|
3327
|
-
return /* @__PURE__ */ (0,
|
|
3344
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3328
3345
|
"p",
|
|
3329
3346
|
{
|
|
3330
3347
|
"data-slot": "item-description",
|
|
@@ -3337,7 +3354,7 @@ function ItemDescription({ className, ...props }) {
|
|
|
3337
3354
|
);
|
|
3338
3355
|
}
|
|
3339
3356
|
function ItemActions({ className, ...props }) {
|
|
3340
|
-
return /* @__PURE__ */ (0,
|
|
3357
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3341
3358
|
"div",
|
|
3342
3359
|
{
|
|
3343
3360
|
"data-slot": "item-actions",
|
|
@@ -3347,7 +3364,7 @@ function ItemActions({ className, ...props }) {
|
|
|
3347
3364
|
);
|
|
3348
3365
|
}
|
|
3349
3366
|
function ItemHeader({ className, ...props }) {
|
|
3350
|
-
return /* @__PURE__ */ (0,
|
|
3367
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3351
3368
|
"div",
|
|
3352
3369
|
{
|
|
3353
3370
|
"data-slot": "item-header",
|
|
@@ -3360,7 +3377,7 @@ function ItemHeader({ className, ...props }) {
|
|
|
3360
3377
|
);
|
|
3361
3378
|
}
|
|
3362
3379
|
function ItemFooter({ className, ...props }) {
|
|
3363
|
-
return /* @__PURE__ */ (0,
|
|
3380
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3364
3381
|
"div",
|
|
3365
3382
|
{
|
|
3366
3383
|
"data-slot": "item-footer",
|
|
@@ -3374,9 +3391,9 @@ function ItemFooter({ className, ...props }) {
|
|
|
3374
3391
|
}
|
|
3375
3392
|
|
|
3376
3393
|
// src/components/item/Item.tsx
|
|
3377
|
-
var
|
|
3394
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
3378
3395
|
function Item2({ className, asChild, children, ...props }) {
|
|
3379
|
-
return /* @__PURE__ */ (0,
|
|
3396
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3380
3397
|
Item,
|
|
3381
3398
|
{
|
|
3382
3399
|
render: asChild ? children : void 0,
|
|
@@ -3395,8 +3412,8 @@ function Item2({ className, asChild, children, ...props }) {
|
|
|
3395
3412
|
}
|
|
3396
3413
|
);
|
|
3397
3414
|
}
|
|
3398
|
-
var ItemMedia2 =
|
|
3399
|
-
return /* @__PURE__ */ (0,
|
|
3415
|
+
var ItemMedia2 = React19.forwardRef(({ className, ...props }, ref) => {
|
|
3416
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3400
3417
|
ItemMedia,
|
|
3401
3418
|
{
|
|
3402
3419
|
ref,
|
|
@@ -3406,8 +3423,8 @@ var ItemMedia2 = React18.forwardRef(({ className, ...props }, ref) => {
|
|
|
3406
3423
|
);
|
|
3407
3424
|
});
|
|
3408
3425
|
ItemMedia2.displayName = "ItemMedia";
|
|
3409
|
-
var ItemTitle2 =
|
|
3410
|
-
return /* @__PURE__ */ (0,
|
|
3426
|
+
var ItemTitle2 = React19.forwardRef(({ className, ...props }, ref) => {
|
|
3427
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3411
3428
|
ItemTitle,
|
|
3412
3429
|
{
|
|
3413
3430
|
ref,
|
|
@@ -3417,8 +3434,8 @@ var ItemTitle2 = React18.forwardRef(({ className, ...props }, ref) => {
|
|
|
3417
3434
|
);
|
|
3418
3435
|
});
|
|
3419
3436
|
ItemTitle2.displayName = "ItemTitle";
|
|
3420
|
-
var ItemDescription2 =
|
|
3421
|
-
return /* @__PURE__ */ (0,
|
|
3437
|
+
var ItemDescription2 = React19.forwardRef(({ className, ...props }, ref) => {
|
|
3438
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3422
3439
|
ItemDescription,
|
|
3423
3440
|
{
|
|
3424
3441
|
ref,
|
|
@@ -3428,8 +3445,8 @@ var ItemDescription2 = React18.forwardRef(({ className, ...props }, ref) => {
|
|
|
3428
3445
|
);
|
|
3429
3446
|
});
|
|
3430
3447
|
ItemDescription2.displayName = "ItemDescription";
|
|
3431
|
-
var ItemSeparator2 =
|
|
3432
|
-
return /* @__PURE__ */ (0,
|
|
3448
|
+
var ItemSeparator2 = React19.forwardRef(({ className, ...props }, ref) => {
|
|
3449
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3433
3450
|
ItemSeparator,
|
|
3434
3451
|
{
|
|
3435
3452
|
ref,
|
|
@@ -3440,24 +3457,165 @@ var ItemSeparator2 = React18.forwardRef(({ className, ...props }, ref) => {
|
|
|
3440
3457
|
});
|
|
3441
3458
|
ItemSeparator2.displayName = "ItemSeparator";
|
|
3442
3459
|
|
|
3460
|
+
// src/components/empty/Empty.tsx
|
|
3461
|
+
var React20 = __toESM(require("react"), 1);
|
|
3462
|
+
|
|
3463
|
+
// src/primitives/empty.tsx
|
|
3464
|
+
var import_class_variance_authority11 = require("class-variance-authority");
|
|
3465
|
+
var import_cn14 = require("cn");
|
|
3466
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
3467
|
+
function Empty({ className, ...props }) {
|
|
3468
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3469
|
+
"div",
|
|
3470
|
+
{
|
|
3471
|
+
"data-slot": "empty",
|
|
3472
|
+
className: (0, import_cn14.cn)(
|
|
3473
|
+
"flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border-dashed p-6 text-center text-balance",
|
|
3474
|
+
className
|
|
3475
|
+
),
|
|
3476
|
+
...props
|
|
3477
|
+
}
|
|
3478
|
+
);
|
|
3479
|
+
}
|
|
3480
|
+
function EmptyHeader({ className, ...props }) {
|
|
3481
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3482
|
+
"div",
|
|
3483
|
+
{
|
|
3484
|
+
"data-slot": "empty-header",
|
|
3485
|
+
className: (0, import_cn14.cn)("flex max-w-sm flex-col items-center gap-2", className),
|
|
3486
|
+
...props
|
|
3487
|
+
}
|
|
3488
|
+
);
|
|
3489
|
+
}
|
|
3490
|
+
var emptyMediaVariants = (0, import_class_variance_authority11.cva)(
|
|
3491
|
+
"mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
3492
|
+
{
|
|
3493
|
+
variants: {
|
|
3494
|
+
variant: {
|
|
3495
|
+
default: "bg-transparent",
|
|
3496
|
+
icon: "flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4"
|
|
3497
|
+
}
|
|
3498
|
+
},
|
|
3499
|
+
defaultVariants: {
|
|
3500
|
+
variant: "default"
|
|
3501
|
+
}
|
|
3502
|
+
}
|
|
3503
|
+
);
|
|
3504
|
+
function EmptyMedia({
|
|
3505
|
+
className,
|
|
3506
|
+
variant = "default",
|
|
3507
|
+
...props
|
|
3508
|
+
}) {
|
|
3509
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3510
|
+
"div",
|
|
3511
|
+
{
|
|
3512
|
+
"data-slot": "empty-icon",
|
|
3513
|
+
"data-variant": variant,
|
|
3514
|
+
className: (0, import_cn14.cn)(emptyMediaVariants({ variant, className })),
|
|
3515
|
+
...props
|
|
3516
|
+
}
|
|
3517
|
+
);
|
|
3518
|
+
}
|
|
3519
|
+
function EmptyTitle({ className, ...props }) {
|
|
3520
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3521
|
+
"div",
|
|
3522
|
+
{
|
|
3523
|
+
"data-slot": "empty-title",
|
|
3524
|
+
className: (0, import_cn14.cn)(
|
|
3525
|
+
"text-sm font-medium tracking-tight",
|
|
3526
|
+
className
|
|
3527
|
+
),
|
|
3528
|
+
...props
|
|
3529
|
+
}
|
|
3530
|
+
);
|
|
3531
|
+
}
|
|
3532
|
+
function EmptyDescription({ className, ...props }) {
|
|
3533
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3534
|
+
"div",
|
|
3535
|
+
{
|
|
3536
|
+
"data-slot": "empty-description",
|
|
3537
|
+
className: (0, import_cn14.cn)(
|
|
3538
|
+
"text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",
|
|
3539
|
+
className
|
|
3540
|
+
),
|
|
3541
|
+
...props
|
|
3542
|
+
}
|
|
3543
|
+
);
|
|
3544
|
+
}
|
|
3545
|
+
function EmptyContent({ className, ...props }) {
|
|
3546
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3547
|
+
"div",
|
|
3548
|
+
{
|
|
3549
|
+
"data-slot": "empty-content",
|
|
3550
|
+
className: (0, import_cn14.cn)(
|
|
3551
|
+
"flex w-full max-w-sm min-w-0 flex-col items-center gap-2.5 text-sm text-balance",
|
|
3552
|
+
className
|
|
3553
|
+
),
|
|
3554
|
+
...props
|
|
3555
|
+
}
|
|
3556
|
+
);
|
|
3557
|
+
}
|
|
3558
|
+
|
|
3559
|
+
// src/components/empty/Empty.tsx
|
|
3560
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
3561
|
+
function Empty2({ className, ...props }) {
|
|
3562
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Empty, { className, ...props });
|
|
3563
|
+
}
|
|
3564
|
+
var EmptyMedia2 = React20.forwardRef(({ className, ...props }, ref) => {
|
|
3565
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3566
|
+
EmptyMedia,
|
|
3567
|
+
{
|
|
3568
|
+
ref,
|
|
3569
|
+
className: cn(
|
|
3570
|
+
"data-[variant=icon]:bg-berget-empty-media-icon-bg data-[variant=icon]:text-berget-empty-media-icon-fg",
|
|
3571
|
+
className
|
|
3572
|
+
),
|
|
3573
|
+
...props
|
|
3574
|
+
}
|
|
3575
|
+
);
|
|
3576
|
+
});
|
|
3577
|
+
EmptyMedia2.displayName = "EmptyMedia";
|
|
3578
|
+
var EmptyTitle2 = React20.forwardRef(({ className, ...props }, ref) => {
|
|
3579
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3580
|
+
EmptyTitle,
|
|
3581
|
+
{
|
|
3582
|
+
ref,
|
|
3583
|
+
className: cn("text-base text-berget-empty-title-fg", className),
|
|
3584
|
+
...props
|
|
3585
|
+
}
|
|
3586
|
+
);
|
|
3587
|
+
});
|
|
3588
|
+
EmptyTitle2.displayName = "EmptyTitle";
|
|
3589
|
+
var EmptyDescription2 = React20.forwardRef(({ className, ...props }, ref) => {
|
|
3590
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3591
|
+
EmptyDescription,
|
|
3592
|
+
{
|
|
3593
|
+
ref,
|
|
3594
|
+
className: cn("text-berget-empty-description-fg", className),
|
|
3595
|
+
...props
|
|
3596
|
+
}
|
|
3597
|
+
);
|
|
3598
|
+
});
|
|
3599
|
+
EmptyDescription2.displayName = "EmptyDescription";
|
|
3600
|
+
|
|
3443
3601
|
// src/components/search-input/SearchInput.tsx
|
|
3444
3602
|
var import_lucide_react8 = require("lucide-react");
|
|
3445
|
-
var
|
|
3603
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
3446
3604
|
var SearchInput = ({
|
|
3447
3605
|
type = "search",
|
|
3448
3606
|
placeholder = "Search...",
|
|
3449
3607
|
className,
|
|
3450
3608
|
ref,
|
|
3451
3609
|
...props
|
|
3452
|
-
}) => /* @__PURE__ */ (0,
|
|
3453
|
-
/* @__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)(
|
|
3454
3612
|
import_lucide_react8.Search,
|
|
3455
3613
|
{
|
|
3456
3614
|
"aria-hidden": "true",
|
|
3457
3615
|
className: "pointer-events-none absolute left-2.5 size-4 text-berget-muted-foreground"
|
|
3458
3616
|
}
|
|
3459
3617
|
),
|
|
3460
|
-
/* @__PURE__ */ (0,
|
|
3618
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3461
3619
|
Input,
|
|
3462
3620
|
{
|
|
3463
3621
|
ref,
|
|
@@ -3471,32 +3629,32 @@ var SearchInput = ({
|
|
|
3471
3629
|
SearchInput.displayName = "SearchInput";
|
|
3472
3630
|
|
|
3473
3631
|
// src/components/checkbox/Checkbox.tsx
|
|
3474
|
-
var
|
|
3632
|
+
var React21 = __toESM(require("react"), 1);
|
|
3475
3633
|
var import_checkbox2 = require("@base-ui/react/checkbox");
|
|
3476
3634
|
var import_lucide_react10 = require("lucide-react");
|
|
3477
|
-
var
|
|
3635
|
+
var import_class_variance_authority12 = require("class-variance-authority");
|
|
3478
3636
|
|
|
3479
3637
|
// src/primitives/checkbox.tsx
|
|
3480
3638
|
var import_checkbox = require("@base-ui/react/checkbox");
|
|
3481
|
-
var
|
|
3639
|
+
var import_cn15 = require("cn");
|
|
3482
3640
|
var import_lucide_react9 = require("lucide-react");
|
|
3483
|
-
var
|
|
3641
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
3484
3642
|
function Checkbox({ className, ...props }) {
|
|
3485
|
-
return /* @__PURE__ */ (0,
|
|
3643
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3486
3644
|
import_checkbox.Checkbox.Root,
|
|
3487
3645
|
{
|
|
3488
3646
|
"data-slot": "checkbox",
|
|
3489
|
-
className: (0,
|
|
3647
|
+
className: (0, import_cn15.cn)(
|
|
3490
3648
|
"peer relative flex size-4 shrink-0 cursor-pointer items-center justify-center rounded-[4px] border border-input transition-colors outline-none group-has-disabled/field:opacity-50 group-has-[:focus-visible]/field-label:ring-0 group-has-[:focus-visible]/field-label:not-data-checked:border-input after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground group-has-[:focus-visible]/field-label:data-checked:border-primary dark:data-checked:bg-primary",
|
|
3491
3649
|
className
|
|
3492
3650
|
),
|
|
3493
3651
|
...props,
|
|
3494
|
-
children: /* @__PURE__ */ (0,
|
|
3652
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3495
3653
|
import_checkbox.Checkbox.Indicator,
|
|
3496
3654
|
{
|
|
3497
3655
|
"data-slot": "checkbox-indicator",
|
|
3498
3656
|
className: "grid place-content-center text-current transition-none [&>svg]:size-3.5",
|
|
3499
|
-
children: /* @__PURE__ */ (0,
|
|
3657
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3500
3658
|
import_lucide_react9.CheckIcon,
|
|
3501
3659
|
{}
|
|
3502
3660
|
)
|
|
@@ -3507,8 +3665,8 @@ function Checkbox({ className, ...props }) {
|
|
|
3507
3665
|
}
|
|
3508
3666
|
|
|
3509
3667
|
// src/components/checkbox/Checkbox.tsx
|
|
3510
|
-
var
|
|
3511
|
-
var checkboxVariants = (0,
|
|
3668
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
3669
|
+
var checkboxVariants = (0, import_class_variance_authority12.cva)(
|
|
3512
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",
|
|
3513
3671
|
{
|
|
3514
3672
|
variants: {
|
|
@@ -3529,7 +3687,7 @@ var checkboxVariants = (0, import_class_variance_authority11.cva)(
|
|
|
3529
3687
|
}
|
|
3530
3688
|
}
|
|
3531
3689
|
);
|
|
3532
|
-
var Checkbox2 =
|
|
3690
|
+
var Checkbox2 = React21.forwardRef(
|
|
3533
3691
|
({
|
|
3534
3692
|
"aria-label": ariaLabel,
|
|
3535
3693
|
className,
|
|
@@ -3542,11 +3700,11 @@ var Checkbox2 = React19.forwardRef(
|
|
|
3542
3700
|
disabled,
|
|
3543
3701
|
...props
|
|
3544
3702
|
}, ref) => {
|
|
3545
|
-
const generatedId =
|
|
3703
|
+
const generatedId = React21.useId();
|
|
3546
3704
|
const checkboxId = id || generatedId;
|
|
3547
3705
|
const errorId = `${checkboxId}-error`;
|
|
3548
|
-
return /* @__PURE__ */ (0,
|
|
3549
|
-
/* @__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)(
|
|
3550
3708
|
Checkbox,
|
|
3551
3709
|
{
|
|
3552
3710
|
ref,
|
|
@@ -3562,7 +3720,7 @@ var Checkbox2 = React19.forwardRef(
|
|
|
3562
3720
|
className
|
|
3563
3721
|
),
|
|
3564
3722
|
...props,
|
|
3565
|
-
children: /* @__PURE__ */ (0,
|
|
3723
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_checkbox2.Checkbox.Indicator, { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
3566
3724
|
import_lucide_react10.Check,
|
|
3567
3725
|
{
|
|
3568
3726
|
className: "h-4 w-4 text-current stroke-current",
|
|
@@ -3571,8 +3729,8 @@ var Checkbox2 = React19.forwardRef(
|
|
|
3571
3729
|
) })
|
|
3572
3730
|
}
|
|
3573
3731
|
) }),
|
|
3574
|
-
(label || description || error) && /* @__PURE__ */ (0,
|
|
3575
|
-
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)(
|
|
3576
3734
|
"label",
|
|
3577
3735
|
{
|
|
3578
3736
|
htmlFor: checkboxId,
|
|
@@ -3584,8 +3742,8 @@ var Checkbox2 = React19.forwardRef(
|
|
|
3584
3742
|
children: label
|
|
3585
3743
|
}
|
|
3586
3744
|
),
|
|
3587
|
-
description && /* @__PURE__ */ (0,
|
|
3588
|
-
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 })
|
|
3589
3747
|
] })
|
|
3590
3748
|
] });
|
|
3591
3749
|
}
|
|
@@ -3593,11 +3751,11 @@ var Checkbox2 = React19.forwardRef(
|
|
|
3593
3751
|
Checkbox2.displayName = "Checkbox";
|
|
3594
3752
|
|
|
3595
3753
|
// src/components/switch/Switch.tsx
|
|
3596
|
-
var
|
|
3754
|
+
var React22 = __toESM(require("react"), 1);
|
|
3597
3755
|
var import_switch = require("@base-ui/react/switch");
|
|
3598
|
-
var
|
|
3599
|
-
var
|
|
3600
|
-
var switchRootVariants = (0,
|
|
3756
|
+
var import_class_variance_authority13 = require("class-variance-authority");
|
|
3757
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
3758
|
+
var switchRootVariants = (0, import_class_variance_authority13.cva)(
|
|
3601
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",
|
|
3602
3760
|
{
|
|
3603
3761
|
variants: {
|
|
@@ -3618,7 +3776,7 @@ var switchRootVariants = (0, import_class_variance_authority12.cva)(
|
|
|
3618
3776
|
}
|
|
3619
3777
|
}
|
|
3620
3778
|
);
|
|
3621
|
-
var switchThumbVariants = (0,
|
|
3779
|
+
var switchThumbVariants = (0, import_class_variance_authority13.cva)(
|
|
3622
3780
|
"pointer-events-none block rounded-full ring-0 transition-transform shadow-berget-sm bg-berget-foreground",
|
|
3623
3781
|
{
|
|
3624
3782
|
variants: {
|
|
@@ -3633,7 +3791,7 @@ var switchThumbVariants = (0, import_class_variance_authority12.cva)(
|
|
|
3633
3791
|
}
|
|
3634
3792
|
}
|
|
3635
3793
|
);
|
|
3636
|
-
var Switch =
|
|
3794
|
+
var Switch = React22.forwardRef(
|
|
3637
3795
|
({
|
|
3638
3796
|
"aria-label": ariaLabel,
|
|
3639
3797
|
className,
|
|
@@ -3646,11 +3804,11 @@ var Switch = React20.forwardRef(
|
|
|
3646
3804
|
disabled,
|
|
3647
3805
|
...props
|
|
3648
3806
|
}, ref) => {
|
|
3649
|
-
const generatedId =
|
|
3807
|
+
const generatedId = React22.useId();
|
|
3650
3808
|
const switchId = id || generatedId;
|
|
3651
3809
|
const errorId = `${switchId}-error`;
|
|
3652
|
-
return /* @__PURE__ */ (0,
|
|
3653
|
-
/* @__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)(
|
|
3654
3812
|
import_switch.Switch.Root,
|
|
3655
3813
|
{
|
|
3656
3814
|
ref,
|
|
@@ -3665,11 +3823,11 @@ var Switch = React20.forwardRef(
|
|
|
3665
3823
|
className
|
|
3666
3824
|
),
|
|
3667
3825
|
...props,
|
|
3668
|
-
children: /* @__PURE__ */ (0,
|
|
3826
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_switch.Switch.Thumb, { className: cn(switchThumbVariants({ size })) })
|
|
3669
3827
|
}
|
|
3670
3828
|
),
|
|
3671
|
-
(label || description || error) && /* @__PURE__ */ (0,
|
|
3672
|
-
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)(
|
|
3673
3831
|
"label",
|
|
3674
3832
|
{
|
|
3675
3833
|
htmlFor: switchId,
|
|
@@ -3680,8 +3838,8 @@ var Switch = React20.forwardRef(
|
|
|
3680
3838
|
children: label
|
|
3681
3839
|
}
|
|
3682
3840
|
),
|
|
3683
|
-
description && /* @__PURE__ */ (0,
|
|
3684
|
-
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 })
|
|
3685
3843
|
] })
|
|
3686
3844
|
] });
|
|
3687
3845
|
}
|
|
@@ -3690,26 +3848,26 @@ Switch.displayName = "Switch";
|
|
|
3690
3848
|
|
|
3691
3849
|
// src/primitives/select.tsx
|
|
3692
3850
|
var import_select = require("@base-ui/react/select");
|
|
3693
|
-
var
|
|
3851
|
+
var import_cn16 = require("cn");
|
|
3694
3852
|
var import_lucide_react11 = require("lucide-react");
|
|
3695
|
-
var
|
|
3853
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
3696
3854
|
var Select = import_select.Select.Root;
|
|
3697
3855
|
function SelectGroup({ className, ...props }) {
|
|
3698
|
-
return /* @__PURE__ */ (0,
|
|
3856
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
3699
3857
|
import_select.Select.Group,
|
|
3700
3858
|
{
|
|
3701
3859
|
"data-slot": "select-group",
|
|
3702
|
-
className: (0,
|
|
3860
|
+
className: (0, import_cn16.cn)("scroll-my-1 p-1", className),
|
|
3703
3861
|
...props
|
|
3704
3862
|
}
|
|
3705
3863
|
);
|
|
3706
3864
|
}
|
|
3707
3865
|
function SelectValue({ className, ...props }) {
|
|
3708
|
-
return /* @__PURE__ */ (0,
|
|
3866
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
3709
3867
|
import_select.Select.Value,
|
|
3710
3868
|
{
|
|
3711
3869
|
"data-slot": "select-value",
|
|
3712
|
-
className: (0,
|
|
3870
|
+
className: (0, import_cn16.cn)("flex flex-1 text-left", className),
|
|
3713
3871
|
...props
|
|
3714
3872
|
}
|
|
3715
3873
|
);
|
|
@@ -3720,22 +3878,22 @@ function SelectTrigger({
|
|
|
3720
3878
|
children,
|
|
3721
3879
|
...props
|
|
3722
3880
|
}) {
|
|
3723
|
-
return /* @__PURE__ */ (0,
|
|
3881
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
3724
3882
|
import_select.Select.Trigger,
|
|
3725
3883
|
{
|
|
3726
3884
|
"data-slot": "select-trigger",
|
|
3727
3885
|
"data-size": size,
|
|
3728
|
-
className: (0,
|
|
3886
|
+
className: (0, import_cn16.cn)(
|
|
3729
3887
|
"flex w-fit cursor-pointer items-center justify-between gap-1.5 rounded-lg border border-input bg-input/30 py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
3730
3888
|
className
|
|
3731
3889
|
),
|
|
3732
3890
|
...props,
|
|
3733
3891
|
children: [
|
|
3734
3892
|
children,
|
|
3735
|
-
/* @__PURE__ */ (0,
|
|
3893
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
3736
3894
|
import_select.Select.Icon,
|
|
3737
3895
|
{
|
|
3738
|
-
render: /* @__PURE__ */ (0,
|
|
3896
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_lucide_react11.ChevronDownIcon, { className: "pointer-events-none size-4 text-muted-foreground" })
|
|
3739
3897
|
}
|
|
3740
3898
|
)
|
|
3741
3899
|
]
|
|
@@ -3752,7 +3910,7 @@ function SelectContent({
|
|
|
3752
3910
|
alignItemWithTrigger = true,
|
|
3753
3911
|
...props
|
|
3754
3912
|
}) {
|
|
3755
|
-
return /* @__PURE__ */ (0,
|
|
3913
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_select.Select.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
3756
3914
|
import_select.Select.Positioner,
|
|
3757
3915
|
{
|
|
3758
3916
|
side,
|
|
@@ -3761,17 +3919,17 @@ function SelectContent({
|
|
|
3761
3919
|
alignOffset,
|
|
3762
3920
|
alignItemWithTrigger,
|
|
3763
3921
|
className: "isolate z-50",
|
|
3764
|
-
children: /* @__PURE__ */ (0,
|
|
3922
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
3765
3923
|
import_select.Select.Popup,
|
|
3766
3924
|
{
|
|
3767
3925
|
"data-slot": "select-content",
|
|
3768
3926
|
"data-align-trigger": alignItemWithTrigger,
|
|
3769
|
-
className: (0,
|
|
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),
|
|
3770
3928
|
...props,
|
|
3771
3929
|
children: [
|
|
3772
|
-
/* @__PURE__ */ (0,
|
|
3773
|
-
/* @__PURE__ */ (0,
|
|
3774
|
-
/* @__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, {})
|
|
3775
3933
|
]
|
|
3776
3934
|
}
|
|
3777
3935
|
)
|
|
@@ -3782,11 +3940,11 @@ function SelectLabel({
|
|
|
3782
3940
|
className,
|
|
3783
3941
|
...props
|
|
3784
3942
|
}) {
|
|
3785
|
-
return /* @__PURE__ */ (0,
|
|
3943
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
3786
3944
|
import_select.Select.GroupLabel,
|
|
3787
3945
|
{
|
|
3788
3946
|
"data-slot": "select-label",
|
|
3789
|
-
className: (0,
|
|
3947
|
+
className: (0, import_cn16.cn)("px-1.5 py-1 text-xs text-muted-foreground", className),
|
|
3790
3948
|
...props
|
|
3791
3949
|
}
|
|
3792
3950
|
);
|
|
@@ -3796,22 +3954,22 @@ function SelectItem({
|
|
|
3796
3954
|
children,
|
|
3797
3955
|
...props
|
|
3798
3956
|
}) {
|
|
3799
|
-
return /* @__PURE__ */ (0,
|
|
3957
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
3800
3958
|
import_select.Select.Item,
|
|
3801
3959
|
{
|
|
3802
3960
|
"data-slot": "select-item",
|
|
3803
|
-
className: (0,
|
|
3961
|
+
className: (0, import_cn16.cn)(
|
|
3804
3962
|
"relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
|
|
3805
3963
|
className
|
|
3806
3964
|
),
|
|
3807
3965
|
...props,
|
|
3808
3966
|
children: [
|
|
3809
|
-
/* @__PURE__ */ (0,
|
|
3810
|
-
/* @__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)(
|
|
3811
3969
|
import_select.Select.ItemIndicator,
|
|
3812
3970
|
{
|
|
3813
|
-
render: /* @__PURE__ */ (0,
|
|
3814
|
-
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" })
|
|
3815
3973
|
}
|
|
3816
3974
|
)
|
|
3817
3975
|
]
|
|
@@ -3822,11 +3980,11 @@ function SelectSeparator({
|
|
|
3822
3980
|
className,
|
|
3823
3981
|
...props
|
|
3824
3982
|
}) {
|
|
3825
|
-
return /* @__PURE__ */ (0,
|
|
3983
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
3826
3984
|
import_select.Select.Separator,
|
|
3827
3985
|
{
|
|
3828
3986
|
"data-slot": "select-separator",
|
|
3829
|
-
className: (0,
|
|
3987
|
+
className: (0, import_cn16.cn)("pointer-events-none -mx-1 my-1 h-px bg-border", className),
|
|
3830
3988
|
...props
|
|
3831
3989
|
}
|
|
3832
3990
|
);
|
|
@@ -3835,16 +3993,16 @@ function SelectScrollUpButton({
|
|
|
3835
3993
|
className,
|
|
3836
3994
|
...props
|
|
3837
3995
|
}) {
|
|
3838
|
-
return /* @__PURE__ */ (0,
|
|
3996
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
3839
3997
|
import_select.Select.ScrollUpArrow,
|
|
3840
3998
|
{
|
|
3841
3999
|
"data-slot": "select-scroll-up-button",
|
|
3842
|
-
className: (0,
|
|
4000
|
+
className: (0, import_cn16.cn)(
|
|
3843
4001
|
"top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",
|
|
3844
4002
|
className
|
|
3845
4003
|
),
|
|
3846
4004
|
...props,
|
|
3847
|
-
children: /* @__PURE__ */ (0,
|
|
4005
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
3848
4006
|
import_lucide_react11.ChevronUpIcon,
|
|
3849
4007
|
{}
|
|
3850
4008
|
)
|
|
@@ -3855,16 +4013,16 @@ function SelectScrollDownButton({
|
|
|
3855
4013
|
className,
|
|
3856
4014
|
...props
|
|
3857
4015
|
}) {
|
|
3858
|
-
return /* @__PURE__ */ (0,
|
|
4016
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
3859
4017
|
import_select.Select.ScrollDownArrow,
|
|
3860
4018
|
{
|
|
3861
4019
|
"data-slot": "select-scroll-down-button",
|
|
3862
|
-
className: (0,
|
|
4020
|
+
className: (0, import_cn16.cn)(
|
|
3863
4021
|
"bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",
|
|
3864
4022
|
className
|
|
3865
4023
|
),
|
|
3866
4024
|
...props,
|
|
3867
|
-
children: /* @__PURE__ */ (0,
|
|
4025
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
3868
4026
|
import_lucide_react11.ChevronDownIcon,
|
|
3869
4027
|
{}
|
|
3870
4028
|
)
|
|
@@ -3873,19 +4031,19 @@ function SelectScrollDownButton({
|
|
|
3873
4031
|
}
|
|
3874
4032
|
|
|
3875
4033
|
// src/components/country-select/CountrySelect.tsx
|
|
3876
|
-
var
|
|
4034
|
+
var React24 = __toESM(require("react"), 1);
|
|
3877
4035
|
var import_lucide_react14 = require("lucide-react");
|
|
3878
4036
|
|
|
3879
4037
|
// src/components/icon/Icon.tsx
|
|
3880
|
-
var
|
|
3881
|
-
var
|
|
4038
|
+
var React23 = __toESM(require("react"), 1);
|
|
4039
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
3882
4040
|
var iconStrokeMap = {
|
|
3883
4041
|
12: 1.4,
|
|
3884
4042
|
16: 1.4,
|
|
3885
4043
|
24: 1.6,
|
|
3886
4044
|
32: 1.8
|
|
3887
4045
|
};
|
|
3888
|
-
var Icon =
|
|
4046
|
+
var Icon = React23.forwardRef(
|
|
3889
4047
|
({
|
|
3890
4048
|
icon: IconComponent,
|
|
3891
4049
|
size,
|
|
@@ -3897,7 +4055,7 @@ var Icon = React21.forwardRef(
|
|
|
3897
4055
|
const strokeWidth = iconStrokeMap[size];
|
|
3898
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";
|
|
3899
4057
|
const ariaAttributes = ariaLabel ? { "aria-label": ariaLabel } : { "aria-hidden": ariaHidden };
|
|
3900
|
-
return /* @__PURE__ */ (0,
|
|
4058
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
3901
4059
|
IconComponent,
|
|
3902
4060
|
{
|
|
3903
4061
|
ref,
|
|
@@ -3913,13 +4071,13 @@ Icon.displayName = "Icon";
|
|
|
3913
4071
|
|
|
3914
4072
|
// src/primitives/popover.tsx
|
|
3915
4073
|
var import_popover = require("@base-ui/react/popover");
|
|
3916
|
-
var
|
|
3917
|
-
var
|
|
4074
|
+
var import_cn17 = require("cn");
|
|
4075
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
3918
4076
|
function Popover({ ...props }) {
|
|
3919
|
-
return /* @__PURE__ */ (0,
|
|
4077
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_popover.Popover.Root, { "data-slot": "popover", ...props });
|
|
3920
4078
|
}
|
|
3921
4079
|
function PopoverTrigger({ ...props }) {
|
|
3922
|
-
return /* @__PURE__ */ (0,
|
|
4080
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_popover.Popover.Trigger, { "data-slot": "popover-trigger", ...props });
|
|
3923
4081
|
}
|
|
3924
4082
|
function PopoverContent({
|
|
3925
4083
|
className,
|
|
@@ -3929,7 +4087,7 @@ function PopoverContent({
|
|
|
3929
4087
|
sideOffset = 4,
|
|
3930
4088
|
...props
|
|
3931
4089
|
}) {
|
|
3932
|
-
return /* @__PURE__ */ (0,
|
|
4090
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_popover.Popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
3933
4091
|
import_popover.Popover.Positioner,
|
|
3934
4092
|
{
|
|
3935
4093
|
align,
|
|
@@ -3937,11 +4095,11 @@ function PopoverContent({
|
|
|
3937
4095
|
side,
|
|
3938
4096
|
sideOffset,
|
|
3939
4097
|
className: "isolate z-50",
|
|
3940
|
-
children: /* @__PURE__ */ (0,
|
|
4098
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
3941
4099
|
import_popover.Popover.Popup,
|
|
3942
4100
|
{
|
|
3943
4101
|
"data-slot": "popover-content",
|
|
3944
|
-
className: (0,
|
|
4102
|
+
className: (0, import_cn17.cn)(
|
|
3945
4103
|
"z-50 flex w-72 origin-(--transform-origin) flex-col gap-2.5 rounded-lg bg-popover p-2.5 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
|
|
3946
4104
|
className
|
|
3947
4105
|
),
|
|
@@ -3954,27 +4112,27 @@ function PopoverContent({
|
|
|
3954
4112
|
|
|
3955
4113
|
// src/primitives/command.tsx
|
|
3956
4114
|
var import_cmdk = require("cmdk");
|
|
3957
|
-
var
|
|
4115
|
+
var import_cn21 = require("cn");
|
|
3958
4116
|
|
|
3959
4117
|
// src/primitives/dialog.tsx
|
|
3960
4118
|
var import_dialog3 = require("@base-ui/react/dialog");
|
|
3961
|
-
var
|
|
4119
|
+
var import_cn18 = require("cn");
|
|
3962
4120
|
var import_lucide_react12 = require("lucide-react");
|
|
3963
|
-
var
|
|
4121
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
3964
4122
|
|
|
3965
4123
|
// src/primitives/input-group.tsx
|
|
3966
|
-
var
|
|
3967
|
-
var
|
|
4124
|
+
var import_class_variance_authority14 = require("class-variance-authority");
|
|
4125
|
+
var import_cn20 = require("cn");
|
|
3968
4126
|
|
|
3969
4127
|
// src/primitives/textarea.tsx
|
|
3970
|
-
var
|
|
3971
|
-
var
|
|
4128
|
+
var import_cn19 = require("cn");
|
|
4129
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
3972
4130
|
function Textarea({ className, ...props }) {
|
|
3973
|
-
return /* @__PURE__ */ (0,
|
|
4131
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3974
4132
|
"textarea",
|
|
3975
4133
|
{
|
|
3976
4134
|
"data-slot": "textarea",
|
|
3977
|
-
className: (0,
|
|
4135
|
+
className: (0, import_cn19.cn)(
|
|
3978
4136
|
"flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-input/30 px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",
|
|
3979
4137
|
className
|
|
3980
4138
|
),
|
|
@@ -3984,14 +4142,14 @@ function Textarea({ className, ...props }) {
|
|
|
3984
4142
|
}
|
|
3985
4143
|
|
|
3986
4144
|
// src/primitives/input-group.tsx
|
|
3987
|
-
var
|
|
4145
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
3988
4146
|
function InputGroup({ className, ...props }) {
|
|
3989
|
-
return /* @__PURE__ */ (0,
|
|
4147
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3990
4148
|
"div",
|
|
3991
4149
|
{
|
|
3992
4150
|
"data-slot": "input-group",
|
|
3993
4151
|
role: "group",
|
|
3994
|
-
className: (0,
|
|
4152
|
+
className: (0, import_cn20.cn)(
|
|
3995
4153
|
"group/input-group relative flex h-8 w-full min-w-0 items-center rounded-lg border border-input transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5",
|
|
3996
4154
|
className
|
|
3997
4155
|
),
|
|
@@ -3999,7 +4157,7 @@ function InputGroup({ className, ...props }) {
|
|
|
3999
4157
|
}
|
|
4000
4158
|
);
|
|
4001
4159
|
}
|
|
4002
|
-
var inputGroupAddonVariants = (0,
|
|
4160
|
+
var inputGroupAddonVariants = (0, import_class_variance_authority14.cva)(
|
|
4003
4161
|
"flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",
|
|
4004
4162
|
{
|
|
4005
4163
|
variants: {
|
|
@@ -4020,13 +4178,13 @@ function InputGroupAddon({
|
|
|
4020
4178
|
align = "inline-start",
|
|
4021
4179
|
...props
|
|
4022
4180
|
}) {
|
|
4023
|
-
return /* @__PURE__ */ (0,
|
|
4181
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
4024
4182
|
"div",
|
|
4025
4183
|
{
|
|
4026
4184
|
role: "group",
|
|
4027
4185
|
"data-slot": "input-group-addon",
|
|
4028
4186
|
"data-align": align,
|
|
4029
|
-
className: (0,
|
|
4187
|
+
className: (0, import_cn20.cn)(inputGroupAddonVariants({ align }), className),
|
|
4030
4188
|
onClick: (e) => {
|
|
4031
4189
|
if (e.target.closest("button")) {
|
|
4032
4190
|
return;
|
|
@@ -4037,7 +4195,7 @@ function InputGroupAddon({
|
|
|
4037
4195
|
}
|
|
4038
4196
|
);
|
|
4039
4197
|
}
|
|
4040
|
-
var inputGroupButtonVariants = (0,
|
|
4198
|
+
var inputGroupButtonVariants = (0, import_class_variance_authority14.cva)(
|
|
4041
4199
|
"flex items-center gap-2 text-sm shadow-none",
|
|
4042
4200
|
{
|
|
4043
4201
|
variants: {
|
|
@@ -4056,16 +4214,16 @@ var inputGroupButtonVariants = (0, import_class_variance_authority13.cva)(
|
|
|
4056
4214
|
|
|
4057
4215
|
// src/primitives/command.tsx
|
|
4058
4216
|
var import_lucide_react13 = require("lucide-react");
|
|
4059
|
-
var
|
|
4217
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
4060
4218
|
function Command({
|
|
4061
4219
|
className,
|
|
4062
4220
|
...props
|
|
4063
4221
|
}) {
|
|
4064
|
-
return /* @__PURE__ */ (0,
|
|
4222
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4065
4223
|
import_cmdk.Command,
|
|
4066
4224
|
{
|
|
4067
4225
|
"data-slot": "command",
|
|
4068
|
-
className: (0,
|
|
4226
|
+
className: (0, import_cn21.cn)(
|
|
4069
4227
|
"flex size-full flex-col overflow-hidden rounded-xl! bg-popover p-1 text-popover-foreground",
|
|
4070
4228
|
className
|
|
4071
4229
|
),
|
|
@@ -4077,30 +4235,30 @@ function CommandInput({
|
|
|
4077
4235
|
className,
|
|
4078
4236
|
...props
|
|
4079
4237
|
}) {
|
|
4080
|
-
return /* @__PURE__ */ (0,
|
|
4081
|
-
/* @__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)(
|
|
4082
4240
|
import_cmdk.Command.Input,
|
|
4083
4241
|
{
|
|
4084
4242
|
"data-slot": "command-input",
|
|
4085
|
-
className: (0,
|
|
4243
|
+
className: (0, import_cn21.cn)(
|
|
4086
4244
|
"w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
|
|
4087
4245
|
className
|
|
4088
4246
|
),
|
|
4089
4247
|
...props
|
|
4090
4248
|
}
|
|
4091
4249
|
),
|
|
4092
|
-
/* @__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" }) })
|
|
4093
4251
|
] }) });
|
|
4094
4252
|
}
|
|
4095
4253
|
function CommandList({
|
|
4096
4254
|
className,
|
|
4097
4255
|
...props
|
|
4098
4256
|
}) {
|
|
4099
|
-
return /* @__PURE__ */ (0,
|
|
4257
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4100
4258
|
import_cmdk.Command.List,
|
|
4101
4259
|
{
|
|
4102
4260
|
"data-slot": "command-list",
|
|
4103
|
-
className: (0,
|
|
4261
|
+
className: (0, import_cn21.cn)(
|
|
4104
4262
|
"no-scrollbar max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none",
|
|
4105
4263
|
className
|
|
4106
4264
|
),
|
|
@@ -4112,11 +4270,11 @@ function CommandEmpty({
|
|
|
4112
4270
|
className,
|
|
4113
4271
|
...props
|
|
4114
4272
|
}) {
|
|
4115
|
-
return /* @__PURE__ */ (0,
|
|
4273
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4116
4274
|
import_cmdk.Command.Empty,
|
|
4117
4275
|
{
|
|
4118
4276
|
"data-slot": "command-empty",
|
|
4119
|
-
className: (0,
|
|
4277
|
+
className: (0, import_cn21.cn)("py-6 text-center text-sm", className),
|
|
4120
4278
|
...props
|
|
4121
4279
|
}
|
|
4122
4280
|
);
|
|
@@ -4125,11 +4283,11 @@ function CommandGroup({
|
|
|
4125
4283
|
className,
|
|
4126
4284
|
...props
|
|
4127
4285
|
}) {
|
|
4128
|
-
return /* @__PURE__ */ (0,
|
|
4286
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4129
4287
|
import_cmdk.Command.Group,
|
|
4130
4288
|
{
|
|
4131
4289
|
"data-slot": "command-group",
|
|
4132
|
-
className: (0,
|
|
4290
|
+
className: (0, import_cn21.cn)(
|
|
4133
4291
|
"overflow-hidden p-1 text-foreground **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground",
|
|
4134
4292
|
className
|
|
4135
4293
|
),
|
|
@@ -4142,18 +4300,18 @@ function CommandItem({
|
|
|
4142
4300
|
children,
|
|
4143
4301
|
...props
|
|
4144
4302
|
}) {
|
|
4145
|
-
return /* @__PURE__ */ (0,
|
|
4303
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
4146
4304
|
import_cmdk.Command.Item,
|
|
4147
4305
|
{
|
|
4148
4306
|
"data-slot": "command-item",
|
|
4149
|
-
className: (0,
|
|
4307
|
+
className: (0, import_cn21.cn)(
|
|
4150
4308
|
"group/command-item relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-lg! data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-selected:bg-muted data-selected:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-selected:*:[svg]:text-foreground",
|
|
4151
4309
|
className
|
|
4152
4310
|
),
|
|
4153
4311
|
...props,
|
|
4154
4312
|
children: [
|
|
4155
4313
|
children,
|
|
4156
|
-
/* @__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" })
|
|
4157
4315
|
]
|
|
4158
4316
|
}
|
|
4159
4317
|
);
|
|
@@ -4301,8 +4459,8 @@ var isEUCountry = (countryCode) => {
|
|
|
4301
4459
|
};
|
|
4302
4460
|
|
|
4303
4461
|
// src/components/country-select/CountrySelect.tsx
|
|
4304
|
-
var
|
|
4305
|
-
var CountrySelect =
|
|
4462
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
4463
|
+
var CountrySelect = React24.forwardRef(
|
|
4306
4464
|
({
|
|
4307
4465
|
value,
|
|
4308
4466
|
onValueChange,
|
|
@@ -4312,14 +4470,14 @@ var CountrySelect = React22.forwardRef(
|
|
|
4312
4470
|
align = "center",
|
|
4313
4471
|
sideOffset = 4
|
|
4314
4472
|
}, ref) => {
|
|
4315
|
-
const [open, setOpen] =
|
|
4316
|
-
const selectedCountry =
|
|
4317
|
-
return /* @__PURE__ */ (0,
|
|
4318
|
-
/* @__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)(
|
|
4319
4477
|
PopoverTrigger,
|
|
4320
4478
|
{
|
|
4321
4479
|
ref,
|
|
4322
|
-
render: /* @__PURE__ */ (0,
|
|
4480
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4323
4481
|
"button",
|
|
4324
4482
|
{
|
|
4325
4483
|
type: "button",
|
|
@@ -4341,16 +4499,16 @@ var CountrySelect = React22.forwardRef(
|
|
|
4341
4499
|
}
|
|
4342
4500
|
),
|
|
4343
4501
|
children: [
|
|
4344
|
-
/* @__PURE__ */ (0,
|
|
4345
|
-
/* @__PURE__ */ (0,
|
|
4346
|
-
/* @__PURE__ */ (0,
|
|
4347
|
-
/* @__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: [
|
|
4348
4506
|
"(",
|
|
4349
4507
|
selectedCountry.code,
|
|
4350
4508
|
")"
|
|
4351
4509
|
] })
|
|
4352
|
-
] }) : /* @__PURE__ */ (0,
|
|
4353
|
-
/* @__PURE__ */ (0,
|
|
4510
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_jsx_runtime46.Fragment, { children: [
|
|
4511
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4354
4512
|
Icon,
|
|
4355
4513
|
{
|
|
4356
4514
|
icon: import_lucide_react14.Globe,
|
|
@@ -4358,9 +4516,9 @@ var CountrySelect = React22.forwardRef(
|
|
|
4358
4516
|
className: "flex-shrink-0 text-berget-muted-foreground"
|
|
4359
4517
|
}
|
|
4360
4518
|
),
|
|
4361
|
-
/* @__PURE__ */ (0,
|
|
4519
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "text-berget-muted-foreground truncate", children: placeholder })
|
|
4362
4520
|
] }) }),
|
|
4363
|
-
/* @__PURE__ */ (0,
|
|
4521
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4364
4522
|
Icon,
|
|
4365
4523
|
{
|
|
4366
4524
|
icon: import_lucide_react14.ChevronDown,
|
|
@@ -4375,17 +4533,17 @@ var CountrySelect = React22.forwardRef(
|
|
|
4375
4533
|
]
|
|
4376
4534
|
}
|
|
4377
4535
|
),
|
|
4378
|
-
/* @__PURE__ */ (0,
|
|
4536
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4379
4537
|
PopoverContent,
|
|
4380
4538
|
{
|
|
4381
4539
|
align,
|
|
4382
4540
|
sideOffset,
|
|
4383
4541
|
className: "w-[var(--radix-popover-trigger-width)] p-0",
|
|
4384
|
-
children: /* @__PURE__ */ (0,
|
|
4385
|
-
/* @__PURE__ */ (0,
|
|
4386
|
-
/* @__PURE__ */ (0,
|
|
4387
|
-
/* @__PURE__ */ (0,
|
|
4388
|
-
/* @__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)(
|
|
4389
4547
|
CommandItem,
|
|
4390
4548
|
{
|
|
4391
4549
|
value: `${country.name} ${country.code}`,
|
|
@@ -4399,12 +4557,12 @@ var CountrySelect = React22.forwardRef(
|
|
|
4399
4557
|
value === country.code && "bg-berget-brand-granite-800/40"
|
|
4400
4558
|
),
|
|
4401
4559
|
children: [
|
|
4402
|
-
/* @__PURE__ */ (0,
|
|
4403
|
-
/* @__PURE__ */ (0,
|
|
4404
|
-
/* @__PURE__ */ (0,
|
|
4405
|
-
/* @__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 })
|
|
4406
4564
|
] }),
|
|
4407
|
-
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" })
|
|
4408
4566
|
]
|
|
4409
4567
|
},
|
|
4410
4568
|
country.code
|
|
@@ -4419,14 +4577,14 @@ var CountrySelect = React22.forwardRef(
|
|
|
4419
4577
|
CountrySelect.displayName = "CountrySelect";
|
|
4420
4578
|
|
|
4421
4579
|
// src/primitives/label.tsx
|
|
4422
|
-
var
|
|
4423
|
-
var
|
|
4580
|
+
var import_cn22 = require("cn");
|
|
4581
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
4424
4582
|
function Label({ className, ...props }) {
|
|
4425
|
-
return /* @__PURE__ */ (0,
|
|
4583
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4426
4584
|
"label",
|
|
4427
4585
|
{
|
|
4428
4586
|
"data-slot": "label",
|
|
4429
|
-
className: (0,
|
|
4587
|
+
className: (0, import_cn22.cn)(
|
|
4430
4588
|
"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
|
|
4431
4589
|
className
|
|
4432
4590
|
),
|
|
@@ -4437,15 +4595,15 @@ function Label({ className, ...props }) {
|
|
|
4437
4595
|
|
|
4438
4596
|
// src/primitives/field.tsx
|
|
4439
4597
|
var import_react = require("react");
|
|
4440
|
-
var
|
|
4441
|
-
var
|
|
4442
|
-
var
|
|
4598
|
+
var import_class_variance_authority15 = require("class-variance-authority");
|
|
4599
|
+
var import_cn23 = require("cn");
|
|
4600
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
4443
4601
|
function FieldSet({ className, ...props }) {
|
|
4444
|
-
return /* @__PURE__ */ (0,
|
|
4602
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
4445
4603
|
"fieldset",
|
|
4446
4604
|
{
|
|
4447
4605
|
"data-slot": "field-set",
|
|
4448
|
-
className: (0,
|
|
4606
|
+
className: (0, import_cn23.cn)(
|
|
4449
4607
|
"flex flex-col gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3",
|
|
4450
4608
|
className
|
|
4451
4609
|
),
|
|
@@ -4458,12 +4616,12 @@ function FieldLegend({
|
|
|
4458
4616
|
variant = "legend",
|
|
4459
4617
|
...props
|
|
4460
4618
|
}) {
|
|
4461
|
-
return /* @__PURE__ */ (0,
|
|
4619
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
4462
4620
|
"legend",
|
|
4463
4621
|
{
|
|
4464
4622
|
"data-slot": "field-legend",
|
|
4465
4623
|
"data-variant": variant,
|
|
4466
|
-
className: (0,
|
|
4624
|
+
className: (0, import_cn23.cn)(
|
|
4467
4625
|
"mb-1.5 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base",
|
|
4468
4626
|
className
|
|
4469
4627
|
),
|
|
@@ -4472,11 +4630,11 @@ function FieldLegend({
|
|
|
4472
4630
|
);
|
|
4473
4631
|
}
|
|
4474
4632
|
function FieldGroup({ className, ...props }) {
|
|
4475
|
-
return /* @__PURE__ */ (0,
|
|
4633
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
4476
4634
|
"div",
|
|
4477
4635
|
{
|
|
4478
4636
|
"data-slot": "field-group",
|
|
4479
|
-
className: (0,
|
|
4637
|
+
className: (0, import_cn23.cn)(
|
|
4480
4638
|
"group/field-group @container/field-group flex w-full flex-col gap-5 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4",
|
|
4481
4639
|
className
|
|
4482
4640
|
),
|
|
@@ -4484,7 +4642,7 @@ function FieldGroup({ className, ...props }) {
|
|
|
4484
4642
|
}
|
|
4485
4643
|
);
|
|
4486
4644
|
}
|
|
4487
|
-
var fieldVariants = (0,
|
|
4645
|
+
var fieldVariants = (0, import_class_variance_authority15.cva)(
|
|
4488
4646
|
"group/field flex w-full gap-2 data-[invalid=true]:text-destructive",
|
|
4489
4647
|
{
|
|
4490
4648
|
variants: {
|
|
@@ -4504,23 +4662,23 @@ function Field({
|
|
|
4504
4662
|
orientation = "vertical",
|
|
4505
4663
|
...props
|
|
4506
4664
|
}) {
|
|
4507
|
-
return /* @__PURE__ */ (0,
|
|
4665
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
4508
4666
|
"div",
|
|
4509
4667
|
{
|
|
4510
4668
|
role: "group",
|
|
4511
4669
|
"data-slot": "field",
|
|
4512
4670
|
"data-orientation": orientation,
|
|
4513
|
-
className: (0,
|
|
4671
|
+
className: (0, import_cn23.cn)(fieldVariants({ orientation }), className),
|
|
4514
4672
|
...props
|
|
4515
4673
|
}
|
|
4516
4674
|
);
|
|
4517
4675
|
}
|
|
4518
4676
|
function FieldContent({ className, ...props }) {
|
|
4519
|
-
return /* @__PURE__ */ (0,
|
|
4677
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
4520
4678
|
"div",
|
|
4521
4679
|
{
|
|
4522
4680
|
"data-slot": "field-content",
|
|
4523
|
-
className: (0,
|
|
4681
|
+
className: (0, import_cn23.cn)(
|
|
4524
4682
|
"group/field-content flex flex-1 flex-col gap-0.5 leading-snug",
|
|
4525
4683
|
className
|
|
4526
4684
|
),
|
|
@@ -4532,11 +4690,11 @@ function FieldLabel({
|
|
|
4532
4690
|
className,
|
|
4533
4691
|
...props
|
|
4534
4692
|
}) {
|
|
4535
|
-
return /* @__PURE__ */ (0,
|
|
4693
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
4536
4694
|
Label,
|
|
4537
4695
|
{
|
|
4538
4696
|
"data-slot": "field-label",
|
|
4539
|
-
className: (0,
|
|
4697
|
+
className: (0, import_cn23.cn)(
|
|
4540
4698
|
"group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border has-[>[data-slot=field]]:not-has-[:disabled,[data-disabled]]:hover:bg-muted/50 has-[>[data-slot=field]]:has-[:focus-visible]:border-ring has-[>[data-slot=field]]:has-[:focus-visible]:ring-3 has-[>[data-slot=field]]:has-[:focus-visible]:ring-ring/50 *:data-[slot=field]:p-2.5 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10",
|
|
4541
4699
|
"has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col",
|
|
4542
4700
|
className
|
|
@@ -4546,11 +4704,11 @@ function FieldLabel({
|
|
|
4546
4704
|
);
|
|
4547
4705
|
}
|
|
4548
4706
|
function FieldTitle({ className, ...props }) {
|
|
4549
|
-
return /* @__PURE__ */ (0,
|
|
4707
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
4550
4708
|
"div",
|
|
4551
4709
|
{
|
|
4552
4710
|
"data-slot": "field-label",
|
|
4553
|
-
className: (0,
|
|
4711
|
+
className: (0, import_cn23.cn)(
|
|
4554
4712
|
"flex w-fit items-center gap-2 text-sm font-medium group-data-[disabled=true]/field:opacity-50",
|
|
4555
4713
|
className
|
|
4556
4714
|
),
|
|
@@ -4559,11 +4717,11 @@ function FieldTitle({ className, ...props }) {
|
|
|
4559
4717
|
);
|
|
4560
4718
|
}
|
|
4561
4719
|
function FieldDescription({ className, ...props }) {
|
|
4562
|
-
return /* @__PURE__ */ (0,
|
|
4720
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
4563
4721
|
"p",
|
|
4564
4722
|
{
|
|
4565
4723
|
"data-slot": "field-description",
|
|
4566
|
-
className: (0,
|
|
4724
|
+
className: (0, import_cn23.cn)(
|
|
4567
4725
|
"text-left text-sm leading-normal font-normal text-muted-foreground group-has-data-horizontal/field:text-balance [[data-variant=legend]+&]:-mt-1.5",
|
|
4568
4726
|
"last:mt-0 nth-last-2:-mt-1",
|
|
4569
4727
|
"[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",
|
|
@@ -4578,19 +4736,19 @@ function FieldSeparator({
|
|
|
4578
4736
|
className,
|
|
4579
4737
|
...props
|
|
4580
4738
|
}) {
|
|
4581
|
-
return /* @__PURE__ */ (0,
|
|
4739
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
4582
4740
|
"div",
|
|
4583
4741
|
{
|
|
4584
4742
|
"data-slot": "field-separator",
|
|
4585
4743
|
"data-content": !!children,
|
|
4586
|
-
className: (0,
|
|
4744
|
+
className: (0, import_cn23.cn)(
|
|
4587
4745
|
"relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2",
|
|
4588
4746
|
className
|
|
4589
4747
|
),
|
|
4590
4748
|
...props,
|
|
4591
4749
|
children: [
|
|
4592
|
-
/* @__PURE__ */ (0,
|
|
4593
|
-
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)(
|
|
4594
4752
|
"span",
|
|
4595
4753
|
{
|
|
4596
4754
|
className: "relative mx-auto block w-fit bg-background px-2 text-muted-foreground",
|
|
@@ -4621,19 +4779,19 @@ function FieldError({
|
|
|
4621
4779
|
if (uniqueErrors?.length == 1) {
|
|
4622
4780
|
return uniqueErrors[0]?.message;
|
|
4623
4781
|
}
|
|
4624
|
-
return /* @__PURE__ */ (0,
|
|
4625
|
-
(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)
|
|
4626
4784
|
) });
|
|
4627
4785
|
}, [children, errors]);
|
|
4628
4786
|
if (!content) {
|
|
4629
4787
|
return null;
|
|
4630
4788
|
}
|
|
4631
|
-
return /* @__PURE__ */ (0,
|
|
4789
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
4632
4790
|
"div",
|
|
4633
4791
|
{
|
|
4634
4792
|
role: "alert",
|
|
4635
4793
|
"data-slot": "field-error",
|
|
4636
|
-
className: (0,
|
|
4794
|
+
className: (0, import_cn23.cn)("text-sm font-normal text-destructive", className),
|
|
4637
4795
|
...props,
|
|
4638
4796
|
children: content
|
|
4639
4797
|
}
|
|
@@ -4641,11 +4799,11 @@ function FieldError({
|
|
|
4641
4799
|
}
|
|
4642
4800
|
|
|
4643
4801
|
// src/components/link/Link.tsx
|
|
4644
|
-
var
|
|
4645
|
-
var
|
|
4802
|
+
var React25 = __toESM(require("react"), 1);
|
|
4803
|
+
var import_class_variance_authority16 = require("class-variance-authority");
|
|
4646
4804
|
var import_lucide_react15 = require("lucide-react");
|
|
4647
|
-
var
|
|
4648
|
-
var linkVariants = (0,
|
|
4805
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
4806
|
+
var linkVariants = (0, import_class_variance_authority16.cva)(
|
|
4649
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",
|
|
4650
4808
|
{
|
|
4651
4809
|
variants: {
|
|
@@ -4669,7 +4827,7 @@ var linkVariants = (0, import_class_variance_authority15.cva)(
|
|
|
4669
4827
|
}
|
|
4670
4828
|
}
|
|
4671
4829
|
);
|
|
4672
|
-
var Link =
|
|
4830
|
+
var Link = React25.forwardRef(
|
|
4673
4831
|
({
|
|
4674
4832
|
className,
|
|
4675
4833
|
variant,
|
|
@@ -4682,7 +4840,7 @@ var Link = React23.forwardRef(
|
|
|
4682
4840
|
...props
|
|
4683
4841
|
}, ref) => {
|
|
4684
4842
|
const isExternal = external || typeof props.href === "string" && (props.href.startsWith("http://") || props.href.startsWith("https://") || props.href.startsWith("mailto:") || props.href.startsWith("tel:"));
|
|
4685
|
-
return /* @__PURE__ */ (0,
|
|
4843
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
4686
4844
|
"a",
|
|
4687
4845
|
{
|
|
4688
4846
|
ref,
|
|
@@ -4698,8 +4856,8 @@ var Link = React23.forwardRef(
|
|
|
4698
4856
|
},
|
|
4699
4857
|
children: [
|
|
4700
4858
|
children,
|
|
4701
|
-
icon && /* @__PURE__ */ (0,
|
|
4702
|
-
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 }) })
|
|
4703
4861
|
]
|
|
4704
4862
|
}
|
|
4705
4863
|
);
|
|
@@ -4708,11 +4866,11 @@ var Link = React23.forwardRef(
|
|
|
4708
4866
|
Link.displayName = "Link";
|
|
4709
4867
|
|
|
4710
4868
|
// src/components/container/Container.tsx
|
|
4711
|
-
var
|
|
4869
|
+
var React26 = __toESM(require("react"), 1);
|
|
4712
4870
|
var import_merge_props3 = require("@base-ui/react/merge-props");
|
|
4713
4871
|
var import_use_render3 = require("@base-ui/react/use-render");
|
|
4714
|
-
var
|
|
4715
|
-
var containerVariants = (0,
|
|
4872
|
+
var import_class_variance_authority17 = require("class-variance-authority");
|
|
4873
|
+
var containerVariants = (0, import_class_variance_authority17.cva)("w-full mx-auto", {
|
|
4716
4874
|
variants: {
|
|
4717
4875
|
size: {
|
|
4718
4876
|
sm: "max-w-3xl",
|
|
@@ -4733,7 +4891,7 @@ var containerVariants = (0, import_class_variance_authority16.cva)("w-full mx-au
|
|
|
4733
4891
|
padding: "md"
|
|
4734
4892
|
}
|
|
4735
4893
|
});
|
|
4736
|
-
var Container =
|
|
4894
|
+
var Container = React26.forwardRef(
|
|
4737
4895
|
({ className, size, padding, asChild = false, children, ...props }, ref) => {
|
|
4738
4896
|
return (0, import_use_render3.useRender)({
|
|
4739
4897
|
ref,
|
|
@@ -4752,11 +4910,11 @@ var Container = React24.forwardRef(
|
|
|
4752
4910
|
Container.displayName = "Container";
|
|
4753
4911
|
|
|
4754
4912
|
// src/components/grid/Grid.tsx
|
|
4755
|
-
var
|
|
4756
|
-
var
|
|
4913
|
+
var React27 = __toESM(require("react"), 1);
|
|
4914
|
+
var import_class_variance_authority18 = require("class-variance-authority");
|
|
4757
4915
|
var import_merge_props4 = require("@base-ui/react/merge-props");
|
|
4758
4916
|
var import_use_render4 = require("@base-ui/react/use-render");
|
|
4759
|
-
var gridVariants = (0,
|
|
4917
|
+
var gridVariants = (0, import_class_variance_authority18.cva)("grid", {
|
|
4760
4918
|
variants: {
|
|
4761
4919
|
align: {
|
|
4762
4920
|
start: "items-start",
|
|
@@ -4778,7 +4936,7 @@ var gridVariants = (0, import_class_variance_authority17.cva)("grid", {
|
|
|
4778
4936
|
justify: "start"
|
|
4779
4937
|
}
|
|
4780
4938
|
});
|
|
4781
|
-
var Grid =
|
|
4939
|
+
var Grid = React27.forwardRef(
|
|
4782
4940
|
({ className, align, justify, cols, rows, gap, gapX, gapY, asChild = false, children, ...props }, ref) => {
|
|
4783
4941
|
return (0, import_use_render4.useRender)({
|
|
4784
4942
|
ref,
|
|
@@ -4805,11 +4963,11 @@ var Grid = React25.forwardRef(
|
|
|
4805
4963
|
Grid.displayName = "Grid";
|
|
4806
4964
|
|
|
4807
4965
|
// src/components/box/Box.tsx
|
|
4808
|
-
var
|
|
4809
|
-
var
|
|
4966
|
+
var React28 = __toESM(require("react"), 1);
|
|
4967
|
+
var import_class_variance_authority19 = require("class-variance-authority");
|
|
4810
4968
|
var import_merge_props5 = require("@base-ui/react/merge-props");
|
|
4811
4969
|
var import_use_render5 = require("@base-ui/react/use-render");
|
|
4812
|
-
var boxVariants = (0,
|
|
4970
|
+
var boxVariants = (0, import_class_variance_authority19.cva)("flex", {
|
|
4813
4971
|
variants: {
|
|
4814
4972
|
direction: {
|
|
4815
4973
|
row: "flex-row",
|
|
@@ -4845,7 +5003,7 @@ var boxVariants = (0, import_class_variance_authority18.cva)("flex", {
|
|
|
4845
5003
|
wrap: "nowrap"
|
|
4846
5004
|
}
|
|
4847
5005
|
});
|
|
4848
|
-
var Box =
|
|
5006
|
+
var Box = React28.forwardRef(
|
|
4849
5007
|
({ className, direction, align, justify, wrap, gap, asChild = false, children, ...props }, ref) => {
|
|
4850
5008
|
return (0, import_use_render5.useRender)({
|
|
4851
5009
|
ref,
|
|
@@ -4868,22 +5026,22 @@ var Box = React26.forwardRef(
|
|
|
4868
5026
|
Box.displayName = "Box";
|
|
4869
5027
|
|
|
4870
5028
|
// src/components/language-select/LanguageSelect.tsx
|
|
4871
|
-
var
|
|
5029
|
+
var React29 = __toESM(require("react"), 1);
|
|
4872
5030
|
var import_lucide_react16 = require("lucide-react");
|
|
4873
|
-
var
|
|
4874
|
-
var LanguageSelect =
|
|
5031
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
5032
|
+
var LanguageSelect = React29.forwardRef(
|
|
4875
5033
|
({ className, options, value, onValueChange }, ref) => {
|
|
4876
|
-
return /* @__PURE__ */ (0,
|
|
4877
|
-
/* @__PURE__ */ (0,
|
|
4878
|
-
/* @__PURE__ */ (0,
|
|
4879
|
-
/* @__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 })
|
|
4880
5038
|
] }) }),
|
|
4881
|
-
/* @__PURE__ */ (0,
|
|
5039
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DropdownMenuContent2, { align: "start", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
4882
5040
|
DropdownMenuRadioGroup,
|
|
4883
5041
|
{
|
|
4884
5042
|
value,
|
|
4885
5043
|
onValueChange: onValueChange ? (v) => onValueChange(v) : void 0,
|
|
4886
|
-
children: options.map((option) => /* @__PURE__ */ (0,
|
|
5044
|
+
children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
4887
5045
|
DropdownMenuRadioItem2,
|
|
4888
5046
|
{
|
|
4889
5047
|
value: option.value,
|
|
@@ -4901,13 +5059,13 @@ var LanguageSelect = React27.forwardRef(
|
|
|
4901
5059
|
LanguageSelect.displayName = "LanguageSelect";
|
|
4902
5060
|
|
|
4903
5061
|
// src/components/list/List.tsx
|
|
4904
|
-
var
|
|
5062
|
+
var React31 = __toESM(require("react"), 1);
|
|
4905
5063
|
|
|
4906
5064
|
// src/components/divider/Divider.tsx
|
|
4907
|
-
var
|
|
4908
|
-
var
|
|
4909
|
-
var
|
|
4910
|
-
var dividerVariants = (0,
|
|
5065
|
+
var React30 = __toESM(require("react"), 1);
|
|
5066
|
+
var import_class_variance_authority20 = require("class-variance-authority");
|
|
5067
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
5068
|
+
var dividerVariants = (0, import_class_variance_authority20.cva)("", {
|
|
4911
5069
|
variants: {
|
|
4912
5070
|
variant: {
|
|
4913
5071
|
default: "bg-berget-separator",
|
|
@@ -4927,7 +5085,7 @@ var dividerVariants = (0, import_class_variance_authority19.cva)("", {
|
|
|
4927
5085
|
size: "thin"
|
|
4928
5086
|
}
|
|
4929
5087
|
});
|
|
4930
|
-
var Divider =
|
|
5088
|
+
var Divider = React30.forwardRef(
|
|
4931
5089
|
({
|
|
4932
5090
|
className,
|
|
4933
5091
|
orientation = "horizontal",
|
|
@@ -4938,16 +5096,16 @@ var Divider = React28.forwardRef(
|
|
|
4938
5096
|
...props
|
|
4939
5097
|
}, ref) => {
|
|
4940
5098
|
if (label) {
|
|
4941
|
-
return /* @__PURE__ */ (0,
|
|
4942
|
-
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)(
|
|
4943
5101
|
Separator,
|
|
4944
5102
|
{
|
|
4945
5103
|
orientation: "horizontal",
|
|
4946
5104
|
className: cn(dividerVariants({ variant, size }), "flex-1")
|
|
4947
5105
|
}
|
|
4948
5106
|
),
|
|
4949
|
-
/* @__PURE__ */ (0,
|
|
4950
|
-
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)(
|
|
4951
5109
|
Separator,
|
|
4952
5110
|
{
|
|
4953
5111
|
orientation: "horizontal",
|
|
@@ -4956,7 +5114,7 @@ var Divider = React28.forwardRef(
|
|
|
4956
5114
|
)
|
|
4957
5115
|
] });
|
|
4958
5116
|
}
|
|
4959
|
-
return /* @__PURE__ */ (0,
|
|
5117
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
4960
5118
|
Separator,
|
|
4961
5119
|
{
|
|
4962
5120
|
ref,
|
|
@@ -4974,19 +5132,19 @@ Divider.displayName = "Divider";
|
|
|
4974
5132
|
|
|
4975
5133
|
// src/components/list/List.tsx
|
|
4976
5134
|
var import_lucide_react17 = require("lucide-react");
|
|
4977
|
-
var
|
|
4978
|
-
var List =
|
|
5135
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
5136
|
+
var List = React31.forwardRef(
|
|
4979
5137
|
({ className, children, ...props }, ref) => {
|
|
4980
|
-
const childrenArray =
|
|
4981
|
-
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: [
|
|
4982
5140
|
child,
|
|
4983
|
-
index < childrenArray.length - 1 && /* @__PURE__ */ (0,
|
|
5141
|
+
index < childrenArray.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Divider, { variant: "subtle" })
|
|
4984
5142
|
] }, index)) });
|
|
4985
5143
|
}
|
|
4986
5144
|
);
|
|
4987
5145
|
List.displayName = "List";
|
|
4988
|
-
var ListItem =
|
|
4989
|
-
({ 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)(
|
|
4990
5148
|
"div",
|
|
4991
5149
|
{
|
|
4992
5150
|
ref,
|
|
@@ -4997,15 +5155,15 @@ var ListItem = React29.forwardRef(
|
|
|
4997
5155
|
),
|
|
4998
5156
|
...props,
|
|
4999
5157
|
children: [
|
|
5000
|
-
icon && /* @__PURE__ */ (0,
|
|
5001
|
-
/* @__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 })
|
|
5002
5160
|
]
|
|
5003
5161
|
}
|
|
5004
5162
|
)
|
|
5005
5163
|
);
|
|
5006
5164
|
ListItem.displayName = "ListItem";
|
|
5007
|
-
var ListHeader =
|
|
5008
|
-
({ className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5165
|
+
var ListHeader = React31.forwardRef(
|
|
5166
|
+
({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
5009
5167
|
"div",
|
|
5010
5168
|
{
|
|
5011
5169
|
ref,
|
|
@@ -5016,11 +5174,11 @@ var ListHeader = React29.forwardRef(
|
|
|
5016
5174
|
)
|
|
5017
5175
|
);
|
|
5018
5176
|
ListHeader.displayName = "ListHeader";
|
|
5019
|
-
var FeatureList =
|
|
5177
|
+
var FeatureList = React31.forwardRef(
|
|
5020
5178
|
({ items, variant = "bullet", className, ...props }, ref) => {
|
|
5021
|
-
return /* @__PURE__ */ (0,
|
|
5022
|
-
variant === "bullet" ? /* @__PURE__ */ (0,
|
|
5023
|
-
/* @__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 })
|
|
5024
5182
|
] }, index)) });
|
|
5025
5183
|
}
|
|
5026
5184
|
);
|
|
@@ -5069,7 +5227,7 @@ function getHighlighter() {
|
|
|
5069
5227
|
}
|
|
5070
5228
|
|
|
5071
5229
|
// src/components/code-block/CodeBlock.tsx
|
|
5072
|
-
var
|
|
5230
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
5073
5231
|
function CodeBlock({ code, language = "text", title, className }) {
|
|
5074
5232
|
const [html, setHtml] = (0, import_react2.useState)(null);
|
|
5075
5233
|
const [copied, setCopied] = (0, import_react2.useState)(false);
|
|
@@ -5085,16 +5243,16 @@ function CodeBlock({ code, language = "text", title, className }) {
|
|
|
5085
5243
|
setCopied(true);
|
|
5086
5244
|
setTimeout(() => setCopied(false), 2e3);
|
|
5087
5245
|
}, [code]);
|
|
5088
|
-
const copyButton = /* @__PURE__ */ (0,
|
|
5246
|
+
const copyButton = /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5089
5247
|
"button",
|
|
5090
5248
|
{
|
|
5091
5249
|
onClick: handleCopy,
|
|
5092
5250
|
className: "flex items-center justify-center w-6 h-6 text-berget-muted-foreground hover:text-berget-foreground transition-colors",
|
|
5093
5251
|
"aria-label": "Copy code",
|
|
5094
|
-
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" })
|
|
5095
5253
|
}
|
|
5096
5254
|
);
|
|
5097
|
-
return /* @__PURE__ */ (0,
|
|
5255
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
5098
5256
|
"div",
|
|
5099
5257
|
{
|
|
5100
5258
|
className: cn(
|
|
@@ -5102,25 +5260,25 @@ function CodeBlock({ code, language = "text", title, className }) {
|
|
|
5102
5260
|
className
|
|
5103
5261
|
),
|
|
5104
5262
|
children: [
|
|
5105
|
-
title && /* @__PURE__ */ (0,
|
|
5106
|
-
/* @__PURE__ */ (0,
|
|
5107
|
-
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)(
|
|
5108
5266
|
"div",
|
|
5109
5267
|
{
|
|
5110
5268
|
className: "[&_.shiki]:!p-4 [&_.shiki]:!m-0 [&_.shiki]:overflow-x-auto [&_.shiki]:!text-sm [&_.shiki]:!leading-relaxed [&_.shiki]:bg-transparent",
|
|
5111
5269
|
dangerouslySetInnerHTML: { __html: html }
|
|
5112
5270
|
}
|
|
5113
|
-
) : /* @__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 }) })
|
|
5114
5272
|
]
|
|
5115
5273
|
}
|
|
5116
5274
|
);
|
|
5117
5275
|
}
|
|
5118
5276
|
|
|
5119
5277
|
// src/components/window-frame/WindowFrame.tsx
|
|
5120
|
-
var
|
|
5278
|
+
var React32 = __toESM(require("react"), 1);
|
|
5121
5279
|
var import_react3 = require("react");
|
|
5122
|
-
var
|
|
5123
|
-
var WindowFrame =
|
|
5280
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
5281
|
+
var WindowFrame = React32.forwardRef(
|
|
5124
5282
|
({ title = "window", tabs, activeTab, onTabChange, children, className, ...props }, ref) => {
|
|
5125
5283
|
const [internalActive, setInternalActive] = (0, import_react3.useState)(tabs?.[0]?.id ?? "");
|
|
5126
5284
|
const currentTab = activeTab ?? internalActive;
|
|
@@ -5131,7 +5289,7 @@ var WindowFrame = React30.forwardRef(
|
|
|
5131
5289
|
setInternalActive(id);
|
|
5132
5290
|
}
|
|
5133
5291
|
};
|
|
5134
|
-
return /* @__PURE__ */ (0,
|
|
5292
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
5135
5293
|
"div",
|
|
5136
5294
|
{
|
|
5137
5295
|
ref,
|
|
@@ -5141,13 +5299,13 @@ var WindowFrame = React30.forwardRef(
|
|
|
5141
5299
|
),
|
|
5142
5300
|
...props,
|
|
5143
5301
|
children: [
|
|
5144
|
-
/* @__PURE__ */ (0,
|
|
5145
|
-
/* @__PURE__ */ (0,
|
|
5146
|
-
/* @__PURE__ */ (0,
|
|
5147
|
-
/* @__PURE__ */ (0,
|
|
5148
|
-
/* @__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" })
|
|
5149
5307
|
] }),
|
|
5150
|
-
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)(
|
|
5151
5309
|
"button",
|
|
5152
5310
|
{
|
|
5153
5311
|
type: "button",
|
|
@@ -5159,9 +5317,9 @@ var WindowFrame = React30.forwardRef(
|
|
|
5159
5317
|
children: tab.label
|
|
5160
5318
|
},
|
|
5161
5319
|
tab.id
|
|
5162
|
-
)) }) : /* @__PURE__ */ (0,
|
|
5320
|
+
)) }) : /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "ml-4 text-sm font-mono text-berget-brand-moss-400", children: title })
|
|
5163
5321
|
] }),
|
|
5164
|
-
/* @__PURE__ */ (0,
|
|
5322
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { children })
|
|
5165
5323
|
]
|
|
5166
5324
|
}
|
|
5167
5325
|
);
|
|
@@ -5171,7 +5329,7 @@ WindowFrame.displayName = "WindowFrame";
|
|
|
5171
5329
|
|
|
5172
5330
|
// src/components/fog-illustration/FogIllustration.tsx
|
|
5173
5331
|
var import_react4 = require("react");
|
|
5174
|
-
var
|
|
5332
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
5175
5333
|
var FOG_BRAND_PALETTE = {
|
|
5176
5334
|
ink: "#171a1a",
|
|
5177
5335
|
milk: "#f7f5ed",
|
|
@@ -5484,7 +5642,7 @@ var FogIllustration = ({ palette, speed = 1, className }) => {
|
|
|
5484
5642
|
gl.deleteFramebuffer(fbo);
|
|
5485
5643
|
};
|
|
5486
5644
|
}, []);
|
|
5487
|
-
return /* @__PURE__ */ (0,
|
|
5645
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("canvas", { ref, "aria-hidden": "true", className: cn("size-full", className) });
|
|
5488
5646
|
};
|
|
5489
5647
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5490
5648
|
0 && (module.exports = {
|
|
@@ -5544,6 +5702,12 @@ var FogIllustration = ({ palette, speed = 1, className }) => {
|
|
|
5544
5702
|
DropdownMenuSubTrigger,
|
|
5545
5703
|
DropdownMenuTrigger,
|
|
5546
5704
|
EU_COUNTRY_CODES,
|
|
5705
|
+
Empty,
|
|
5706
|
+
EmptyContent,
|
|
5707
|
+
EmptyDescription,
|
|
5708
|
+
EmptyHeader,
|
|
5709
|
+
EmptyMedia,
|
|
5710
|
+
EmptyTitle,
|
|
5547
5711
|
FOG_BRAND_PALETTE,
|
|
5548
5712
|
FeatureList,
|
|
5549
5713
|
Field,
|
|
@@ -5622,6 +5786,7 @@ var FogIllustration = ({ palette, speed = 1, className }) => {
|
|
|
5622
5786
|
SidebarRail,
|
|
5623
5787
|
SidebarSeparator,
|
|
5624
5788
|
SidebarTrigger,
|
|
5789
|
+
Skeleton,
|
|
5625
5790
|
Switch,
|
|
5626
5791
|
Table,
|
|
5627
5792
|
TableBody,
|