@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.js
CHANGED
|
@@ -1091,19 +1091,43 @@ var Alert2 = React10.forwardRef(
|
|
|
1091
1091
|
);
|
|
1092
1092
|
Alert2.displayName = "Alert";
|
|
1093
1093
|
|
|
1094
|
-
// src/components/
|
|
1094
|
+
// src/components/skeleton/Skeleton.tsx
|
|
1095
1095
|
import * as React11 from "react";
|
|
1096
|
+
|
|
1097
|
+
// src/primitives/skeleton.tsx
|
|
1098
|
+
import { cn as cn5 } from "cn";
|
|
1099
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
1100
|
+
function Skeleton({ className, ...props }) {
|
|
1101
|
+
return /* @__PURE__ */ jsx14(
|
|
1102
|
+
"div",
|
|
1103
|
+
{
|
|
1104
|
+
"data-slot": "skeleton",
|
|
1105
|
+
className: cn5("animate-pulse rounded-md bg-muted", className),
|
|
1106
|
+
...props
|
|
1107
|
+
}
|
|
1108
|
+
);
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
// src/components/skeleton/Skeleton.tsx
|
|
1112
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
1113
|
+
var Skeleton2 = React11.forwardRef(({ className, ...props }, ref) => {
|
|
1114
|
+
return /* @__PURE__ */ jsx15(Skeleton, { ref, className: cn("bg-berget-surface-02", className), ...props });
|
|
1115
|
+
});
|
|
1116
|
+
Skeleton2.displayName = "Skeleton";
|
|
1117
|
+
|
|
1118
|
+
// src/components/dialog/Dialog.tsx
|
|
1119
|
+
import * as React12 from "react";
|
|
1096
1120
|
import { Dialog as DialogPrimitive } from "@base-ui/react/dialog";
|
|
1097
1121
|
import { X } from "lucide-react";
|
|
1098
|
-
import { jsx as
|
|
1122
|
+
import { jsx as jsx16, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1099
1123
|
var Dialog = DialogPrimitive.Root;
|
|
1100
|
-
var DialogTrigger =
|
|
1101
|
-
({ asChild, children, ...props }, ref) => /* @__PURE__ */
|
|
1124
|
+
var DialogTrigger = React12.forwardRef(
|
|
1125
|
+
({ asChild, children, ...props }, ref) => /* @__PURE__ */ jsx16(DialogPrimitive.Trigger, { ref, render: asChildRender(asChild, children), ...props, children: asChild ? void 0 : children })
|
|
1102
1126
|
);
|
|
1103
1127
|
DialogTrigger.displayName = "DialogTrigger";
|
|
1104
1128
|
var DialogPortal = DialogPrimitive.Portal;
|
|
1105
1129
|
var DialogClose = DialogPrimitive.Close;
|
|
1106
|
-
var DialogOverlay =
|
|
1130
|
+
var DialogOverlay = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
1107
1131
|
DialogPrimitive.Backdrop,
|
|
1108
1132
|
{
|
|
1109
1133
|
ref,
|
|
@@ -1115,8 +1139,8 @@ var DialogOverlay = React11.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1115
1139
|
}
|
|
1116
1140
|
));
|
|
1117
1141
|
DialogOverlay.displayName = "DialogOverlay";
|
|
1118
|
-
var DialogContent =
|
|
1119
|
-
/* @__PURE__ */
|
|
1142
|
+
var DialogContent = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs6(DialogPortal, { children: [
|
|
1143
|
+
/* @__PURE__ */ jsx16(DialogOverlay, {}),
|
|
1120
1144
|
/* @__PURE__ */ jsxs6(
|
|
1121
1145
|
DialogPrimitive.Popup,
|
|
1122
1146
|
{
|
|
@@ -1129,17 +1153,17 @@ var DialogContent = React11.forwardRef(({ className, children, ...props }, ref)
|
|
|
1129
1153
|
children: [
|
|
1130
1154
|
children,
|
|
1131
1155
|
/* @__PURE__ */ jsxs6(DialogPrimitive.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: [
|
|
1132
|
-
/* @__PURE__ */
|
|
1133
|
-
/* @__PURE__ */
|
|
1156
|
+
/* @__PURE__ */ jsx16(X, { className: "size-4" }),
|
|
1157
|
+
/* @__PURE__ */ jsx16("span", { className: "sr-only", children: "Close" })
|
|
1134
1158
|
] })
|
|
1135
1159
|
]
|
|
1136
1160
|
}
|
|
1137
1161
|
)
|
|
1138
1162
|
] }));
|
|
1139
1163
|
DialogContent.displayName = "DialogContent";
|
|
1140
|
-
var DialogHeader = ({ className, ...props }) => /* @__PURE__ */
|
|
1164
|
+
var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsx16("div", { className: cn("flex flex-col gap-1.5 text-center sm:text-left", className), ...props });
|
|
1141
1165
|
DialogHeader.displayName = "DialogHeader";
|
|
1142
|
-
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */
|
|
1166
|
+
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx16(
|
|
1143
1167
|
"div",
|
|
1144
1168
|
{
|
|
1145
1169
|
className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
@@ -1147,21 +1171,21 @@ var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx14(
|
|
|
1147
1171
|
}
|
|
1148
1172
|
);
|
|
1149
1173
|
DialogFooter.displayName = "DialogFooter";
|
|
1150
|
-
var DialogTitle =
|
|
1174
|
+
var DialogTitle = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
1151
1175
|
DialogPrimitive.Title,
|
|
1152
1176
|
{
|
|
1153
1177
|
ref,
|
|
1154
|
-
render: /* @__PURE__ */
|
|
1178
|
+
render: /* @__PURE__ */ jsx16(Typography, { variant: "h5", color: "default", as: "h2", className }),
|
|
1155
1179
|
...props,
|
|
1156
1180
|
children
|
|
1157
1181
|
}
|
|
1158
1182
|
));
|
|
1159
1183
|
DialogTitle.displayName = "DialogTitle";
|
|
1160
|
-
var DialogDescription =
|
|
1184
|
+
var DialogDescription = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
1161
1185
|
DialogPrimitive.Description,
|
|
1162
1186
|
{
|
|
1163
1187
|
ref,
|
|
1164
|
-
render: /* @__PURE__ */
|
|
1188
|
+
render: /* @__PURE__ */ jsx16(Typography, { variant: "small", color: "muted", className }),
|
|
1165
1189
|
...props,
|
|
1166
1190
|
children
|
|
1167
1191
|
}
|
|
@@ -1169,16 +1193,16 @@ var DialogDescription = React11.forwardRef(({ className, children, ...props }, r
|
|
|
1169
1193
|
DialogDescription.displayName = "DialogDescription";
|
|
1170
1194
|
|
|
1171
1195
|
// src/components/alert-dialog/AlertDialog.tsx
|
|
1172
|
-
import * as
|
|
1196
|
+
import * as React13 from "react";
|
|
1173
1197
|
import { AlertDialog as AlertDialogPrimitive } from "@base-ui/react/alert-dialog";
|
|
1174
|
-
import { jsx as
|
|
1198
|
+
import { jsx as jsx17, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1175
1199
|
var AlertDialog = AlertDialogPrimitive.Root;
|
|
1176
|
-
var AlertDialogTrigger =
|
|
1177
|
-
({ asChild, children, ...props }, ref) => /* @__PURE__ */
|
|
1200
|
+
var AlertDialogTrigger = React13.forwardRef(
|
|
1201
|
+
({ asChild, children, ...props }, ref) => /* @__PURE__ */ jsx17(AlertDialogPrimitive.Trigger, { ref, render: asChildRender(asChild, children), ...props, children: asChild ? void 0 : children })
|
|
1178
1202
|
);
|
|
1179
1203
|
AlertDialogTrigger.displayName = "AlertDialogTrigger";
|
|
1180
1204
|
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
1181
|
-
var AlertDialogOverlay =
|
|
1205
|
+
var AlertDialogOverlay = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx17(
|
|
1182
1206
|
AlertDialogPrimitive.Backdrop,
|
|
1183
1207
|
{
|
|
1184
1208
|
ref,
|
|
@@ -1190,9 +1214,9 @@ var AlertDialogOverlay = React12.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1190
1214
|
}
|
|
1191
1215
|
));
|
|
1192
1216
|
AlertDialogOverlay.displayName = "AlertDialogOverlay";
|
|
1193
|
-
var AlertDialogContent =
|
|
1194
|
-
/* @__PURE__ */
|
|
1195
|
-
/* @__PURE__ */
|
|
1217
|
+
var AlertDialogContent = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs7(AlertDialogPortal, { children: [
|
|
1218
|
+
/* @__PURE__ */ jsx17(AlertDialogOverlay, {}),
|
|
1219
|
+
/* @__PURE__ */ jsx17(
|
|
1196
1220
|
AlertDialogPrimitive.Popup,
|
|
1197
1221
|
{
|
|
1198
1222
|
ref,
|
|
@@ -1205,9 +1229,9 @@ var AlertDialogContent = React12.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1205
1229
|
)
|
|
1206
1230
|
] }));
|
|
1207
1231
|
AlertDialogContent.displayName = "AlertDialogContent";
|
|
1208
|
-
var AlertDialogHeader = ({ className, ...props }) => /* @__PURE__ */
|
|
1232
|
+
var AlertDialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsx17("div", { className: cn("flex flex-col gap-1.5 text-center sm:text-left", className), ...props });
|
|
1209
1233
|
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
1210
|
-
var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */
|
|
1234
|
+
var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx17(
|
|
1211
1235
|
"div",
|
|
1212
1236
|
{
|
|
1213
1237
|
className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
@@ -1215,27 +1239,27 @@ var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx15(
|
|
|
1215
1239
|
}
|
|
1216
1240
|
);
|
|
1217
1241
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
1218
|
-
var AlertDialogTitle =
|
|
1242
|
+
var AlertDialogTitle = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx17(
|
|
1219
1243
|
AlertDialogPrimitive.Title,
|
|
1220
1244
|
{
|
|
1221
1245
|
ref,
|
|
1222
|
-
render: /* @__PURE__ */
|
|
1246
|
+
render: /* @__PURE__ */ jsx17(Typography, { variant: "h5", color: "default", as: "h2", className }),
|
|
1223
1247
|
...props,
|
|
1224
1248
|
children
|
|
1225
1249
|
}
|
|
1226
1250
|
));
|
|
1227
1251
|
AlertDialogTitle.displayName = "AlertDialogTitle";
|
|
1228
|
-
var AlertDialogDescription =
|
|
1252
|
+
var AlertDialogDescription = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx17(
|
|
1229
1253
|
AlertDialogPrimitive.Description,
|
|
1230
1254
|
{
|
|
1231
1255
|
ref,
|
|
1232
|
-
render: /* @__PURE__ */
|
|
1256
|
+
render: /* @__PURE__ */ jsx17(Typography, { variant: "small", color: "muted", className }),
|
|
1233
1257
|
...props,
|
|
1234
1258
|
children
|
|
1235
1259
|
}
|
|
1236
1260
|
));
|
|
1237
1261
|
AlertDialogDescription.displayName = "AlertDialogDescription";
|
|
1238
|
-
var AlertDialogAction =
|
|
1262
|
+
var AlertDialogAction = React13.forwardRef(({ className, asChild, children, ...props }, ref) => /* @__PURE__ */ jsx17(
|
|
1239
1263
|
AlertDialogPrimitive.Close,
|
|
1240
1264
|
{
|
|
1241
1265
|
ref,
|
|
@@ -1246,7 +1270,7 @@ var AlertDialogAction = React12.forwardRef(({ className, asChild, children, ...p
|
|
|
1246
1270
|
}
|
|
1247
1271
|
));
|
|
1248
1272
|
AlertDialogAction.displayName = "AlertDialogAction";
|
|
1249
|
-
var AlertDialogCancel =
|
|
1273
|
+
var AlertDialogCancel = React13.forwardRef(({ className, asChild, children, ...props }, ref) => /* @__PURE__ */ jsx17(
|
|
1250
1274
|
AlertDialogPrimitive.Close,
|
|
1251
1275
|
{
|
|
1252
1276
|
ref,
|
|
@@ -1259,21 +1283,21 @@ var AlertDialogCancel = React12.forwardRef(({ className, asChild, children, ...p
|
|
|
1259
1283
|
AlertDialogCancel.displayName = "AlertDialogCancel";
|
|
1260
1284
|
|
|
1261
1285
|
// src/components/dropdown-menu/DropdownMenu.tsx
|
|
1262
|
-
import * as
|
|
1286
|
+
import * as React14 from "react";
|
|
1263
1287
|
|
|
1264
1288
|
// src/primitives/dropdown-menu.tsx
|
|
1265
1289
|
import { Menu as MenuPrimitive } from "@base-ui/react/menu";
|
|
1266
|
-
import { cn as
|
|
1290
|
+
import { cn as cn6 } from "cn";
|
|
1267
1291
|
import { ChevronRightIcon, CheckIcon } from "lucide-react";
|
|
1268
|
-
import { jsx as
|
|
1292
|
+
import { jsx as jsx18, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1269
1293
|
function DropdownMenu({ ...props }) {
|
|
1270
|
-
return /* @__PURE__ */
|
|
1294
|
+
return /* @__PURE__ */ jsx18(MenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
|
|
1271
1295
|
}
|
|
1272
1296
|
function DropdownMenuPortal({ ...props }) {
|
|
1273
|
-
return /* @__PURE__ */
|
|
1297
|
+
return /* @__PURE__ */ jsx18(MenuPrimitive.Portal, { "data-slot": "dropdown-menu-portal", ...props });
|
|
1274
1298
|
}
|
|
1275
1299
|
function DropdownMenuTrigger({ ...props }) {
|
|
1276
|
-
return /* @__PURE__ */
|
|
1300
|
+
return /* @__PURE__ */ jsx18(MenuPrimitive.Trigger, { "data-slot": "dropdown-menu-trigger", ...props });
|
|
1277
1301
|
}
|
|
1278
1302
|
function DropdownMenuContent({
|
|
1279
1303
|
align = "start",
|
|
@@ -1283,7 +1307,7 @@ function DropdownMenuContent({
|
|
|
1283
1307
|
className,
|
|
1284
1308
|
...props
|
|
1285
1309
|
}) {
|
|
1286
|
-
return /* @__PURE__ */
|
|
1310
|
+
return /* @__PURE__ */ jsx18(MenuPrimitive.Portal, { children: /* @__PURE__ */ jsx18(
|
|
1287
1311
|
MenuPrimitive.Positioner,
|
|
1288
1312
|
{
|
|
1289
1313
|
className: "isolate z-50 outline-none",
|
|
@@ -1291,11 +1315,11 @@ function DropdownMenuContent({
|
|
|
1291
1315
|
alignOffset,
|
|
1292
1316
|
side,
|
|
1293
1317
|
sideOffset,
|
|
1294
|
-
children: /* @__PURE__ */
|
|
1318
|
+
children: /* @__PURE__ */ jsx18(
|
|
1295
1319
|
MenuPrimitive.Popup,
|
|
1296
1320
|
{
|
|
1297
1321
|
"data-slot": "dropdown-menu-content",
|
|
1298
|
-
className:
|
|
1322
|
+
className: cn6("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),
|
|
1299
1323
|
...props
|
|
1300
1324
|
}
|
|
1301
1325
|
)
|
|
@@ -1303,19 +1327,19 @@ function DropdownMenuContent({
|
|
|
1303
1327
|
) });
|
|
1304
1328
|
}
|
|
1305
1329
|
function DropdownMenuGroup({ ...props }) {
|
|
1306
|
-
return /* @__PURE__ */
|
|
1330
|
+
return /* @__PURE__ */ jsx18(MenuPrimitive.Group, { "data-slot": "dropdown-menu-group", ...props });
|
|
1307
1331
|
}
|
|
1308
1332
|
function DropdownMenuLabel({
|
|
1309
1333
|
className,
|
|
1310
1334
|
inset,
|
|
1311
1335
|
...props
|
|
1312
1336
|
}) {
|
|
1313
|
-
return /* @__PURE__ */
|
|
1337
|
+
return /* @__PURE__ */ jsx18(
|
|
1314
1338
|
MenuPrimitive.GroupLabel,
|
|
1315
1339
|
{
|
|
1316
1340
|
"data-slot": "dropdown-menu-label",
|
|
1317
1341
|
"data-inset": inset,
|
|
1318
|
-
className:
|
|
1342
|
+
className: cn6(
|
|
1319
1343
|
"px-1.5 py-1 text-xs font-medium text-muted-foreground data-inset:pl-7",
|
|
1320
1344
|
className
|
|
1321
1345
|
),
|
|
@@ -1329,13 +1353,13 @@ function DropdownMenuItem({
|
|
|
1329
1353
|
variant = "default",
|
|
1330
1354
|
...props
|
|
1331
1355
|
}) {
|
|
1332
|
-
return /* @__PURE__ */
|
|
1356
|
+
return /* @__PURE__ */ jsx18(
|
|
1333
1357
|
MenuPrimitive.Item,
|
|
1334
1358
|
{
|
|
1335
1359
|
"data-slot": "dropdown-menu-item",
|
|
1336
1360
|
"data-inset": inset,
|
|
1337
1361
|
"data-variant": variant,
|
|
1338
|
-
className:
|
|
1362
|
+
className: cn6(
|
|
1339
1363
|
"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",
|
|
1340
1364
|
className
|
|
1341
1365
|
),
|
|
@@ -1344,7 +1368,7 @@ function DropdownMenuItem({
|
|
|
1344
1368
|
);
|
|
1345
1369
|
}
|
|
1346
1370
|
function DropdownMenuSub({ ...props }) {
|
|
1347
|
-
return /* @__PURE__ */
|
|
1371
|
+
return /* @__PURE__ */ jsx18(MenuPrimitive.SubmenuRoot, { "data-slot": "dropdown-menu-sub", ...props });
|
|
1348
1372
|
}
|
|
1349
1373
|
function DropdownMenuSubTrigger({
|
|
1350
1374
|
className,
|
|
@@ -1357,14 +1381,14 @@ function DropdownMenuSubTrigger({
|
|
|
1357
1381
|
{
|
|
1358
1382
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
1359
1383
|
"data-inset": inset,
|
|
1360
|
-
className:
|
|
1384
|
+
className: cn6(
|
|
1361
1385
|
"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",
|
|
1362
1386
|
className
|
|
1363
1387
|
),
|
|
1364
1388
|
...props,
|
|
1365
1389
|
children: [
|
|
1366
1390
|
children,
|
|
1367
|
-
/* @__PURE__ */
|
|
1391
|
+
/* @__PURE__ */ jsx18(ChevronRightIcon, { className: "ml-auto" })
|
|
1368
1392
|
]
|
|
1369
1393
|
}
|
|
1370
1394
|
);
|
|
@@ -1377,11 +1401,11 @@ function DropdownMenuSubContent({
|
|
|
1377
1401
|
className,
|
|
1378
1402
|
...props
|
|
1379
1403
|
}) {
|
|
1380
|
-
return /* @__PURE__ */
|
|
1404
|
+
return /* @__PURE__ */ jsx18(
|
|
1381
1405
|
DropdownMenuContent,
|
|
1382
1406
|
{
|
|
1383
1407
|
"data-slot": "dropdown-menu-sub-content",
|
|
1384
|
-
className:
|
|
1408
|
+
className: cn6("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),
|
|
1385
1409
|
align,
|
|
1386
1410
|
alignOffset,
|
|
1387
1411
|
side,
|
|
@@ -1402,19 +1426,19 @@ function DropdownMenuCheckboxItem({
|
|
|
1402
1426
|
{
|
|
1403
1427
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
1404
1428
|
"data-inset": inset,
|
|
1405
|
-
className:
|
|
1429
|
+
className: cn6(
|
|
1406
1430
|
"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",
|
|
1407
1431
|
className
|
|
1408
1432
|
),
|
|
1409
1433
|
checked,
|
|
1410
1434
|
...props,
|
|
1411
1435
|
children: [
|
|
1412
|
-
/* @__PURE__ */
|
|
1436
|
+
/* @__PURE__ */ jsx18(
|
|
1413
1437
|
"span",
|
|
1414
1438
|
{
|
|
1415
1439
|
className: "pointer-events-none absolute right-2 flex items-center justify-center",
|
|
1416
1440
|
"data-slot": "dropdown-menu-checkbox-item-indicator",
|
|
1417
|
-
children: /* @__PURE__ */
|
|
1441
|
+
children: /* @__PURE__ */ jsx18(MenuPrimitive.CheckboxItemIndicator, { children: /* @__PURE__ */ jsx18(
|
|
1418
1442
|
CheckIcon,
|
|
1419
1443
|
{}
|
|
1420
1444
|
) })
|
|
@@ -1426,7 +1450,7 @@ function DropdownMenuCheckboxItem({
|
|
|
1426
1450
|
);
|
|
1427
1451
|
}
|
|
1428
1452
|
function DropdownMenuRadioGroup({ ...props }) {
|
|
1429
|
-
return /* @__PURE__ */
|
|
1453
|
+
return /* @__PURE__ */ jsx18(
|
|
1430
1454
|
MenuPrimitive.RadioGroup,
|
|
1431
1455
|
{
|
|
1432
1456
|
"data-slot": "dropdown-menu-radio-group",
|
|
@@ -1445,18 +1469,18 @@ function DropdownMenuRadioItem({
|
|
|
1445
1469
|
{
|
|
1446
1470
|
"data-slot": "dropdown-menu-radio-item",
|
|
1447
1471
|
"data-inset": inset,
|
|
1448
|
-
className:
|
|
1472
|
+
className: cn6(
|
|
1449
1473
|
"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",
|
|
1450
1474
|
className
|
|
1451
1475
|
),
|
|
1452
1476
|
...props,
|
|
1453
1477
|
children: [
|
|
1454
|
-
/* @__PURE__ */
|
|
1478
|
+
/* @__PURE__ */ jsx18(
|
|
1455
1479
|
"span",
|
|
1456
1480
|
{
|
|
1457
1481
|
className: "pointer-events-none absolute right-2 flex items-center justify-center",
|
|
1458
1482
|
"data-slot": "dropdown-menu-radio-item-indicator",
|
|
1459
|
-
children: /* @__PURE__ */
|
|
1483
|
+
children: /* @__PURE__ */ jsx18(MenuPrimitive.RadioItemIndicator, { children: /* @__PURE__ */ jsx18(
|
|
1460
1484
|
CheckIcon,
|
|
1461
1485
|
{}
|
|
1462
1486
|
) })
|
|
@@ -1471,11 +1495,11 @@ function DropdownMenuSeparator({
|
|
|
1471
1495
|
className,
|
|
1472
1496
|
...props
|
|
1473
1497
|
}) {
|
|
1474
|
-
return /* @__PURE__ */
|
|
1498
|
+
return /* @__PURE__ */ jsx18(
|
|
1475
1499
|
MenuPrimitive.Separator,
|
|
1476
1500
|
{
|
|
1477
1501
|
"data-slot": "dropdown-menu-separator",
|
|
1478
|
-
className:
|
|
1502
|
+
className: cn6("-mx-1 my-1 h-px bg-border", className),
|
|
1479
1503
|
...props
|
|
1480
1504
|
}
|
|
1481
1505
|
);
|
|
@@ -1484,11 +1508,11 @@ function DropdownMenuShortcut({
|
|
|
1484
1508
|
className,
|
|
1485
1509
|
...props
|
|
1486
1510
|
}) {
|
|
1487
|
-
return /* @__PURE__ */
|
|
1511
|
+
return /* @__PURE__ */ jsx18(
|
|
1488
1512
|
"span",
|
|
1489
1513
|
{
|
|
1490
1514
|
"data-slot": "dropdown-menu-shortcut",
|
|
1491
|
-
className:
|
|
1515
|
+
className: cn6(
|
|
1492
1516
|
"ml-auto text-xs tracking-widest text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground",
|
|
1493
1517
|
className
|
|
1494
1518
|
),
|
|
@@ -1498,13 +1522,13 @@ function DropdownMenuShortcut({
|
|
|
1498
1522
|
}
|
|
1499
1523
|
|
|
1500
1524
|
// src/components/dropdown-menu/DropdownMenu.tsx
|
|
1501
|
-
import { jsx as
|
|
1502
|
-
var DropdownMenuTrigger2 =
|
|
1503
|
-
({ asChild, children, ...props }, ref) => /* @__PURE__ */
|
|
1525
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
1526
|
+
var DropdownMenuTrigger2 = React14.forwardRef(
|
|
1527
|
+
({ asChild, children, ...props }, ref) => /* @__PURE__ */ jsx19(DropdownMenuTrigger, { ref, render: asChildRender(asChild, children), ...props, children: asChild ? void 0 : children })
|
|
1504
1528
|
);
|
|
1505
1529
|
DropdownMenuTrigger2.displayName = "DropdownMenuTrigger";
|
|
1506
|
-
var DropdownMenuSubTrigger2 =
|
|
1507
|
-
({ className, inset, asChild, children, ...props }, ref) => /* @__PURE__ */
|
|
1530
|
+
var DropdownMenuSubTrigger2 = React14.forwardRef(
|
|
1531
|
+
({ className, inset, asChild, children, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
1508
1532
|
DropdownMenuSubTrigger,
|
|
1509
1533
|
{
|
|
1510
1534
|
ref,
|
|
@@ -1521,8 +1545,8 @@ var DropdownMenuSubTrigger2 = React13.forwardRef(
|
|
|
1521
1545
|
)
|
|
1522
1546
|
);
|
|
1523
1547
|
DropdownMenuSubTrigger2.displayName = "DropdownMenuSubTrigger";
|
|
1524
|
-
var DropdownMenuSubContent2 =
|
|
1525
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
1548
|
+
var DropdownMenuSubContent2 = React14.forwardRef(
|
|
1549
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
1526
1550
|
DropdownMenuSubContent,
|
|
1527
1551
|
{
|
|
1528
1552
|
ref,
|
|
@@ -1535,8 +1559,8 @@ var DropdownMenuSubContent2 = React13.forwardRef(
|
|
|
1535
1559
|
)
|
|
1536
1560
|
);
|
|
1537
1561
|
DropdownMenuSubContent2.displayName = "DropdownMenuSubContent";
|
|
1538
|
-
var DropdownMenuContent2 =
|
|
1539
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
1562
|
+
var DropdownMenuContent2 = React14.forwardRef(
|
|
1563
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
1540
1564
|
DropdownMenuContent,
|
|
1541
1565
|
{
|
|
1542
1566
|
ref,
|
|
@@ -1549,8 +1573,8 @@ var DropdownMenuContent2 = React13.forwardRef(
|
|
|
1549
1573
|
)
|
|
1550
1574
|
);
|
|
1551
1575
|
DropdownMenuContent2.displayName = "DropdownMenuContent";
|
|
1552
|
-
var DropdownMenuItem2 =
|
|
1553
|
-
({ className, inset, asChild, children, textValue, ...props }, ref) => /* @__PURE__ */
|
|
1576
|
+
var DropdownMenuItem2 = React14.forwardRef(
|
|
1577
|
+
({ className, inset, asChild, children, textValue, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
1554
1578
|
DropdownMenuItem,
|
|
1555
1579
|
{
|
|
1556
1580
|
ref,
|
|
@@ -1568,8 +1592,8 @@ var DropdownMenuItem2 = React13.forwardRef(
|
|
|
1568
1592
|
)
|
|
1569
1593
|
);
|
|
1570
1594
|
DropdownMenuItem2.displayName = "DropdownMenuItem";
|
|
1571
|
-
var DropdownMenuCheckboxItem2 =
|
|
1572
|
-
({ className, children, asChild, textValue, ...props }, ref) => /* @__PURE__ */
|
|
1595
|
+
var DropdownMenuCheckboxItem2 = React14.forwardRef(
|
|
1596
|
+
({ className, children, asChild, textValue, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
1573
1597
|
DropdownMenuCheckboxItem,
|
|
1574
1598
|
{
|
|
1575
1599
|
ref,
|
|
@@ -1582,8 +1606,8 @@ var DropdownMenuCheckboxItem2 = React13.forwardRef(
|
|
|
1582
1606
|
)
|
|
1583
1607
|
);
|
|
1584
1608
|
DropdownMenuCheckboxItem2.displayName = "DropdownMenuCheckboxItem";
|
|
1585
|
-
var DropdownMenuRadioItem2 =
|
|
1586
|
-
({ className, children, asChild, textValue, ...props }, ref) => /* @__PURE__ */
|
|
1609
|
+
var DropdownMenuRadioItem2 = React14.forwardRef(
|
|
1610
|
+
({ className, children, asChild, textValue, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
1587
1611
|
DropdownMenuRadioItem,
|
|
1588
1612
|
{
|
|
1589
1613
|
ref,
|
|
@@ -1596,8 +1620,8 @@ var DropdownMenuRadioItem2 = React13.forwardRef(
|
|
|
1596
1620
|
)
|
|
1597
1621
|
);
|
|
1598
1622
|
DropdownMenuRadioItem2.displayName = "DropdownMenuRadioItem";
|
|
1599
|
-
var DropdownMenuLabel2 =
|
|
1600
|
-
({ className, inset, asChild, children, ...props }, ref) => /* @__PURE__ */
|
|
1623
|
+
var DropdownMenuLabel2 = React14.forwardRef(
|
|
1624
|
+
({ className, inset, asChild, children, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
1601
1625
|
DropdownMenuLabel,
|
|
1602
1626
|
{
|
|
1603
1627
|
ref,
|
|
@@ -1613,8 +1637,8 @@ var DropdownMenuLabel2 = React13.forwardRef(
|
|
|
1613
1637
|
)
|
|
1614
1638
|
);
|
|
1615
1639
|
DropdownMenuLabel2.displayName = "DropdownMenuLabel";
|
|
1616
|
-
var DropdownMenuSeparator2 =
|
|
1617
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
1640
|
+
var DropdownMenuSeparator2 = React14.forwardRef(
|
|
1641
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
1618
1642
|
DropdownMenuSeparator,
|
|
1619
1643
|
{
|
|
1620
1644
|
ref,
|
|
@@ -1625,7 +1649,7 @@ var DropdownMenuSeparator2 = React13.forwardRef(
|
|
|
1625
1649
|
);
|
|
1626
1650
|
DropdownMenuSeparator2.displayName = "DropdownMenuSeparator";
|
|
1627
1651
|
var DropdownMenuShortcut2 = ({ className, ...props }) => {
|
|
1628
|
-
return /* @__PURE__ */
|
|
1652
|
+
return /* @__PURE__ */ jsx19(
|
|
1629
1653
|
DropdownMenuShortcut,
|
|
1630
1654
|
{
|
|
1631
1655
|
className: cn("text-berget-muted-foreground", className),
|
|
@@ -1636,17 +1660,17 @@ var DropdownMenuShortcut2 = ({ className, ...props }) => {
|
|
|
1636
1660
|
DropdownMenuShortcut2.displayName = "DropdownMenuShortcut";
|
|
1637
1661
|
|
|
1638
1662
|
// src/components/tooltip/Tooltip.tsx
|
|
1639
|
-
import * as
|
|
1663
|
+
import * as React15 from "react";
|
|
1640
1664
|
|
|
1641
1665
|
// src/primitives/tooltip.tsx
|
|
1642
1666
|
import { Tooltip as TooltipPrimitive } from "@base-ui/react/tooltip";
|
|
1643
|
-
import { cn as
|
|
1644
|
-
import { jsx as
|
|
1667
|
+
import { cn as cn7 } from "cn";
|
|
1668
|
+
import { jsx as jsx20, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1645
1669
|
function TooltipProvider({
|
|
1646
1670
|
delay = 0,
|
|
1647
1671
|
...props
|
|
1648
1672
|
}) {
|
|
1649
|
-
return /* @__PURE__ */
|
|
1673
|
+
return /* @__PURE__ */ jsx20(
|
|
1650
1674
|
TooltipPrimitive.Provider,
|
|
1651
1675
|
{
|
|
1652
1676
|
"data-slot": "tooltip-provider",
|
|
@@ -1656,10 +1680,10 @@ function TooltipProvider({
|
|
|
1656
1680
|
);
|
|
1657
1681
|
}
|
|
1658
1682
|
function Tooltip({ ...props }) {
|
|
1659
|
-
return /* @__PURE__ */
|
|
1683
|
+
return /* @__PURE__ */ jsx20(TooltipPrimitive.Root, { "data-slot": "tooltip", ...props });
|
|
1660
1684
|
}
|
|
1661
1685
|
function TooltipTrigger({ ...props }) {
|
|
1662
|
-
return /* @__PURE__ */
|
|
1686
|
+
return /* @__PURE__ */ jsx20(TooltipPrimitive.Trigger, { "data-slot": "tooltip-trigger", ...props });
|
|
1663
1687
|
}
|
|
1664
1688
|
function TooltipContent({
|
|
1665
1689
|
className,
|
|
@@ -1670,7 +1694,7 @@ function TooltipContent({
|
|
|
1670
1694
|
children,
|
|
1671
1695
|
...props
|
|
1672
1696
|
}) {
|
|
1673
|
-
return /* @__PURE__ */
|
|
1697
|
+
return /* @__PURE__ */ jsx20(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsx20(
|
|
1674
1698
|
TooltipPrimitive.Positioner,
|
|
1675
1699
|
{
|
|
1676
1700
|
align,
|
|
@@ -1682,14 +1706,14 @@ function TooltipContent({
|
|
|
1682
1706
|
TooltipPrimitive.Popup,
|
|
1683
1707
|
{
|
|
1684
1708
|
"data-slot": "tooltip-content",
|
|
1685
|
-
className:
|
|
1709
|
+
className: cn7(
|
|
1686
1710
|
"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",
|
|
1687
1711
|
className
|
|
1688
1712
|
),
|
|
1689
1713
|
...props,
|
|
1690
1714
|
children: [
|
|
1691
1715
|
children,
|
|
1692
|
-
/* @__PURE__ */
|
|
1716
|
+
/* @__PURE__ */ jsx20(TooltipPrimitive.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" })
|
|
1693
1717
|
]
|
|
1694
1718
|
}
|
|
1695
1719
|
)
|
|
@@ -1698,13 +1722,13 @@ function TooltipContent({
|
|
|
1698
1722
|
}
|
|
1699
1723
|
|
|
1700
1724
|
// src/components/tooltip/Tooltip.tsx
|
|
1701
|
-
import { jsx as
|
|
1702
|
-
var TooltipTrigger2 =
|
|
1703
|
-
({ asChild, children, ...props }, ref) => /* @__PURE__ */
|
|
1725
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
1726
|
+
var TooltipTrigger2 = React15.forwardRef(
|
|
1727
|
+
({ asChild, children, ...props }, ref) => /* @__PURE__ */ jsx21(TooltipTrigger, { ref, render: asChildRender(asChild, children), ...props, children: asChild ? void 0 : children })
|
|
1704
1728
|
);
|
|
1705
1729
|
TooltipTrigger2.displayName = "TooltipTrigger";
|
|
1706
|
-
var TooltipContent2 =
|
|
1707
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
1730
|
+
var TooltipContent2 = React15.forwardRef(
|
|
1731
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
1708
1732
|
TooltipContent,
|
|
1709
1733
|
{
|
|
1710
1734
|
ref,
|
|
@@ -1723,18 +1747,18 @@ import { ChevronDown } from "lucide-react";
|
|
|
1723
1747
|
// src/primitives/navigation-menu.tsx
|
|
1724
1748
|
import { NavigationMenu as NavigationMenuPrimitive } from "@base-ui/react/navigation-menu";
|
|
1725
1749
|
import { cva as cva7 } from "class-variance-authority";
|
|
1726
|
-
import { cn as
|
|
1750
|
+
import { cn as cn8 } from "cn";
|
|
1727
1751
|
import { ChevronDownIcon } from "lucide-react";
|
|
1728
|
-
import { jsx as
|
|
1752
|
+
import { jsx as jsx22, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1729
1753
|
function NavigationMenuList({
|
|
1730
1754
|
className,
|
|
1731
1755
|
...props
|
|
1732
1756
|
}) {
|
|
1733
|
-
return /* @__PURE__ */
|
|
1757
|
+
return /* @__PURE__ */ jsx22(
|
|
1734
1758
|
NavigationMenuPrimitive.List,
|
|
1735
1759
|
{
|
|
1736
1760
|
"data-slot": "navigation-menu-list",
|
|
1737
|
-
className:
|
|
1761
|
+
className: cn8(
|
|
1738
1762
|
"group flex flex-1 list-none items-center justify-center gap-0",
|
|
1739
1763
|
className
|
|
1740
1764
|
),
|
|
@@ -1746,11 +1770,11 @@ function NavigationMenuItem({
|
|
|
1746
1770
|
className,
|
|
1747
1771
|
...props
|
|
1748
1772
|
}) {
|
|
1749
|
-
return /* @__PURE__ */
|
|
1773
|
+
return /* @__PURE__ */ jsx22(
|
|
1750
1774
|
NavigationMenuPrimitive.Item,
|
|
1751
1775
|
{
|
|
1752
1776
|
"data-slot": "navigation-menu-item",
|
|
1753
|
-
className:
|
|
1777
|
+
className: cn8("relative", className),
|
|
1754
1778
|
...props
|
|
1755
1779
|
}
|
|
1756
1780
|
);
|
|
@@ -1762,11 +1786,11 @@ function NavigationMenuContent({
|
|
|
1762
1786
|
className,
|
|
1763
1787
|
...props
|
|
1764
1788
|
}) {
|
|
1765
|
-
return /* @__PURE__ */
|
|
1789
|
+
return /* @__PURE__ */ jsx22(
|
|
1766
1790
|
NavigationMenuPrimitive.Content,
|
|
1767
1791
|
{
|
|
1768
1792
|
"data-slot": "navigation-menu-content",
|
|
1769
|
-
className:
|
|
1793
|
+
className: cn8(
|
|
1770
1794
|
"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",
|
|
1771
1795
|
className
|
|
1772
1796
|
),
|
|
@@ -1778,22 +1802,22 @@ function NavigationMenuIndicator({
|
|
|
1778
1802
|
className,
|
|
1779
1803
|
...props
|
|
1780
1804
|
}) {
|
|
1781
|
-
return /* @__PURE__ */
|
|
1805
|
+
return /* @__PURE__ */ jsx22(
|
|
1782
1806
|
NavigationMenuPrimitive.Icon,
|
|
1783
1807
|
{
|
|
1784
1808
|
"data-slot": "navigation-menu-indicator",
|
|
1785
|
-
className:
|
|
1809
|
+
className: cn8(
|
|
1786
1810
|
"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",
|
|
1787
1811
|
className
|
|
1788
1812
|
),
|
|
1789
1813
|
...props,
|
|
1790
|
-
children: /* @__PURE__ */
|
|
1814
|
+
children: /* @__PURE__ */ jsx22("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
1791
1815
|
}
|
|
1792
1816
|
);
|
|
1793
1817
|
}
|
|
1794
1818
|
|
|
1795
1819
|
// src/components/navigation-menu/NavigationMenu.tsx
|
|
1796
|
-
import { jsx as
|
|
1820
|
+
import { jsx as jsx23, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1797
1821
|
function NavigationMenu({
|
|
1798
1822
|
align = "start",
|
|
1799
1823
|
className,
|
|
@@ -1811,7 +1835,7 @@ function NavigationMenu({
|
|
|
1811
1835
|
...props,
|
|
1812
1836
|
children: [
|
|
1813
1837
|
children,
|
|
1814
|
-
/* @__PURE__ */
|
|
1838
|
+
/* @__PURE__ */ jsx23(NavigationMenuPositioner, { align })
|
|
1815
1839
|
]
|
|
1816
1840
|
}
|
|
1817
1841
|
);
|
|
@@ -1833,7 +1857,7 @@ function NavigationMenuTrigger({
|
|
|
1833
1857
|
children: [
|
|
1834
1858
|
children,
|
|
1835
1859
|
" ",
|
|
1836
|
-
/* @__PURE__ */
|
|
1860
|
+
/* @__PURE__ */ jsx23(
|
|
1837
1861
|
ChevronDown,
|
|
1838
1862
|
{
|
|
1839
1863
|
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",
|
|
@@ -1845,7 +1869,7 @@ function NavigationMenuTrigger({
|
|
|
1845
1869
|
);
|
|
1846
1870
|
}
|
|
1847
1871
|
function NavigationMenuLink({ className, ...props }) {
|
|
1848
|
-
return /* @__PURE__ */
|
|
1872
|
+
return /* @__PURE__ */ jsx23(
|
|
1849
1873
|
NavigationMenuPrimitive2.Link,
|
|
1850
1874
|
{
|
|
1851
1875
|
"data-slot": "navigation-menu-link",
|
|
@@ -1865,7 +1889,7 @@ function NavigationMenuPositioner({
|
|
|
1865
1889
|
alignOffset = 0,
|
|
1866
1890
|
...props
|
|
1867
1891
|
}) {
|
|
1868
|
-
return /* @__PURE__ */
|
|
1892
|
+
return /* @__PURE__ */ jsx23(NavigationMenuPrimitive2.Portal, { children: /* @__PURE__ */ jsx23(
|
|
1869
1893
|
NavigationMenuPrimitive2.Positioner,
|
|
1870
1894
|
{
|
|
1871
1895
|
side,
|
|
@@ -1877,24 +1901,24 @@ function NavigationMenuPositioner({
|
|
|
1877
1901
|
className
|
|
1878
1902
|
),
|
|
1879
1903
|
...props,
|
|
1880
|
-
children: /* @__PURE__ */
|
|
1904
|
+
children: /* @__PURE__ */ jsx23(NavigationMenuPrimitive2.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__ */ jsx23(NavigationMenuPrimitive2.Viewport, { className: "relative size-full overflow-hidden" }) })
|
|
1881
1905
|
}
|
|
1882
1906
|
) });
|
|
1883
1907
|
}
|
|
1884
1908
|
|
|
1885
1909
|
// src/primitives/sidebar.tsx
|
|
1886
|
-
import * as
|
|
1910
|
+
import * as React17 from "react";
|
|
1887
1911
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
1888
1912
|
import { useRender } from "@base-ui/react/use-render";
|
|
1889
1913
|
import { cva as cva9 } from "class-variance-authority";
|
|
1890
1914
|
import { cn as cn12 } from "cn";
|
|
1891
1915
|
|
|
1892
1916
|
// src/hooks/use-mobile.tsx
|
|
1893
|
-
import * as
|
|
1917
|
+
import * as React16 from "react";
|
|
1894
1918
|
var MOBILE_BREAKPOINT = 768;
|
|
1895
1919
|
function useIsMobile() {
|
|
1896
|
-
const [isMobile, setIsMobile] =
|
|
1897
|
-
|
|
1920
|
+
const [isMobile, setIsMobile] = React16.useState(void 0);
|
|
1921
|
+
React16.useEffect(() => {
|
|
1898
1922
|
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
1899
1923
|
const onChange = () => {
|
|
1900
1924
|
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
@@ -1908,15 +1932,15 @@ function useIsMobile() {
|
|
|
1908
1932
|
|
|
1909
1933
|
// src/primitives/input.tsx
|
|
1910
1934
|
import { Input as InputPrimitive } from "@base-ui/react/input";
|
|
1911
|
-
import { cn as
|
|
1912
|
-
import { jsx as
|
|
1935
|
+
import { cn as cn9 } from "cn";
|
|
1936
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
1913
1937
|
function Input({ className, type, ...props }) {
|
|
1914
|
-
return /* @__PURE__ */
|
|
1938
|
+
return /* @__PURE__ */ jsx24(
|
|
1915
1939
|
InputPrimitive,
|
|
1916
1940
|
{
|
|
1917
1941
|
type,
|
|
1918
1942
|
"data-slot": "input",
|
|
1919
|
-
className:
|
|
1943
|
+
className: cn9(
|
|
1920
1944
|
"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",
|
|
1921
1945
|
className
|
|
1922
1946
|
),
|
|
@@ -1927,19 +1951,19 @@ function Input({ className, type, ...props }) {
|
|
|
1927
1951
|
|
|
1928
1952
|
// src/primitives/separator.tsx
|
|
1929
1953
|
import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
|
|
1930
|
-
import { cn as
|
|
1931
|
-
import { jsx as
|
|
1954
|
+
import { cn as cn10 } from "cn";
|
|
1955
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
1932
1956
|
function Separator({
|
|
1933
1957
|
className,
|
|
1934
1958
|
orientation = "horizontal",
|
|
1935
1959
|
...props
|
|
1936
1960
|
}) {
|
|
1937
|
-
return /* @__PURE__ */
|
|
1961
|
+
return /* @__PURE__ */ jsx25(
|
|
1938
1962
|
SeparatorPrimitive,
|
|
1939
1963
|
{
|
|
1940
1964
|
"data-slot": "separator",
|
|
1941
1965
|
orientation,
|
|
1942
|
-
className:
|
|
1966
|
+
className: cn10(
|
|
1943
1967
|
"shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch",
|
|
1944
1968
|
className
|
|
1945
1969
|
),
|
|
@@ -1950,21 +1974,21 @@ function Separator({
|
|
|
1950
1974
|
|
|
1951
1975
|
// src/primitives/sheet.tsx
|
|
1952
1976
|
import { Dialog as SheetPrimitive } from "@base-ui/react/dialog";
|
|
1953
|
-
import { cn as
|
|
1977
|
+
import { cn as cn11 } from "cn";
|
|
1954
1978
|
import { XIcon } from "lucide-react";
|
|
1955
|
-
import { jsx as
|
|
1979
|
+
import { jsx as jsx26, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1956
1980
|
function Sheet({ ...props }) {
|
|
1957
|
-
return /* @__PURE__ */
|
|
1981
|
+
return /* @__PURE__ */ jsx26(SheetPrimitive.Root, { "data-slot": "sheet", ...props });
|
|
1958
1982
|
}
|
|
1959
1983
|
function SheetPortal({ ...props }) {
|
|
1960
|
-
return /* @__PURE__ */
|
|
1984
|
+
return /* @__PURE__ */ jsx26(SheetPrimitive.Portal, { "data-slot": "sheet-portal", ...props });
|
|
1961
1985
|
}
|
|
1962
1986
|
function SheetOverlay({ className, ...props }) {
|
|
1963
|
-
return /* @__PURE__ */
|
|
1987
|
+
return /* @__PURE__ */ jsx26(
|
|
1964
1988
|
SheetPrimitive.Backdrop,
|
|
1965
1989
|
{
|
|
1966
1990
|
"data-slot": "sheet-overlay",
|
|
1967
|
-
className:
|
|
1991
|
+
className: cn11(
|
|
1968
1992
|
"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",
|
|
1969
1993
|
className
|
|
1970
1994
|
),
|
|
@@ -1980,13 +2004,13 @@ function SheetContent({
|
|
|
1980
2004
|
...props
|
|
1981
2005
|
}) {
|
|
1982
2006
|
return /* @__PURE__ */ jsxs12(SheetPortal, { children: [
|
|
1983
|
-
/* @__PURE__ */
|
|
2007
|
+
/* @__PURE__ */ jsx26(SheetOverlay, {}),
|
|
1984
2008
|
/* @__PURE__ */ jsxs12(
|
|
1985
2009
|
SheetPrimitive.Popup,
|
|
1986
2010
|
{
|
|
1987
2011
|
"data-slot": "sheet-content",
|
|
1988
2012
|
"data-side": side,
|
|
1989
|
-
className:
|
|
2013
|
+
className: cn11(
|
|
1990
2014
|
"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",
|
|
1991
2015
|
className
|
|
1992
2016
|
),
|
|
@@ -1997,7 +2021,7 @@ function SheetContent({
|
|
|
1997
2021
|
SheetPrimitive.Close,
|
|
1998
2022
|
{
|
|
1999
2023
|
"data-slot": "sheet-close",
|
|
2000
|
-
render: /* @__PURE__ */
|
|
2024
|
+
render: /* @__PURE__ */ jsx26(
|
|
2001
2025
|
Button,
|
|
2002
2026
|
{
|
|
2003
2027
|
variant: "ghost",
|
|
@@ -2006,11 +2030,11 @@ function SheetContent({
|
|
|
2006
2030
|
}
|
|
2007
2031
|
),
|
|
2008
2032
|
children: [
|
|
2009
|
-
/* @__PURE__ */
|
|
2033
|
+
/* @__PURE__ */ jsx26(
|
|
2010
2034
|
XIcon,
|
|
2011
2035
|
{}
|
|
2012
2036
|
),
|
|
2013
|
-
/* @__PURE__ */
|
|
2037
|
+
/* @__PURE__ */ jsx26("span", { className: "sr-only", children: "Close" })
|
|
2014
2038
|
]
|
|
2015
2039
|
}
|
|
2016
2040
|
)
|
|
@@ -2020,21 +2044,21 @@ function SheetContent({
|
|
|
2020
2044
|
] });
|
|
2021
2045
|
}
|
|
2022
2046
|
function SheetHeader({ className, ...props }) {
|
|
2023
|
-
return /* @__PURE__ */
|
|
2047
|
+
return /* @__PURE__ */ jsx26(
|
|
2024
2048
|
"div",
|
|
2025
2049
|
{
|
|
2026
2050
|
"data-slot": "sheet-header",
|
|
2027
|
-
className:
|
|
2051
|
+
className: cn11("flex flex-col gap-0.5 p-4", className),
|
|
2028
2052
|
...props
|
|
2029
2053
|
}
|
|
2030
2054
|
);
|
|
2031
2055
|
}
|
|
2032
2056
|
function SheetTitle({ className, ...props }) {
|
|
2033
|
-
return /* @__PURE__ */
|
|
2057
|
+
return /* @__PURE__ */ jsx26(
|
|
2034
2058
|
SheetPrimitive.Title,
|
|
2035
2059
|
{
|
|
2036
2060
|
"data-slot": "sheet-title",
|
|
2037
|
-
className:
|
|
2061
|
+
className: cn11(
|
|
2038
2062
|
"text-base font-medium text-foreground",
|
|
2039
2063
|
className
|
|
2040
2064
|
),
|
|
@@ -2046,25 +2070,11 @@ function SheetDescription({
|
|
|
2046
2070
|
className,
|
|
2047
2071
|
...props
|
|
2048
2072
|
}) {
|
|
2049
|
-
return /* @__PURE__ */
|
|
2073
|
+
return /* @__PURE__ */ jsx26(
|
|
2050
2074
|
SheetPrimitive.Description,
|
|
2051
2075
|
{
|
|
2052
2076
|
"data-slot": "sheet-description",
|
|
2053
|
-
className:
|
|
2054
|
-
...props
|
|
2055
|
-
}
|
|
2056
|
-
);
|
|
2057
|
-
}
|
|
2058
|
-
|
|
2059
|
-
// src/primitives/skeleton.tsx
|
|
2060
|
-
import { cn as cn11 } from "cn";
|
|
2061
|
-
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
2062
|
-
function Skeleton({ className, ...props }) {
|
|
2063
|
-
return /* @__PURE__ */ jsx25(
|
|
2064
|
-
"div",
|
|
2065
|
-
{
|
|
2066
|
-
"data-slot": "skeleton",
|
|
2067
|
-
className: cn11("animate-pulse rounded-md bg-muted", className),
|
|
2077
|
+
className: cn11("text-sm text-muted-foreground", className),
|
|
2068
2078
|
...props
|
|
2069
2079
|
}
|
|
2070
2080
|
);
|
|
@@ -2072,16 +2082,16 @@ function Skeleton({ className, ...props }) {
|
|
|
2072
2082
|
|
|
2073
2083
|
// src/primitives/sidebar.tsx
|
|
2074
2084
|
import { PanelLeftIcon } from "lucide-react";
|
|
2075
|
-
import { jsx as
|
|
2085
|
+
import { jsx as jsx27, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2076
2086
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
2077
2087
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
2078
2088
|
var SIDEBAR_WIDTH = "16rem";
|
|
2079
2089
|
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
2080
2090
|
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
2081
2091
|
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
2082
|
-
var SidebarContext =
|
|
2092
|
+
var SidebarContext = React17.createContext(null);
|
|
2083
2093
|
function useSidebar() {
|
|
2084
|
-
const context =
|
|
2094
|
+
const context = React17.useContext(SidebarContext);
|
|
2085
2095
|
if (!context) {
|
|
2086
2096
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
2087
2097
|
}
|
|
@@ -2097,10 +2107,10 @@ function SidebarProvider({
|
|
|
2097
2107
|
...props
|
|
2098
2108
|
}) {
|
|
2099
2109
|
const isMobile = useIsMobile();
|
|
2100
|
-
const [openMobile, setOpenMobile] =
|
|
2101
|
-
const [_open, _setOpen] =
|
|
2110
|
+
const [openMobile, setOpenMobile] = React17.useState(false);
|
|
2111
|
+
const [_open, _setOpen] = React17.useState(defaultOpen);
|
|
2102
2112
|
const open = openProp ?? _open;
|
|
2103
|
-
const setOpen =
|
|
2113
|
+
const setOpen = React17.useCallback(
|
|
2104
2114
|
(value) => {
|
|
2105
2115
|
const openState = typeof value === "function" ? value(open) : value;
|
|
2106
2116
|
if (setOpenProp) {
|
|
@@ -2112,10 +2122,10 @@ function SidebarProvider({
|
|
|
2112
2122
|
},
|
|
2113
2123
|
[setOpenProp, open]
|
|
2114
2124
|
);
|
|
2115
|
-
const toggleSidebar =
|
|
2125
|
+
const toggleSidebar = React17.useCallback(() => {
|
|
2116
2126
|
return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
|
|
2117
2127
|
}, [isMobile, setOpen, setOpenMobile]);
|
|
2118
|
-
|
|
2128
|
+
React17.useEffect(() => {
|
|
2119
2129
|
const handleKeyDown = (event) => {
|
|
2120
2130
|
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
2121
2131
|
event.preventDefault();
|
|
@@ -2126,7 +2136,7 @@ function SidebarProvider({
|
|
|
2126
2136
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
2127
2137
|
}, [toggleSidebar]);
|
|
2128
2138
|
const state = open ? "expanded" : "collapsed";
|
|
2129
|
-
const contextValue =
|
|
2139
|
+
const contextValue = React17.useMemo(
|
|
2130
2140
|
() => ({
|
|
2131
2141
|
state,
|
|
2132
2142
|
open,
|
|
@@ -2138,7 +2148,7 @@ function SidebarProvider({
|
|
|
2138
2148
|
}),
|
|
2139
2149
|
[state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
|
|
2140
2150
|
);
|
|
2141
|
-
return /* @__PURE__ */
|
|
2151
|
+
return /* @__PURE__ */ jsx27(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx27(
|
|
2142
2152
|
"div",
|
|
2143
2153
|
{
|
|
2144
2154
|
"data-slot": "sidebar-wrapper",
|
|
@@ -2167,7 +2177,7 @@ function Sidebar({
|
|
|
2167
2177
|
}) {
|
|
2168
2178
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
2169
2179
|
if (collapsible === "none") {
|
|
2170
|
-
return /* @__PURE__ */
|
|
2180
|
+
return /* @__PURE__ */ jsx27(
|
|
2171
2181
|
"div",
|
|
2172
2182
|
{
|
|
2173
2183
|
"data-slot": "sidebar",
|
|
@@ -2181,7 +2191,7 @@ function Sidebar({
|
|
|
2181
2191
|
);
|
|
2182
2192
|
}
|
|
2183
2193
|
if (isMobile) {
|
|
2184
|
-
return /* @__PURE__ */
|
|
2194
|
+
return /* @__PURE__ */ jsx27(Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ jsxs13(
|
|
2185
2195
|
SheetContent,
|
|
2186
2196
|
{
|
|
2187
2197
|
dir,
|
|
@@ -2195,10 +2205,10 @@ function Sidebar({
|
|
|
2195
2205
|
side,
|
|
2196
2206
|
children: [
|
|
2197
2207
|
/* @__PURE__ */ jsxs13(SheetHeader, { className: "sr-only", children: [
|
|
2198
|
-
/* @__PURE__ */
|
|
2199
|
-
/* @__PURE__ */
|
|
2208
|
+
/* @__PURE__ */ jsx27(SheetTitle, { children: "Sidebar" }),
|
|
2209
|
+
/* @__PURE__ */ jsx27(SheetDescription, { children: "Displays the mobile sidebar." })
|
|
2200
2210
|
] }),
|
|
2201
|
-
/* @__PURE__ */
|
|
2211
|
+
/* @__PURE__ */ jsx27("div", { className: "flex h-full w-full flex-col", children })
|
|
2202
2212
|
]
|
|
2203
2213
|
}
|
|
2204
2214
|
) });
|
|
@@ -2213,7 +2223,7 @@ function Sidebar({
|
|
|
2213
2223
|
"data-side": side,
|
|
2214
2224
|
"data-slot": "sidebar",
|
|
2215
2225
|
children: [
|
|
2216
|
-
/* @__PURE__ */
|
|
2226
|
+
/* @__PURE__ */ jsx27(
|
|
2217
2227
|
"div",
|
|
2218
2228
|
{
|
|
2219
2229
|
"data-slot": "sidebar-gap",
|
|
@@ -2225,7 +2235,7 @@ function Sidebar({
|
|
|
2225
2235
|
)
|
|
2226
2236
|
}
|
|
2227
2237
|
),
|
|
2228
|
-
/* @__PURE__ */
|
|
2238
|
+
/* @__PURE__ */ jsx27(
|
|
2229
2239
|
"div",
|
|
2230
2240
|
{
|
|
2231
2241
|
"data-slot": "sidebar-container",
|
|
@@ -2237,7 +2247,7 @@ function Sidebar({
|
|
|
2237
2247
|
className
|
|
2238
2248
|
),
|
|
2239
2249
|
...props,
|
|
2240
|
-
children: /* @__PURE__ */
|
|
2250
|
+
children: /* @__PURE__ */ jsx27(
|
|
2241
2251
|
"div",
|
|
2242
2252
|
{
|
|
2243
2253
|
"data-sidebar": "sidebar",
|
|
@@ -2272,15 +2282,15 @@ function SidebarTrigger({
|
|
|
2272
2282
|
},
|
|
2273
2283
|
...props,
|
|
2274
2284
|
children: [
|
|
2275
|
-
/* @__PURE__ */
|
|
2276
|
-
/* @__PURE__ */
|
|
2285
|
+
/* @__PURE__ */ jsx27(PanelLeftIcon, {}),
|
|
2286
|
+
/* @__PURE__ */ jsx27("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
2277
2287
|
]
|
|
2278
2288
|
}
|
|
2279
2289
|
);
|
|
2280
2290
|
}
|
|
2281
2291
|
function SidebarRail({ className, ...props }) {
|
|
2282
2292
|
const { toggleSidebar } = useSidebar();
|
|
2283
|
-
return /* @__PURE__ */
|
|
2293
|
+
return /* @__PURE__ */ jsx27(
|
|
2284
2294
|
"button",
|
|
2285
2295
|
{
|
|
2286
2296
|
"data-sidebar": "rail",
|
|
@@ -2303,7 +2313,7 @@ function SidebarRail({ className, ...props }) {
|
|
|
2303
2313
|
);
|
|
2304
2314
|
}
|
|
2305
2315
|
function SidebarInset({ className, ...props }) {
|
|
2306
|
-
return /* @__PURE__ */
|
|
2316
|
+
return /* @__PURE__ */ jsx27(
|
|
2307
2317
|
"main",
|
|
2308
2318
|
{
|
|
2309
2319
|
"data-slot": "sidebar-inset",
|
|
@@ -2319,7 +2329,7 @@ function SidebarInput({
|
|
|
2319
2329
|
className,
|
|
2320
2330
|
...props
|
|
2321
2331
|
}) {
|
|
2322
|
-
return /* @__PURE__ */
|
|
2332
|
+
return /* @__PURE__ */ jsx27(
|
|
2323
2333
|
Input,
|
|
2324
2334
|
{
|
|
2325
2335
|
"data-slot": "sidebar-input",
|
|
@@ -2330,7 +2340,7 @@ function SidebarInput({
|
|
|
2330
2340
|
);
|
|
2331
2341
|
}
|
|
2332
2342
|
function SidebarHeader({ className, ...props }) {
|
|
2333
|
-
return /* @__PURE__ */
|
|
2343
|
+
return /* @__PURE__ */ jsx27(
|
|
2334
2344
|
"div",
|
|
2335
2345
|
{
|
|
2336
2346
|
"data-slot": "sidebar-header",
|
|
@@ -2341,7 +2351,7 @@ function SidebarHeader({ className, ...props }) {
|
|
|
2341
2351
|
);
|
|
2342
2352
|
}
|
|
2343
2353
|
function SidebarFooter({ className, ...props }) {
|
|
2344
|
-
return /* @__PURE__ */
|
|
2354
|
+
return /* @__PURE__ */ jsx27(
|
|
2345
2355
|
"div",
|
|
2346
2356
|
{
|
|
2347
2357
|
"data-slot": "sidebar-footer",
|
|
@@ -2355,7 +2365,7 @@ function SidebarSeparator({
|
|
|
2355
2365
|
className,
|
|
2356
2366
|
...props
|
|
2357
2367
|
}) {
|
|
2358
|
-
return /* @__PURE__ */
|
|
2368
|
+
return /* @__PURE__ */ jsx27(
|
|
2359
2369
|
Separator,
|
|
2360
2370
|
{
|
|
2361
2371
|
"data-slot": "sidebar-separator",
|
|
@@ -2366,7 +2376,7 @@ function SidebarSeparator({
|
|
|
2366
2376
|
);
|
|
2367
2377
|
}
|
|
2368
2378
|
function SidebarContent({ className, ...props }) {
|
|
2369
|
-
return /* @__PURE__ */
|
|
2379
|
+
return /* @__PURE__ */ jsx27(
|
|
2370
2380
|
"div",
|
|
2371
2381
|
{
|
|
2372
2382
|
"data-slot": "sidebar-content",
|
|
@@ -2380,7 +2390,7 @@ function SidebarContent({ className, ...props }) {
|
|
|
2380
2390
|
);
|
|
2381
2391
|
}
|
|
2382
2392
|
function SidebarGroup({ className, ...props }) {
|
|
2383
|
-
return /* @__PURE__ */
|
|
2393
|
+
return /* @__PURE__ */ jsx27(
|
|
2384
2394
|
"div",
|
|
2385
2395
|
{
|
|
2386
2396
|
"data-slot": "sidebar-group",
|
|
@@ -2440,7 +2450,7 @@ function SidebarGroupContent({
|
|
|
2440
2450
|
className,
|
|
2441
2451
|
...props
|
|
2442
2452
|
}) {
|
|
2443
|
-
return /* @__PURE__ */
|
|
2453
|
+
return /* @__PURE__ */ jsx27(
|
|
2444
2454
|
"div",
|
|
2445
2455
|
{
|
|
2446
2456
|
"data-slot": "sidebar-group-content",
|
|
@@ -2451,7 +2461,7 @@ function SidebarGroupContent({
|
|
|
2451
2461
|
);
|
|
2452
2462
|
}
|
|
2453
2463
|
function SidebarMenu({ className, ...props }) {
|
|
2454
|
-
return /* @__PURE__ */
|
|
2464
|
+
return /* @__PURE__ */ jsx27(
|
|
2455
2465
|
"ul",
|
|
2456
2466
|
{
|
|
2457
2467
|
"data-slot": "sidebar-menu",
|
|
@@ -2462,7 +2472,7 @@ function SidebarMenu({ className, ...props }) {
|
|
|
2462
2472
|
);
|
|
2463
2473
|
}
|
|
2464
2474
|
function SidebarMenuItem({ className, ...props }) {
|
|
2465
|
-
return /* @__PURE__ */
|
|
2475
|
+
return /* @__PURE__ */ jsx27(
|
|
2466
2476
|
"li",
|
|
2467
2477
|
{
|
|
2468
2478
|
"data-slot": "sidebar-menu-item",
|
|
@@ -2510,7 +2520,7 @@ function SidebarMenuButton({
|
|
|
2510
2520
|
},
|
|
2511
2521
|
props
|
|
2512
2522
|
),
|
|
2513
|
-
render: !tooltip ? render : /* @__PURE__ */
|
|
2523
|
+
render: !tooltip ? render : /* @__PURE__ */ jsx27(TooltipTrigger, { render }),
|
|
2514
2524
|
state: {
|
|
2515
2525
|
slot: "sidebar-menu-button",
|
|
2516
2526
|
sidebar: "menu-button",
|
|
@@ -2528,7 +2538,7 @@ function SidebarMenuButton({
|
|
|
2528
2538
|
}
|
|
2529
2539
|
return /* @__PURE__ */ jsxs13(Tooltip, { children: [
|
|
2530
2540
|
comp,
|
|
2531
|
-
/* @__PURE__ */
|
|
2541
|
+
/* @__PURE__ */ jsx27(
|
|
2532
2542
|
TooltipContent,
|
|
2533
2543
|
{
|
|
2534
2544
|
side: "right",
|
|
@@ -2568,7 +2578,7 @@ function SidebarMenuBadge({
|
|
|
2568
2578
|
className,
|
|
2569
2579
|
...props
|
|
2570
2580
|
}) {
|
|
2571
|
-
return /* @__PURE__ */
|
|
2581
|
+
return /* @__PURE__ */ jsx27(
|
|
2572
2582
|
"div",
|
|
2573
2583
|
{
|
|
2574
2584
|
"data-slot": "sidebar-menu-badge",
|
|
@@ -2586,7 +2596,7 @@ function SidebarMenuSkeleton({
|
|
|
2586
2596
|
showIcon = false,
|
|
2587
2597
|
...props
|
|
2588
2598
|
}) {
|
|
2589
|
-
const [width] =
|
|
2599
|
+
const [width] = React17.useState(() => {
|
|
2590
2600
|
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
2591
2601
|
});
|
|
2592
2602
|
return /* @__PURE__ */ jsxs13(
|
|
@@ -2597,14 +2607,14 @@ function SidebarMenuSkeleton({
|
|
|
2597
2607
|
className: cn12("flex h-8 items-center gap-2 rounded-md px-2", className),
|
|
2598
2608
|
...props,
|
|
2599
2609
|
children: [
|
|
2600
|
-
showIcon && /* @__PURE__ */
|
|
2610
|
+
showIcon && /* @__PURE__ */ jsx27(
|
|
2601
2611
|
Skeleton,
|
|
2602
2612
|
{
|
|
2603
2613
|
className: "size-4 rounded-md",
|
|
2604
2614
|
"data-sidebar": "menu-skeleton-icon"
|
|
2605
2615
|
}
|
|
2606
2616
|
),
|
|
2607
|
-
/* @__PURE__ */
|
|
2617
|
+
/* @__PURE__ */ jsx27(
|
|
2608
2618
|
Skeleton,
|
|
2609
2619
|
{
|
|
2610
2620
|
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
@@ -2619,7 +2629,7 @@ function SidebarMenuSkeleton({
|
|
|
2619
2629
|
);
|
|
2620
2630
|
}
|
|
2621
2631
|
function SidebarMenuSub({ className, ...props }) {
|
|
2622
|
-
return /* @__PURE__ */
|
|
2632
|
+
return /* @__PURE__ */ jsx27(
|
|
2623
2633
|
"ul",
|
|
2624
2634
|
{
|
|
2625
2635
|
"data-slot": "sidebar-menu-sub",
|
|
@@ -2636,7 +2646,7 @@ function SidebarMenuSubItem({
|
|
|
2636
2646
|
className,
|
|
2637
2647
|
...props
|
|
2638
2648
|
}) {
|
|
2639
|
-
return /* @__PURE__ */
|
|
2649
|
+
return /* @__PURE__ */ jsx27(
|
|
2640
2650
|
"li",
|
|
2641
2651
|
{
|
|
2642
2652
|
"data-slot": "sidebar-menu-sub-item",
|
|
@@ -2675,7 +2685,7 @@ function SidebarMenuSubButton({
|
|
|
2675
2685
|
}
|
|
2676
2686
|
|
|
2677
2687
|
// src/components/sidebar/Sidebar.tsx
|
|
2678
|
-
import { jsx as
|
|
2688
|
+
import { jsx as jsx28, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2679
2689
|
var iconModeButtonClasses = "group-data-[collapsible=icon]:w-10! group-data-[collapsible=icon]:h-10! group-data-[collapsible=icon]:px-3!";
|
|
2680
2690
|
var sizingMenuButtonClasses = "text-base px-3 py-2 h-auto";
|
|
2681
2691
|
var sizingSubButtonClasses = "data-[size=md]:text-base data-[size=sm]:text-base px-3 py-2 h-auto";
|
|
@@ -2683,7 +2693,7 @@ function SidebarGroupLabel2({
|
|
|
2683
2693
|
className,
|
|
2684
2694
|
...props
|
|
2685
2695
|
}) {
|
|
2686
|
-
return /* @__PURE__ */
|
|
2696
|
+
return /* @__PURE__ */ jsx28(
|
|
2687
2697
|
SidebarGroupLabel,
|
|
2688
2698
|
{
|
|
2689
2699
|
className: cn("px-3 uppercase tracking-caption", className),
|
|
@@ -2696,7 +2706,7 @@ function SidebarProvider2({
|
|
|
2696
2706
|
style,
|
|
2697
2707
|
...props
|
|
2698
2708
|
}) {
|
|
2699
|
-
return /* @__PURE__ */
|
|
2709
|
+
return /* @__PURE__ */ jsx28(
|
|
2700
2710
|
SidebarProvider,
|
|
2701
2711
|
{
|
|
2702
2712
|
className,
|
|
@@ -2709,10 +2719,10 @@ function SidebarProvider2({
|
|
|
2709
2719
|
);
|
|
2710
2720
|
}
|
|
2711
2721
|
function SidebarInset2({ className, ...props }) {
|
|
2712
|
-
return /* @__PURE__ */
|
|
2722
|
+
return /* @__PURE__ */ jsx28(SidebarInset, { className: cn("min-w-0", className), ...props });
|
|
2713
2723
|
}
|
|
2714
2724
|
function SidebarGroup2({ className, ...props }) {
|
|
2715
|
-
return /* @__PURE__ */
|
|
2725
|
+
return /* @__PURE__ */ jsx28(
|
|
2716
2726
|
SidebarGroup,
|
|
2717
2727
|
{
|
|
2718
2728
|
className: cn("group-data-[collapsible=icon]:px-2.5", className),
|
|
@@ -2724,7 +2734,7 @@ function SidebarFooter2({
|
|
|
2724
2734
|
className,
|
|
2725
2735
|
...props
|
|
2726
2736
|
}) {
|
|
2727
|
-
return /* @__PURE__ */
|
|
2737
|
+
return /* @__PURE__ */ jsx28(
|
|
2728
2738
|
SidebarFooter,
|
|
2729
2739
|
{
|
|
2730
2740
|
className: cn(
|
|
@@ -2739,7 +2749,7 @@ function SidebarHeader2({
|
|
|
2739
2749
|
className,
|
|
2740
2750
|
...props
|
|
2741
2751
|
}) {
|
|
2742
|
-
return /* @__PURE__ */
|
|
2752
|
+
return /* @__PURE__ */ jsx28(
|
|
2743
2753
|
SidebarHeader,
|
|
2744
2754
|
{
|
|
2745
2755
|
className: cn(
|
|
@@ -2751,8 +2761,8 @@ function SidebarHeader2({
|
|
|
2751
2761
|
);
|
|
2752
2762
|
}
|
|
2753
2763
|
function SidebarLogo() {
|
|
2754
|
-
return /* @__PURE__ */
|
|
2755
|
-
/* @__PURE__ */
|
|
2764
|
+
return /* @__PURE__ */ jsx28(SidebarHeader, { className: "px-0", children: /* @__PURE__ */ jsxs14("div", { className: "relative flex h-15 items-center overflow-hidden px-5", children: [
|
|
2765
|
+
/* @__PURE__ */ jsx28(
|
|
2756
2766
|
BergetLogo,
|
|
2757
2767
|
{
|
|
2758
2768
|
variant: "logotype",
|
|
@@ -2760,11 +2770,11 @@ function SidebarLogo() {
|
|
|
2760
2770
|
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"
|
|
2761
2771
|
}
|
|
2762
2772
|
),
|
|
2763
|
-
/* @__PURE__ */
|
|
2773
|
+
/* @__PURE__ */ jsx28("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__ */ jsx28(BergetLogo, { variant: "symbol", size: 32 }) })
|
|
2764
2774
|
] }) });
|
|
2765
2775
|
}
|
|
2766
2776
|
function SidebarPageHeader({ className, ...props }) {
|
|
2767
|
-
return /* @__PURE__ */
|
|
2777
|
+
return /* @__PURE__ */ jsx28(
|
|
2768
2778
|
"header",
|
|
2769
2779
|
{
|
|
2770
2780
|
className: cn(
|
|
@@ -2776,7 +2786,7 @@ function SidebarPageHeader({ className, ...props }) {
|
|
|
2776
2786
|
);
|
|
2777
2787
|
}
|
|
2778
2788
|
function SidebarMenuButton2({ className, ...props }) {
|
|
2779
|
-
return /* @__PURE__ */
|
|
2789
|
+
return /* @__PURE__ */ jsx28(
|
|
2780
2790
|
SidebarMenuButton,
|
|
2781
2791
|
{
|
|
2782
2792
|
className: cn(sizingMenuButtonClasses, iconModeButtonClasses, className),
|
|
@@ -2785,7 +2795,7 @@ function SidebarMenuButton2({ className, ...props }) {
|
|
|
2785
2795
|
);
|
|
2786
2796
|
}
|
|
2787
2797
|
function SidebarMenuSubButton2({ className, ...props }) {
|
|
2788
|
-
return /* @__PURE__ */
|
|
2798
|
+
return /* @__PURE__ */ jsx28(
|
|
2789
2799
|
SidebarMenuSubButton,
|
|
2790
2800
|
{
|
|
2791
2801
|
className: cn(sizingSubButtonClasses, "[&>svg]:text-inherit", className),
|
|
@@ -2795,18 +2805,18 @@ function SidebarMenuSubButton2({ className, ...props }) {
|
|
|
2795
2805
|
}
|
|
2796
2806
|
|
|
2797
2807
|
// src/components/table/Table.tsx
|
|
2798
|
-
import * as
|
|
2808
|
+
import * as React18 from "react";
|
|
2799
2809
|
|
|
2800
2810
|
// src/primitives/table.tsx
|
|
2801
2811
|
import { cn as cn13 } from "cn";
|
|
2802
|
-
import { jsx as
|
|
2812
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
2803
2813
|
function Table({ className, ...props }) {
|
|
2804
|
-
return /* @__PURE__ */
|
|
2814
|
+
return /* @__PURE__ */ jsx29(
|
|
2805
2815
|
"div",
|
|
2806
2816
|
{
|
|
2807
2817
|
"data-slot": "table-container",
|
|
2808
2818
|
className: "relative w-full overflow-x-auto",
|
|
2809
|
-
children: /* @__PURE__ */
|
|
2819
|
+
children: /* @__PURE__ */ jsx29(
|
|
2810
2820
|
"table",
|
|
2811
2821
|
{
|
|
2812
2822
|
"data-slot": "table",
|
|
@@ -2818,7 +2828,7 @@ function Table({ className, ...props }) {
|
|
|
2818
2828
|
);
|
|
2819
2829
|
}
|
|
2820
2830
|
function TableHeader({ className, ...props }) {
|
|
2821
|
-
return /* @__PURE__ */
|
|
2831
|
+
return /* @__PURE__ */ jsx29(
|
|
2822
2832
|
"thead",
|
|
2823
2833
|
{
|
|
2824
2834
|
"data-slot": "table-header",
|
|
@@ -2828,7 +2838,7 @@ function TableHeader({ className, ...props }) {
|
|
|
2828
2838
|
);
|
|
2829
2839
|
}
|
|
2830
2840
|
function TableBody({ className, ...props }) {
|
|
2831
|
-
return /* @__PURE__ */
|
|
2841
|
+
return /* @__PURE__ */ jsx29(
|
|
2832
2842
|
"tbody",
|
|
2833
2843
|
{
|
|
2834
2844
|
"data-slot": "table-body",
|
|
@@ -2838,7 +2848,7 @@ function TableBody({ className, ...props }) {
|
|
|
2838
2848
|
);
|
|
2839
2849
|
}
|
|
2840
2850
|
function TableFooter({ className, ...props }) {
|
|
2841
|
-
return /* @__PURE__ */
|
|
2851
|
+
return /* @__PURE__ */ jsx29(
|
|
2842
2852
|
"tfoot",
|
|
2843
2853
|
{
|
|
2844
2854
|
"data-slot": "table-footer",
|
|
@@ -2851,7 +2861,7 @@ function TableFooter({ className, ...props }) {
|
|
|
2851
2861
|
);
|
|
2852
2862
|
}
|
|
2853
2863
|
function TableRow({ className, ...props }) {
|
|
2854
|
-
return /* @__PURE__ */
|
|
2864
|
+
return /* @__PURE__ */ jsx29(
|
|
2855
2865
|
"tr",
|
|
2856
2866
|
{
|
|
2857
2867
|
"data-slot": "table-row",
|
|
@@ -2864,7 +2874,7 @@ function TableRow({ className, ...props }) {
|
|
|
2864
2874
|
);
|
|
2865
2875
|
}
|
|
2866
2876
|
function TableHead({ className, ...props }) {
|
|
2867
|
-
return /* @__PURE__ */
|
|
2877
|
+
return /* @__PURE__ */ jsx29(
|
|
2868
2878
|
"th",
|
|
2869
2879
|
{
|
|
2870
2880
|
"data-slot": "table-head",
|
|
@@ -2877,7 +2887,7 @@ function TableHead({ className, ...props }) {
|
|
|
2877
2887
|
);
|
|
2878
2888
|
}
|
|
2879
2889
|
function TableCell({ className, ...props }) {
|
|
2880
|
-
return /* @__PURE__ */
|
|
2890
|
+
return /* @__PURE__ */ jsx29(
|
|
2881
2891
|
"td",
|
|
2882
2892
|
{
|
|
2883
2893
|
"data-slot": "table-cell",
|
|
@@ -2893,7 +2903,7 @@ function TableCaption({
|
|
|
2893
2903
|
className,
|
|
2894
2904
|
...props
|
|
2895
2905
|
}) {
|
|
2896
|
-
return /* @__PURE__ */
|
|
2906
|
+
return /* @__PURE__ */ jsx29(
|
|
2897
2907
|
"caption",
|
|
2898
2908
|
{
|
|
2899
2909
|
"data-slot": "table-caption",
|
|
@@ -2904,12 +2914,12 @@ function TableCaption({
|
|
|
2904
2914
|
}
|
|
2905
2915
|
|
|
2906
2916
|
// src/components/table/Table.tsx
|
|
2907
|
-
import { jsx as
|
|
2908
|
-
var Table2 =
|
|
2909
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
2917
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
2918
|
+
var Table2 = React18.forwardRef(
|
|
2919
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx30(Table, { ref, className, ...props })
|
|
2910
2920
|
);
|
|
2911
2921
|
Table2.displayName = "Table";
|
|
2912
|
-
var TableHeader2 =
|
|
2922
|
+
var TableHeader2 = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
2913
2923
|
TableHeader,
|
|
2914
2924
|
{
|
|
2915
2925
|
ref,
|
|
@@ -2918,7 +2928,7 @@ var TableHeader2 = React17.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2918
2928
|
}
|
|
2919
2929
|
));
|
|
2920
2930
|
TableHeader2.displayName = "TableHeader";
|
|
2921
|
-
var TableBody2 =
|
|
2931
|
+
var TableBody2 = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
2922
2932
|
TableBody,
|
|
2923
2933
|
{
|
|
2924
2934
|
ref,
|
|
@@ -2927,7 +2937,7 @@ var TableBody2 = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
2927
2937
|
}
|
|
2928
2938
|
));
|
|
2929
2939
|
TableBody2.displayName = "TableBody";
|
|
2930
|
-
var TableFooter2 =
|
|
2940
|
+
var TableFooter2 = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
2931
2941
|
TableFooter,
|
|
2932
2942
|
{
|
|
2933
2943
|
ref,
|
|
@@ -2939,8 +2949,8 @@ var TableFooter2 = React17.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2939
2949
|
}
|
|
2940
2950
|
));
|
|
2941
2951
|
TableFooter2.displayName = "TableFooter";
|
|
2942
|
-
var TableRow2 =
|
|
2943
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
2952
|
+
var TableRow2 = React18.forwardRef(
|
|
2953
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
2944
2954
|
TableRow,
|
|
2945
2955
|
{
|
|
2946
2956
|
ref,
|
|
@@ -2953,7 +2963,7 @@ var TableRow2 = React17.forwardRef(
|
|
|
2953
2963
|
)
|
|
2954
2964
|
);
|
|
2955
2965
|
TableRow2.displayName = "TableRow";
|
|
2956
|
-
var TableHead2 =
|
|
2966
|
+
var TableHead2 = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
2957
2967
|
TableHead,
|
|
2958
2968
|
{
|
|
2959
2969
|
ref,
|
|
@@ -2965,7 +2975,7 @@ var TableHead2 = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
2965
2975
|
}
|
|
2966
2976
|
));
|
|
2967
2977
|
TableHead2.displayName = "TableHead";
|
|
2968
|
-
var TableCell2 =
|
|
2978
|
+
var TableCell2 = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
2969
2979
|
TableCell,
|
|
2970
2980
|
{
|
|
2971
2981
|
ref,
|
|
@@ -2974,7 +2984,7 @@ var TableCell2 = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
2974
2984
|
}
|
|
2975
2985
|
));
|
|
2976
2986
|
TableCell2.displayName = "TableCell";
|
|
2977
|
-
var TableCaption2 =
|
|
2987
|
+
var TableCaption2 = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
2978
2988
|
TableCaption,
|
|
2979
2989
|
{
|
|
2980
2990
|
ref,
|
|
@@ -2985,16 +2995,16 @@ var TableCaption2 = React17.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
2985
2995
|
TableCaption2.displayName = "TableCaption";
|
|
2986
2996
|
|
|
2987
2997
|
// src/components/item/Item.tsx
|
|
2988
|
-
import * as
|
|
2998
|
+
import * as React19 from "react";
|
|
2989
2999
|
|
|
2990
3000
|
// src/primitives/item.tsx
|
|
2991
3001
|
import { mergeProps as mergeProps2 } from "@base-ui/react/merge-props";
|
|
2992
3002
|
import { useRender as useRender2 } from "@base-ui/react/use-render";
|
|
2993
3003
|
import { cva as cva10 } from "class-variance-authority";
|
|
2994
3004
|
import { cn as cn14 } from "cn";
|
|
2995
|
-
import { jsx as
|
|
3005
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
2996
3006
|
function ItemGroup({ className, ...props }) {
|
|
2997
|
-
return /* @__PURE__ */
|
|
3007
|
+
return /* @__PURE__ */ jsx31(
|
|
2998
3008
|
"div",
|
|
2999
3009
|
{
|
|
3000
3010
|
role: "list",
|
|
@@ -3011,7 +3021,7 @@ function ItemSeparator({
|
|
|
3011
3021
|
className,
|
|
3012
3022
|
...props
|
|
3013
3023
|
}) {
|
|
3014
|
-
return /* @__PURE__ */
|
|
3024
|
+
return /* @__PURE__ */ jsx31(
|
|
3015
3025
|
Separator,
|
|
3016
3026
|
{
|
|
3017
3027
|
"data-slot": "item-separator",
|
|
@@ -3085,7 +3095,7 @@ function ItemMedia({
|
|
|
3085
3095
|
variant = "default",
|
|
3086
3096
|
...props
|
|
3087
3097
|
}) {
|
|
3088
|
-
return /* @__PURE__ */
|
|
3098
|
+
return /* @__PURE__ */ jsx31(
|
|
3089
3099
|
"div",
|
|
3090
3100
|
{
|
|
3091
3101
|
"data-slot": "item-media",
|
|
@@ -3096,7 +3106,7 @@ function ItemMedia({
|
|
|
3096
3106
|
);
|
|
3097
3107
|
}
|
|
3098
3108
|
function ItemContent({ className, ...props }) {
|
|
3099
|
-
return /* @__PURE__ */
|
|
3109
|
+
return /* @__PURE__ */ jsx31(
|
|
3100
3110
|
"div",
|
|
3101
3111
|
{
|
|
3102
3112
|
"data-slot": "item-content",
|
|
@@ -3109,7 +3119,7 @@ function ItemContent({ className, ...props }) {
|
|
|
3109
3119
|
);
|
|
3110
3120
|
}
|
|
3111
3121
|
function ItemTitle({ className, ...props }) {
|
|
3112
|
-
return /* @__PURE__ */
|
|
3122
|
+
return /* @__PURE__ */ jsx31(
|
|
3113
3123
|
"div",
|
|
3114
3124
|
{
|
|
3115
3125
|
"data-slot": "item-title",
|
|
@@ -3122,7 +3132,7 @@ function ItemTitle({ className, ...props }) {
|
|
|
3122
3132
|
);
|
|
3123
3133
|
}
|
|
3124
3134
|
function ItemDescription({ className, ...props }) {
|
|
3125
|
-
return /* @__PURE__ */
|
|
3135
|
+
return /* @__PURE__ */ jsx31(
|
|
3126
3136
|
"p",
|
|
3127
3137
|
{
|
|
3128
3138
|
"data-slot": "item-description",
|
|
@@ -3135,7 +3145,7 @@ function ItemDescription({ className, ...props }) {
|
|
|
3135
3145
|
);
|
|
3136
3146
|
}
|
|
3137
3147
|
function ItemActions({ className, ...props }) {
|
|
3138
|
-
return /* @__PURE__ */
|
|
3148
|
+
return /* @__PURE__ */ jsx31(
|
|
3139
3149
|
"div",
|
|
3140
3150
|
{
|
|
3141
3151
|
"data-slot": "item-actions",
|
|
@@ -3145,7 +3155,7 @@ function ItemActions({ className, ...props }) {
|
|
|
3145
3155
|
);
|
|
3146
3156
|
}
|
|
3147
3157
|
function ItemHeader({ className, ...props }) {
|
|
3148
|
-
return /* @__PURE__ */
|
|
3158
|
+
return /* @__PURE__ */ jsx31(
|
|
3149
3159
|
"div",
|
|
3150
3160
|
{
|
|
3151
3161
|
"data-slot": "item-header",
|
|
@@ -3158,7 +3168,7 @@ function ItemHeader({ className, ...props }) {
|
|
|
3158
3168
|
);
|
|
3159
3169
|
}
|
|
3160
3170
|
function ItemFooter({ className, ...props }) {
|
|
3161
|
-
return /* @__PURE__ */
|
|
3171
|
+
return /* @__PURE__ */ jsx31(
|
|
3162
3172
|
"div",
|
|
3163
3173
|
{
|
|
3164
3174
|
"data-slot": "item-footer",
|
|
@@ -3172,9 +3182,9 @@ function ItemFooter({ className, ...props }) {
|
|
|
3172
3182
|
}
|
|
3173
3183
|
|
|
3174
3184
|
// src/components/item/Item.tsx
|
|
3175
|
-
import { jsx as
|
|
3185
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
3176
3186
|
function Item2({ className, asChild, children, ...props }) {
|
|
3177
|
-
return /* @__PURE__ */
|
|
3187
|
+
return /* @__PURE__ */ jsx32(
|
|
3178
3188
|
Item,
|
|
3179
3189
|
{
|
|
3180
3190
|
render: asChild ? children : void 0,
|
|
@@ -3193,8 +3203,8 @@ function Item2({ className, asChild, children, ...props }) {
|
|
|
3193
3203
|
}
|
|
3194
3204
|
);
|
|
3195
3205
|
}
|
|
3196
|
-
var ItemMedia2 =
|
|
3197
|
-
return /* @__PURE__ */
|
|
3206
|
+
var ItemMedia2 = React19.forwardRef(({ className, ...props }, ref) => {
|
|
3207
|
+
return /* @__PURE__ */ jsx32(
|
|
3198
3208
|
ItemMedia,
|
|
3199
3209
|
{
|
|
3200
3210
|
ref,
|
|
@@ -3204,8 +3214,8 @@ var ItemMedia2 = React18.forwardRef(({ className, ...props }, ref) => {
|
|
|
3204
3214
|
);
|
|
3205
3215
|
});
|
|
3206
3216
|
ItemMedia2.displayName = "ItemMedia";
|
|
3207
|
-
var ItemTitle2 =
|
|
3208
|
-
return /* @__PURE__ */
|
|
3217
|
+
var ItemTitle2 = React19.forwardRef(({ className, ...props }, ref) => {
|
|
3218
|
+
return /* @__PURE__ */ jsx32(
|
|
3209
3219
|
ItemTitle,
|
|
3210
3220
|
{
|
|
3211
3221
|
ref,
|
|
@@ -3215,8 +3225,8 @@ var ItemTitle2 = React18.forwardRef(({ className, ...props }, ref) => {
|
|
|
3215
3225
|
);
|
|
3216
3226
|
});
|
|
3217
3227
|
ItemTitle2.displayName = "ItemTitle";
|
|
3218
|
-
var ItemDescription2 =
|
|
3219
|
-
return /* @__PURE__ */
|
|
3228
|
+
var ItemDescription2 = React19.forwardRef(({ className, ...props }, ref) => {
|
|
3229
|
+
return /* @__PURE__ */ jsx32(
|
|
3220
3230
|
ItemDescription,
|
|
3221
3231
|
{
|
|
3222
3232
|
ref,
|
|
@@ -3226,8 +3236,8 @@ var ItemDescription2 = React18.forwardRef(({ className, ...props }, ref) => {
|
|
|
3226
3236
|
);
|
|
3227
3237
|
});
|
|
3228
3238
|
ItemDescription2.displayName = "ItemDescription";
|
|
3229
|
-
var ItemSeparator2 =
|
|
3230
|
-
return /* @__PURE__ */
|
|
3239
|
+
var ItemSeparator2 = React19.forwardRef(({ className, ...props }, ref) => {
|
|
3240
|
+
return /* @__PURE__ */ jsx32(
|
|
3231
3241
|
ItemSeparator,
|
|
3232
3242
|
{
|
|
3233
3243
|
ref,
|
|
@@ -3238,9 +3248,150 @@ var ItemSeparator2 = React18.forwardRef(({ className, ...props }, ref) => {
|
|
|
3238
3248
|
});
|
|
3239
3249
|
ItemSeparator2.displayName = "ItemSeparator";
|
|
3240
3250
|
|
|
3251
|
+
// src/components/empty/Empty.tsx
|
|
3252
|
+
import * as React20 from "react";
|
|
3253
|
+
|
|
3254
|
+
// src/primitives/empty.tsx
|
|
3255
|
+
import { cva as cva11 } from "class-variance-authority";
|
|
3256
|
+
import { cn as cn15 } from "cn";
|
|
3257
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
3258
|
+
function Empty({ className, ...props }) {
|
|
3259
|
+
return /* @__PURE__ */ jsx33(
|
|
3260
|
+
"div",
|
|
3261
|
+
{
|
|
3262
|
+
"data-slot": "empty",
|
|
3263
|
+
className: cn15(
|
|
3264
|
+
"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",
|
|
3265
|
+
className
|
|
3266
|
+
),
|
|
3267
|
+
...props
|
|
3268
|
+
}
|
|
3269
|
+
);
|
|
3270
|
+
}
|
|
3271
|
+
function EmptyHeader({ className, ...props }) {
|
|
3272
|
+
return /* @__PURE__ */ jsx33(
|
|
3273
|
+
"div",
|
|
3274
|
+
{
|
|
3275
|
+
"data-slot": "empty-header",
|
|
3276
|
+
className: cn15("flex max-w-sm flex-col items-center gap-2", className),
|
|
3277
|
+
...props
|
|
3278
|
+
}
|
|
3279
|
+
);
|
|
3280
|
+
}
|
|
3281
|
+
var emptyMediaVariants = cva11(
|
|
3282
|
+
"mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
3283
|
+
{
|
|
3284
|
+
variants: {
|
|
3285
|
+
variant: {
|
|
3286
|
+
default: "bg-transparent",
|
|
3287
|
+
icon: "flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4"
|
|
3288
|
+
}
|
|
3289
|
+
},
|
|
3290
|
+
defaultVariants: {
|
|
3291
|
+
variant: "default"
|
|
3292
|
+
}
|
|
3293
|
+
}
|
|
3294
|
+
);
|
|
3295
|
+
function EmptyMedia({
|
|
3296
|
+
className,
|
|
3297
|
+
variant = "default",
|
|
3298
|
+
...props
|
|
3299
|
+
}) {
|
|
3300
|
+
return /* @__PURE__ */ jsx33(
|
|
3301
|
+
"div",
|
|
3302
|
+
{
|
|
3303
|
+
"data-slot": "empty-icon",
|
|
3304
|
+
"data-variant": variant,
|
|
3305
|
+
className: cn15(emptyMediaVariants({ variant, className })),
|
|
3306
|
+
...props
|
|
3307
|
+
}
|
|
3308
|
+
);
|
|
3309
|
+
}
|
|
3310
|
+
function EmptyTitle({ className, ...props }) {
|
|
3311
|
+
return /* @__PURE__ */ jsx33(
|
|
3312
|
+
"div",
|
|
3313
|
+
{
|
|
3314
|
+
"data-slot": "empty-title",
|
|
3315
|
+
className: cn15(
|
|
3316
|
+
"text-sm font-medium tracking-tight",
|
|
3317
|
+
className
|
|
3318
|
+
),
|
|
3319
|
+
...props
|
|
3320
|
+
}
|
|
3321
|
+
);
|
|
3322
|
+
}
|
|
3323
|
+
function EmptyDescription({ className, ...props }) {
|
|
3324
|
+
return /* @__PURE__ */ jsx33(
|
|
3325
|
+
"div",
|
|
3326
|
+
{
|
|
3327
|
+
"data-slot": "empty-description",
|
|
3328
|
+
className: cn15(
|
|
3329
|
+
"text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",
|
|
3330
|
+
className
|
|
3331
|
+
),
|
|
3332
|
+
...props
|
|
3333
|
+
}
|
|
3334
|
+
);
|
|
3335
|
+
}
|
|
3336
|
+
function EmptyContent({ className, ...props }) {
|
|
3337
|
+
return /* @__PURE__ */ jsx33(
|
|
3338
|
+
"div",
|
|
3339
|
+
{
|
|
3340
|
+
"data-slot": "empty-content",
|
|
3341
|
+
className: cn15(
|
|
3342
|
+
"flex w-full max-w-sm min-w-0 flex-col items-center gap-2.5 text-sm text-balance",
|
|
3343
|
+
className
|
|
3344
|
+
),
|
|
3345
|
+
...props
|
|
3346
|
+
}
|
|
3347
|
+
);
|
|
3348
|
+
}
|
|
3349
|
+
|
|
3350
|
+
// src/components/empty/Empty.tsx
|
|
3351
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
3352
|
+
function Empty2({ className, ...props }) {
|
|
3353
|
+
return /* @__PURE__ */ jsx34(Empty, { className, ...props });
|
|
3354
|
+
}
|
|
3355
|
+
var EmptyMedia2 = React20.forwardRef(({ className, ...props }, ref) => {
|
|
3356
|
+
return /* @__PURE__ */ jsx34(
|
|
3357
|
+
EmptyMedia,
|
|
3358
|
+
{
|
|
3359
|
+
ref,
|
|
3360
|
+
className: cn(
|
|
3361
|
+
"data-[variant=icon]:bg-berget-empty-media-icon-bg data-[variant=icon]:text-berget-empty-media-icon-fg",
|
|
3362
|
+
className
|
|
3363
|
+
),
|
|
3364
|
+
...props
|
|
3365
|
+
}
|
|
3366
|
+
);
|
|
3367
|
+
});
|
|
3368
|
+
EmptyMedia2.displayName = "EmptyMedia";
|
|
3369
|
+
var EmptyTitle2 = React20.forwardRef(({ className, ...props }, ref) => {
|
|
3370
|
+
return /* @__PURE__ */ jsx34(
|
|
3371
|
+
EmptyTitle,
|
|
3372
|
+
{
|
|
3373
|
+
ref,
|
|
3374
|
+
className: cn("text-base text-berget-empty-title-fg", className),
|
|
3375
|
+
...props
|
|
3376
|
+
}
|
|
3377
|
+
);
|
|
3378
|
+
});
|
|
3379
|
+
EmptyTitle2.displayName = "EmptyTitle";
|
|
3380
|
+
var EmptyDescription2 = React20.forwardRef(({ className, ...props }, ref) => {
|
|
3381
|
+
return /* @__PURE__ */ jsx34(
|
|
3382
|
+
EmptyDescription,
|
|
3383
|
+
{
|
|
3384
|
+
ref,
|
|
3385
|
+
className: cn("text-berget-empty-description-fg", className),
|
|
3386
|
+
...props
|
|
3387
|
+
}
|
|
3388
|
+
);
|
|
3389
|
+
});
|
|
3390
|
+
EmptyDescription2.displayName = "EmptyDescription";
|
|
3391
|
+
|
|
3241
3392
|
// src/components/search-input/SearchInput.tsx
|
|
3242
3393
|
import { Search } from "lucide-react";
|
|
3243
|
-
import { jsx as
|
|
3394
|
+
import { jsx as jsx35, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
3244
3395
|
var SearchInput = ({
|
|
3245
3396
|
type = "search",
|
|
3246
3397
|
placeholder = "Search...",
|
|
@@ -3248,14 +3399,14 @@ var SearchInput = ({
|
|
|
3248
3399
|
ref,
|
|
3249
3400
|
...props
|
|
3250
3401
|
}) => /* @__PURE__ */ jsxs15("div", { className: "relative flex w-full items-center", "data-slot": "search-input", children: [
|
|
3251
|
-
/* @__PURE__ */
|
|
3402
|
+
/* @__PURE__ */ jsx35(
|
|
3252
3403
|
Search,
|
|
3253
3404
|
{
|
|
3254
3405
|
"aria-hidden": "true",
|
|
3255
3406
|
className: "pointer-events-none absolute left-2.5 size-4 text-berget-muted-foreground"
|
|
3256
3407
|
}
|
|
3257
3408
|
),
|
|
3258
|
-
/* @__PURE__ */
|
|
3409
|
+
/* @__PURE__ */ jsx35(
|
|
3259
3410
|
Input,
|
|
3260
3411
|
{
|
|
3261
3412
|
ref,
|
|
@@ -3269,32 +3420,32 @@ var SearchInput = ({
|
|
|
3269
3420
|
SearchInput.displayName = "SearchInput";
|
|
3270
3421
|
|
|
3271
3422
|
// src/components/checkbox/Checkbox.tsx
|
|
3272
|
-
import * as
|
|
3423
|
+
import * as React21 from "react";
|
|
3273
3424
|
import { Checkbox as CheckboxPrimitive2 } from "@base-ui/react/checkbox";
|
|
3274
3425
|
import { Check } from "lucide-react";
|
|
3275
|
-
import { cva as
|
|
3426
|
+
import { cva as cva12 } from "class-variance-authority";
|
|
3276
3427
|
|
|
3277
3428
|
// src/primitives/checkbox.tsx
|
|
3278
3429
|
import { Checkbox as CheckboxPrimitive } from "@base-ui/react/checkbox";
|
|
3279
|
-
import { cn as
|
|
3430
|
+
import { cn as cn16 } from "cn";
|
|
3280
3431
|
import { CheckIcon as CheckIcon2 } from "lucide-react";
|
|
3281
|
-
import { jsx as
|
|
3432
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
3282
3433
|
function Checkbox({ className, ...props }) {
|
|
3283
|
-
return /* @__PURE__ */
|
|
3434
|
+
return /* @__PURE__ */ jsx36(
|
|
3284
3435
|
CheckboxPrimitive.Root,
|
|
3285
3436
|
{
|
|
3286
3437
|
"data-slot": "checkbox",
|
|
3287
|
-
className:
|
|
3438
|
+
className: cn16(
|
|
3288
3439
|
"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",
|
|
3289
3440
|
className
|
|
3290
3441
|
),
|
|
3291
3442
|
...props,
|
|
3292
|
-
children: /* @__PURE__ */
|
|
3443
|
+
children: /* @__PURE__ */ jsx36(
|
|
3293
3444
|
CheckboxPrimitive.Indicator,
|
|
3294
3445
|
{
|
|
3295
3446
|
"data-slot": "checkbox-indicator",
|
|
3296
3447
|
className: "grid place-content-center text-current transition-none [&>svg]:size-3.5",
|
|
3297
|
-
children: /* @__PURE__ */
|
|
3448
|
+
children: /* @__PURE__ */ jsx36(
|
|
3298
3449
|
CheckIcon2,
|
|
3299
3450
|
{}
|
|
3300
3451
|
)
|
|
@@ -3305,8 +3456,8 @@ function Checkbox({ className, ...props }) {
|
|
|
3305
3456
|
}
|
|
3306
3457
|
|
|
3307
3458
|
// src/components/checkbox/Checkbox.tsx
|
|
3308
|
-
import { jsx as
|
|
3309
|
-
var checkboxVariants =
|
|
3459
|
+
import { jsx as jsx37, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
3460
|
+
var checkboxVariants = cva12(
|
|
3310
3461
|
"inline-flex items-center justify-center rounded-berget-xs transition-all duration-200 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
3311
3462
|
{
|
|
3312
3463
|
variants: {
|
|
@@ -3327,7 +3478,7 @@ var checkboxVariants = cva11(
|
|
|
3327
3478
|
}
|
|
3328
3479
|
}
|
|
3329
3480
|
);
|
|
3330
|
-
var Checkbox2 =
|
|
3481
|
+
var Checkbox2 = React21.forwardRef(
|
|
3331
3482
|
({
|
|
3332
3483
|
"aria-label": ariaLabel,
|
|
3333
3484
|
className,
|
|
@@ -3340,11 +3491,11 @@ var Checkbox2 = React19.forwardRef(
|
|
|
3340
3491
|
disabled,
|
|
3341
3492
|
...props
|
|
3342
3493
|
}, ref) => {
|
|
3343
|
-
const generatedId =
|
|
3494
|
+
const generatedId = React21.useId();
|
|
3344
3495
|
const checkboxId = id || generatedId;
|
|
3345
3496
|
const errorId = `${checkboxId}-error`;
|
|
3346
3497
|
return /* @__PURE__ */ jsxs16("div", { className: "flex items-start gap-3", children: [
|
|
3347
|
-
/* @__PURE__ */
|
|
3498
|
+
/* @__PURE__ */ jsx37("div", { className: "relative flex items-start pt-0.5", children: /* @__PURE__ */ jsx37(
|
|
3348
3499
|
Checkbox,
|
|
3349
3500
|
{
|
|
3350
3501
|
ref,
|
|
@@ -3360,7 +3511,7 @@ var Checkbox2 = React19.forwardRef(
|
|
|
3360
3511
|
className
|
|
3361
3512
|
),
|
|
3362
3513
|
...props,
|
|
3363
|
-
children: /* @__PURE__ */
|
|
3514
|
+
children: /* @__PURE__ */ jsx37(CheckboxPrimitive2.Indicator, { children: /* @__PURE__ */ jsx37(
|
|
3364
3515
|
Check,
|
|
3365
3516
|
{
|
|
3366
3517
|
className: "h-4 w-4 text-current stroke-current",
|
|
@@ -3370,7 +3521,7 @@ var Checkbox2 = React19.forwardRef(
|
|
|
3370
3521
|
}
|
|
3371
3522
|
) }),
|
|
3372
3523
|
(label || description || error) && /* @__PURE__ */ jsxs16("div", { className: "flex flex-col gap-1", children: [
|
|
3373
|
-
label && /* @__PURE__ */
|
|
3524
|
+
label && /* @__PURE__ */ jsx37(
|
|
3374
3525
|
"label",
|
|
3375
3526
|
{
|
|
3376
3527
|
htmlFor: checkboxId,
|
|
@@ -3382,8 +3533,8 @@ var Checkbox2 = React19.forwardRef(
|
|
|
3382
3533
|
children: label
|
|
3383
3534
|
}
|
|
3384
3535
|
),
|
|
3385
|
-
description && /* @__PURE__ */
|
|
3386
|
-
error && /* @__PURE__ */
|
|
3536
|
+
description && /* @__PURE__ */ jsx37(Typography, { variant: "xs", color: "muted", children: description }),
|
|
3537
|
+
error && /* @__PURE__ */ jsx37(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
3387
3538
|
] })
|
|
3388
3539
|
] });
|
|
3389
3540
|
}
|
|
@@ -3391,11 +3542,11 @@ var Checkbox2 = React19.forwardRef(
|
|
|
3391
3542
|
Checkbox2.displayName = "Checkbox";
|
|
3392
3543
|
|
|
3393
3544
|
// src/components/switch/Switch.tsx
|
|
3394
|
-
import * as
|
|
3545
|
+
import * as React22 from "react";
|
|
3395
3546
|
import { Switch as SwitchPrimitives } from "@base-ui/react/switch";
|
|
3396
|
-
import { cva as
|
|
3397
|
-
import { jsx as
|
|
3398
|
-
var switchRootVariants =
|
|
3547
|
+
import { cva as cva13 } from "class-variance-authority";
|
|
3548
|
+
import { jsx as jsx38, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
3549
|
+
var switchRootVariants = cva13(
|
|
3399
3550
|
"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",
|
|
3400
3551
|
{
|
|
3401
3552
|
variants: {
|
|
@@ -3416,7 +3567,7 @@ var switchRootVariants = cva12(
|
|
|
3416
3567
|
}
|
|
3417
3568
|
}
|
|
3418
3569
|
);
|
|
3419
|
-
var switchThumbVariants =
|
|
3570
|
+
var switchThumbVariants = cva13(
|
|
3420
3571
|
"pointer-events-none block rounded-full ring-0 transition-transform shadow-berget-sm bg-berget-foreground",
|
|
3421
3572
|
{
|
|
3422
3573
|
variants: {
|
|
@@ -3431,7 +3582,7 @@ var switchThumbVariants = cva12(
|
|
|
3431
3582
|
}
|
|
3432
3583
|
}
|
|
3433
3584
|
);
|
|
3434
|
-
var Switch =
|
|
3585
|
+
var Switch = React22.forwardRef(
|
|
3435
3586
|
({
|
|
3436
3587
|
"aria-label": ariaLabel,
|
|
3437
3588
|
className,
|
|
@@ -3444,11 +3595,11 @@ var Switch = React20.forwardRef(
|
|
|
3444
3595
|
disabled,
|
|
3445
3596
|
...props
|
|
3446
3597
|
}, ref) => {
|
|
3447
|
-
const generatedId =
|
|
3598
|
+
const generatedId = React22.useId();
|
|
3448
3599
|
const switchId = id || generatedId;
|
|
3449
3600
|
const errorId = `${switchId}-error`;
|
|
3450
3601
|
return /* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-3", children: [
|
|
3451
|
-
/* @__PURE__ */
|
|
3602
|
+
/* @__PURE__ */ jsx38(
|
|
3452
3603
|
SwitchPrimitives.Root,
|
|
3453
3604
|
{
|
|
3454
3605
|
ref,
|
|
@@ -3463,11 +3614,11 @@ var Switch = React20.forwardRef(
|
|
|
3463
3614
|
className
|
|
3464
3615
|
),
|
|
3465
3616
|
...props,
|
|
3466
|
-
children: /* @__PURE__ */
|
|
3617
|
+
children: /* @__PURE__ */ jsx38(SwitchPrimitives.Thumb, { className: cn(switchThumbVariants({ size })) })
|
|
3467
3618
|
}
|
|
3468
3619
|
),
|
|
3469
3620
|
(label || description || error) && /* @__PURE__ */ jsxs17("div", { className: "flex flex-col gap-1", children: [
|
|
3470
|
-
label && /* @__PURE__ */
|
|
3621
|
+
label && /* @__PURE__ */ jsx38(
|
|
3471
3622
|
"label",
|
|
3472
3623
|
{
|
|
3473
3624
|
htmlFor: switchId,
|
|
@@ -3478,8 +3629,8 @@ var Switch = React20.forwardRef(
|
|
|
3478
3629
|
children: label
|
|
3479
3630
|
}
|
|
3480
3631
|
),
|
|
3481
|
-
description && /* @__PURE__ */
|
|
3482
|
-
error && /* @__PURE__ */
|
|
3632
|
+
description && /* @__PURE__ */ jsx38(Typography, { variant: "xs", color: "muted", children: description }),
|
|
3633
|
+
error && /* @__PURE__ */ jsx38(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
3483
3634
|
] })
|
|
3484
3635
|
] });
|
|
3485
3636
|
}
|
|
@@ -3488,26 +3639,26 @@ Switch.displayName = "Switch";
|
|
|
3488
3639
|
|
|
3489
3640
|
// src/primitives/select.tsx
|
|
3490
3641
|
import { Select as SelectPrimitive } from "@base-ui/react/select";
|
|
3491
|
-
import { cn as
|
|
3642
|
+
import { cn as cn17 } from "cn";
|
|
3492
3643
|
import { ChevronDownIcon as ChevronDownIcon2, CheckIcon as CheckIcon3, ChevronUpIcon } from "lucide-react";
|
|
3493
|
-
import { jsx as
|
|
3644
|
+
import { jsx as jsx39, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
3494
3645
|
var Select = SelectPrimitive.Root;
|
|
3495
3646
|
function SelectGroup({ className, ...props }) {
|
|
3496
|
-
return /* @__PURE__ */
|
|
3647
|
+
return /* @__PURE__ */ jsx39(
|
|
3497
3648
|
SelectPrimitive.Group,
|
|
3498
3649
|
{
|
|
3499
3650
|
"data-slot": "select-group",
|
|
3500
|
-
className:
|
|
3651
|
+
className: cn17("scroll-my-1 p-1", className),
|
|
3501
3652
|
...props
|
|
3502
3653
|
}
|
|
3503
3654
|
);
|
|
3504
3655
|
}
|
|
3505
3656
|
function SelectValue({ className, ...props }) {
|
|
3506
|
-
return /* @__PURE__ */
|
|
3657
|
+
return /* @__PURE__ */ jsx39(
|
|
3507
3658
|
SelectPrimitive.Value,
|
|
3508
3659
|
{
|
|
3509
3660
|
"data-slot": "select-value",
|
|
3510
|
-
className:
|
|
3661
|
+
className: cn17("flex flex-1 text-left", className),
|
|
3511
3662
|
...props
|
|
3512
3663
|
}
|
|
3513
3664
|
);
|
|
@@ -3523,17 +3674,17 @@ function SelectTrigger({
|
|
|
3523
3674
|
{
|
|
3524
3675
|
"data-slot": "select-trigger",
|
|
3525
3676
|
"data-size": size,
|
|
3526
|
-
className:
|
|
3677
|
+
className: cn17(
|
|
3527
3678
|
"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",
|
|
3528
3679
|
className
|
|
3529
3680
|
),
|
|
3530
3681
|
...props,
|
|
3531
3682
|
children: [
|
|
3532
3683
|
children,
|
|
3533
|
-
/* @__PURE__ */
|
|
3684
|
+
/* @__PURE__ */ jsx39(
|
|
3534
3685
|
SelectPrimitive.Icon,
|
|
3535
3686
|
{
|
|
3536
|
-
render: /* @__PURE__ */
|
|
3687
|
+
render: /* @__PURE__ */ jsx39(ChevronDownIcon2, { className: "pointer-events-none size-4 text-muted-foreground" })
|
|
3537
3688
|
}
|
|
3538
3689
|
)
|
|
3539
3690
|
]
|
|
@@ -3550,7 +3701,7 @@ function SelectContent({
|
|
|
3550
3701
|
alignItemWithTrigger = true,
|
|
3551
3702
|
...props
|
|
3552
3703
|
}) {
|
|
3553
|
-
return /* @__PURE__ */
|
|
3704
|
+
return /* @__PURE__ */ jsx39(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx39(
|
|
3554
3705
|
SelectPrimitive.Positioner,
|
|
3555
3706
|
{
|
|
3556
3707
|
side,
|
|
@@ -3564,12 +3715,12 @@ function SelectContent({
|
|
|
3564
3715
|
{
|
|
3565
3716
|
"data-slot": "select-content",
|
|
3566
3717
|
"data-align-trigger": alignItemWithTrigger,
|
|
3567
|
-
className:
|
|
3718
|
+
className: cn17("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),
|
|
3568
3719
|
...props,
|
|
3569
3720
|
children: [
|
|
3570
|
-
/* @__PURE__ */
|
|
3571
|
-
/* @__PURE__ */
|
|
3572
|
-
/* @__PURE__ */
|
|
3721
|
+
/* @__PURE__ */ jsx39(SelectScrollUpButton, {}),
|
|
3722
|
+
/* @__PURE__ */ jsx39(SelectPrimitive.List, { children }),
|
|
3723
|
+
/* @__PURE__ */ jsx39(SelectScrollDownButton, {})
|
|
3573
3724
|
]
|
|
3574
3725
|
}
|
|
3575
3726
|
)
|
|
@@ -3580,11 +3731,11 @@ function SelectLabel({
|
|
|
3580
3731
|
className,
|
|
3581
3732
|
...props
|
|
3582
3733
|
}) {
|
|
3583
|
-
return /* @__PURE__ */
|
|
3734
|
+
return /* @__PURE__ */ jsx39(
|
|
3584
3735
|
SelectPrimitive.GroupLabel,
|
|
3585
3736
|
{
|
|
3586
3737
|
"data-slot": "select-label",
|
|
3587
|
-
className:
|
|
3738
|
+
className: cn17("px-1.5 py-1 text-xs text-muted-foreground", className),
|
|
3588
3739
|
...props
|
|
3589
3740
|
}
|
|
3590
3741
|
);
|
|
@@ -3598,18 +3749,18 @@ function SelectItem({
|
|
|
3598
3749
|
SelectPrimitive.Item,
|
|
3599
3750
|
{
|
|
3600
3751
|
"data-slot": "select-item",
|
|
3601
|
-
className:
|
|
3752
|
+
className: cn17(
|
|
3602
3753
|
"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",
|
|
3603
3754
|
className
|
|
3604
3755
|
),
|
|
3605
3756
|
...props,
|
|
3606
3757
|
children: [
|
|
3607
|
-
/* @__PURE__ */
|
|
3608
|
-
/* @__PURE__ */
|
|
3758
|
+
/* @__PURE__ */ jsx39(SelectPrimitive.ItemText, { className: "flex flex-1 shrink-0 gap-2 whitespace-nowrap", children }),
|
|
3759
|
+
/* @__PURE__ */ jsx39(
|
|
3609
3760
|
SelectPrimitive.ItemIndicator,
|
|
3610
3761
|
{
|
|
3611
|
-
render: /* @__PURE__ */
|
|
3612
|
-
children: /* @__PURE__ */
|
|
3762
|
+
render: /* @__PURE__ */ jsx39("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center" }),
|
|
3763
|
+
children: /* @__PURE__ */ jsx39(CheckIcon3, { className: "pointer-events-none" })
|
|
3613
3764
|
}
|
|
3614
3765
|
)
|
|
3615
3766
|
]
|
|
@@ -3620,11 +3771,11 @@ function SelectSeparator({
|
|
|
3620
3771
|
className,
|
|
3621
3772
|
...props
|
|
3622
3773
|
}) {
|
|
3623
|
-
return /* @__PURE__ */
|
|
3774
|
+
return /* @__PURE__ */ jsx39(
|
|
3624
3775
|
SelectPrimitive.Separator,
|
|
3625
3776
|
{
|
|
3626
3777
|
"data-slot": "select-separator",
|
|
3627
|
-
className:
|
|
3778
|
+
className: cn17("pointer-events-none -mx-1 my-1 h-px bg-border", className),
|
|
3628
3779
|
...props
|
|
3629
3780
|
}
|
|
3630
3781
|
);
|
|
@@ -3633,16 +3784,16 @@ function SelectScrollUpButton({
|
|
|
3633
3784
|
className,
|
|
3634
3785
|
...props
|
|
3635
3786
|
}) {
|
|
3636
|
-
return /* @__PURE__ */
|
|
3787
|
+
return /* @__PURE__ */ jsx39(
|
|
3637
3788
|
SelectPrimitive.ScrollUpArrow,
|
|
3638
3789
|
{
|
|
3639
3790
|
"data-slot": "select-scroll-up-button",
|
|
3640
|
-
className:
|
|
3791
|
+
className: cn17(
|
|
3641
3792
|
"top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",
|
|
3642
3793
|
className
|
|
3643
3794
|
),
|
|
3644
3795
|
...props,
|
|
3645
|
-
children: /* @__PURE__ */
|
|
3796
|
+
children: /* @__PURE__ */ jsx39(
|
|
3646
3797
|
ChevronUpIcon,
|
|
3647
3798
|
{}
|
|
3648
3799
|
)
|
|
@@ -3653,16 +3804,16 @@ function SelectScrollDownButton({
|
|
|
3653
3804
|
className,
|
|
3654
3805
|
...props
|
|
3655
3806
|
}) {
|
|
3656
|
-
return /* @__PURE__ */
|
|
3807
|
+
return /* @__PURE__ */ jsx39(
|
|
3657
3808
|
SelectPrimitive.ScrollDownArrow,
|
|
3658
3809
|
{
|
|
3659
3810
|
"data-slot": "select-scroll-down-button",
|
|
3660
|
-
className:
|
|
3811
|
+
className: cn17(
|
|
3661
3812
|
"bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",
|
|
3662
3813
|
className
|
|
3663
3814
|
),
|
|
3664
3815
|
...props,
|
|
3665
|
-
children: /* @__PURE__ */
|
|
3816
|
+
children: /* @__PURE__ */ jsx39(
|
|
3666
3817
|
ChevronDownIcon2,
|
|
3667
3818
|
{}
|
|
3668
3819
|
)
|
|
@@ -3671,19 +3822,19 @@ function SelectScrollDownButton({
|
|
|
3671
3822
|
}
|
|
3672
3823
|
|
|
3673
3824
|
// src/components/country-select/CountrySelect.tsx
|
|
3674
|
-
import * as
|
|
3825
|
+
import * as React24 from "react";
|
|
3675
3826
|
import { ChevronDown as ChevronDown2, Globe } from "lucide-react";
|
|
3676
3827
|
|
|
3677
3828
|
// src/components/icon/Icon.tsx
|
|
3678
|
-
import * as
|
|
3679
|
-
import { jsx as
|
|
3829
|
+
import * as React23 from "react";
|
|
3830
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
3680
3831
|
var iconStrokeMap = {
|
|
3681
3832
|
12: 1.4,
|
|
3682
3833
|
16: 1.4,
|
|
3683
3834
|
24: 1.6,
|
|
3684
3835
|
32: 1.8
|
|
3685
3836
|
};
|
|
3686
|
-
var Icon =
|
|
3837
|
+
var Icon = React23.forwardRef(
|
|
3687
3838
|
({
|
|
3688
3839
|
icon: IconComponent,
|
|
3689
3840
|
size,
|
|
@@ -3695,7 +3846,7 @@ var Icon = React21.forwardRef(
|
|
|
3695
3846
|
const strokeWidth = iconStrokeMap[size];
|
|
3696
3847
|
const sizeClass = size === 12 ? "w-3 h-3" : size === 16 ? "w-4 h-4" : size === 24 ? "w-6 h-6" : "w-8 h-8";
|
|
3697
3848
|
const ariaAttributes = ariaLabel ? { "aria-label": ariaLabel } : { "aria-hidden": ariaHidden };
|
|
3698
|
-
return /* @__PURE__ */
|
|
3849
|
+
return /* @__PURE__ */ jsx40(
|
|
3699
3850
|
IconComponent,
|
|
3700
3851
|
{
|
|
3701
3852
|
ref,
|
|
@@ -3711,13 +3862,13 @@ Icon.displayName = "Icon";
|
|
|
3711
3862
|
|
|
3712
3863
|
// src/primitives/popover.tsx
|
|
3713
3864
|
import { Popover as PopoverPrimitive } from "@base-ui/react/popover";
|
|
3714
|
-
import { cn as
|
|
3715
|
-
import { jsx as
|
|
3865
|
+
import { cn as cn18 } from "cn";
|
|
3866
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
3716
3867
|
function Popover({ ...props }) {
|
|
3717
|
-
return /* @__PURE__ */
|
|
3868
|
+
return /* @__PURE__ */ jsx41(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
|
|
3718
3869
|
}
|
|
3719
3870
|
function PopoverTrigger({ ...props }) {
|
|
3720
|
-
return /* @__PURE__ */
|
|
3871
|
+
return /* @__PURE__ */ jsx41(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
|
|
3721
3872
|
}
|
|
3722
3873
|
function PopoverContent({
|
|
3723
3874
|
className,
|
|
@@ -3727,7 +3878,7 @@ function PopoverContent({
|
|
|
3727
3878
|
sideOffset = 4,
|
|
3728
3879
|
...props
|
|
3729
3880
|
}) {
|
|
3730
|
-
return /* @__PURE__ */
|
|
3881
|
+
return /* @__PURE__ */ jsx41(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx41(
|
|
3731
3882
|
PopoverPrimitive.Positioner,
|
|
3732
3883
|
{
|
|
3733
3884
|
align,
|
|
@@ -3735,11 +3886,11 @@ function PopoverContent({
|
|
|
3735
3886
|
side,
|
|
3736
3887
|
sideOffset,
|
|
3737
3888
|
className: "isolate z-50",
|
|
3738
|
-
children: /* @__PURE__ */
|
|
3889
|
+
children: /* @__PURE__ */ jsx41(
|
|
3739
3890
|
PopoverPrimitive.Popup,
|
|
3740
3891
|
{
|
|
3741
3892
|
"data-slot": "popover-content",
|
|
3742
|
-
className:
|
|
3893
|
+
className: cn18(
|
|
3743
3894
|
"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",
|
|
3744
3895
|
className
|
|
3745
3896
|
),
|
|
@@ -3752,27 +3903,27 @@ function PopoverContent({
|
|
|
3752
3903
|
|
|
3753
3904
|
// src/primitives/command.tsx
|
|
3754
3905
|
import { Command as CommandPrimitive } from "cmdk";
|
|
3755
|
-
import { cn as
|
|
3906
|
+
import { cn as cn22 } from "cn";
|
|
3756
3907
|
|
|
3757
3908
|
// src/primitives/dialog.tsx
|
|
3758
3909
|
import { Dialog as DialogPrimitive2 } from "@base-ui/react/dialog";
|
|
3759
|
-
import { cn as
|
|
3910
|
+
import { cn as cn19 } from "cn";
|
|
3760
3911
|
import { XIcon as XIcon2 } from "lucide-react";
|
|
3761
|
-
import { jsx as
|
|
3912
|
+
import { jsx as jsx42, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
3762
3913
|
|
|
3763
3914
|
// src/primitives/input-group.tsx
|
|
3764
|
-
import { cva as
|
|
3765
|
-
import { cn as
|
|
3915
|
+
import { cva as cva14 } from "class-variance-authority";
|
|
3916
|
+
import { cn as cn21 } from "cn";
|
|
3766
3917
|
|
|
3767
3918
|
// src/primitives/textarea.tsx
|
|
3768
|
-
import { cn as
|
|
3769
|
-
import { jsx as
|
|
3919
|
+
import { cn as cn20 } from "cn";
|
|
3920
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
3770
3921
|
function Textarea({ className, ...props }) {
|
|
3771
|
-
return /* @__PURE__ */
|
|
3922
|
+
return /* @__PURE__ */ jsx43(
|
|
3772
3923
|
"textarea",
|
|
3773
3924
|
{
|
|
3774
3925
|
"data-slot": "textarea",
|
|
3775
|
-
className:
|
|
3926
|
+
className: cn20(
|
|
3776
3927
|
"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",
|
|
3777
3928
|
className
|
|
3778
3929
|
),
|
|
@@ -3782,14 +3933,14 @@ function Textarea({ className, ...props }) {
|
|
|
3782
3933
|
}
|
|
3783
3934
|
|
|
3784
3935
|
// src/primitives/input-group.tsx
|
|
3785
|
-
import { jsx as
|
|
3936
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
3786
3937
|
function InputGroup({ className, ...props }) {
|
|
3787
|
-
return /* @__PURE__ */
|
|
3938
|
+
return /* @__PURE__ */ jsx44(
|
|
3788
3939
|
"div",
|
|
3789
3940
|
{
|
|
3790
3941
|
"data-slot": "input-group",
|
|
3791
3942
|
role: "group",
|
|
3792
|
-
className:
|
|
3943
|
+
className: cn21(
|
|
3793
3944
|
"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",
|
|
3794
3945
|
className
|
|
3795
3946
|
),
|
|
@@ -3797,7 +3948,7 @@ function InputGroup({ className, ...props }) {
|
|
|
3797
3948
|
}
|
|
3798
3949
|
);
|
|
3799
3950
|
}
|
|
3800
|
-
var inputGroupAddonVariants =
|
|
3951
|
+
var inputGroupAddonVariants = cva14(
|
|
3801
3952
|
"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",
|
|
3802
3953
|
{
|
|
3803
3954
|
variants: {
|
|
@@ -3818,13 +3969,13 @@ function InputGroupAddon({
|
|
|
3818
3969
|
align = "inline-start",
|
|
3819
3970
|
...props
|
|
3820
3971
|
}) {
|
|
3821
|
-
return /* @__PURE__ */
|
|
3972
|
+
return /* @__PURE__ */ jsx44(
|
|
3822
3973
|
"div",
|
|
3823
3974
|
{
|
|
3824
3975
|
role: "group",
|
|
3825
3976
|
"data-slot": "input-group-addon",
|
|
3826
3977
|
"data-align": align,
|
|
3827
|
-
className:
|
|
3978
|
+
className: cn21(inputGroupAddonVariants({ align }), className),
|
|
3828
3979
|
onClick: (e) => {
|
|
3829
3980
|
if (e.target.closest("button")) {
|
|
3830
3981
|
return;
|
|
@@ -3835,7 +3986,7 @@ function InputGroupAddon({
|
|
|
3835
3986
|
}
|
|
3836
3987
|
);
|
|
3837
3988
|
}
|
|
3838
|
-
var inputGroupButtonVariants =
|
|
3989
|
+
var inputGroupButtonVariants = cva14(
|
|
3839
3990
|
"flex items-center gap-2 text-sm shadow-none",
|
|
3840
3991
|
{
|
|
3841
3992
|
variants: {
|
|
@@ -3854,16 +4005,16 @@ var inputGroupButtonVariants = cva13(
|
|
|
3854
4005
|
|
|
3855
4006
|
// src/primitives/command.tsx
|
|
3856
4007
|
import { SearchIcon, CheckIcon as CheckIcon4 } from "lucide-react";
|
|
3857
|
-
import { jsx as
|
|
4008
|
+
import { jsx as jsx45, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3858
4009
|
function Command({
|
|
3859
4010
|
className,
|
|
3860
4011
|
...props
|
|
3861
4012
|
}) {
|
|
3862
|
-
return /* @__PURE__ */
|
|
4013
|
+
return /* @__PURE__ */ jsx45(
|
|
3863
4014
|
CommandPrimitive,
|
|
3864
4015
|
{
|
|
3865
4016
|
"data-slot": "command",
|
|
3866
|
-
className:
|
|
4017
|
+
className: cn22(
|
|
3867
4018
|
"flex size-full flex-col overflow-hidden rounded-xl! bg-popover p-1 text-popover-foreground",
|
|
3868
4019
|
className
|
|
3869
4020
|
),
|
|
@@ -3875,30 +4026,30 @@ function CommandInput({
|
|
|
3875
4026
|
className,
|
|
3876
4027
|
...props
|
|
3877
4028
|
}) {
|
|
3878
|
-
return /* @__PURE__ */
|
|
3879
|
-
/* @__PURE__ */
|
|
4029
|
+
return /* @__PURE__ */ jsx45("div", { "data-slot": "command-input-wrapper", className: "p-1 pb-0", children: /* @__PURE__ */ jsxs20(InputGroup, { className: "h-8! rounded-lg! border-input/30 bg-input/30 shadow-none! *:data-[slot=input-group-addon]:pl-2!", children: [
|
|
4030
|
+
/* @__PURE__ */ jsx45(
|
|
3880
4031
|
CommandPrimitive.Input,
|
|
3881
4032
|
{
|
|
3882
4033
|
"data-slot": "command-input",
|
|
3883
|
-
className:
|
|
4034
|
+
className: cn22(
|
|
3884
4035
|
"w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
|
|
3885
4036
|
className
|
|
3886
4037
|
),
|
|
3887
4038
|
...props
|
|
3888
4039
|
}
|
|
3889
4040
|
),
|
|
3890
|
-
/* @__PURE__ */
|
|
4041
|
+
/* @__PURE__ */ jsx45(InputGroupAddon, { children: /* @__PURE__ */ jsx45(SearchIcon, { className: "size-4 shrink-0 opacity-50" }) })
|
|
3891
4042
|
] }) });
|
|
3892
4043
|
}
|
|
3893
4044
|
function CommandList({
|
|
3894
4045
|
className,
|
|
3895
4046
|
...props
|
|
3896
4047
|
}) {
|
|
3897
|
-
return /* @__PURE__ */
|
|
4048
|
+
return /* @__PURE__ */ jsx45(
|
|
3898
4049
|
CommandPrimitive.List,
|
|
3899
4050
|
{
|
|
3900
4051
|
"data-slot": "command-list",
|
|
3901
|
-
className:
|
|
4052
|
+
className: cn22(
|
|
3902
4053
|
"no-scrollbar max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none",
|
|
3903
4054
|
className
|
|
3904
4055
|
),
|
|
@@ -3910,11 +4061,11 @@ function CommandEmpty({
|
|
|
3910
4061
|
className,
|
|
3911
4062
|
...props
|
|
3912
4063
|
}) {
|
|
3913
|
-
return /* @__PURE__ */
|
|
4064
|
+
return /* @__PURE__ */ jsx45(
|
|
3914
4065
|
CommandPrimitive.Empty,
|
|
3915
4066
|
{
|
|
3916
4067
|
"data-slot": "command-empty",
|
|
3917
|
-
className:
|
|
4068
|
+
className: cn22("py-6 text-center text-sm", className),
|
|
3918
4069
|
...props
|
|
3919
4070
|
}
|
|
3920
4071
|
);
|
|
@@ -3923,11 +4074,11 @@ function CommandGroup({
|
|
|
3923
4074
|
className,
|
|
3924
4075
|
...props
|
|
3925
4076
|
}) {
|
|
3926
|
-
return /* @__PURE__ */
|
|
4077
|
+
return /* @__PURE__ */ jsx45(
|
|
3927
4078
|
CommandPrimitive.Group,
|
|
3928
4079
|
{
|
|
3929
4080
|
"data-slot": "command-group",
|
|
3930
|
-
className:
|
|
4081
|
+
className: cn22(
|
|
3931
4082
|
"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",
|
|
3932
4083
|
className
|
|
3933
4084
|
),
|
|
@@ -3944,14 +4095,14 @@ function CommandItem({
|
|
|
3944
4095
|
CommandPrimitive.Item,
|
|
3945
4096
|
{
|
|
3946
4097
|
"data-slot": "command-item",
|
|
3947
|
-
className:
|
|
4098
|
+
className: cn22(
|
|
3948
4099
|
"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",
|
|
3949
4100
|
className
|
|
3950
4101
|
),
|
|
3951
4102
|
...props,
|
|
3952
4103
|
children: [
|
|
3953
4104
|
children,
|
|
3954
|
-
/* @__PURE__ */
|
|
4105
|
+
/* @__PURE__ */ jsx45(CheckIcon4, { className: "ml-auto opacity-0 group-has-data-[slot=command-shortcut]/command-item:hidden group-data-[checked=true]/command-item:opacity-100" })
|
|
3955
4106
|
]
|
|
3956
4107
|
}
|
|
3957
4108
|
);
|
|
@@ -4099,8 +4250,8 @@ var isEUCountry = (countryCode) => {
|
|
|
4099
4250
|
};
|
|
4100
4251
|
|
|
4101
4252
|
// src/components/country-select/CountrySelect.tsx
|
|
4102
|
-
import { Fragment as Fragment2, jsx as
|
|
4103
|
-
var CountrySelect =
|
|
4253
|
+
import { Fragment as Fragment2, jsx as jsx46, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
4254
|
+
var CountrySelect = React24.forwardRef(
|
|
4104
4255
|
({
|
|
4105
4256
|
value,
|
|
4106
4257
|
onValueChange,
|
|
@@ -4110,14 +4261,14 @@ var CountrySelect = React22.forwardRef(
|
|
|
4110
4261
|
align = "center",
|
|
4111
4262
|
sideOffset = 4
|
|
4112
4263
|
}, ref) => {
|
|
4113
|
-
const [open, setOpen] =
|
|
4114
|
-
const selectedCountry =
|
|
4264
|
+
const [open, setOpen] = React24.useState(false);
|
|
4265
|
+
const selectedCountry = React24.useMemo(() => COUNTRIES.find((c) => c.code === value), [value]);
|
|
4115
4266
|
return /* @__PURE__ */ jsxs21(Popover, { open, onOpenChange: setOpen, children: [
|
|
4116
4267
|
/* @__PURE__ */ jsxs21(
|
|
4117
4268
|
PopoverTrigger,
|
|
4118
4269
|
{
|
|
4119
4270
|
ref,
|
|
4120
|
-
render: /* @__PURE__ */
|
|
4271
|
+
render: /* @__PURE__ */ jsx46(
|
|
4121
4272
|
"button",
|
|
4122
4273
|
{
|
|
4123
4274
|
type: "button",
|
|
@@ -4139,16 +4290,16 @@ var CountrySelect = React22.forwardRef(
|
|
|
4139
4290
|
}
|
|
4140
4291
|
),
|
|
4141
4292
|
children: [
|
|
4142
|
-
/* @__PURE__ */
|
|
4143
|
-
/* @__PURE__ */
|
|
4144
|
-
/* @__PURE__ */
|
|
4293
|
+
/* @__PURE__ */ jsx46("div", { className: "flex items-center gap-2 min-w-0 flex-1", children: selectedCountry ? /* @__PURE__ */ jsxs21(Fragment2, { children: [
|
|
4294
|
+
/* @__PURE__ */ jsx46("span", { className: "text-xl flex-shrink-0", children: selectedCountry.flag }),
|
|
4295
|
+
/* @__PURE__ */ jsx46("span", { className: "truncate", children: selectedCountry.name }),
|
|
4145
4296
|
/* @__PURE__ */ jsxs21("span", { className: "text-berget-muted-foreground text-xs flex-shrink-0", children: [
|
|
4146
4297
|
"(",
|
|
4147
4298
|
selectedCountry.code,
|
|
4148
4299
|
")"
|
|
4149
4300
|
] })
|
|
4150
4301
|
] }) : /* @__PURE__ */ jsxs21(Fragment2, { children: [
|
|
4151
|
-
/* @__PURE__ */
|
|
4302
|
+
/* @__PURE__ */ jsx46(
|
|
4152
4303
|
Icon,
|
|
4153
4304
|
{
|
|
4154
4305
|
icon: Globe,
|
|
@@ -4156,9 +4307,9 @@ var CountrySelect = React22.forwardRef(
|
|
|
4156
4307
|
className: "flex-shrink-0 text-berget-muted-foreground"
|
|
4157
4308
|
}
|
|
4158
4309
|
),
|
|
4159
|
-
/* @__PURE__ */
|
|
4310
|
+
/* @__PURE__ */ jsx46("span", { className: "text-berget-muted-foreground truncate", children: placeholder })
|
|
4160
4311
|
] }) }),
|
|
4161
|
-
/* @__PURE__ */
|
|
4312
|
+
/* @__PURE__ */ jsx46(
|
|
4162
4313
|
Icon,
|
|
4163
4314
|
{
|
|
4164
4315
|
icon: ChevronDown2,
|
|
@@ -4173,17 +4324,17 @@ var CountrySelect = React22.forwardRef(
|
|
|
4173
4324
|
]
|
|
4174
4325
|
}
|
|
4175
4326
|
),
|
|
4176
|
-
/* @__PURE__ */
|
|
4327
|
+
/* @__PURE__ */ jsx46(
|
|
4177
4328
|
PopoverContent,
|
|
4178
4329
|
{
|
|
4179
4330
|
align,
|
|
4180
4331
|
sideOffset,
|
|
4181
4332
|
className: "w-[var(--radix-popover-trigger-width)] p-0",
|
|
4182
4333
|
children: /* @__PURE__ */ jsxs21(Command, { children: [
|
|
4183
|
-
/* @__PURE__ */
|
|
4334
|
+
/* @__PURE__ */ jsx46(CommandInput, { placeholder: "Search country..." }),
|
|
4184
4335
|
/* @__PURE__ */ jsxs21(CommandList, { children: [
|
|
4185
|
-
/* @__PURE__ */
|
|
4186
|
-
/* @__PURE__ */
|
|
4336
|
+
/* @__PURE__ */ jsx46(CommandEmpty, { children: "No countries found." }),
|
|
4337
|
+
/* @__PURE__ */ jsx46(CommandGroup, { children: COUNTRIES.map((country) => /* @__PURE__ */ jsxs21(
|
|
4187
4338
|
CommandItem,
|
|
4188
4339
|
{
|
|
4189
4340
|
value: `${country.name} ${country.code}`,
|
|
@@ -4197,12 +4348,12 @@ var CountrySelect = React22.forwardRef(
|
|
|
4197
4348
|
value === country.code && "bg-berget-brand-granite-800/40"
|
|
4198
4349
|
),
|
|
4199
4350
|
children: [
|
|
4200
|
-
/* @__PURE__ */
|
|
4351
|
+
/* @__PURE__ */ jsx46("span", { className: "text-xl flex-shrink-0", children: country.flag }),
|
|
4201
4352
|
/* @__PURE__ */ jsxs21("div", { className: "flex-1 min-w-0", children: [
|
|
4202
|
-
/* @__PURE__ */
|
|
4203
|
-
/* @__PURE__ */
|
|
4353
|
+
/* @__PURE__ */ jsx46("div", { className: "text-sm truncate", children: country.name }),
|
|
4354
|
+
/* @__PURE__ */ jsx46("div", { className: "text-xs text-berget-muted-foreground", children: country.code })
|
|
4204
4355
|
] }),
|
|
4205
|
-
value === country.code && /* @__PURE__ */
|
|
4356
|
+
value === country.code && /* @__PURE__ */ jsx46("div", { className: "w-2 h-2 rounded-full bg-berget-brand-granite-400 flex-shrink-0" })
|
|
4206
4357
|
]
|
|
4207
4358
|
},
|
|
4208
4359
|
country.code
|
|
@@ -4217,14 +4368,14 @@ var CountrySelect = React22.forwardRef(
|
|
|
4217
4368
|
CountrySelect.displayName = "CountrySelect";
|
|
4218
4369
|
|
|
4219
4370
|
// src/primitives/label.tsx
|
|
4220
|
-
import { cn as
|
|
4221
|
-
import { jsx as
|
|
4371
|
+
import { cn as cn23 } from "cn";
|
|
4372
|
+
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
4222
4373
|
function Label({ className, ...props }) {
|
|
4223
|
-
return /* @__PURE__ */
|
|
4374
|
+
return /* @__PURE__ */ jsx47(
|
|
4224
4375
|
"label",
|
|
4225
4376
|
{
|
|
4226
4377
|
"data-slot": "label",
|
|
4227
|
-
className:
|
|
4378
|
+
className: cn23(
|
|
4228
4379
|
"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",
|
|
4229
4380
|
className
|
|
4230
4381
|
),
|
|
@@ -4235,15 +4386,15 @@ function Label({ className, ...props }) {
|
|
|
4235
4386
|
|
|
4236
4387
|
// src/primitives/field.tsx
|
|
4237
4388
|
import { useMemo as useMemo4 } from "react";
|
|
4238
|
-
import { cva as
|
|
4239
|
-
import { cn as
|
|
4240
|
-
import { jsx as
|
|
4389
|
+
import { cva as cva15 } from "class-variance-authority";
|
|
4390
|
+
import { cn as cn24 } from "cn";
|
|
4391
|
+
import { jsx as jsx48, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
4241
4392
|
function FieldSet({ className, ...props }) {
|
|
4242
|
-
return /* @__PURE__ */
|
|
4393
|
+
return /* @__PURE__ */ jsx48(
|
|
4243
4394
|
"fieldset",
|
|
4244
4395
|
{
|
|
4245
4396
|
"data-slot": "field-set",
|
|
4246
|
-
className:
|
|
4397
|
+
className: cn24(
|
|
4247
4398
|
"flex flex-col gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3",
|
|
4248
4399
|
className
|
|
4249
4400
|
),
|
|
@@ -4256,12 +4407,12 @@ function FieldLegend({
|
|
|
4256
4407
|
variant = "legend",
|
|
4257
4408
|
...props
|
|
4258
4409
|
}) {
|
|
4259
|
-
return /* @__PURE__ */
|
|
4410
|
+
return /* @__PURE__ */ jsx48(
|
|
4260
4411
|
"legend",
|
|
4261
4412
|
{
|
|
4262
4413
|
"data-slot": "field-legend",
|
|
4263
4414
|
"data-variant": variant,
|
|
4264
|
-
className:
|
|
4415
|
+
className: cn24(
|
|
4265
4416
|
"mb-1.5 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base",
|
|
4266
4417
|
className
|
|
4267
4418
|
),
|
|
@@ -4270,11 +4421,11 @@ function FieldLegend({
|
|
|
4270
4421
|
);
|
|
4271
4422
|
}
|
|
4272
4423
|
function FieldGroup({ className, ...props }) {
|
|
4273
|
-
return /* @__PURE__ */
|
|
4424
|
+
return /* @__PURE__ */ jsx48(
|
|
4274
4425
|
"div",
|
|
4275
4426
|
{
|
|
4276
4427
|
"data-slot": "field-group",
|
|
4277
|
-
className:
|
|
4428
|
+
className: cn24(
|
|
4278
4429
|
"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",
|
|
4279
4430
|
className
|
|
4280
4431
|
),
|
|
@@ -4282,7 +4433,7 @@ function FieldGroup({ className, ...props }) {
|
|
|
4282
4433
|
}
|
|
4283
4434
|
);
|
|
4284
4435
|
}
|
|
4285
|
-
var fieldVariants =
|
|
4436
|
+
var fieldVariants = cva15(
|
|
4286
4437
|
"group/field flex w-full gap-2 data-[invalid=true]:text-destructive",
|
|
4287
4438
|
{
|
|
4288
4439
|
variants: {
|
|
@@ -4302,23 +4453,23 @@ function Field({
|
|
|
4302
4453
|
orientation = "vertical",
|
|
4303
4454
|
...props
|
|
4304
4455
|
}) {
|
|
4305
|
-
return /* @__PURE__ */
|
|
4456
|
+
return /* @__PURE__ */ jsx48(
|
|
4306
4457
|
"div",
|
|
4307
4458
|
{
|
|
4308
4459
|
role: "group",
|
|
4309
4460
|
"data-slot": "field",
|
|
4310
4461
|
"data-orientation": orientation,
|
|
4311
|
-
className:
|
|
4462
|
+
className: cn24(fieldVariants({ orientation }), className),
|
|
4312
4463
|
...props
|
|
4313
4464
|
}
|
|
4314
4465
|
);
|
|
4315
4466
|
}
|
|
4316
4467
|
function FieldContent({ className, ...props }) {
|
|
4317
|
-
return /* @__PURE__ */
|
|
4468
|
+
return /* @__PURE__ */ jsx48(
|
|
4318
4469
|
"div",
|
|
4319
4470
|
{
|
|
4320
4471
|
"data-slot": "field-content",
|
|
4321
|
-
className:
|
|
4472
|
+
className: cn24(
|
|
4322
4473
|
"group/field-content flex flex-1 flex-col gap-0.5 leading-snug",
|
|
4323
4474
|
className
|
|
4324
4475
|
),
|
|
@@ -4330,11 +4481,11 @@ function FieldLabel({
|
|
|
4330
4481
|
className,
|
|
4331
4482
|
...props
|
|
4332
4483
|
}) {
|
|
4333
|
-
return /* @__PURE__ */
|
|
4484
|
+
return /* @__PURE__ */ jsx48(
|
|
4334
4485
|
Label,
|
|
4335
4486
|
{
|
|
4336
4487
|
"data-slot": "field-label",
|
|
4337
|
-
className:
|
|
4488
|
+
className: cn24(
|
|
4338
4489
|
"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",
|
|
4339
4490
|
"has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col",
|
|
4340
4491
|
className
|
|
@@ -4344,11 +4495,11 @@ function FieldLabel({
|
|
|
4344
4495
|
);
|
|
4345
4496
|
}
|
|
4346
4497
|
function FieldTitle({ className, ...props }) {
|
|
4347
|
-
return /* @__PURE__ */
|
|
4498
|
+
return /* @__PURE__ */ jsx48(
|
|
4348
4499
|
"div",
|
|
4349
4500
|
{
|
|
4350
4501
|
"data-slot": "field-label",
|
|
4351
|
-
className:
|
|
4502
|
+
className: cn24(
|
|
4352
4503
|
"flex w-fit items-center gap-2 text-sm font-medium group-data-[disabled=true]/field:opacity-50",
|
|
4353
4504
|
className
|
|
4354
4505
|
),
|
|
@@ -4357,11 +4508,11 @@ function FieldTitle({ className, ...props }) {
|
|
|
4357
4508
|
);
|
|
4358
4509
|
}
|
|
4359
4510
|
function FieldDescription({ className, ...props }) {
|
|
4360
|
-
return /* @__PURE__ */
|
|
4511
|
+
return /* @__PURE__ */ jsx48(
|
|
4361
4512
|
"p",
|
|
4362
4513
|
{
|
|
4363
4514
|
"data-slot": "field-description",
|
|
4364
|
-
className:
|
|
4515
|
+
className: cn24(
|
|
4365
4516
|
"text-left text-sm leading-normal font-normal text-muted-foreground group-has-data-horizontal/field:text-balance [[data-variant=legend]+&]:-mt-1.5",
|
|
4366
4517
|
"last:mt-0 nth-last-2:-mt-1",
|
|
4367
4518
|
"[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",
|
|
@@ -4381,14 +4532,14 @@ function FieldSeparator({
|
|
|
4381
4532
|
{
|
|
4382
4533
|
"data-slot": "field-separator",
|
|
4383
4534
|
"data-content": !!children,
|
|
4384
|
-
className:
|
|
4535
|
+
className: cn24(
|
|
4385
4536
|
"relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2",
|
|
4386
4537
|
className
|
|
4387
4538
|
),
|
|
4388
4539
|
...props,
|
|
4389
4540
|
children: [
|
|
4390
|
-
/* @__PURE__ */
|
|
4391
|
-
children && /* @__PURE__ */
|
|
4541
|
+
/* @__PURE__ */ jsx48(Separator, { className: "absolute inset-0 top-1/2" }),
|
|
4542
|
+
children && /* @__PURE__ */ jsx48(
|
|
4392
4543
|
"span",
|
|
4393
4544
|
{
|
|
4394
4545
|
className: "relative mx-auto block w-fit bg-background px-2 text-muted-foreground",
|
|
@@ -4419,19 +4570,19 @@ function FieldError({
|
|
|
4419
4570
|
if (uniqueErrors?.length == 1) {
|
|
4420
4571
|
return uniqueErrors[0]?.message;
|
|
4421
4572
|
}
|
|
4422
|
-
return /* @__PURE__ */
|
|
4423
|
-
(error, index) => error?.message && /* @__PURE__ */
|
|
4573
|
+
return /* @__PURE__ */ jsx48("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: uniqueErrors.map(
|
|
4574
|
+
(error, index) => error?.message && /* @__PURE__ */ jsx48("li", { children: error.message }, index)
|
|
4424
4575
|
) });
|
|
4425
4576
|
}, [children, errors]);
|
|
4426
4577
|
if (!content) {
|
|
4427
4578
|
return null;
|
|
4428
4579
|
}
|
|
4429
|
-
return /* @__PURE__ */
|
|
4580
|
+
return /* @__PURE__ */ jsx48(
|
|
4430
4581
|
"div",
|
|
4431
4582
|
{
|
|
4432
4583
|
role: "alert",
|
|
4433
4584
|
"data-slot": "field-error",
|
|
4434
|
-
className:
|
|
4585
|
+
className: cn24("text-sm font-normal text-destructive", className),
|
|
4435
4586
|
...props,
|
|
4436
4587
|
children: content
|
|
4437
4588
|
}
|
|
@@ -4439,11 +4590,11 @@ function FieldError({
|
|
|
4439
4590
|
}
|
|
4440
4591
|
|
|
4441
4592
|
// src/components/link/Link.tsx
|
|
4442
|
-
import * as
|
|
4443
|
-
import { cva as
|
|
4593
|
+
import * as React25 from "react";
|
|
4594
|
+
import { cva as cva16 } from "class-variance-authority";
|
|
4444
4595
|
import { ExternalLink } from "lucide-react";
|
|
4445
|
-
import { jsx as
|
|
4446
|
-
var linkVariants =
|
|
4596
|
+
import { jsx as jsx49, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
4597
|
+
var linkVariants = cva16(
|
|
4447
4598
|
"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",
|
|
4448
4599
|
{
|
|
4449
4600
|
variants: {
|
|
@@ -4467,7 +4618,7 @@ var linkVariants = cva15(
|
|
|
4467
4618
|
}
|
|
4468
4619
|
}
|
|
4469
4620
|
);
|
|
4470
|
-
var Link =
|
|
4621
|
+
var Link = React25.forwardRef(
|
|
4471
4622
|
({
|
|
4472
4623
|
className,
|
|
4473
4624
|
variant,
|
|
@@ -4496,8 +4647,8 @@ var Link = React23.forwardRef(
|
|
|
4496
4647
|
},
|
|
4497
4648
|
children: [
|
|
4498
4649
|
children,
|
|
4499
|
-
icon && /* @__PURE__ */
|
|
4500
|
-
showExternalIcon && isExternal && !disabled && /* @__PURE__ */
|
|
4650
|
+
icon && /* @__PURE__ */ jsx49("span", { className: "inline-flex items-center", children: icon }),
|
|
4651
|
+
showExternalIcon && isExternal && !disabled && /* @__PURE__ */ jsx49("span", { className: "inline-flex items-center ml-1 opacity-60", "aria-hidden": "true", children: /* @__PURE__ */ jsx49(Icon, { icon: ExternalLink, size: 16 }) })
|
|
4501
4652
|
]
|
|
4502
4653
|
}
|
|
4503
4654
|
);
|
|
@@ -4506,11 +4657,11 @@ var Link = React23.forwardRef(
|
|
|
4506
4657
|
Link.displayName = "Link";
|
|
4507
4658
|
|
|
4508
4659
|
// src/components/container/Container.tsx
|
|
4509
|
-
import * as
|
|
4660
|
+
import * as React26 from "react";
|
|
4510
4661
|
import { mergeProps as mergeProps3 } from "@base-ui/react/merge-props";
|
|
4511
4662
|
import { useRender as useRender3 } from "@base-ui/react/use-render";
|
|
4512
|
-
import { cva as
|
|
4513
|
-
var containerVariants =
|
|
4663
|
+
import { cva as cva17 } from "class-variance-authority";
|
|
4664
|
+
var containerVariants = cva17("w-full mx-auto", {
|
|
4514
4665
|
variants: {
|
|
4515
4666
|
size: {
|
|
4516
4667
|
sm: "max-w-3xl",
|
|
@@ -4531,7 +4682,7 @@ var containerVariants = cva16("w-full mx-auto", {
|
|
|
4531
4682
|
padding: "md"
|
|
4532
4683
|
}
|
|
4533
4684
|
});
|
|
4534
|
-
var Container =
|
|
4685
|
+
var Container = React26.forwardRef(
|
|
4535
4686
|
({ className, size, padding, asChild = false, children, ...props }, ref) => {
|
|
4536
4687
|
return useRender3({
|
|
4537
4688
|
ref,
|
|
@@ -4550,11 +4701,11 @@ var Container = React24.forwardRef(
|
|
|
4550
4701
|
Container.displayName = "Container";
|
|
4551
4702
|
|
|
4552
4703
|
// src/components/grid/Grid.tsx
|
|
4553
|
-
import * as
|
|
4554
|
-
import { cva as
|
|
4704
|
+
import * as React27 from "react";
|
|
4705
|
+
import { cva as cva18 } from "class-variance-authority";
|
|
4555
4706
|
import { mergeProps as mergeProps4 } from "@base-ui/react/merge-props";
|
|
4556
4707
|
import { useRender as useRender4 } from "@base-ui/react/use-render";
|
|
4557
|
-
var gridVariants =
|
|
4708
|
+
var gridVariants = cva18("grid", {
|
|
4558
4709
|
variants: {
|
|
4559
4710
|
align: {
|
|
4560
4711
|
start: "items-start",
|
|
@@ -4576,7 +4727,7 @@ var gridVariants = cva17("grid", {
|
|
|
4576
4727
|
justify: "start"
|
|
4577
4728
|
}
|
|
4578
4729
|
});
|
|
4579
|
-
var Grid =
|
|
4730
|
+
var Grid = React27.forwardRef(
|
|
4580
4731
|
({ className, align, justify, cols, rows, gap, gapX, gapY, asChild = false, children, ...props }, ref) => {
|
|
4581
4732
|
return useRender4({
|
|
4582
4733
|
ref,
|
|
@@ -4603,11 +4754,11 @@ var Grid = React25.forwardRef(
|
|
|
4603
4754
|
Grid.displayName = "Grid";
|
|
4604
4755
|
|
|
4605
4756
|
// src/components/box/Box.tsx
|
|
4606
|
-
import * as
|
|
4607
|
-
import { cva as
|
|
4757
|
+
import * as React28 from "react";
|
|
4758
|
+
import { cva as cva19 } from "class-variance-authority";
|
|
4608
4759
|
import { mergeProps as mergeProps5 } from "@base-ui/react/merge-props";
|
|
4609
4760
|
import { useRender as useRender5 } from "@base-ui/react/use-render";
|
|
4610
|
-
var boxVariants =
|
|
4761
|
+
var boxVariants = cva19("flex", {
|
|
4611
4762
|
variants: {
|
|
4612
4763
|
direction: {
|
|
4613
4764
|
row: "flex-row",
|
|
@@ -4643,7 +4794,7 @@ var boxVariants = cva18("flex", {
|
|
|
4643
4794
|
wrap: "nowrap"
|
|
4644
4795
|
}
|
|
4645
4796
|
});
|
|
4646
|
-
var Box =
|
|
4797
|
+
var Box = React28.forwardRef(
|
|
4647
4798
|
({ className, direction, align, justify, wrap, gap, asChild = false, children, ...props }, ref) => {
|
|
4648
4799
|
return useRender5({
|
|
4649
4800
|
ref,
|
|
@@ -4666,22 +4817,22 @@ var Box = React26.forwardRef(
|
|
|
4666
4817
|
Box.displayName = "Box";
|
|
4667
4818
|
|
|
4668
4819
|
// src/components/language-select/LanguageSelect.tsx
|
|
4669
|
-
import * as
|
|
4820
|
+
import * as React29 from "react";
|
|
4670
4821
|
import { Globe as Globe2 } from "lucide-react";
|
|
4671
|
-
import { jsx as
|
|
4672
|
-
var LanguageSelect =
|
|
4822
|
+
import { jsx as jsx50, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
4823
|
+
var LanguageSelect = React29.forwardRef(
|
|
4673
4824
|
({ className, options, value, onValueChange }, ref) => {
|
|
4674
4825
|
return /* @__PURE__ */ jsxs24(DropdownMenu, { children: [
|
|
4675
|
-
/* @__PURE__ */
|
|
4676
|
-
/* @__PURE__ */
|
|
4677
|
-
/* @__PURE__ */
|
|
4826
|
+
/* @__PURE__ */ jsx50(DropdownMenuTrigger2, { ref, asChild: true, children: /* @__PURE__ */ jsxs24(Button2, { variant: "outline", size: "icon", className, "aria-label": "Select language", children: [
|
|
4827
|
+
/* @__PURE__ */ jsx50("span", { className: "sr-only", children: "Select language" }),
|
|
4828
|
+
/* @__PURE__ */ jsx50(Icon, { icon: Globe2, size: 16, "aria-hidden": true })
|
|
4678
4829
|
] }) }),
|
|
4679
|
-
/* @__PURE__ */
|
|
4830
|
+
/* @__PURE__ */ jsx50(DropdownMenuContent2, { align: "start", children: /* @__PURE__ */ jsx50(
|
|
4680
4831
|
DropdownMenuRadioGroup,
|
|
4681
4832
|
{
|
|
4682
4833
|
value,
|
|
4683
4834
|
onValueChange: onValueChange ? (v) => onValueChange(v) : void 0,
|
|
4684
|
-
children: options.map((option) => /* @__PURE__ */
|
|
4835
|
+
children: options.map((option) => /* @__PURE__ */ jsx50(
|
|
4685
4836
|
DropdownMenuRadioItem2,
|
|
4686
4837
|
{
|
|
4687
4838
|
value: option.value,
|
|
@@ -4699,13 +4850,13 @@ var LanguageSelect = React27.forwardRef(
|
|
|
4699
4850
|
LanguageSelect.displayName = "LanguageSelect";
|
|
4700
4851
|
|
|
4701
4852
|
// src/components/list/List.tsx
|
|
4702
|
-
import * as
|
|
4853
|
+
import * as React31 from "react";
|
|
4703
4854
|
|
|
4704
4855
|
// src/components/divider/Divider.tsx
|
|
4705
|
-
import * as
|
|
4706
|
-
import { cva as
|
|
4707
|
-
import { jsx as
|
|
4708
|
-
var dividerVariants =
|
|
4856
|
+
import * as React30 from "react";
|
|
4857
|
+
import { cva as cva20 } from "class-variance-authority";
|
|
4858
|
+
import { jsx as jsx51, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
4859
|
+
var dividerVariants = cva20("", {
|
|
4709
4860
|
variants: {
|
|
4710
4861
|
variant: {
|
|
4711
4862
|
default: "bg-berget-separator",
|
|
@@ -4725,7 +4876,7 @@ var dividerVariants = cva19("", {
|
|
|
4725
4876
|
size: "thin"
|
|
4726
4877
|
}
|
|
4727
4878
|
});
|
|
4728
|
-
var Divider =
|
|
4879
|
+
var Divider = React30.forwardRef(
|
|
4729
4880
|
({
|
|
4730
4881
|
className,
|
|
4731
4882
|
orientation = "horizontal",
|
|
@@ -4737,15 +4888,15 @@ var Divider = React28.forwardRef(
|
|
|
4737
4888
|
}, ref) => {
|
|
4738
4889
|
if (label) {
|
|
4739
4890
|
return /* @__PURE__ */ jsxs25("div", { ref, className: cn("flex items-center w-full", className), ...props, children: [
|
|
4740
|
-
labelPosition !== "right" && /* @__PURE__ */
|
|
4891
|
+
labelPosition !== "right" && /* @__PURE__ */ jsx51(
|
|
4741
4892
|
Separator,
|
|
4742
4893
|
{
|
|
4743
4894
|
orientation: "horizontal",
|
|
4744
4895
|
className: cn(dividerVariants({ variant, size }), "flex-1")
|
|
4745
4896
|
}
|
|
4746
4897
|
),
|
|
4747
|
-
/* @__PURE__ */
|
|
4748
|
-
labelPosition !== "left" && /* @__PURE__ */
|
|
4898
|
+
/* @__PURE__ */ jsx51(Typography, { variant: "small", color: "muted", className: "px-4 whitespace-nowrap", children: label }),
|
|
4899
|
+
labelPosition !== "left" && /* @__PURE__ */ jsx51(
|
|
4749
4900
|
Separator,
|
|
4750
4901
|
{
|
|
4751
4902
|
orientation: "horizontal",
|
|
@@ -4754,7 +4905,7 @@ var Divider = React28.forwardRef(
|
|
|
4754
4905
|
)
|
|
4755
4906
|
] });
|
|
4756
4907
|
}
|
|
4757
|
-
return /* @__PURE__ */
|
|
4908
|
+
return /* @__PURE__ */ jsx51(
|
|
4758
4909
|
Separator,
|
|
4759
4910
|
{
|
|
4760
4911
|
ref,
|
|
@@ -4772,18 +4923,18 @@ Divider.displayName = "Divider";
|
|
|
4772
4923
|
|
|
4773
4924
|
// src/components/list/List.tsx
|
|
4774
4925
|
import { Check as Check2 } from "lucide-react";
|
|
4775
|
-
import { jsx as
|
|
4776
|
-
var List =
|
|
4926
|
+
import { jsx as jsx52, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
4927
|
+
var List = React31.forwardRef(
|
|
4777
4928
|
({ className, children, ...props }, ref) => {
|
|
4778
|
-
const childrenArray =
|
|
4779
|
-
return /* @__PURE__ */
|
|
4929
|
+
const childrenArray = React31.Children.toArray(children);
|
|
4930
|
+
return /* @__PURE__ */ jsx52("div", { ref, className: cn("flex flex-col", className), ...props, children: childrenArray.map((child, index) => /* @__PURE__ */ jsxs26(React31.Fragment, { children: [
|
|
4780
4931
|
child,
|
|
4781
|
-
index < childrenArray.length - 1 && /* @__PURE__ */
|
|
4932
|
+
index < childrenArray.length - 1 && /* @__PURE__ */ jsx52(Divider, { variant: "subtle" })
|
|
4782
4933
|
] }, index)) });
|
|
4783
4934
|
}
|
|
4784
4935
|
);
|
|
4785
4936
|
List.displayName = "List";
|
|
4786
|
-
var ListItem =
|
|
4937
|
+
var ListItem = React31.forwardRef(
|
|
4787
4938
|
({ className, icon, children, interactive = true, ...props }, ref) => /* @__PURE__ */ jsxs26(
|
|
4788
4939
|
"div",
|
|
4789
4940
|
{
|
|
@@ -4795,15 +4946,15 @@ var ListItem = React29.forwardRef(
|
|
|
4795
4946
|
),
|
|
4796
4947
|
...props,
|
|
4797
4948
|
children: [
|
|
4798
|
-
icon && /* @__PURE__ */
|
|
4799
|
-
/* @__PURE__ */
|
|
4949
|
+
icon && /* @__PURE__ */ jsx52("div", { className: "flex-shrink-0 flex items-center justify-center", children: icon }),
|
|
4950
|
+
/* @__PURE__ */ jsx52("div", { className: "flex-1 min-w-0", children })
|
|
4800
4951
|
]
|
|
4801
4952
|
}
|
|
4802
4953
|
)
|
|
4803
4954
|
);
|
|
4804
4955
|
ListItem.displayName = "ListItem";
|
|
4805
|
-
var ListHeader =
|
|
4806
|
-
({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
4956
|
+
var ListHeader = React31.forwardRef(
|
|
4957
|
+
({ className, children, ...props }, ref) => /* @__PURE__ */ jsx52(
|
|
4807
4958
|
"div",
|
|
4808
4959
|
{
|
|
4809
4960
|
ref,
|
|
@@ -4814,11 +4965,11 @@ var ListHeader = React29.forwardRef(
|
|
|
4814
4965
|
)
|
|
4815
4966
|
);
|
|
4816
4967
|
ListHeader.displayName = "ListHeader";
|
|
4817
|
-
var FeatureList =
|
|
4968
|
+
var FeatureList = React31.forwardRef(
|
|
4818
4969
|
({ items, variant = "bullet", className, ...props }, ref) => {
|
|
4819
|
-
return /* @__PURE__ */
|
|
4820
|
-
variant === "bullet" ? /* @__PURE__ */
|
|
4821
|
-
/* @__PURE__ */
|
|
4970
|
+
return /* @__PURE__ */ jsx52("ul", { ref, className: cn("flex flex-col gap-fluid-md", className), ...props, children: items.map((item, index) => /* @__PURE__ */ jsxs26("li", { className: "flex items-start gap-fluid-md", children: [
|
|
4971
|
+
variant === "bullet" ? /* @__PURE__ */ jsx52("span", { className: "w-1.5 h-1.5 rounded-full bg-berget-icon-muted flex-shrink-0 mt-2" }) : /* @__PURE__ */ jsx52("div", { className: "flex-shrink-0 mt-0.5", children: /* @__PURE__ */ jsx52(Icon, { icon: Check2, size: 24, className: "text-berget-logo-light" }) }),
|
|
4972
|
+
/* @__PURE__ */ jsx52(Typography, { variant: "body", color: "muted", children: item })
|
|
4822
4973
|
] }, index)) });
|
|
4823
4974
|
}
|
|
4824
4975
|
);
|
|
@@ -4827,7 +4978,7 @@ FeatureList.displayName = "FeatureList";
|
|
|
4827
4978
|
// src/components/code-block/CodeBlock.tsx
|
|
4828
4979
|
import { useState as useState5, useEffect as useEffect4, useCallback as useCallback4 } from "react";
|
|
4829
4980
|
import { Copy, Check as Check3 } from "lucide-react";
|
|
4830
|
-
import { jsx as
|
|
4981
|
+
import { jsx as jsx53, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
4831
4982
|
function CodeBlock({ code, language = "text", title, className }) {
|
|
4832
4983
|
const [html, setHtml] = useState5(null);
|
|
4833
4984
|
const [copied, setCopied] = useState5(false);
|
|
@@ -4843,13 +4994,13 @@ function CodeBlock({ code, language = "text", title, className }) {
|
|
|
4843
4994
|
setCopied(true);
|
|
4844
4995
|
setTimeout(() => setCopied(false), 2e3);
|
|
4845
4996
|
}, [code]);
|
|
4846
|
-
const copyButton = /* @__PURE__ */
|
|
4997
|
+
const copyButton = /* @__PURE__ */ jsx53(
|
|
4847
4998
|
"button",
|
|
4848
4999
|
{
|
|
4849
5000
|
onClick: handleCopy,
|
|
4850
5001
|
className: "flex items-center justify-center w-6 h-6 text-berget-muted-foreground hover:text-berget-foreground transition-colors",
|
|
4851
5002
|
"aria-label": "Copy code",
|
|
4852
|
-
children: copied ? /* @__PURE__ */
|
|
5003
|
+
children: copied ? /* @__PURE__ */ jsx53(Check3, { className: "w-3.5 h-3.5" }) : /* @__PURE__ */ jsx53(Copy, { className: "w-3.5 h-3.5" })
|
|
4853
5004
|
}
|
|
4854
5005
|
);
|
|
4855
5006
|
return /* @__PURE__ */ jsxs27(
|
|
@@ -4860,25 +5011,25 @@ function CodeBlock({ code, language = "text", title, className }) {
|
|
|
4860
5011
|
className
|
|
4861
5012
|
),
|
|
4862
5013
|
children: [
|
|
4863
|
-
title && /* @__PURE__ */
|
|
4864
|
-
/* @__PURE__ */
|
|
4865
|
-
html ? /* @__PURE__ */
|
|
5014
|
+
title && /* @__PURE__ */ jsx53("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__ */ jsx53("span", { className: "text-berget-muted-foreground", children: title }) }),
|
|
5015
|
+
/* @__PURE__ */ jsx53("div", { className: "absolute right-2 top-2 z-10", children: copyButton }),
|
|
5016
|
+
html ? /* @__PURE__ */ jsx53(
|
|
4866
5017
|
"div",
|
|
4867
5018
|
{
|
|
4868
5019
|
className: "[&_.shiki]:!p-4 [&_.shiki]:!m-0 [&_.shiki]:overflow-x-auto [&_.shiki]:!text-sm [&_.shiki]:!leading-relaxed [&_.shiki]:bg-transparent",
|
|
4869
5020
|
dangerouslySetInnerHTML: { __html: html }
|
|
4870
5021
|
}
|
|
4871
|
-
) : /* @__PURE__ */
|
|
5022
|
+
) : /* @__PURE__ */ jsx53("pre", { className: "!p-4 !m-0 overflow-x-auto !text-sm !leading-relaxed text-berget-muted-foreground", children: /* @__PURE__ */ jsx53("code", { children: code }) })
|
|
4872
5023
|
]
|
|
4873
5024
|
}
|
|
4874
5025
|
);
|
|
4875
5026
|
}
|
|
4876
5027
|
|
|
4877
5028
|
// src/components/window-frame/WindowFrame.tsx
|
|
4878
|
-
import * as
|
|
5029
|
+
import * as React32 from "react";
|
|
4879
5030
|
import { useState as useState6 } from "react";
|
|
4880
|
-
import { jsx as
|
|
4881
|
-
var WindowFrame =
|
|
5031
|
+
import { jsx as jsx54, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
5032
|
+
var WindowFrame = React32.forwardRef(
|
|
4882
5033
|
({ title = "window", tabs, activeTab, onTabChange, children, className, ...props }, ref) => {
|
|
4883
5034
|
const [internalActive, setInternalActive] = useState6(tabs?.[0]?.id ?? "");
|
|
4884
5035
|
const currentTab = activeTab ?? internalActive;
|
|
@@ -4901,11 +5052,11 @@ var WindowFrame = React30.forwardRef(
|
|
|
4901
5052
|
children: [
|
|
4902
5053
|
/* @__PURE__ */ jsxs28("div", { className: "flex items-center gap-2 px-4 py-3 border-b border-berget-brand-granite-700 bg-berget-brand-granite-900", children: [
|
|
4903
5054
|
/* @__PURE__ */ jsxs28("div", { className: "flex items-center gap-2 flex-shrink-0", children: [
|
|
4904
|
-
/* @__PURE__ */
|
|
4905
|
-
/* @__PURE__ */
|
|
4906
|
-
/* @__PURE__ */
|
|
5055
|
+
/* @__PURE__ */ jsx54("div", { className: "w-3 h-3 rounded-full bg-berget-brand-muscaria-400" }),
|
|
5056
|
+
/* @__PURE__ */ jsx54("div", { className: "w-3 h-3 rounded-full bg-berget-brand-chanterelle-200" }),
|
|
5057
|
+
/* @__PURE__ */ jsx54("div", { className: "w-3 h-3 rounded-full bg-berget-brand-moss-400" })
|
|
4907
5058
|
] }),
|
|
4908
|
-
tabs && tabs.length > 0 ? /* @__PURE__ */
|
|
5059
|
+
tabs && tabs.length > 0 ? /* @__PURE__ */ jsx54("div", { className: "ml-4 flex items-center gap-1", children: tabs.map((tab) => /* @__PURE__ */ jsx54(
|
|
4909
5060
|
"button",
|
|
4910
5061
|
{
|
|
4911
5062
|
type: "button",
|
|
@@ -4917,9 +5068,9 @@ var WindowFrame = React30.forwardRef(
|
|
|
4917
5068
|
children: tab.label
|
|
4918
5069
|
},
|
|
4919
5070
|
tab.id
|
|
4920
|
-
)) }) : /* @__PURE__ */
|
|
5071
|
+
)) }) : /* @__PURE__ */ jsx54("span", { className: "ml-4 text-sm font-mono text-berget-brand-moss-400", children: title })
|
|
4921
5072
|
] }),
|
|
4922
|
-
/* @__PURE__ */
|
|
5073
|
+
/* @__PURE__ */ jsx54("div", { children })
|
|
4923
5074
|
]
|
|
4924
5075
|
}
|
|
4925
5076
|
);
|
|
@@ -4929,7 +5080,7 @@ WindowFrame.displayName = "WindowFrame";
|
|
|
4929
5080
|
|
|
4930
5081
|
// src/components/fog-illustration/FogIllustration.tsx
|
|
4931
5082
|
import { useEffect as useEffect5, useRef } from "react";
|
|
4932
|
-
import { jsx as
|
|
5083
|
+
import { jsx as jsx55 } from "react/jsx-runtime";
|
|
4933
5084
|
var FOG_BRAND_PALETTE = {
|
|
4934
5085
|
ink: "#171a1a",
|
|
4935
5086
|
milk: "#f7f5ed",
|
|
@@ -5242,7 +5393,7 @@ var FogIllustration = ({ palette, speed = 1, className }) => {
|
|
|
5242
5393
|
gl.deleteFramebuffer(fbo);
|
|
5243
5394
|
};
|
|
5244
5395
|
}, []);
|
|
5245
|
-
return /* @__PURE__ */
|
|
5396
|
+
return /* @__PURE__ */ jsx55("canvas", { ref, "aria-hidden": "true", className: cn("size-full", className) });
|
|
5246
5397
|
};
|
|
5247
5398
|
export {
|
|
5248
5399
|
Alert2 as Alert,
|
|
@@ -5301,6 +5452,12 @@ export {
|
|
|
5301
5452
|
DropdownMenuSubTrigger2 as DropdownMenuSubTrigger,
|
|
5302
5453
|
DropdownMenuTrigger2 as DropdownMenuTrigger,
|
|
5303
5454
|
EU_COUNTRY_CODES,
|
|
5455
|
+
Empty2 as Empty,
|
|
5456
|
+
EmptyContent,
|
|
5457
|
+
EmptyDescription2 as EmptyDescription,
|
|
5458
|
+
EmptyHeader,
|
|
5459
|
+
EmptyMedia2 as EmptyMedia,
|
|
5460
|
+
EmptyTitle2 as EmptyTitle,
|
|
5304
5461
|
FOG_BRAND_PALETTE,
|
|
5305
5462
|
FeatureList,
|
|
5306
5463
|
Field,
|
|
@@ -5379,6 +5536,7 @@ export {
|
|
|
5379
5536
|
SidebarRail,
|
|
5380
5537
|
SidebarSeparator,
|
|
5381
5538
|
SidebarTrigger,
|
|
5539
|
+
Skeleton2 as Skeleton,
|
|
5382
5540
|
Switch,
|
|
5383
5541
|
Table2 as Table,
|
|
5384
5542
|
TableBody2 as TableBody,
|