@bergetai/ui 0.13.6 → 0.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +683 -563
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -1
- package/dist/index.d.ts +14 -1
- package/dist/index.js +677 -563
- package/dist/index.js.map +1 -1
- package/dist/styles/index.css +15 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1091,19 +1091,141 @@ 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/progress/Progress.tsx
|
|
1119
|
+
import * as React12 from "react";
|
|
1120
|
+
|
|
1121
|
+
// src/primitives/progress.tsx
|
|
1122
|
+
import { Progress as ProgressPrimitive } from "@base-ui/react/progress";
|
|
1123
|
+
import { cn as cn6 } from "cn";
|
|
1124
|
+
import { jsx as jsx16, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1125
|
+
function Progress({
|
|
1126
|
+
className,
|
|
1127
|
+
children,
|
|
1128
|
+
value,
|
|
1129
|
+
...props
|
|
1130
|
+
}) {
|
|
1131
|
+
return /* @__PURE__ */ jsxs6(
|
|
1132
|
+
ProgressPrimitive.Root,
|
|
1133
|
+
{
|
|
1134
|
+
value,
|
|
1135
|
+
"data-slot": "progress",
|
|
1136
|
+
className: cn6("flex flex-wrap gap-3", className),
|
|
1137
|
+
...props,
|
|
1138
|
+
children: [
|
|
1139
|
+
children,
|
|
1140
|
+
/* @__PURE__ */ jsx16(ProgressTrack, { children: /* @__PURE__ */ jsx16(ProgressIndicator, {}) })
|
|
1141
|
+
]
|
|
1142
|
+
}
|
|
1143
|
+
);
|
|
1144
|
+
}
|
|
1145
|
+
function ProgressTrack({ className, ...props }) {
|
|
1146
|
+
return /* @__PURE__ */ jsx16(
|
|
1147
|
+
ProgressPrimitive.Track,
|
|
1148
|
+
{
|
|
1149
|
+
className: cn6(
|
|
1150
|
+
"relative flex h-1 w-full items-center overflow-x-hidden rounded-full bg-muted",
|
|
1151
|
+
className
|
|
1152
|
+
),
|
|
1153
|
+
"data-slot": "progress-track",
|
|
1154
|
+
...props
|
|
1155
|
+
}
|
|
1156
|
+
);
|
|
1157
|
+
}
|
|
1158
|
+
function ProgressIndicator({
|
|
1159
|
+
className,
|
|
1160
|
+
...props
|
|
1161
|
+
}) {
|
|
1162
|
+
return /* @__PURE__ */ jsx16(
|
|
1163
|
+
ProgressPrimitive.Indicator,
|
|
1164
|
+
{
|
|
1165
|
+
"data-slot": "progress-indicator",
|
|
1166
|
+
className: cn6("h-full bg-primary transition-all", className),
|
|
1167
|
+
...props
|
|
1168
|
+
}
|
|
1169
|
+
);
|
|
1170
|
+
}
|
|
1171
|
+
function ProgressLabel({ className, ...props }) {
|
|
1172
|
+
return /* @__PURE__ */ jsx16(
|
|
1173
|
+
ProgressPrimitive.Label,
|
|
1174
|
+
{
|
|
1175
|
+
className: cn6("text-sm font-medium", className),
|
|
1176
|
+
"data-slot": "progress-label",
|
|
1177
|
+
...props
|
|
1178
|
+
}
|
|
1179
|
+
);
|
|
1180
|
+
}
|
|
1181
|
+
function ProgressValue({ className, ...props }) {
|
|
1182
|
+
return /* @__PURE__ */ jsx16(
|
|
1183
|
+
ProgressPrimitive.Value,
|
|
1184
|
+
{
|
|
1185
|
+
className: cn6(
|
|
1186
|
+
"ml-auto text-sm text-muted-foreground tabular-nums",
|
|
1187
|
+
className
|
|
1188
|
+
),
|
|
1189
|
+
"data-slot": "progress-value",
|
|
1190
|
+
...props
|
|
1191
|
+
}
|
|
1192
|
+
);
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
// src/components/progress/Progress.tsx
|
|
1196
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
1197
|
+
var Progress2 = React12.forwardRef(
|
|
1198
|
+
({ className, value, ...props }, ref) => {
|
|
1199
|
+
const indeterminate = value == null;
|
|
1200
|
+
return /* @__PURE__ */ jsx17(
|
|
1201
|
+
Progress,
|
|
1202
|
+
{
|
|
1203
|
+
ref,
|
|
1204
|
+
value,
|
|
1205
|
+
className: cn(
|
|
1206
|
+
indeterminate && "[&_[data-slot=progress-indicator]]:w-1/3 [&_[data-slot=progress-indicator]]:animate-progress-indeterminate",
|
|
1207
|
+
className
|
|
1208
|
+
),
|
|
1209
|
+
...props
|
|
1210
|
+
}
|
|
1211
|
+
);
|
|
1212
|
+
}
|
|
1213
|
+
);
|
|
1214
|
+
Progress2.displayName = "Progress";
|
|
1215
|
+
|
|
1216
|
+
// src/components/dialog/Dialog.tsx
|
|
1217
|
+
import * as React13 from "react";
|
|
1096
1218
|
import { Dialog as DialogPrimitive } from "@base-ui/react/dialog";
|
|
1097
1219
|
import { X } from "lucide-react";
|
|
1098
|
-
import { jsx as
|
|
1220
|
+
import { jsx as jsx18, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1099
1221
|
var Dialog = DialogPrimitive.Root;
|
|
1100
|
-
var DialogTrigger =
|
|
1101
|
-
({ asChild, children, ...props }, ref) => /* @__PURE__ */
|
|
1222
|
+
var DialogTrigger = React13.forwardRef(
|
|
1223
|
+
({ asChild, children, ...props }, ref) => /* @__PURE__ */ jsx18(DialogPrimitive.Trigger, { ref, render: asChildRender(asChild, children), ...props, children: asChild ? void 0 : children })
|
|
1102
1224
|
);
|
|
1103
1225
|
DialogTrigger.displayName = "DialogTrigger";
|
|
1104
1226
|
var DialogPortal = DialogPrimitive.Portal;
|
|
1105
1227
|
var DialogClose = DialogPrimitive.Close;
|
|
1106
|
-
var DialogOverlay =
|
|
1228
|
+
var DialogOverlay = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx18(
|
|
1107
1229
|
DialogPrimitive.Backdrop,
|
|
1108
1230
|
{
|
|
1109
1231
|
ref,
|
|
@@ -1115,9 +1237,9 @@ var DialogOverlay = React11.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1115
1237
|
}
|
|
1116
1238
|
));
|
|
1117
1239
|
DialogOverlay.displayName = "DialogOverlay";
|
|
1118
|
-
var DialogContent =
|
|
1119
|
-
/* @__PURE__ */
|
|
1120
|
-
/* @__PURE__ */
|
|
1240
|
+
var DialogContent = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs7(DialogPortal, { children: [
|
|
1241
|
+
/* @__PURE__ */ jsx18(DialogOverlay, {}),
|
|
1242
|
+
/* @__PURE__ */ jsxs7(
|
|
1121
1243
|
DialogPrimitive.Popup,
|
|
1122
1244
|
{
|
|
1123
1245
|
ref,
|
|
@@ -1128,18 +1250,18 @@ var DialogContent = React11.forwardRef(({ className, children, ...props }, ref)
|
|
|
1128
1250
|
...props,
|
|
1129
1251
|
children: [
|
|
1130
1252
|
children,
|
|
1131
|
-
/* @__PURE__ */
|
|
1132
|
-
/* @__PURE__ */
|
|
1133
|
-
/* @__PURE__ */
|
|
1253
|
+
/* @__PURE__ */ jsxs7(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: [
|
|
1254
|
+
/* @__PURE__ */ jsx18(X, { className: "size-4" }),
|
|
1255
|
+
/* @__PURE__ */ jsx18("span", { className: "sr-only", children: "Close" })
|
|
1134
1256
|
] })
|
|
1135
1257
|
]
|
|
1136
1258
|
}
|
|
1137
1259
|
)
|
|
1138
1260
|
] }));
|
|
1139
1261
|
DialogContent.displayName = "DialogContent";
|
|
1140
|
-
var DialogHeader = ({ className, ...props }) => /* @__PURE__ */
|
|
1262
|
+
var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsx18("div", { className: cn("flex flex-col gap-1.5 text-center sm:text-left", className), ...props });
|
|
1141
1263
|
DialogHeader.displayName = "DialogHeader";
|
|
1142
|
-
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */
|
|
1264
|
+
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx18(
|
|
1143
1265
|
"div",
|
|
1144
1266
|
{
|
|
1145
1267
|
className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
@@ -1147,21 +1269,21 @@ var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx14(
|
|
|
1147
1269
|
}
|
|
1148
1270
|
);
|
|
1149
1271
|
DialogFooter.displayName = "DialogFooter";
|
|
1150
|
-
var DialogTitle =
|
|
1272
|
+
var DialogTitle = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx18(
|
|
1151
1273
|
DialogPrimitive.Title,
|
|
1152
1274
|
{
|
|
1153
1275
|
ref,
|
|
1154
|
-
render: /* @__PURE__ */
|
|
1276
|
+
render: /* @__PURE__ */ jsx18(Typography, { variant: "h5", color: "default", as: "h2", className }),
|
|
1155
1277
|
...props,
|
|
1156
1278
|
children
|
|
1157
1279
|
}
|
|
1158
1280
|
));
|
|
1159
1281
|
DialogTitle.displayName = "DialogTitle";
|
|
1160
|
-
var DialogDescription =
|
|
1282
|
+
var DialogDescription = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx18(
|
|
1161
1283
|
DialogPrimitive.Description,
|
|
1162
1284
|
{
|
|
1163
1285
|
ref,
|
|
1164
|
-
render: /* @__PURE__ */
|
|
1286
|
+
render: /* @__PURE__ */ jsx18(Typography, { variant: "small", color: "muted", className }),
|
|
1165
1287
|
...props,
|
|
1166
1288
|
children
|
|
1167
1289
|
}
|
|
@@ -1169,16 +1291,16 @@ var DialogDescription = React11.forwardRef(({ className, children, ...props }, r
|
|
|
1169
1291
|
DialogDescription.displayName = "DialogDescription";
|
|
1170
1292
|
|
|
1171
1293
|
// src/components/alert-dialog/AlertDialog.tsx
|
|
1172
|
-
import * as
|
|
1294
|
+
import * as React14 from "react";
|
|
1173
1295
|
import { AlertDialog as AlertDialogPrimitive } from "@base-ui/react/alert-dialog";
|
|
1174
|
-
import { jsx as
|
|
1296
|
+
import { jsx as jsx19, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1175
1297
|
var AlertDialog = AlertDialogPrimitive.Root;
|
|
1176
|
-
var AlertDialogTrigger =
|
|
1177
|
-
({ asChild, children, ...props }, ref) => /* @__PURE__ */
|
|
1298
|
+
var AlertDialogTrigger = React14.forwardRef(
|
|
1299
|
+
({ asChild, children, ...props }, ref) => /* @__PURE__ */ jsx19(AlertDialogPrimitive.Trigger, { ref, render: asChildRender(asChild, children), ...props, children: asChild ? void 0 : children })
|
|
1178
1300
|
);
|
|
1179
1301
|
AlertDialogTrigger.displayName = "AlertDialogTrigger";
|
|
1180
1302
|
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
1181
|
-
var AlertDialogOverlay =
|
|
1303
|
+
var AlertDialogOverlay = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
1182
1304
|
AlertDialogPrimitive.Backdrop,
|
|
1183
1305
|
{
|
|
1184
1306
|
ref,
|
|
@@ -1190,9 +1312,9 @@ var AlertDialogOverlay = React12.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1190
1312
|
}
|
|
1191
1313
|
));
|
|
1192
1314
|
AlertDialogOverlay.displayName = "AlertDialogOverlay";
|
|
1193
|
-
var AlertDialogContent =
|
|
1194
|
-
/* @__PURE__ */
|
|
1195
|
-
/* @__PURE__ */
|
|
1315
|
+
var AlertDialogContent = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs8(AlertDialogPortal, { children: [
|
|
1316
|
+
/* @__PURE__ */ jsx19(AlertDialogOverlay, {}),
|
|
1317
|
+
/* @__PURE__ */ jsx19(
|
|
1196
1318
|
AlertDialogPrimitive.Popup,
|
|
1197
1319
|
{
|
|
1198
1320
|
ref,
|
|
@@ -1205,9 +1327,9 @@ var AlertDialogContent = React12.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1205
1327
|
)
|
|
1206
1328
|
] }));
|
|
1207
1329
|
AlertDialogContent.displayName = "AlertDialogContent";
|
|
1208
|
-
var AlertDialogHeader = ({ className, ...props }) => /* @__PURE__ */
|
|
1330
|
+
var AlertDialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsx19("div", { className: cn("flex flex-col gap-1.5 text-center sm:text-left", className), ...props });
|
|
1209
1331
|
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
1210
|
-
var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */
|
|
1332
|
+
var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx19(
|
|
1211
1333
|
"div",
|
|
1212
1334
|
{
|
|
1213
1335
|
className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
@@ -1215,27 +1337,27 @@ var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx15(
|
|
|
1215
1337
|
}
|
|
1216
1338
|
);
|
|
1217
1339
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
1218
|
-
var AlertDialogTitle =
|
|
1340
|
+
var AlertDialogTitle = React14.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
1219
1341
|
AlertDialogPrimitive.Title,
|
|
1220
1342
|
{
|
|
1221
1343
|
ref,
|
|
1222
|
-
render: /* @__PURE__ */
|
|
1344
|
+
render: /* @__PURE__ */ jsx19(Typography, { variant: "h5", color: "default", as: "h2", className }),
|
|
1223
1345
|
...props,
|
|
1224
1346
|
children
|
|
1225
1347
|
}
|
|
1226
1348
|
));
|
|
1227
1349
|
AlertDialogTitle.displayName = "AlertDialogTitle";
|
|
1228
|
-
var AlertDialogDescription =
|
|
1350
|
+
var AlertDialogDescription = React14.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
1229
1351
|
AlertDialogPrimitive.Description,
|
|
1230
1352
|
{
|
|
1231
1353
|
ref,
|
|
1232
|
-
render: /* @__PURE__ */
|
|
1354
|
+
render: /* @__PURE__ */ jsx19(Typography, { variant: "small", color: "muted", className }),
|
|
1233
1355
|
...props,
|
|
1234
1356
|
children
|
|
1235
1357
|
}
|
|
1236
1358
|
));
|
|
1237
1359
|
AlertDialogDescription.displayName = "AlertDialogDescription";
|
|
1238
|
-
var AlertDialogAction =
|
|
1360
|
+
var AlertDialogAction = React14.forwardRef(({ className, asChild, children, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
1239
1361
|
AlertDialogPrimitive.Close,
|
|
1240
1362
|
{
|
|
1241
1363
|
ref,
|
|
@@ -1246,7 +1368,7 @@ var AlertDialogAction = React12.forwardRef(({ className, asChild, children, ...p
|
|
|
1246
1368
|
}
|
|
1247
1369
|
));
|
|
1248
1370
|
AlertDialogAction.displayName = "AlertDialogAction";
|
|
1249
|
-
var AlertDialogCancel =
|
|
1371
|
+
var AlertDialogCancel = React14.forwardRef(({ className, asChild, children, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
1250
1372
|
AlertDialogPrimitive.Close,
|
|
1251
1373
|
{
|
|
1252
1374
|
ref,
|
|
@@ -1259,21 +1381,21 @@ var AlertDialogCancel = React12.forwardRef(({ className, asChild, children, ...p
|
|
|
1259
1381
|
AlertDialogCancel.displayName = "AlertDialogCancel";
|
|
1260
1382
|
|
|
1261
1383
|
// src/components/dropdown-menu/DropdownMenu.tsx
|
|
1262
|
-
import * as
|
|
1384
|
+
import * as React15 from "react";
|
|
1263
1385
|
|
|
1264
1386
|
// src/primitives/dropdown-menu.tsx
|
|
1265
1387
|
import { Menu as MenuPrimitive } from "@base-ui/react/menu";
|
|
1266
|
-
import { cn as
|
|
1388
|
+
import { cn as cn7 } from "cn";
|
|
1267
1389
|
import { ChevronRightIcon, CheckIcon } from "lucide-react";
|
|
1268
|
-
import { jsx as
|
|
1390
|
+
import { jsx as jsx20, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1269
1391
|
function DropdownMenu({ ...props }) {
|
|
1270
|
-
return /* @__PURE__ */
|
|
1392
|
+
return /* @__PURE__ */ jsx20(MenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
|
|
1271
1393
|
}
|
|
1272
1394
|
function DropdownMenuPortal({ ...props }) {
|
|
1273
|
-
return /* @__PURE__ */
|
|
1395
|
+
return /* @__PURE__ */ jsx20(MenuPrimitive.Portal, { "data-slot": "dropdown-menu-portal", ...props });
|
|
1274
1396
|
}
|
|
1275
1397
|
function DropdownMenuTrigger({ ...props }) {
|
|
1276
|
-
return /* @__PURE__ */
|
|
1398
|
+
return /* @__PURE__ */ jsx20(MenuPrimitive.Trigger, { "data-slot": "dropdown-menu-trigger", ...props });
|
|
1277
1399
|
}
|
|
1278
1400
|
function DropdownMenuContent({
|
|
1279
1401
|
align = "start",
|
|
@@ -1283,7 +1405,7 @@ function DropdownMenuContent({
|
|
|
1283
1405
|
className,
|
|
1284
1406
|
...props
|
|
1285
1407
|
}) {
|
|
1286
|
-
return /* @__PURE__ */
|
|
1408
|
+
return /* @__PURE__ */ jsx20(MenuPrimitive.Portal, { children: /* @__PURE__ */ jsx20(
|
|
1287
1409
|
MenuPrimitive.Positioner,
|
|
1288
1410
|
{
|
|
1289
1411
|
className: "isolate z-50 outline-none",
|
|
@@ -1291,11 +1413,11 @@ function DropdownMenuContent({
|
|
|
1291
1413
|
alignOffset,
|
|
1292
1414
|
side,
|
|
1293
1415
|
sideOffset,
|
|
1294
|
-
children: /* @__PURE__ */
|
|
1416
|
+
children: /* @__PURE__ */ jsx20(
|
|
1295
1417
|
MenuPrimitive.Popup,
|
|
1296
1418
|
{
|
|
1297
1419
|
"data-slot": "dropdown-menu-content",
|
|
1298
|
-
className:
|
|
1420
|
+
className: cn7("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
1421
|
...props
|
|
1300
1422
|
}
|
|
1301
1423
|
)
|
|
@@ -1303,19 +1425,19 @@ function DropdownMenuContent({
|
|
|
1303
1425
|
) });
|
|
1304
1426
|
}
|
|
1305
1427
|
function DropdownMenuGroup({ ...props }) {
|
|
1306
|
-
return /* @__PURE__ */
|
|
1428
|
+
return /* @__PURE__ */ jsx20(MenuPrimitive.Group, { "data-slot": "dropdown-menu-group", ...props });
|
|
1307
1429
|
}
|
|
1308
1430
|
function DropdownMenuLabel({
|
|
1309
1431
|
className,
|
|
1310
1432
|
inset,
|
|
1311
1433
|
...props
|
|
1312
1434
|
}) {
|
|
1313
|
-
return /* @__PURE__ */
|
|
1435
|
+
return /* @__PURE__ */ jsx20(
|
|
1314
1436
|
MenuPrimitive.GroupLabel,
|
|
1315
1437
|
{
|
|
1316
1438
|
"data-slot": "dropdown-menu-label",
|
|
1317
1439
|
"data-inset": inset,
|
|
1318
|
-
className:
|
|
1440
|
+
className: cn7(
|
|
1319
1441
|
"px-1.5 py-1 text-xs font-medium text-muted-foreground data-inset:pl-7",
|
|
1320
1442
|
className
|
|
1321
1443
|
),
|
|
@@ -1329,13 +1451,13 @@ function DropdownMenuItem({
|
|
|
1329
1451
|
variant = "default",
|
|
1330
1452
|
...props
|
|
1331
1453
|
}) {
|
|
1332
|
-
return /* @__PURE__ */
|
|
1454
|
+
return /* @__PURE__ */ jsx20(
|
|
1333
1455
|
MenuPrimitive.Item,
|
|
1334
1456
|
{
|
|
1335
1457
|
"data-slot": "dropdown-menu-item",
|
|
1336
1458
|
"data-inset": inset,
|
|
1337
1459
|
"data-variant": variant,
|
|
1338
|
-
className:
|
|
1460
|
+
className: cn7(
|
|
1339
1461
|
"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
1462
|
className
|
|
1341
1463
|
),
|
|
@@ -1344,7 +1466,7 @@ function DropdownMenuItem({
|
|
|
1344
1466
|
);
|
|
1345
1467
|
}
|
|
1346
1468
|
function DropdownMenuSub({ ...props }) {
|
|
1347
|
-
return /* @__PURE__ */
|
|
1469
|
+
return /* @__PURE__ */ jsx20(MenuPrimitive.SubmenuRoot, { "data-slot": "dropdown-menu-sub", ...props });
|
|
1348
1470
|
}
|
|
1349
1471
|
function DropdownMenuSubTrigger({
|
|
1350
1472
|
className,
|
|
@@ -1352,19 +1474,19 @@ function DropdownMenuSubTrigger({
|
|
|
1352
1474
|
children,
|
|
1353
1475
|
...props
|
|
1354
1476
|
}) {
|
|
1355
|
-
return /* @__PURE__ */
|
|
1477
|
+
return /* @__PURE__ */ jsxs9(
|
|
1356
1478
|
MenuPrimitive.SubmenuTrigger,
|
|
1357
1479
|
{
|
|
1358
1480
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
1359
1481
|
"data-inset": inset,
|
|
1360
|
-
className:
|
|
1482
|
+
className: cn7(
|
|
1361
1483
|
"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
1484
|
className
|
|
1363
1485
|
),
|
|
1364
1486
|
...props,
|
|
1365
1487
|
children: [
|
|
1366
1488
|
children,
|
|
1367
|
-
/* @__PURE__ */
|
|
1489
|
+
/* @__PURE__ */ jsx20(ChevronRightIcon, { className: "ml-auto" })
|
|
1368
1490
|
]
|
|
1369
1491
|
}
|
|
1370
1492
|
);
|
|
@@ -1377,11 +1499,11 @@ function DropdownMenuSubContent({
|
|
|
1377
1499
|
className,
|
|
1378
1500
|
...props
|
|
1379
1501
|
}) {
|
|
1380
|
-
return /* @__PURE__ */
|
|
1502
|
+
return /* @__PURE__ */ jsx20(
|
|
1381
1503
|
DropdownMenuContent,
|
|
1382
1504
|
{
|
|
1383
1505
|
"data-slot": "dropdown-menu-sub-content",
|
|
1384
|
-
className:
|
|
1506
|
+
className: cn7("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
1507
|
align,
|
|
1386
1508
|
alignOffset,
|
|
1387
1509
|
side,
|
|
@@ -1397,24 +1519,24 @@ function DropdownMenuCheckboxItem({
|
|
|
1397
1519
|
inset,
|
|
1398
1520
|
...props
|
|
1399
1521
|
}) {
|
|
1400
|
-
return /* @__PURE__ */
|
|
1522
|
+
return /* @__PURE__ */ jsxs9(
|
|
1401
1523
|
MenuPrimitive.CheckboxItem,
|
|
1402
1524
|
{
|
|
1403
1525
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
1404
1526
|
"data-inset": inset,
|
|
1405
|
-
className:
|
|
1527
|
+
className: cn7(
|
|
1406
1528
|
"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
1529
|
className
|
|
1408
1530
|
),
|
|
1409
1531
|
checked,
|
|
1410
1532
|
...props,
|
|
1411
1533
|
children: [
|
|
1412
|
-
/* @__PURE__ */
|
|
1534
|
+
/* @__PURE__ */ jsx20(
|
|
1413
1535
|
"span",
|
|
1414
1536
|
{
|
|
1415
1537
|
className: "pointer-events-none absolute right-2 flex items-center justify-center",
|
|
1416
1538
|
"data-slot": "dropdown-menu-checkbox-item-indicator",
|
|
1417
|
-
children: /* @__PURE__ */
|
|
1539
|
+
children: /* @__PURE__ */ jsx20(MenuPrimitive.CheckboxItemIndicator, { children: /* @__PURE__ */ jsx20(
|
|
1418
1540
|
CheckIcon,
|
|
1419
1541
|
{}
|
|
1420
1542
|
) })
|
|
@@ -1426,7 +1548,7 @@ function DropdownMenuCheckboxItem({
|
|
|
1426
1548
|
);
|
|
1427
1549
|
}
|
|
1428
1550
|
function DropdownMenuRadioGroup({ ...props }) {
|
|
1429
|
-
return /* @__PURE__ */
|
|
1551
|
+
return /* @__PURE__ */ jsx20(
|
|
1430
1552
|
MenuPrimitive.RadioGroup,
|
|
1431
1553
|
{
|
|
1432
1554
|
"data-slot": "dropdown-menu-radio-group",
|
|
@@ -1440,23 +1562,23 @@ function DropdownMenuRadioItem({
|
|
|
1440
1562
|
inset,
|
|
1441
1563
|
...props
|
|
1442
1564
|
}) {
|
|
1443
|
-
return /* @__PURE__ */
|
|
1565
|
+
return /* @__PURE__ */ jsxs9(
|
|
1444
1566
|
MenuPrimitive.RadioItem,
|
|
1445
1567
|
{
|
|
1446
1568
|
"data-slot": "dropdown-menu-radio-item",
|
|
1447
1569
|
"data-inset": inset,
|
|
1448
|
-
className:
|
|
1570
|
+
className: cn7(
|
|
1449
1571
|
"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
1572
|
className
|
|
1451
1573
|
),
|
|
1452
1574
|
...props,
|
|
1453
1575
|
children: [
|
|
1454
|
-
/* @__PURE__ */
|
|
1576
|
+
/* @__PURE__ */ jsx20(
|
|
1455
1577
|
"span",
|
|
1456
1578
|
{
|
|
1457
1579
|
className: "pointer-events-none absolute right-2 flex items-center justify-center",
|
|
1458
1580
|
"data-slot": "dropdown-menu-radio-item-indicator",
|
|
1459
|
-
children: /* @__PURE__ */
|
|
1581
|
+
children: /* @__PURE__ */ jsx20(MenuPrimitive.RadioItemIndicator, { children: /* @__PURE__ */ jsx20(
|
|
1460
1582
|
CheckIcon,
|
|
1461
1583
|
{}
|
|
1462
1584
|
) })
|
|
@@ -1471,11 +1593,11 @@ function DropdownMenuSeparator({
|
|
|
1471
1593
|
className,
|
|
1472
1594
|
...props
|
|
1473
1595
|
}) {
|
|
1474
|
-
return /* @__PURE__ */
|
|
1596
|
+
return /* @__PURE__ */ jsx20(
|
|
1475
1597
|
MenuPrimitive.Separator,
|
|
1476
1598
|
{
|
|
1477
1599
|
"data-slot": "dropdown-menu-separator",
|
|
1478
|
-
className:
|
|
1600
|
+
className: cn7("-mx-1 my-1 h-px bg-border", className),
|
|
1479
1601
|
...props
|
|
1480
1602
|
}
|
|
1481
1603
|
);
|
|
@@ -1484,11 +1606,11 @@ function DropdownMenuShortcut({
|
|
|
1484
1606
|
className,
|
|
1485
1607
|
...props
|
|
1486
1608
|
}) {
|
|
1487
|
-
return /* @__PURE__ */
|
|
1609
|
+
return /* @__PURE__ */ jsx20(
|
|
1488
1610
|
"span",
|
|
1489
1611
|
{
|
|
1490
1612
|
"data-slot": "dropdown-menu-shortcut",
|
|
1491
|
-
className:
|
|
1613
|
+
className: cn7(
|
|
1492
1614
|
"ml-auto text-xs tracking-widest text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground",
|
|
1493
1615
|
className
|
|
1494
1616
|
),
|
|
@@ -1498,13 +1620,13 @@ function DropdownMenuShortcut({
|
|
|
1498
1620
|
}
|
|
1499
1621
|
|
|
1500
1622
|
// src/components/dropdown-menu/DropdownMenu.tsx
|
|
1501
|
-
import { jsx as
|
|
1502
|
-
var DropdownMenuTrigger2 =
|
|
1503
|
-
({ asChild, children, ...props }, ref) => /* @__PURE__ */
|
|
1623
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
1624
|
+
var DropdownMenuTrigger2 = React15.forwardRef(
|
|
1625
|
+
({ asChild, children, ...props }, ref) => /* @__PURE__ */ jsx21(DropdownMenuTrigger, { ref, render: asChildRender(asChild, children), ...props, children: asChild ? void 0 : children })
|
|
1504
1626
|
);
|
|
1505
1627
|
DropdownMenuTrigger2.displayName = "DropdownMenuTrigger";
|
|
1506
|
-
var DropdownMenuSubTrigger2 =
|
|
1507
|
-
({ className, inset, asChild, children, ...props }, ref) => /* @__PURE__ */
|
|
1628
|
+
var DropdownMenuSubTrigger2 = React15.forwardRef(
|
|
1629
|
+
({ className, inset, asChild, children, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
1508
1630
|
DropdownMenuSubTrigger,
|
|
1509
1631
|
{
|
|
1510
1632
|
ref,
|
|
@@ -1521,8 +1643,8 @@ var DropdownMenuSubTrigger2 = React13.forwardRef(
|
|
|
1521
1643
|
)
|
|
1522
1644
|
);
|
|
1523
1645
|
DropdownMenuSubTrigger2.displayName = "DropdownMenuSubTrigger";
|
|
1524
|
-
var DropdownMenuSubContent2 =
|
|
1525
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
1646
|
+
var DropdownMenuSubContent2 = React15.forwardRef(
|
|
1647
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
1526
1648
|
DropdownMenuSubContent,
|
|
1527
1649
|
{
|
|
1528
1650
|
ref,
|
|
@@ -1535,8 +1657,8 @@ var DropdownMenuSubContent2 = React13.forwardRef(
|
|
|
1535
1657
|
)
|
|
1536
1658
|
);
|
|
1537
1659
|
DropdownMenuSubContent2.displayName = "DropdownMenuSubContent";
|
|
1538
|
-
var DropdownMenuContent2 =
|
|
1539
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
1660
|
+
var DropdownMenuContent2 = React15.forwardRef(
|
|
1661
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
1540
1662
|
DropdownMenuContent,
|
|
1541
1663
|
{
|
|
1542
1664
|
ref,
|
|
@@ -1549,8 +1671,8 @@ var DropdownMenuContent2 = React13.forwardRef(
|
|
|
1549
1671
|
)
|
|
1550
1672
|
);
|
|
1551
1673
|
DropdownMenuContent2.displayName = "DropdownMenuContent";
|
|
1552
|
-
var DropdownMenuItem2 =
|
|
1553
|
-
({ className, inset, asChild, children, textValue, ...props }, ref) => /* @__PURE__ */
|
|
1674
|
+
var DropdownMenuItem2 = React15.forwardRef(
|
|
1675
|
+
({ className, inset, asChild, children, textValue, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
1554
1676
|
DropdownMenuItem,
|
|
1555
1677
|
{
|
|
1556
1678
|
ref,
|
|
@@ -1568,8 +1690,8 @@ var DropdownMenuItem2 = React13.forwardRef(
|
|
|
1568
1690
|
)
|
|
1569
1691
|
);
|
|
1570
1692
|
DropdownMenuItem2.displayName = "DropdownMenuItem";
|
|
1571
|
-
var DropdownMenuCheckboxItem2 =
|
|
1572
|
-
({ className, children, asChild, textValue, ...props }, ref) => /* @__PURE__ */
|
|
1693
|
+
var DropdownMenuCheckboxItem2 = React15.forwardRef(
|
|
1694
|
+
({ className, children, asChild, textValue, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
1573
1695
|
DropdownMenuCheckboxItem,
|
|
1574
1696
|
{
|
|
1575
1697
|
ref,
|
|
@@ -1582,8 +1704,8 @@ var DropdownMenuCheckboxItem2 = React13.forwardRef(
|
|
|
1582
1704
|
)
|
|
1583
1705
|
);
|
|
1584
1706
|
DropdownMenuCheckboxItem2.displayName = "DropdownMenuCheckboxItem";
|
|
1585
|
-
var DropdownMenuRadioItem2 =
|
|
1586
|
-
({ className, children, asChild, textValue, ...props }, ref) => /* @__PURE__ */
|
|
1707
|
+
var DropdownMenuRadioItem2 = React15.forwardRef(
|
|
1708
|
+
({ className, children, asChild, textValue, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
1587
1709
|
DropdownMenuRadioItem,
|
|
1588
1710
|
{
|
|
1589
1711
|
ref,
|
|
@@ -1596,8 +1718,8 @@ var DropdownMenuRadioItem2 = React13.forwardRef(
|
|
|
1596
1718
|
)
|
|
1597
1719
|
);
|
|
1598
1720
|
DropdownMenuRadioItem2.displayName = "DropdownMenuRadioItem";
|
|
1599
|
-
var DropdownMenuLabel2 =
|
|
1600
|
-
({ className, inset, asChild, children, ...props }, ref) => /* @__PURE__ */
|
|
1721
|
+
var DropdownMenuLabel2 = React15.forwardRef(
|
|
1722
|
+
({ className, inset, asChild, children, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
1601
1723
|
DropdownMenuLabel,
|
|
1602
1724
|
{
|
|
1603
1725
|
ref,
|
|
@@ -1613,8 +1735,8 @@ var DropdownMenuLabel2 = React13.forwardRef(
|
|
|
1613
1735
|
)
|
|
1614
1736
|
);
|
|
1615
1737
|
DropdownMenuLabel2.displayName = "DropdownMenuLabel";
|
|
1616
|
-
var DropdownMenuSeparator2 =
|
|
1617
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
1738
|
+
var DropdownMenuSeparator2 = React15.forwardRef(
|
|
1739
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
1618
1740
|
DropdownMenuSeparator,
|
|
1619
1741
|
{
|
|
1620
1742
|
ref,
|
|
@@ -1625,7 +1747,7 @@ var DropdownMenuSeparator2 = React13.forwardRef(
|
|
|
1625
1747
|
);
|
|
1626
1748
|
DropdownMenuSeparator2.displayName = "DropdownMenuSeparator";
|
|
1627
1749
|
var DropdownMenuShortcut2 = ({ className, ...props }) => {
|
|
1628
|
-
return /* @__PURE__ */
|
|
1750
|
+
return /* @__PURE__ */ jsx21(
|
|
1629
1751
|
DropdownMenuShortcut,
|
|
1630
1752
|
{
|
|
1631
1753
|
className: cn("text-berget-muted-foreground", className),
|
|
@@ -1636,17 +1758,17 @@ var DropdownMenuShortcut2 = ({ className, ...props }) => {
|
|
|
1636
1758
|
DropdownMenuShortcut2.displayName = "DropdownMenuShortcut";
|
|
1637
1759
|
|
|
1638
1760
|
// src/components/tooltip/Tooltip.tsx
|
|
1639
|
-
import * as
|
|
1761
|
+
import * as React16 from "react";
|
|
1640
1762
|
|
|
1641
1763
|
// src/primitives/tooltip.tsx
|
|
1642
1764
|
import { Tooltip as TooltipPrimitive } from "@base-ui/react/tooltip";
|
|
1643
|
-
import { cn as
|
|
1644
|
-
import { jsx as
|
|
1765
|
+
import { cn as cn8 } from "cn";
|
|
1766
|
+
import { jsx as jsx22, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1645
1767
|
function TooltipProvider({
|
|
1646
1768
|
delay = 0,
|
|
1647
1769
|
...props
|
|
1648
1770
|
}) {
|
|
1649
|
-
return /* @__PURE__ */
|
|
1771
|
+
return /* @__PURE__ */ jsx22(
|
|
1650
1772
|
TooltipPrimitive.Provider,
|
|
1651
1773
|
{
|
|
1652
1774
|
"data-slot": "tooltip-provider",
|
|
@@ -1656,10 +1778,10 @@ function TooltipProvider({
|
|
|
1656
1778
|
);
|
|
1657
1779
|
}
|
|
1658
1780
|
function Tooltip({ ...props }) {
|
|
1659
|
-
return /* @__PURE__ */
|
|
1781
|
+
return /* @__PURE__ */ jsx22(TooltipPrimitive.Root, { "data-slot": "tooltip", ...props });
|
|
1660
1782
|
}
|
|
1661
1783
|
function TooltipTrigger({ ...props }) {
|
|
1662
|
-
return /* @__PURE__ */
|
|
1784
|
+
return /* @__PURE__ */ jsx22(TooltipPrimitive.Trigger, { "data-slot": "tooltip-trigger", ...props });
|
|
1663
1785
|
}
|
|
1664
1786
|
function TooltipContent({
|
|
1665
1787
|
className,
|
|
@@ -1670,7 +1792,7 @@ function TooltipContent({
|
|
|
1670
1792
|
children,
|
|
1671
1793
|
...props
|
|
1672
1794
|
}) {
|
|
1673
|
-
return /* @__PURE__ */
|
|
1795
|
+
return /* @__PURE__ */ jsx22(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsx22(
|
|
1674
1796
|
TooltipPrimitive.Positioner,
|
|
1675
1797
|
{
|
|
1676
1798
|
align,
|
|
@@ -1678,18 +1800,18 @@ function TooltipContent({
|
|
|
1678
1800
|
side,
|
|
1679
1801
|
sideOffset,
|
|
1680
1802
|
className: "isolate z-50",
|
|
1681
|
-
children: /* @__PURE__ */
|
|
1803
|
+
children: /* @__PURE__ */ jsxs10(
|
|
1682
1804
|
TooltipPrimitive.Popup,
|
|
1683
1805
|
{
|
|
1684
1806
|
"data-slot": "tooltip-content",
|
|
1685
|
-
className:
|
|
1807
|
+
className: cn8(
|
|
1686
1808
|
"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
1809
|
className
|
|
1688
1810
|
),
|
|
1689
1811
|
...props,
|
|
1690
1812
|
children: [
|
|
1691
1813
|
children,
|
|
1692
|
-
/* @__PURE__ */
|
|
1814
|
+
/* @__PURE__ */ jsx22(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
1815
|
]
|
|
1694
1816
|
}
|
|
1695
1817
|
)
|
|
@@ -1698,13 +1820,13 @@ function TooltipContent({
|
|
|
1698
1820
|
}
|
|
1699
1821
|
|
|
1700
1822
|
// src/components/tooltip/Tooltip.tsx
|
|
1701
|
-
import { jsx as
|
|
1702
|
-
var TooltipTrigger2 =
|
|
1703
|
-
({ asChild, children, ...props }, ref) => /* @__PURE__ */
|
|
1823
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
1824
|
+
var TooltipTrigger2 = React16.forwardRef(
|
|
1825
|
+
({ asChild, children, ...props }, ref) => /* @__PURE__ */ jsx23(TooltipTrigger, { ref, render: asChildRender(asChild, children), ...props, children: asChild ? void 0 : children })
|
|
1704
1826
|
);
|
|
1705
1827
|
TooltipTrigger2.displayName = "TooltipTrigger";
|
|
1706
|
-
var TooltipContent2 =
|
|
1707
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
1828
|
+
var TooltipContent2 = React16.forwardRef(
|
|
1829
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
1708
1830
|
TooltipContent,
|
|
1709
1831
|
{
|
|
1710
1832
|
ref,
|
|
@@ -1723,18 +1845,18 @@ import { ChevronDown } from "lucide-react";
|
|
|
1723
1845
|
// src/primitives/navigation-menu.tsx
|
|
1724
1846
|
import { NavigationMenu as NavigationMenuPrimitive } from "@base-ui/react/navigation-menu";
|
|
1725
1847
|
import { cva as cva7 } from "class-variance-authority";
|
|
1726
|
-
import { cn as
|
|
1848
|
+
import { cn as cn9 } from "cn";
|
|
1727
1849
|
import { ChevronDownIcon } from "lucide-react";
|
|
1728
|
-
import { jsx as
|
|
1850
|
+
import { jsx as jsx24, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1729
1851
|
function NavigationMenuList({
|
|
1730
1852
|
className,
|
|
1731
1853
|
...props
|
|
1732
1854
|
}) {
|
|
1733
|
-
return /* @__PURE__ */
|
|
1855
|
+
return /* @__PURE__ */ jsx24(
|
|
1734
1856
|
NavigationMenuPrimitive.List,
|
|
1735
1857
|
{
|
|
1736
1858
|
"data-slot": "navigation-menu-list",
|
|
1737
|
-
className:
|
|
1859
|
+
className: cn9(
|
|
1738
1860
|
"group flex flex-1 list-none items-center justify-center gap-0",
|
|
1739
1861
|
className
|
|
1740
1862
|
),
|
|
@@ -1746,11 +1868,11 @@ function NavigationMenuItem({
|
|
|
1746
1868
|
className,
|
|
1747
1869
|
...props
|
|
1748
1870
|
}) {
|
|
1749
|
-
return /* @__PURE__ */
|
|
1871
|
+
return /* @__PURE__ */ jsx24(
|
|
1750
1872
|
NavigationMenuPrimitive.Item,
|
|
1751
1873
|
{
|
|
1752
1874
|
"data-slot": "navigation-menu-item",
|
|
1753
|
-
className:
|
|
1875
|
+
className: cn9("relative", className),
|
|
1754
1876
|
...props
|
|
1755
1877
|
}
|
|
1756
1878
|
);
|
|
@@ -1762,11 +1884,11 @@ function NavigationMenuContent({
|
|
|
1762
1884
|
className,
|
|
1763
1885
|
...props
|
|
1764
1886
|
}) {
|
|
1765
|
-
return /* @__PURE__ */
|
|
1887
|
+
return /* @__PURE__ */ jsx24(
|
|
1766
1888
|
NavigationMenuPrimitive.Content,
|
|
1767
1889
|
{
|
|
1768
1890
|
"data-slot": "navigation-menu-content",
|
|
1769
|
-
className:
|
|
1891
|
+
className: cn9(
|
|
1770
1892
|
"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
1893
|
className
|
|
1772
1894
|
),
|
|
@@ -1778,29 +1900,29 @@ function NavigationMenuIndicator({
|
|
|
1778
1900
|
className,
|
|
1779
1901
|
...props
|
|
1780
1902
|
}) {
|
|
1781
|
-
return /* @__PURE__ */
|
|
1903
|
+
return /* @__PURE__ */ jsx24(
|
|
1782
1904
|
NavigationMenuPrimitive.Icon,
|
|
1783
1905
|
{
|
|
1784
1906
|
"data-slot": "navigation-menu-indicator",
|
|
1785
|
-
className:
|
|
1907
|
+
className: cn9(
|
|
1786
1908
|
"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
1909
|
className
|
|
1788
1910
|
),
|
|
1789
1911
|
...props,
|
|
1790
|
-
children: /* @__PURE__ */
|
|
1912
|
+
children: /* @__PURE__ */ jsx24("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
1791
1913
|
}
|
|
1792
1914
|
);
|
|
1793
1915
|
}
|
|
1794
1916
|
|
|
1795
1917
|
// src/components/navigation-menu/NavigationMenu.tsx
|
|
1796
|
-
import { jsx as
|
|
1918
|
+
import { jsx as jsx25, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1797
1919
|
function NavigationMenu({
|
|
1798
1920
|
align = "start",
|
|
1799
1921
|
className,
|
|
1800
1922
|
children,
|
|
1801
1923
|
...props
|
|
1802
1924
|
}) {
|
|
1803
|
-
return /* @__PURE__ */
|
|
1925
|
+
return /* @__PURE__ */ jsxs12(
|
|
1804
1926
|
NavigationMenuPrimitive2.Root,
|
|
1805
1927
|
{
|
|
1806
1928
|
"data-slot": "navigation-menu",
|
|
@@ -1811,7 +1933,7 @@ function NavigationMenu({
|
|
|
1811
1933
|
...props,
|
|
1812
1934
|
children: [
|
|
1813
1935
|
children,
|
|
1814
|
-
/* @__PURE__ */
|
|
1936
|
+
/* @__PURE__ */ jsx25(NavigationMenuPositioner, { align })
|
|
1815
1937
|
]
|
|
1816
1938
|
}
|
|
1817
1939
|
);
|
|
@@ -1824,7 +1946,7 @@ function NavigationMenuTrigger({
|
|
|
1824
1946
|
children,
|
|
1825
1947
|
...props
|
|
1826
1948
|
}) {
|
|
1827
|
-
return /* @__PURE__ */
|
|
1949
|
+
return /* @__PURE__ */ jsxs12(
|
|
1828
1950
|
NavigationMenuPrimitive2.Trigger,
|
|
1829
1951
|
{
|
|
1830
1952
|
"data-slot": "navigation-menu-trigger",
|
|
@@ -1833,7 +1955,7 @@ function NavigationMenuTrigger({
|
|
|
1833
1955
|
children: [
|
|
1834
1956
|
children,
|
|
1835
1957
|
" ",
|
|
1836
|
-
/* @__PURE__ */
|
|
1958
|
+
/* @__PURE__ */ jsx25(
|
|
1837
1959
|
ChevronDown,
|
|
1838
1960
|
{
|
|
1839
1961
|
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 +1967,7 @@ function NavigationMenuTrigger({
|
|
|
1845
1967
|
);
|
|
1846
1968
|
}
|
|
1847
1969
|
function NavigationMenuLink({ className, ...props }) {
|
|
1848
|
-
return /* @__PURE__ */
|
|
1970
|
+
return /* @__PURE__ */ jsx25(
|
|
1849
1971
|
NavigationMenuPrimitive2.Link,
|
|
1850
1972
|
{
|
|
1851
1973
|
"data-slot": "navigation-menu-link",
|
|
@@ -1865,7 +1987,7 @@ function NavigationMenuPositioner({
|
|
|
1865
1987
|
alignOffset = 0,
|
|
1866
1988
|
...props
|
|
1867
1989
|
}) {
|
|
1868
|
-
return /* @__PURE__ */
|
|
1990
|
+
return /* @__PURE__ */ jsx25(NavigationMenuPrimitive2.Portal, { children: /* @__PURE__ */ jsx25(
|
|
1869
1991
|
NavigationMenuPrimitive2.Positioner,
|
|
1870
1992
|
{
|
|
1871
1993
|
side,
|
|
@@ -1877,24 +1999,24 @@ function NavigationMenuPositioner({
|
|
|
1877
1999
|
className
|
|
1878
2000
|
),
|
|
1879
2001
|
...props,
|
|
1880
|
-
children: /* @__PURE__ */
|
|
2002
|
+
children: /* @__PURE__ */ jsx25(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__ */ jsx25(NavigationMenuPrimitive2.Viewport, { className: "relative size-full overflow-hidden" }) })
|
|
1881
2003
|
}
|
|
1882
2004
|
) });
|
|
1883
2005
|
}
|
|
1884
2006
|
|
|
1885
2007
|
// src/primitives/sidebar.tsx
|
|
1886
|
-
import * as
|
|
2008
|
+
import * as React18 from "react";
|
|
1887
2009
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
1888
2010
|
import { useRender } from "@base-ui/react/use-render";
|
|
1889
2011
|
import { cva as cva9 } from "class-variance-authority";
|
|
1890
|
-
import { cn as
|
|
2012
|
+
import { cn as cn13 } from "cn";
|
|
1891
2013
|
|
|
1892
2014
|
// src/hooks/use-mobile.tsx
|
|
1893
|
-
import * as
|
|
2015
|
+
import * as React17 from "react";
|
|
1894
2016
|
var MOBILE_BREAKPOINT = 768;
|
|
1895
2017
|
function useIsMobile() {
|
|
1896
|
-
const [isMobile, setIsMobile] =
|
|
1897
|
-
|
|
2018
|
+
const [isMobile, setIsMobile] = React17.useState(void 0);
|
|
2019
|
+
React17.useEffect(() => {
|
|
1898
2020
|
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
1899
2021
|
const onChange = () => {
|
|
1900
2022
|
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
@@ -1908,15 +2030,15 @@ function useIsMobile() {
|
|
|
1908
2030
|
|
|
1909
2031
|
// src/primitives/input.tsx
|
|
1910
2032
|
import { Input as InputPrimitive } from "@base-ui/react/input";
|
|
1911
|
-
import { cn as
|
|
1912
|
-
import { jsx as
|
|
2033
|
+
import { cn as cn10 } from "cn";
|
|
2034
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
1913
2035
|
function Input({ className, type, ...props }) {
|
|
1914
|
-
return /* @__PURE__ */
|
|
2036
|
+
return /* @__PURE__ */ jsx26(
|
|
1915
2037
|
InputPrimitive,
|
|
1916
2038
|
{
|
|
1917
2039
|
type,
|
|
1918
2040
|
"data-slot": "input",
|
|
1919
|
-
className:
|
|
2041
|
+
className: cn10(
|
|
1920
2042
|
"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
2043
|
className
|
|
1922
2044
|
),
|
|
@@ -1927,19 +2049,19 @@ function Input({ className, type, ...props }) {
|
|
|
1927
2049
|
|
|
1928
2050
|
// src/primitives/separator.tsx
|
|
1929
2051
|
import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
|
|
1930
|
-
import { cn as
|
|
1931
|
-
import { jsx as
|
|
2052
|
+
import { cn as cn11 } from "cn";
|
|
2053
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
1932
2054
|
function Separator({
|
|
1933
2055
|
className,
|
|
1934
2056
|
orientation = "horizontal",
|
|
1935
2057
|
...props
|
|
1936
2058
|
}) {
|
|
1937
|
-
return /* @__PURE__ */
|
|
2059
|
+
return /* @__PURE__ */ jsx27(
|
|
1938
2060
|
SeparatorPrimitive,
|
|
1939
2061
|
{
|
|
1940
2062
|
"data-slot": "separator",
|
|
1941
2063
|
orientation,
|
|
1942
|
-
className:
|
|
2064
|
+
className: cn11(
|
|
1943
2065
|
"shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch",
|
|
1944
2066
|
className
|
|
1945
2067
|
),
|
|
@@ -1950,21 +2072,21 @@ function Separator({
|
|
|
1950
2072
|
|
|
1951
2073
|
// src/primitives/sheet.tsx
|
|
1952
2074
|
import { Dialog as SheetPrimitive } from "@base-ui/react/dialog";
|
|
1953
|
-
import { cn as
|
|
2075
|
+
import { cn as cn12 } from "cn";
|
|
1954
2076
|
import { XIcon } from "lucide-react";
|
|
1955
|
-
import { jsx as
|
|
2077
|
+
import { jsx as jsx28, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1956
2078
|
function Sheet({ ...props }) {
|
|
1957
|
-
return /* @__PURE__ */
|
|
2079
|
+
return /* @__PURE__ */ jsx28(SheetPrimitive.Root, { "data-slot": "sheet", ...props });
|
|
1958
2080
|
}
|
|
1959
2081
|
function SheetPortal({ ...props }) {
|
|
1960
|
-
return /* @__PURE__ */
|
|
2082
|
+
return /* @__PURE__ */ jsx28(SheetPrimitive.Portal, { "data-slot": "sheet-portal", ...props });
|
|
1961
2083
|
}
|
|
1962
2084
|
function SheetOverlay({ className, ...props }) {
|
|
1963
|
-
return /* @__PURE__ */
|
|
2085
|
+
return /* @__PURE__ */ jsx28(
|
|
1964
2086
|
SheetPrimitive.Backdrop,
|
|
1965
2087
|
{
|
|
1966
2088
|
"data-slot": "sheet-overlay",
|
|
1967
|
-
className:
|
|
2089
|
+
className: cn12(
|
|
1968
2090
|
"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
2091
|
className
|
|
1970
2092
|
),
|
|
@@ -1979,25 +2101,25 @@ function SheetContent({
|
|
|
1979
2101
|
showCloseButton = true,
|
|
1980
2102
|
...props
|
|
1981
2103
|
}) {
|
|
1982
|
-
return /* @__PURE__ */
|
|
1983
|
-
/* @__PURE__ */
|
|
1984
|
-
/* @__PURE__ */
|
|
2104
|
+
return /* @__PURE__ */ jsxs13(SheetPortal, { children: [
|
|
2105
|
+
/* @__PURE__ */ jsx28(SheetOverlay, {}),
|
|
2106
|
+
/* @__PURE__ */ jsxs13(
|
|
1985
2107
|
SheetPrimitive.Popup,
|
|
1986
2108
|
{
|
|
1987
2109
|
"data-slot": "sheet-content",
|
|
1988
2110
|
"data-side": side,
|
|
1989
|
-
className:
|
|
2111
|
+
className: cn12(
|
|
1990
2112
|
"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
2113
|
className
|
|
1992
2114
|
),
|
|
1993
2115
|
...props,
|
|
1994
2116
|
children: [
|
|
1995
2117
|
children,
|
|
1996
|
-
showCloseButton && /* @__PURE__ */
|
|
2118
|
+
showCloseButton && /* @__PURE__ */ jsxs13(
|
|
1997
2119
|
SheetPrimitive.Close,
|
|
1998
2120
|
{
|
|
1999
2121
|
"data-slot": "sheet-close",
|
|
2000
|
-
render: /* @__PURE__ */
|
|
2122
|
+
render: /* @__PURE__ */ jsx28(
|
|
2001
2123
|
Button,
|
|
2002
2124
|
{
|
|
2003
2125
|
variant: "ghost",
|
|
@@ -2006,11 +2128,11 @@ function SheetContent({
|
|
|
2006
2128
|
}
|
|
2007
2129
|
),
|
|
2008
2130
|
children: [
|
|
2009
|
-
/* @__PURE__ */
|
|
2131
|
+
/* @__PURE__ */ jsx28(
|
|
2010
2132
|
XIcon,
|
|
2011
2133
|
{}
|
|
2012
2134
|
),
|
|
2013
|
-
/* @__PURE__ */
|
|
2135
|
+
/* @__PURE__ */ jsx28("span", { className: "sr-only", children: "Close" })
|
|
2014
2136
|
]
|
|
2015
2137
|
}
|
|
2016
2138
|
)
|
|
@@ -2020,21 +2142,21 @@ function SheetContent({
|
|
|
2020
2142
|
] });
|
|
2021
2143
|
}
|
|
2022
2144
|
function SheetHeader({ className, ...props }) {
|
|
2023
|
-
return /* @__PURE__ */
|
|
2145
|
+
return /* @__PURE__ */ jsx28(
|
|
2024
2146
|
"div",
|
|
2025
2147
|
{
|
|
2026
2148
|
"data-slot": "sheet-header",
|
|
2027
|
-
className:
|
|
2149
|
+
className: cn12("flex flex-col gap-0.5 p-4", className),
|
|
2028
2150
|
...props
|
|
2029
2151
|
}
|
|
2030
2152
|
);
|
|
2031
2153
|
}
|
|
2032
2154
|
function SheetTitle({ className, ...props }) {
|
|
2033
|
-
return /* @__PURE__ */
|
|
2155
|
+
return /* @__PURE__ */ jsx28(
|
|
2034
2156
|
SheetPrimitive.Title,
|
|
2035
2157
|
{
|
|
2036
2158
|
"data-slot": "sheet-title",
|
|
2037
|
-
className:
|
|
2159
|
+
className: cn12(
|
|
2038
2160
|
"text-base font-medium text-foreground",
|
|
2039
2161
|
className
|
|
2040
2162
|
),
|
|
@@ -2046,25 +2168,11 @@ function SheetDescription({
|
|
|
2046
2168
|
className,
|
|
2047
2169
|
...props
|
|
2048
2170
|
}) {
|
|
2049
|
-
return /* @__PURE__ */
|
|
2171
|
+
return /* @__PURE__ */ jsx28(
|
|
2050
2172
|
SheetPrimitive.Description,
|
|
2051
2173
|
{
|
|
2052
2174
|
"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),
|
|
2175
|
+
className: cn12("text-sm text-muted-foreground", className),
|
|
2068
2176
|
...props
|
|
2069
2177
|
}
|
|
2070
2178
|
);
|
|
@@ -2072,16 +2180,16 @@ function Skeleton({ className, ...props }) {
|
|
|
2072
2180
|
|
|
2073
2181
|
// src/primitives/sidebar.tsx
|
|
2074
2182
|
import { PanelLeftIcon } from "lucide-react";
|
|
2075
|
-
import { jsx as
|
|
2183
|
+
import { jsx as jsx29, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2076
2184
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
2077
2185
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
2078
2186
|
var SIDEBAR_WIDTH = "16rem";
|
|
2079
2187
|
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
2080
2188
|
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
2081
2189
|
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
2082
|
-
var SidebarContext =
|
|
2190
|
+
var SidebarContext = React18.createContext(null);
|
|
2083
2191
|
function useSidebar() {
|
|
2084
|
-
const context =
|
|
2192
|
+
const context = React18.useContext(SidebarContext);
|
|
2085
2193
|
if (!context) {
|
|
2086
2194
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
2087
2195
|
}
|
|
@@ -2097,10 +2205,10 @@ function SidebarProvider({
|
|
|
2097
2205
|
...props
|
|
2098
2206
|
}) {
|
|
2099
2207
|
const isMobile = useIsMobile();
|
|
2100
|
-
const [openMobile, setOpenMobile] =
|
|
2101
|
-
const [_open, _setOpen] =
|
|
2208
|
+
const [openMobile, setOpenMobile] = React18.useState(false);
|
|
2209
|
+
const [_open, _setOpen] = React18.useState(defaultOpen);
|
|
2102
2210
|
const open = openProp ?? _open;
|
|
2103
|
-
const setOpen =
|
|
2211
|
+
const setOpen = React18.useCallback(
|
|
2104
2212
|
(value) => {
|
|
2105
2213
|
const openState = typeof value === "function" ? value(open) : value;
|
|
2106
2214
|
if (setOpenProp) {
|
|
@@ -2112,10 +2220,10 @@ function SidebarProvider({
|
|
|
2112
2220
|
},
|
|
2113
2221
|
[setOpenProp, open]
|
|
2114
2222
|
);
|
|
2115
|
-
const toggleSidebar =
|
|
2223
|
+
const toggleSidebar = React18.useCallback(() => {
|
|
2116
2224
|
return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
|
|
2117
2225
|
}, [isMobile, setOpen, setOpenMobile]);
|
|
2118
|
-
|
|
2226
|
+
React18.useEffect(() => {
|
|
2119
2227
|
const handleKeyDown = (event) => {
|
|
2120
2228
|
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
2121
2229
|
event.preventDefault();
|
|
@@ -2126,7 +2234,7 @@ function SidebarProvider({
|
|
|
2126
2234
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
2127
2235
|
}, [toggleSidebar]);
|
|
2128
2236
|
const state = open ? "expanded" : "collapsed";
|
|
2129
|
-
const contextValue =
|
|
2237
|
+
const contextValue = React18.useMemo(
|
|
2130
2238
|
() => ({
|
|
2131
2239
|
state,
|
|
2132
2240
|
open,
|
|
@@ -2138,7 +2246,7 @@ function SidebarProvider({
|
|
|
2138
2246
|
}),
|
|
2139
2247
|
[state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
|
|
2140
2248
|
);
|
|
2141
|
-
return /* @__PURE__ */
|
|
2249
|
+
return /* @__PURE__ */ jsx29(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx29(
|
|
2142
2250
|
"div",
|
|
2143
2251
|
{
|
|
2144
2252
|
"data-slot": "sidebar-wrapper",
|
|
@@ -2147,7 +2255,7 @@ function SidebarProvider({
|
|
|
2147
2255
|
"--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
|
|
2148
2256
|
...style
|
|
2149
2257
|
},
|
|
2150
|
-
className:
|
|
2258
|
+
className: cn13(
|
|
2151
2259
|
"group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",
|
|
2152
2260
|
className
|
|
2153
2261
|
),
|
|
@@ -2167,11 +2275,11 @@ function Sidebar({
|
|
|
2167
2275
|
}) {
|
|
2168
2276
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
2169
2277
|
if (collapsible === "none") {
|
|
2170
|
-
return /* @__PURE__ */
|
|
2278
|
+
return /* @__PURE__ */ jsx29(
|
|
2171
2279
|
"div",
|
|
2172
2280
|
{
|
|
2173
2281
|
"data-slot": "sidebar",
|
|
2174
|
-
className:
|
|
2282
|
+
className: cn13(
|
|
2175
2283
|
"flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",
|
|
2176
2284
|
className
|
|
2177
2285
|
),
|
|
@@ -2181,7 +2289,7 @@ function Sidebar({
|
|
|
2181
2289
|
);
|
|
2182
2290
|
}
|
|
2183
2291
|
if (isMobile) {
|
|
2184
|
-
return /* @__PURE__ */
|
|
2292
|
+
return /* @__PURE__ */ jsx29(Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ jsxs14(
|
|
2185
2293
|
SheetContent,
|
|
2186
2294
|
{
|
|
2187
2295
|
dir,
|
|
@@ -2194,16 +2302,16 @@ function Sidebar({
|
|
|
2194
2302
|
},
|
|
2195
2303
|
side,
|
|
2196
2304
|
children: [
|
|
2197
|
-
/* @__PURE__ */
|
|
2198
|
-
/* @__PURE__ */
|
|
2199
|
-
/* @__PURE__ */
|
|
2305
|
+
/* @__PURE__ */ jsxs14(SheetHeader, { className: "sr-only", children: [
|
|
2306
|
+
/* @__PURE__ */ jsx29(SheetTitle, { children: "Sidebar" }),
|
|
2307
|
+
/* @__PURE__ */ jsx29(SheetDescription, { children: "Displays the mobile sidebar." })
|
|
2200
2308
|
] }),
|
|
2201
|
-
/* @__PURE__ */
|
|
2309
|
+
/* @__PURE__ */ jsx29("div", { className: "flex h-full w-full flex-col", children })
|
|
2202
2310
|
]
|
|
2203
2311
|
}
|
|
2204
2312
|
) });
|
|
2205
2313
|
}
|
|
2206
|
-
return /* @__PURE__ */
|
|
2314
|
+
return /* @__PURE__ */ jsxs14(
|
|
2207
2315
|
"div",
|
|
2208
2316
|
{
|
|
2209
2317
|
className: "group peer hidden text-sidebar-foreground md:block",
|
|
@@ -2213,11 +2321,11 @@ function Sidebar({
|
|
|
2213
2321
|
"data-side": side,
|
|
2214
2322
|
"data-slot": "sidebar",
|
|
2215
2323
|
children: [
|
|
2216
|
-
/* @__PURE__ */
|
|
2324
|
+
/* @__PURE__ */ jsx29(
|
|
2217
2325
|
"div",
|
|
2218
2326
|
{
|
|
2219
2327
|
"data-slot": "sidebar-gap",
|
|
2220
|
-
className:
|
|
2328
|
+
className: cn13(
|
|
2221
2329
|
"relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear",
|
|
2222
2330
|
"group-data-[collapsible=offcanvas]:w-0",
|
|
2223
2331
|
"group-data-[side=right]:rotate-180",
|
|
@@ -2225,19 +2333,19 @@ function Sidebar({
|
|
|
2225
2333
|
)
|
|
2226
2334
|
}
|
|
2227
2335
|
),
|
|
2228
|
-
/* @__PURE__ */
|
|
2336
|
+
/* @__PURE__ */ jsx29(
|
|
2229
2337
|
"div",
|
|
2230
2338
|
{
|
|
2231
2339
|
"data-slot": "sidebar-container",
|
|
2232
2340
|
"data-side": side,
|
|
2233
|
-
className:
|
|
2341
|
+
className: cn13(
|
|
2234
2342
|
"fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex",
|
|
2235
2343
|
// Adjust the padding for floating and inset variants.
|
|
2236
2344
|
variant === "floating" || variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",
|
|
2237
2345
|
className
|
|
2238
2346
|
),
|
|
2239
2347
|
...props,
|
|
2240
|
-
children: /* @__PURE__ */
|
|
2348
|
+
children: /* @__PURE__ */ jsx29(
|
|
2241
2349
|
"div",
|
|
2242
2350
|
{
|
|
2243
2351
|
"data-sidebar": "sidebar",
|
|
@@ -2258,29 +2366,29 @@ function SidebarTrigger({
|
|
|
2258
2366
|
...props
|
|
2259
2367
|
}) {
|
|
2260
2368
|
const { toggleSidebar } = useSidebar();
|
|
2261
|
-
return /* @__PURE__ */
|
|
2369
|
+
return /* @__PURE__ */ jsxs14(
|
|
2262
2370
|
Button,
|
|
2263
2371
|
{
|
|
2264
2372
|
"data-sidebar": "trigger",
|
|
2265
2373
|
"data-slot": "sidebar-trigger",
|
|
2266
2374
|
variant: "ghost",
|
|
2267
2375
|
size: "icon-sm",
|
|
2268
|
-
className:
|
|
2376
|
+
className: cn13(className),
|
|
2269
2377
|
onClick: (event) => {
|
|
2270
2378
|
onClick?.(event);
|
|
2271
2379
|
toggleSidebar();
|
|
2272
2380
|
},
|
|
2273
2381
|
...props,
|
|
2274
2382
|
children: [
|
|
2275
|
-
/* @__PURE__ */
|
|
2276
|
-
/* @__PURE__ */
|
|
2383
|
+
/* @__PURE__ */ jsx29(PanelLeftIcon, {}),
|
|
2384
|
+
/* @__PURE__ */ jsx29("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
2277
2385
|
]
|
|
2278
2386
|
}
|
|
2279
2387
|
);
|
|
2280
2388
|
}
|
|
2281
2389
|
function SidebarRail({ className, ...props }) {
|
|
2282
2390
|
const { toggleSidebar } = useSidebar();
|
|
2283
|
-
return /* @__PURE__ */
|
|
2391
|
+
return /* @__PURE__ */ jsx29(
|
|
2284
2392
|
"button",
|
|
2285
2393
|
{
|
|
2286
2394
|
"data-sidebar": "rail",
|
|
@@ -2289,7 +2397,7 @@ function SidebarRail({ className, ...props }) {
|
|
|
2289
2397
|
tabIndex: -1,
|
|
2290
2398
|
onClick: toggleSidebar,
|
|
2291
2399
|
title: "Toggle Sidebar",
|
|
2292
|
-
className:
|
|
2400
|
+
className: cn13(
|
|
2293
2401
|
"absolute inset-y-0 z-20 hidden w-4 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:start-1/2 after:w-[2px] hover:after:bg-sidebar-border sm:flex ltr:-translate-x-1/2 rtl:-translate-x-1/2",
|
|
2294
2402
|
"in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",
|
|
2295
2403
|
"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
|
|
@@ -2303,11 +2411,11 @@ function SidebarRail({ className, ...props }) {
|
|
|
2303
2411
|
);
|
|
2304
2412
|
}
|
|
2305
2413
|
function SidebarInset({ className, ...props }) {
|
|
2306
|
-
return /* @__PURE__ */
|
|
2414
|
+
return /* @__PURE__ */ jsx29(
|
|
2307
2415
|
"main",
|
|
2308
2416
|
{
|
|
2309
2417
|
"data-slot": "sidebar-inset",
|
|
2310
|
-
className:
|
|
2418
|
+
className: cn13(
|
|
2311
2419
|
"relative flex w-full flex-1 flex-col bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",
|
|
2312
2420
|
className
|
|
2313
2421
|
),
|
|
@@ -2319,34 +2427,34 @@ function SidebarInput({
|
|
|
2319
2427
|
className,
|
|
2320
2428
|
...props
|
|
2321
2429
|
}) {
|
|
2322
|
-
return /* @__PURE__ */
|
|
2430
|
+
return /* @__PURE__ */ jsx29(
|
|
2323
2431
|
Input,
|
|
2324
2432
|
{
|
|
2325
2433
|
"data-slot": "sidebar-input",
|
|
2326
2434
|
"data-sidebar": "input",
|
|
2327
|
-
className:
|
|
2435
|
+
className: cn13("h-8 w-full bg-background shadow-none", className),
|
|
2328
2436
|
...props
|
|
2329
2437
|
}
|
|
2330
2438
|
);
|
|
2331
2439
|
}
|
|
2332
2440
|
function SidebarHeader({ className, ...props }) {
|
|
2333
|
-
return /* @__PURE__ */
|
|
2441
|
+
return /* @__PURE__ */ jsx29(
|
|
2334
2442
|
"div",
|
|
2335
2443
|
{
|
|
2336
2444
|
"data-slot": "sidebar-header",
|
|
2337
2445
|
"data-sidebar": "header",
|
|
2338
|
-
className:
|
|
2446
|
+
className: cn13("flex flex-col gap-2 p-2", className),
|
|
2339
2447
|
...props
|
|
2340
2448
|
}
|
|
2341
2449
|
);
|
|
2342
2450
|
}
|
|
2343
2451
|
function SidebarFooter({ className, ...props }) {
|
|
2344
|
-
return /* @__PURE__ */
|
|
2452
|
+
return /* @__PURE__ */ jsx29(
|
|
2345
2453
|
"div",
|
|
2346
2454
|
{
|
|
2347
2455
|
"data-slot": "sidebar-footer",
|
|
2348
2456
|
"data-sidebar": "footer",
|
|
2349
|
-
className:
|
|
2457
|
+
className: cn13("flex flex-col gap-2 p-2", className),
|
|
2350
2458
|
...props
|
|
2351
2459
|
}
|
|
2352
2460
|
);
|
|
@@ -2355,23 +2463,23 @@ function SidebarSeparator({
|
|
|
2355
2463
|
className,
|
|
2356
2464
|
...props
|
|
2357
2465
|
}) {
|
|
2358
|
-
return /* @__PURE__ */
|
|
2466
|
+
return /* @__PURE__ */ jsx29(
|
|
2359
2467
|
Separator,
|
|
2360
2468
|
{
|
|
2361
2469
|
"data-slot": "sidebar-separator",
|
|
2362
2470
|
"data-sidebar": "separator",
|
|
2363
|
-
className:
|
|
2471
|
+
className: cn13("mx-2 w-auto bg-sidebar-border", className),
|
|
2364
2472
|
...props
|
|
2365
2473
|
}
|
|
2366
2474
|
);
|
|
2367
2475
|
}
|
|
2368
2476
|
function SidebarContent({ className, ...props }) {
|
|
2369
|
-
return /* @__PURE__ */
|
|
2477
|
+
return /* @__PURE__ */ jsx29(
|
|
2370
2478
|
"div",
|
|
2371
2479
|
{
|
|
2372
2480
|
"data-slot": "sidebar-content",
|
|
2373
2481
|
"data-sidebar": "content",
|
|
2374
|
-
className:
|
|
2482
|
+
className: cn13(
|
|
2375
2483
|
"no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden",
|
|
2376
2484
|
className
|
|
2377
2485
|
),
|
|
@@ -2380,12 +2488,12 @@ function SidebarContent({ className, ...props }) {
|
|
|
2380
2488
|
);
|
|
2381
2489
|
}
|
|
2382
2490
|
function SidebarGroup({ className, ...props }) {
|
|
2383
|
-
return /* @__PURE__ */
|
|
2491
|
+
return /* @__PURE__ */ jsx29(
|
|
2384
2492
|
"div",
|
|
2385
2493
|
{
|
|
2386
2494
|
"data-slot": "sidebar-group",
|
|
2387
2495
|
"data-sidebar": "group",
|
|
2388
|
-
className:
|
|
2496
|
+
className: cn13("relative flex w-full min-w-0 flex-col p-2", className),
|
|
2389
2497
|
...props
|
|
2390
2498
|
}
|
|
2391
2499
|
);
|
|
@@ -2399,7 +2507,7 @@ function SidebarGroupLabel({
|
|
|
2399
2507
|
defaultTagName: "div",
|
|
2400
2508
|
props: mergeProps(
|
|
2401
2509
|
{
|
|
2402
|
-
className:
|
|
2510
|
+
className: cn13(
|
|
2403
2511
|
"flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
2404
2512
|
className
|
|
2405
2513
|
)
|
|
@@ -2422,7 +2530,7 @@ function SidebarGroupAction({
|
|
|
2422
2530
|
defaultTagName: "button",
|
|
2423
2531
|
props: mergeProps(
|
|
2424
2532
|
{
|
|
2425
|
-
className:
|
|
2533
|
+
className: cn13(
|
|
2426
2534
|
"absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform group-data-[collapsible=icon]:hidden after:absolute after:-inset-2 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 md:after:hidden [&>svg]:size-4 [&>svg]:shrink-0",
|
|
2427
2535
|
className
|
|
2428
2536
|
)
|
|
@@ -2440,34 +2548,34 @@ function SidebarGroupContent({
|
|
|
2440
2548
|
className,
|
|
2441
2549
|
...props
|
|
2442
2550
|
}) {
|
|
2443
|
-
return /* @__PURE__ */
|
|
2551
|
+
return /* @__PURE__ */ jsx29(
|
|
2444
2552
|
"div",
|
|
2445
2553
|
{
|
|
2446
2554
|
"data-slot": "sidebar-group-content",
|
|
2447
2555
|
"data-sidebar": "group-content",
|
|
2448
|
-
className:
|
|
2556
|
+
className: cn13("w-full text-sm", className),
|
|
2449
2557
|
...props
|
|
2450
2558
|
}
|
|
2451
2559
|
);
|
|
2452
2560
|
}
|
|
2453
2561
|
function SidebarMenu({ className, ...props }) {
|
|
2454
|
-
return /* @__PURE__ */
|
|
2562
|
+
return /* @__PURE__ */ jsx29(
|
|
2455
2563
|
"ul",
|
|
2456
2564
|
{
|
|
2457
2565
|
"data-slot": "sidebar-menu",
|
|
2458
2566
|
"data-sidebar": "menu",
|
|
2459
|
-
className:
|
|
2567
|
+
className: cn13("flex w-full min-w-0 flex-col gap-0", className),
|
|
2460
2568
|
...props
|
|
2461
2569
|
}
|
|
2462
2570
|
);
|
|
2463
2571
|
}
|
|
2464
2572
|
function SidebarMenuItem({ className, ...props }) {
|
|
2465
|
-
return /* @__PURE__ */
|
|
2573
|
+
return /* @__PURE__ */ jsx29(
|
|
2466
2574
|
"li",
|
|
2467
2575
|
{
|
|
2468
2576
|
"data-slot": "sidebar-menu-item",
|
|
2469
2577
|
"data-sidebar": "menu-item",
|
|
2470
|
-
className:
|
|
2578
|
+
className: cn13("group/menu-item relative", className),
|
|
2471
2579
|
...props
|
|
2472
2580
|
}
|
|
2473
2581
|
);
|
|
@@ -2506,11 +2614,11 @@ function SidebarMenuButton({
|
|
|
2506
2614
|
defaultTagName: "button",
|
|
2507
2615
|
props: mergeProps(
|
|
2508
2616
|
{
|
|
2509
|
-
className:
|
|
2617
|
+
className: cn13(sidebarMenuButtonVariants({ variant, size }), className)
|
|
2510
2618
|
},
|
|
2511
2619
|
props
|
|
2512
2620
|
),
|
|
2513
|
-
render: !tooltip ? render : /* @__PURE__ */
|
|
2621
|
+
render: !tooltip ? render : /* @__PURE__ */ jsx29(TooltipTrigger, { render }),
|
|
2514
2622
|
state: {
|
|
2515
2623
|
slot: "sidebar-menu-button",
|
|
2516
2624
|
sidebar: "menu-button",
|
|
@@ -2526,9 +2634,9 @@ function SidebarMenuButton({
|
|
|
2526
2634
|
children: tooltip
|
|
2527
2635
|
};
|
|
2528
2636
|
}
|
|
2529
|
-
return /* @__PURE__ */
|
|
2637
|
+
return /* @__PURE__ */ jsxs14(Tooltip, { children: [
|
|
2530
2638
|
comp,
|
|
2531
|
-
/* @__PURE__ */
|
|
2639
|
+
/* @__PURE__ */ jsx29(
|
|
2532
2640
|
TooltipContent,
|
|
2533
2641
|
{
|
|
2534
2642
|
side: "right",
|
|
@@ -2549,7 +2657,7 @@ function SidebarMenuAction({
|
|
|
2549
2657
|
defaultTagName: "button",
|
|
2550
2658
|
props: mergeProps(
|
|
2551
2659
|
{
|
|
2552
|
-
className:
|
|
2660
|
+
className: cn13(
|
|
2553
2661
|
"absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform group-data-[collapsible=icon]:hidden peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 after:absolute after:-inset-2 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 md:after:hidden [&>svg]:size-4 [&>svg]:shrink-0",
|
|
2554
2662
|
showOnHover && "group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 peer-data-active/menu-button:text-sidebar-accent-foreground aria-expanded:opacity-100 md:opacity-0",
|
|
2555
2663
|
className
|
|
@@ -2568,12 +2676,12 @@ function SidebarMenuBadge({
|
|
|
2568
2676
|
className,
|
|
2569
2677
|
...props
|
|
2570
2678
|
}) {
|
|
2571
|
-
return /* @__PURE__ */
|
|
2679
|
+
return /* @__PURE__ */ jsx29(
|
|
2572
2680
|
"div",
|
|
2573
2681
|
{
|
|
2574
2682
|
"data-slot": "sidebar-menu-badge",
|
|
2575
2683
|
"data-sidebar": "menu-badge",
|
|
2576
|
-
className:
|
|
2684
|
+
className: cn13(
|
|
2577
2685
|
"pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium text-sidebar-foreground tabular-nums select-none group-data-[collapsible=icon]:hidden peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 peer-data-active/menu-button:text-sidebar-accent-foreground",
|
|
2578
2686
|
className
|
|
2579
2687
|
),
|
|
@@ -2586,25 +2694,25 @@ function SidebarMenuSkeleton({
|
|
|
2586
2694
|
showIcon = false,
|
|
2587
2695
|
...props
|
|
2588
2696
|
}) {
|
|
2589
|
-
const [width] =
|
|
2697
|
+
const [width] = React18.useState(() => {
|
|
2590
2698
|
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
2591
2699
|
});
|
|
2592
|
-
return /* @__PURE__ */
|
|
2700
|
+
return /* @__PURE__ */ jsxs14(
|
|
2593
2701
|
"div",
|
|
2594
2702
|
{
|
|
2595
2703
|
"data-slot": "sidebar-menu-skeleton",
|
|
2596
2704
|
"data-sidebar": "menu-skeleton",
|
|
2597
|
-
className:
|
|
2705
|
+
className: cn13("flex h-8 items-center gap-2 rounded-md px-2", className),
|
|
2598
2706
|
...props,
|
|
2599
2707
|
children: [
|
|
2600
|
-
showIcon && /* @__PURE__ */
|
|
2708
|
+
showIcon && /* @__PURE__ */ jsx29(
|
|
2601
2709
|
Skeleton,
|
|
2602
2710
|
{
|
|
2603
2711
|
className: "size-4 rounded-md",
|
|
2604
2712
|
"data-sidebar": "menu-skeleton-icon"
|
|
2605
2713
|
}
|
|
2606
2714
|
),
|
|
2607
|
-
/* @__PURE__ */
|
|
2715
|
+
/* @__PURE__ */ jsx29(
|
|
2608
2716
|
Skeleton,
|
|
2609
2717
|
{
|
|
2610
2718
|
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
@@ -2619,12 +2727,12 @@ function SidebarMenuSkeleton({
|
|
|
2619
2727
|
);
|
|
2620
2728
|
}
|
|
2621
2729
|
function SidebarMenuSub({ className, ...props }) {
|
|
2622
|
-
return /* @__PURE__ */
|
|
2730
|
+
return /* @__PURE__ */ jsx29(
|
|
2623
2731
|
"ul",
|
|
2624
2732
|
{
|
|
2625
2733
|
"data-slot": "sidebar-menu-sub",
|
|
2626
2734
|
"data-sidebar": "menu-sub",
|
|
2627
|
-
className:
|
|
2735
|
+
className: cn13(
|
|
2628
2736
|
"mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5 group-data-[collapsible=icon]:hidden",
|
|
2629
2737
|
className
|
|
2630
2738
|
),
|
|
@@ -2636,12 +2744,12 @@ function SidebarMenuSubItem({
|
|
|
2636
2744
|
className,
|
|
2637
2745
|
...props
|
|
2638
2746
|
}) {
|
|
2639
|
-
return /* @__PURE__ */
|
|
2747
|
+
return /* @__PURE__ */ jsx29(
|
|
2640
2748
|
"li",
|
|
2641
2749
|
{
|
|
2642
2750
|
"data-slot": "sidebar-menu-sub-item",
|
|
2643
2751
|
"data-sidebar": "menu-sub-item",
|
|
2644
|
-
className:
|
|
2752
|
+
className: cn13("group/menu-sub-item relative", className),
|
|
2645
2753
|
...props
|
|
2646
2754
|
}
|
|
2647
2755
|
);
|
|
@@ -2657,7 +2765,7 @@ function SidebarMenuSubButton({
|
|
|
2657
2765
|
defaultTagName: "a",
|
|
2658
2766
|
props: mergeProps(
|
|
2659
2767
|
{
|
|
2660
|
-
className:
|
|
2768
|
+
className: cn13(
|
|
2661
2769
|
"flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground ring-sidebar-ring outline-hidden group-data-[collapsible=icon]:hidden hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[size=md]:text-sm data-[size=sm]:text-xs data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground",
|
|
2662
2770
|
className
|
|
2663
2771
|
)
|
|
@@ -2675,7 +2783,7 @@ function SidebarMenuSubButton({
|
|
|
2675
2783
|
}
|
|
2676
2784
|
|
|
2677
2785
|
// src/components/sidebar/Sidebar.tsx
|
|
2678
|
-
import { jsx as
|
|
2786
|
+
import { jsx as jsx30, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2679
2787
|
var iconModeButtonClasses = "group-data-[collapsible=icon]:w-10! group-data-[collapsible=icon]:h-10! group-data-[collapsible=icon]:px-3!";
|
|
2680
2788
|
var sizingMenuButtonClasses = "text-base px-3 py-2 h-auto";
|
|
2681
2789
|
var sizingSubButtonClasses = "data-[size=md]:text-base data-[size=sm]:text-base px-3 py-2 h-auto";
|
|
@@ -2683,7 +2791,7 @@ function SidebarGroupLabel2({
|
|
|
2683
2791
|
className,
|
|
2684
2792
|
...props
|
|
2685
2793
|
}) {
|
|
2686
|
-
return /* @__PURE__ */
|
|
2794
|
+
return /* @__PURE__ */ jsx30(
|
|
2687
2795
|
SidebarGroupLabel,
|
|
2688
2796
|
{
|
|
2689
2797
|
className: cn("px-3 uppercase tracking-caption", className),
|
|
@@ -2696,7 +2804,7 @@ function SidebarProvider2({
|
|
|
2696
2804
|
style,
|
|
2697
2805
|
...props
|
|
2698
2806
|
}) {
|
|
2699
|
-
return /* @__PURE__ */
|
|
2807
|
+
return /* @__PURE__ */ jsx30(
|
|
2700
2808
|
SidebarProvider,
|
|
2701
2809
|
{
|
|
2702
2810
|
className,
|
|
@@ -2709,10 +2817,10 @@ function SidebarProvider2({
|
|
|
2709
2817
|
);
|
|
2710
2818
|
}
|
|
2711
2819
|
function SidebarInset2({ className, ...props }) {
|
|
2712
|
-
return /* @__PURE__ */
|
|
2820
|
+
return /* @__PURE__ */ jsx30(SidebarInset, { className: cn("min-w-0", className), ...props });
|
|
2713
2821
|
}
|
|
2714
2822
|
function SidebarGroup2({ className, ...props }) {
|
|
2715
|
-
return /* @__PURE__ */
|
|
2823
|
+
return /* @__PURE__ */ jsx30(
|
|
2716
2824
|
SidebarGroup,
|
|
2717
2825
|
{
|
|
2718
2826
|
className: cn("group-data-[collapsible=icon]:px-2.5", className),
|
|
@@ -2724,7 +2832,7 @@ function SidebarFooter2({
|
|
|
2724
2832
|
className,
|
|
2725
2833
|
...props
|
|
2726
2834
|
}) {
|
|
2727
|
-
return /* @__PURE__ */
|
|
2835
|
+
return /* @__PURE__ */ jsx30(
|
|
2728
2836
|
SidebarFooter,
|
|
2729
2837
|
{
|
|
2730
2838
|
className: cn(
|
|
@@ -2739,7 +2847,7 @@ function SidebarHeader2({
|
|
|
2739
2847
|
className,
|
|
2740
2848
|
...props
|
|
2741
2849
|
}) {
|
|
2742
|
-
return /* @__PURE__ */
|
|
2850
|
+
return /* @__PURE__ */ jsx30(
|
|
2743
2851
|
SidebarHeader,
|
|
2744
2852
|
{
|
|
2745
2853
|
className: cn(
|
|
@@ -2751,8 +2859,8 @@ function SidebarHeader2({
|
|
|
2751
2859
|
);
|
|
2752
2860
|
}
|
|
2753
2861
|
function SidebarLogo() {
|
|
2754
|
-
return /* @__PURE__ */
|
|
2755
|
-
/* @__PURE__ */
|
|
2862
|
+
return /* @__PURE__ */ jsx30(SidebarHeader, { className: "px-0", children: /* @__PURE__ */ jsxs15("div", { className: "relative flex h-15 items-center overflow-hidden px-5", children: [
|
|
2863
|
+
/* @__PURE__ */ jsx30(
|
|
2756
2864
|
BergetLogo,
|
|
2757
2865
|
{
|
|
2758
2866
|
variant: "logotype",
|
|
@@ -2760,11 +2868,11 @@ function SidebarLogo() {
|
|
|
2760
2868
|
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
2869
|
}
|
|
2762
2870
|
),
|
|
2763
|
-
/* @__PURE__ */
|
|
2871
|
+
/* @__PURE__ */ jsx30("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__ */ jsx30(BergetLogo, { variant: "symbol", size: 32 }) })
|
|
2764
2872
|
] }) });
|
|
2765
2873
|
}
|
|
2766
2874
|
function SidebarPageHeader({ className, ...props }) {
|
|
2767
|
-
return /* @__PURE__ */
|
|
2875
|
+
return /* @__PURE__ */ jsx30(
|
|
2768
2876
|
"header",
|
|
2769
2877
|
{
|
|
2770
2878
|
className: cn(
|
|
@@ -2776,7 +2884,7 @@ function SidebarPageHeader({ className, ...props }) {
|
|
|
2776
2884
|
);
|
|
2777
2885
|
}
|
|
2778
2886
|
function SidebarMenuButton2({ className, ...props }) {
|
|
2779
|
-
return /* @__PURE__ */
|
|
2887
|
+
return /* @__PURE__ */ jsx30(
|
|
2780
2888
|
SidebarMenuButton,
|
|
2781
2889
|
{
|
|
2782
2890
|
className: cn(sizingMenuButtonClasses, iconModeButtonClasses, className),
|
|
@@ -2785,7 +2893,7 @@ function SidebarMenuButton2({ className, ...props }) {
|
|
|
2785
2893
|
);
|
|
2786
2894
|
}
|
|
2787
2895
|
function SidebarMenuSubButton2({ className, ...props }) {
|
|
2788
|
-
return /* @__PURE__ */
|
|
2896
|
+
return /* @__PURE__ */ jsx30(
|
|
2789
2897
|
SidebarMenuSubButton,
|
|
2790
2898
|
{
|
|
2791
2899
|
className: cn(sizingSubButtonClasses, "[&>svg]:text-inherit", className),
|
|
@@ -2795,22 +2903,22 @@ function SidebarMenuSubButton2({ className, ...props }) {
|
|
|
2795
2903
|
}
|
|
2796
2904
|
|
|
2797
2905
|
// src/components/table/Table.tsx
|
|
2798
|
-
import * as
|
|
2906
|
+
import * as React19 from "react";
|
|
2799
2907
|
|
|
2800
2908
|
// src/primitives/table.tsx
|
|
2801
|
-
import { cn as
|
|
2802
|
-
import { jsx as
|
|
2909
|
+
import { cn as cn14 } from "cn";
|
|
2910
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
2803
2911
|
function Table({ className, ...props }) {
|
|
2804
|
-
return /* @__PURE__ */
|
|
2912
|
+
return /* @__PURE__ */ jsx31(
|
|
2805
2913
|
"div",
|
|
2806
2914
|
{
|
|
2807
2915
|
"data-slot": "table-container",
|
|
2808
2916
|
className: "relative w-full overflow-x-auto",
|
|
2809
|
-
children: /* @__PURE__ */
|
|
2917
|
+
children: /* @__PURE__ */ jsx31(
|
|
2810
2918
|
"table",
|
|
2811
2919
|
{
|
|
2812
2920
|
"data-slot": "table",
|
|
2813
|
-
className:
|
|
2921
|
+
className: cn14("w-full caption-bottom text-sm", className),
|
|
2814
2922
|
...props
|
|
2815
2923
|
}
|
|
2816
2924
|
)
|
|
@@ -2818,31 +2926,31 @@ function Table({ className, ...props }) {
|
|
|
2818
2926
|
);
|
|
2819
2927
|
}
|
|
2820
2928
|
function TableHeader({ className, ...props }) {
|
|
2821
|
-
return /* @__PURE__ */
|
|
2929
|
+
return /* @__PURE__ */ jsx31(
|
|
2822
2930
|
"thead",
|
|
2823
2931
|
{
|
|
2824
2932
|
"data-slot": "table-header",
|
|
2825
|
-
className:
|
|
2933
|
+
className: cn14("[&_tr]:border-b", className),
|
|
2826
2934
|
...props
|
|
2827
2935
|
}
|
|
2828
2936
|
);
|
|
2829
2937
|
}
|
|
2830
2938
|
function TableBody({ className, ...props }) {
|
|
2831
|
-
return /* @__PURE__ */
|
|
2939
|
+
return /* @__PURE__ */ jsx31(
|
|
2832
2940
|
"tbody",
|
|
2833
2941
|
{
|
|
2834
2942
|
"data-slot": "table-body",
|
|
2835
|
-
className:
|
|
2943
|
+
className: cn14("[&_tr:last-child]:border-0", className),
|
|
2836
2944
|
...props
|
|
2837
2945
|
}
|
|
2838
2946
|
);
|
|
2839
2947
|
}
|
|
2840
2948
|
function TableFooter({ className, ...props }) {
|
|
2841
|
-
return /* @__PURE__ */
|
|
2949
|
+
return /* @__PURE__ */ jsx31(
|
|
2842
2950
|
"tfoot",
|
|
2843
2951
|
{
|
|
2844
2952
|
"data-slot": "table-footer",
|
|
2845
|
-
className:
|
|
2953
|
+
className: cn14(
|
|
2846
2954
|
"border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",
|
|
2847
2955
|
className
|
|
2848
2956
|
),
|
|
@@ -2851,11 +2959,11 @@ function TableFooter({ className, ...props }) {
|
|
|
2851
2959
|
);
|
|
2852
2960
|
}
|
|
2853
2961
|
function TableRow({ className, ...props }) {
|
|
2854
|
-
return /* @__PURE__ */
|
|
2962
|
+
return /* @__PURE__ */ jsx31(
|
|
2855
2963
|
"tr",
|
|
2856
2964
|
{
|
|
2857
2965
|
"data-slot": "table-row",
|
|
2858
|
-
className:
|
|
2966
|
+
className: cn14(
|
|
2859
2967
|
"border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",
|
|
2860
2968
|
className
|
|
2861
2969
|
),
|
|
@@ -2864,11 +2972,11 @@ function TableRow({ className, ...props }) {
|
|
|
2864
2972
|
);
|
|
2865
2973
|
}
|
|
2866
2974
|
function TableHead({ className, ...props }) {
|
|
2867
|
-
return /* @__PURE__ */
|
|
2975
|
+
return /* @__PURE__ */ jsx31(
|
|
2868
2976
|
"th",
|
|
2869
2977
|
{
|
|
2870
2978
|
"data-slot": "table-head",
|
|
2871
|
-
className:
|
|
2979
|
+
className: cn14(
|
|
2872
2980
|
"h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",
|
|
2873
2981
|
className
|
|
2874
2982
|
),
|
|
@@ -2877,11 +2985,11 @@ function TableHead({ className, ...props }) {
|
|
|
2877
2985
|
);
|
|
2878
2986
|
}
|
|
2879
2987
|
function TableCell({ className, ...props }) {
|
|
2880
|
-
return /* @__PURE__ */
|
|
2988
|
+
return /* @__PURE__ */ jsx31(
|
|
2881
2989
|
"td",
|
|
2882
2990
|
{
|
|
2883
2991
|
"data-slot": "table-cell",
|
|
2884
|
-
className:
|
|
2992
|
+
className: cn14(
|
|
2885
2993
|
"p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",
|
|
2886
2994
|
className
|
|
2887
2995
|
),
|
|
@@ -2893,23 +3001,23 @@ function TableCaption({
|
|
|
2893
3001
|
className,
|
|
2894
3002
|
...props
|
|
2895
3003
|
}) {
|
|
2896
|
-
return /* @__PURE__ */
|
|
3004
|
+
return /* @__PURE__ */ jsx31(
|
|
2897
3005
|
"caption",
|
|
2898
3006
|
{
|
|
2899
3007
|
"data-slot": "table-caption",
|
|
2900
|
-
className:
|
|
3008
|
+
className: cn14("mt-4 text-sm text-muted-foreground", className),
|
|
2901
3009
|
...props
|
|
2902
3010
|
}
|
|
2903
3011
|
);
|
|
2904
3012
|
}
|
|
2905
3013
|
|
|
2906
3014
|
// src/components/table/Table.tsx
|
|
2907
|
-
import { jsx as
|
|
2908
|
-
var Table2 =
|
|
2909
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3015
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
3016
|
+
var Table2 = React19.forwardRef(
|
|
3017
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx32(Table, { ref, className, ...props })
|
|
2910
3018
|
);
|
|
2911
3019
|
Table2.displayName = "Table";
|
|
2912
|
-
var TableHeader2 =
|
|
3020
|
+
var TableHeader2 = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx32(
|
|
2913
3021
|
TableHeader,
|
|
2914
3022
|
{
|
|
2915
3023
|
ref,
|
|
@@ -2918,7 +3026,7 @@ var TableHeader2 = React17.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2918
3026
|
}
|
|
2919
3027
|
));
|
|
2920
3028
|
TableHeader2.displayName = "TableHeader";
|
|
2921
|
-
var TableBody2 =
|
|
3029
|
+
var TableBody2 = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx32(
|
|
2922
3030
|
TableBody,
|
|
2923
3031
|
{
|
|
2924
3032
|
ref,
|
|
@@ -2927,7 +3035,7 @@ var TableBody2 = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
2927
3035
|
}
|
|
2928
3036
|
));
|
|
2929
3037
|
TableBody2.displayName = "TableBody";
|
|
2930
|
-
var TableFooter2 =
|
|
3038
|
+
var TableFooter2 = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx32(
|
|
2931
3039
|
TableFooter,
|
|
2932
3040
|
{
|
|
2933
3041
|
ref,
|
|
@@ -2939,8 +3047,8 @@ var TableFooter2 = React17.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2939
3047
|
}
|
|
2940
3048
|
));
|
|
2941
3049
|
TableFooter2.displayName = "TableFooter";
|
|
2942
|
-
var TableRow2 =
|
|
2943
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3050
|
+
var TableRow2 = React19.forwardRef(
|
|
3051
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx32(
|
|
2944
3052
|
TableRow,
|
|
2945
3053
|
{
|
|
2946
3054
|
ref,
|
|
@@ -2953,7 +3061,7 @@ var TableRow2 = React17.forwardRef(
|
|
|
2953
3061
|
)
|
|
2954
3062
|
);
|
|
2955
3063
|
TableRow2.displayName = "TableRow";
|
|
2956
|
-
var TableHead2 =
|
|
3064
|
+
var TableHead2 = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx32(
|
|
2957
3065
|
TableHead,
|
|
2958
3066
|
{
|
|
2959
3067
|
ref,
|
|
@@ -2965,7 +3073,7 @@ var TableHead2 = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
2965
3073
|
}
|
|
2966
3074
|
));
|
|
2967
3075
|
TableHead2.displayName = "TableHead";
|
|
2968
|
-
var TableCell2 =
|
|
3076
|
+
var TableCell2 = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx32(
|
|
2969
3077
|
TableCell,
|
|
2970
3078
|
{
|
|
2971
3079
|
ref,
|
|
@@ -2974,7 +3082,7 @@ var TableCell2 = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
2974
3082
|
}
|
|
2975
3083
|
));
|
|
2976
3084
|
TableCell2.displayName = "TableCell";
|
|
2977
|
-
var TableCaption2 =
|
|
3085
|
+
var TableCaption2 = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx32(
|
|
2978
3086
|
TableCaption,
|
|
2979
3087
|
{
|
|
2980
3088
|
ref,
|
|
@@ -2985,21 +3093,21 @@ var TableCaption2 = React17.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
2985
3093
|
TableCaption2.displayName = "TableCaption";
|
|
2986
3094
|
|
|
2987
3095
|
// src/components/item/Item.tsx
|
|
2988
|
-
import * as
|
|
3096
|
+
import * as React20 from "react";
|
|
2989
3097
|
|
|
2990
3098
|
// src/primitives/item.tsx
|
|
2991
3099
|
import { mergeProps as mergeProps2 } from "@base-ui/react/merge-props";
|
|
2992
3100
|
import { useRender as useRender2 } from "@base-ui/react/use-render";
|
|
2993
3101
|
import { cva as cva10 } from "class-variance-authority";
|
|
2994
|
-
import { cn as
|
|
2995
|
-
import { jsx as
|
|
3102
|
+
import { cn as cn15 } from "cn";
|
|
3103
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
2996
3104
|
function ItemGroup({ className, ...props }) {
|
|
2997
|
-
return /* @__PURE__ */
|
|
3105
|
+
return /* @__PURE__ */ jsx33(
|
|
2998
3106
|
"div",
|
|
2999
3107
|
{
|
|
3000
3108
|
role: "list",
|
|
3001
3109
|
"data-slot": "item-group",
|
|
3002
|
-
className:
|
|
3110
|
+
className: cn15(
|
|
3003
3111
|
"group/item-group flex w-full flex-col gap-4 has-data-[size=sm]:gap-2.5 has-data-[size=xs]:gap-2",
|
|
3004
3112
|
className
|
|
3005
3113
|
),
|
|
@@ -3011,12 +3119,12 @@ function ItemSeparator({
|
|
|
3011
3119
|
className,
|
|
3012
3120
|
...props
|
|
3013
3121
|
}) {
|
|
3014
|
-
return /* @__PURE__ */
|
|
3122
|
+
return /* @__PURE__ */ jsx33(
|
|
3015
3123
|
Separator,
|
|
3016
3124
|
{
|
|
3017
3125
|
"data-slot": "item-separator",
|
|
3018
3126
|
orientation: "horizontal",
|
|
3019
|
-
className:
|
|
3127
|
+
className: cn15("my-2", className),
|
|
3020
3128
|
...props
|
|
3021
3129
|
}
|
|
3022
3130
|
);
|
|
@@ -3053,7 +3161,7 @@ function Item({
|
|
|
3053
3161
|
defaultTagName: "div",
|
|
3054
3162
|
props: mergeProps2(
|
|
3055
3163
|
{
|
|
3056
|
-
className:
|
|
3164
|
+
className: cn15(itemVariants({ variant, size, className }))
|
|
3057
3165
|
},
|
|
3058
3166
|
props
|
|
3059
3167
|
),
|
|
@@ -3085,22 +3193,22 @@ function ItemMedia({
|
|
|
3085
3193
|
variant = "default",
|
|
3086
3194
|
...props
|
|
3087
3195
|
}) {
|
|
3088
|
-
return /* @__PURE__ */
|
|
3196
|
+
return /* @__PURE__ */ jsx33(
|
|
3089
3197
|
"div",
|
|
3090
3198
|
{
|
|
3091
3199
|
"data-slot": "item-media",
|
|
3092
3200
|
"data-variant": variant,
|
|
3093
|
-
className:
|
|
3201
|
+
className: cn15(itemMediaVariants({ variant, className })),
|
|
3094
3202
|
...props
|
|
3095
3203
|
}
|
|
3096
3204
|
);
|
|
3097
3205
|
}
|
|
3098
3206
|
function ItemContent({ className, ...props }) {
|
|
3099
|
-
return /* @__PURE__ */
|
|
3207
|
+
return /* @__PURE__ */ jsx33(
|
|
3100
3208
|
"div",
|
|
3101
3209
|
{
|
|
3102
3210
|
"data-slot": "item-content",
|
|
3103
|
-
className:
|
|
3211
|
+
className: cn15(
|
|
3104
3212
|
"flex flex-1 flex-col gap-1 group-data-[size=xs]/item:gap-0 [&+[data-slot=item-content]]:flex-none",
|
|
3105
3213
|
className
|
|
3106
3214
|
),
|
|
@@ -3109,11 +3217,11 @@ function ItemContent({ className, ...props }) {
|
|
|
3109
3217
|
);
|
|
3110
3218
|
}
|
|
3111
3219
|
function ItemTitle({ className, ...props }) {
|
|
3112
|
-
return /* @__PURE__ */
|
|
3220
|
+
return /* @__PURE__ */ jsx33(
|
|
3113
3221
|
"div",
|
|
3114
3222
|
{
|
|
3115
3223
|
"data-slot": "item-title",
|
|
3116
|
-
className:
|
|
3224
|
+
className: cn15(
|
|
3117
3225
|
"line-clamp-1 flex w-fit items-center gap-2 text-sm leading-snug font-medium underline-offset-4",
|
|
3118
3226
|
className
|
|
3119
3227
|
),
|
|
@@ -3122,11 +3230,11 @@ function ItemTitle({ className, ...props }) {
|
|
|
3122
3230
|
);
|
|
3123
3231
|
}
|
|
3124
3232
|
function ItemDescription({ className, ...props }) {
|
|
3125
|
-
return /* @__PURE__ */
|
|
3233
|
+
return /* @__PURE__ */ jsx33(
|
|
3126
3234
|
"p",
|
|
3127
3235
|
{
|
|
3128
3236
|
"data-slot": "item-description",
|
|
3129
|
-
className:
|
|
3237
|
+
className: cn15(
|
|
3130
3238
|
"line-clamp-2 text-left text-sm leading-normal font-normal text-muted-foreground group-data-[size=xs]/item:text-xs [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",
|
|
3131
3239
|
className
|
|
3132
3240
|
),
|
|
@@ -3135,21 +3243,21 @@ function ItemDescription({ className, ...props }) {
|
|
|
3135
3243
|
);
|
|
3136
3244
|
}
|
|
3137
3245
|
function ItemActions({ className, ...props }) {
|
|
3138
|
-
return /* @__PURE__ */
|
|
3246
|
+
return /* @__PURE__ */ jsx33(
|
|
3139
3247
|
"div",
|
|
3140
3248
|
{
|
|
3141
3249
|
"data-slot": "item-actions",
|
|
3142
|
-
className:
|
|
3250
|
+
className: cn15("flex items-center gap-2", className),
|
|
3143
3251
|
...props
|
|
3144
3252
|
}
|
|
3145
3253
|
);
|
|
3146
3254
|
}
|
|
3147
3255
|
function ItemHeader({ className, ...props }) {
|
|
3148
|
-
return /* @__PURE__ */
|
|
3256
|
+
return /* @__PURE__ */ jsx33(
|
|
3149
3257
|
"div",
|
|
3150
3258
|
{
|
|
3151
3259
|
"data-slot": "item-header",
|
|
3152
|
-
className:
|
|
3260
|
+
className: cn15(
|
|
3153
3261
|
"flex basis-full items-center justify-between gap-2",
|
|
3154
3262
|
className
|
|
3155
3263
|
),
|
|
@@ -3158,11 +3266,11 @@ function ItemHeader({ className, ...props }) {
|
|
|
3158
3266
|
);
|
|
3159
3267
|
}
|
|
3160
3268
|
function ItemFooter({ className, ...props }) {
|
|
3161
|
-
return /* @__PURE__ */
|
|
3269
|
+
return /* @__PURE__ */ jsx33(
|
|
3162
3270
|
"div",
|
|
3163
3271
|
{
|
|
3164
3272
|
"data-slot": "item-footer",
|
|
3165
|
-
className:
|
|
3273
|
+
className: cn15(
|
|
3166
3274
|
"flex basis-full items-center justify-between gap-2",
|
|
3167
3275
|
className
|
|
3168
3276
|
),
|
|
@@ -3172,9 +3280,9 @@ function ItemFooter({ className, ...props }) {
|
|
|
3172
3280
|
}
|
|
3173
3281
|
|
|
3174
3282
|
// src/components/item/Item.tsx
|
|
3175
|
-
import { jsx as
|
|
3283
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
3176
3284
|
function Item2({ className, asChild, children, ...props }) {
|
|
3177
|
-
return /* @__PURE__ */
|
|
3285
|
+
return /* @__PURE__ */ jsx34(
|
|
3178
3286
|
Item,
|
|
3179
3287
|
{
|
|
3180
3288
|
render: asChild ? children : void 0,
|
|
@@ -3193,8 +3301,8 @@ function Item2({ className, asChild, children, ...props }) {
|
|
|
3193
3301
|
}
|
|
3194
3302
|
);
|
|
3195
3303
|
}
|
|
3196
|
-
var ItemMedia2 =
|
|
3197
|
-
return /* @__PURE__ */
|
|
3304
|
+
var ItemMedia2 = React20.forwardRef(({ className, ...props }, ref) => {
|
|
3305
|
+
return /* @__PURE__ */ jsx34(
|
|
3198
3306
|
ItemMedia,
|
|
3199
3307
|
{
|
|
3200
3308
|
ref,
|
|
@@ -3204,8 +3312,8 @@ var ItemMedia2 = React18.forwardRef(({ className, ...props }, ref) => {
|
|
|
3204
3312
|
);
|
|
3205
3313
|
});
|
|
3206
3314
|
ItemMedia2.displayName = "ItemMedia";
|
|
3207
|
-
var ItemTitle2 =
|
|
3208
|
-
return /* @__PURE__ */
|
|
3315
|
+
var ItemTitle2 = React20.forwardRef(({ className, ...props }, ref) => {
|
|
3316
|
+
return /* @__PURE__ */ jsx34(
|
|
3209
3317
|
ItemTitle,
|
|
3210
3318
|
{
|
|
3211
3319
|
ref,
|
|
@@ -3215,8 +3323,8 @@ var ItemTitle2 = React18.forwardRef(({ className, ...props }, ref) => {
|
|
|
3215
3323
|
);
|
|
3216
3324
|
});
|
|
3217
3325
|
ItemTitle2.displayName = "ItemTitle";
|
|
3218
|
-
var ItemDescription2 =
|
|
3219
|
-
return /* @__PURE__ */
|
|
3326
|
+
var ItemDescription2 = React20.forwardRef(({ className, ...props }, ref) => {
|
|
3327
|
+
return /* @__PURE__ */ jsx34(
|
|
3220
3328
|
ItemDescription,
|
|
3221
3329
|
{
|
|
3222
3330
|
ref,
|
|
@@ -3226,8 +3334,8 @@ var ItemDescription2 = React18.forwardRef(({ className, ...props }, ref) => {
|
|
|
3226
3334
|
);
|
|
3227
3335
|
});
|
|
3228
3336
|
ItemDescription2.displayName = "ItemDescription";
|
|
3229
|
-
var ItemSeparator2 =
|
|
3230
|
-
return /* @__PURE__ */
|
|
3337
|
+
var ItemSeparator2 = React20.forwardRef(({ className, ...props }, ref) => {
|
|
3338
|
+
return /* @__PURE__ */ jsx34(
|
|
3231
3339
|
ItemSeparator,
|
|
3232
3340
|
{
|
|
3233
3341
|
ref,
|
|
@@ -3239,18 +3347,18 @@ var ItemSeparator2 = React18.forwardRef(({ className, ...props }, ref) => {
|
|
|
3239
3347
|
ItemSeparator2.displayName = "ItemSeparator";
|
|
3240
3348
|
|
|
3241
3349
|
// src/components/empty/Empty.tsx
|
|
3242
|
-
import * as
|
|
3350
|
+
import * as React21 from "react";
|
|
3243
3351
|
|
|
3244
3352
|
// src/primitives/empty.tsx
|
|
3245
3353
|
import { cva as cva11 } from "class-variance-authority";
|
|
3246
|
-
import { cn as
|
|
3247
|
-
import { jsx as
|
|
3354
|
+
import { cn as cn16 } from "cn";
|
|
3355
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
3248
3356
|
function Empty({ className, ...props }) {
|
|
3249
|
-
return /* @__PURE__ */
|
|
3357
|
+
return /* @__PURE__ */ jsx35(
|
|
3250
3358
|
"div",
|
|
3251
3359
|
{
|
|
3252
3360
|
"data-slot": "empty",
|
|
3253
|
-
className:
|
|
3361
|
+
className: cn16(
|
|
3254
3362
|
"flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border-dashed p-6 text-center text-balance",
|
|
3255
3363
|
className
|
|
3256
3364
|
),
|
|
@@ -3259,11 +3367,11 @@ function Empty({ className, ...props }) {
|
|
|
3259
3367
|
);
|
|
3260
3368
|
}
|
|
3261
3369
|
function EmptyHeader({ className, ...props }) {
|
|
3262
|
-
return /* @__PURE__ */
|
|
3370
|
+
return /* @__PURE__ */ jsx35(
|
|
3263
3371
|
"div",
|
|
3264
3372
|
{
|
|
3265
3373
|
"data-slot": "empty-header",
|
|
3266
|
-
className:
|
|
3374
|
+
className: cn16("flex max-w-sm flex-col items-center gap-2", className),
|
|
3267
3375
|
...props
|
|
3268
3376
|
}
|
|
3269
3377
|
);
|
|
@@ -3287,22 +3395,22 @@ function EmptyMedia({
|
|
|
3287
3395
|
variant = "default",
|
|
3288
3396
|
...props
|
|
3289
3397
|
}) {
|
|
3290
|
-
return /* @__PURE__ */
|
|
3398
|
+
return /* @__PURE__ */ jsx35(
|
|
3291
3399
|
"div",
|
|
3292
3400
|
{
|
|
3293
3401
|
"data-slot": "empty-icon",
|
|
3294
3402
|
"data-variant": variant,
|
|
3295
|
-
className:
|
|
3403
|
+
className: cn16(emptyMediaVariants({ variant, className })),
|
|
3296
3404
|
...props
|
|
3297
3405
|
}
|
|
3298
3406
|
);
|
|
3299
3407
|
}
|
|
3300
3408
|
function EmptyTitle({ className, ...props }) {
|
|
3301
|
-
return /* @__PURE__ */
|
|
3409
|
+
return /* @__PURE__ */ jsx35(
|
|
3302
3410
|
"div",
|
|
3303
3411
|
{
|
|
3304
3412
|
"data-slot": "empty-title",
|
|
3305
|
-
className:
|
|
3413
|
+
className: cn16(
|
|
3306
3414
|
"text-sm font-medium tracking-tight",
|
|
3307
3415
|
className
|
|
3308
3416
|
),
|
|
@@ -3311,11 +3419,11 @@ function EmptyTitle({ className, ...props }) {
|
|
|
3311
3419
|
);
|
|
3312
3420
|
}
|
|
3313
3421
|
function EmptyDescription({ className, ...props }) {
|
|
3314
|
-
return /* @__PURE__ */
|
|
3422
|
+
return /* @__PURE__ */ jsx35(
|
|
3315
3423
|
"div",
|
|
3316
3424
|
{
|
|
3317
3425
|
"data-slot": "empty-description",
|
|
3318
|
-
className:
|
|
3426
|
+
className: cn16(
|
|
3319
3427
|
"text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",
|
|
3320
3428
|
className
|
|
3321
3429
|
),
|
|
@@ -3324,11 +3432,11 @@ function EmptyDescription({ className, ...props }) {
|
|
|
3324
3432
|
);
|
|
3325
3433
|
}
|
|
3326
3434
|
function EmptyContent({ className, ...props }) {
|
|
3327
|
-
return /* @__PURE__ */
|
|
3435
|
+
return /* @__PURE__ */ jsx35(
|
|
3328
3436
|
"div",
|
|
3329
3437
|
{
|
|
3330
3438
|
"data-slot": "empty-content",
|
|
3331
|
-
className:
|
|
3439
|
+
className: cn16(
|
|
3332
3440
|
"flex w-full max-w-sm min-w-0 flex-col items-center gap-2.5 text-sm text-balance",
|
|
3333
3441
|
className
|
|
3334
3442
|
),
|
|
@@ -3338,12 +3446,12 @@ function EmptyContent({ className, ...props }) {
|
|
|
3338
3446
|
}
|
|
3339
3447
|
|
|
3340
3448
|
// src/components/empty/Empty.tsx
|
|
3341
|
-
import { jsx as
|
|
3449
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
3342
3450
|
function Empty2({ className, ...props }) {
|
|
3343
|
-
return /* @__PURE__ */
|
|
3451
|
+
return /* @__PURE__ */ jsx36(Empty, { className, ...props });
|
|
3344
3452
|
}
|
|
3345
|
-
var EmptyMedia2 =
|
|
3346
|
-
return /* @__PURE__ */
|
|
3453
|
+
var EmptyMedia2 = React21.forwardRef(({ className, ...props }, ref) => {
|
|
3454
|
+
return /* @__PURE__ */ jsx36(
|
|
3347
3455
|
EmptyMedia,
|
|
3348
3456
|
{
|
|
3349
3457
|
ref,
|
|
@@ -3356,8 +3464,8 @@ var EmptyMedia2 = React19.forwardRef(({ className, ...props }, ref) => {
|
|
|
3356
3464
|
);
|
|
3357
3465
|
});
|
|
3358
3466
|
EmptyMedia2.displayName = "EmptyMedia";
|
|
3359
|
-
var EmptyTitle2 =
|
|
3360
|
-
return /* @__PURE__ */
|
|
3467
|
+
var EmptyTitle2 = React21.forwardRef(({ className, ...props }, ref) => {
|
|
3468
|
+
return /* @__PURE__ */ jsx36(
|
|
3361
3469
|
EmptyTitle,
|
|
3362
3470
|
{
|
|
3363
3471
|
ref,
|
|
@@ -3367,8 +3475,8 @@ var EmptyTitle2 = React19.forwardRef(({ className, ...props }, ref) => {
|
|
|
3367
3475
|
);
|
|
3368
3476
|
});
|
|
3369
3477
|
EmptyTitle2.displayName = "EmptyTitle";
|
|
3370
|
-
var EmptyDescription2 =
|
|
3371
|
-
return /* @__PURE__ */
|
|
3478
|
+
var EmptyDescription2 = React21.forwardRef(({ className, ...props }, ref) => {
|
|
3479
|
+
return /* @__PURE__ */ jsx36(
|
|
3372
3480
|
EmptyDescription,
|
|
3373
3481
|
{
|
|
3374
3482
|
ref,
|
|
@@ -3381,22 +3489,22 @@ EmptyDescription2.displayName = "EmptyDescription";
|
|
|
3381
3489
|
|
|
3382
3490
|
// src/components/search-input/SearchInput.tsx
|
|
3383
3491
|
import { Search } from "lucide-react";
|
|
3384
|
-
import { jsx as
|
|
3492
|
+
import { jsx as jsx37, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
3385
3493
|
var SearchInput = ({
|
|
3386
3494
|
type = "search",
|
|
3387
3495
|
placeholder = "Search...",
|
|
3388
3496
|
className,
|
|
3389
3497
|
ref,
|
|
3390
3498
|
...props
|
|
3391
|
-
}) => /* @__PURE__ */
|
|
3392
|
-
/* @__PURE__ */
|
|
3499
|
+
}) => /* @__PURE__ */ jsxs16("div", { className: "relative flex w-full items-center", "data-slot": "search-input", children: [
|
|
3500
|
+
/* @__PURE__ */ jsx37(
|
|
3393
3501
|
Search,
|
|
3394
3502
|
{
|
|
3395
3503
|
"aria-hidden": "true",
|
|
3396
3504
|
className: "pointer-events-none absolute left-2.5 size-4 text-berget-muted-foreground"
|
|
3397
3505
|
}
|
|
3398
3506
|
),
|
|
3399
|
-
/* @__PURE__ */
|
|
3507
|
+
/* @__PURE__ */ jsx37(
|
|
3400
3508
|
Input,
|
|
3401
3509
|
{
|
|
3402
3510
|
ref,
|
|
@@ -3410,32 +3518,32 @@ var SearchInput = ({
|
|
|
3410
3518
|
SearchInput.displayName = "SearchInput";
|
|
3411
3519
|
|
|
3412
3520
|
// src/components/checkbox/Checkbox.tsx
|
|
3413
|
-
import * as
|
|
3521
|
+
import * as React22 from "react";
|
|
3414
3522
|
import { Checkbox as CheckboxPrimitive2 } from "@base-ui/react/checkbox";
|
|
3415
3523
|
import { Check } from "lucide-react";
|
|
3416
3524
|
import { cva as cva12 } from "class-variance-authority";
|
|
3417
3525
|
|
|
3418
3526
|
// src/primitives/checkbox.tsx
|
|
3419
3527
|
import { Checkbox as CheckboxPrimitive } from "@base-ui/react/checkbox";
|
|
3420
|
-
import { cn as
|
|
3528
|
+
import { cn as cn17 } from "cn";
|
|
3421
3529
|
import { CheckIcon as CheckIcon2 } from "lucide-react";
|
|
3422
|
-
import { jsx as
|
|
3530
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
3423
3531
|
function Checkbox({ className, ...props }) {
|
|
3424
|
-
return /* @__PURE__ */
|
|
3532
|
+
return /* @__PURE__ */ jsx38(
|
|
3425
3533
|
CheckboxPrimitive.Root,
|
|
3426
3534
|
{
|
|
3427
3535
|
"data-slot": "checkbox",
|
|
3428
|
-
className:
|
|
3536
|
+
className: cn17(
|
|
3429
3537
|
"peer relative flex size-4 shrink-0 cursor-pointer items-center justify-center rounded-[4px] border border-input transition-colors outline-none group-has-disabled/field:opacity-50 group-has-[:focus-visible]/field-label:ring-0 group-has-[:focus-visible]/field-label:not-data-checked:border-input after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground group-has-[:focus-visible]/field-label:data-checked:border-primary dark:data-checked:bg-primary",
|
|
3430
3538
|
className
|
|
3431
3539
|
),
|
|
3432
3540
|
...props,
|
|
3433
|
-
children: /* @__PURE__ */
|
|
3541
|
+
children: /* @__PURE__ */ jsx38(
|
|
3434
3542
|
CheckboxPrimitive.Indicator,
|
|
3435
3543
|
{
|
|
3436
3544
|
"data-slot": "checkbox-indicator",
|
|
3437
3545
|
className: "grid place-content-center text-current transition-none [&>svg]:size-3.5",
|
|
3438
|
-
children: /* @__PURE__ */
|
|
3546
|
+
children: /* @__PURE__ */ jsx38(
|
|
3439
3547
|
CheckIcon2,
|
|
3440
3548
|
{}
|
|
3441
3549
|
)
|
|
@@ -3446,7 +3554,7 @@ function Checkbox({ className, ...props }) {
|
|
|
3446
3554
|
}
|
|
3447
3555
|
|
|
3448
3556
|
// src/components/checkbox/Checkbox.tsx
|
|
3449
|
-
import { jsx as
|
|
3557
|
+
import { jsx as jsx39, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
3450
3558
|
var checkboxVariants = cva12(
|
|
3451
3559
|
"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
3560
|
{
|
|
@@ -3468,7 +3576,7 @@ var checkboxVariants = cva12(
|
|
|
3468
3576
|
}
|
|
3469
3577
|
}
|
|
3470
3578
|
);
|
|
3471
|
-
var Checkbox2 =
|
|
3579
|
+
var Checkbox2 = React22.forwardRef(
|
|
3472
3580
|
({
|
|
3473
3581
|
"aria-label": ariaLabel,
|
|
3474
3582
|
className,
|
|
@@ -3481,11 +3589,11 @@ var Checkbox2 = React20.forwardRef(
|
|
|
3481
3589
|
disabled,
|
|
3482
3590
|
...props
|
|
3483
3591
|
}, ref) => {
|
|
3484
|
-
const generatedId =
|
|
3592
|
+
const generatedId = React22.useId();
|
|
3485
3593
|
const checkboxId = id || generatedId;
|
|
3486
3594
|
const errorId = `${checkboxId}-error`;
|
|
3487
|
-
return /* @__PURE__ */
|
|
3488
|
-
/* @__PURE__ */
|
|
3595
|
+
return /* @__PURE__ */ jsxs17("div", { className: "flex items-start gap-3", children: [
|
|
3596
|
+
/* @__PURE__ */ jsx39("div", { className: "relative flex items-start pt-0.5", children: /* @__PURE__ */ jsx39(
|
|
3489
3597
|
Checkbox,
|
|
3490
3598
|
{
|
|
3491
3599
|
ref,
|
|
@@ -3501,7 +3609,7 @@ var Checkbox2 = React20.forwardRef(
|
|
|
3501
3609
|
className
|
|
3502
3610
|
),
|
|
3503
3611
|
...props,
|
|
3504
|
-
children: /* @__PURE__ */
|
|
3612
|
+
children: /* @__PURE__ */ jsx39(CheckboxPrimitive2.Indicator, { children: /* @__PURE__ */ jsx39(
|
|
3505
3613
|
Check,
|
|
3506
3614
|
{
|
|
3507
3615
|
className: "h-4 w-4 text-current stroke-current",
|
|
@@ -3510,8 +3618,8 @@ var Checkbox2 = React20.forwardRef(
|
|
|
3510
3618
|
) })
|
|
3511
3619
|
}
|
|
3512
3620
|
) }),
|
|
3513
|
-
(label || description || error) && /* @__PURE__ */
|
|
3514
|
-
label && /* @__PURE__ */
|
|
3621
|
+
(label || description || error) && /* @__PURE__ */ jsxs17("div", { className: "flex flex-col gap-1", children: [
|
|
3622
|
+
label && /* @__PURE__ */ jsx39(
|
|
3515
3623
|
"label",
|
|
3516
3624
|
{
|
|
3517
3625
|
htmlFor: checkboxId,
|
|
@@ -3523,8 +3631,8 @@ var Checkbox2 = React20.forwardRef(
|
|
|
3523
3631
|
children: label
|
|
3524
3632
|
}
|
|
3525
3633
|
),
|
|
3526
|
-
description && /* @__PURE__ */
|
|
3527
|
-
error && /* @__PURE__ */
|
|
3634
|
+
description && /* @__PURE__ */ jsx39(Typography, { variant: "xs", color: "muted", children: description }),
|
|
3635
|
+
error && /* @__PURE__ */ jsx39(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
3528
3636
|
] })
|
|
3529
3637
|
] });
|
|
3530
3638
|
}
|
|
@@ -3532,10 +3640,10 @@ var Checkbox2 = React20.forwardRef(
|
|
|
3532
3640
|
Checkbox2.displayName = "Checkbox";
|
|
3533
3641
|
|
|
3534
3642
|
// src/components/switch/Switch.tsx
|
|
3535
|
-
import * as
|
|
3643
|
+
import * as React23 from "react";
|
|
3536
3644
|
import { Switch as SwitchPrimitives } from "@base-ui/react/switch";
|
|
3537
3645
|
import { cva as cva13 } from "class-variance-authority";
|
|
3538
|
-
import { jsx as
|
|
3646
|
+
import { jsx as jsx40, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
3539
3647
|
var switchRootVariants = cva13(
|
|
3540
3648
|
"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
3649
|
{
|
|
@@ -3572,7 +3680,7 @@ var switchThumbVariants = cva13(
|
|
|
3572
3680
|
}
|
|
3573
3681
|
}
|
|
3574
3682
|
);
|
|
3575
|
-
var Switch =
|
|
3683
|
+
var Switch = React23.forwardRef(
|
|
3576
3684
|
({
|
|
3577
3685
|
"aria-label": ariaLabel,
|
|
3578
3686
|
className,
|
|
@@ -3585,11 +3693,11 @@ var Switch = React21.forwardRef(
|
|
|
3585
3693
|
disabled,
|
|
3586
3694
|
...props
|
|
3587
3695
|
}, ref) => {
|
|
3588
|
-
const generatedId =
|
|
3696
|
+
const generatedId = React23.useId();
|
|
3589
3697
|
const switchId = id || generatedId;
|
|
3590
3698
|
const errorId = `${switchId}-error`;
|
|
3591
|
-
return /* @__PURE__ */
|
|
3592
|
-
/* @__PURE__ */
|
|
3699
|
+
return /* @__PURE__ */ jsxs18("div", { className: "flex items-center gap-3", children: [
|
|
3700
|
+
/* @__PURE__ */ jsx40(
|
|
3593
3701
|
SwitchPrimitives.Root,
|
|
3594
3702
|
{
|
|
3595
3703
|
ref,
|
|
@@ -3604,11 +3712,11 @@ var Switch = React21.forwardRef(
|
|
|
3604
3712
|
className
|
|
3605
3713
|
),
|
|
3606
3714
|
...props,
|
|
3607
|
-
children: /* @__PURE__ */
|
|
3715
|
+
children: /* @__PURE__ */ jsx40(SwitchPrimitives.Thumb, { className: cn(switchThumbVariants({ size })) })
|
|
3608
3716
|
}
|
|
3609
3717
|
),
|
|
3610
|
-
(label || description || error) && /* @__PURE__ */
|
|
3611
|
-
label && /* @__PURE__ */
|
|
3718
|
+
(label || description || error) && /* @__PURE__ */ jsxs18("div", { className: "flex flex-col gap-1", children: [
|
|
3719
|
+
label && /* @__PURE__ */ jsx40(
|
|
3612
3720
|
"label",
|
|
3613
3721
|
{
|
|
3614
3722
|
htmlFor: switchId,
|
|
@@ -3619,8 +3727,8 @@ var Switch = React21.forwardRef(
|
|
|
3619
3727
|
children: label
|
|
3620
3728
|
}
|
|
3621
3729
|
),
|
|
3622
|
-
description && /* @__PURE__ */
|
|
3623
|
-
error && /* @__PURE__ */
|
|
3730
|
+
description && /* @__PURE__ */ jsx40(Typography, { variant: "xs", color: "muted", children: description }),
|
|
3731
|
+
error && /* @__PURE__ */ jsx40(Typography, { variant: "xs", id: errorId, className: "text-berget-destructive-foreground", children: error })
|
|
3624
3732
|
] })
|
|
3625
3733
|
] });
|
|
3626
3734
|
}
|
|
@@ -3629,26 +3737,26 @@ Switch.displayName = "Switch";
|
|
|
3629
3737
|
|
|
3630
3738
|
// src/primitives/select.tsx
|
|
3631
3739
|
import { Select as SelectPrimitive } from "@base-ui/react/select";
|
|
3632
|
-
import { cn as
|
|
3740
|
+
import { cn as cn18 } from "cn";
|
|
3633
3741
|
import { ChevronDownIcon as ChevronDownIcon2, CheckIcon as CheckIcon3, ChevronUpIcon } from "lucide-react";
|
|
3634
|
-
import { jsx as
|
|
3742
|
+
import { jsx as jsx41, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
3635
3743
|
var Select = SelectPrimitive.Root;
|
|
3636
3744
|
function SelectGroup({ className, ...props }) {
|
|
3637
|
-
return /* @__PURE__ */
|
|
3745
|
+
return /* @__PURE__ */ jsx41(
|
|
3638
3746
|
SelectPrimitive.Group,
|
|
3639
3747
|
{
|
|
3640
3748
|
"data-slot": "select-group",
|
|
3641
|
-
className:
|
|
3749
|
+
className: cn18("scroll-my-1 p-1", className),
|
|
3642
3750
|
...props
|
|
3643
3751
|
}
|
|
3644
3752
|
);
|
|
3645
3753
|
}
|
|
3646
3754
|
function SelectValue({ className, ...props }) {
|
|
3647
|
-
return /* @__PURE__ */
|
|
3755
|
+
return /* @__PURE__ */ jsx41(
|
|
3648
3756
|
SelectPrimitive.Value,
|
|
3649
3757
|
{
|
|
3650
3758
|
"data-slot": "select-value",
|
|
3651
|
-
className:
|
|
3759
|
+
className: cn18("flex flex-1 text-left", className),
|
|
3652
3760
|
...props
|
|
3653
3761
|
}
|
|
3654
3762
|
);
|
|
@@ -3659,22 +3767,22 @@ function SelectTrigger({
|
|
|
3659
3767
|
children,
|
|
3660
3768
|
...props
|
|
3661
3769
|
}) {
|
|
3662
|
-
return /* @__PURE__ */
|
|
3770
|
+
return /* @__PURE__ */ jsxs19(
|
|
3663
3771
|
SelectPrimitive.Trigger,
|
|
3664
3772
|
{
|
|
3665
3773
|
"data-slot": "select-trigger",
|
|
3666
3774
|
"data-size": size,
|
|
3667
|
-
className:
|
|
3775
|
+
className: cn18(
|
|
3668
3776
|
"flex w-fit cursor-pointer items-center justify-between gap-1.5 rounded-lg border border-input bg-input/30 py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
3669
3777
|
className
|
|
3670
3778
|
),
|
|
3671
3779
|
...props,
|
|
3672
3780
|
children: [
|
|
3673
3781
|
children,
|
|
3674
|
-
/* @__PURE__ */
|
|
3782
|
+
/* @__PURE__ */ jsx41(
|
|
3675
3783
|
SelectPrimitive.Icon,
|
|
3676
3784
|
{
|
|
3677
|
-
render: /* @__PURE__ */
|
|
3785
|
+
render: /* @__PURE__ */ jsx41(ChevronDownIcon2, { className: "pointer-events-none size-4 text-muted-foreground" })
|
|
3678
3786
|
}
|
|
3679
3787
|
)
|
|
3680
3788
|
]
|
|
@@ -3691,7 +3799,7 @@ function SelectContent({
|
|
|
3691
3799
|
alignItemWithTrigger = true,
|
|
3692
3800
|
...props
|
|
3693
3801
|
}) {
|
|
3694
|
-
return /* @__PURE__ */
|
|
3802
|
+
return /* @__PURE__ */ jsx41(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx41(
|
|
3695
3803
|
SelectPrimitive.Positioner,
|
|
3696
3804
|
{
|
|
3697
3805
|
side,
|
|
@@ -3700,17 +3808,17 @@ function SelectContent({
|
|
|
3700
3808
|
alignOffset,
|
|
3701
3809
|
alignItemWithTrigger,
|
|
3702
3810
|
className: "isolate z-50",
|
|
3703
|
-
children: /* @__PURE__ */
|
|
3811
|
+
children: /* @__PURE__ */ jsxs19(
|
|
3704
3812
|
SelectPrimitive.Popup,
|
|
3705
3813
|
{
|
|
3706
3814
|
"data-slot": "select-content",
|
|
3707
3815
|
"data-align-trigger": alignItemWithTrigger,
|
|
3708
|
-
className:
|
|
3816
|
+
className: cn18("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
3817
|
...props,
|
|
3710
3818
|
children: [
|
|
3711
|
-
/* @__PURE__ */
|
|
3712
|
-
/* @__PURE__ */
|
|
3713
|
-
/* @__PURE__ */
|
|
3819
|
+
/* @__PURE__ */ jsx41(SelectScrollUpButton, {}),
|
|
3820
|
+
/* @__PURE__ */ jsx41(SelectPrimitive.List, { children }),
|
|
3821
|
+
/* @__PURE__ */ jsx41(SelectScrollDownButton, {})
|
|
3714
3822
|
]
|
|
3715
3823
|
}
|
|
3716
3824
|
)
|
|
@@ -3721,11 +3829,11 @@ function SelectLabel({
|
|
|
3721
3829
|
className,
|
|
3722
3830
|
...props
|
|
3723
3831
|
}) {
|
|
3724
|
-
return /* @__PURE__ */
|
|
3832
|
+
return /* @__PURE__ */ jsx41(
|
|
3725
3833
|
SelectPrimitive.GroupLabel,
|
|
3726
3834
|
{
|
|
3727
3835
|
"data-slot": "select-label",
|
|
3728
|
-
className:
|
|
3836
|
+
className: cn18("px-1.5 py-1 text-xs text-muted-foreground", className),
|
|
3729
3837
|
...props
|
|
3730
3838
|
}
|
|
3731
3839
|
);
|
|
@@ -3735,22 +3843,22 @@ function SelectItem({
|
|
|
3735
3843
|
children,
|
|
3736
3844
|
...props
|
|
3737
3845
|
}) {
|
|
3738
|
-
return /* @__PURE__ */
|
|
3846
|
+
return /* @__PURE__ */ jsxs19(
|
|
3739
3847
|
SelectPrimitive.Item,
|
|
3740
3848
|
{
|
|
3741
3849
|
"data-slot": "select-item",
|
|
3742
|
-
className:
|
|
3850
|
+
className: cn18(
|
|
3743
3851
|
"relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
|
|
3744
3852
|
className
|
|
3745
3853
|
),
|
|
3746
3854
|
...props,
|
|
3747
3855
|
children: [
|
|
3748
|
-
/* @__PURE__ */
|
|
3749
|
-
/* @__PURE__ */
|
|
3856
|
+
/* @__PURE__ */ jsx41(SelectPrimitive.ItemText, { className: "flex flex-1 shrink-0 gap-2 whitespace-nowrap", children }),
|
|
3857
|
+
/* @__PURE__ */ jsx41(
|
|
3750
3858
|
SelectPrimitive.ItemIndicator,
|
|
3751
3859
|
{
|
|
3752
|
-
render: /* @__PURE__ */
|
|
3753
|
-
children: /* @__PURE__ */
|
|
3860
|
+
render: /* @__PURE__ */ jsx41("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center" }),
|
|
3861
|
+
children: /* @__PURE__ */ jsx41(CheckIcon3, { className: "pointer-events-none" })
|
|
3754
3862
|
}
|
|
3755
3863
|
)
|
|
3756
3864
|
]
|
|
@@ -3761,11 +3869,11 @@ function SelectSeparator({
|
|
|
3761
3869
|
className,
|
|
3762
3870
|
...props
|
|
3763
3871
|
}) {
|
|
3764
|
-
return /* @__PURE__ */
|
|
3872
|
+
return /* @__PURE__ */ jsx41(
|
|
3765
3873
|
SelectPrimitive.Separator,
|
|
3766
3874
|
{
|
|
3767
3875
|
"data-slot": "select-separator",
|
|
3768
|
-
className:
|
|
3876
|
+
className: cn18("pointer-events-none -mx-1 my-1 h-px bg-border", className),
|
|
3769
3877
|
...props
|
|
3770
3878
|
}
|
|
3771
3879
|
);
|
|
@@ -3774,16 +3882,16 @@ function SelectScrollUpButton({
|
|
|
3774
3882
|
className,
|
|
3775
3883
|
...props
|
|
3776
3884
|
}) {
|
|
3777
|
-
return /* @__PURE__ */
|
|
3885
|
+
return /* @__PURE__ */ jsx41(
|
|
3778
3886
|
SelectPrimitive.ScrollUpArrow,
|
|
3779
3887
|
{
|
|
3780
3888
|
"data-slot": "select-scroll-up-button",
|
|
3781
|
-
className:
|
|
3889
|
+
className: cn18(
|
|
3782
3890
|
"top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",
|
|
3783
3891
|
className
|
|
3784
3892
|
),
|
|
3785
3893
|
...props,
|
|
3786
|
-
children: /* @__PURE__ */
|
|
3894
|
+
children: /* @__PURE__ */ jsx41(
|
|
3787
3895
|
ChevronUpIcon,
|
|
3788
3896
|
{}
|
|
3789
3897
|
)
|
|
@@ -3794,16 +3902,16 @@ function SelectScrollDownButton({
|
|
|
3794
3902
|
className,
|
|
3795
3903
|
...props
|
|
3796
3904
|
}) {
|
|
3797
|
-
return /* @__PURE__ */
|
|
3905
|
+
return /* @__PURE__ */ jsx41(
|
|
3798
3906
|
SelectPrimitive.ScrollDownArrow,
|
|
3799
3907
|
{
|
|
3800
3908
|
"data-slot": "select-scroll-down-button",
|
|
3801
|
-
className:
|
|
3909
|
+
className: cn18(
|
|
3802
3910
|
"bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",
|
|
3803
3911
|
className
|
|
3804
3912
|
),
|
|
3805
3913
|
...props,
|
|
3806
|
-
children: /* @__PURE__ */
|
|
3914
|
+
children: /* @__PURE__ */ jsx41(
|
|
3807
3915
|
ChevronDownIcon2,
|
|
3808
3916
|
{}
|
|
3809
3917
|
)
|
|
@@ -3812,19 +3920,19 @@ function SelectScrollDownButton({
|
|
|
3812
3920
|
}
|
|
3813
3921
|
|
|
3814
3922
|
// src/components/country-select/CountrySelect.tsx
|
|
3815
|
-
import * as
|
|
3923
|
+
import * as React25 from "react";
|
|
3816
3924
|
import { ChevronDown as ChevronDown2, Globe } from "lucide-react";
|
|
3817
3925
|
|
|
3818
3926
|
// src/components/icon/Icon.tsx
|
|
3819
|
-
import * as
|
|
3820
|
-
import { jsx as
|
|
3927
|
+
import * as React24 from "react";
|
|
3928
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
3821
3929
|
var iconStrokeMap = {
|
|
3822
3930
|
12: 1.4,
|
|
3823
3931
|
16: 1.4,
|
|
3824
3932
|
24: 1.6,
|
|
3825
3933
|
32: 1.8
|
|
3826
3934
|
};
|
|
3827
|
-
var Icon =
|
|
3935
|
+
var Icon = React24.forwardRef(
|
|
3828
3936
|
({
|
|
3829
3937
|
icon: IconComponent,
|
|
3830
3938
|
size,
|
|
@@ -3836,7 +3944,7 @@ var Icon = React22.forwardRef(
|
|
|
3836
3944
|
const strokeWidth = iconStrokeMap[size];
|
|
3837
3945
|
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
3946
|
const ariaAttributes = ariaLabel ? { "aria-label": ariaLabel } : { "aria-hidden": ariaHidden };
|
|
3839
|
-
return /* @__PURE__ */
|
|
3947
|
+
return /* @__PURE__ */ jsx42(
|
|
3840
3948
|
IconComponent,
|
|
3841
3949
|
{
|
|
3842
3950
|
ref,
|
|
@@ -3852,13 +3960,13 @@ Icon.displayName = "Icon";
|
|
|
3852
3960
|
|
|
3853
3961
|
// src/primitives/popover.tsx
|
|
3854
3962
|
import { Popover as PopoverPrimitive } from "@base-ui/react/popover";
|
|
3855
|
-
import { cn as
|
|
3856
|
-
import { jsx as
|
|
3963
|
+
import { cn as cn19 } from "cn";
|
|
3964
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
3857
3965
|
function Popover({ ...props }) {
|
|
3858
|
-
return /* @__PURE__ */
|
|
3966
|
+
return /* @__PURE__ */ jsx43(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
|
|
3859
3967
|
}
|
|
3860
3968
|
function PopoverTrigger({ ...props }) {
|
|
3861
|
-
return /* @__PURE__ */
|
|
3969
|
+
return /* @__PURE__ */ jsx43(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
|
|
3862
3970
|
}
|
|
3863
3971
|
function PopoverContent({
|
|
3864
3972
|
className,
|
|
@@ -3868,7 +3976,7 @@ function PopoverContent({
|
|
|
3868
3976
|
sideOffset = 4,
|
|
3869
3977
|
...props
|
|
3870
3978
|
}) {
|
|
3871
|
-
return /* @__PURE__ */
|
|
3979
|
+
return /* @__PURE__ */ jsx43(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx43(
|
|
3872
3980
|
PopoverPrimitive.Positioner,
|
|
3873
3981
|
{
|
|
3874
3982
|
align,
|
|
@@ -3876,11 +3984,11 @@ function PopoverContent({
|
|
|
3876
3984
|
side,
|
|
3877
3985
|
sideOffset,
|
|
3878
3986
|
className: "isolate z-50",
|
|
3879
|
-
children: /* @__PURE__ */
|
|
3987
|
+
children: /* @__PURE__ */ jsx43(
|
|
3880
3988
|
PopoverPrimitive.Popup,
|
|
3881
3989
|
{
|
|
3882
3990
|
"data-slot": "popover-content",
|
|
3883
|
-
className:
|
|
3991
|
+
className: cn19(
|
|
3884
3992
|
"z-50 flex w-72 origin-(--transform-origin) flex-col gap-2.5 rounded-lg bg-popover p-2.5 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
|
|
3885
3993
|
className
|
|
3886
3994
|
),
|
|
@@ -3893,27 +4001,27 @@ function PopoverContent({
|
|
|
3893
4001
|
|
|
3894
4002
|
// src/primitives/command.tsx
|
|
3895
4003
|
import { Command as CommandPrimitive } from "cmdk";
|
|
3896
|
-
import { cn as
|
|
4004
|
+
import { cn as cn23 } from "cn";
|
|
3897
4005
|
|
|
3898
4006
|
// src/primitives/dialog.tsx
|
|
3899
4007
|
import { Dialog as DialogPrimitive2 } from "@base-ui/react/dialog";
|
|
3900
|
-
import { cn as
|
|
4008
|
+
import { cn as cn20 } from "cn";
|
|
3901
4009
|
import { XIcon as XIcon2 } from "lucide-react";
|
|
3902
|
-
import { jsx as
|
|
4010
|
+
import { jsx as jsx44, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3903
4011
|
|
|
3904
4012
|
// src/primitives/input-group.tsx
|
|
3905
4013
|
import { cva as cva14 } from "class-variance-authority";
|
|
3906
|
-
import { cn as
|
|
4014
|
+
import { cn as cn22 } from "cn";
|
|
3907
4015
|
|
|
3908
4016
|
// src/primitives/textarea.tsx
|
|
3909
|
-
import { cn as
|
|
3910
|
-
import { jsx as
|
|
4017
|
+
import { cn as cn21 } from "cn";
|
|
4018
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
3911
4019
|
function Textarea({ className, ...props }) {
|
|
3912
|
-
return /* @__PURE__ */
|
|
4020
|
+
return /* @__PURE__ */ jsx45(
|
|
3913
4021
|
"textarea",
|
|
3914
4022
|
{
|
|
3915
4023
|
"data-slot": "textarea",
|
|
3916
|
-
className:
|
|
4024
|
+
className: cn21(
|
|
3917
4025
|
"flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-input/30 px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",
|
|
3918
4026
|
className
|
|
3919
4027
|
),
|
|
@@ -3923,14 +4031,14 @@ function Textarea({ className, ...props }) {
|
|
|
3923
4031
|
}
|
|
3924
4032
|
|
|
3925
4033
|
// src/primitives/input-group.tsx
|
|
3926
|
-
import { jsx as
|
|
4034
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
3927
4035
|
function InputGroup({ className, ...props }) {
|
|
3928
|
-
return /* @__PURE__ */
|
|
4036
|
+
return /* @__PURE__ */ jsx46(
|
|
3929
4037
|
"div",
|
|
3930
4038
|
{
|
|
3931
4039
|
"data-slot": "input-group",
|
|
3932
4040
|
role: "group",
|
|
3933
|
-
className:
|
|
4041
|
+
className: cn22(
|
|
3934
4042
|
"group/input-group relative flex h-8 w-full min-w-0 items-center rounded-lg border border-input transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5",
|
|
3935
4043
|
className
|
|
3936
4044
|
),
|
|
@@ -3959,13 +4067,13 @@ function InputGroupAddon({
|
|
|
3959
4067
|
align = "inline-start",
|
|
3960
4068
|
...props
|
|
3961
4069
|
}) {
|
|
3962
|
-
return /* @__PURE__ */
|
|
4070
|
+
return /* @__PURE__ */ jsx46(
|
|
3963
4071
|
"div",
|
|
3964
4072
|
{
|
|
3965
4073
|
role: "group",
|
|
3966
4074
|
"data-slot": "input-group-addon",
|
|
3967
4075
|
"data-align": align,
|
|
3968
|
-
className:
|
|
4076
|
+
className: cn22(inputGroupAddonVariants({ align }), className),
|
|
3969
4077
|
onClick: (e) => {
|
|
3970
4078
|
if (e.target.closest("button")) {
|
|
3971
4079
|
return;
|
|
@@ -3995,16 +4103,16 @@ var inputGroupButtonVariants = cva14(
|
|
|
3995
4103
|
|
|
3996
4104
|
// src/primitives/command.tsx
|
|
3997
4105
|
import { SearchIcon, CheckIcon as CheckIcon4 } from "lucide-react";
|
|
3998
|
-
import { jsx as
|
|
4106
|
+
import { jsx as jsx47, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
3999
4107
|
function Command({
|
|
4000
4108
|
className,
|
|
4001
4109
|
...props
|
|
4002
4110
|
}) {
|
|
4003
|
-
return /* @__PURE__ */
|
|
4111
|
+
return /* @__PURE__ */ jsx47(
|
|
4004
4112
|
CommandPrimitive,
|
|
4005
4113
|
{
|
|
4006
4114
|
"data-slot": "command",
|
|
4007
|
-
className:
|
|
4115
|
+
className: cn23(
|
|
4008
4116
|
"flex size-full flex-col overflow-hidden rounded-xl! bg-popover p-1 text-popover-foreground",
|
|
4009
4117
|
className
|
|
4010
4118
|
),
|
|
@@ -4016,30 +4124,30 @@ function CommandInput({
|
|
|
4016
4124
|
className,
|
|
4017
4125
|
...props
|
|
4018
4126
|
}) {
|
|
4019
|
-
return /* @__PURE__ */
|
|
4020
|
-
/* @__PURE__ */
|
|
4127
|
+
return /* @__PURE__ */ jsx47("div", { "data-slot": "command-input-wrapper", className: "p-1 pb-0", children: /* @__PURE__ */ jsxs21(InputGroup, { className: "h-8! rounded-lg! border-input/30 bg-input/30 shadow-none! *:data-[slot=input-group-addon]:pl-2!", children: [
|
|
4128
|
+
/* @__PURE__ */ jsx47(
|
|
4021
4129
|
CommandPrimitive.Input,
|
|
4022
4130
|
{
|
|
4023
4131
|
"data-slot": "command-input",
|
|
4024
|
-
className:
|
|
4132
|
+
className: cn23(
|
|
4025
4133
|
"w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
|
|
4026
4134
|
className
|
|
4027
4135
|
),
|
|
4028
4136
|
...props
|
|
4029
4137
|
}
|
|
4030
4138
|
),
|
|
4031
|
-
/* @__PURE__ */
|
|
4139
|
+
/* @__PURE__ */ jsx47(InputGroupAddon, { children: /* @__PURE__ */ jsx47(SearchIcon, { className: "size-4 shrink-0 opacity-50" }) })
|
|
4032
4140
|
] }) });
|
|
4033
4141
|
}
|
|
4034
4142
|
function CommandList({
|
|
4035
4143
|
className,
|
|
4036
4144
|
...props
|
|
4037
4145
|
}) {
|
|
4038
|
-
return /* @__PURE__ */
|
|
4146
|
+
return /* @__PURE__ */ jsx47(
|
|
4039
4147
|
CommandPrimitive.List,
|
|
4040
4148
|
{
|
|
4041
4149
|
"data-slot": "command-list",
|
|
4042
|
-
className:
|
|
4150
|
+
className: cn23(
|
|
4043
4151
|
"no-scrollbar max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none",
|
|
4044
4152
|
className
|
|
4045
4153
|
),
|
|
@@ -4051,11 +4159,11 @@ function CommandEmpty({
|
|
|
4051
4159
|
className,
|
|
4052
4160
|
...props
|
|
4053
4161
|
}) {
|
|
4054
|
-
return /* @__PURE__ */
|
|
4162
|
+
return /* @__PURE__ */ jsx47(
|
|
4055
4163
|
CommandPrimitive.Empty,
|
|
4056
4164
|
{
|
|
4057
4165
|
"data-slot": "command-empty",
|
|
4058
|
-
className:
|
|
4166
|
+
className: cn23("py-6 text-center text-sm", className),
|
|
4059
4167
|
...props
|
|
4060
4168
|
}
|
|
4061
4169
|
);
|
|
@@ -4064,11 +4172,11 @@ function CommandGroup({
|
|
|
4064
4172
|
className,
|
|
4065
4173
|
...props
|
|
4066
4174
|
}) {
|
|
4067
|
-
return /* @__PURE__ */
|
|
4175
|
+
return /* @__PURE__ */ jsx47(
|
|
4068
4176
|
CommandPrimitive.Group,
|
|
4069
4177
|
{
|
|
4070
4178
|
"data-slot": "command-group",
|
|
4071
|
-
className:
|
|
4179
|
+
className: cn23(
|
|
4072
4180
|
"overflow-hidden p-1 text-foreground **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground",
|
|
4073
4181
|
className
|
|
4074
4182
|
),
|
|
@@ -4081,18 +4189,18 @@ function CommandItem({
|
|
|
4081
4189
|
children,
|
|
4082
4190
|
...props
|
|
4083
4191
|
}) {
|
|
4084
|
-
return /* @__PURE__ */
|
|
4192
|
+
return /* @__PURE__ */ jsxs21(
|
|
4085
4193
|
CommandPrimitive.Item,
|
|
4086
4194
|
{
|
|
4087
4195
|
"data-slot": "command-item",
|
|
4088
|
-
className:
|
|
4196
|
+
className: cn23(
|
|
4089
4197
|
"group/command-item relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-lg! data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-selected:bg-muted data-selected:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-selected:*:[svg]:text-foreground",
|
|
4090
4198
|
className
|
|
4091
4199
|
),
|
|
4092
4200
|
...props,
|
|
4093
4201
|
children: [
|
|
4094
4202
|
children,
|
|
4095
|
-
/* @__PURE__ */
|
|
4203
|
+
/* @__PURE__ */ jsx47(CheckIcon4, { className: "ml-auto opacity-0 group-has-data-[slot=command-shortcut]/command-item:hidden group-data-[checked=true]/command-item:opacity-100" })
|
|
4096
4204
|
]
|
|
4097
4205
|
}
|
|
4098
4206
|
);
|
|
@@ -4240,8 +4348,8 @@ var isEUCountry = (countryCode) => {
|
|
|
4240
4348
|
};
|
|
4241
4349
|
|
|
4242
4350
|
// src/components/country-select/CountrySelect.tsx
|
|
4243
|
-
import { Fragment as Fragment2, jsx as
|
|
4244
|
-
var CountrySelect =
|
|
4351
|
+
import { Fragment as Fragment2, jsx as jsx48, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
4352
|
+
var CountrySelect = React25.forwardRef(
|
|
4245
4353
|
({
|
|
4246
4354
|
value,
|
|
4247
4355
|
onValueChange,
|
|
@@ -4251,14 +4359,14 @@ var CountrySelect = React23.forwardRef(
|
|
|
4251
4359
|
align = "center",
|
|
4252
4360
|
sideOffset = 4
|
|
4253
4361
|
}, ref) => {
|
|
4254
|
-
const [open, setOpen] =
|
|
4255
|
-
const selectedCountry =
|
|
4256
|
-
return /* @__PURE__ */
|
|
4257
|
-
/* @__PURE__ */
|
|
4362
|
+
const [open, setOpen] = React25.useState(false);
|
|
4363
|
+
const selectedCountry = React25.useMemo(() => COUNTRIES.find((c) => c.code === value), [value]);
|
|
4364
|
+
return /* @__PURE__ */ jsxs22(Popover, { open, onOpenChange: setOpen, children: [
|
|
4365
|
+
/* @__PURE__ */ jsxs22(
|
|
4258
4366
|
PopoverTrigger,
|
|
4259
4367
|
{
|
|
4260
4368
|
ref,
|
|
4261
|
-
render: /* @__PURE__ */
|
|
4369
|
+
render: /* @__PURE__ */ jsx48(
|
|
4262
4370
|
"button",
|
|
4263
4371
|
{
|
|
4264
4372
|
type: "button",
|
|
@@ -4280,16 +4388,16 @@ var CountrySelect = React23.forwardRef(
|
|
|
4280
4388
|
}
|
|
4281
4389
|
),
|
|
4282
4390
|
children: [
|
|
4283
|
-
/* @__PURE__ */
|
|
4284
|
-
/* @__PURE__ */
|
|
4285
|
-
/* @__PURE__ */
|
|
4286
|
-
/* @__PURE__ */
|
|
4391
|
+
/* @__PURE__ */ jsx48("div", { className: "flex items-center gap-2 min-w-0 flex-1", children: selectedCountry ? /* @__PURE__ */ jsxs22(Fragment2, { children: [
|
|
4392
|
+
/* @__PURE__ */ jsx48("span", { className: "text-xl flex-shrink-0", children: selectedCountry.flag }),
|
|
4393
|
+
/* @__PURE__ */ jsx48("span", { className: "truncate", children: selectedCountry.name }),
|
|
4394
|
+
/* @__PURE__ */ jsxs22("span", { className: "text-berget-muted-foreground text-xs flex-shrink-0", children: [
|
|
4287
4395
|
"(",
|
|
4288
4396
|
selectedCountry.code,
|
|
4289
4397
|
")"
|
|
4290
4398
|
] })
|
|
4291
|
-
] }) : /* @__PURE__ */
|
|
4292
|
-
/* @__PURE__ */
|
|
4399
|
+
] }) : /* @__PURE__ */ jsxs22(Fragment2, { children: [
|
|
4400
|
+
/* @__PURE__ */ jsx48(
|
|
4293
4401
|
Icon,
|
|
4294
4402
|
{
|
|
4295
4403
|
icon: Globe,
|
|
@@ -4297,9 +4405,9 @@ var CountrySelect = React23.forwardRef(
|
|
|
4297
4405
|
className: "flex-shrink-0 text-berget-muted-foreground"
|
|
4298
4406
|
}
|
|
4299
4407
|
),
|
|
4300
|
-
/* @__PURE__ */
|
|
4408
|
+
/* @__PURE__ */ jsx48("span", { className: "text-berget-muted-foreground truncate", children: placeholder })
|
|
4301
4409
|
] }) }),
|
|
4302
|
-
/* @__PURE__ */
|
|
4410
|
+
/* @__PURE__ */ jsx48(
|
|
4303
4411
|
Icon,
|
|
4304
4412
|
{
|
|
4305
4413
|
icon: ChevronDown2,
|
|
@@ -4314,17 +4422,17 @@ var CountrySelect = React23.forwardRef(
|
|
|
4314
4422
|
]
|
|
4315
4423
|
}
|
|
4316
4424
|
),
|
|
4317
|
-
/* @__PURE__ */
|
|
4425
|
+
/* @__PURE__ */ jsx48(
|
|
4318
4426
|
PopoverContent,
|
|
4319
4427
|
{
|
|
4320
4428
|
align,
|
|
4321
4429
|
sideOffset,
|
|
4322
4430
|
className: "w-[var(--radix-popover-trigger-width)] p-0",
|
|
4323
|
-
children: /* @__PURE__ */
|
|
4324
|
-
/* @__PURE__ */
|
|
4325
|
-
/* @__PURE__ */
|
|
4326
|
-
/* @__PURE__ */
|
|
4327
|
-
/* @__PURE__ */
|
|
4431
|
+
children: /* @__PURE__ */ jsxs22(Command, { children: [
|
|
4432
|
+
/* @__PURE__ */ jsx48(CommandInput, { placeholder: "Search country..." }),
|
|
4433
|
+
/* @__PURE__ */ jsxs22(CommandList, { children: [
|
|
4434
|
+
/* @__PURE__ */ jsx48(CommandEmpty, { children: "No countries found." }),
|
|
4435
|
+
/* @__PURE__ */ jsx48(CommandGroup, { children: COUNTRIES.map((country) => /* @__PURE__ */ jsxs22(
|
|
4328
4436
|
CommandItem,
|
|
4329
4437
|
{
|
|
4330
4438
|
value: `${country.name} ${country.code}`,
|
|
@@ -4338,12 +4446,12 @@ var CountrySelect = React23.forwardRef(
|
|
|
4338
4446
|
value === country.code && "bg-berget-brand-granite-800/40"
|
|
4339
4447
|
),
|
|
4340
4448
|
children: [
|
|
4341
|
-
/* @__PURE__ */
|
|
4342
|
-
/* @__PURE__ */
|
|
4343
|
-
/* @__PURE__ */
|
|
4344
|
-
/* @__PURE__ */
|
|
4449
|
+
/* @__PURE__ */ jsx48("span", { className: "text-xl flex-shrink-0", children: country.flag }),
|
|
4450
|
+
/* @__PURE__ */ jsxs22("div", { className: "flex-1 min-w-0", children: [
|
|
4451
|
+
/* @__PURE__ */ jsx48("div", { className: "text-sm truncate", children: country.name }),
|
|
4452
|
+
/* @__PURE__ */ jsx48("div", { className: "text-xs text-berget-muted-foreground", children: country.code })
|
|
4345
4453
|
] }),
|
|
4346
|
-
value === country.code && /* @__PURE__ */
|
|
4454
|
+
value === country.code && /* @__PURE__ */ jsx48("div", { className: "w-2 h-2 rounded-full bg-berget-brand-granite-400 flex-shrink-0" })
|
|
4347
4455
|
]
|
|
4348
4456
|
},
|
|
4349
4457
|
country.code
|
|
@@ -4358,14 +4466,14 @@ var CountrySelect = React23.forwardRef(
|
|
|
4358
4466
|
CountrySelect.displayName = "CountrySelect";
|
|
4359
4467
|
|
|
4360
4468
|
// src/primitives/label.tsx
|
|
4361
|
-
import { cn as
|
|
4362
|
-
import { jsx as
|
|
4469
|
+
import { cn as cn24 } from "cn";
|
|
4470
|
+
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
4363
4471
|
function Label({ className, ...props }) {
|
|
4364
|
-
return /* @__PURE__ */
|
|
4472
|
+
return /* @__PURE__ */ jsx49(
|
|
4365
4473
|
"label",
|
|
4366
4474
|
{
|
|
4367
4475
|
"data-slot": "label",
|
|
4368
|
-
className:
|
|
4476
|
+
className: cn24(
|
|
4369
4477
|
"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
|
|
4370
4478
|
className
|
|
4371
4479
|
),
|
|
@@ -4377,14 +4485,14 @@ function Label({ className, ...props }) {
|
|
|
4377
4485
|
// src/primitives/field.tsx
|
|
4378
4486
|
import { useMemo as useMemo4 } from "react";
|
|
4379
4487
|
import { cva as cva15 } from "class-variance-authority";
|
|
4380
|
-
import { cn as
|
|
4381
|
-
import { jsx as
|
|
4488
|
+
import { cn as cn25 } from "cn";
|
|
4489
|
+
import { jsx as jsx50, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
4382
4490
|
function FieldSet({ className, ...props }) {
|
|
4383
|
-
return /* @__PURE__ */
|
|
4491
|
+
return /* @__PURE__ */ jsx50(
|
|
4384
4492
|
"fieldset",
|
|
4385
4493
|
{
|
|
4386
4494
|
"data-slot": "field-set",
|
|
4387
|
-
className:
|
|
4495
|
+
className: cn25(
|
|
4388
4496
|
"flex flex-col gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3",
|
|
4389
4497
|
className
|
|
4390
4498
|
),
|
|
@@ -4397,12 +4505,12 @@ function FieldLegend({
|
|
|
4397
4505
|
variant = "legend",
|
|
4398
4506
|
...props
|
|
4399
4507
|
}) {
|
|
4400
|
-
return /* @__PURE__ */
|
|
4508
|
+
return /* @__PURE__ */ jsx50(
|
|
4401
4509
|
"legend",
|
|
4402
4510
|
{
|
|
4403
4511
|
"data-slot": "field-legend",
|
|
4404
4512
|
"data-variant": variant,
|
|
4405
|
-
className:
|
|
4513
|
+
className: cn25(
|
|
4406
4514
|
"mb-1.5 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base",
|
|
4407
4515
|
className
|
|
4408
4516
|
),
|
|
@@ -4411,11 +4519,11 @@ function FieldLegend({
|
|
|
4411
4519
|
);
|
|
4412
4520
|
}
|
|
4413
4521
|
function FieldGroup({ className, ...props }) {
|
|
4414
|
-
return /* @__PURE__ */
|
|
4522
|
+
return /* @__PURE__ */ jsx50(
|
|
4415
4523
|
"div",
|
|
4416
4524
|
{
|
|
4417
4525
|
"data-slot": "field-group",
|
|
4418
|
-
className:
|
|
4526
|
+
className: cn25(
|
|
4419
4527
|
"group/field-group @container/field-group flex w-full flex-col gap-5 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4",
|
|
4420
4528
|
className
|
|
4421
4529
|
),
|
|
@@ -4443,23 +4551,23 @@ function Field({
|
|
|
4443
4551
|
orientation = "vertical",
|
|
4444
4552
|
...props
|
|
4445
4553
|
}) {
|
|
4446
|
-
return /* @__PURE__ */
|
|
4554
|
+
return /* @__PURE__ */ jsx50(
|
|
4447
4555
|
"div",
|
|
4448
4556
|
{
|
|
4449
4557
|
role: "group",
|
|
4450
4558
|
"data-slot": "field",
|
|
4451
4559
|
"data-orientation": orientation,
|
|
4452
|
-
className:
|
|
4560
|
+
className: cn25(fieldVariants({ orientation }), className),
|
|
4453
4561
|
...props
|
|
4454
4562
|
}
|
|
4455
4563
|
);
|
|
4456
4564
|
}
|
|
4457
4565
|
function FieldContent({ className, ...props }) {
|
|
4458
|
-
return /* @__PURE__ */
|
|
4566
|
+
return /* @__PURE__ */ jsx50(
|
|
4459
4567
|
"div",
|
|
4460
4568
|
{
|
|
4461
4569
|
"data-slot": "field-content",
|
|
4462
|
-
className:
|
|
4570
|
+
className: cn25(
|
|
4463
4571
|
"group/field-content flex flex-1 flex-col gap-0.5 leading-snug",
|
|
4464
4572
|
className
|
|
4465
4573
|
),
|
|
@@ -4471,11 +4579,11 @@ function FieldLabel({
|
|
|
4471
4579
|
className,
|
|
4472
4580
|
...props
|
|
4473
4581
|
}) {
|
|
4474
|
-
return /* @__PURE__ */
|
|
4582
|
+
return /* @__PURE__ */ jsx50(
|
|
4475
4583
|
Label,
|
|
4476
4584
|
{
|
|
4477
4585
|
"data-slot": "field-label",
|
|
4478
|
-
className:
|
|
4586
|
+
className: cn25(
|
|
4479
4587
|
"group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border has-[>[data-slot=field]]:not-has-[:disabled,[data-disabled]]:hover:bg-muted/50 has-[>[data-slot=field]]:has-[:focus-visible]:border-ring has-[>[data-slot=field]]:has-[:focus-visible]:ring-3 has-[>[data-slot=field]]:has-[:focus-visible]:ring-ring/50 *:data-[slot=field]:p-2.5 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10",
|
|
4480
4588
|
"has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col",
|
|
4481
4589
|
className
|
|
@@ -4485,11 +4593,11 @@ function FieldLabel({
|
|
|
4485
4593
|
);
|
|
4486
4594
|
}
|
|
4487
4595
|
function FieldTitle({ className, ...props }) {
|
|
4488
|
-
return /* @__PURE__ */
|
|
4596
|
+
return /* @__PURE__ */ jsx50(
|
|
4489
4597
|
"div",
|
|
4490
4598
|
{
|
|
4491
4599
|
"data-slot": "field-label",
|
|
4492
|
-
className:
|
|
4600
|
+
className: cn25(
|
|
4493
4601
|
"flex w-fit items-center gap-2 text-sm font-medium group-data-[disabled=true]/field:opacity-50",
|
|
4494
4602
|
className
|
|
4495
4603
|
),
|
|
@@ -4498,11 +4606,11 @@ function FieldTitle({ className, ...props }) {
|
|
|
4498
4606
|
);
|
|
4499
4607
|
}
|
|
4500
4608
|
function FieldDescription({ className, ...props }) {
|
|
4501
|
-
return /* @__PURE__ */
|
|
4609
|
+
return /* @__PURE__ */ jsx50(
|
|
4502
4610
|
"p",
|
|
4503
4611
|
{
|
|
4504
4612
|
"data-slot": "field-description",
|
|
4505
|
-
className:
|
|
4613
|
+
className: cn25(
|
|
4506
4614
|
"text-left text-sm leading-normal font-normal text-muted-foreground group-has-data-horizontal/field:text-balance [[data-variant=legend]+&]:-mt-1.5",
|
|
4507
4615
|
"last:mt-0 nth-last-2:-mt-1",
|
|
4508
4616
|
"[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",
|
|
@@ -4517,19 +4625,19 @@ function FieldSeparator({
|
|
|
4517
4625
|
className,
|
|
4518
4626
|
...props
|
|
4519
4627
|
}) {
|
|
4520
|
-
return /* @__PURE__ */
|
|
4628
|
+
return /* @__PURE__ */ jsxs23(
|
|
4521
4629
|
"div",
|
|
4522
4630
|
{
|
|
4523
4631
|
"data-slot": "field-separator",
|
|
4524
4632
|
"data-content": !!children,
|
|
4525
|
-
className:
|
|
4633
|
+
className: cn25(
|
|
4526
4634
|
"relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2",
|
|
4527
4635
|
className
|
|
4528
4636
|
),
|
|
4529
4637
|
...props,
|
|
4530
4638
|
children: [
|
|
4531
|
-
/* @__PURE__ */
|
|
4532
|
-
children && /* @__PURE__ */
|
|
4639
|
+
/* @__PURE__ */ jsx50(Separator, { className: "absolute inset-0 top-1/2" }),
|
|
4640
|
+
children && /* @__PURE__ */ jsx50(
|
|
4533
4641
|
"span",
|
|
4534
4642
|
{
|
|
4535
4643
|
className: "relative mx-auto block w-fit bg-background px-2 text-muted-foreground",
|
|
@@ -4560,19 +4668,19 @@ function FieldError({
|
|
|
4560
4668
|
if (uniqueErrors?.length == 1) {
|
|
4561
4669
|
return uniqueErrors[0]?.message;
|
|
4562
4670
|
}
|
|
4563
|
-
return /* @__PURE__ */
|
|
4564
|
-
(error, index) => error?.message && /* @__PURE__ */
|
|
4671
|
+
return /* @__PURE__ */ jsx50("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: uniqueErrors.map(
|
|
4672
|
+
(error, index) => error?.message && /* @__PURE__ */ jsx50("li", { children: error.message }, index)
|
|
4565
4673
|
) });
|
|
4566
4674
|
}, [children, errors]);
|
|
4567
4675
|
if (!content) {
|
|
4568
4676
|
return null;
|
|
4569
4677
|
}
|
|
4570
|
-
return /* @__PURE__ */
|
|
4678
|
+
return /* @__PURE__ */ jsx50(
|
|
4571
4679
|
"div",
|
|
4572
4680
|
{
|
|
4573
4681
|
role: "alert",
|
|
4574
4682
|
"data-slot": "field-error",
|
|
4575
|
-
className:
|
|
4683
|
+
className: cn25("text-sm font-normal text-destructive", className),
|
|
4576
4684
|
...props,
|
|
4577
4685
|
children: content
|
|
4578
4686
|
}
|
|
@@ -4580,10 +4688,10 @@ function FieldError({
|
|
|
4580
4688
|
}
|
|
4581
4689
|
|
|
4582
4690
|
// src/components/link/Link.tsx
|
|
4583
|
-
import * as
|
|
4691
|
+
import * as React26 from "react";
|
|
4584
4692
|
import { cva as cva16 } from "class-variance-authority";
|
|
4585
4693
|
import { ExternalLink } from "lucide-react";
|
|
4586
|
-
import { jsx as
|
|
4694
|
+
import { jsx as jsx51, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
4587
4695
|
var linkVariants = cva16(
|
|
4588
4696
|
"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
4697
|
{
|
|
@@ -4608,7 +4716,7 @@ var linkVariants = cva16(
|
|
|
4608
4716
|
}
|
|
4609
4717
|
}
|
|
4610
4718
|
);
|
|
4611
|
-
var Link =
|
|
4719
|
+
var Link = React26.forwardRef(
|
|
4612
4720
|
({
|
|
4613
4721
|
className,
|
|
4614
4722
|
variant,
|
|
@@ -4621,7 +4729,7 @@ var Link = React24.forwardRef(
|
|
|
4621
4729
|
...props
|
|
4622
4730
|
}, ref) => {
|
|
4623
4731
|
const isExternal = external || typeof props.href === "string" && (props.href.startsWith("http://") || props.href.startsWith("https://") || props.href.startsWith("mailto:") || props.href.startsWith("tel:"));
|
|
4624
|
-
return /* @__PURE__ */
|
|
4732
|
+
return /* @__PURE__ */ jsxs24(
|
|
4625
4733
|
"a",
|
|
4626
4734
|
{
|
|
4627
4735
|
ref,
|
|
@@ -4637,8 +4745,8 @@ var Link = React24.forwardRef(
|
|
|
4637
4745
|
},
|
|
4638
4746
|
children: [
|
|
4639
4747
|
children,
|
|
4640
|
-
icon && /* @__PURE__ */
|
|
4641
|
-
showExternalIcon && isExternal && !disabled && /* @__PURE__ */
|
|
4748
|
+
icon && /* @__PURE__ */ jsx51("span", { className: "inline-flex items-center", children: icon }),
|
|
4749
|
+
showExternalIcon && isExternal && !disabled && /* @__PURE__ */ jsx51("span", { className: "inline-flex items-center ml-1 opacity-60", "aria-hidden": "true", children: /* @__PURE__ */ jsx51(Icon, { icon: ExternalLink, size: 16 }) })
|
|
4642
4750
|
]
|
|
4643
4751
|
}
|
|
4644
4752
|
);
|
|
@@ -4647,7 +4755,7 @@ var Link = React24.forwardRef(
|
|
|
4647
4755
|
Link.displayName = "Link";
|
|
4648
4756
|
|
|
4649
4757
|
// src/components/container/Container.tsx
|
|
4650
|
-
import * as
|
|
4758
|
+
import * as React27 from "react";
|
|
4651
4759
|
import { mergeProps as mergeProps3 } from "@base-ui/react/merge-props";
|
|
4652
4760
|
import { useRender as useRender3 } from "@base-ui/react/use-render";
|
|
4653
4761
|
import { cva as cva17 } from "class-variance-authority";
|
|
@@ -4672,7 +4780,7 @@ var containerVariants = cva17("w-full mx-auto", {
|
|
|
4672
4780
|
padding: "md"
|
|
4673
4781
|
}
|
|
4674
4782
|
});
|
|
4675
|
-
var Container =
|
|
4783
|
+
var Container = React27.forwardRef(
|
|
4676
4784
|
({ className, size, padding, asChild = false, children, ...props }, ref) => {
|
|
4677
4785
|
return useRender3({
|
|
4678
4786
|
ref,
|
|
@@ -4691,7 +4799,7 @@ var Container = React25.forwardRef(
|
|
|
4691
4799
|
Container.displayName = "Container";
|
|
4692
4800
|
|
|
4693
4801
|
// src/components/grid/Grid.tsx
|
|
4694
|
-
import * as
|
|
4802
|
+
import * as React28 from "react";
|
|
4695
4803
|
import { cva as cva18 } from "class-variance-authority";
|
|
4696
4804
|
import { mergeProps as mergeProps4 } from "@base-ui/react/merge-props";
|
|
4697
4805
|
import { useRender as useRender4 } from "@base-ui/react/use-render";
|
|
@@ -4717,7 +4825,7 @@ var gridVariants = cva18("grid", {
|
|
|
4717
4825
|
justify: "start"
|
|
4718
4826
|
}
|
|
4719
4827
|
});
|
|
4720
|
-
var Grid =
|
|
4828
|
+
var Grid = React28.forwardRef(
|
|
4721
4829
|
({ className, align, justify, cols, rows, gap, gapX, gapY, asChild = false, children, ...props }, ref) => {
|
|
4722
4830
|
return useRender4({
|
|
4723
4831
|
ref,
|
|
@@ -4744,7 +4852,7 @@ var Grid = React26.forwardRef(
|
|
|
4744
4852
|
Grid.displayName = "Grid";
|
|
4745
4853
|
|
|
4746
4854
|
// src/components/box/Box.tsx
|
|
4747
|
-
import * as
|
|
4855
|
+
import * as React29 from "react";
|
|
4748
4856
|
import { cva as cva19 } from "class-variance-authority";
|
|
4749
4857
|
import { mergeProps as mergeProps5 } from "@base-ui/react/merge-props";
|
|
4750
4858
|
import { useRender as useRender5 } from "@base-ui/react/use-render";
|
|
@@ -4784,7 +4892,7 @@ var boxVariants = cva19("flex", {
|
|
|
4784
4892
|
wrap: "nowrap"
|
|
4785
4893
|
}
|
|
4786
4894
|
});
|
|
4787
|
-
var Box =
|
|
4895
|
+
var Box = React29.forwardRef(
|
|
4788
4896
|
({ className, direction, align, justify, wrap, gap, asChild = false, children, ...props }, ref) => {
|
|
4789
4897
|
return useRender5({
|
|
4790
4898
|
ref,
|
|
@@ -4807,22 +4915,22 @@ var Box = React27.forwardRef(
|
|
|
4807
4915
|
Box.displayName = "Box";
|
|
4808
4916
|
|
|
4809
4917
|
// src/components/language-select/LanguageSelect.tsx
|
|
4810
|
-
import * as
|
|
4918
|
+
import * as React30 from "react";
|
|
4811
4919
|
import { Globe as Globe2 } from "lucide-react";
|
|
4812
|
-
import { jsx as
|
|
4813
|
-
var LanguageSelect =
|
|
4920
|
+
import { jsx as jsx52, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
4921
|
+
var LanguageSelect = React30.forwardRef(
|
|
4814
4922
|
({ className, options, value, onValueChange }, ref) => {
|
|
4815
|
-
return /* @__PURE__ */
|
|
4816
|
-
/* @__PURE__ */
|
|
4817
|
-
/* @__PURE__ */
|
|
4818
|
-
/* @__PURE__ */
|
|
4923
|
+
return /* @__PURE__ */ jsxs25(DropdownMenu, { children: [
|
|
4924
|
+
/* @__PURE__ */ jsx52(DropdownMenuTrigger2, { ref, asChild: true, children: /* @__PURE__ */ jsxs25(Button2, { variant: "outline", size: "icon", className, "aria-label": "Select language", children: [
|
|
4925
|
+
/* @__PURE__ */ jsx52("span", { className: "sr-only", children: "Select language" }),
|
|
4926
|
+
/* @__PURE__ */ jsx52(Icon, { icon: Globe2, size: 16, "aria-hidden": true })
|
|
4819
4927
|
] }) }),
|
|
4820
|
-
/* @__PURE__ */
|
|
4928
|
+
/* @__PURE__ */ jsx52(DropdownMenuContent2, { align: "start", children: /* @__PURE__ */ jsx52(
|
|
4821
4929
|
DropdownMenuRadioGroup,
|
|
4822
4930
|
{
|
|
4823
4931
|
value,
|
|
4824
4932
|
onValueChange: onValueChange ? (v) => onValueChange(v) : void 0,
|
|
4825
|
-
children: options.map((option) => /* @__PURE__ */
|
|
4933
|
+
children: options.map((option) => /* @__PURE__ */ jsx52(
|
|
4826
4934
|
DropdownMenuRadioItem2,
|
|
4827
4935
|
{
|
|
4828
4936
|
value: option.value,
|
|
@@ -4840,12 +4948,12 @@ var LanguageSelect = React28.forwardRef(
|
|
|
4840
4948
|
LanguageSelect.displayName = "LanguageSelect";
|
|
4841
4949
|
|
|
4842
4950
|
// src/components/list/List.tsx
|
|
4843
|
-
import * as
|
|
4951
|
+
import * as React32 from "react";
|
|
4844
4952
|
|
|
4845
4953
|
// src/components/divider/Divider.tsx
|
|
4846
|
-
import * as
|
|
4954
|
+
import * as React31 from "react";
|
|
4847
4955
|
import { cva as cva20 } from "class-variance-authority";
|
|
4848
|
-
import { jsx as
|
|
4956
|
+
import { jsx as jsx53, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
4849
4957
|
var dividerVariants = cva20("", {
|
|
4850
4958
|
variants: {
|
|
4851
4959
|
variant: {
|
|
@@ -4866,7 +4974,7 @@ var dividerVariants = cva20("", {
|
|
|
4866
4974
|
size: "thin"
|
|
4867
4975
|
}
|
|
4868
4976
|
});
|
|
4869
|
-
var Divider =
|
|
4977
|
+
var Divider = React31.forwardRef(
|
|
4870
4978
|
({
|
|
4871
4979
|
className,
|
|
4872
4980
|
orientation = "horizontal",
|
|
@@ -4877,16 +4985,16 @@ var Divider = React29.forwardRef(
|
|
|
4877
4985
|
...props
|
|
4878
4986
|
}, ref) => {
|
|
4879
4987
|
if (label) {
|
|
4880
|
-
return /* @__PURE__ */
|
|
4881
|
-
labelPosition !== "right" && /* @__PURE__ */
|
|
4988
|
+
return /* @__PURE__ */ jsxs26("div", { ref, className: cn("flex items-center w-full", className), ...props, children: [
|
|
4989
|
+
labelPosition !== "right" && /* @__PURE__ */ jsx53(
|
|
4882
4990
|
Separator,
|
|
4883
4991
|
{
|
|
4884
4992
|
orientation: "horizontal",
|
|
4885
4993
|
className: cn(dividerVariants({ variant, size }), "flex-1")
|
|
4886
4994
|
}
|
|
4887
4995
|
),
|
|
4888
|
-
/* @__PURE__ */
|
|
4889
|
-
labelPosition !== "left" && /* @__PURE__ */
|
|
4996
|
+
/* @__PURE__ */ jsx53(Typography, { variant: "small", color: "muted", className: "px-4 whitespace-nowrap", children: label }),
|
|
4997
|
+
labelPosition !== "left" && /* @__PURE__ */ jsx53(
|
|
4890
4998
|
Separator,
|
|
4891
4999
|
{
|
|
4892
5000
|
orientation: "horizontal",
|
|
@@ -4895,7 +5003,7 @@ var Divider = React29.forwardRef(
|
|
|
4895
5003
|
)
|
|
4896
5004
|
] });
|
|
4897
5005
|
}
|
|
4898
|
-
return /* @__PURE__ */
|
|
5006
|
+
return /* @__PURE__ */ jsx53(
|
|
4899
5007
|
Separator,
|
|
4900
5008
|
{
|
|
4901
5009
|
ref,
|
|
@@ -4913,19 +5021,19 @@ Divider.displayName = "Divider";
|
|
|
4913
5021
|
|
|
4914
5022
|
// src/components/list/List.tsx
|
|
4915
5023
|
import { Check as Check2 } from "lucide-react";
|
|
4916
|
-
import { jsx as
|
|
4917
|
-
var List =
|
|
5024
|
+
import { jsx as jsx54, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
5025
|
+
var List = React32.forwardRef(
|
|
4918
5026
|
({ className, children, ...props }, ref) => {
|
|
4919
|
-
const childrenArray =
|
|
4920
|
-
return /* @__PURE__ */
|
|
5027
|
+
const childrenArray = React32.Children.toArray(children);
|
|
5028
|
+
return /* @__PURE__ */ jsx54("div", { ref, className: cn("flex flex-col", className), ...props, children: childrenArray.map((child, index) => /* @__PURE__ */ jsxs27(React32.Fragment, { children: [
|
|
4921
5029
|
child,
|
|
4922
|
-
index < childrenArray.length - 1 && /* @__PURE__ */
|
|
5030
|
+
index < childrenArray.length - 1 && /* @__PURE__ */ jsx54(Divider, { variant: "subtle" })
|
|
4923
5031
|
] }, index)) });
|
|
4924
5032
|
}
|
|
4925
5033
|
);
|
|
4926
5034
|
List.displayName = "List";
|
|
4927
|
-
var ListItem =
|
|
4928
|
-
({ className, icon, children, interactive = true, ...props }, ref) => /* @__PURE__ */
|
|
5035
|
+
var ListItem = React32.forwardRef(
|
|
5036
|
+
({ className, icon, children, interactive = true, ...props }, ref) => /* @__PURE__ */ jsxs27(
|
|
4929
5037
|
"div",
|
|
4930
5038
|
{
|
|
4931
5039
|
ref,
|
|
@@ -4936,15 +5044,15 @@ var ListItem = React30.forwardRef(
|
|
|
4936
5044
|
),
|
|
4937
5045
|
...props,
|
|
4938
5046
|
children: [
|
|
4939
|
-
icon && /* @__PURE__ */
|
|
4940
|
-
/* @__PURE__ */
|
|
5047
|
+
icon && /* @__PURE__ */ jsx54("div", { className: "flex-shrink-0 flex items-center justify-center", children: icon }),
|
|
5048
|
+
/* @__PURE__ */ jsx54("div", { className: "flex-1 min-w-0", children })
|
|
4941
5049
|
]
|
|
4942
5050
|
}
|
|
4943
5051
|
)
|
|
4944
5052
|
);
|
|
4945
5053
|
ListItem.displayName = "ListItem";
|
|
4946
|
-
var ListHeader =
|
|
4947
|
-
({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
5054
|
+
var ListHeader = React32.forwardRef(
|
|
5055
|
+
({ className, children, ...props }, ref) => /* @__PURE__ */ jsx54(
|
|
4948
5056
|
"div",
|
|
4949
5057
|
{
|
|
4950
5058
|
ref,
|
|
@@ -4955,11 +5063,11 @@ var ListHeader = React30.forwardRef(
|
|
|
4955
5063
|
)
|
|
4956
5064
|
);
|
|
4957
5065
|
ListHeader.displayName = "ListHeader";
|
|
4958
|
-
var FeatureList =
|
|
5066
|
+
var FeatureList = React32.forwardRef(
|
|
4959
5067
|
({ items, variant = "bullet", className, ...props }, ref) => {
|
|
4960
|
-
return /* @__PURE__ */
|
|
4961
|
-
variant === "bullet" ? /* @__PURE__ */
|
|
4962
|
-
/* @__PURE__ */
|
|
5068
|
+
return /* @__PURE__ */ jsx54("ul", { ref, className: cn("flex flex-col gap-fluid-md", className), ...props, children: items.map((item, index) => /* @__PURE__ */ jsxs27("li", { className: "flex items-start gap-fluid-md", children: [
|
|
5069
|
+
variant === "bullet" ? /* @__PURE__ */ jsx54("span", { className: "w-1.5 h-1.5 rounded-full bg-berget-icon-muted flex-shrink-0 mt-2" }) : /* @__PURE__ */ jsx54("div", { className: "flex-shrink-0 mt-0.5", children: /* @__PURE__ */ jsx54(Icon, { icon: Check2, size: 24, className: "text-berget-logo-light" }) }),
|
|
5070
|
+
/* @__PURE__ */ jsx54(Typography, { variant: "body", color: "muted", children: item })
|
|
4963
5071
|
] }, index)) });
|
|
4964
5072
|
}
|
|
4965
5073
|
);
|
|
@@ -4968,7 +5076,7 @@ FeatureList.displayName = "FeatureList";
|
|
|
4968
5076
|
// src/components/code-block/CodeBlock.tsx
|
|
4969
5077
|
import { useState as useState5, useEffect as useEffect4, useCallback as useCallback4 } from "react";
|
|
4970
5078
|
import { Copy, Check as Check3 } from "lucide-react";
|
|
4971
|
-
import { jsx as
|
|
5079
|
+
import { jsx as jsx55, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
4972
5080
|
function CodeBlock({ code, language = "text", title, className }) {
|
|
4973
5081
|
const [html, setHtml] = useState5(null);
|
|
4974
5082
|
const [copied, setCopied] = useState5(false);
|
|
@@ -4984,16 +5092,16 @@ function CodeBlock({ code, language = "text", title, className }) {
|
|
|
4984
5092
|
setCopied(true);
|
|
4985
5093
|
setTimeout(() => setCopied(false), 2e3);
|
|
4986
5094
|
}, [code]);
|
|
4987
|
-
const copyButton = /* @__PURE__ */
|
|
5095
|
+
const copyButton = /* @__PURE__ */ jsx55(
|
|
4988
5096
|
"button",
|
|
4989
5097
|
{
|
|
4990
5098
|
onClick: handleCopy,
|
|
4991
5099
|
className: "flex items-center justify-center w-6 h-6 text-berget-muted-foreground hover:text-berget-foreground transition-colors",
|
|
4992
5100
|
"aria-label": "Copy code",
|
|
4993
|
-
children: copied ? /* @__PURE__ */
|
|
5101
|
+
children: copied ? /* @__PURE__ */ jsx55(Check3, { className: "w-3.5 h-3.5" }) : /* @__PURE__ */ jsx55(Copy, { className: "w-3.5 h-3.5" })
|
|
4994
5102
|
}
|
|
4995
5103
|
);
|
|
4996
|
-
return /* @__PURE__ */
|
|
5104
|
+
return /* @__PURE__ */ jsxs28(
|
|
4997
5105
|
"div",
|
|
4998
5106
|
{
|
|
4999
5107
|
className: cn(
|
|
@@ -5001,25 +5109,25 @@ function CodeBlock({ code, language = "text", title, className }) {
|
|
|
5001
5109
|
className
|
|
5002
5110
|
),
|
|
5003
5111
|
children: [
|
|
5004
|
-
title && /* @__PURE__ */
|
|
5005
|
-
/* @__PURE__ */
|
|
5006
|
-
html ? /* @__PURE__ */
|
|
5112
|
+
title && /* @__PURE__ */ jsx55("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__ */ jsx55("span", { className: "text-berget-muted-foreground", children: title }) }),
|
|
5113
|
+
/* @__PURE__ */ jsx55("div", { className: "absolute right-2 top-2 z-10", children: copyButton }),
|
|
5114
|
+
html ? /* @__PURE__ */ jsx55(
|
|
5007
5115
|
"div",
|
|
5008
5116
|
{
|
|
5009
5117
|
className: "[&_.shiki]:!p-4 [&_.shiki]:!m-0 [&_.shiki]:overflow-x-auto [&_.shiki]:!text-sm [&_.shiki]:!leading-relaxed [&_.shiki]:bg-transparent",
|
|
5010
5118
|
dangerouslySetInnerHTML: { __html: html }
|
|
5011
5119
|
}
|
|
5012
|
-
) : /* @__PURE__ */
|
|
5120
|
+
) : /* @__PURE__ */ jsx55("pre", { className: "!p-4 !m-0 overflow-x-auto !text-sm !leading-relaxed text-berget-muted-foreground", children: /* @__PURE__ */ jsx55("code", { children: code }) })
|
|
5013
5121
|
]
|
|
5014
5122
|
}
|
|
5015
5123
|
);
|
|
5016
5124
|
}
|
|
5017
5125
|
|
|
5018
5126
|
// src/components/window-frame/WindowFrame.tsx
|
|
5019
|
-
import * as
|
|
5127
|
+
import * as React33 from "react";
|
|
5020
5128
|
import { useState as useState6 } from "react";
|
|
5021
|
-
import { jsx as
|
|
5022
|
-
var WindowFrame =
|
|
5129
|
+
import { jsx as jsx56, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
5130
|
+
var WindowFrame = React33.forwardRef(
|
|
5023
5131
|
({ title = "window", tabs, activeTab, onTabChange, children, className, ...props }, ref) => {
|
|
5024
5132
|
const [internalActive, setInternalActive] = useState6(tabs?.[0]?.id ?? "");
|
|
5025
5133
|
const currentTab = activeTab ?? internalActive;
|
|
@@ -5030,7 +5138,7 @@ var WindowFrame = React31.forwardRef(
|
|
|
5030
5138
|
setInternalActive(id);
|
|
5031
5139
|
}
|
|
5032
5140
|
};
|
|
5033
|
-
return /* @__PURE__ */
|
|
5141
|
+
return /* @__PURE__ */ jsxs29(
|
|
5034
5142
|
"div",
|
|
5035
5143
|
{
|
|
5036
5144
|
ref,
|
|
@@ -5040,13 +5148,13 @@ var WindowFrame = React31.forwardRef(
|
|
|
5040
5148
|
),
|
|
5041
5149
|
...props,
|
|
5042
5150
|
children: [
|
|
5043
|
-
/* @__PURE__ */
|
|
5044
|
-
/* @__PURE__ */
|
|
5045
|
-
/* @__PURE__ */
|
|
5046
|
-
/* @__PURE__ */
|
|
5047
|
-
/* @__PURE__ */
|
|
5151
|
+
/* @__PURE__ */ jsxs29("div", { className: "flex items-center gap-2 px-4 py-3 border-b border-berget-brand-granite-700 bg-berget-brand-granite-900", children: [
|
|
5152
|
+
/* @__PURE__ */ jsxs29("div", { className: "flex items-center gap-2 flex-shrink-0", children: [
|
|
5153
|
+
/* @__PURE__ */ jsx56("div", { className: "w-3 h-3 rounded-full bg-berget-brand-muscaria-400" }),
|
|
5154
|
+
/* @__PURE__ */ jsx56("div", { className: "w-3 h-3 rounded-full bg-berget-brand-chanterelle-200" }),
|
|
5155
|
+
/* @__PURE__ */ jsx56("div", { className: "w-3 h-3 rounded-full bg-berget-brand-moss-400" })
|
|
5048
5156
|
] }),
|
|
5049
|
-
tabs && tabs.length > 0 ? /* @__PURE__ */
|
|
5157
|
+
tabs && tabs.length > 0 ? /* @__PURE__ */ jsx56("div", { className: "ml-4 flex items-center gap-1", children: tabs.map((tab) => /* @__PURE__ */ jsx56(
|
|
5050
5158
|
"button",
|
|
5051
5159
|
{
|
|
5052
5160
|
type: "button",
|
|
@@ -5058,9 +5166,9 @@ var WindowFrame = React31.forwardRef(
|
|
|
5058
5166
|
children: tab.label
|
|
5059
5167
|
},
|
|
5060
5168
|
tab.id
|
|
5061
|
-
)) }) : /* @__PURE__ */
|
|
5169
|
+
)) }) : /* @__PURE__ */ jsx56("span", { className: "ml-4 text-sm font-mono text-berget-brand-moss-400", children: title })
|
|
5062
5170
|
] }),
|
|
5063
|
-
/* @__PURE__ */
|
|
5171
|
+
/* @__PURE__ */ jsx56("div", { children })
|
|
5064
5172
|
]
|
|
5065
5173
|
}
|
|
5066
5174
|
);
|
|
@@ -5070,7 +5178,7 @@ WindowFrame.displayName = "WindowFrame";
|
|
|
5070
5178
|
|
|
5071
5179
|
// src/components/fog-illustration/FogIllustration.tsx
|
|
5072
5180
|
import { useEffect as useEffect5, useRef } from "react";
|
|
5073
|
-
import { jsx as
|
|
5181
|
+
import { jsx as jsx57 } from "react/jsx-runtime";
|
|
5074
5182
|
var FOG_BRAND_PALETTE = {
|
|
5075
5183
|
ink: "#171a1a",
|
|
5076
5184
|
milk: "#f7f5ed",
|
|
@@ -5383,7 +5491,7 @@ var FogIllustration = ({ palette, speed = 1, className }) => {
|
|
|
5383
5491
|
gl.deleteFramebuffer(fbo);
|
|
5384
5492
|
};
|
|
5385
5493
|
}, []);
|
|
5386
|
-
return /* @__PURE__ */
|
|
5494
|
+
return /* @__PURE__ */ jsx57("canvas", { ref, "aria-hidden": "true", className: cn("size-full", className) });
|
|
5387
5495
|
};
|
|
5388
5496
|
export {
|
|
5389
5497
|
Alert2 as Alert,
|
|
@@ -5490,6 +5598,11 @@ export {
|
|
|
5490
5598
|
NavigationMenuList,
|
|
5491
5599
|
NavigationMenuPositioner,
|
|
5492
5600
|
NavigationMenuTrigger,
|
|
5601
|
+
Progress2 as Progress,
|
|
5602
|
+
ProgressIndicator,
|
|
5603
|
+
ProgressLabel,
|
|
5604
|
+
ProgressTrack,
|
|
5605
|
+
ProgressValue,
|
|
5493
5606
|
SearchInput,
|
|
5494
5607
|
Select,
|
|
5495
5608
|
SelectContent,
|
|
@@ -5526,6 +5639,7 @@ export {
|
|
|
5526
5639
|
SidebarRail,
|
|
5527
5640
|
SidebarSeparator,
|
|
5528
5641
|
SidebarTrigger,
|
|
5642
|
+
Skeleton2 as Skeleton,
|
|
5529
5643
|
Switch,
|
|
5530
5644
|
Table2 as Table,
|
|
5531
5645
|
TableBody2 as TableBody,
|