@bergetai/ui 0.13.6 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +482 -470
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +440 -429
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.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,
|
|
@@ -3239,14 +3249,14 @@ var ItemSeparator2 = React18.forwardRef(({ className, ...props }, ref) => {
|
|
|
3239
3249
|
ItemSeparator2.displayName = "ItemSeparator";
|
|
3240
3250
|
|
|
3241
3251
|
// src/components/empty/Empty.tsx
|
|
3242
|
-
import * as
|
|
3252
|
+
import * as React20 from "react";
|
|
3243
3253
|
|
|
3244
3254
|
// src/primitives/empty.tsx
|
|
3245
3255
|
import { cva as cva11 } from "class-variance-authority";
|
|
3246
3256
|
import { cn as cn15 } from "cn";
|
|
3247
|
-
import { jsx as
|
|
3257
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
3248
3258
|
function Empty({ className, ...props }) {
|
|
3249
|
-
return /* @__PURE__ */
|
|
3259
|
+
return /* @__PURE__ */ jsx33(
|
|
3250
3260
|
"div",
|
|
3251
3261
|
{
|
|
3252
3262
|
"data-slot": "empty",
|
|
@@ -3259,7 +3269,7 @@ function Empty({ className, ...props }) {
|
|
|
3259
3269
|
);
|
|
3260
3270
|
}
|
|
3261
3271
|
function EmptyHeader({ className, ...props }) {
|
|
3262
|
-
return /* @__PURE__ */
|
|
3272
|
+
return /* @__PURE__ */ jsx33(
|
|
3263
3273
|
"div",
|
|
3264
3274
|
{
|
|
3265
3275
|
"data-slot": "empty-header",
|
|
@@ -3287,7 +3297,7 @@ function EmptyMedia({
|
|
|
3287
3297
|
variant = "default",
|
|
3288
3298
|
...props
|
|
3289
3299
|
}) {
|
|
3290
|
-
return /* @__PURE__ */
|
|
3300
|
+
return /* @__PURE__ */ jsx33(
|
|
3291
3301
|
"div",
|
|
3292
3302
|
{
|
|
3293
3303
|
"data-slot": "empty-icon",
|
|
@@ -3298,7 +3308,7 @@ function EmptyMedia({
|
|
|
3298
3308
|
);
|
|
3299
3309
|
}
|
|
3300
3310
|
function EmptyTitle({ className, ...props }) {
|
|
3301
|
-
return /* @__PURE__ */
|
|
3311
|
+
return /* @__PURE__ */ jsx33(
|
|
3302
3312
|
"div",
|
|
3303
3313
|
{
|
|
3304
3314
|
"data-slot": "empty-title",
|
|
@@ -3311,7 +3321,7 @@ function EmptyTitle({ className, ...props }) {
|
|
|
3311
3321
|
);
|
|
3312
3322
|
}
|
|
3313
3323
|
function EmptyDescription({ className, ...props }) {
|
|
3314
|
-
return /* @__PURE__ */
|
|
3324
|
+
return /* @__PURE__ */ jsx33(
|
|
3315
3325
|
"div",
|
|
3316
3326
|
{
|
|
3317
3327
|
"data-slot": "empty-description",
|
|
@@ -3324,7 +3334,7 @@ function EmptyDescription({ className, ...props }) {
|
|
|
3324
3334
|
);
|
|
3325
3335
|
}
|
|
3326
3336
|
function EmptyContent({ className, ...props }) {
|
|
3327
|
-
return /* @__PURE__ */
|
|
3337
|
+
return /* @__PURE__ */ jsx33(
|
|
3328
3338
|
"div",
|
|
3329
3339
|
{
|
|
3330
3340
|
"data-slot": "empty-content",
|
|
@@ -3338,12 +3348,12 @@ function EmptyContent({ className, ...props }) {
|
|
|
3338
3348
|
}
|
|
3339
3349
|
|
|
3340
3350
|
// src/components/empty/Empty.tsx
|
|
3341
|
-
import { jsx as
|
|
3351
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
3342
3352
|
function Empty2({ className, ...props }) {
|
|
3343
|
-
return /* @__PURE__ */
|
|
3353
|
+
return /* @__PURE__ */ jsx34(Empty, { className, ...props });
|
|
3344
3354
|
}
|
|
3345
|
-
var EmptyMedia2 =
|
|
3346
|
-
return /* @__PURE__ */
|
|
3355
|
+
var EmptyMedia2 = React20.forwardRef(({ className, ...props }, ref) => {
|
|
3356
|
+
return /* @__PURE__ */ jsx34(
|
|
3347
3357
|
EmptyMedia,
|
|
3348
3358
|
{
|
|
3349
3359
|
ref,
|
|
@@ -3356,8 +3366,8 @@ var EmptyMedia2 = React19.forwardRef(({ className, ...props }, ref) => {
|
|
|
3356
3366
|
);
|
|
3357
3367
|
});
|
|
3358
3368
|
EmptyMedia2.displayName = "EmptyMedia";
|
|
3359
|
-
var EmptyTitle2 =
|
|
3360
|
-
return /* @__PURE__ */
|
|
3369
|
+
var EmptyTitle2 = React20.forwardRef(({ className, ...props }, ref) => {
|
|
3370
|
+
return /* @__PURE__ */ jsx34(
|
|
3361
3371
|
EmptyTitle,
|
|
3362
3372
|
{
|
|
3363
3373
|
ref,
|
|
@@ -3367,8 +3377,8 @@ var EmptyTitle2 = React19.forwardRef(({ className, ...props }, ref) => {
|
|
|
3367
3377
|
);
|
|
3368
3378
|
});
|
|
3369
3379
|
EmptyTitle2.displayName = "EmptyTitle";
|
|
3370
|
-
var EmptyDescription2 =
|
|
3371
|
-
return /* @__PURE__ */
|
|
3380
|
+
var EmptyDescription2 = React20.forwardRef(({ className, ...props }, ref) => {
|
|
3381
|
+
return /* @__PURE__ */ jsx34(
|
|
3372
3382
|
EmptyDescription,
|
|
3373
3383
|
{
|
|
3374
3384
|
ref,
|
|
@@ -3381,7 +3391,7 @@ EmptyDescription2.displayName = "EmptyDescription";
|
|
|
3381
3391
|
|
|
3382
3392
|
// src/components/search-input/SearchInput.tsx
|
|
3383
3393
|
import { Search } from "lucide-react";
|
|
3384
|
-
import { jsx as
|
|
3394
|
+
import { jsx as jsx35, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
3385
3395
|
var SearchInput = ({
|
|
3386
3396
|
type = "search",
|
|
3387
3397
|
placeholder = "Search...",
|
|
@@ -3389,14 +3399,14 @@ var SearchInput = ({
|
|
|
3389
3399
|
ref,
|
|
3390
3400
|
...props
|
|
3391
3401
|
}) => /* @__PURE__ */ jsxs15("div", { className: "relative flex w-full items-center", "data-slot": "search-input", children: [
|
|
3392
|
-
/* @__PURE__ */
|
|
3402
|
+
/* @__PURE__ */ jsx35(
|
|
3393
3403
|
Search,
|
|
3394
3404
|
{
|
|
3395
3405
|
"aria-hidden": "true",
|
|
3396
3406
|
className: "pointer-events-none absolute left-2.5 size-4 text-berget-muted-foreground"
|
|
3397
3407
|
}
|
|
3398
3408
|
),
|
|
3399
|
-
/* @__PURE__ */
|
|
3409
|
+
/* @__PURE__ */ jsx35(
|
|
3400
3410
|
Input,
|
|
3401
3411
|
{
|
|
3402
3412
|
ref,
|
|
@@ -3410,7 +3420,7 @@ var SearchInput = ({
|
|
|
3410
3420
|
SearchInput.displayName = "SearchInput";
|
|
3411
3421
|
|
|
3412
3422
|
// src/components/checkbox/Checkbox.tsx
|
|
3413
|
-
import * as
|
|
3423
|
+
import * as React21 from "react";
|
|
3414
3424
|
import { Checkbox as CheckboxPrimitive2 } from "@base-ui/react/checkbox";
|
|
3415
3425
|
import { Check } from "lucide-react";
|
|
3416
3426
|
import { cva as cva12 } from "class-variance-authority";
|
|
@@ -3419,9 +3429,9 @@ import { cva as cva12 } from "class-variance-authority";
|
|
|
3419
3429
|
import { Checkbox as CheckboxPrimitive } from "@base-ui/react/checkbox";
|
|
3420
3430
|
import { cn as cn16 } from "cn";
|
|
3421
3431
|
import { CheckIcon as CheckIcon2 } from "lucide-react";
|
|
3422
|
-
import { jsx as
|
|
3432
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
3423
3433
|
function Checkbox({ className, ...props }) {
|
|
3424
|
-
return /* @__PURE__ */
|
|
3434
|
+
return /* @__PURE__ */ jsx36(
|
|
3425
3435
|
CheckboxPrimitive.Root,
|
|
3426
3436
|
{
|
|
3427
3437
|
"data-slot": "checkbox",
|
|
@@ -3430,12 +3440,12 @@ function Checkbox({ className, ...props }) {
|
|
|
3430
3440
|
className
|
|
3431
3441
|
),
|
|
3432
3442
|
...props,
|
|
3433
|
-
children: /* @__PURE__ */
|
|
3443
|
+
children: /* @__PURE__ */ jsx36(
|
|
3434
3444
|
CheckboxPrimitive.Indicator,
|
|
3435
3445
|
{
|
|
3436
3446
|
"data-slot": "checkbox-indicator",
|
|
3437
3447
|
className: "grid place-content-center text-current transition-none [&>svg]:size-3.5",
|
|
3438
|
-
children: /* @__PURE__ */
|
|
3448
|
+
children: /* @__PURE__ */ jsx36(
|
|
3439
3449
|
CheckIcon2,
|
|
3440
3450
|
{}
|
|
3441
3451
|
)
|
|
@@ -3446,7 +3456,7 @@ function Checkbox({ className, ...props }) {
|
|
|
3446
3456
|
}
|
|
3447
3457
|
|
|
3448
3458
|
// src/components/checkbox/Checkbox.tsx
|
|
3449
|
-
import { jsx as
|
|
3459
|
+
import { jsx as jsx37, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
3450
3460
|
var checkboxVariants = cva12(
|
|
3451
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",
|
|
3452
3462
|
{
|
|
@@ -3468,7 +3478,7 @@ var checkboxVariants = cva12(
|
|
|
3468
3478
|
}
|
|
3469
3479
|
}
|
|
3470
3480
|
);
|
|
3471
|
-
var Checkbox2 =
|
|
3481
|
+
var Checkbox2 = React21.forwardRef(
|
|
3472
3482
|
({
|
|
3473
3483
|
"aria-label": ariaLabel,
|
|
3474
3484
|
className,
|
|
@@ -3481,11 +3491,11 @@ var Checkbox2 = React20.forwardRef(
|
|
|
3481
3491
|
disabled,
|
|
3482
3492
|
...props
|
|
3483
3493
|
}, ref) => {
|
|
3484
|
-
const generatedId =
|
|
3494
|
+
const generatedId = React21.useId();
|
|
3485
3495
|
const checkboxId = id || generatedId;
|
|
3486
3496
|
const errorId = `${checkboxId}-error`;
|
|
3487
3497
|
return /* @__PURE__ */ jsxs16("div", { className: "flex items-start gap-3", children: [
|
|
3488
|
-
/* @__PURE__ */
|
|
3498
|
+
/* @__PURE__ */ jsx37("div", { className: "relative flex items-start pt-0.5", children: /* @__PURE__ */ jsx37(
|
|
3489
3499
|
Checkbox,
|
|
3490
3500
|
{
|
|
3491
3501
|
ref,
|
|
@@ -3501,7 +3511,7 @@ var Checkbox2 = React20.forwardRef(
|
|
|
3501
3511
|
className
|
|
3502
3512
|
),
|
|
3503
3513
|
...props,
|
|
3504
|
-
children: /* @__PURE__ */
|
|
3514
|
+
children: /* @__PURE__ */ jsx37(CheckboxPrimitive2.Indicator, { children: /* @__PURE__ */ jsx37(
|
|
3505
3515
|
Check,
|
|
3506
3516
|
{
|
|
3507
3517
|
className: "h-4 w-4 text-current stroke-current",
|
|
@@ -3511,7 +3521,7 @@ var Checkbox2 = React20.forwardRef(
|
|
|
3511
3521
|
}
|
|
3512
3522
|
) }),
|
|
3513
3523
|
(label || description || error) && /* @__PURE__ */ jsxs16("div", { className: "flex flex-col gap-1", children: [
|
|
3514
|
-
label && /* @__PURE__ */
|
|
3524
|
+
label && /* @__PURE__ */ jsx37(
|
|
3515
3525
|
"label",
|
|
3516
3526
|
{
|
|
3517
3527
|
htmlFor: checkboxId,
|
|
@@ -3523,8 +3533,8 @@ var Checkbox2 = React20.forwardRef(
|
|
|
3523
3533
|
children: label
|
|
3524
3534
|
}
|
|
3525
3535
|
),
|
|
3526
|
-
description && /* @__PURE__ */
|
|
3527
|
-
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 })
|
|
3528
3538
|
] })
|
|
3529
3539
|
] });
|
|
3530
3540
|
}
|
|
@@ -3532,10 +3542,10 @@ var Checkbox2 = React20.forwardRef(
|
|
|
3532
3542
|
Checkbox2.displayName = "Checkbox";
|
|
3533
3543
|
|
|
3534
3544
|
// src/components/switch/Switch.tsx
|
|
3535
|
-
import * as
|
|
3545
|
+
import * as React22 from "react";
|
|
3536
3546
|
import { Switch as SwitchPrimitives } from "@base-ui/react/switch";
|
|
3537
3547
|
import { cva as cva13 } from "class-variance-authority";
|
|
3538
|
-
import { jsx as
|
|
3548
|
+
import { jsx as jsx38, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
3539
3549
|
var switchRootVariants = cva13(
|
|
3540
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",
|
|
3541
3551
|
{
|
|
@@ -3572,7 +3582,7 @@ var switchThumbVariants = cva13(
|
|
|
3572
3582
|
}
|
|
3573
3583
|
}
|
|
3574
3584
|
);
|
|
3575
|
-
var Switch =
|
|
3585
|
+
var Switch = React22.forwardRef(
|
|
3576
3586
|
({
|
|
3577
3587
|
"aria-label": ariaLabel,
|
|
3578
3588
|
className,
|
|
@@ -3585,11 +3595,11 @@ var Switch = React21.forwardRef(
|
|
|
3585
3595
|
disabled,
|
|
3586
3596
|
...props
|
|
3587
3597
|
}, ref) => {
|
|
3588
|
-
const generatedId =
|
|
3598
|
+
const generatedId = React22.useId();
|
|
3589
3599
|
const switchId = id || generatedId;
|
|
3590
3600
|
const errorId = `${switchId}-error`;
|
|
3591
3601
|
return /* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-3", children: [
|
|
3592
|
-
/* @__PURE__ */
|
|
3602
|
+
/* @__PURE__ */ jsx38(
|
|
3593
3603
|
SwitchPrimitives.Root,
|
|
3594
3604
|
{
|
|
3595
3605
|
ref,
|
|
@@ -3604,11 +3614,11 @@ var Switch = React21.forwardRef(
|
|
|
3604
3614
|
className
|
|
3605
3615
|
),
|
|
3606
3616
|
...props,
|
|
3607
|
-
children: /* @__PURE__ */
|
|
3617
|
+
children: /* @__PURE__ */ jsx38(SwitchPrimitives.Thumb, { className: cn(switchThumbVariants({ size })) })
|
|
3608
3618
|
}
|
|
3609
3619
|
),
|
|
3610
3620
|
(label || description || error) && /* @__PURE__ */ jsxs17("div", { className: "flex flex-col gap-1", children: [
|
|
3611
|
-
label && /* @__PURE__ */
|
|
3621
|
+
label && /* @__PURE__ */ jsx38(
|
|
3612
3622
|
"label",
|
|
3613
3623
|
{
|
|
3614
3624
|
htmlFor: switchId,
|
|
@@ -3619,8 +3629,8 @@ var Switch = React21.forwardRef(
|
|
|
3619
3629
|
children: label
|
|
3620
3630
|
}
|
|
3621
3631
|
),
|
|
3622
|
-
description && /* @__PURE__ */
|
|
3623
|
-
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 })
|
|
3624
3634
|
] })
|
|
3625
3635
|
] });
|
|
3626
3636
|
}
|
|
@@ -3631,10 +3641,10 @@ Switch.displayName = "Switch";
|
|
|
3631
3641
|
import { Select as SelectPrimitive } from "@base-ui/react/select";
|
|
3632
3642
|
import { cn as cn17 } from "cn";
|
|
3633
3643
|
import { ChevronDownIcon as ChevronDownIcon2, CheckIcon as CheckIcon3, ChevronUpIcon } from "lucide-react";
|
|
3634
|
-
import { jsx as
|
|
3644
|
+
import { jsx as jsx39, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
3635
3645
|
var Select = SelectPrimitive.Root;
|
|
3636
3646
|
function SelectGroup({ className, ...props }) {
|
|
3637
|
-
return /* @__PURE__ */
|
|
3647
|
+
return /* @__PURE__ */ jsx39(
|
|
3638
3648
|
SelectPrimitive.Group,
|
|
3639
3649
|
{
|
|
3640
3650
|
"data-slot": "select-group",
|
|
@@ -3644,7 +3654,7 @@ function SelectGroup({ className, ...props }) {
|
|
|
3644
3654
|
);
|
|
3645
3655
|
}
|
|
3646
3656
|
function SelectValue({ className, ...props }) {
|
|
3647
|
-
return /* @__PURE__ */
|
|
3657
|
+
return /* @__PURE__ */ jsx39(
|
|
3648
3658
|
SelectPrimitive.Value,
|
|
3649
3659
|
{
|
|
3650
3660
|
"data-slot": "select-value",
|
|
@@ -3671,10 +3681,10 @@ function SelectTrigger({
|
|
|
3671
3681
|
...props,
|
|
3672
3682
|
children: [
|
|
3673
3683
|
children,
|
|
3674
|
-
/* @__PURE__ */
|
|
3684
|
+
/* @__PURE__ */ jsx39(
|
|
3675
3685
|
SelectPrimitive.Icon,
|
|
3676
3686
|
{
|
|
3677
|
-
render: /* @__PURE__ */
|
|
3687
|
+
render: /* @__PURE__ */ jsx39(ChevronDownIcon2, { className: "pointer-events-none size-4 text-muted-foreground" })
|
|
3678
3688
|
}
|
|
3679
3689
|
)
|
|
3680
3690
|
]
|
|
@@ -3691,7 +3701,7 @@ function SelectContent({
|
|
|
3691
3701
|
alignItemWithTrigger = true,
|
|
3692
3702
|
...props
|
|
3693
3703
|
}) {
|
|
3694
|
-
return /* @__PURE__ */
|
|
3704
|
+
return /* @__PURE__ */ jsx39(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx39(
|
|
3695
3705
|
SelectPrimitive.Positioner,
|
|
3696
3706
|
{
|
|
3697
3707
|
side,
|
|
@@ -3708,9 +3718,9 @@ function SelectContent({
|
|
|
3708
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),
|
|
3709
3719
|
...props,
|
|
3710
3720
|
children: [
|
|
3711
|
-
/* @__PURE__ */
|
|
3712
|
-
/* @__PURE__ */
|
|
3713
|
-
/* @__PURE__ */
|
|
3721
|
+
/* @__PURE__ */ jsx39(SelectScrollUpButton, {}),
|
|
3722
|
+
/* @__PURE__ */ jsx39(SelectPrimitive.List, { children }),
|
|
3723
|
+
/* @__PURE__ */ jsx39(SelectScrollDownButton, {})
|
|
3714
3724
|
]
|
|
3715
3725
|
}
|
|
3716
3726
|
)
|
|
@@ -3721,7 +3731,7 @@ function SelectLabel({
|
|
|
3721
3731
|
className,
|
|
3722
3732
|
...props
|
|
3723
3733
|
}) {
|
|
3724
|
-
return /* @__PURE__ */
|
|
3734
|
+
return /* @__PURE__ */ jsx39(
|
|
3725
3735
|
SelectPrimitive.GroupLabel,
|
|
3726
3736
|
{
|
|
3727
3737
|
"data-slot": "select-label",
|
|
@@ -3745,12 +3755,12 @@ function SelectItem({
|
|
|
3745
3755
|
),
|
|
3746
3756
|
...props,
|
|
3747
3757
|
children: [
|
|
3748
|
-
/* @__PURE__ */
|
|
3749
|
-
/* @__PURE__ */
|
|
3758
|
+
/* @__PURE__ */ jsx39(SelectPrimitive.ItemText, { className: "flex flex-1 shrink-0 gap-2 whitespace-nowrap", children }),
|
|
3759
|
+
/* @__PURE__ */ jsx39(
|
|
3750
3760
|
SelectPrimitive.ItemIndicator,
|
|
3751
3761
|
{
|
|
3752
|
-
render: /* @__PURE__ */
|
|
3753
|
-
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" })
|
|
3754
3764
|
}
|
|
3755
3765
|
)
|
|
3756
3766
|
]
|
|
@@ -3761,7 +3771,7 @@ function SelectSeparator({
|
|
|
3761
3771
|
className,
|
|
3762
3772
|
...props
|
|
3763
3773
|
}) {
|
|
3764
|
-
return /* @__PURE__ */
|
|
3774
|
+
return /* @__PURE__ */ jsx39(
|
|
3765
3775
|
SelectPrimitive.Separator,
|
|
3766
3776
|
{
|
|
3767
3777
|
"data-slot": "select-separator",
|
|
@@ -3774,7 +3784,7 @@ function SelectScrollUpButton({
|
|
|
3774
3784
|
className,
|
|
3775
3785
|
...props
|
|
3776
3786
|
}) {
|
|
3777
|
-
return /* @__PURE__ */
|
|
3787
|
+
return /* @__PURE__ */ jsx39(
|
|
3778
3788
|
SelectPrimitive.ScrollUpArrow,
|
|
3779
3789
|
{
|
|
3780
3790
|
"data-slot": "select-scroll-up-button",
|
|
@@ -3783,7 +3793,7 @@ function SelectScrollUpButton({
|
|
|
3783
3793
|
className
|
|
3784
3794
|
),
|
|
3785
3795
|
...props,
|
|
3786
|
-
children: /* @__PURE__ */
|
|
3796
|
+
children: /* @__PURE__ */ jsx39(
|
|
3787
3797
|
ChevronUpIcon,
|
|
3788
3798
|
{}
|
|
3789
3799
|
)
|
|
@@ -3794,7 +3804,7 @@ function SelectScrollDownButton({
|
|
|
3794
3804
|
className,
|
|
3795
3805
|
...props
|
|
3796
3806
|
}) {
|
|
3797
|
-
return /* @__PURE__ */
|
|
3807
|
+
return /* @__PURE__ */ jsx39(
|
|
3798
3808
|
SelectPrimitive.ScrollDownArrow,
|
|
3799
3809
|
{
|
|
3800
3810
|
"data-slot": "select-scroll-down-button",
|
|
@@ -3803,7 +3813,7 @@ function SelectScrollDownButton({
|
|
|
3803
3813
|
className
|
|
3804
3814
|
),
|
|
3805
3815
|
...props,
|
|
3806
|
-
children: /* @__PURE__ */
|
|
3816
|
+
children: /* @__PURE__ */ jsx39(
|
|
3807
3817
|
ChevronDownIcon2,
|
|
3808
3818
|
{}
|
|
3809
3819
|
)
|
|
@@ -3812,19 +3822,19 @@ function SelectScrollDownButton({
|
|
|
3812
3822
|
}
|
|
3813
3823
|
|
|
3814
3824
|
// src/components/country-select/CountrySelect.tsx
|
|
3815
|
-
import * as
|
|
3825
|
+
import * as React24 from "react";
|
|
3816
3826
|
import { ChevronDown as ChevronDown2, Globe } from "lucide-react";
|
|
3817
3827
|
|
|
3818
3828
|
// src/components/icon/Icon.tsx
|
|
3819
|
-
import * as
|
|
3820
|
-
import { jsx as
|
|
3829
|
+
import * as React23 from "react";
|
|
3830
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
3821
3831
|
var iconStrokeMap = {
|
|
3822
3832
|
12: 1.4,
|
|
3823
3833
|
16: 1.4,
|
|
3824
3834
|
24: 1.6,
|
|
3825
3835
|
32: 1.8
|
|
3826
3836
|
};
|
|
3827
|
-
var Icon =
|
|
3837
|
+
var Icon = React23.forwardRef(
|
|
3828
3838
|
({
|
|
3829
3839
|
icon: IconComponent,
|
|
3830
3840
|
size,
|
|
@@ -3836,7 +3846,7 @@ var Icon = React22.forwardRef(
|
|
|
3836
3846
|
const strokeWidth = iconStrokeMap[size];
|
|
3837
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";
|
|
3838
3848
|
const ariaAttributes = ariaLabel ? { "aria-label": ariaLabel } : { "aria-hidden": ariaHidden };
|
|
3839
|
-
return /* @__PURE__ */
|
|
3849
|
+
return /* @__PURE__ */ jsx40(
|
|
3840
3850
|
IconComponent,
|
|
3841
3851
|
{
|
|
3842
3852
|
ref,
|
|
@@ -3853,12 +3863,12 @@ Icon.displayName = "Icon";
|
|
|
3853
3863
|
// src/primitives/popover.tsx
|
|
3854
3864
|
import { Popover as PopoverPrimitive } from "@base-ui/react/popover";
|
|
3855
3865
|
import { cn as cn18 } from "cn";
|
|
3856
|
-
import { jsx as
|
|
3866
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
3857
3867
|
function Popover({ ...props }) {
|
|
3858
|
-
return /* @__PURE__ */
|
|
3868
|
+
return /* @__PURE__ */ jsx41(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
|
|
3859
3869
|
}
|
|
3860
3870
|
function PopoverTrigger({ ...props }) {
|
|
3861
|
-
return /* @__PURE__ */
|
|
3871
|
+
return /* @__PURE__ */ jsx41(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
|
|
3862
3872
|
}
|
|
3863
3873
|
function PopoverContent({
|
|
3864
3874
|
className,
|
|
@@ -3868,7 +3878,7 @@ function PopoverContent({
|
|
|
3868
3878
|
sideOffset = 4,
|
|
3869
3879
|
...props
|
|
3870
3880
|
}) {
|
|
3871
|
-
return /* @__PURE__ */
|
|
3881
|
+
return /* @__PURE__ */ jsx41(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx41(
|
|
3872
3882
|
PopoverPrimitive.Positioner,
|
|
3873
3883
|
{
|
|
3874
3884
|
align,
|
|
@@ -3876,7 +3886,7 @@ function PopoverContent({
|
|
|
3876
3886
|
side,
|
|
3877
3887
|
sideOffset,
|
|
3878
3888
|
className: "isolate z-50",
|
|
3879
|
-
children: /* @__PURE__ */
|
|
3889
|
+
children: /* @__PURE__ */ jsx41(
|
|
3880
3890
|
PopoverPrimitive.Popup,
|
|
3881
3891
|
{
|
|
3882
3892
|
"data-slot": "popover-content",
|
|
@@ -3899,7 +3909,7 @@ import { cn as cn22 } from "cn";
|
|
|
3899
3909
|
import { Dialog as DialogPrimitive2 } from "@base-ui/react/dialog";
|
|
3900
3910
|
import { cn as cn19 } from "cn";
|
|
3901
3911
|
import { XIcon as XIcon2 } from "lucide-react";
|
|
3902
|
-
import { jsx as
|
|
3912
|
+
import { jsx as jsx42, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
3903
3913
|
|
|
3904
3914
|
// src/primitives/input-group.tsx
|
|
3905
3915
|
import { cva as cva14 } from "class-variance-authority";
|
|
@@ -3907,9 +3917,9 @@ import { cn as cn21 } from "cn";
|
|
|
3907
3917
|
|
|
3908
3918
|
// src/primitives/textarea.tsx
|
|
3909
3919
|
import { cn as cn20 } from "cn";
|
|
3910
|
-
import { jsx as
|
|
3920
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
3911
3921
|
function Textarea({ className, ...props }) {
|
|
3912
|
-
return /* @__PURE__ */
|
|
3922
|
+
return /* @__PURE__ */ jsx43(
|
|
3913
3923
|
"textarea",
|
|
3914
3924
|
{
|
|
3915
3925
|
"data-slot": "textarea",
|
|
@@ -3923,9 +3933,9 @@ function Textarea({ className, ...props }) {
|
|
|
3923
3933
|
}
|
|
3924
3934
|
|
|
3925
3935
|
// src/primitives/input-group.tsx
|
|
3926
|
-
import { jsx as
|
|
3936
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
3927
3937
|
function InputGroup({ className, ...props }) {
|
|
3928
|
-
return /* @__PURE__ */
|
|
3938
|
+
return /* @__PURE__ */ jsx44(
|
|
3929
3939
|
"div",
|
|
3930
3940
|
{
|
|
3931
3941
|
"data-slot": "input-group",
|
|
@@ -3959,7 +3969,7 @@ function InputGroupAddon({
|
|
|
3959
3969
|
align = "inline-start",
|
|
3960
3970
|
...props
|
|
3961
3971
|
}) {
|
|
3962
|
-
return /* @__PURE__ */
|
|
3972
|
+
return /* @__PURE__ */ jsx44(
|
|
3963
3973
|
"div",
|
|
3964
3974
|
{
|
|
3965
3975
|
role: "group",
|
|
@@ -3995,12 +4005,12 @@ var inputGroupButtonVariants = cva14(
|
|
|
3995
4005
|
|
|
3996
4006
|
// src/primitives/command.tsx
|
|
3997
4007
|
import { SearchIcon, CheckIcon as CheckIcon4 } from "lucide-react";
|
|
3998
|
-
import { jsx as
|
|
4008
|
+
import { jsx as jsx45, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3999
4009
|
function Command({
|
|
4000
4010
|
className,
|
|
4001
4011
|
...props
|
|
4002
4012
|
}) {
|
|
4003
|
-
return /* @__PURE__ */
|
|
4013
|
+
return /* @__PURE__ */ jsx45(
|
|
4004
4014
|
CommandPrimitive,
|
|
4005
4015
|
{
|
|
4006
4016
|
"data-slot": "command",
|
|
@@ -4016,8 +4026,8 @@ function CommandInput({
|
|
|
4016
4026
|
className,
|
|
4017
4027
|
...props
|
|
4018
4028
|
}) {
|
|
4019
|
-
return /* @__PURE__ */
|
|
4020
|
-
/* @__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(
|
|
4021
4031
|
CommandPrimitive.Input,
|
|
4022
4032
|
{
|
|
4023
4033
|
"data-slot": "command-input",
|
|
@@ -4028,14 +4038,14 @@ function CommandInput({
|
|
|
4028
4038
|
...props
|
|
4029
4039
|
}
|
|
4030
4040
|
),
|
|
4031
|
-
/* @__PURE__ */
|
|
4041
|
+
/* @__PURE__ */ jsx45(InputGroupAddon, { children: /* @__PURE__ */ jsx45(SearchIcon, { className: "size-4 shrink-0 opacity-50" }) })
|
|
4032
4042
|
] }) });
|
|
4033
4043
|
}
|
|
4034
4044
|
function CommandList({
|
|
4035
4045
|
className,
|
|
4036
4046
|
...props
|
|
4037
4047
|
}) {
|
|
4038
|
-
return /* @__PURE__ */
|
|
4048
|
+
return /* @__PURE__ */ jsx45(
|
|
4039
4049
|
CommandPrimitive.List,
|
|
4040
4050
|
{
|
|
4041
4051
|
"data-slot": "command-list",
|
|
@@ -4051,7 +4061,7 @@ function CommandEmpty({
|
|
|
4051
4061
|
className,
|
|
4052
4062
|
...props
|
|
4053
4063
|
}) {
|
|
4054
|
-
return /* @__PURE__ */
|
|
4064
|
+
return /* @__PURE__ */ jsx45(
|
|
4055
4065
|
CommandPrimitive.Empty,
|
|
4056
4066
|
{
|
|
4057
4067
|
"data-slot": "command-empty",
|
|
@@ -4064,7 +4074,7 @@ function CommandGroup({
|
|
|
4064
4074
|
className,
|
|
4065
4075
|
...props
|
|
4066
4076
|
}) {
|
|
4067
|
-
return /* @__PURE__ */
|
|
4077
|
+
return /* @__PURE__ */ jsx45(
|
|
4068
4078
|
CommandPrimitive.Group,
|
|
4069
4079
|
{
|
|
4070
4080
|
"data-slot": "command-group",
|
|
@@ -4092,7 +4102,7 @@ function CommandItem({
|
|
|
4092
4102
|
...props,
|
|
4093
4103
|
children: [
|
|
4094
4104
|
children,
|
|
4095
|
-
/* @__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" })
|
|
4096
4106
|
]
|
|
4097
4107
|
}
|
|
4098
4108
|
);
|
|
@@ -4240,8 +4250,8 @@ var isEUCountry = (countryCode) => {
|
|
|
4240
4250
|
};
|
|
4241
4251
|
|
|
4242
4252
|
// src/components/country-select/CountrySelect.tsx
|
|
4243
|
-
import { Fragment as Fragment2, jsx as
|
|
4244
|
-
var CountrySelect =
|
|
4253
|
+
import { Fragment as Fragment2, jsx as jsx46, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
4254
|
+
var CountrySelect = React24.forwardRef(
|
|
4245
4255
|
({
|
|
4246
4256
|
value,
|
|
4247
4257
|
onValueChange,
|
|
@@ -4251,14 +4261,14 @@ var CountrySelect = React23.forwardRef(
|
|
|
4251
4261
|
align = "center",
|
|
4252
4262
|
sideOffset = 4
|
|
4253
4263
|
}, ref) => {
|
|
4254
|
-
const [open, setOpen] =
|
|
4255
|
-
const selectedCountry =
|
|
4264
|
+
const [open, setOpen] = React24.useState(false);
|
|
4265
|
+
const selectedCountry = React24.useMemo(() => COUNTRIES.find((c) => c.code === value), [value]);
|
|
4256
4266
|
return /* @__PURE__ */ jsxs21(Popover, { open, onOpenChange: setOpen, children: [
|
|
4257
4267
|
/* @__PURE__ */ jsxs21(
|
|
4258
4268
|
PopoverTrigger,
|
|
4259
4269
|
{
|
|
4260
4270
|
ref,
|
|
4261
|
-
render: /* @__PURE__ */
|
|
4271
|
+
render: /* @__PURE__ */ jsx46(
|
|
4262
4272
|
"button",
|
|
4263
4273
|
{
|
|
4264
4274
|
type: "button",
|
|
@@ -4280,16 +4290,16 @@ var CountrySelect = React23.forwardRef(
|
|
|
4280
4290
|
}
|
|
4281
4291
|
),
|
|
4282
4292
|
children: [
|
|
4283
|
-
/* @__PURE__ */
|
|
4284
|
-
/* @__PURE__ */
|
|
4285
|
-
/* @__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 }),
|
|
4286
4296
|
/* @__PURE__ */ jsxs21("span", { className: "text-berget-muted-foreground text-xs flex-shrink-0", children: [
|
|
4287
4297
|
"(",
|
|
4288
4298
|
selectedCountry.code,
|
|
4289
4299
|
")"
|
|
4290
4300
|
] })
|
|
4291
4301
|
] }) : /* @__PURE__ */ jsxs21(Fragment2, { children: [
|
|
4292
|
-
/* @__PURE__ */
|
|
4302
|
+
/* @__PURE__ */ jsx46(
|
|
4293
4303
|
Icon,
|
|
4294
4304
|
{
|
|
4295
4305
|
icon: Globe,
|
|
@@ -4297,9 +4307,9 @@ var CountrySelect = React23.forwardRef(
|
|
|
4297
4307
|
className: "flex-shrink-0 text-berget-muted-foreground"
|
|
4298
4308
|
}
|
|
4299
4309
|
),
|
|
4300
|
-
/* @__PURE__ */
|
|
4310
|
+
/* @__PURE__ */ jsx46("span", { className: "text-berget-muted-foreground truncate", children: placeholder })
|
|
4301
4311
|
] }) }),
|
|
4302
|
-
/* @__PURE__ */
|
|
4312
|
+
/* @__PURE__ */ jsx46(
|
|
4303
4313
|
Icon,
|
|
4304
4314
|
{
|
|
4305
4315
|
icon: ChevronDown2,
|
|
@@ -4314,17 +4324,17 @@ var CountrySelect = React23.forwardRef(
|
|
|
4314
4324
|
]
|
|
4315
4325
|
}
|
|
4316
4326
|
),
|
|
4317
|
-
/* @__PURE__ */
|
|
4327
|
+
/* @__PURE__ */ jsx46(
|
|
4318
4328
|
PopoverContent,
|
|
4319
4329
|
{
|
|
4320
4330
|
align,
|
|
4321
4331
|
sideOffset,
|
|
4322
4332
|
className: "w-[var(--radix-popover-trigger-width)] p-0",
|
|
4323
4333
|
children: /* @__PURE__ */ jsxs21(Command, { children: [
|
|
4324
|
-
/* @__PURE__ */
|
|
4334
|
+
/* @__PURE__ */ jsx46(CommandInput, { placeholder: "Search country..." }),
|
|
4325
4335
|
/* @__PURE__ */ jsxs21(CommandList, { children: [
|
|
4326
|
-
/* @__PURE__ */
|
|
4327
|
-
/* @__PURE__ */
|
|
4336
|
+
/* @__PURE__ */ jsx46(CommandEmpty, { children: "No countries found." }),
|
|
4337
|
+
/* @__PURE__ */ jsx46(CommandGroup, { children: COUNTRIES.map((country) => /* @__PURE__ */ jsxs21(
|
|
4328
4338
|
CommandItem,
|
|
4329
4339
|
{
|
|
4330
4340
|
value: `${country.name} ${country.code}`,
|
|
@@ -4338,12 +4348,12 @@ var CountrySelect = React23.forwardRef(
|
|
|
4338
4348
|
value === country.code && "bg-berget-brand-granite-800/40"
|
|
4339
4349
|
),
|
|
4340
4350
|
children: [
|
|
4341
|
-
/* @__PURE__ */
|
|
4351
|
+
/* @__PURE__ */ jsx46("span", { className: "text-xl flex-shrink-0", children: country.flag }),
|
|
4342
4352
|
/* @__PURE__ */ jsxs21("div", { className: "flex-1 min-w-0", children: [
|
|
4343
|
-
/* @__PURE__ */
|
|
4344
|
-
/* @__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 })
|
|
4345
4355
|
] }),
|
|
4346
|
-
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" })
|
|
4347
4357
|
]
|
|
4348
4358
|
},
|
|
4349
4359
|
country.code
|
|
@@ -4359,9 +4369,9 @@ CountrySelect.displayName = "CountrySelect";
|
|
|
4359
4369
|
|
|
4360
4370
|
// src/primitives/label.tsx
|
|
4361
4371
|
import { cn as cn23 } from "cn";
|
|
4362
|
-
import { jsx as
|
|
4372
|
+
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
4363
4373
|
function Label({ className, ...props }) {
|
|
4364
|
-
return /* @__PURE__ */
|
|
4374
|
+
return /* @__PURE__ */ jsx47(
|
|
4365
4375
|
"label",
|
|
4366
4376
|
{
|
|
4367
4377
|
"data-slot": "label",
|
|
@@ -4378,9 +4388,9 @@ function Label({ className, ...props }) {
|
|
|
4378
4388
|
import { useMemo as useMemo4 } from "react";
|
|
4379
4389
|
import { cva as cva15 } from "class-variance-authority";
|
|
4380
4390
|
import { cn as cn24 } from "cn";
|
|
4381
|
-
import { jsx as
|
|
4391
|
+
import { jsx as jsx48, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
4382
4392
|
function FieldSet({ className, ...props }) {
|
|
4383
|
-
return /* @__PURE__ */
|
|
4393
|
+
return /* @__PURE__ */ jsx48(
|
|
4384
4394
|
"fieldset",
|
|
4385
4395
|
{
|
|
4386
4396
|
"data-slot": "field-set",
|
|
@@ -4397,7 +4407,7 @@ function FieldLegend({
|
|
|
4397
4407
|
variant = "legend",
|
|
4398
4408
|
...props
|
|
4399
4409
|
}) {
|
|
4400
|
-
return /* @__PURE__ */
|
|
4410
|
+
return /* @__PURE__ */ jsx48(
|
|
4401
4411
|
"legend",
|
|
4402
4412
|
{
|
|
4403
4413
|
"data-slot": "field-legend",
|
|
@@ -4411,7 +4421,7 @@ function FieldLegend({
|
|
|
4411
4421
|
);
|
|
4412
4422
|
}
|
|
4413
4423
|
function FieldGroup({ className, ...props }) {
|
|
4414
|
-
return /* @__PURE__ */
|
|
4424
|
+
return /* @__PURE__ */ jsx48(
|
|
4415
4425
|
"div",
|
|
4416
4426
|
{
|
|
4417
4427
|
"data-slot": "field-group",
|
|
@@ -4443,7 +4453,7 @@ function Field({
|
|
|
4443
4453
|
orientation = "vertical",
|
|
4444
4454
|
...props
|
|
4445
4455
|
}) {
|
|
4446
|
-
return /* @__PURE__ */
|
|
4456
|
+
return /* @__PURE__ */ jsx48(
|
|
4447
4457
|
"div",
|
|
4448
4458
|
{
|
|
4449
4459
|
role: "group",
|
|
@@ -4455,7 +4465,7 @@ function Field({
|
|
|
4455
4465
|
);
|
|
4456
4466
|
}
|
|
4457
4467
|
function FieldContent({ className, ...props }) {
|
|
4458
|
-
return /* @__PURE__ */
|
|
4468
|
+
return /* @__PURE__ */ jsx48(
|
|
4459
4469
|
"div",
|
|
4460
4470
|
{
|
|
4461
4471
|
"data-slot": "field-content",
|
|
@@ -4471,7 +4481,7 @@ function FieldLabel({
|
|
|
4471
4481
|
className,
|
|
4472
4482
|
...props
|
|
4473
4483
|
}) {
|
|
4474
|
-
return /* @__PURE__ */
|
|
4484
|
+
return /* @__PURE__ */ jsx48(
|
|
4475
4485
|
Label,
|
|
4476
4486
|
{
|
|
4477
4487
|
"data-slot": "field-label",
|
|
@@ -4485,7 +4495,7 @@ function FieldLabel({
|
|
|
4485
4495
|
);
|
|
4486
4496
|
}
|
|
4487
4497
|
function FieldTitle({ className, ...props }) {
|
|
4488
|
-
return /* @__PURE__ */
|
|
4498
|
+
return /* @__PURE__ */ jsx48(
|
|
4489
4499
|
"div",
|
|
4490
4500
|
{
|
|
4491
4501
|
"data-slot": "field-label",
|
|
@@ -4498,7 +4508,7 @@ function FieldTitle({ className, ...props }) {
|
|
|
4498
4508
|
);
|
|
4499
4509
|
}
|
|
4500
4510
|
function FieldDescription({ className, ...props }) {
|
|
4501
|
-
return /* @__PURE__ */
|
|
4511
|
+
return /* @__PURE__ */ jsx48(
|
|
4502
4512
|
"p",
|
|
4503
4513
|
{
|
|
4504
4514
|
"data-slot": "field-description",
|
|
@@ -4528,8 +4538,8 @@ function FieldSeparator({
|
|
|
4528
4538
|
),
|
|
4529
4539
|
...props,
|
|
4530
4540
|
children: [
|
|
4531
|
-
/* @__PURE__ */
|
|
4532
|
-
children && /* @__PURE__ */
|
|
4541
|
+
/* @__PURE__ */ jsx48(Separator, { className: "absolute inset-0 top-1/2" }),
|
|
4542
|
+
children && /* @__PURE__ */ jsx48(
|
|
4533
4543
|
"span",
|
|
4534
4544
|
{
|
|
4535
4545
|
className: "relative mx-auto block w-fit bg-background px-2 text-muted-foreground",
|
|
@@ -4560,14 +4570,14 @@ function FieldError({
|
|
|
4560
4570
|
if (uniqueErrors?.length == 1) {
|
|
4561
4571
|
return uniqueErrors[0]?.message;
|
|
4562
4572
|
}
|
|
4563
|
-
return /* @__PURE__ */
|
|
4564
|
-
(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)
|
|
4565
4575
|
) });
|
|
4566
4576
|
}, [children, errors]);
|
|
4567
4577
|
if (!content) {
|
|
4568
4578
|
return null;
|
|
4569
4579
|
}
|
|
4570
|
-
return /* @__PURE__ */
|
|
4580
|
+
return /* @__PURE__ */ jsx48(
|
|
4571
4581
|
"div",
|
|
4572
4582
|
{
|
|
4573
4583
|
role: "alert",
|
|
@@ -4580,10 +4590,10 @@ function FieldError({
|
|
|
4580
4590
|
}
|
|
4581
4591
|
|
|
4582
4592
|
// src/components/link/Link.tsx
|
|
4583
|
-
import * as
|
|
4593
|
+
import * as React25 from "react";
|
|
4584
4594
|
import { cva as cva16 } from "class-variance-authority";
|
|
4585
4595
|
import { ExternalLink } from "lucide-react";
|
|
4586
|
-
import { jsx as
|
|
4596
|
+
import { jsx as jsx49, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
4587
4597
|
var linkVariants = cva16(
|
|
4588
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",
|
|
4589
4599
|
{
|
|
@@ -4608,7 +4618,7 @@ var linkVariants = cva16(
|
|
|
4608
4618
|
}
|
|
4609
4619
|
}
|
|
4610
4620
|
);
|
|
4611
|
-
var Link =
|
|
4621
|
+
var Link = React25.forwardRef(
|
|
4612
4622
|
({
|
|
4613
4623
|
className,
|
|
4614
4624
|
variant,
|
|
@@ -4637,8 +4647,8 @@ var Link = React24.forwardRef(
|
|
|
4637
4647
|
},
|
|
4638
4648
|
children: [
|
|
4639
4649
|
children,
|
|
4640
|
-
icon && /* @__PURE__ */
|
|
4641
|
-
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 }) })
|
|
4642
4652
|
]
|
|
4643
4653
|
}
|
|
4644
4654
|
);
|
|
@@ -4647,7 +4657,7 @@ var Link = React24.forwardRef(
|
|
|
4647
4657
|
Link.displayName = "Link";
|
|
4648
4658
|
|
|
4649
4659
|
// src/components/container/Container.tsx
|
|
4650
|
-
import * as
|
|
4660
|
+
import * as React26 from "react";
|
|
4651
4661
|
import { mergeProps as mergeProps3 } from "@base-ui/react/merge-props";
|
|
4652
4662
|
import { useRender as useRender3 } from "@base-ui/react/use-render";
|
|
4653
4663
|
import { cva as cva17 } from "class-variance-authority";
|
|
@@ -4672,7 +4682,7 @@ var containerVariants = cva17("w-full mx-auto", {
|
|
|
4672
4682
|
padding: "md"
|
|
4673
4683
|
}
|
|
4674
4684
|
});
|
|
4675
|
-
var Container =
|
|
4685
|
+
var Container = React26.forwardRef(
|
|
4676
4686
|
({ className, size, padding, asChild = false, children, ...props }, ref) => {
|
|
4677
4687
|
return useRender3({
|
|
4678
4688
|
ref,
|
|
@@ -4691,7 +4701,7 @@ var Container = React25.forwardRef(
|
|
|
4691
4701
|
Container.displayName = "Container";
|
|
4692
4702
|
|
|
4693
4703
|
// src/components/grid/Grid.tsx
|
|
4694
|
-
import * as
|
|
4704
|
+
import * as React27 from "react";
|
|
4695
4705
|
import { cva as cva18 } from "class-variance-authority";
|
|
4696
4706
|
import { mergeProps as mergeProps4 } from "@base-ui/react/merge-props";
|
|
4697
4707
|
import { useRender as useRender4 } from "@base-ui/react/use-render";
|
|
@@ -4717,7 +4727,7 @@ var gridVariants = cva18("grid", {
|
|
|
4717
4727
|
justify: "start"
|
|
4718
4728
|
}
|
|
4719
4729
|
});
|
|
4720
|
-
var Grid =
|
|
4730
|
+
var Grid = React27.forwardRef(
|
|
4721
4731
|
({ className, align, justify, cols, rows, gap, gapX, gapY, asChild = false, children, ...props }, ref) => {
|
|
4722
4732
|
return useRender4({
|
|
4723
4733
|
ref,
|
|
@@ -4744,7 +4754,7 @@ var Grid = React26.forwardRef(
|
|
|
4744
4754
|
Grid.displayName = "Grid";
|
|
4745
4755
|
|
|
4746
4756
|
// src/components/box/Box.tsx
|
|
4747
|
-
import * as
|
|
4757
|
+
import * as React28 from "react";
|
|
4748
4758
|
import { cva as cva19 } from "class-variance-authority";
|
|
4749
4759
|
import { mergeProps as mergeProps5 } from "@base-ui/react/merge-props";
|
|
4750
4760
|
import { useRender as useRender5 } from "@base-ui/react/use-render";
|
|
@@ -4784,7 +4794,7 @@ var boxVariants = cva19("flex", {
|
|
|
4784
4794
|
wrap: "nowrap"
|
|
4785
4795
|
}
|
|
4786
4796
|
});
|
|
4787
|
-
var Box =
|
|
4797
|
+
var Box = React28.forwardRef(
|
|
4788
4798
|
({ className, direction, align, justify, wrap, gap, asChild = false, children, ...props }, ref) => {
|
|
4789
4799
|
return useRender5({
|
|
4790
4800
|
ref,
|
|
@@ -4807,22 +4817,22 @@ var Box = React27.forwardRef(
|
|
|
4807
4817
|
Box.displayName = "Box";
|
|
4808
4818
|
|
|
4809
4819
|
// src/components/language-select/LanguageSelect.tsx
|
|
4810
|
-
import * as
|
|
4820
|
+
import * as React29 from "react";
|
|
4811
4821
|
import { Globe as Globe2 } from "lucide-react";
|
|
4812
|
-
import { jsx as
|
|
4813
|
-
var LanguageSelect =
|
|
4822
|
+
import { jsx as jsx50, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
4823
|
+
var LanguageSelect = React29.forwardRef(
|
|
4814
4824
|
({ className, options, value, onValueChange }, ref) => {
|
|
4815
4825
|
return /* @__PURE__ */ jsxs24(DropdownMenu, { children: [
|
|
4816
|
-
/* @__PURE__ */
|
|
4817
|
-
/* @__PURE__ */
|
|
4818
|
-
/* @__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 })
|
|
4819
4829
|
] }) }),
|
|
4820
|
-
/* @__PURE__ */
|
|
4830
|
+
/* @__PURE__ */ jsx50(DropdownMenuContent2, { align: "start", children: /* @__PURE__ */ jsx50(
|
|
4821
4831
|
DropdownMenuRadioGroup,
|
|
4822
4832
|
{
|
|
4823
4833
|
value,
|
|
4824
4834
|
onValueChange: onValueChange ? (v) => onValueChange(v) : void 0,
|
|
4825
|
-
children: options.map((option) => /* @__PURE__ */
|
|
4835
|
+
children: options.map((option) => /* @__PURE__ */ jsx50(
|
|
4826
4836
|
DropdownMenuRadioItem2,
|
|
4827
4837
|
{
|
|
4828
4838
|
value: option.value,
|
|
@@ -4840,12 +4850,12 @@ var LanguageSelect = React28.forwardRef(
|
|
|
4840
4850
|
LanguageSelect.displayName = "LanguageSelect";
|
|
4841
4851
|
|
|
4842
4852
|
// src/components/list/List.tsx
|
|
4843
|
-
import * as
|
|
4853
|
+
import * as React31 from "react";
|
|
4844
4854
|
|
|
4845
4855
|
// src/components/divider/Divider.tsx
|
|
4846
|
-
import * as
|
|
4856
|
+
import * as React30 from "react";
|
|
4847
4857
|
import { cva as cva20 } from "class-variance-authority";
|
|
4848
|
-
import { jsx as
|
|
4858
|
+
import { jsx as jsx51, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
4849
4859
|
var dividerVariants = cva20("", {
|
|
4850
4860
|
variants: {
|
|
4851
4861
|
variant: {
|
|
@@ -4866,7 +4876,7 @@ var dividerVariants = cva20("", {
|
|
|
4866
4876
|
size: "thin"
|
|
4867
4877
|
}
|
|
4868
4878
|
});
|
|
4869
|
-
var Divider =
|
|
4879
|
+
var Divider = React30.forwardRef(
|
|
4870
4880
|
({
|
|
4871
4881
|
className,
|
|
4872
4882
|
orientation = "horizontal",
|
|
@@ -4878,15 +4888,15 @@ var Divider = React29.forwardRef(
|
|
|
4878
4888
|
}, ref) => {
|
|
4879
4889
|
if (label) {
|
|
4880
4890
|
return /* @__PURE__ */ jsxs25("div", { ref, className: cn("flex items-center w-full", className), ...props, children: [
|
|
4881
|
-
labelPosition !== "right" && /* @__PURE__ */
|
|
4891
|
+
labelPosition !== "right" && /* @__PURE__ */ jsx51(
|
|
4882
4892
|
Separator,
|
|
4883
4893
|
{
|
|
4884
4894
|
orientation: "horizontal",
|
|
4885
4895
|
className: cn(dividerVariants({ variant, size }), "flex-1")
|
|
4886
4896
|
}
|
|
4887
4897
|
),
|
|
4888
|
-
/* @__PURE__ */
|
|
4889
|
-
labelPosition !== "left" && /* @__PURE__ */
|
|
4898
|
+
/* @__PURE__ */ jsx51(Typography, { variant: "small", color: "muted", className: "px-4 whitespace-nowrap", children: label }),
|
|
4899
|
+
labelPosition !== "left" && /* @__PURE__ */ jsx51(
|
|
4890
4900
|
Separator,
|
|
4891
4901
|
{
|
|
4892
4902
|
orientation: "horizontal",
|
|
@@ -4895,7 +4905,7 @@ var Divider = React29.forwardRef(
|
|
|
4895
4905
|
)
|
|
4896
4906
|
] });
|
|
4897
4907
|
}
|
|
4898
|
-
return /* @__PURE__ */
|
|
4908
|
+
return /* @__PURE__ */ jsx51(
|
|
4899
4909
|
Separator,
|
|
4900
4910
|
{
|
|
4901
4911
|
ref,
|
|
@@ -4913,18 +4923,18 @@ Divider.displayName = "Divider";
|
|
|
4913
4923
|
|
|
4914
4924
|
// src/components/list/List.tsx
|
|
4915
4925
|
import { Check as Check2 } from "lucide-react";
|
|
4916
|
-
import { jsx as
|
|
4917
|
-
var List =
|
|
4926
|
+
import { jsx as jsx52, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
4927
|
+
var List = React31.forwardRef(
|
|
4918
4928
|
({ className, children, ...props }, ref) => {
|
|
4919
|
-
const childrenArray =
|
|
4920
|
-
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: [
|
|
4921
4931
|
child,
|
|
4922
|
-
index < childrenArray.length - 1 && /* @__PURE__ */
|
|
4932
|
+
index < childrenArray.length - 1 && /* @__PURE__ */ jsx52(Divider, { variant: "subtle" })
|
|
4923
4933
|
] }, index)) });
|
|
4924
4934
|
}
|
|
4925
4935
|
);
|
|
4926
4936
|
List.displayName = "List";
|
|
4927
|
-
var ListItem =
|
|
4937
|
+
var ListItem = React31.forwardRef(
|
|
4928
4938
|
({ className, icon, children, interactive = true, ...props }, ref) => /* @__PURE__ */ jsxs26(
|
|
4929
4939
|
"div",
|
|
4930
4940
|
{
|
|
@@ -4936,15 +4946,15 @@ var ListItem = React30.forwardRef(
|
|
|
4936
4946
|
),
|
|
4937
4947
|
...props,
|
|
4938
4948
|
children: [
|
|
4939
|
-
icon && /* @__PURE__ */
|
|
4940
|
-
/* @__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 })
|
|
4941
4951
|
]
|
|
4942
4952
|
}
|
|
4943
4953
|
)
|
|
4944
4954
|
);
|
|
4945
4955
|
ListItem.displayName = "ListItem";
|
|
4946
|
-
var ListHeader =
|
|
4947
|
-
({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
4956
|
+
var ListHeader = React31.forwardRef(
|
|
4957
|
+
({ className, children, ...props }, ref) => /* @__PURE__ */ jsx52(
|
|
4948
4958
|
"div",
|
|
4949
4959
|
{
|
|
4950
4960
|
ref,
|
|
@@ -4955,11 +4965,11 @@ var ListHeader = React30.forwardRef(
|
|
|
4955
4965
|
)
|
|
4956
4966
|
);
|
|
4957
4967
|
ListHeader.displayName = "ListHeader";
|
|
4958
|
-
var FeatureList =
|
|
4968
|
+
var FeatureList = React31.forwardRef(
|
|
4959
4969
|
({ items, variant = "bullet", className, ...props }, ref) => {
|
|
4960
|
-
return /* @__PURE__ */
|
|
4961
|
-
variant === "bullet" ? /* @__PURE__ */
|
|
4962
|
-
/* @__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 })
|
|
4963
4973
|
] }, index)) });
|
|
4964
4974
|
}
|
|
4965
4975
|
);
|
|
@@ -4968,7 +4978,7 @@ FeatureList.displayName = "FeatureList";
|
|
|
4968
4978
|
// src/components/code-block/CodeBlock.tsx
|
|
4969
4979
|
import { useState as useState5, useEffect as useEffect4, useCallback as useCallback4 } from "react";
|
|
4970
4980
|
import { Copy, Check as Check3 } from "lucide-react";
|
|
4971
|
-
import { jsx as
|
|
4981
|
+
import { jsx as jsx53, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
4972
4982
|
function CodeBlock({ code, language = "text", title, className }) {
|
|
4973
4983
|
const [html, setHtml] = useState5(null);
|
|
4974
4984
|
const [copied, setCopied] = useState5(false);
|
|
@@ -4984,13 +4994,13 @@ function CodeBlock({ code, language = "text", title, className }) {
|
|
|
4984
4994
|
setCopied(true);
|
|
4985
4995
|
setTimeout(() => setCopied(false), 2e3);
|
|
4986
4996
|
}, [code]);
|
|
4987
|
-
const copyButton = /* @__PURE__ */
|
|
4997
|
+
const copyButton = /* @__PURE__ */ jsx53(
|
|
4988
4998
|
"button",
|
|
4989
4999
|
{
|
|
4990
5000
|
onClick: handleCopy,
|
|
4991
5001
|
className: "flex items-center justify-center w-6 h-6 text-berget-muted-foreground hover:text-berget-foreground transition-colors",
|
|
4992
5002
|
"aria-label": "Copy code",
|
|
4993
|
-
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" })
|
|
4994
5004
|
}
|
|
4995
5005
|
);
|
|
4996
5006
|
return /* @__PURE__ */ jsxs27(
|
|
@@ -5001,25 +5011,25 @@ function CodeBlock({ code, language = "text", title, className }) {
|
|
|
5001
5011
|
className
|
|
5002
5012
|
),
|
|
5003
5013
|
children: [
|
|
5004
|
-
title && /* @__PURE__ */
|
|
5005
|
-
/* @__PURE__ */
|
|
5006
|
-
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(
|
|
5007
5017
|
"div",
|
|
5008
5018
|
{
|
|
5009
5019
|
className: "[&_.shiki]:!p-4 [&_.shiki]:!m-0 [&_.shiki]:overflow-x-auto [&_.shiki]:!text-sm [&_.shiki]:!leading-relaxed [&_.shiki]:bg-transparent",
|
|
5010
5020
|
dangerouslySetInnerHTML: { __html: html }
|
|
5011
5021
|
}
|
|
5012
|
-
) : /* @__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 }) })
|
|
5013
5023
|
]
|
|
5014
5024
|
}
|
|
5015
5025
|
);
|
|
5016
5026
|
}
|
|
5017
5027
|
|
|
5018
5028
|
// src/components/window-frame/WindowFrame.tsx
|
|
5019
|
-
import * as
|
|
5029
|
+
import * as React32 from "react";
|
|
5020
5030
|
import { useState as useState6 } from "react";
|
|
5021
|
-
import { jsx as
|
|
5022
|
-
var WindowFrame =
|
|
5031
|
+
import { jsx as jsx54, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
5032
|
+
var WindowFrame = React32.forwardRef(
|
|
5023
5033
|
({ title = "window", tabs, activeTab, onTabChange, children, className, ...props }, ref) => {
|
|
5024
5034
|
const [internalActive, setInternalActive] = useState6(tabs?.[0]?.id ?? "");
|
|
5025
5035
|
const currentTab = activeTab ?? internalActive;
|
|
@@ -5042,11 +5052,11 @@ var WindowFrame = React31.forwardRef(
|
|
|
5042
5052
|
children: [
|
|
5043
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: [
|
|
5044
5054
|
/* @__PURE__ */ jsxs28("div", { className: "flex items-center gap-2 flex-shrink-0", children: [
|
|
5045
|
-
/* @__PURE__ */
|
|
5046
|
-
/* @__PURE__ */
|
|
5047
|
-
/* @__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" })
|
|
5048
5058
|
] }),
|
|
5049
|
-
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(
|
|
5050
5060
|
"button",
|
|
5051
5061
|
{
|
|
5052
5062
|
type: "button",
|
|
@@ -5058,9 +5068,9 @@ var WindowFrame = React31.forwardRef(
|
|
|
5058
5068
|
children: tab.label
|
|
5059
5069
|
},
|
|
5060
5070
|
tab.id
|
|
5061
|
-
)) }) : /* @__PURE__ */
|
|
5071
|
+
)) }) : /* @__PURE__ */ jsx54("span", { className: "ml-4 text-sm font-mono text-berget-brand-moss-400", children: title })
|
|
5062
5072
|
] }),
|
|
5063
|
-
/* @__PURE__ */
|
|
5073
|
+
/* @__PURE__ */ jsx54("div", { children })
|
|
5064
5074
|
]
|
|
5065
5075
|
}
|
|
5066
5076
|
);
|
|
@@ -5070,7 +5080,7 @@ WindowFrame.displayName = "WindowFrame";
|
|
|
5070
5080
|
|
|
5071
5081
|
// src/components/fog-illustration/FogIllustration.tsx
|
|
5072
5082
|
import { useEffect as useEffect5, useRef } from "react";
|
|
5073
|
-
import { jsx as
|
|
5083
|
+
import { jsx as jsx55 } from "react/jsx-runtime";
|
|
5074
5084
|
var FOG_BRAND_PALETTE = {
|
|
5075
5085
|
ink: "#171a1a",
|
|
5076
5086
|
milk: "#f7f5ed",
|
|
@@ -5383,7 +5393,7 @@ var FogIllustration = ({ palette, speed = 1, className }) => {
|
|
|
5383
5393
|
gl.deleteFramebuffer(fbo);
|
|
5384
5394
|
};
|
|
5385
5395
|
}, []);
|
|
5386
|
-
return /* @__PURE__ */
|
|
5396
|
+
return /* @__PURE__ */ jsx55("canvas", { ref, "aria-hidden": "true", className: cn("size-full", className) });
|
|
5387
5397
|
};
|
|
5388
5398
|
export {
|
|
5389
5399
|
Alert2 as Alert,
|
|
@@ -5526,6 +5536,7 @@ export {
|
|
|
5526
5536
|
SidebarRail,
|
|
5527
5537
|
SidebarSeparator,
|
|
5528
5538
|
SidebarTrigger,
|
|
5539
|
+
Skeleton2 as Skeleton,
|
|
5529
5540
|
Switch,
|
|
5530
5541
|
Table2 as Table,
|
|
5531
5542
|
TableBody2 as TableBody,
|